@dotcms/react 0.0.1-beta.3 → 0.0.1-beta.30

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 (37) hide show
  1. package/README.md +165 -62
  2. package/index.esm.js +49 -2169
  3. package/next.esm.js +943 -249
  4. package/package.json +7 -4
  5. package/src/lib/deprecated/components/DotEditableText/DotEditableText.d.ts +1 -0
  6. package/src/lib/deprecated/components/DotcmsLayout/DotcmsLayout.d.ts +1 -0
  7. package/src/lib/deprecated/mocks/mockPageContext.d.ts +1 -0
  8. package/src/lib/next/__test__/mock.d.ts +2 -1
  9. package/src/lib/next/components/Column/Column.d.ts +1 -1
  10. package/src/lib/next/components/Container/Container.d.ts +1 -1
  11. package/src/lib/next/components/Container/{ContainerFallbakcs.d.ts → ContainerFallbacks.d.ts} +2 -2
  12. package/src/lib/next/components/Contentlet/Contentlet.d.ts +2 -2
  13. package/src/lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer.d.ts +27 -0
  14. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/BlockEditorBlock.d.ts +15 -0
  15. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Code.d.ts +24 -0
  16. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Contentlet.d.ts +14 -0
  17. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Image.d.ts +10 -0
  18. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Lists.d.ts +26 -0
  19. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Table.d.ts +16 -0
  20. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Texts.d.ts +81 -0
  21. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Video.d.ts +10 -0
  22. package/src/lib/next/components/DotCMSEditableText/DotCMSEditableText.d.ts +31 -0
  23. package/src/lib/next/components/DotCMSEditableText/utils.d.ts +36 -0
  24. package/src/lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody.d.ts +8 -17
  25. package/src/lib/next/components/DotCMSLayoutBody/components/ErrorMessage.d.ts +1 -4
  26. package/src/lib/next/components/DotCMSShow/DotCMSShow.d.ts +49 -0
  27. package/src/lib/next/components/FallbackComponent/FallbackComponent.d.ts +6 -6
  28. package/src/lib/next/components/Row/Row.d.ts +1 -1
  29. package/src/lib/next/contexts/DotCMSPageContext.d.ts +2 -3
  30. package/src/lib/next/hooks/useDotCMSShowWhen.d.ts +31 -0
  31. package/src/lib/next/hooks/useEditableDotCMSPage.d.ts +90 -0
  32. package/src/lib/next/hooks/useIsDevMode.d.ts +2 -5
  33. package/src/next.d.ts +5 -0
  34. package/web.url-search-params.size.esm.js +4216 -0
  35. package/es.regexp.to-string.esm.js +0 -1878
  36. package/src/lib/next/types.d.ts +0 -421
  37. package/src/lib/next/utils/index.d.ts +0 -136
@@ -0,0 +1,4216 @@
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ var check = function (it) {
4
+ return it && it.Math === Math && it;
5
+ };
6
+
7
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
8
+ var global$f =
9
+ // eslint-disable-next-line es/no-global-this -- safe
10
+ check(typeof globalThis == 'object' && globalThis) ||
11
+ check(typeof window == 'object' && window) ||
12
+ // eslint-disable-next-line no-restricted-globals -- safe
13
+ check(typeof self == 'object' && self) ||
14
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
15
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
16
+ // eslint-disable-next-line no-new-func -- fallback
17
+ (function () { return this; })() || Function('return this')();
18
+
19
+ var objectGetOwnPropertyDescriptor = {};
20
+
21
+ var fails$g = function (exec) {
22
+ try {
23
+ return !!exec();
24
+ } catch (error) {
25
+ return true;
26
+ }
27
+ };
28
+
29
+ var fails$f = fails$g;
30
+
31
+ // Detect IE8's incomplete defineProperty implementation
32
+ var descriptors = !fails$f(function () {
33
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
34
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
35
+ });
36
+
37
+ var fails$e = fails$g;
38
+
39
+ var functionBindNative = !fails$e(function () {
40
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
41
+ var test = (function () { /* empty */ }).bind();
42
+ // eslint-disable-next-line no-prototype-builtins -- safe
43
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
44
+ });
45
+
46
+ var NATIVE_BIND$3 = functionBindNative;
47
+
48
+ var call$g = Function.prototype.call;
49
+
50
+ var functionCall = NATIVE_BIND$3 ? call$g.bind(call$g) : function () {
51
+ return call$g.apply(call$g, arguments);
52
+ };
53
+
54
+ var objectPropertyIsEnumerable = {};
55
+
56
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
57
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
58
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
59
+
60
+ // Nashorn ~ JDK8 bug
61
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
62
+
63
+ // `Object.prototype.propertyIsEnumerable` method implementation
64
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
65
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
66
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
67
+ return !!descriptor && descriptor.enumerable;
68
+ } : $propertyIsEnumerable;
69
+
70
+ var createPropertyDescriptor$5 = function (bitmap, value) {
71
+ return {
72
+ enumerable: !(bitmap & 1),
73
+ configurable: !(bitmap & 2),
74
+ writable: !(bitmap & 4),
75
+ value: value
76
+ };
77
+ };
78
+
79
+ var NATIVE_BIND$2 = functionBindNative;
80
+
81
+ var FunctionPrototype$2 = Function.prototype;
82
+ var call$f = FunctionPrototype$2.call;
83
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$f, call$f);
84
+
85
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
86
+ return function () {
87
+ return call$f.apply(fn, arguments);
88
+ };
89
+ };
90
+
91
+ var uncurryThis$n = functionUncurryThis;
92
+
93
+ var toString$7 = uncurryThis$n({}.toString);
94
+ var stringSlice$4 = uncurryThis$n(''.slice);
95
+
96
+ var classofRaw$2 = function (it) {
97
+ return stringSlice$4(toString$7(it), 8, -1);
98
+ };
99
+
100
+ var uncurryThis$m = functionUncurryThis;
101
+ var fails$d = fails$g;
102
+ var classof$7 = classofRaw$2;
103
+
104
+ var $Object$4 = Object;
105
+ var split$3 = uncurryThis$m(''.split);
106
+
107
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
108
+ var indexedObject = fails$d(function () {
109
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
110
+ // eslint-disable-next-line no-prototype-builtins -- safe
111
+ return !$Object$4('z').propertyIsEnumerable(0);
112
+ }) ? function (it) {
113
+ return classof$7(it) === 'String' ? split$3(it, '') : $Object$4(it);
114
+ } : $Object$4;
115
+
116
+ // we can't use just `it == null` since of `document.all` special case
117
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
118
+ var isNullOrUndefined$3 = function (it) {
119
+ return it === null || it === undefined;
120
+ };
121
+
122
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
123
+
124
+ var $TypeError$a = TypeError;
125
+
126
+ // `RequireObjectCoercible` abstract operation
127
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
128
+ var requireObjectCoercible$4 = function (it) {
129
+ if (isNullOrUndefined$2(it)) throw new $TypeError$a("Can't call method on " + it);
130
+ return it;
131
+ };
132
+
133
+ // toObject with fallback for non-array-like ES3 strings
134
+ var IndexedObject$1 = indexedObject;
135
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
136
+
137
+ var toIndexedObject$5 = function (it) {
138
+ return IndexedObject$1(requireObjectCoercible$3(it));
139
+ };
140
+
141
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
142
+ var documentAll = typeof document == 'object' && document.all;
143
+
144
+ // `IsCallable` abstract operation
145
+ // https://tc39.es/ecma262/#sec-iscallable
146
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
147
+ var isCallable$j = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
148
+ return typeof argument == 'function' || argument === documentAll;
149
+ } : function (argument) {
150
+ return typeof argument == 'function';
151
+ };
152
+
153
+ var isCallable$i = isCallable$j;
154
+
155
+ var isObject$9 = function (it) {
156
+ return typeof it == 'object' ? it !== null : isCallable$i(it);
157
+ };
158
+
159
+ var global$e = global$f;
160
+ var isCallable$h = isCallable$j;
161
+
162
+ var aFunction = function (argument) {
163
+ return isCallable$h(argument) ? argument : undefined;
164
+ };
165
+
166
+ var getBuiltIn$5 = function (namespace, method) {
167
+ return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method];
168
+ };
169
+
170
+ var uncurryThis$l = functionUncurryThis;
171
+
172
+ var objectIsPrototypeOf = uncurryThis$l({}.isPrototypeOf);
173
+
174
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
175
+
176
+ var global$d = global$f;
177
+ var userAgent = engineUserAgent;
178
+
179
+ var process = global$d.process;
180
+ var Deno = global$d.Deno;
181
+ var versions = process && process.versions || Deno && Deno.version;
182
+ var v8 = versions && versions.v8;
183
+ var match, version;
184
+
185
+ if (v8) {
186
+ match = v8.split('.');
187
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
188
+ // but their correct versions are not interesting for us
189
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
190
+ }
191
+
192
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
193
+ // so check `userAgent` even if `.v8` exists, but 0
194
+ if (!version && userAgent) {
195
+ match = userAgent.match(/Edge\/(\d+)/);
196
+ if (!match || match[1] >= 74) {
197
+ match = userAgent.match(/Chrome\/(\d+)/);
198
+ if (match) version = +match[1];
199
+ }
200
+ }
201
+
202
+ var engineV8Version = version;
203
+
204
+ /* eslint-disable es/no-symbol -- required for testing */
205
+ var V8_VERSION = engineV8Version;
206
+ var fails$c = fails$g;
207
+ var global$c = global$f;
208
+
209
+ var $String$6 = global$c.String;
210
+
211
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
212
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
213
+ var symbol = Symbol('symbol detection');
214
+ // Chrome 38 Symbol has incorrect toString conversion
215
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
216
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
217
+ // of course, fail.
218
+ return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
219
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
220
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
221
+ });
222
+
223
+ /* eslint-disable es/no-symbol -- required for testing */
224
+ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
225
+
226
+ var useSymbolAsUid = NATIVE_SYMBOL$2
227
+ && !Symbol.sham
228
+ && typeof Symbol.iterator == 'symbol';
229
+
230
+ var getBuiltIn$4 = getBuiltIn$5;
231
+ var isCallable$g = isCallable$j;
232
+ var isPrototypeOf$2 = objectIsPrototypeOf;
233
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
234
+
235
+ var $Object$3 = Object;
236
+
237
+ var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
238
+ return typeof it == 'symbol';
239
+ } : function (it) {
240
+ var $Symbol = getBuiltIn$4('Symbol');
241
+ return isCallable$g($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
242
+ };
243
+
244
+ var $String$5 = String;
245
+
246
+ var tryToString$2 = function (argument) {
247
+ try {
248
+ return $String$5(argument);
249
+ } catch (error) {
250
+ return 'Object';
251
+ }
252
+ };
253
+
254
+ var isCallable$f = isCallable$j;
255
+ var tryToString$1 = tryToString$2;
256
+
257
+ var $TypeError$9 = TypeError;
258
+
259
+ // `Assert: IsCallable(argument) is true`
260
+ var aCallable$5 = function (argument) {
261
+ if (isCallable$f(argument)) return argument;
262
+ throw new $TypeError$9(tryToString$1(argument) + ' is not a function');
263
+ };
264
+
265
+ var aCallable$4 = aCallable$5;
266
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
267
+
268
+ // `GetMethod` abstract operation
269
+ // https://tc39.es/ecma262/#sec-getmethod
270
+ var getMethod$4 = function (V, P) {
271
+ var func = V[P];
272
+ return isNullOrUndefined$1(func) ? undefined : aCallable$4(func);
273
+ };
274
+
275
+ var call$e = functionCall;
276
+ var isCallable$e = isCallable$j;
277
+ var isObject$8 = isObject$9;
278
+
279
+ var $TypeError$8 = TypeError;
280
+
281
+ // `OrdinaryToPrimitive` abstract operation
282
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
283
+ var ordinaryToPrimitive$1 = function (input, pref) {
284
+ var fn, val;
285
+ if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$8(val = call$e(fn, input))) return val;
286
+ if (isCallable$e(fn = input.valueOf) && !isObject$8(val = call$e(fn, input))) return val;
287
+ if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$8(val = call$e(fn, input))) return val;
288
+ throw new $TypeError$8("Can't convert object to primitive value");
289
+ };
290
+
291
+ var sharedStore = {exports: {}};
292
+
293
+ var isPure = false;
294
+
295
+ var global$b = global$f;
296
+
297
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
298
+ var defineProperty$6 = Object.defineProperty;
299
+
300
+ var defineGlobalProperty$3 = function (key, value) {
301
+ try {
302
+ defineProperty$6(global$b, key, { value: value, configurable: true, writable: true });
303
+ } catch (error) {
304
+ global$b[key] = value;
305
+ } return value;
306
+ };
307
+
308
+ var globalThis$1 = global$f;
309
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
310
+
311
+ var SHARED = '__core-js_shared__';
312
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
313
+
314
+ (store$3.versions || (store$3.versions = [])).push({
315
+ version: '3.36.1',
316
+ mode: 'global',
317
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
318
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
319
+ source: 'https://github.com/zloirock/core-js'
320
+ });
321
+
322
+ var sharedStoreExports = sharedStore.exports;
323
+
324
+ var store$2 = sharedStoreExports;
325
+
326
+ var shared$3 = function (key, value) {
327
+ return store$2[key] || (store$2[key] = value || {});
328
+ };
329
+
330
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
331
+
332
+ var $Object$2 = Object;
333
+
334
+ // `ToObject` abstract operation
335
+ // https://tc39.es/ecma262/#sec-toobject
336
+ var toObject$4 = function (argument) {
337
+ return $Object$2(requireObjectCoercible$2(argument));
338
+ };
339
+
340
+ var uncurryThis$k = functionUncurryThis;
341
+ var toObject$3 = toObject$4;
342
+
343
+ var hasOwnProperty = uncurryThis$k({}.hasOwnProperty);
344
+
345
+ // `HasOwnProperty` abstract operation
346
+ // https://tc39.es/ecma262/#sec-hasownproperty
347
+ // eslint-disable-next-line es/no-object-hasown -- safe
348
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
349
+ return hasOwnProperty(toObject$3(it), key);
350
+ };
351
+
352
+ var uncurryThis$j = functionUncurryThis;
353
+
354
+ var id = 0;
355
+ var postfix = Math.random();
356
+ var toString$6 = uncurryThis$j(1.0.toString);
357
+
358
+ var uid$2 = function (key) {
359
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
360
+ };
361
+
362
+ var global$a = global$f;
363
+ var shared$2 = shared$3;
364
+ var hasOwn$c = hasOwnProperty_1;
365
+ var uid$1 = uid$2;
366
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
367
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
368
+
369
+ var Symbol$1 = global$a.Symbol;
370
+ var WellKnownSymbolsStore = shared$2('wks');
371
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
372
+
373
+ var wellKnownSymbol$e = function (name) {
374
+ if (!hasOwn$c(WellKnownSymbolsStore, name)) {
375
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$c(Symbol$1, name)
376
+ ? Symbol$1[name]
377
+ : createWellKnownSymbol('Symbol.' + name);
378
+ } return WellKnownSymbolsStore[name];
379
+ };
380
+
381
+ var call$d = functionCall;
382
+ var isObject$7 = isObject$9;
383
+ var isSymbol$2 = isSymbol$3;
384
+ var getMethod$3 = getMethod$4;
385
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
386
+ var wellKnownSymbol$d = wellKnownSymbol$e;
387
+
388
+ var $TypeError$7 = TypeError;
389
+ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
390
+
391
+ // `ToPrimitive` abstract operation
392
+ // https://tc39.es/ecma262/#sec-toprimitive
393
+ var toPrimitive$1 = function (input, pref) {
394
+ if (!isObject$7(input) || isSymbol$2(input)) return input;
395
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
396
+ var result;
397
+ if (exoticToPrim) {
398
+ if (pref === undefined) pref = 'default';
399
+ result = call$d(exoticToPrim, input, pref);
400
+ if (!isObject$7(result) || isSymbol$2(result)) return result;
401
+ throw new $TypeError$7("Can't convert object to primitive value");
402
+ }
403
+ if (pref === undefined) pref = 'number';
404
+ return ordinaryToPrimitive(input, pref);
405
+ };
406
+
407
+ var toPrimitive = toPrimitive$1;
408
+ var isSymbol$1 = isSymbol$3;
409
+
410
+ // `ToPropertyKey` abstract operation
411
+ // https://tc39.es/ecma262/#sec-topropertykey
412
+ var toPropertyKey$2 = function (argument) {
413
+ var key = toPrimitive(argument, 'string');
414
+ return isSymbol$1(key) ? key : key + '';
415
+ };
416
+
417
+ var global$9 = global$f;
418
+ var isObject$6 = isObject$9;
419
+
420
+ var document$1 = global$9.document;
421
+ // typeof document.createElement is 'object' in old IE
422
+ var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
423
+
424
+ var documentCreateElement$2 = function (it) {
425
+ return EXISTS$1 ? document$1.createElement(it) : {};
426
+ };
427
+
428
+ var DESCRIPTORS$g = descriptors;
429
+ var fails$b = fails$g;
430
+ var createElement = documentCreateElement$2;
431
+
432
+ // Thanks to IE8 for its funny defineProperty
433
+ var ie8DomDefine = !DESCRIPTORS$g && !fails$b(function () {
434
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
435
+ return Object.defineProperty(createElement('div'), 'a', {
436
+ get: function () { return 7; }
437
+ }).a !== 7;
438
+ });
439
+
440
+ var DESCRIPTORS$f = descriptors;
441
+ var call$c = functionCall;
442
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
443
+ var createPropertyDescriptor$4 = createPropertyDescriptor$5;
444
+ var toIndexedObject$4 = toIndexedObject$5;
445
+ var toPropertyKey$1 = toPropertyKey$2;
446
+ var hasOwn$b = hasOwnProperty_1;
447
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
448
+
449
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
450
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
451
+
452
+ // `Object.getOwnPropertyDescriptor` method
453
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
454
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$f ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
455
+ O = toIndexedObject$4(O);
456
+ P = toPropertyKey$1(P);
457
+ if (IE8_DOM_DEFINE$1) try {
458
+ return $getOwnPropertyDescriptor$1(O, P);
459
+ } catch (error) { /* empty */ }
460
+ if (hasOwn$b(O, P)) return createPropertyDescriptor$4(!call$c(propertyIsEnumerableModule$1.f, O, P), O[P]);
461
+ };
462
+
463
+ var objectDefineProperty = {};
464
+
465
+ var DESCRIPTORS$e = descriptors;
466
+ var fails$a = fails$g;
467
+
468
+ // V8 ~ Chrome 36-
469
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
470
+ var v8PrototypeDefineBug = DESCRIPTORS$e && fails$a(function () {
471
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
472
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
473
+ value: 42,
474
+ writable: false
475
+ }).prototype !== 42;
476
+ });
477
+
478
+ var isObject$5 = isObject$9;
479
+
480
+ var $String$4 = String;
481
+ var $TypeError$6 = TypeError;
482
+
483
+ // `Assert: Type(argument) is Object`
484
+ var anObject$c = function (argument) {
485
+ if (isObject$5(argument)) return argument;
486
+ throw new $TypeError$6($String$4(argument) + ' is not an object');
487
+ };
488
+
489
+ var DESCRIPTORS$d = descriptors;
490
+ var IE8_DOM_DEFINE = ie8DomDefine;
491
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
492
+ var anObject$b = anObject$c;
493
+ var toPropertyKey = toPropertyKey$2;
494
+
495
+ var $TypeError$5 = TypeError;
496
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
497
+ var $defineProperty = Object.defineProperty;
498
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
499
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
500
+ var ENUMERABLE = 'enumerable';
501
+ var CONFIGURABLE$1 = 'configurable';
502
+ var WRITABLE = 'writable';
503
+
504
+ // `Object.defineProperty` method
505
+ // https://tc39.es/ecma262/#sec-object.defineproperty
506
+ objectDefineProperty.f = DESCRIPTORS$d ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
507
+ anObject$b(O);
508
+ P = toPropertyKey(P);
509
+ anObject$b(Attributes);
510
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
511
+ var current = $getOwnPropertyDescriptor(O, P);
512
+ if (current && current[WRITABLE]) {
513
+ O[P] = Attributes.value;
514
+ Attributes = {
515
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
516
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
517
+ writable: false
518
+ };
519
+ }
520
+ } return $defineProperty(O, P, Attributes);
521
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
522
+ anObject$b(O);
523
+ P = toPropertyKey(P);
524
+ anObject$b(Attributes);
525
+ if (IE8_DOM_DEFINE) try {
526
+ return $defineProperty(O, P, Attributes);
527
+ } catch (error) { /* empty */ }
528
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
529
+ if ('value' in Attributes) O[P] = Attributes.value;
530
+ return O;
531
+ };
532
+
533
+ var DESCRIPTORS$c = descriptors;
534
+ var definePropertyModule$4 = objectDefineProperty;
535
+ var createPropertyDescriptor$3 = createPropertyDescriptor$5;
536
+
537
+ var createNonEnumerableProperty$5 = DESCRIPTORS$c ? function (object, key, value) {
538
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
539
+ } : function (object, key, value) {
540
+ object[key] = value;
541
+ return object;
542
+ };
543
+
544
+ var makeBuiltIn$3 = {exports: {}};
545
+
546
+ var DESCRIPTORS$b = descriptors;
547
+ var hasOwn$a = hasOwnProperty_1;
548
+
549
+ var FunctionPrototype$1 = Function.prototype;
550
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
551
+ var getDescriptor = DESCRIPTORS$b && Object.getOwnPropertyDescriptor;
552
+
553
+ var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
554
+ // additional protection from minified / mangled / dropped function names
555
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
556
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$b || (DESCRIPTORS$b && getDescriptor(FunctionPrototype$1, 'name').configurable));
557
+
558
+ var functionName = {
559
+ PROPER: PROPER,
560
+ CONFIGURABLE: CONFIGURABLE
561
+ };
562
+
563
+ var uncurryThis$i = functionUncurryThis;
564
+ var isCallable$d = isCallable$j;
565
+ var store$1 = sharedStoreExports;
566
+
567
+ var functionToString = uncurryThis$i(Function.toString);
568
+
569
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
570
+ if (!isCallable$d(store$1.inspectSource)) {
571
+ store$1.inspectSource = function (it) {
572
+ return functionToString(it);
573
+ };
574
+ }
575
+
576
+ var inspectSource$2 = store$1.inspectSource;
577
+
578
+ var global$8 = global$f;
579
+ var isCallable$c = isCallable$j;
580
+
581
+ var WeakMap$1 = global$8.WeakMap;
582
+
583
+ var weakMapBasicDetection = isCallable$c(WeakMap$1) && /native code/.test(String(WeakMap$1));
584
+
585
+ var shared$1 = shared$3;
586
+ var uid = uid$2;
587
+
588
+ var keys = shared$1('keys');
589
+
590
+ var sharedKey$3 = function (key) {
591
+ return keys[key] || (keys[key] = uid(key));
592
+ };
593
+
594
+ var hiddenKeys$4 = {};
595
+
596
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
597
+ var global$7 = global$f;
598
+ var isObject$4 = isObject$9;
599
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
600
+ var hasOwn$9 = hasOwnProperty_1;
601
+ var shared = sharedStoreExports;
602
+ var sharedKey$2 = sharedKey$3;
603
+ var hiddenKeys$3 = hiddenKeys$4;
604
+
605
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
606
+ var TypeError$3 = global$7.TypeError;
607
+ var WeakMap = global$7.WeakMap;
608
+ var set, get, has;
609
+
610
+ var enforce = function (it) {
611
+ return has(it) ? get(it) : set(it, {});
612
+ };
613
+
614
+ var getterFor = function (TYPE) {
615
+ return function (it) {
616
+ var state;
617
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
618
+ throw new TypeError$3('Incompatible receiver, ' + TYPE + ' required');
619
+ } return state;
620
+ };
621
+ };
622
+
623
+ if (NATIVE_WEAK_MAP || shared.state) {
624
+ var store = shared.state || (shared.state = new WeakMap());
625
+ /* eslint-disable no-self-assign -- prototype methods protection */
626
+ store.get = store.get;
627
+ store.has = store.has;
628
+ store.set = store.set;
629
+ /* eslint-enable no-self-assign -- prototype methods protection */
630
+ set = function (it, metadata) {
631
+ if (store.has(it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
632
+ metadata.facade = it;
633
+ store.set(it, metadata);
634
+ return metadata;
635
+ };
636
+ get = function (it) {
637
+ return store.get(it) || {};
638
+ };
639
+ has = function (it) {
640
+ return store.has(it);
641
+ };
642
+ } else {
643
+ var STATE = sharedKey$2('state');
644
+ hiddenKeys$3[STATE] = true;
645
+ set = function (it, metadata) {
646
+ if (hasOwn$9(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
647
+ metadata.facade = it;
648
+ createNonEnumerableProperty$4(it, STATE, metadata);
649
+ return metadata;
650
+ };
651
+ get = function (it) {
652
+ return hasOwn$9(it, STATE) ? it[STATE] : {};
653
+ };
654
+ has = function (it) {
655
+ return hasOwn$9(it, STATE);
656
+ };
657
+ }
658
+
659
+ var internalState = {
660
+ set: set,
661
+ get: get,
662
+ has: has,
663
+ enforce: enforce,
664
+ getterFor: getterFor
665
+ };
666
+
667
+ var uncurryThis$h = functionUncurryThis;
668
+ var fails$9 = fails$g;
669
+ var isCallable$b = isCallable$j;
670
+ var hasOwn$8 = hasOwnProperty_1;
671
+ var DESCRIPTORS$a = descriptors;
672
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
673
+ var inspectSource$1 = inspectSource$2;
674
+ var InternalStateModule$5 = internalState;
675
+
676
+ var enforceInternalState = InternalStateModule$5.enforce;
677
+ var getInternalState$2 = InternalStateModule$5.get;
678
+ var $String$3 = String;
679
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
680
+ var defineProperty$5 = Object.defineProperty;
681
+ var stringSlice$3 = uncurryThis$h(''.slice);
682
+ var replace$4 = uncurryThis$h(''.replace);
683
+ var join$3 = uncurryThis$h([].join);
684
+
685
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$a && !fails$9(function () {
686
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
687
+ });
688
+
689
+ var TEMPLATE = String(String).split('String');
690
+
691
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
692
+ if (stringSlice$3($String$3(name), 0, 7) === 'Symbol(') {
693
+ name = '[' + replace$4($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
694
+ }
695
+ if (options && options.getter) name = 'get ' + name;
696
+ if (options && options.setter) name = 'set ' + name;
697
+ if (!hasOwn$8(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
698
+ if (DESCRIPTORS$a) defineProperty$5(value, 'name', { value: name, configurable: true });
699
+ else value.name = name;
700
+ }
701
+ if (CONFIGURABLE_LENGTH && options && hasOwn$8(options, 'arity') && value.length !== options.arity) {
702
+ defineProperty$5(value, 'length', { value: options.arity });
703
+ }
704
+ try {
705
+ if (options && hasOwn$8(options, 'constructor') && options.constructor) {
706
+ if (DESCRIPTORS$a) defineProperty$5(value, 'prototype', { writable: false });
707
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
708
+ } else if (value.prototype) value.prototype = undefined;
709
+ } catch (error) { /* empty */ }
710
+ var state = enforceInternalState(value);
711
+ if (!hasOwn$8(state, 'source')) {
712
+ state.source = join$3(TEMPLATE, typeof name == 'string' ? name : '');
713
+ } return value;
714
+ };
715
+
716
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
717
+ // eslint-disable-next-line no-extend-native -- required
718
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
719
+ return isCallable$b(this) && getInternalState$2(this).source || inspectSource$1(this);
720
+ }, 'toString');
721
+
722
+ var makeBuiltInExports = makeBuiltIn$3.exports;
723
+
724
+ var isCallable$a = isCallable$j;
725
+ var definePropertyModule$3 = objectDefineProperty;
726
+ var makeBuiltIn$1 = makeBuiltInExports;
727
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
728
+
729
+ var defineBuiltIn$9 = function (O, key, value, options) {
730
+ if (!options) options = {};
731
+ var simple = options.enumerable;
732
+ var name = options.name !== undefined ? options.name : key;
733
+ if (isCallable$a(value)) makeBuiltIn$1(value, name, options);
734
+ if (options.global) {
735
+ if (simple) O[key] = value;
736
+ else defineGlobalProperty$1(key, value);
737
+ } else {
738
+ try {
739
+ if (!options.unsafe) delete O[key];
740
+ else if (O[key]) simple = true;
741
+ } catch (error) { /* empty */ }
742
+ if (simple) O[key] = value;
743
+ else definePropertyModule$3.f(O, key, {
744
+ value: value,
745
+ enumerable: false,
746
+ configurable: !options.nonConfigurable,
747
+ writable: !options.nonWritable
748
+ });
749
+ } return O;
750
+ };
751
+
752
+ var objectGetOwnPropertyNames = {};
753
+
754
+ var ceil = Math.ceil;
755
+ var floor$3 = Math.floor;
756
+
757
+ // `Math.trunc` method
758
+ // https://tc39.es/ecma262/#sec-math.trunc
759
+ // eslint-disable-next-line es/no-math-trunc -- safe
760
+ var mathTrunc = Math.trunc || function trunc(x) {
761
+ var n = +x;
762
+ return (n > 0 ? floor$3 : ceil)(n);
763
+ };
764
+
765
+ var trunc = mathTrunc;
766
+
767
+ // `ToIntegerOrInfinity` abstract operation
768
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
769
+ var toIntegerOrInfinity$3 = function (argument) {
770
+ var number = +argument;
771
+ // eslint-disable-next-line no-self-compare -- NaN check
772
+ return number !== number || number === 0 ? 0 : trunc(number);
773
+ };
774
+
775
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
776
+
777
+ var max = Math.max;
778
+ var min$1 = Math.min;
779
+
780
+ // Helper for a popular repeating case of the spec:
781
+ // Let integer be ? ToInteger(index).
782
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
783
+ var toAbsoluteIndex$1 = function (index, length) {
784
+ var integer = toIntegerOrInfinity$2(index);
785
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
786
+ };
787
+
788
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
789
+
790
+ var min = Math.min;
791
+
792
+ // `ToLength` abstract operation
793
+ // https://tc39.es/ecma262/#sec-tolength
794
+ var toLength$1 = function (argument) {
795
+ var len = toIntegerOrInfinity$1(argument);
796
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
797
+ };
798
+
799
+ var toLength = toLength$1;
800
+
801
+ // `LengthOfArrayLike` abstract operation
802
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
803
+ var lengthOfArrayLike$2 = function (obj) {
804
+ return toLength(obj.length);
805
+ };
806
+
807
+ var toIndexedObject$3 = toIndexedObject$5;
808
+ var toAbsoluteIndex = toAbsoluteIndex$1;
809
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
810
+
811
+ // `Array.prototype.{ indexOf, includes }` methods implementation
812
+ var createMethod$1 = function (IS_INCLUDES) {
813
+ return function ($this, el, fromIndex) {
814
+ var O = toIndexedObject$3($this);
815
+ var length = lengthOfArrayLike$1(O);
816
+ if (length === 0) return !IS_INCLUDES && -1;
817
+ var index = toAbsoluteIndex(fromIndex, length);
818
+ var value;
819
+ // Array#includes uses SameValueZero equality algorithm
820
+ // eslint-disable-next-line no-self-compare -- NaN check
821
+ if (IS_INCLUDES && el !== el) while (length > index) {
822
+ value = O[index++];
823
+ // eslint-disable-next-line no-self-compare -- NaN check
824
+ if (value !== value) return true;
825
+ // Array#indexOf ignores holes, Array#includes - not
826
+ } else for (;length > index; index++) {
827
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
828
+ } return !IS_INCLUDES && -1;
829
+ };
830
+ };
831
+
832
+ var arrayIncludes = {
833
+ // `Array.prototype.indexOf` method
834
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
835
+ indexOf: createMethod$1(false)
836
+ };
837
+
838
+ var uncurryThis$g = functionUncurryThis;
839
+ var hasOwn$7 = hasOwnProperty_1;
840
+ var toIndexedObject$2 = toIndexedObject$5;
841
+ var indexOf = arrayIncludes.indexOf;
842
+ var hiddenKeys$2 = hiddenKeys$4;
843
+
844
+ var push$5 = uncurryThis$g([].push);
845
+
846
+ var objectKeysInternal = function (object, names) {
847
+ var O = toIndexedObject$2(object);
848
+ var i = 0;
849
+ var result = [];
850
+ var key;
851
+ for (key in O) !hasOwn$7(hiddenKeys$2, key) && hasOwn$7(O, key) && push$5(result, key);
852
+ // Don't enum bug & hidden keys
853
+ while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
854
+ ~indexOf(result, key) || push$5(result, key);
855
+ }
856
+ return result;
857
+ };
858
+
859
+ // IE8- don't enum bug keys
860
+ var enumBugKeys$3 = [
861
+ 'constructor',
862
+ 'hasOwnProperty',
863
+ 'isPrototypeOf',
864
+ 'propertyIsEnumerable',
865
+ 'toLocaleString',
866
+ 'toString',
867
+ 'valueOf'
868
+ ];
869
+
870
+ var internalObjectKeys$1 = objectKeysInternal;
871
+ var enumBugKeys$2 = enumBugKeys$3;
872
+
873
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
874
+
875
+ // `Object.getOwnPropertyNames` method
876
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
877
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
878
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
879
+ return internalObjectKeys$1(O, hiddenKeys$1);
880
+ };
881
+
882
+ var objectGetOwnPropertySymbols = {};
883
+
884
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
885
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
886
+
887
+ var getBuiltIn$3 = getBuiltIn$5;
888
+ var uncurryThis$f = functionUncurryThis;
889
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
890
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
891
+ var anObject$a = anObject$c;
892
+
893
+ var concat$1 = uncurryThis$f([].concat);
894
+
895
+ // all object keys, includes non-enumerable and symbols
896
+ var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
897
+ var keys = getOwnPropertyNamesModule.f(anObject$a(it));
898
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
899
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
900
+ };
901
+
902
+ var hasOwn$6 = hasOwnProperty_1;
903
+ var ownKeys = ownKeys$1;
904
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
905
+ var definePropertyModule$2 = objectDefineProperty;
906
+
907
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
908
+ var keys = ownKeys(source);
909
+ var defineProperty = definePropertyModule$2.f;
910
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
911
+ for (var i = 0; i < keys.length; i++) {
912
+ var key = keys[i];
913
+ if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) {
914
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
915
+ }
916
+ }
917
+ };
918
+
919
+ var fails$8 = fails$g;
920
+ var isCallable$9 = isCallable$j;
921
+
922
+ var replacement = /#|\.prototype\./;
923
+
924
+ var isForced$1 = function (feature, detection) {
925
+ var value = data[normalize(feature)];
926
+ return value === POLYFILL ? true
927
+ : value === NATIVE ? false
928
+ : isCallable$9(detection) ? fails$8(detection)
929
+ : !!detection;
930
+ };
931
+
932
+ var normalize = isForced$1.normalize = function (string) {
933
+ return String(string).replace(replacement, '.').toLowerCase();
934
+ };
935
+
936
+ var data = isForced$1.data = {};
937
+ var NATIVE = isForced$1.NATIVE = 'N';
938
+ var POLYFILL = isForced$1.POLYFILL = 'P';
939
+
940
+ var isForced_1 = isForced$1;
941
+
942
+ var global$6 = global$f;
943
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
944
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
945
+ var defineBuiltIn$8 = defineBuiltIn$9;
946
+ var defineGlobalProperty = defineGlobalProperty$3;
947
+ var copyConstructorProperties = copyConstructorProperties$1;
948
+ var isForced = isForced_1;
949
+
950
+ /*
951
+ options.target - name of the target object
952
+ options.global - target is the global object
953
+ options.stat - export as static methods of target
954
+ options.proto - export as prototype methods of target
955
+ options.real - real prototype method for the `pure` version
956
+ options.forced - export even if the native feature is available
957
+ options.bind - bind methods to the target, required for the `pure` version
958
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
959
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
960
+ options.sham - add a flag to not completely full polyfills
961
+ options.enumerable - export as enumerable property
962
+ options.dontCallGetSet - prevent calling a getter on target
963
+ options.name - the .name of the function if it does not match the key
964
+ */
965
+ var _export = function (options, source) {
966
+ var TARGET = options.target;
967
+ var GLOBAL = options.global;
968
+ var STATIC = options.stat;
969
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
970
+ if (GLOBAL) {
971
+ target = global$6;
972
+ } else if (STATIC) {
973
+ target = global$6[TARGET] || defineGlobalProperty(TARGET, {});
974
+ } else {
975
+ target = global$6[TARGET] && global$6[TARGET].prototype;
976
+ }
977
+ if (target) for (key in source) {
978
+ sourceProperty = source[key];
979
+ if (options.dontCallGetSet) {
980
+ descriptor = getOwnPropertyDescriptor$1(target, key);
981
+ targetProperty = descriptor && descriptor.value;
982
+ } else targetProperty = target[key];
983
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
984
+ // contained in target
985
+ if (!FORCED && targetProperty !== undefined) {
986
+ if (typeof sourceProperty == typeof targetProperty) continue;
987
+ copyConstructorProperties(sourceProperty, targetProperty);
988
+ }
989
+ // add a flag to not completely full polyfills
990
+ if (options.sham || (targetProperty && targetProperty.sham)) {
991
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
992
+ }
993
+ defineBuiltIn$8(target, key, sourceProperty, options);
994
+ }
995
+ };
996
+
997
+ var isPrototypeOf$1 = objectIsPrototypeOf;
998
+
999
+ var $TypeError$4 = TypeError;
1000
+
1001
+ var anInstance$3 = function (it, Prototype) {
1002
+ if (isPrototypeOf$1(Prototype, it)) return it;
1003
+ throw new $TypeError$4('Incorrect invocation');
1004
+ };
1005
+
1006
+ var fails$7 = fails$g;
1007
+
1008
+ var correctPrototypeGetter = !fails$7(function () {
1009
+ function F() { /* empty */ }
1010
+ F.prototype.constructor = null;
1011
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1012
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1013
+ });
1014
+
1015
+ var hasOwn$5 = hasOwnProperty_1;
1016
+ var isCallable$8 = isCallable$j;
1017
+ var toObject$2 = toObject$4;
1018
+ var sharedKey$1 = sharedKey$3;
1019
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1020
+
1021
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1022
+ var $Object$1 = Object;
1023
+ var ObjectPrototype = $Object$1.prototype;
1024
+
1025
+ // `Object.getPrototypeOf` method
1026
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1027
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1028
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1029
+ var object = toObject$2(O);
1030
+ if (hasOwn$5(object, IE_PROTO$1)) return object[IE_PROTO$1];
1031
+ var constructor = object.constructor;
1032
+ if (isCallable$8(constructor) && object instanceof constructor) {
1033
+ return constructor.prototype;
1034
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1035
+ };
1036
+
1037
+ var makeBuiltIn = makeBuiltInExports;
1038
+ var defineProperty$4 = objectDefineProperty;
1039
+
1040
+ var defineBuiltInAccessor$4 = function (target, name, descriptor) {
1041
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1042
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1043
+ return defineProperty$4.f(target, name, descriptor);
1044
+ };
1045
+
1046
+ var DESCRIPTORS$9 = descriptors;
1047
+ var definePropertyModule$1 = objectDefineProperty;
1048
+ var createPropertyDescriptor$2 = createPropertyDescriptor$5;
1049
+
1050
+ var createProperty$2 = function (object, key, value) {
1051
+ if (DESCRIPTORS$9) definePropertyModule$1.f(object, key, createPropertyDescriptor$2(0, value));
1052
+ else object[key] = value;
1053
+ };
1054
+
1055
+ var objectDefineProperties = {};
1056
+
1057
+ var internalObjectKeys = objectKeysInternal;
1058
+ var enumBugKeys$1 = enumBugKeys$3;
1059
+
1060
+ // `Object.keys` method
1061
+ // https://tc39.es/ecma262/#sec-object.keys
1062
+ // eslint-disable-next-line es/no-object-keys -- safe
1063
+ var objectKeys$2 = Object.keys || function keys(O) {
1064
+ return internalObjectKeys(O, enumBugKeys$1);
1065
+ };
1066
+
1067
+ var DESCRIPTORS$8 = descriptors;
1068
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1069
+ var definePropertyModule = objectDefineProperty;
1070
+ var anObject$9 = anObject$c;
1071
+ var toIndexedObject$1 = toIndexedObject$5;
1072
+ var objectKeys$1 = objectKeys$2;
1073
+
1074
+ // `Object.defineProperties` method
1075
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1076
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1077
+ objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1078
+ anObject$9(O);
1079
+ var props = toIndexedObject$1(Properties);
1080
+ var keys = objectKeys$1(Properties);
1081
+ var length = keys.length;
1082
+ var index = 0;
1083
+ var key;
1084
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1085
+ return O;
1086
+ };
1087
+
1088
+ var getBuiltIn$2 = getBuiltIn$5;
1089
+
1090
+ var html$1 = getBuiltIn$2('document', 'documentElement');
1091
+
1092
+ /* global ActiveXObject -- old IE, WSH */
1093
+ var anObject$8 = anObject$c;
1094
+ var definePropertiesModule = objectDefineProperties;
1095
+ var enumBugKeys = enumBugKeys$3;
1096
+ var hiddenKeys = hiddenKeys$4;
1097
+ var html = html$1;
1098
+ var documentCreateElement$1 = documentCreateElement$2;
1099
+ var sharedKey = sharedKey$3;
1100
+
1101
+ var GT = '>';
1102
+ var LT = '<';
1103
+ var PROTOTYPE = 'prototype';
1104
+ var SCRIPT = 'script';
1105
+ var IE_PROTO = sharedKey('IE_PROTO');
1106
+
1107
+ var EmptyConstructor = function () { /* empty */ };
1108
+
1109
+ var scriptTag = function (content) {
1110
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1111
+ };
1112
+
1113
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1114
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1115
+ activeXDocument.write(scriptTag(''));
1116
+ activeXDocument.close();
1117
+ var temp = activeXDocument.parentWindow.Object;
1118
+ activeXDocument = null; // avoid memory leak
1119
+ return temp;
1120
+ };
1121
+
1122
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1123
+ var NullProtoObjectViaIFrame = function () {
1124
+ // Thrash, waste and sodomy: IE GC bug
1125
+ var iframe = documentCreateElement$1('iframe');
1126
+ var JS = 'java' + SCRIPT + ':';
1127
+ var iframeDocument;
1128
+ iframe.style.display = 'none';
1129
+ html.appendChild(iframe);
1130
+ // https://github.com/zloirock/core-js/issues/475
1131
+ iframe.src = String(JS);
1132
+ iframeDocument = iframe.contentWindow.document;
1133
+ iframeDocument.open();
1134
+ iframeDocument.write(scriptTag('document.F=Object'));
1135
+ iframeDocument.close();
1136
+ return iframeDocument.F;
1137
+ };
1138
+
1139
+ // Check for document.domain and active x support
1140
+ // No need to use active x approach when document.domain is not set
1141
+ // see https://github.com/es-shims/es5-shim/issues/150
1142
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1143
+ // avoid IE GC bug
1144
+ var activeXDocument;
1145
+ var NullProtoObject = function () {
1146
+ try {
1147
+ activeXDocument = new ActiveXObject('htmlfile');
1148
+ } catch (error) { /* ignore */ }
1149
+ NullProtoObject = typeof document != 'undefined'
1150
+ ? document.domain && activeXDocument
1151
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1152
+ : NullProtoObjectViaIFrame()
1153
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1154
+ var length = enumBugKeys.length;
1155
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1156
+ return NullProtoObject();
1157
+ };
1158
+
1159
+ hiddenKeys[IE_PROTO] = true;
1160
+
1161
+ // `Object.create` method
1162
+ // https://tc39.es/ecma262/#sec-object.create
1163
+ // eslint-disable-next-line es/no-object-create -- safe
1164
+ var objectCreate = Object.create || function create(O, Properties) {
1165
+ var result;
1166
+ if (O !== null) {
1167
+ EmptyConstructor[PROTOTYPE] = anObject$8(O);
1168
+ result = new EmptyConstructor();
1169
+ EmptyConstructor[PROTOTYPE] = null;
1170
+ // add "__proto__" for Object.getPrototypeOf polyfill
1171
+ result[IE_PROTO] = O;
1172
+ } else result = NullProtoObject();
1173
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1174
+ };
1175
+
1176
+ var fails$6 = fails$g;
1177
+ var isCallable$7 = isCallable$j;
1178
+ var isObject$3 = isObject$9;
1179
+ var getPrototypeOf$2 = objectGetPrototypeOf;
1180
+ var defineBuiltIn$7 = defineBuiltIn$9;
1181
+ var wellKnownSymbol$c = wellKnownSymbol$e;
1182
+
1183
+ var ITERATOR$7 = wellKnownSymbol$c('iterator');
1184
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1185
+
1186
+ // `%IteratorPrototype%` object
1187
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1188
+ var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
1189
+
1190
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1191
+ if ([].keys) {
1192
+ arrayIterator = [].keys();
1193
+ // Safari 8 has buggy iterators w/o `next`
1194
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1195
+ else {
1196
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
1197
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
1198
+ }
1199
+ }
1200
+
1201
+ var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$4) || fails$6(function () {
1202
+ var test = {};
1203
+ // FF44- legacy iterators case
1204
+ return IteratorPrototype$4[ITERATOR$7].call(test) !== test;
1205
+ });
1206
+
1207
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
1208
+
1209
+ // `%IteratorPrototype%[@@iterator]()` method
1210
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1211
+ if (!isCallable$7(IteratorPrototype$4[ITERATOR$7])) {
1212
+ defineBuiltIn$7(IteratorPrototype$4, ITERATOR$7, function () {
1213
+ return this;
1214
+ });
1215
+ }
1216
+
1217
+ var iteratorsCore = {
1218
+ IteratorPrototype: IteratorPrototype$4,
1219
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1220
+ };
1221
+
1222
+ var $$7 = _export;
1223
+ var global$5 = global$f;
1224
+ var anInstance$2 = anInstance$3;
1225
+ var anObject$7 = anObject$c;
1226
+ var isCallable$6 = isCallable$j;
1227
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1228
+ var defineBuiltInAccessor$3 = defineBuiltInAccessor$4;
1229
+ var createProperty$1 = createProperty$2;
1230
+ var fails$5 = fails$g;
1231
+ var hasOwn$4 = hasOwnProperty_1;
1232
+ var wellKnownSymbol$b = wellKnownSymbol$e;
1233
+ var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
1234
+ var DESCRIPTORS$7 = descriptors;
1235
+
1236
+ var CONSTRUCTOR = 'constructor';
1237
+ var ITERATOR$6 = 'Iterator';
1238
+ var TO_STRING_TAG$4 = wellKnownSymbol$b('toStringTag');
1239
+
1240
+ var $TypeError$3 = TypeError;
1241
+ var NativeIterator = global$5[ITERATOR$6];
1242
+
1243
+ // FF56- have non-standard global helper `Iterator`
1244
+ var FORCED = !isCallable$6(NativeIterator)
1245
+ || NativeIterator.prototype !== IteratorPrototype$3
1246
+ // FF44- non-standard `Iterator` passes previous tests
1247
+ || !fails$5(function () { NativeIterator({}); });
1248
+
1249
+ var IteratorConstructor = function Iterator() {
1250
+ anInstance$2(this, IteratorPrototype$3);
1251
+ if (getPrototypeOf$1(this) === IteratorPrototype$3) throw new $TypeError$3('Abstract class Iterator not directly constructable');
1252
+ };
1253
+
1254
+ var defineIteratorPrototypeAccessor = function (key, value) {
1255
+ if (DESCRIPTORS$7) {
1256
+ defineBuiltInAccessor$3(IteratorPrototype$3, key, {
1257
+ configurable: true,
1258
+ get: function () {
1259
+ return value;
1260
+ },
1261
+ set: function (replacement) {
1262
+ anObject$7(this);
1263
+ if (this === IteratorPrototype$3) throw new $TypeError$3("You can't redefine this property");
1264
+ if (hasOwn$4(this, key)) this[key] = replacement;
1265
+ else createProperty$1(this, key, replacement);
1266
+ }
1267
+ });
1268
+ } else IteratorPrototype$3[key] = value;
1269
+ };
1270
+
1271
+ if (!hasOwn$4(IteratorPrototype$3, TO_STRING_TAG$4)) defineIteratorPrototypeAccessor(TO_STRING_TAG$4, ITERATOR$6);
1272
+
1273
+ if (FORCED || !hasOwn$4(IteratorPrototype$3, CONSTRUCTOR) || IteratorPrototype$3[CONSTRUCTOR] === Object) {
1274
+ defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1275
+ }
1276
+
1277
+ IteratorConstructor.prototype = IteratorPrototype$3;
1278
+
1279
+ // `Iterator` constructor
1280
+ // https://github.com/tc39/proposal-iterator-helpers
1281
+ $$7({ global: true, constructor: true, forced: FORCED }, {
1282
+ Iterator: IteratorConstructor
1283
+ });
1284
+
1285
+ // `GetIteratorDirect(obj)` abstract operation
1286
+ // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1287
+ var getIteratorDirect$1 = function (obj) {
1288
+ return {
1289
+ iterator: obj,
1290
+ next: obj.next,
1291
+ done: false
1292
+ };
1293
+ };
1294
+
1295
+ var defineBuiltIn$6 = defineBuiltIn$9;
1296
+
1297
+ var defineBuiltIns$2 = function (target, src, options) {
1298
+ for (var key in src) defineBuiltIn$6(target, key, src[key], options);
1299
+ return target;
1300
+ };
1301
+
1302
+ // `CreateIterResultObject` abstract operation
1303
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1304
+ var createIterResultObject$4 = function (value, done) {
1305
+ return { value: value, done: done };
1306
+ };
1307
+
1308
+ var call$b = functionCall;
1309
+ var anObject$6 = anObject$c;
1310
+ var getMethod$2 = getMethod$4;
1311
+
1312
+ var iteratorClose$2 = function (iterator, kind, value) {
1313
+ var innerResult, innerError;
1314
+ anObject$6(iterator);
1315
+ try {
1316
+ innerResult = getMethod$2(iterator, 'return');
1317
+ if (!innerResult) {
1318
+ if (kind === 'throw') throw value;
1319
+ return value;
1320
+ }
1321
+ innerResult = call$b(innerResult, iterator);
1322
+ } catch (error) {
1323
+ innerError = true;
1324
+ innerResult = error;
1325
+ }
1326
+ if (kind === 'throw') throw value;
1327
+ if (innerError) throw innerResult;
1328
+ anObject$6(innerResult);
1329
+ return value;
1330
+ };
1331
+
1332
+ var call$a = functionCall;
1333
+ var create$3 = objectCreate;
1334
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1335
+ var defineBuiltIns$1 = defineBuiltIns$2;
1336
+ var wellKnownSymbol$a = wellKnownSymbol$e;
1337
+ var InternalStateModule$4 = internalState;
1338
+ var getMethod$1 = getMethod$4;
1339
+ var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1340
+ var createIterResultObject$3 = createIterResultObject$4;
1341
+ var iteratorClose$1 = iteratorClose$2;
1342
+
1343
+ var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
1344
+ var ITERATOR_HELPER = 'IteratorHelper';
1345
+ var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1346
+ var setInternalState$4 = InternalStateModule$4.set;
1347
+
1348
+ var createIteratorProxyPrototype = function (IS_ITERATOR) {
1349
+ var getInternalState = InternalStateModule$4.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1350
+
1351
+ return defineBuiltIns$1(create$3(IteratorPrototype$2), {
1352
+ next: function next() {
1353
+ var state = getInternalState(this);
1354
+ // for simplification:
1355
+ // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
1356
+ // for `%IteratorHelperPrototype%.next` - just a value
1357
+ if (IS_ITERATOR) return state.nextHandler();
1358
+ try {
1359
+ var result = state.done ? undefined : state.nextHandler();
1360
+ return createIterResultObject$3(result, state.done);
1361
+ } catch (error) {
1362
+ state.done = true;
1363
+ throw error;
1364
+ }
1365
+ },
1366
+ 'return': function () {
1367
+ var state = getInternalState(this);
1368
+ var iterator = state.iterator;
1369
+ state.done = true;
1370
+ if (IS_ITERATOR) {
1371
+ var returnMethod = getMethod$1(iterator, 'return');
1372
+ return returnMethod ? call$a(returnMethod, iterator) : createIterResultObject$3(undefined, true);
1373
+ }
1374
+ if (state.inner) try {
1375
+ iteratorClose$1(state.inner.iterator, 'normal');
1376
+ } catch (error) {
1377
+ return iteratorClose$1(iterator, 'throw', error);
1378
+ }
1379
+ iteratorClose$1(iterator, 'normal');
1380
+ return createIterResultObject$3(undefined, true);
1381
+ }
1382
+ });
1383
+ };
1384
+
1385
+ var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1386
+ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1387
+
1388
+ createNonEnumerableProperty$2(IteratorHelperPrototype, TO_STRING_TAG$3, 'Iterator Helper');
1389
+
1390
+ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1391
+ var IteratorProxy = function Iterator(record, state) {
1392
+ if (state) {
1393
+ state.iterator = record.iterator;
1394
+ state.next = record.next;
1395
+ } else state = record;
1396
+ state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
1397
+ state.nextHandler = nextHandler;
1398
+ state.counter = 0;
1399
+ state.done = false;
1400
+ setInternalState$4(this, state);
1401
+ };
1402
+
1403
+ IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
1404
+
1405
+ return IteratorProxy;
1406
+ };
1407
+
1408
+ var anObject$5 = anObject$c;
1409
+ var iteratorClose = iteratorClose$2;
1410
+
1411
+ // call something on iterator step with safe closing on error
1412
+ var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
1413
+ try {
1414
+ return ENTRIES ? fn(anObject$5(value)[0], value[1]) : fn(value);
1415
+ } catch (error) {
1416
+ iteratorClose(iterator, 'throw', error);
1417
+ }
1418
+ };
1419
+
1420
+ var call$9 = functionCall;
1421
+ var aCallable$3 = aCallable$5;
1422
+ var anObject$4 = anObject$c;
1423
+ var getIteratorDirect = getIteratorDirect$1;
1424
+ var createIteratorProxy = iteratorCreateProxy;
1425
+ var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
1426
+
1427
+ var IteratorProxy = createIteratorProxy(function () {
1428
+ var iterator = this.iterator;
1429
+ var result = anObject$4(call$9(this.next, iterator));
1430
+ var done = this.done = !!result.done;
1431
+ if (!done) return callWithSafeIterationClosing$1(iterator, this.mapper, [result.value, this.counter++], true);
1432
+ });
1433
+
1434
+ // `Iterator.prototype.map` method
1435
+ // https://github.com/tc39/proposal-iterator-helpers
1436
+ var iteratorMap = function map(mapper) {
1437
+ anObject$4(this);
1438
+ aCallable$3(mapper);
1439
+ return new IteratorProxy(getIteratorDirect(this), {
1440
+ mapper: mapper
1441
+ });
1442
+ };
1443
+
1444
+ var $$6 = _export;
1445
+ var map = iteratorMap;
1446
+ var IS_PURE$1 = isPure;
1447
+
1448
+ // `Iterator.prototype.map` method
1449
+ // https://github.com/tc39/proposal-iterator-helpers
1450
+ $$6({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1451
+ map: map
1452
+ });
1453
+
1454
+ var wellKnownSymbol$9 = wellKnownSymbol$e;
1455
+ var create$2 = objectCreate;
1456
+ var defineProperty$3 = objectDefineProperty.f;
1457
+
1458
+ var UNSCOPABLES = wellKnownSymbol$9('unscopables');
1459
+ var ArrayPrototype$1 = Array.prototype;
1460
+
1461
+ // Array.prototype[@@unscopables]
1462
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1463
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1464
+ defineProperty$3(ArrayPrototype$1, UNSCOPABLES, {
1465
+ configurable: true,
1466
+ value: create$2(null)
1467
+ });
1468
+ }
1469
+
1470
+ // add a key to Array.prototype[@@unscopables]
1471
+ var addToUnscopables$1 = function (key) {
1472
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
1473
+ };
1474
+
1475
+ var iterators = {};
1476
+
1477
+ var defineProperty$2 = objectDefineProperty.f;
1478
+ var hasOwn$3 = hasOwnProperty_1;
1479
+ var wellKnownSymbol$8 = wellKnownSymbol$e;
1480
+
1481
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1482
+
1483
+ var setToStringTag$5 = function (target, TAG, STATIC) {
1484
+ if (target && !STATIC) target = target.prototype;
1485
+ if (target && !hasOwn$3(target, TO_STRING_TAG$2)) {
1486
+ defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1487
+ }
1488
+ };
1489
+
1490
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1491
+ var create$1 = objectCreate;
1492
+ var createPropertyDescriptor$1 = createPropertyDescriptor$5;
1493
+ var setToStringTag$4 = setToStringTag$5;
1494
+ var Iterators$4 = iterators;
1495
+
1496
+ var returnThis$1 = function () { return this; };
1497
+
1498
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1499
+ var TO_STRING_TAG = NAME + ' Iterator';
1500
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1501
+ setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
1502
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1503
+ return IteratorConstructor;
1504
+ };
1505
+
1506
+ var uncurryThis$e = functionUncurryThis;
1507
+ var aCallable$2 = aCallable$5;
1508
+
1509
+ var functionUncurryThisAccessor = function (object, key, method) {
1510
+ try {
1511
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1512
+ return uncurryThis$e(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
1513
+ } catch (error) { /* empty */ }
1514
+ };
1515
+
1516
+ var isObject$2 = isObject$9;
1517
+
1518
+ var isPossiblePrototype$1 = function (argument) {
1519
+ return isObject$2(argument) || argument === null;
1520
+ };
1521
+
1522
+ var isPossiblePrototype = isPossiblePrototype$1;
1523
+
1524
+ var $String$2 = String;
1525
+ var $TypeError$2 = TypeError;
1526
+
1527
+ var aPossiblePrototype$1 = function (argument) {
1528
+ if (isPossiblePrototype(argument)) return argument;
1529
+ throw new $TypeError$2("Can't set " + $String$2(argument) + ' as a prototype');
1530
+ };
1531
+
1532
+ /* eslint-disable no-proto -- safe */
1533
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1534
+ var isObject$1 = isObject$9;
1535
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
1536
+ var aPossiblePrototype = aPossiblePrototype$1;
1537
+
1538
+ // `Object.setPrototypeOf` method
1539
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1540
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1541
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1542
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1543
+ var CORRECT_SETTER = false;
1544
+ var test = {};
1545
+ var setter;
1546
+ try {
1547
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1548
+ setter(test, []);
1549
+ CORRECT_SETTER = test instanceof Array;
1550
+ } catch (error) { /* empty */ }
1551
+ return function setPrototypeOf(O, proto) {
1552
+ requireObjectCoercible$1(O);
1553
+ aPossiblePrototype(proto);
1554
+ if (!isObject$1(O)) return O;
1555
+ if (CORRECT_SETTER) setter(O, proto);
1556
+ else O.__proto__ = proto;
1557
+ return O;
1558
+ };
1559
+ }() : undefined);
1560
+
1561
+ var $$5 = _export;
1562
+ var call$8 = functionCall;
1563
+ var FunctionName = functionName;
1564
+ var isCallable$5 = isCallable$j;
1565
+ var createIteratorConstructor$1 = iteratorCreateConstructor;
1566
+ var getPrototypeOf = objectGetPrototypeOf;
1567
+ var setPrototypeOf = objectSetPrototypeOf;
1568
+ var setToStringTag$3 = setToStringTag$5;
1569
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1570
+ var defineBuiltIn$5 = defineBuiltIn$9;
1571
+ var wellKnownSymbol$7 = wellKnownSymbol$e;
1572
+ var Iterators$3 = iterators;
1573
+ var IteratorsCore = iteratorsCore;
1574
+
1575
+ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1576
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1577
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1578
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1579
+ var ITERATOR$5 = wellKnownSymbol$7('iterator');
1580
+ var KEYS = 'keys';
1581
+ var VALUES = 'values';
1582
+ var ENTRIES = 'entries';
1583
+
1584
+ var returnThis = function () { return this; };
1585
+
1586
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1587
+ createIteratorConstructor$1(IteratorConstructor, NAME, next);
1588
+
1589
+ var getIterationMethod = function (KIND) {
1590
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1591
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1592
+
1593
+ switch (KIND) {
1594
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1595
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1596
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1597
+ }
1598
+
1599
+ return function () { return new IteratorConstructor(this); };
1600
+ };
1601
+
1602
+ var TO_STRING_TAG = NAME + ' Iterator';
1603
+ var INCORRECT_VALUES_NAME = false;
1604
+ var IterablePrototype = Iterable.prototype;
1605
+ var nativeIterator = IterablePrototype[ITERATOR$5]
1606
+ || IterablePrototype['@@iterator']
1607
+ || DEFAULT && IterablePrototype[DEFAULT];
1608
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1609
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1610
+ var CurrentIteratorPrototype, methods, KEY;
1611
+
1612
+ // fix native
1613
+ if (anyNativeIterator) {
1614
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1615
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1616
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1617
+ if (setPrototypeOf) {
1618
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1619
+ } else if (!isCallable$5(CurrentIteratorPrototype[ITERATOR$5])) {
1620
+ defineBuiltIn$5(CurrentIteratorPrototype, ITERATOR$5, returnThis);
1621
+ }
1622
+ }
1623
+ // Set @@toStringTag to native iterators
1624
+ setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
1625
+ }
1626
+ }
1627
+
1628
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1629
+ if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1630
+ if (CONFIGURABLE_FUNCTION_NAME) {
1631
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1632
+ } else {
1633
+ INCORRECT_VALUES_NAME = true;
1634
+ defaultIterator = function values() { return call$8(nativeIterator, this); };
1635
+ }
1636
+ }
1637
+
1638
+ // export additional methods
1639
+ if (DEFAULT) {
1640
+ methods = {
1641
+ values: getIterationMethod(VALUES),
1642
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1643
+ entries: getIterationMethod(ENTRIES)
1644
+ };
1645
+ if (FORCED) for (KEY in methods) {
1646
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1647
+ defineBuiltIn$5(IterablePrototype, KEY, methods[KEY]);
1648
+ }
1649
+ } else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1650
+ }
1651
+
1652
+ // define iterator
1653
+ if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
1654
+ defineBuiltIn$5(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
1655
+ }
1656
+ Iterators$3[NAME] = defaultIterator;
1657
+
1658
+ return methods;
1659
+ };
1660
+
1661
+ var toIndexedObject = toIndexedObject$5;
1662
+ var addToUnscopables = addToUnscopables$1;
1663
+ var Iterators$2 = iterators;
1664
+ var InternalStateModule$3 = internalState;
1665
+ var defineProperty$1 = objectDefineProperty.f;
1666
+ var defineIterator$1 = iteratorDefine;
1667
+ var createIterResultObject$2 = createIterResultObject$4;
1668
+ var DESCRIPTORS$6 = descriptors;
1669
+
1670
+ var ARRAY_ITERATOR = 'Array Iterator';
1671
+ var setInternalState$3 = InternalStateModule$3.set;
1672
+ var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
1673
+
1674
+ // `Array.prototype.entries` method
1675
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1676
+ // `Array.prototype.keys` method
1677
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1678
+ // `Array.prototype.values` method
1679
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1680
+ // `Array.prototype[@@iterator]` method
1681
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1682
+ // `CreateArrayIterator` internal method
1683
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1684
+ var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
1685
+ setInternalState$3(this, {
1686
+ type: ARRAY_ITERATOR,
1687
+ target: toIndexedObject(iterated), // target
1688
+ index: 0, // next index
1689
+ kind: kind // kind
1690
+ });
1691
+ // `%ArrayIteratorPrototype%.next` method
1692
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1693
+ }, function () {
1694
+ var state = getInternalState$1(this);
1695
+ var target = state.target;
1696
+ var index = state.index++;
1697
+ if (!target || index >= target.length) {
1698
+ state.target = undefined;
1699
+ return createIterResultObject$2(undefined, true);
1700
+ }
1701
+ switch (state.kind) {
1702
+ case 'keys': return createIterResultObject$2(index, false);
1703
+ case 'values': return createIterResultObject$2(target[index], false);
1704
+ } return createIterResultObject$2([index, target[index]], false);
1705
+ }, 'values');
1706
+
1707
+ // argumentsList[@@iterator] is %ArrayProto_values%
1708
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1709
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1710
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1711
+
1712
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1713
+ addToUnscopables('keys');
1714
+ addToUnscopables('values');
1715
+ addToUnscopables('entries');
1716
+
1717
+ // V8 ~ Chrome 45- bug
1718
+ if (DESCRIPTORS$6 && values.name !== 'values') try {
1719
+ defineProperty$1(values, 'name', { value: 'values' });
1720
+ } catch (error) { /* empty */ }
1721
+
1722
+ var DESCRIPTORS$5 = descriptors;
1723
+ var uncurryThis$d = functionUncurryThis;
1724
+ var call$7 = functionCall;
1725
+ var fails$4 = fails$g;
1726
+ var objectKeys = objectKeys$2;
1727
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1728
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1729
+ var toObject$1 = toObject$4;
1730
+ var IndexedObject = indexedObject;
1731
+
1732
+ // eslint-disable-next-line es/no-object-assign -- safe
1733
+ var $assign = Object.assign;
1734
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1735
+ var defineProperty = Object.defineProperty;
1736
+ var concat = uncurryThis$d([].concat);
1737
+
1738
+ // `Object.assign` method
1739
+ // https://tc39.es/ecma262/#sec-object.assign
1740
+ var objectAssign = !$assign || fails$4(function () {
1741
+ // should have correct order of operations (Edge bug)
1742
+ if (DESCRIPTORS$5 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1743
+ enumerable: true,
1744
+ get: function () {
1745
+ defineProperty(this, 'b', {
1746
+ value: 3,
1747
+ enumerable: false
1748
+ });
1749
+ }
1750
+ }), { b: 2 })).b !== 1) return true;
1751
+ // should work with symbols and should have deterministic property order (V8 bug)
1752
+ var A = {};
1753
+ var B = {};
1754
+ // eslint-disable-next-line es/no-symbol -- safe
1755
+ var symbol = Symbol('assign detection');
1756
+ var alphabet = 'abcdefghijklmnopqrst';
1757
+ A[symbol] = 7;
1758
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1759
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1760
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1761
+ var T = toObject$1(target);
1762
+ var argumentsLength = arguments.length;
1763
+ var index = 1;
1764
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1765
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1766
+ while (argumentsLength > index) {
1767
+ var S = IndexedObject(arguments[index++]);
1768
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1769
+ var length = keys.length;
1770
+ var j = 0;
1771
+ var key;
1772
+ while (length > j) {
1773
+ key = keys[j++];
1774
+ if (!DESCRIPTORS$5 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
1775
+ }
1776
+ } return T;
1777
+ } : $assign;
1778
+
1779
+ var $$4 = _export;
1780
+ var assign$1 = objectAssign;
1781
+
1782
+ // `Object.assign` method
1783
+ // https://tc39.es/ecma262/#sec-object.assign
1784
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1785
+ $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
1786
+ assign: assign$1
1787
+ });
1788
+
1789
+ // iterable DOM collections
1790
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1791
+ var domIterables = {
1792
+ CSSRuleList: 0,
1793
+ CSSStyleDeclaration: 0,
1794
+ CSSValueList: 0,
1795
+ ClientRectList: 0,
1796
+ DOMRectList: 0,
1797
+ DOMStringList: 0,
1798
+ DOMTokenList: 1,
1799
+ DataTransferItemList: 0,
1800
+ FileList: 0,
1801
+ HTMLAllCollection: 0,
1802
+ HTMLCollection: 0,
1803
+ HTMLFormElement: 0,
1804
+ HTMLSelectElement: 0,
1805
+ MediaList: 0,
1806
+ MimeTypeArray: 0,
1807
+ NamedNodeMap: 0,
1808
+ NodeList: 1,
1809
+ PaintRequestList: 0,
1810
+ Plugin: 0,
1811
+ PluginArray: 0,
1812
+ SVGLengthList: 0,
1813
+ SVGNumberList: 0,
1814
+ SVGPathSegList: 0,
1815
+ SVGPointList: 0,
1816
+ SVGStringList: 0,
1817
+ SVGTransformList: 0,
1818
+ SourceBufferList: 0,
1819
+ StyleSheetList: 0,
1820
+ TextTrackCueList: 0,
1821
+ TextTrackList: 0,
1822
+ TouchList: 0
1823
+ };
1824
+
1825
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1826
+ var documentCreateElement = documentCreateElement$2;
1827
+
1828
+ var classList = documentCreateElement('span').classList;
1829
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1830
+
1831
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1832
+
1833
+ var global$4 = global$f;
1834
+ var DOMIterables = domIterables;
1835
+ var DOMTokenListPrototype = domTokenListPrototype;
1836
+ var ArrayIteratorMethods = es_array_iterator;
1837
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
1838
+ var setToStringTag$2 = setToStringTag$5;
1839
+ var wellKnownSymbol$6 = wellKnownSymbol$e;
1840
+
1841
+ var ITERATOR$4 = wellKnownSymbol$6('iterator');
1842
+ var ArrayValues = ArrayIteratorMethods.values;
1843
+
1844
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1845
+ if (CollectionPrototype) {
1846
+ // some Chrome versions have non-configurable methods on DOMTokenList
1847
+ if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
1848
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
1849
+ } catch (error) {
1850
+ CollectionPrototype[ITERATOR$4] = ArrayValues;
1851
+ }
1852
+ setToStringTag$2(CollectionPrototype, COLLECTION_NAME, true);
1853
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1854
+ // some Chrome versions have non-configurable methods on DOMTokenList
1855
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1856
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1857
+ } catch (error) {
1858
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1859
+ }
1860
+ }
1861
+ }
1862
+ };
1863
+
1864
+ for (var COLLECTION_NAME in DOMIterables) {
1865
+ handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1866
+ }
1867
+
1868
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1869
+
1870
+ function styleInject(css, ref) {
1871
+ if ( ref === void 0 ) ref = {};
1872
+ var insertAt = ref.insertAt;
1873
+
1874
+ if (!css || typeof document === 'undefined') { return; }
1875
+
1876
+ var head = document.head || document.getElementsByTagName('head')[0];
1877
+ var style = document.createElement('style');
1878
+ style.type = 'text/css';
1879
+
1880
+ if (insertAt === 'top') {
1881
+ if (head.firstChild) {
1882
+ head.insertBefore(style, head.firstChild);
1883
+ } else {
1884
+ head.appendChild(style);
1885
+ }
1886
+ } else {
1887
+ head.appendChild(style);
1888
+ }
1889
+
1890
+ if (style.styleSheet) {
1891
+ style.styleSheet.cssText = css;
1892
+ } else {
1893
+ style.appendChild(document.createTextNode(css));
1894
+ }
1895
+ }
1896
+
1897
+ var NATIVE_BIND$1 = functionBindNative;
1898
+
1899
+ var FunctionPrototype = Function.prototype;
1900
+ var apply$1 = FunctionPrototype.apply;
1901
+ var call$6 = FunctionPrototype.call;
1902
+
1903
+ // eslint-disable-next-line es/no-reflect -- safe
1904
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$6.bind(apply$1) : function () {
1905
+ return call$6.apply(apply$1, arguments);
1906
+ });
1907
+
1908
+ var uncurryThis$c = functionUncurryThis;
1909
+
1910
+ var arraySlice$3 = uncurryThis$c([].slice);
1911
+
1912
+ var classof$6 = classofRaw$2;
1913
+
1914
+ // `IsArray` abstract operation
1915
+ // https://tc39.es/ecma262/#sec-isarray
1916
+ // eslint-disable-next-line es/no-array-isarray -- safe
1917
+ var isArray$1 = Array.isArray || function isArray(argument) {
1918
+ return classof$6(argument) === 'Array';
1919
+ };
1920
+
1921
+ var wellKnownSymbol$5 = wellKnownSymbol$e;
1922
+
1923
+ var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
1924
+ var test = {};
1925
+
1926
+ test[TO_STRING_TAG$1] = 'z';
1927
+
1928
+ var toStringTagSupport = String(test) === '[object z]';
1929
+
1930
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1931
+ var isCallable$4 = isCallable$j;
1932
+ var classofRaw$1 = classofRaw$2;
1933
+ var wellKnownSymbol$4 = wellKnownSymbol$e;
1934
+
1935
+ var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1936
+ var $Object = Object;
1937
+
1938
+ // ES3 wrong here
1939
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1940
+
1941
+ // fallback for IE11 Script Access Denied error
1942
+ var tryGet = function (it, key) {
1943
+ try {
1944
+ return it[key];
1945
+ } catch (error) { /* empty */ }
1946
+ };
1947
+
1948
+ // getting tag from ES6+ `Object.prototype.toString`
1949
+ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1950
+ var O, tag, result;
1951
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1952
+ // @@toStringTag case
1953
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1954
+ // builtinTag case
1955
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1956
+ // ES3 arguments fallback
1957
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
1958
+ };
1959
+
1960
+ var classof$4 = classof$5;
1961
+
1962
+ var $String$1 = String;
1963
+
1964
+ var toString$5 = function (argument) {
1965
+ if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1966
+ return $String$1(argument);
1967
+ };
1968
+
1969
+ var uncurryThis$b = functionUncurryThis;
1970
+ var isArray = isArray$1;
1971
+ var isCallable$3 = isCallable$j;
1972
+ var classof$3 = classofRaw$2;
1973
+ var toString$4 = toString$5;
1974
+
1975
+ var push$4 = uncurryThis$b([].push);
1976
+
1977
+ var getJsonReplacerFunction = function (replacer) {
1978
+ if (isCallable$3(replacer)) return replacer;
1979
+ if (!isArray(replacer)) return;
1980
+ var rawLength = replacer.length;
1981
+ var keys = [];
1982
+ for (var i = 0; i < rawLength; i++) {
1983
+ var element = replacer[i];
1984
+ if (typeof element == 'string') push$4(keys, element);
1985
+ else if (typeof element == 'number' || classof$3(element) === 'Number' || classof$3(element) === 'String') push$4(keys, toString$4(element));
1986
+ }
1987
+ var keysLength = keys.length;
1988
+ var root = true;
1989
+ return function (key, value) {
1990
+ if (root) {
1991
+ root = false;
1992
+ return value;
1993
+ }
1994
+ if (isArray(this)) return value;
1995
+ for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
1996
+ };
1997
+ };
1998
+
1999
+ var $$3 = _export;
2000
+ var getBuiltIn$1 = getBuiltIn$5;
2001
+ var apply = functionApply;
2002
+ var call$5 = functionCall;
2003
+ var uncurryThis$a = functionUncurryThis;
2004
+ var fails$3 = fails$g;
2005
+ var isCallable$2 = isCallable$j;
2006
+ var isSymbol = isSymbol$3;
2007
+ var arraySlice$2 = arraySlice$3;
2008
+ var getReplacerFunction = getJsonReplacerFunction;
2009
+ var NATIVE_SYMBOL = symbolConstructorDetection;
2010
+
2011
+ var $String = String;
2012
+ var $stringify = getBuiltIn$1('JSON', 'stringify');
2013
+ var exec$3 = uncurryThis$a(/./.exec);
2014
+ var charAt$4 = uncurryThis$a(''.charAt);
2015
+ var charCodeAt$2 = uncurryThis$a(''.charCodeAt);
2016
+ var replace$3 = uncurryThis$a(''.replace);
2017
+ var numberToString$1 = uncurryThis$a(1.0.toString);
2018
+
2019
+ var tester = /[\uD800-\uDFFF]/g;
2020
+ var low = /^[\uD800-\uDBFF]$/;
2021
+ var hi = /^[\uDC00-\uDFFF]$/;
2022
+
2023
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$3(function () {
2024
+ var symbol = getBuiltIn$1('Symbol')('stringify detection');
2025
+ // MS Edge converts symbol values to JSON as {}
2026
+ return $stringify([symbol]) !== '[null]'
2027
+ // WebKit converts symbol values to JSON as null
2028
+ || $stringify({ a: symbol }) !== '{}'
2029
+ // V8 throws on boxed symbols
2030
+ || $stringify(Object(symbol)) !== '{}';
2031
+ });
2032
+
2033
+ // https://github.com/tc39/proposal-well-formed-stringify
2034
+ var ILL_FORMED_UNICODE = fails$3(function () {
2035
+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
2036
+ || $stringify('\uDEAD') !== '"\\udead"';
2037
+ });
2038
+
2039
+ var stringifyWithSymbolsFix = function (it, replacer) {
2040
+ var args = arraySlice$2(arguments);
2041
+ var $replacer = getReplacerFunction(replacer);
2042
+ if (!isCallable$2($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
2043
+ args[1] = function (key, value) {
2044
+ // some old implementations (like WebKit) could pass numbers as keys
2045
+ if (isCallable$2($replacer)) value = call$5($replacer, this, $String(key), value);
2046
+ if (!isSymbol(value)) return value;
2047
+ };
2048
+ return apply($stringify, null, args);
2049
+ };
2050
+
2051
+ var fixIllFormed = function (match, offset, string) {
2052
+ var prev = charAt$4(string, offset - 1);
2053
+ var next = charAt$4(string, offset + 1);
2054
+ if ((exec$3(low, match) && !exec$3(hi, next)) || (exec$3(hi, match) && !exec$3(low, prev))) {
2055
+ return '\\u' + numberToString$1(charCodeAt$2(match, 0), 16);
2056
+ } return match;
2057
+ };
2058
+
2059
+ if ($stringify) {
2060
+ // `JSON.stringify` method
2061
+ // https://tc39.es/ecma262/#sec-json.stringify
2062
+ $$3({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
2063
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
2064
+ stringify: function stringify(it, replacer, space) {
2065
+ var args = arraySlice$2(arguments);
2066
+ var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
2067
+ return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$3(result, tester, fixIllFormed) : result;
2068
+ }
2069
+ });
2070
+ }
2071
+
2072
+ var anObject$3 = anObject$c;
2073
+
2074
+ // `RegExp.prototype.flags` getter implementation
2075
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2076
+ var regexpFlags = function () {
2077
+ var that = anObject$3(this);
2078
+ var result = '';
2079
+ if (that.hasIndices) result += 'd';
2080
+ if (that.global) result += 'g';
2081
+ if (that.ignoreCase) result += 'i';
2082
+ if (that.multiline) result += 'm';
2083
+ if (that.dotAll) result += 's';
2084
+ if (that.unicode) result += 'u';
2085
+ if (that.unicodeSets) result += 'v';
2086
+ if (that.sticky) result += 'y';
2087
+ return result;
2088
+ };
2089
+
2090
+ var call$4 = functionCall;
2091
+ var hasOwn$2 = hasOwnProperty_1;
2092
+ var isPrototypeOf = objectIsPrototypeOf;
2093
+ var regExpFlags = regexpFlags;
2094
+
2095
+ var RegExpPrototype$1 = RegExp.prototype;
2096
+
2097
+ var regexpGetFlags = function (R) {
2098
+ var flags = R.flags;
2099
+ return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
2100
+ ? call$4(regExpFlags, R) : flags;
2101
+ };
2102
+
2103
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
2104
+ var defineBuiltIn$4 = defineBuiltIn$9;
2105
+ var anObject$2 = anObject$c;
2106
+ var $toString$2 = toString$5;
2107
+ var fails$2 = fails$g;
2108
+ var getRegExpFlags = regexpGetFlags;
2109
+
2110
+ var TO_STRING = 'toString';
2111
+ var RegExpPrototype = RegExp.prototype;
2112
+ var nativeToString = RegExpPrototype[TO_STRING];
2113
+
2114
+ var NOT_GENERIC = fails$2(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
2115
+ // FF44- RegExp#toString has a wrong name
2116
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
2117
+
2118
+ // `RegExp.prototype.toString` method
2119
+ // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
2120
+ if (NOT_GENERIC || INCORRECT_NAME) {
2121
+ defineBuiltIn$4(RegExpPrototype, TO_STRING, function toString() {
2122
+ var R = anObject$2(this);
2123
+ var pattern = $toString$2(R.source);
2124
+ var flags = $toString$2(getRegExpFlags(R));
2125
+ return '/' + pattern + '/' + flags;
2126
+ }, { unsafe: true });
2127
+ }
2128
+
2129
+ var uncurryThis$9 = functionUncurryThis;
2130
+ var toIntegerOrInfinity = toIntegerOrInfinity$3;
2131
+ var toString$3 = toString$5;
2132
+ var requireObjectCoercible = requireObjectCoercible$4;
2133
+
2134
+ var charAt$3 = uncurryThis$9(''.charAt);
2135
+ var charCodeAt$1 = uncurryThis$9(''.charCodeAt);
2136
+ var stringSlice$2 = uncurryThis$9(''.slice);
2137
+
2138
+ var createMethod = function (CONVERT_TO_STRING) {
2139
+ return function ($this, pos) {
2140
+ var S = toString$3(requireObjectCoercible($this));
2141
+ var position = toIntegerOrInfinity(pos);
2142
+ var size = S.length;
2143
+ var first, second;
2144
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2145
+ first = charCodeAt$1(S, position);
2146
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
2147
+ || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
2148
+ ? CONVERT_TO_STRING
2149
+ ? charAt$3(S, position)
2150
+ : first
2151
+ : CONVERT_TO_STRING
2152
+ ? stringSlice$2(S, position, position + 2)
2153
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2154
+ };
2155
+ };
2156
+
2157
+ var stringMultibyte = {
2158
+ // `String.prototype.codePointAt` method
2159
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2160
+ codeAt: createMethod(false),
2161
+ // `String.prototype.at` method
2162
+ // https://github.com/mathiasbynens/String.prototype.at
2163
+ charAt: createMethod(true)
2164
+ };
2165
+
2166
+ var charAt$2 = stringMultibyte.charAt;
2167
+ var toString$2 = toString$5;
2168
+ var InternalStateModule$2 = internalState;
2169
+ var defineIterator = iteratorDefine;
2170
+ var createIterResultObject$1 = createIterResultObject$4;
2171
+
2172
+ var STRING_ITERATOR = 'String Iterator';
2173
+ var setInternalState$2 = InternalStateModule$2.set;
2174
+ var getInternalState = InternalStateModule$2.getterFor(STRING_ITERATOR);
2175
+
2176
+ // `String.prototype[@@iterator]` method
2177
+ // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
2178
+ defineIterator(String, 'String', function (iterated) {
2179
+ setInternalState$2(this, {
2180
+ type: STRING_ITERATOR,
2181
+ string: toString$2(iterated),
2182
+ index: 0
2183
+ });
2184
+ // `%StringIteratorPrototype%.next` method
2185
+ // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
2186
+ }, function next() {
2187
+ var state = getInternalState(this);
2188
+ var string = state.string;
2189
+ var index = state.index;
2190
+ var point;
2191
+ if (index >= string.length) return createIterResultObject$1(undefined, true);
2192
+ point = charAt$2(string, index);
2193
+ state.index += point.length;
2194
+ return createIterResultObject$1(point, false);
2195
+ });
2196
+
2197
+ var fails$1 = fails$g;
2198
+ var wellKnownSymbol$3 = wellKnownSymbol$e;
2199
+ var DESCRIPTORS$4 = descriptors;
2200
+ var IS_PURE = isPure;
2201
+
2202
+ var ITERATOR$3 = wellKnownSymbol$3('iterator');
2203
+
2204
+ var urlConstructorDetection = !fails$1(function () {
2205
+ // eslint-disable-next-line unicorn/relative-url-style -- required for testing
2206
+ var url = new URL('b?a=1&b=2&c=3', 'http://a');
2207
+ var params = url.searchParams;
2208
+ var params2 = new URLSearchParams('a=1&a=2&b=3');
2209
+ var result = '';
2210
+ url.pathname = 'c%20d';
2211
+ params.forEach(function (value, key) {
2212
+ params['delete']('b');
2213
+ result += key + value;
2214
+ });
2215
+ params2['delete']('a', 2);
2216
+ // `undefined` case is a Chromium 117 bug
2217
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
2218
+ params2['delete']('b', undefined);
2219
+ return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
2220
+ || (!params.size && (IS_PURE || !DESCRIPTORS$4))
2221
+ || !params.sort
2222
+ || url.href !== 'http://a/c%20d?a=1&c=3'
2223
+ || params.get('c') !== '3'
2224
+ || String(new URLSearchParams('?a=1')) !== 'a=1'
2225
+ || !params[ITERATOR$3]
2226
+ // throws in Edge
2227
+ || new URL('https://a@b').username !== 'a'
2228
+ || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
2229
+ // not punycoded in Edge
2230
+ || new URL('http://тест').host !== 'xn--e1aybc'
2231
+ // not escaped in Chrome 62-
2232
+ || new URL('http://a#б').hash !== '#%D0%B1'
2233
+ // fails in Chrome 66-
2234
+ || result !== 'a1c3'
2235
+ // throws in Safari
2236
+ || new URL('http://x', undefined).host !== 'x';
2237
+ });
2238
+
2239
+ var classofRaw = classofRaw$2;
2240
+ var uncurryThis$8 = functionUncurryThis;
2241
+
2242
+ var functionUncurryThisClause = function (fn) {
2243
+ // Nashorn bug:
2244
+ // https://github.com/zloirock/core-js/issues/1128
2245
+ // https://github.com/zloirock/core-js/issues/1130
2246
+ if (classofRaw(fn) === 'Function') return uncurryThis$8(fn);
2247
+ };
2248
+
2249
+ var uncurryThis$7 = functionUncurryThisClause;
2250
+ var aCallable$1 = aCallable$5;
2251
+ var NATIVE_BIND = functionBindNative;
2252
+
2253
+ var bind$3 = uncurryThis$7(uncurryThis$7.bind);
2254
+
2255
+ // optional / simple context binding
2256
+ var functionBindContext = function (fn, that) {
2257
+ aCallable$1(fn);
2258
+ return that === undefined ? fn : NATIVE_BIND ? bind$3(fn, that) : function (/* ...args */) {
2259
+ return fn.apply(that, arguments);
2260
+ };
2261
+ };
2262
+
2263
+ var wellKnownSymbol$2 = wellKnownSymbol$e;
2264
+ var Iterators$1 = iterators;
2265
+
2266
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
2267
+ var ArrayPrototype = Array.prototype;
2268
+
2269
+ // check on default Array iterator
2270
+ var isArrayIteratorMethod$1 = function (it) {
2271
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
2272
+ };
2273
+
2274
+ var uncurryThis$6 = functionUncurryThis;
2275
+ var fails = fails$g;
2276
+ var isCallable$1 = isCallable$j;
2277
+ var classof$2 = classof$5;
2278
+ var getBuiltIn = getBuiltIn$5;
2279
+ var inspectSource = inspectSource$2;
2280
+
2281
+ var noop = function () { /* empty */ };
2282
+ var construct = getBuiltIn('Reflect', 'construct');
2283
+ var constructorRegExp = /^\s*(?:class|function)\b/;
2284
+ var exec$2 = uncurryThis$6(constructorRegExp.exec);
2285
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
2286
+
2287
+ var isConstructorModern = function isConstructor(argument) {
2288
+ if (!isCallable$1(argument)) return false;
2289
+ try {
2290
+ construct(noop, [], argument);
2291
+ return true;
2292
+ } catch (error) {
2293
+ return false;
2294
+ }
2295
+ };
2296
+
2297
+ var isConstructorLegacy = function isConstructor(argument) {
2298
+ if (!isCallable$1(argument)) return false;
2299
+ switch (classof$2(argument)) {
2300
+ case 'AsyncFunction':
2301
+ case 'GeneratorFunction':
2302
+ case 'AsyncGeneratorFunction': return false;
2303
+ }
2304
+ try {
2305
+ // we can't check .prototype since constructors produced by .bind haven't it
2306
+ // `Function#toString` throws on some built-it function in some legacy engines
2307
+ // (for example, `DOMQuad` and similar in FF41-)
2308
+ return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
2309
+ } catch (error) {
2310
+ return true;
2311
+ }
2312
+ };
2313
+
2314
+ isConstructorLegacy.sham = true;
2315
+
2316
+ // `IsConstructor` abstract operation
2317
+ // https://tc39.es/ecma262/#sec-isconstructor
2318
+ var isConstructor$1 = !construct || fails(function () {
2319
+ var called;
2320
+ return isConstructorModern(isConstructorModern.call)
2321
+ || !isConstructorModern(Object)
2322
+ || !isConstructorModern(function () { called = true; })
2323
+ || called;
2324
+ }) ? isConstructorLegacy : isConstructorModern;
2325
+
2326
+ var classof$1 = classof$5;
2327
+ var getMethod = getMethod$4;
2328
+ var isNullOrUndefined = isNullOrUndefined$3;
2329
+ var Iterators = iterators;
2330
+ var wellKnownSymbol$1 = wellKnownSymbol$e;
2331
+
2332
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
2333
+
2334
+ var getIteratorMethod$3 = function (it) {
2335
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
2336
+ || getMethod(it, '@@iterator')
2337
+ || Iterators[classof$1(it)];
2338
+ };
2339
+
2340
+ var call$3 = functionCall;
2341
+ var aCallable = aCallable$5;
2342
+ var anObject$1 = anObject$c;
2343
+ var tryToString = tryToString$2;
2344
+ var getIteratorMethod$2 = getIteratorMethod$3;
2345
+
2346
+ var $TypeError$1 = TypeError;
2347
+
2348
+ var getIterator$2 = function (argument, usingIterator) {
2349
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
2350
+ if (aCallable(iteratorMethod)) return anObject$1(call$3(iteratorMethod, argument));
2351
+ throw new $TypeError$1(tryToString(argument) + ' is not iterable');
2352
+ };
2353
+
2354
+ var bind$2 = functionBindContext;
2355
+ var call$2 = functionCall;
2356
+ var toObject = toObject$4;
2357
+ var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
2358
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
2359
+ var isConstructor = isConstructor$1;
2360
+ var lengthOfArrayLike = lengthOfArrayLike$2;
2361
+ var createProperty = createProperty$2;
2362
+ var getIterator$1 = getIterator$2;
2363
+ var getIteratorMethod$1 = getIteratorMethod$3;
2364
+
2365
+ var $Array = Array;
2366
+
2367
+ // `Array.from` method implementation
2368
+ // https://tc39.es/ecma262/#sec-array.from
2369
+ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
2370
+ var O = toObject(arrayLike);
2371
+ var IS_CONSTRUCTOR = isConstructor(this);
2372
+ var argumentsLength = arguments.length;
2373
+ var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
2374
+ var mapping = mapfn !== undefined;
2375
+ if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
2376
+ var iteratorMethod = getIteratorMethod$1(O);
2377
+ var index = 0;
2378
+ var length, result, step, iterator, next, value;
2379
+ // if the target is not iterable or it's an array with the default iterator - use a simple case
2380
+ if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
2381
+ result = IS_CONSTRUCTOR ? new this() : [];
2382
+ iterator = getIterator$1(O, iteratorMethod);
2383
+ next = iterator.next;
2384
+ for (;!(step = call$2(next, iterator)).done; index++) {
2385
+ value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
2386
+ createProperty(result, index, value);
2387
+ }
2388
+ } else {
2389
+ length = lengthOfArrayLike(O);
2390
+ result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
2391
+ for (;length > index; index++) {
2392
+ value = mapping ? mapfn(O[index], index) : O[index];
2393
+ createProperty(result, index, value);
2394
+ }
2395
+ }
2396
+ result.length = index;
2397
+ return result;
2398
+ };
2399
+
2400
+ // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
2401
+ var uncurryThis$5 = functionUncurryThis;
2402
+
2403
+ var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
2404
+ var base = 36;
2405
+ var tMin = 1;
2406
+ var tMax = 26;
2407
+ var skew = 38;
2408
+ var damp = 700;
2409
+ var initialBias = 72;
2410
+ var initialN = 128; // 0x80
2411
+ var delimiter = '-'; // '\x2D'
2412
+ var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
2413
+ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
2414
+ var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
2415
+ var baseMinusTMin = base - tMin;
2416
+
2417
+ var $RangeError = RangeError;
2418
+ var exec$1 = uncurryThis$5(regexSeparators.exec);
2419
+ var floor$2 = Math.floor;
2420
+ var fromCharCode = String.fromCharCode;
2421
+ var charCodeAt = uncurryThis$5(''.charCodeAt);
2422
+ var join$2 = uncurryThis$5([].join);
2423
+ var push$3 = uncurryThis$5([].push);
2424
+ var replace$2 = uncurryThis$5(''.replace);
2425
+ var split$2 = uncurryThis$5(''.split);
2426
+ var toLowerCase$1 = uncurryThis$5(''.toLowerCase);
2427
+
2428
+ /**
2429
+ * Creates an array containing the numeric code points of each Unicode
2430
+ * character in the string. While JavaScript uses UCS-2 internally,
2431
+ * this function will convert a pair of surrogate halves (each of which
2432
+ * UCS-2 exposes as separate characters) into a single code point,
2433
+ * matching UTF-16.
2434
+ */
2435
+ var ucs2decode = function (string) {
2436
+ var output = [];
2437
+ var counter = 0;
2438
+ var length = string.length;
2439
+ while (counter < length) {
2440
+ var value = charCodeAt(string, counter++);
2441
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
2442
+ // It's a high surrogate, and there is a next character.
2443
+ var extra = charCodeAt(string, counter++);
2444
+ if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.
2445
+ push$3(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
2446
+ } else {
2447
+ // It's an unmatched surrogate; only append this code unit, in case the
2448
+ // next code unit is the high surrogate of a surrogate pair.
2449
+ push$3(output, value);
2450
+ counter--;
2451
+ }
2452
+ } else {
2453
+ push$3(output, value);
2454
+ }
2455
+ }
2456
+ return output;
2457
+ };
2458
+
2459
+ /**
2460
+ * Converts a digit/integer into a basic code point.
2461
+ */
2462
+ var digitToBasic = function (digit) {
2463
+ // 0..25 map to ASCII a..z or A..Z
2464
+ // 26..35 map to ASCII 0..9
2465
+ return digit + 22 + 75 * (digit < 26);
2466
+ };
2467
+
2468
+ /**
2469
+ * Bias adaptation function as per section 3.4 of RFC 3492.
2470
+ * https://tools.ietf.org/html/rfc3492#section-3.4
2471
+ */
2472
+ var adapt = function (delta, numPoints, firstTime) {
2473
+ var k = 0;
2474
+ delta = firstTime ? floor$2(delta / damp) : delta >> 1;
2475
+ delta += floor$2(delta / numPoints);
2476
+ while (delta > baseMinusTMin * tMax >> 1) {
2477
+ delta = floor$2(delta / baseMinusTMin);
2478
+ k += base;
2479
+ }
2480
+ return floor$2(k + (baseMinusTMin + 1) * delta / (delta + skew));
2481
+ };
2482
+
2483
+ /**
2484
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
2485
+ * Punycode string of ASCII-only symbols.
2486
+ */
2487
+ var encode = function (input) {
2488
+ var output = [];
2489
+
2490
+ // Convert the input in UCS-2 to an array of Unicode code points.
2491
+ input = ucs2decode(input);
2492
+
2493
+ // Cache the length.
2494
+ var inputLength = input.length;
2495
+
2496
+ // Initialize the state.
2497
+ var n = initialN;
2498
+ var delta = 0;
2499
+ var bias = initialBias;
2500
+ var i, currentValue;
2501
+
2502
+ // Handle the basic code points.
2503
+ for (i = 0; i < input.length; i++) {
2504
+ currentValue = input[i];
2505
+ if (currentValue < 0x80) {
2506
+ push$3(output, fromCharCode(currentValue));
2507
+ }
2508
+ }
2509
+
2510
+ var basicLength = output.length; // number of basic code points.
2511
+ var handledCPCount = basicLength; // number of code points that have been handled;
2512
+
2513
+ // Finish the basic string with a delimiter unless it's empty.
2514
+ if (basicLength) {
2515
+ push$3(output, delimiter);
2516
+ }
2517
+
2518
+ // Main encoding loop:
2519
+ while (handledCPCount < inputLength) {
2520
+ // All non-basic code points < n have been handled already. Find the next larger one:
2521
+ var m = maxInt;
2522
+ for (i = 0; i < input.length; i++) {
2523
+ currentValue = input[i];
2524
+ if (currentValue >= n && currentValue < m) {
2525
+ m = currentValue;
2526
+ }
2527
+ }
2528
+
2529
+ // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
2530
+ var handledCPCountPlusOne = handledCPCount + 1;
2531
+ if (m - n > floor$2((maxInt - delta) / handledCPCountPlusOne)) {
2532
+ throw new $RangeError(OVERFLOW_ERROR);
2533
+ }
2534
+
2535
+ delta += (m - n) * handledCPCountPlusOne;
2536
+ n = m;
2537
+
2538
+ for (i = 0; i < input.length; i++) {
2539
+ currentValue = input[i];
2540
+ if (currentValue < n && ++delta > maxInt) {
2541
+ throw new $RangeError(OVERFLOW_ERROR);
2542
+ }
2543
+ if (currentValue === n) {
2544
+ // Represent delta as a generalized variable-length integer.
2545
+ var q = delta;
2546
+ var k = base;
2547
+ while (true) {
2548
+ var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
2549
+ if (q < t) break;
2550
+ var qMinusT = q - t;
2551
+ var baseMinusT = base - t;
2552
+ push$3(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
2553
+ q = floor$2(qMinusT / baseMinusT);
2554
+ k += base;
2555
+ }
2556
+
2557
+ push$3(output, fromCharCode(digitToBasic(q)));
2558
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
2559
+ delta = 0;
2560
+ handledCPCount++;
2561
+ }
2562
+ }
2563
+
2564
+ delta++;
2565
+ n++;
2566
+ }
2567
+ return join$2(output, '');
2568
+ };
2569
+
2570
+ var stringPunycodeToAscii = function (input) {
2571
+ var encoded = [];
2572
+ var labels = split$2(replace$2(toLowerCase$1(input), regexSeparators, '\u002E'), '.');
2573
+ var i, label;
2574
+ for (i = 0; i < labels.length; i++) {
2575
+ label = labels[i];
2576
+ push$3(encoded, exec$1(regexNonASCII, label) ? 'xn--' + encode(label) : label);
2577
+ }
2578
+ return join$2(encoded, '.');
2579
+ };
2580
+
2581
+ var $TypeError = TypeError;
2582
+
2583
+ var validateArgumentsLength$4 = function (passed, required) {
2584
+ if (passed < required) throw new $TypeError('Not enough arguments');
2585
+ return passed;
2586
+ };
2587
+
2588
+ var global$3 = global$f;
2589
+ var DESCRIPTORS$3 = descriptors;
2590
+
2591
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2592
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2593
+
2594
+ // Avoid NodeJS experimental warning
2595
+ var safeGetBuiltIn$1 = function (name) {
2596
+ if (!DESCRIPTORS$3) return global$3[name];
2597
+ var descriptor = getOwnPropertyDescriptor(global$3, name);
2598
+ return descriptor && descriptor.value;
2599
+ };
2600
+
2601
+ var arraySlice$1 = arraySlice$3;
2602
+
2603
+ var floor$1 = Math.floor;
2604
+
2605
+ var sort = function (array, comparefn) {
2606
+ var length = array.length;
2607
+
2608
+ if (length < 8) {
2609
+ // insertion sort
2610
+ var i = 1;
2611
+ var element, j;
2612
+
2613
+ while (i < length) {
2614
+ j = i;
2615
+ element = array[i];
2616
+ while (j && comparefn(array[j - 1], element) > 0) {
2617
+ array[j] = array[--j];
2618
+ }
2619
+ if (j !== i++) array[j] = element;
2620
+ }
2621
+ } else {
2622
+ // merge sort
2623
+ var middle = floor$1(length / 2);
2624
+ var left = sort(arraySlice$1(array, 0, middle), comparefn);
2625
+ var right = sort(arraySlice$1(array, middle), comparefn);
2626
+ var llength = left.length;
2627
+ var rlength = right.length;
2628
+ var lindex = 0;
2629
+ var rindex = 0;
2630
+
2631
+ while (lindex < llength || rindex < rlength) {
2632
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
2633
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
2634
+ : lindex < llength ? left[lindex++] : right[rindex++];
2635
+ }
2636
+ }
2637
+
2638
+ return array;
2639
+ };
2640
+
2641
+ var arraySort$1 = sort;
2642
+
2643
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
2644
+
2645
+ var $$2 = _export;
2646
+ var global$2 = global$f;
2647
+ var safeGetBuiltIn = safeGetBuiltIn$1;
2648
+ var call$1 = functionCall;
2649
+ var uncurryThis$4 = functionUncurryThis;
2650
+ var DESCRIPTORS$2 = descriptors;
2651
+ var USE_NATIVE_URL$1 = urlConstructorDetection;
2652
+ var defineBuiltIn$3 = defineBuiltIn$9;
2653
+ var defineBuiltInAccessor$2 = defineBuiltInAccessor$4;
2654
+ var defineBuiltIns = defineBuiltIns$2;
2655
+ var setToStringTag$1 = setToStringTag$5;
2656
+ var createIteratorConstructor = iteratorCreateConstructor;
2657
+ var InternalStateModule$1 = internalState;
2658
+ var anInstance$1 = anInstance$3;
2659
+ var isCallable = isCallable$j;
2660
+ var hasOwn$1 = hasOwnProperty_1;
2661
+ var bind$1 = functionBindContext;
2662
+ var classof = classof$5;
2663
+ var anObject = anObject$c;
2664
+ var isObject = isObject$9;
2665
+ var $toString$1 = toString$5;
2666
+ var create = objectCreate;
2667
+ var createPropertyDescriptor = createPropertyDescriptor$5;
2668
+ var getIterator = getIterator$2;
2669
+ var getIteratorMethod = getIteratorMethod$3;
2670
+ var createIterResultObject = createIterResultObject$4;
2671
+ var validateArgumentsLength$3 = validateArgumentsLength$4;
2672
+ var wellKnownSymbol = wellKnownSymbol$e;
2673
+ var arraySort = arraySort$1;
2674
+
2675
+ var ITERATOR = wellKnownSymbol('iterator');
2676
+ var URL_SEARCH_PARAMS = 'URLSearchParams';
2677
+ var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
2678
+ var setInternalState$1 = InternalStateModule$1.set;
2679
+ var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
2680
+ var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
2681
+
2682
+ var nativeFetch = safeGetBuiltIn('fetch');
2683
+ var NativeRequest = safeGetBuiltIn('Request');
2684
+ var Headers = safeGetBuiltIn('Headers');
2685
+ var RequestPrototype = NativeRequest && NativeRequest.prototype;
2686
+ var HeadersPrototype = Headers && Headers.prototype;
2687
+ var RegExp$1 = global$2.RegExp;
2688
+ var TypeError$2 = global$2.TypeError;
2689
+ var decodeURIComponent = global$2.decodeURIComponent;
2690
+ var encodeURIComponent$1 = global$2.encodeURIComponent;
2691
+ var charAt$1 = uncurryThis$4(''.charAt);
2692
+ var join$1 = uncurryThis$4([].join);
2693
+ var push$2 = uncurryThis$4([].push);
2694
+ var replace$1 = uncurryThis$4(''.replace);
2695
+ var shift$1 = uncurryThis$4([].shift);
2696
+ var splice = uncurryThis$4([].splice);
2697
+ var split$1 = uncurryThis$4(''.split);
2698
+ var stringSlice$1 = uncurryThis$4(''.slice);
2699
+
2700
+ var plus = /\+/g;
2701
+ var sequences = Array(4);
2702
+
2703
+ var percentSequence = function (bytes) {
2704
+ return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp$1('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
2705
+ };
2706
+
2707
+ var percentDecode = function (sequence) {
2708
+ try {
2709
+ return decodeURIComponent(sequence);
2710
+ } catch (error) {
2711
+ return sequence;
2712
+ }
2713
+ };
2714
+
2715
+ var deserialize = function (it) {
2716
+ var result = replace$1(it, plus, ' ');
2717
+ var bytes = 4;
2718
+ try {
2719
+ return decodeURIComponent(result);
2720
+ } catch (error) {
2721
+ while (bytes) {
2722
+ result = replace$1(result, percentSequence(bytes--), percentDecode);
2723
+ }
2724
+ return result;
2725
+ }
2726
+ };
2727
+
2728
+ var find = /[!'()~]|%20/g;
2729
+
2730
+ var replacements = {
2731
+ '!': '%21',
2732
+ "'": '%27',
2733
+ '(': '%28',
2734
+ ')': '%29',
2735
+ '~': '%7E',
2736
+ '%20': '+'
2737
+ };
2738
+
2739
+ var replacer = function (match) {
2740
+ return replacements[match];
2741
+ };
2742
+
2743
+ var serialize = function (it) {
2744
+ return replace$1(encodeURIComponent$1(it), find, replacer);
2745
+ };
2746
+
2747
+ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
2748
+ setInternalState$1(this, {
2749
+ type: URL_SEARCH_PARAMS_ITERATOR,
2750
+ target: getInternalParamsState(params).entries,
2751
+ index: 0,
2752
+ kind: kind
2753
+ });
2754
+ }, URL_SEARCH_PARAMS, function next() {
2755
+ var state = getInternalIteratorState(this);
2756
+ var target = state.target;
2757
+ var index = state.index++;
2758
+ if (!target || index >= target.length) {
2759
+ state.target = undefined;
2760
+ return createIterResultObject(undefined, true);
2761
+ }
2762
+ var entry = target[index];
2763
+ switch (state.kind) {
2764
+ case 'keys': return createIterResultObject(entry.key, false);
2765
+ case 'values': return createIterResultObject(entry.value, false);
2766
+ } return createIterResultObject([entry.key, entry.value], false);
2767
+ }, true);
2768
+
2769
+ var URLSearchParamsState = function (init) {
2770
+ this.entries = [];
2771
+ this.url = null;
2772
+
2773
+ if (init !== undefined) {
2774
+ if (isObject(init)) this.parseObject(init);
2775
+ else this.parseQuery(typeof init == 'string' ? charAt$1(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
2776
+ }
2777
+ };
2778
+
2779
+ URLSearchParamsState.prototype = {
2780
+ type: URL_SEARCH_PARAMS,
2781
+ bindURL: function (url) {
2782
+ this.url = url;
2783
+ this.update();
2784
+ },
2785
+ parseObject: function (object) {
2786
+ var entries = this.entries;
2787
+ var iteratorMethod = getIteratorMethod(object);
2788
+ var iterator, next, step, entryIterator, entryNext, first, second;
2789
+
2790
+ if (iteratorMethod) {
2791
+ iterator = getIterator(object, iteratorMethod);
2792
+ next = iterator.next;
2793
+ while (!(step = call$1(next, iterator)).done) {
2794
+ entryIterator = getIterator(anObject(step.value));
2795
+ entryNext = entryIterator.next;
2796
+ if (
2797
+ (first = call$1(entryNext, entryIterator)).done ||
2798
+ (second = call$1(entryNext, entryIterator)).done ||
2799
+ !call$1(entryNext, entryIterator).done
2800
+ ) throw new TypeError$2('Expected sequence with length 2');
2801
+ push$2(entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
2802
+ }
2803
+ } else for (var key in object) if (hasOwn$1(object, key)) {
2804
+ push$2(entries, { key: key, value: $toString$1(object[key]) });
2805
+ }
2806
+ },
2807
+ parseQuery: function (query) {
2808
+ if (query) {
2809
+ var entries = this.entries;
2810
+ var attributes = split$1(query, '&');
2811
+ var index = 0;
2812
+ var attribute, entry;
2813
+ while (index < attributes.length) {
2814
+ attribute = attributes[index++];
2815
+ if (attribute.length) {
2816
+ entry = split$1(attribute, '=');
2817
+ push$2(entries, {
2818
+ key: deserialize(shift$1(entry)),
2819
+ value: deserialize(join$1(entry, '='))
2820
+ });
2821
+ }
2822
+ }
2823
+ }
2824
+ },
2825
+ serialize: function () {
2826
+ var entries = this.entries;
2827
+ var result = [];
2828
+ var index = 0;
2829
+ var entry;
2830
+ while (index < entries.length) {
2831
+ entry = entries[index++];
2832
+ push$2(result, serialize(entry.key) + '=' + serialize(entry.value));
2833
+ } return join$1(result, '&');
2834
+ },
2835
+ update: function () {
2836
+ this.entries.length = 0;
2837
+ this.parseQuery(this.url.query);
2838
+ },
2839
+ updateURL: function () {
2840
+ if (this.url) this.url.update();
2841
+ }
2842
+ };
2843
+
2844
+ // `URLSearchParams` constructor
2845
+ // https://url.spec.whatwg.org/#interface-urlsearchparams
2846
+ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
2847
+ anInstance$1(this, URLSearchParamsPrototype$3);
2848
+ var init = arguments.length > 0 ? arguments[0] : undefined;
2849
+ var state = setInternalState$1(this, new URLSearchParamsState(init));
2850
+ if (!DESCRIPTORS$2) this.size = state.entries.length;
2851
+ };
2852
+
2853
+ var URLSearchParamsPrototype$3 = URLSearchParamsConstructor.prototype;
2854
+
2855
+ defineBuiltIns(URLSearchParamsPrototype$3, {
2856
+ // `URLSearchParams.prototype.append` method
2857
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-append
2858
+ append: function append(name, value) {
2859
+ var state = getInternalParamsState(this);
2860
+ validateArgumentsLength$3(arguments.length, 2);
2861
+ push$2(state.entries, { key: $toString$1(name), value: $toString$1(value) });
2862
+ if (!DESCRIPTORS$2) this.length++;
2863
+ state.updateURL();
2864
+ },
2865
+ // `URLSearchParams.prototype.delete` method
2866
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
2867
+ 'delete': function (name /* , value */) {
2868
+ var state = getInternalParamsState(this);
2869
+ var length = validateArgumentsLength$3(arguments.length, 1);
2870
+ var entries = state.entries;
2871
+ var key = $toString$1(name);
2872
+ var $value = length < 2 ? undefined : arguments[1];
2873
+ var value = $value === undefined ? $value : $toString$1($value);
2874
+ var index = 0;
2875
+ while (index < entries.length) {
2876
+ var entry = entries[index];
2877
+ if (entry.key === key && (value === undefined || entry.value === value)) {
2878
+ splice(entries, index, 1);
2879
+ if (value !== undefined) break;
2880
+ } else index++;
2881
+ }
2882
+ if (!DESCRIPTORS$2) this.size = entries.length;
2883
+ state.updateURL();
2884
+ },
2885
+ // `URLSearchParams.prototype.get` method
2886
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-get
2887
+ get: function get(name) {
2888
+ var entries = getInternalParamsState(this).entries;
2889
+ validateArgumentsLength$3(arguments.length, 1);
2890
+ var key = $toString$1(name);
2891
+ var index = 0;
2892
+ for (; index < entries.length; index++) {
2893
+ if (entries[index].key === key) return entries[index].value;
2894
+ }
2895
+ return null;
2896
+ },
2897
+ // `URLSearchParams.prototype.getAll` method
2898
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
2899
+ getAll: function getAll(name) {
2900
+ var entries = getInternalParamsState(this).entries;
2901
+ validateArgumentsLength$3(arguments.length, 1);
2902
+ var key = $toString$1(name);
2903
+ var result = [];
2904
+ var index = 0;
2905
+ for (; index < entries.length; index++) {
2906
+ if (entries[index].key === key) push$2(result, entries[index].value);
2907
+ }
2908
+ return result;
2909
+ },
2910
+ // `URLSearchParams.prototype.has` method
2911
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-has
2912
+ has: function has(name /* , value */) {
2913
+ var entries = getInternalParamsState(this).entries;
2914
+ var length = validateArgumentsLength$3(arguments.length, 1);
2915
+ var key = $toString$1(name);
2916
+ var $value = length < 2 ? undefined : arguments[1];
2917
+ var value = $value === undefined ? $value : $toString$1($value);
2918
+ var index = 0;
2919
+ while (index < entries.length) {
2920
+ var entry = entries[index++];
2921
+ if (entry.key === key && (value === undefined || entry.value === value)) return true;
2922
+ }
2923
+ return false;
2924
+ },
2925
+ // `URLSearchParams.prototype.set` method
2926
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-set
2927
+ set: function set(name, value) {
2928
+ var state = getInternalParamsState(this);
2929
+ validateArgumentsLength$3(arguments.length, 1);
2930
+ var entries = state.entries;
2931
+ var found = false;
2932
+ var key = $toString$1(name);
2933
+ var val = $toString$1(value);
2934
+ var index = 0;
2935
+ var entry;
2936
+ for (; index < entries.length; index++) {
2937
+ entry = entries[index];
2938
+ if (entry.key === key) {
2939
+ if (found) splice(entries, index--, 1);
2940
+ else {
2941
+ found = true;
2942
+ entry.value = val;
2943
+ }
2944
+ }
2945
+ }
2946
+ if (!found) push$2(entries, { key: key, value: val });
2947
+ if (!DESCRIPTORS$2) this.size = entries.length;
2948
+ state.updateURL();
2949
+ },
2950
+ // `URLSearchParams.prototype.sort` method
2951
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
2952
+ sort: function sort() {
2953
+ var state = getInternalParamsState(this);
2954
+ arraySort(state.entries, function (a, b) {
2955
+ return a.key > b.key ? 1 : -1;
2956
+ });
2957
+ state.updateURL();
2958
+ },
2959
+ // `URLSearchParams.prototype.forEach` method
2960
+ forEach: function forEach(callback /* , thisArg */) {
2961
+ var entries = getInternalParamsState(this).entries;
2962
+ var boundFunction = bind$1(callback, arguments.length > 1 ? arguments[1] : undefined);
2963
+ var index = 0;
2964
+ var entry;
2965
+ while (index < entries.length) {
2966
+ entry = entries[index++];
2967
+ boundFunction(entry.value, entry.key, this);
2968
+ }
2969
+ },
2970
+ // `URLSearchParams.prototype.keys` method
2971
+ keys: function keys() {
2972
+ return new URLSearchParamsIterator(this, 'keys');
2973
+ },
2974
+ // `URLSearchParams.prototype.values` method
2975
+ values: function values() {
2976
+ return new URLSearchParamsIterator(this, 'values');
2977
+ },
2978
+ // `URLSearchParams.prototype.entries` method
2979
+ entries: function entries() {
2980
+ return new URLSearchParamsIterator(this, 'entries');
2981
+ }
2982
+ }, { enumerable: true });
2983
+
2984
+ // `URLSearchParams.prototype[@@iterator]` method
2985
+ defineBuiltIn$3(URLSearchParamsPrototype$3, ITERATOR, URLSearchParamsPrototype$3.entries, { name: 'entries' });
2986
+
2987
+ // `URLSearchParams.prototype.toString` method
2988
+ // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
2989
+ defineBuiltIn$3(URLSearchParamsPrototype$3, 'toString', function toString() {
2990
+ return getInternalParamsState(this).serialize();
2991
+ }, { enumerable: true });
2992
+
2993
+ // `URLSearchParams.prototype.size` getter
2994
+ // https://github.com/whatwg/url/pull/734
2995
+ if (DESCRIPTORS$2) defineBuiltInAccessor$2(URLSearchParamsPrototype$3, 'size', {
2996
+ get: function size() {
2997
+ return getInternalParamsState(this).entries.length;
2998
+ },
2999
+ configurable: true,
3000
+ enumerable: true
3001
+ });
3002
+
3003
+ setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
3004
+
3005
+ $$2({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
3006
+ URLSearchParams: URLSearchParamsConstructor
3007
+ });
3008
+
3009
+ // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
3010
+ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
3011
+ var headersHas = uncurryThis$4(HeadersPrototype.has);
3012
+ var headersSet = uncurryThis$4(HeadersPrototype.set);
3013
+
3014
+ var wrapRequestOptions = function (init) {
3015
+ if (isObject(init)) {
3016
+ var body = init.body;
3017
+ var headers;
3018
+ if (classof(body) === URL_SEARCH_PARAMS) {
3019
+ headers = init.headers ? new Headers(init.headers) : new Headers();
3020
+ if (!headersHas(headers, 'content-type')) {
3021
+ headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
3022
+ }
3023
+ return create(init, {
3024
+ body: createPropertyDescriptor(0, $toString$1(body)),
3025
+ headers: createPropertyDescriptor(0, headers)
3026
+ });
3027
+ }
3028
+ } return init;
3029
+ };
3030
+
3031
+ if (isCallable(nativeFetch)) {
3032
+ $$2({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
3033
+ fetch: function fetch(input /* , init */) {
3034
+ return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
3035
+ }
3036
+ });
3037
+ }
3038
+
3039
+ if (isCallable(NativeRequest)) {
3040
+ var RequestConstructor = function Request(input /* , init */) {
3041
+ anInstance$1(this, RequestPrototype);
3042
+ return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
3043
+ };
3044
+
3045
+ RequestPrototype.constructor = RequestConstructor;
3046
+ RequestConstructor.prototype = RequestPrototype;
3047
+
3048
+ $$2({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
3049
+ Request: RequestConstructor
3050
+ });
3051
+ }
3052
+ }
3053
+
3054
+ var web_urlSearchParams_constructor = {
3055
+ URLSearchParams: URLSearchParamsConstructor,
3056
+ getState: getInternalParamsState
3057
+ };
3058
+
3059
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
3060
+
3061
+ var $$1 = _export;
3062
+ var DESCRIPTORS$1 = descriptors;
3063
+ var USE_NATIVE_URL = urlConstructorDetection;
3064
+ var global$1 = global$f;
3065
+ var bind = functionBindContext;
3066
+ var uncurryThis$3 = functionUncurryThis;
3067
+ var defineBuiltIn$2 = defineBuiltIn$9;
3068
+ var defineBuiltInAccessor$1 = defineBuiltInAccessor$4;
3069
+ var anInstance = anInstance$3;
3070
+ var hasOwn = hasOwnProperty_1;
3071
+ var assign = objectAssign;
3072
+ var arrayFrom = arrayFrom$1;
3073
+ var arraySlice = arraySlice$3;
3074
+ var codeAt = stringMultibyte.codeAt;
3075
+ var toASCII = stringPunycodeToAscii;
3076
+ var $toString = toString$5;
3077
+ var setToStringTag = setToStringTag$5;
3078
+ var validateArgumentsLength$2 = validateArgumentsLength$4;
3079
+ var URLSearchParamsModule = web_urlSearchParams_constructor;
3080
+ var InternalStateModule = internalState;
3081
+
3082
+ var setInternalState = InternalStateModule.set;
3083
+ var getInternalURLState = InternalStateModule.getterFor('URL');
3084
+ var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
3085
+ var getInternalSearchParamsState = URLSearchParamsModule.getState;
3086
+
3087
+ var NativeURL = global$1.URL;
3088
+ var TypeError$1 = global$1.TypeError;
3089
+ var parseInt = global$1.parseInt;
3090
+ var floor = Math.floor;
3091
+ var pow = Math.pow;
3092
+ var charAt = uncurryThis$3(''.charAt);
3093
+ var exec = uncurryThis$3(/./.exec);
3094
+ var join = uncurryThis$3([].join);
3095
+ var numberToString = uncurryThis$3(1.0.toString);
3096
+ var pop = uncurryThis$3([].pop);
3097
+ var push$1 = uncurryThis$3([].push);
3098
+ var replace = uncurryThis$3(''.replace);
3099
+ var shift = uncurryThis$3([].shift);
3100
+ var split = uncurryThis$3(''.split);
3101
+ var stringSlice = uncurryThis$3(''.slice);
3102
+ var toLowerCase = uncurryThis$3(''.toLowerCase);
3103
+ var unshift = uncurryThis$3([].unshift);
3104
+
3105
+ var INVALID_AUTHORITY = 'Invalid authority';
3106
+ var INVALID_SCHEME = 'Invalid scheme';
3107
+ var INVALID_HOST = 'Invalid host';
3108
+ var INVALID_PORT = 'Invalid port';
3109
+
3110
+ var ALPHA = /[a-z]/i;
3111
+ // eslint-disable-next-line regexp/no-obscure-range -- safe
3112
+ var ALPHANUMERIC = /[\d+-.a-z]/i;
3113
+ var DIGIT = /\d/;
3114
+ var HEX_START = /^0x/i;
3115
+ var OCT = /^[0-7]+$/;
3116
+ var DEC = /^\d+$/;
3117
+ var HEX = /^[\da-f]+$/i;
3118
+ /* eslint-disable regexp/no-control-character -- safe */
3119
+ var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
3120
+ var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
3121
+ var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
3122
+ var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
3123
+ var TAB_AND_NEW_LINE = /[\t\n\r]/g;
3124
+ /* eslint-enable regexp/no-control-character -- safe */
3125
+ var EOF;
3126
+
3127
+ // https://url.spec.whatwg.org/#ipv4-number-parser
3128
+ var parseIPv4 = function (input) {
3129
+ var parts = split(input, '.');
3130
+ var partsLength, numbers, index, part, radix, number, ipv4;
3131
+ if (parts.length && parts[parts.length - 1] === '') {
3132
+ parts.length--;
3133
+ }
3134
+ partsLength = parts.length;
3135
+ if (partsLength > 4) return input;
3136
+ numbers = [];
3137
+ for (index = 0; index < partsLength; index++) {
3138
+ part = parts[index];
3139
+ if (part === '') return input;
3140
+ radix = 10;
3141
+ if (part.length > 1 && charAt(part, 0) === '0') {
3142
+ radix = exec(HEX_START, part) ? 16 : 8;
3143
+ part = stringSlice(part, radix === 8 ? 1 : 2);
3144
+ }
3145
+ if (part === '') {
3146
+ number = 0;
3147
+ } else {
3148
+ if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;
3149
+ number = parseInt(part, radix);
3150
+ }
3151
+ push$1(numbers, number);
3152
+ }
3153
+ for (index = 0; index < partsLength; index++) {
3154
+ number = numbers[index];
3155
+ if (index === partsLength - 1) {
3156
+ if (number >= pow(256, 5 - partsLength)) return null;
3157
+ } else if (number > 255) return null;
3158
+ }
3159
+ ipv4 = pop(numbers);
3160
+ for (index = 0; index < numbers.length; index++) {
3161
+ ipv4 += numbers[index] * pow(256, 3 - index);
3162
+ }
3163
+ return ipv4;
3164
+ };
3165
+
3166
+ // https://url.spec.whatwg.org/#concept-ipv6-parser
3167
+ // eslint-disable-next-line max-statements -- TODO
3168
+ var parseIPv6 = function (input) {
3169
+ var address = [0, 0, 0, 0, 0, 0, 0, 0];
3170
+ var pieceIndex = 0;
3171
+ var compress = null;
3172
+ var pointer = 0;
3173
+ var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
3174
+
3175
+ var chr = function () {
3176
+ return charAt(input, pointer);
3177
+ };
3178
+
3179
+ if (chr() === ':') {
3180
+ if (charAt(input, 1) !== ':') return;
3181
+ pointer += 2;
3182
+ pieceIndex++;
3183
+ compress = pieceIndex;
3184
+ }
3185
+ while (chr()) {
3186
+ if (pieceIndex === 8) return;
3187
+ if (chr() === ':') {
3188
+ if (compress !== null) return;
3189
+ pointer++;
3190
+ pieceIndex++;
3191
+ compress = pieceIndex;
3192
+ continue;
3193
+ }
3194
+ value = length = 0;
3195
+ while (length < 4 && exec(HEX, chr())) {
3196
+ value = value * 16 + parseInt(chr(), 16);
3197
+ pointer++;
3198
+ length++;
3199
+ }
3200
+ if (chr() === '.') {
3201
+ if (length === 0) return;
3202
+ pointer -= length;
3203
+ if (pieceIndex > 6) return;
3204
+ numbersSeen = 0;
3205
+ while (chr()) {
3206
+ ipv4Piece = null;
3207
+ if (numbersSeen > 0) {
3208
+ if (chr() === '.' && numbersSeen < 4) pointer++;
3209
+ else return;
3210
+ }
3211
+ if (!exec(DIGIT, chr())) return;
3212
+ while (exec(DIGIT, chr())) {
3213
+ number = parseInt(chr(), 10);
3214
+ if (ipv4Piece === null) ipv4Piece = number;
3215
+ else if (ipv4Piece === 0) return;
3216
+ else ipv4Piece = ipv4Piece * 10 + number;
3217
+ if (ipv4Piece > 255) return;
3218
+ pointer++;
3219
+ }
3220
+ address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
3221
+ numbersSeen++;
3222
+ if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;
3223
+ }
3224
+ if (numbersSeen !== 4) return;
3225
+ break;
3226
+ } else if (chr() === ':') {
3227
+ pointer++;
3228
+ if (!chr()) return;
3229
+ } else if (chr()) return;
3230
+ address[pieceIndex++] = value;
3231
+ }
3232
+ if (compress !== null) {
3233
+ swaps = pieceIndex - compress;
3234
+ pieceIndex = 7;
3235
+ while (pieceIndex !== 0 && swaps > 0) {
3236
+ swap = address[pieceIndex];
3237
+ address[pieceIndex--] = address[compress + swaps - 1];
3238
+ address[compress + --swaps] = swap;
3239
+ }
3240
+ } else if (pieceIndex !== 8) return;
3241
+ return address;
3242
+ };
3243
+
3244
+ var findLongestZeroSequence = function (ipv6) {
3245
+ var maxIndex = null;
3246
+ var maxLength = 1;
3247
+ var currStart = null;
3248
+ var currLength = 0;
3249
+ var index = 0;
3250
+ for (; index < 8; index++) {
3251
+ if (ipv6[index] !== 0) {
3252
+ if (currLength > maxLength) {
3253
+ maxIndex = currStart;
3254
+ maxLength = currLength;
3255
+ }
3256
+ currStart = null;
3257
+ currLength = 0;
3258
+ } else {
3259
+ if (currStart === null) currStart = index;
3260
+ ++currLength;
3261
+ }
3262
+ }
3263
+ if (currLength > maxLength) {
3264
+ maxIndex = currStart;
3265
+ maxLength = currLength;
3266
+ }
3267
+ return maxIndex;
3268
+ };
3269
+
3270
+ // https://url.spec.whatwg.org/#host-serializing
3271
+ var serializeHost = function (host) {
3272
+ var result, index, compress, ignore0;
3273
+ // ipv4
3274
+ if (typeof host == 'number') {
3275
+ result = [];
3276
+ for (index = 0; index < 4; index++) {
3277
+ unshift(result, host % 256);
3278
+ host = floor(host / 256);
3279
+ } return join(result, '.');
3280
+ // ipv6
3281
+ } else if (typeof host == 'object') {
3282
+ result = '';
3283
+ compress = findLongestZeroSequence(host);
3284
+ for (index = 0; index < 8; index++) {
3285
+ if (ignore0 && host[index] === 0) continue;
3286
+ if (ignore0) ignore0 = false;
3287
+ if (compress === index) {
3288
+ result += index ? ':' : '::';
3289
+ ignore0 = true;
3290
+ } else {
3291
+ result += numberToString(host[index], 16);
3292
+ if (index < 7) result += ':';
3293
+ }
3294
+ }
3295
+ return '[' + result + ']';
3296
+ } return host;
3297
+ };
3298
+
3299
+ var C0ControlPercentEncodeSet = {};
3300
+ var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
3301
+ ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
3302
+ });
3303
+ var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
3304
+ '#': 1, '?': 1, '{': 1, '}': 1
3305
+ });
3306
+ var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
3307
+ '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
3308
+ });
3309
+
3310
+ var percentEncode = function (chr, set) {
3311
+ var code = codeAt(chr, 0);
3312
+ return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
3313
+ };
3314
+
3315
+ // https://url.spec.whatwg.org/#special-scheme
3316
+ var specialSchemes = {
3317
+ ftp: 21,
3318
+ file: null,
3319
+ http: 80,
3320
+ https: 443,
3321
+ ws: 80,
3322
+ wss: 443
3323
+ };
3324
+
3325
+ // https://url.spec.whatwg.org/#windows-drive-letter
3326
+ var isWindowsDriveLetter = function (string, normalized) {
3327
+ var second;
3328
+ return string.length === 2 && exec(ALPHA, charAt(string, 0))
3329
+ && ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));
3330
+ };
3331
+
3332
+ // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
3333
+ var startsWithWindowsDriveLetter = function (string) {
3334
+ var third;
3335
+ return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
3336
+ string.length === 2 ||
3337
+ ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
3338
+ );
3339
+ };
3340
+
3341
+ // https://url.spec.whatwg.org/#single-dot-path-segment
3342
+ var isSingleDot = function (segment) {
3343
+ return segment === '.' || toLowerCase(segment) === '%2e';
3344
+ };
3345
+
3346
+ // https://url.spec.whatwg.org/#double-dot-path-segment
3347
+ var isDoubleDot = function (segment) {
3348
+ segment = toLowerCase(segment);
3349
+ return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
3350
+ };
3351
+
3352
+ // States:
3353
+ var SCHEME_START = {};
3354
+ var SCHEME = {};
3355
+ var NO_SCHEME = {};
3356
+ var SPECIAL_RELATIVE_OR_AUTHORITY = {};
3357
+ var PATH_OR_AUTHORITY = {};
3358
+ var RELATIVE = {};
3359
+ var RELATIVE_SLASH = {};
3360
+ var SPECIAL_AUTHORITY_SLASHES = {};
3361
+ var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
3362
+ var AUTHORITY = {};
3363
+ var HOST = {};
3364
+ var HOSTNAME = {};
3365
+ var PORT = {};
3366
+ var FILE = {};
3367
+ var FILE_SLASH = {};
3368
+ var FILE_HOST = {};
3369
+ var PATH_START = {};
3370
+ var PATH = {};
3371
+ var CANNOT_BE_A_BASE_URL_PATH = {};
3372
+ var QUERY = {};
3373
+ var FRAGMENT = {};
3374
+
3375
+ var URLState = function (url, isBase, base) {
3376
+ var urlString = $toString(url);
3377
+ var baseState, failure, searchParams;
3378
+ if (isBase) {
3379
+ failure = this.parse(urlString);
3380
+ if (failure) throw new TypeError$1(failure);
3381
+ this.searchParams = null;
3382
+ } else {
3383
+ if (base !== undefined) baseState = new URLState(base, true);
3384
+ failure = this.parse(urlString, null, baseState);
3385
+ if (failure) throw new TypeError$1(failure);
3386
+ searchParams = getInternalSearchParamsState(new URLSearchParams$1());
3387
+ searchParams.bindURL(this);
3388
+ this.searchParams = searchParams;
3389
+ }
3390
+ };
3391
+
3392
+ URLState.prototype = {
3393
+ type: 'URL',
3394
+ // https://url.spec.whatwg.org/#url-parsing
3395
+ // eslint-disable-next-line max-statements -- TODO
3396
+ parse: function (input, stateOverride, base) {
3397
+ var url = this;
3398
+ var state = stateOverride || SCHEME_START;
3399
+ var pointer = 0;
3400
+ var buffer = '';
3401
+ var seenAt = false;
3402
+ var seenBracket = false;
3403
+ var seenPasswordToken = false;
3404
+ var codePoints, chr, bufferCodePoints, failure;
3405
+
3406
+ input = $toString(input);
3407
+
3408
+ if (!stateOverride) {
3409
+ url.scheme = '';
3410
+ url.username = '';
3411
+ url.password = '';
3412
+ url.host = null;
3413
+ url.port = null;
3414
+ url.path = [];
3415
+ url.query = null;
3416
+ url.fragment = null;
3417
+ url.cannotBeABaseURL = false;
3418
+ input = replace(input, LEADING_C0_CONTROL_OR_SPACE, '');
3419
+ input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, '$1');
3420
+ }
3421
+
3422
+ input = replace(input, TAB_AND_NEW_LINE, '');
3423
+
3424
+ codePoints = arrayFrom(input);
3425
+
3426
+ while (pointer <= codePoints.length) {
3427
+ chr = codePoints[pointer];
3428
+ switch (state) {
3429
+ case SCHEME_START:
3430
+ if (chr && exec(ALPHA, chr)) {
3431
+ buffer += toLowerCase(chr);
3432
+ state = SCHEME;
3433
+ } else if (!stateOverride) {
3434
+ state = NO_SCHEME;
3435
+ continue;
3436
+ } else return INVALID_SCHEME;
3437
+ break;
3438
+
3439
+ case SCHEME:
3440
+ if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {
3441
+ buffer += toLowerCase(chr);
3442
+ } else if (chr === ':') {
3443
+ if (stateOverride && (
3444
+ (url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||
3445
+ (buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
3446
+ (url.scheme === 'file' && !url.host)
3447
+ )) return;
3448
+ url.scheme = buffer;
3449
+ if (stateOverride) {
3450
+ if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;
3451
+ return;
3452
+ }
3453
+ buffer = '';
3454
+ if (url.scheme === 'file') {
3455
+ state = FILE;
3456
+ } else if (url.isSpecial() && base && base.scheme === url.scheme) {
3457
+ state = SPECIAL_RELATIVE_OR_AUTHORITY;
3458
+ } else if (url.isSpecial()) {
3459
+ state = SPECIAL_AUTHORITY_SLASHES;
3460
+ } else if (codePoints[pointer + 1] === '/') {
3461
+ state = PATH_OR_AUTHORITY;
3462
+ pointer++;
3463
+ } else {
3464
+ url.cannotBeABaseURL = true;
3465
+ push$1(url.path, '');
3466
+ state = CANNOT_BE_A_BASE_URL_PATH;
3467
+ }
3468
+ } else if (!stateOverride) {
3469
+ buffer = '';
3470
+ state = NO_SCHEME;
3471
+ pointer = 0;
3472
+ continue;
3473
+ } else return INVALID_SCHEME;
3474
+ break;
3475
+
3476
+ case NO_SCHEME:
3477
+ if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;
3478
+ if (base.cannotBeABaseURL && chr === '#') {
3479
+ url.scheme = base.scheme;
3480
+ url.path = arraySlice(base.path);
3481
+ url.query = base.query;
3482
+ url.fragment = '';
3483
+ url.cannotBeABaseURL = true;
3484
+ state = FRAGMENT;
3485
+ break;
3486
+ }
3487
+ state = base.scheme === 'file' ? FILE : RELATIVE;
3488
+ continue;
3489
+
3490
+ case SPECIAL_RELATIVE_OR_AUTHORITY:
3491
+ if (chr === '/' && codePoints[pointer + 1] === '/') {
3492
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3493
+ pointer++;
3494
+ } else {
3495
+ state = RELATIVE;
3496
+ continue;
3497
+ } break;
3498
+
3499
+ case PATH_OR_AUTHORITY:
3500
+ if (chr === '/') {
3501
+ state = AUTHORITY;
3502
+ break;
3503
+ } else {
3504
+ state = PATH;
3505
+ continue;
3506
+ }
3507
+
3508
+ case RELATIVE:
3509
+ url.scheme = base.scheme;
3510
+ if (chr === EOF) {
3511
+ url.username = base.username;
3512
+ url.password = base.password;
3513
+ url.host = base.host;
3514
+ url.port = base.port;
3515
+ url.path = arraySlice(base.path);
3516
+ url.query = base.query;
3517
+ } else if (chr === '/' || (chr === '\\' && url.isSpecial())) {
3518
+ state = RELATIVE_SLASH;
3519
+ } else if (chr === '?') {
3520
+ url.username = base.username;
3521
+ url.password = base.password;
3522
+ url.host = base.host;
3523
+ url.port = base.port;
3524
+ url.path = arraySlice(base.path);
3525
+ url.query = '';
3526
+ state = QUERY;
3527
+ } else if (chr === '#') {
3528
+ url.username = base.username;
3529
+ url.password = base.password;
3530
+ url.host = base.host;
3531
+ url.port = base.port;
3532
+ url.path = arraySlice(base.path);
3533
+ url.query = base.query;
3534
+ url.fragment = '';
3535
+ state = FRAGMENT;
3536
+ } else {
3537
+ url.username = base.username;
3538
+ url.password = base.password;
3539
+ url.host = base.host;
3540
+ url.port = base.port;
3541
+ url.path = arraySlice(base.path);
3542
+ url.path.length--;
3543
+ state = PATH;
3544
+ continue;
3545
+ } break;
3546
+
3547
+ case RELATIVE_SLASH:
3548
+ if (url.isSpecial() && (chr === '/' || chr === '\\')) {
3549
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3550
+ } else if (chr === '/') {
3551
+ state = AUTHORITY;
3552
+ } else {
3553
+ url.username = base.username;
3554
+ url.password = base.password;
3555
+ url.host = base.host;
3556
+ url.port = base.port;
3557
+ state = PATH;
3558
+ continue;
3559
+ } break;
3560
+
3561
+ case SPECIAL_AUTHORITY_SLASHES:
3562
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3563
+ if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;
3564
+ pointer++;
3565
+ break;
3566
+
3567
+ case SPECIAL_AUTHORITY_IGNORE_SLASHES:
3568
+ if (chr !== '/' && chr !== '\\') {
3569
+ state = AUTHORITY;
3570
+ continue;
3571
+ } break;
3572
+
3573
+ case AUTHORITY:
3574
+ if (chr === '@') {
3575
+ if (seenAt) buffer = '%40' + buffer;
3576
+ seenAt = true;
3577
+ bufferCodePoints = arrayFrom(buffer);
3578
+ for (var i = 0; i < bufferCodePoints.length; i++) {
3579
+ var codePoint = bufferCodePoints[i];
3580
+ if (codePoint === ':' && !seenPasswordToken) {
3581
+ seenPasswordToken = true;
3582
+ continue;
3583
+ }
3584
+ var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
3585
+ if (seenPasswordToken) url.password += encodedCodePoints;
3586
+ else url.username += encodedCodePoints;
3587
+ }
3588
+ buffer = '';
3589
+ } else if (
3590
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3591
+ (chr === '\\' && url.isSpecial())
3592
+ ) {
3593
+ if (seenAt && buffer === '') return INVALID_AUTHORITY;
3594
+ pointer -= arrayFrom(buffer).length + 1;
3595
+ buffer = '';
3596
+ state = HOST;
3597
+ } else buffer += chr;
3598
+ break;
3599
+
3600
+ case HOST:
3601
+ case HOSTNAME:
3602
+ if (stateOverride && url.scheme === 'file') {
3603
+ state = FILE_HOST;
3604
+ continue;
3605
+ } else if (chr === ':' && !seenBracket) {
3606
+ if (buffer === '') return INVALID_HOST;
3607
+ failure = url.parseHost(buffer);
3608
+ if (failure) return failure;
3609
+ buffer = '';
3610
+ state = PORT;
3611
+ if (stateOverride === HOSTNAME) return;
3612
+ } else if (
3613
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3614
+ (chr === '\\' && url.isSpecial())
3615
+ ) {
3616
+ if (url.isSpecial() && buffer === '') return INVALID_HOST;
3617
+ if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;
3618
+ failure = url.parseHost(buffer);
3619
+ if (failure) return failure;
3620
+ buffer = '';
3621
+ state = PATH_START;
3622
+ if (stateOverride) return;
3623
+ continue;
3624
+ } else {
3625
+ if (chr === '[') seenBracket = true;
3626
+ else if (chr === ']') seenBracket = false;
3627
+ buffer += chr;
3628
+ } break;
3629
+
3630
+ case PORT:
3631
+ if (exec(DIGIT, chr)) {
3632
+ buffer += chr;
3633
+ } else if (
3634
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3635
+ (chr === '\\' && url.isSpecial()) ||
3636
+ stateOverride
3637
+ ) {
3638
+ if (buffer !== '') {
3639
+ var port = parseInt(buffer, 10);
3640
+ if (port > 0xFFFF) return INVALID_PORT;
3641
+ url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
3642
+ buffer = '';
3643
+ }
3644
+ if (stateOverride) return;
3645
+ state = PATH_START;
3646
+ continue;
3647
+ } else return INVALID_PORT;
3648
+ break;
3649
+
3650
+ case FILE:
3651
+ url.scheme = 'file';
3652
+ if (chr === '/' || chr === '\\') state = FILE_SLASH;
3653
+ else if (base && base.scheme === 'file') {
3654
+ switch (chr) {
3655
+ case EOF:
3656
+ url.host = base.host;
3657
+ url.path = arraySlice(base.path);
3658
+ url.query = base.query;
3659
+ break;
3660
+ case '?':
3661
+ url.host = base.host;
3662
+ url.path = arraySlice(base.path);
3663
+ url.query = '';
3664
+ state = QUERY;
3665
+ break;
3666
+ case '#':
3667
+ url.host = base.host;
3668
+ url.path = arraySlice(base.path);
3669
+ url.query = base.query;
3670
+ url.fragment = '';
3671
+ state = FRAGMENT;
3672
+ break;
3673
+ default:
3674
+ if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
3675
+ url.host = base.host;
3676
+ url.path = arraySlice(base.path);
3677
+ url.shortenPath();
3678
+ }
3679
+ state = PATH;
3680
+ continue;
3681
+ }
3682
+ } else {
3683
+ state = PATH;
3684
+ continue;
3685
+ } break;
3686
+
3687
+ case FILE_SLASH:
3688
+ if (chr === '/' || chr === '\\') {
3689
+ state = FILE_HOST;
3690
+ break;
3691
+ }
3692
+ if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
3693
+ if (isWindowsDriveLetter(base.path[0], true)) push$1(url.path, base.path[0]);
3694
+ else url.host = base.host;
3695
+ }
3696
+ state = PATH;
3697
+ continue;
3698
+
3699
+ case FILE_HOST:
3700
+ if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') {
3701
+ if (!stateOverride && isWindowsDriveLetter(buffer)) {
3702
+ state = PATH;
3703
+ } else if (buffer === '') {
3704
+ url.host = '';
3705
+ if (stateOverride) return;
3706
+ state = PATH_START;
3707
+ } else {
3708
+ failure = url.parseHost(buffer);
3709
+ if (failure) return failure;
3710
+ if (url.host === 'localhost') url.host = '';
3711
+ if (stateOverride) return;
3712
+ buffer = '';
3713
+ state = PATH_START;
3714
+ } continue;
3715
+ } else buffer += chr;
3716
+ break;
3717
+
3718
+ case PATH_START:
3719
+ if (url.isSpecial()) {
3720
+ state = PATH;
3721
+ if (chr !== '/' && chr !== '\\') continue;
3722
+ } else if (!stateOverride && chr === '?') {
3723
+ url.query = '';
3724
+ state = QUERY;
3725
+ } else if (!stateOverride && chr === '#') {
3726
+ url.fragment = '';
3727
+ state = FRAGMENT;
3728
+ } else if (chr !== EOF) {
3729
+ state = PATH;
3730
+ if (chr !== '/') continue;
3731
+ } break;
3732
+
3733
+ case PATH:
3734
+ if (
3735
+ chr === EOF || chr === '/' ||
3736
+ (chr === '\\' && url.isSpecial()) ||
3737
+ (!stateOverride && (chr === '?' || chr === '#'))
3738
+ ) {
3739
+ if (isDoubleDot(buffer)) {
3740
+ url.shortenPath();
3741
+ if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
3742
+ push$1(url.path, '');
3743
+ }
3744
+ } else if (isSingleDot(buffer)) {
3745
+ if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
3746
+ push$1(url.path, '');
3747
+ }
3748
+ } else {
3749
+ if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
3750
+ if (url.host) url.host = '';
3751
+ buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
3752
+ }
3753
+ push$1(url.path, buffer);
3754
+ }
3755
+ buffer = '';
3756
+ if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {
3757
+ while (url.path.length > 1 && url.path[0] === '') {
3758
+ shift(url.path);
3759
+ }
3760
+ }
3761
+ if (chr === '?') {
3762
+ url.query = '';
3763
+ state = QUERY;
3764
+ } else if (chr === '#') {
3765
+ url.fragment = '';
3766
+ state = FRAGMENT;
3767
+ }
3768
+ } else {
3769
+ buffer += percentEncode(chr, pathPercentEncodeSet);
3770
+ } break;
3771
+
3772
+ case CANNOT_BE_A_BASE_URL_PATH:
3773
+ if (chr === '?') {
3774
+ url.query = '';
3775
+ state = QUERY;
3776
+ } else if (chr === '#') {
3777
+ url.fragment = '';
3778
+ state = FRAGMENT;
3779
+ } else if (chr !== EOF) {
3780
+ url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
3781
+ } break;
3782
+
3783
+ case QUERY:
3784
+ if (!stateOverride && chr === '#') {
3785
+ url.fragment = '';
3786
+ state = FRAGMENT;
3787
+ } else if (chr !== EOF) {
3788
+ if (chr === "'" && url.isSpecial()) url.query += '%27';
3789
+ else if (chr === '#') url.query += '%23';
3790
+ else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
3791
+ } break;
3792
+
3793
+ case FRAGMENT:
3794
+ if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
3795
+ break;
3796
+ }
3797
+
3798
+ pointer++;
3799
+ }
3800
+ },
3801
+ // https://url.spec.whatwg.org/#host-parsing
3802
+ parseHost: function (input) {
3803
+ var result, codePoints, index;
3804
+ if (charAt(input, 0) === '[') {
3805
+ if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;
3806
+ result = parseIPv6(stringSlice(input, 1, -1));
3807
+ if (!result) return INVALID_HOST;
3808
+ this.host = result;
3809
+ // opaque host
3810
+ } else if (!this.isSpecial()) {
3811
+ if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
3812
+ result = '';
3813
+ codePoints = arrayFrom(input);
3814
+ for (index = 0; index < codePoints.length; index++) {
3815
+ result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
3816
+ }
3817
+ this.host = result;
3818
+ } else {
3819
+ input = toASCII(input);
3820
+ if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
3821
+ result = parseIPv4(input);
3822
+ if (result === null) return INVALID_HOST;
3823
+ this.host = result;
3824
+ }
3825
+ },
3826
+ // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
3827
+ cannotHaveUsernamePasswordPort: function () {
3828
+ return !this.host || this.cannotBeABaseURL || this.scheme === 'file';
3829
+ },
3830
+ // https://url.spec.whatwg.org/#include-credentials
3831
+ includesCredentials: function () {
3832
+ return this.username !== '' || this.password !== '';
3833
+ },
3834
+ // https://url.spec.whatwg.org/#is-special
3835
+ isSpecial: function () {
3836
+ return hasOwn(specialSchemes, this.scheme);
3837
+ },
3838
+ // https://url.spec.whatwg.org/#shorten-a-urls-path
3839
+ shortenPath: function () {
3840
+ var path = this.path;
3841
+ var pathSize = path.length;
3842
+ if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {
3843
+ path.length--;
3844
+ }
3845
+ },
3846
+ // https://url.spec.whatwg.org/#concept-url-serializer
3847
+ serialize: function () {
3848
+ var url = this;
3849
+ var scheme = url.scheme;
3850
+ var username = url.username;
3851
+ var password = url.password;
3852
+ var host = url.host;
3853
+ var port = url.port;
3854
+ var path = url.path;
3855
+ var query = url.query;
3856
+ var fragment = url.fragment;
3857
+ var output = scheme + ':';
3858
+ if (host !== null) {
3859
+ output += '//';
3860
+ if (url.includesCredentials()) {
3861
+ output += username + (password ? ':' + password : '') + '@';
3862
+ }
3863
+ output += serializeHost(host);
3864
+ if (port !== null) output += ':' + port;
3865
+ } else if (scheme === 'file') output += '//';
3866
+ output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
3867
+ if (query !== null) output += '?' + query;
3868
+ if (fragment !== null) output += '#' + fragment;
3869
+ return output;
3870
+ },
3871
+ // https://url.spec.whatwg.org/#dom-url-href
3872
+ setHref: function (href) {
3873
+ var failure = this.parse(href);
3874
+ if (failure) throw new TypeError$1(failure);
3875
+ this.searchParams.update();
3876
+ },
3877
+ // https://url.spec.whatwg.org/#dom-url-origin
3878
+ getOrigin: function () {
3879
+ var scheme = this.scheme;
3880
+ var port = this.port;
3881
+ if (scheme === 'blob') try {
3882
+ return new URLConstructor(scheme.path[0]).origin;
3883
+ } catch (error) {
3884
+ return 'null';
3885
+ }
3886
+ if (scheme === 'file' || !this.isSpecial()) return 'null';
3887
+ return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
3888
+ },
3889
+ // https://url.spec.whatwg.org/#dom-url-protocol
3890
+ getProtocol: function () {
3891
+ return this.scheme + ':';
3892
+ },
3893
+ setProtocol: function (protocol) {
3894
+ this.parse($toString(protocol) + ':', SCHEME_START);
3895
+ },
3896
+ // https://url.spec.whatwg.org/#dom-url-username
3897
+ getUsername: function () {
3898
+ return this.username;
3899
+ },
3900
+ setUsername: function (username) {
3901
+ var codePoints = arrayFrom($toString(username));
3902
+ if (this.cannotHaveUsernamePasswordPort()) return;
3903
+ this.username = '';
3904
+ for (var i = 0; i < codePoints.length; i++) {
3905
+ this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
3906
+ }
3907
+ },
3908
+ // https://url.spec.whatwg.org/#dom-url-password
3909
+ getPassword: function () {
3910
+ return this.password;
3911
+ },
3912
+ setPassword: function (password) {
3913
+ var codePoints = arrayFrom($toString(password));
3914
+ if (this.cannotHaveUsernamePasswordPort()) return;
3915
+ this.password = '';
3916
+ for (var i = 0; i < codePoints.length; i++) {
3917
+ this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
3918
+ }
3919
+ },
3920
+ // https://url.spec.whatwg.org/#dom-url-host
3921
+ getHost: function () {
3922
+ var host = this.host;
3923
+ var port = this.port;
3924
+ return host === null ? ''
3925
+ : port === null ? serializeHost(host)
3926
+ : serializeHost(host) + ':' + port;
3927
+ },
3928
+ setHost: function (host) {
3929
+ if (this.cannotBeABaseURL) return;
3930
+ this.parse(host, HOST);
3931
+ },
3932
+ // https://url.spec.whatwg.org/#dom-url-hostname
3933
+ getHostname: function () {
3934
+ var host = this.host;
3935
+ return host === null ? '' : serializeHost(host);
3936
+ },
3937
+ setHostname: function (hostname) {
3938
+ if (this.cannotBeABaseURL) return;
3939
+ this.parse(hostname, HOSTNAME);
3940
+ },
3941
+ // https://url.spec.whatwg.org/#dom-url-port
3942
+ getPort: function () {
3943
+ var port = this.port;
3944
+ return port === null ? '' : $toString(port);
3945
+ },
3946
+ setPort: function (port) {
3947
+ if (this.cannotHaveUsernamePasswordPort()) return;
3948
+ port = $toString(port);
3949
+ if (port === '') this.port = null;
3950
+ else this.parse(port, PORT);
3951
+ },
3952
+ // https://url.spec.whatwg.org/#dom-url-pathname
3953
+ getPathname: function () {
3954
+ var path = this.path;
3955
+ return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
3956
+ },
3957
+ setPathname: function (pathname) {
3958
+ if (this.cannotBeABaseURL) return;
3959
+ this.path = [];
3960
+ this.parse(pathname, PATH_START);
3961
+ },
3962
+ // https://url.spec.whatwg.org/#dom-url-search
3963
+ getSearch: function () {
3964
+ var query = this.query;
3965
+ return query ? '?' + query : '';
3966
+ },
3967
+ setSearch: function (search) {
3968
+ search = $toString(search);
3969
+ if (search === '') {
3970
+ this.query = null;
3971
+ } else {
3972
+ if (charAt(search, 0) === '?') search = stringSlice(search, 1);
3973
+ this.query = '';
3974
+ this.parse(search, QUERY);
3975
+ }
3976
+ this.searchParams.update();
3977
+ },
3978
+ // https://url.spec.whatwg.org/#dom-url-searchparams
3979
+ getSearchParams: function () {
3980
+ return this.searchParams.facade;
3981
+ },
3982
+ // https://url.spec.whatwg.org/#dom-url-hash
3983
+ getHash: function () {
3984
+ var fragment = this.fragment;
3985
+ return fragment ? '#' + fragment : '';
3986
+ },
3987
+ setHash: function (hash) {
3988
+ hash = $toString(hash);
3989
+ if (hash === '') {
3990
+ this.fragment = null;
3991
+ return;
3992
+ }
3993
+ if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1);
3994
+ this.fragment = '';
3995
+ this.parse(hash, FRAGMENT);
3996
+ },
3997
+ update: function () {
3998
+ this.query = this.searchParams.serialize() || null;
3999
+ }
4000
+ };
4001
+
4002
+ // `URL` constructor
4003
+ // https://url.spec.whatwg.org/#url-class
4004
+ var URLConstructor = function URL(url /* , base */) {
4005
+ var that = anInstance(this, URLPrototype);
4006
+ var base = validateArgumentsLength$2(arguments.length, 1) > 1 ? arguments[1] : undefined;
4007
+ var state = setInternalState(that, new URLState(url, false, base));
4008
+ if (!DESCRIPTORS$1) {
4009
+ that.href = state.serialize();
4010
+ that.origin = state.getOrigin();
4011
+ that.protocol = state.getProtocol();
4012
+ that.username = state.getUsername();
4013
+ that.password = state.getPassword();
4014
+ that.host = state.getHost();
4015
+ that.hostname = state.getHostname();
4016
+ that.port = state.getPort();
4017
+ that.pathname = state.getPathname();
4018
+ that.search = state.getSearch();
4019
+ that.searchParams = state.getSearchParams();
4020
+ that.hash = state.getHash();
4021
+ }
4022
+ };
4023
+
4024
+ var URLPrototype = URLConstructor.prototype;
4025
+
4026
+ var accessorDescriptor = function (getter, setter) {
4027
+ return {
4028
+ get: function () {
4029
+ return getInternalURLState(this)[getter]();
4030
+ },
4031
+ set: setter && function (value) {
4032
+ return getInternalURLState(this)[setter](value);
4033
+ },
4034
+ configurable: true,
4035
+ enumerable: true
4036
+ };
4037
+ };
4038
+
4039
+ if (DESCRIPTORS$1) {
4040
+ // `URL.prototype.href` accessors pair
4041
+ // https://url.spec.whatwg.org/#dom-url-href
4042
+ defineBuiltInAccessor$1(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
4043
+ // `URL.prototype.origin` getter
4044
+ // https://url.spec.whatwg.org/#dom-url-origin
4045
+ defineBuiltInAccessor$1(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
4046
+ // `URL.prototype.protocol` accessors pair
4047
+ // https://url.spec.whatwg.org/#dom-url-protocol
4048
+ defineBuiltInAccessor$1(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
4049
+ // `URL.prototype.username` accessors pair
4050
+ // https://url.spec.whatwg.org/#dom-url-username
4051
+ defineBuiltInAccessor$1(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
4052
+ // `URL.prototype.password` accessors pair
4053
+ // https://url.spec.whatwg.org/#dom-url-password
4054
+ defineBuiltInAccessor$1(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
4055
+ // `URL.prototype.host` accessors pair
4056
+ // https://url.spec.whatwg.org/#dom-url-host
4057
+ defineBuiltInAccessor$1(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
4058
+ // `URL.prototype.hostname` accessors pair
4059
+ // https://url.spec.whatwg.org/#dom-url-hostname
4060
+ defineBuiltInAccessor$1(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
4061
+ // `URL.prototype.port` accessors pair
4062
+ // https://url.spec.whatwg.org/#dom-url-port
4063
+ defineBuiltInAccessor$1(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
4064
+ // `URL.prototype.pathname` accessors pair
4065
+ // https://url.spec.whatwg.org/#dom-url-pathname
4066
+ defineBuiltInAccessor$1(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
4067
+ // `URL.prototype.search` accessors pair
4068
+ // https://url.spec.whatwg.org/#dom-url-search
4069
+ defineBuiltInAccessor$1(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
4070
+ // `URL.prototype.searchParams` getter
4071
+ // https://url.spec.whatwg.org/#dom-url-searchparams
4072
+ defineBuiltInAccessor$1(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
4073
+ // `URL.prototype.hash` accessors pair
4074
+ // https://url.spec.whatwg.org/#dom-url-hash
4075
+ defineBuiltInAccessor$1(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
4076
+ }
4077
+
4078
+ // `URL.prototype.toJSON` method
4079
+ // https://url.spec.whatwg.org/#dom-url-tojson
4080
+ defineBuiltIn$2(URLPrototype, 'toJSON', function toJSON() {
4081
+ return getInternalURLState(this).serialize();
4082
+ }, { enumerable: true });
4083
+
4084
+ // `URL.prototype.toString` method
4085
+ // https://url.spec.whatwg.org/#URL-stringification-behavior
4086
+ defineBuiltIn$2(URLPrototype, 'toString', function toString() {
4087
+ return getInternalURLState(this).serialize();
4088
+ }, { enumerable: true });
4089
+
4090
+ if (NativeURL) {
4091
+ var nativeCreateObjectURL = NativeURL.createObjectURL;
4092
+ var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
4093
+ // `URL.createObjectURL` method
4094
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
4095
+ if (nativeCreateObjectURL) defineBuiltIn$2(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
4096
+ // `URL.revokeObjectURL` method
4097
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
4098
+ if (nativeRevokeObjectURL) defineBuiltIn$2(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
4099
+ }
4100
+
4101
+ setToStringTag(URLConstructor, 'URL');
4102
+
4103
+ $$1({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$1 }, {
4104
+ URL: URLConstructor
4105
+ });
4106
+
4107
+ var $ = _export;
4108
+ var call = functionCall;
4109
+
4110
+ // `URL.prototype.toJSON` method
4111
+ // https://url.spec.whatwg.org/#dom-url-tojson
4112
+ $({ target: 'URL', proto: true, enumerable: true }, {
4113
+ toJSON: function toJSON() {
4114
+ return call(URL.prototype.toString, this);
4115
+ }
4116
+ });
4117
+
4118
+ var defineBuiltIn$1 = defineBuiltIn$9;
4119
+ var uncurryThis$2 = functionUncurryThis;
4120
+ var toString$1 = toString$5;
4121
+ var validateArgumentsLength$1 = validateArgumentsLength$4;
4122
+
4123
+ var $URLSearchParams$1 = URLSearchParams;
4124
+ var URLSearchParamsPrototype$2 = $URLSearchParams$1.prototype;
4125
+ var append = uncurryThis$2(URLSearchParamsPrototype$2.append);
4126
+ var $delete = uncurryThis$2(URLSearchParamsPrototype$2['delete']);
4127
+ var forEach$1 = uncurryThis$2(URLSearchParamsPrototype$2.forEach);
4128
+ var push = uncurryThis$2([].push);
4129
+ var params$1 = new $URLSearchParams$1('a=1&a=2&b=3');
4130
+
4131
+ params$1['delete']('a', 1);
4132
+ // `undefined` case is a Chromium 117 bug
4133
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
4134
+ params$1['delete']('b', undefined);
4135
+
4136
+ if (params$1 + '' !== 'a=2') {
4137
+ defineBuiltIn$1(URLSearchParamsPrototype$2, 'delete', function (name /* , value */) {
4138
+ var length = arguments.length;
4139
+ var $value = length < 2 ? undefined : arguments[1];
4140
+ if (length && $value === undefined) return $delete(this, name);
4141
+ var entries = [];
4142
+ forEach$1(this, function (v, k) { // also validates `this`
4143
+ push(entries, { key: k, value: v });
4144
+ });
4145
+ validateArgumentsLength$1(length, 1);
4146
+ var key = toString$1(name);
4147
+ var value = toString$1($value);
4148
+ var index = 0;
4149
+ var dindex = 0;
4150
+ var found = false;
4151
+ var entriesLength = entries.length;
4152
+ var entry;
4153
+ while (index < entriesLength) {
4154
+ entry = entries[index++];
4155
+ if (found || entry.key === key) {
4156
+ found = true;
4157
+ $delete(this, entry.key);
4158
+ } else dindex++;
4159
+ }
4160
+ while (dindex < entriesLength) {
4161
+ entry = entries[dindex++];
4162
+ if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
4163
+ }
4164
+ }, { enumerable: true, unsafe: true });
4165
+ }
4166
+
4167
+ var defineBuiltIn = defineBuiltIn$9;
4168
+ var uncurryThis$1 = functionUncurryThis;
4169
+ var toString = toString$5;
4170
+ var validateArgumentsLength = validateArgumentsLength$4;
4171
+
4172
+ var $URLSearchParams = URLSearchParams;
4173
+ var URLSearchParamsPrototype$1 = $URLSearchParams.prototype;
4174
+ var getAll = uncurryThis$1(URLSearchParamsPrototype$1.getAll);
4175
+ var $has = uncurryThis$1(URLSearchParamsPrototype$1.has);
4176
+ var params = new $URLSearchParams('a=1');
4177
+
4178
+ // `undefined` case is a Chromium 117 bug
4179
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
4180
+ if (params.has('a', 2) || !params.has('a', undefined)) {
4181
+ defineBuiltIn(URLSearchParamsPrototype$1, 'has', function has(name /* , value */) {
4182
+ var length = arguments.length;
4183
+ var $value = length < 2 ? undefined : arguments[1];
4184
+ if (length && $value === undefined) return $has(this, name);
4185
+ var values = getAll(this, name); // also validates `this`
4186
+ validateArgumentsLength(length, 1);
4187
+ var value = toString($value);
4188
+ var index = 0;
4189
+ while (index < values.length) {
4190
+ if (values[index++] === value) return true;
4191
+ } return false;
4192
+ }, { enumerable: true, unsafe: true });
4193
+ }
4194
+
4195
+ var DESCRIPTORS = descriptors;
4196
+ var uncurryThis = functionUncurryThis;
4197
+ var defineBuiltInAccessor = defineBuiltInAccessor$4;
4198
+
4199
+ var URLSearchParamsPrototype = URLSearchParams.prototype;
4200
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
4201
+
4202
+ // `URLSearchParams.prototype.size` getter
4203
+ // https://github.com/whatwg/url/pull/734
4204
+ if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
4205
+ defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
4206
+ get: function size() {
4207
+ var count = 0;
4208
+ forEach(this, function () { count++; });
4209
+ return count;
4210
+ },
4211
+ configurable: true,
4212
+ enumerable: true
4213
+ });
4214
+ }
4215
+
4216
+ export { _export as _, anObject$c as a, aCallable$5 as b, callWithSafeIterationClosing$2 as c, isPure as d, functionCall as f, getIteratorDirect$1 as g, iteratorCreateProxy as i, styleInject as s };