@trackunit/css-tailwind-custom-properties-plugin 0.0.3 → 0.0.5

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 (2) hide show
  1. package/index.cjs +31 -2232
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -8,2211 +8,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
8
8
 
9
9
  var plugin__default = /*#__PURE__*/_interopDefaultLegacy(plugin);
10
10
 
11
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
12
-
13
- var check = function (it) {
14
- return it && it.Math == Math && it;
15
- };
16
-
17
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
18
- var global$e =
19
- // eslint-disable-next-line es/no-global-this -- safe
20
- check(typeof globalThis == 'object' && globalThis) ||
21
- check(typeof window == 'object' && window) ||
22
- // eslint-disable-next-line no-restricted-globals -- safe
23
- check(typeof self == 'object' && self) ||
24
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
25
- // eslint-disable-next-line no-new-func -- fallback
26
- (function () { return this; })() || Function('return this')();
27
-
28
- var objectGetOwnPropertyDescriptor = {};
29
-
30
- var fails$g = function (exec) {
31
- try {
32
- return !!exec();
33
- } catch (error) {
34
- return true;
35
- }
36
- };
37
-
38
- var fails$f = fails$g;
39
-
40
- // Detect IE8's incomplete defineProperty implementation
41
- var descriptors = !fails$f(function () {
42
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
43
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
44
- });
45
-
46
- var fails$e = fails$g;
47
-
48
- var functionBindNative = !fails$e(function () {
49
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
50
- var test = (function () { /* empty */ }).bind();
51
- // eslint-disable-next-line no-prototype-builtins -- safe
52
- return typeof test != 'function' || test.hasOwnProperty('prototype');
53
- });
54
-
55
- var NATIVE_BIND$2 = functionBindNative;
56
-
57
- var call$a = Function.prototype.call;
58
-
59
- var functionCall = NATIVE_BIND$2 ? call$a.bind(call$a) : function () {
60
- return call$a.apply(call$a, arguments);
61
- };
62
-
63
- var objectPropertyIsEnumerable = {};
64
-
65
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
66
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
67
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
68
-
69
- // Nashorn ~ JDK8 bug
70
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
71
-
72
- // `Object.prototype.propertyIsEnumerable` method implementation
73
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
74
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
75
- var descriptor = getOwnPropertyDescriptor$1(this, V);
76
- return !!descriptor && descriptor.enumerable;
77
- } : $propertyIsEnumerable;
78
-
79
- var createPropertyDescriptor$3 = function (bitmap, value) {
80
- return {
81
- enumerable: !(bitmap & 1),
82
- configurable: !(bitmap & 2),
83
- writable: !(bitmap & 4),
84
- value: value
85
- };
86
- };
87
-
88
- var NATIVE_BIND$1 = functionBindNative;
89
-
90
- var FunctionPrototype$2 = Function.prototype;
91
- var call$9 = FunctionPrototype$2.call;
92
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$9, call$9);
93
-
94
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
95
- return function () {
96
- return call$9.apply(fn, arguments);
97
- };
98
- };
99
-
100
- var uncurryThis$f = functionUncurryThis;
101
-
102
- var toString$5 = uncurryThis$f({}.toString);
103
- var stringSlice$4 = uncurryThis$f(''.slice);
104
-
105
- var classofRaw$2 = function (it) {
106
- return stringSlice$4(toString$5(it), 8, -1);
107
- };
108
-
109
- var uncurryThis$e = functionUncurryThis;
110
- var fails$d = fails$g;
111
- var classof$3 = classofRaw$2;
112
-
113
- var $Object$4 = Object;
114
- var split = uncurryThis$e(''.split);
115
-
116
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
117
- var indexedObject = fails$d(function () {
118
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
119
- // eslint-disable-next-line no-prototype-builtins -- safe
120
- return !$Object$4('z').propertyIsEnumerable(0);
121
- }) ? function (it) {
122
- return classof$3(it) == 'String' ? split(it, '') : $Object$4(it);
123
- } : $Object$4;
124
-
125
- // we can't use just `it == null` since of `document.all` special case
126
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
127
- var isNullOrUndefined$3 = function (it) {
128
- return it === null || it === undefined;
129
- };
130
-
131
- var isNullOrUndefined$2 = isNullOrUndefined$3;
132
-
133
- var $TypeError$7 = TypeError;
134
-
135
- // `RequireObjectCoercible` abstract operation
136
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
137
- var requireObjectCoercible$4 = function (it) {
138
- if (isNullOrUndefined$2(it)) throw $TypeError$7("Can't call method on " + it);
139
- return it;
140
- };
141
-
142
- // toObject with fallback for non-array-like ES3 strings
143
- var IndexedObject$1 = indexedObject;
144
- var requireObjectCoercible$3 = requireObjectCoercible$4;
145
-
146
- var toIndexedObject$5 = function (it) {
147
- return IndexedObject$1(requireObjectCoercible$3(it));
148
- };
149
-
150
- var documentAll$2 = typeof document == 'object' && document.all;
151
-
152
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
153
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
154
-
155
- var documentAll_1 = {
156
- all: documentAll$2,
157
- IS_HTMLDDA: IS_HTMLDDA
158
- };
159
-
160
- var $documentAll$1 = documentAll_1;
161
-
162
- var documentAll$1 = $documentAll$1.all;
163
-
164
- // `IsCallable` abstract operation
165
- // https://tc39.es/ecma262/#sec-iscallable
166
- var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
167
- return typeof argument == 'function' || argument === documentAll$1;
168
- } : function (argument) {
169
- return typeof argument == 'function';
170
- };
171
-
172
- var isCallable$g = isCallable$h;
173
- var $documentAll = documentAll_1;
174
-
175
- var documentAll = $documentAll.all;
176
-
177
- var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
178
- return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
179
- } : function (it) {
180
- return typeof it == 'object' ? it !== null : isCallable$g(it);
181
- };
182
-
183
- var global$d = global$e;
184
- var isCallable$f = isCallable$h;
185
-
186
- var aFunction = function (argument) {
187
- return isCallable$f(argument) ? argument : undefined;
188
- };
189
-
190
- var getBuiltIn$4 = function (namespace, method) {
191
- return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
192
- };
193
-
194
- var uncurryThis$d = functionUncurryThis;
195
-
196
- var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
197
-
198
- var getBuiltIn$3 = getBuiltIn$4;
199
-
200
- var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
201
-
202
- var global$c = global$e;
203
- var userAgent = engineUserAgent;
204
-
205
- var process = global$c.process;
206
- var Deno = global$c.Deno;
207
- var versions = process && process.versions || Deno && Deno.version;
208
- var v8 = versions && versions.v8;
209
- var match, version;
210
-
211
- if (v8) {
212
- match = v8.split('.');
213
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
214
- // but their correct versions are not interesting for us
215
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
216
- }
217
-
218
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
219
- // so check `userAgent` even if `.v8` exists, but 0
220
- if (!version && userAgent) {
221
- match = userAgent.match(/Edge\/(\d+)/);
222
- if (!match || match[1] >= 74) {
223
- match = userAgent.match(/Chrome\/(\d+)/);
224
- if (match) version = +match[1];
225
- }
226
- }
227
-
228
- var engineV8Version = version;
229
-
230
- /* eslint-disable es/no-symbol -- required for testing */
231
-
232
- var V8_VERSION = engineV8Version;
233
- var fails$c = fails$g;
234
-
235
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
236
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
237
- var symbol = Symbol();
238
- // Chrome 38 Symbol has incorrect toString conversion
239
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
240
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
241
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
242
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
243
- });
244
-
245
- /* eslint-disable es/no-symbol -- required for testing */
246
-
247
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
248
-
249
- var useSymbolAsUid = NATIVE_SYMBOL$1
250
- && !Symbol.sham
251
- && typeof Symbol.iterator == 'symbol';
252
-
253
- var getBuiltIn$2 = getBuiltIn$4;
254
- var isCallable$e = isCallable$h;
255
- var isPrototypeOf = objectIsPrototypeOf;
256
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
257
-
258
- var $Object$3 = Object;
259
-
260
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
261
- return typeof it == 'symbol';
262
- } : function (it) {
263
- var $Symbol = getBuiltIn$2('Symbol');
264
- return isCallable$e($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
265
- };
266
-
267
- var $String$3 = String;
268
-
269
- var tryToString$1 = function (argument) {
270
- try {
271
- return $String$3(argument);
272
- } catch (error) {
273
- return 'Object';
274
- }
275
- };
276
-
277
- var isCallable$d = isCallable$h;
278
- var tryToString = tryToString$1;
279
-
280
- var $TypeError$6 = TypeError;
281
-
282
- // `Assert: IsCallable(argument) is true`
283
- var aCallable$1 = function (argument) {
284
- if (isCallable$d(argument)) return argument;
285
- throw $TypeError$6(tryToString(argument) + ' is not a function');
286
- };
287
-
288
- var aCallable = aCallable$1;
289
- var isNullOrUndefined$1 = isNullOrUndefined$3;
290
-
291
- // `GetMethod` abstract operation
292
- // https://tc39.es/ecma262/#sec-getmethod
293
- var getMethod$2 = function (V, P) {
294
- var func = V[P];
295
- return isNullOrUndefined$1(func) ? undefined : aCallable(func);
296
- };
297
-
298
- var call$8 = functionCall;
299
- var isCallable$c = isCallable$h;
300
- var isObject$5 = isObject$6;
301
-
302
- var $TypeError$5 = TypeError;
303
-
304
- // `OrdinaryToPrimitive` abstract operation
305
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
306
- var ordinaryToPrimitive$1 = function (input, pref) {
307
- var fn, val;
308
- if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$5(val = call$8(fn, input))) return val;
309
- if (isCallable$c(fn = input.valueOf) && !isObject$5(val = call$8(fn, input))) return val;
310
- if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$5(val = call$8(fn, input))) return val;
311
- throw $TypeError$5("Can't convert object to primitive value");
312
- };
313
-
314
- var shared$4 = {exports: {}};
315
-
316
- var global$b = global$e;
317
-
318
- // eslint-disable-next-line es/no-object-defineproperty -- safe
319
- var defineProperty$5 = Object.defineProperty;
320
-
321
- var defineGlobalProperty$3 = function (key, value) {
322
- try {
323
- defineProperty$5(global$b, key, { value: value, configurable: true, writable: true });
324
- } catch (error) {
325
- global$b[key] = value;
326
- } return value;
327
- };
328
-
329
- var global$a = global$e;
330
- var defineGlobalProperty$2 = defineGlobalProperty$3;
331
-
332
- var SHARED = '__core-js_shared__';
333
- var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {});
334
-
335
- var sharedStore = store$3;
336
-
337
- var store$2 = sharedStore;
338
-
339
- (shared$4.exports = function (key, value) {
340
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
341
- })('versions', []).push({
342
- version: '3.26.1',
343
- mode: 'global',
344
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
345
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
346
- source: 'https://github.com/zloirock/core-js'
347
- });
348
-
349
- var requireObjectCoercible$2 = requireObjectCoercible$4;
350
-
351
- var $Object$2 = Object;
352
-
353
- // `ToObject` abstract operation
354
- // https://tc39.es/ecma262/#sec-toobject
355
- var toObject$4 = function (argument) {
356
- return $Object$2(requireObjectCoercible$2(argument));
357
- };
358
-
359
- var uncurryThis$c = functionUncurryThis;
360
- var toObject$3 = toObject$4;
361
-
362
- var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
363
-
364
- // `HasOwnProperty` abstract operation
365
- // https://tc39.es/ecma262/#sec-hasownproperty
366
- // eslint-disable-next-line es/no-object-hasown -- safe
367
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
368
- return hasOwnProperty(toObject$3(it), key);
369
- };
370
-
371
- var uncurryThis$b = functionUncurryThis;
372
-
373
- var id = 0;
374
- var postfix = Math.random();
375
- var toString$4 = uncurryThis$b(1.0.toString);
376
-
377
- var uid$2 = function (key) {
378
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
379
- };
380
-
381
- var global$9 = global$e;
382
- var shared$3 = shared$4.exports;
383
- var hasOwn$8 = hasOwnProperty_1;
384
- var uid$1 = uid$2;
385
- var NATIVE_SYMBOL = symbolConstructorDetection;
386
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
387
-
388
- var WellKnownSymbolsStore = shared$3('wks');
389
- var Symbol$1 = global$9.Symbol;
390
- var symbolFor = Symbol$1 && Symbol$1['for'];
391
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
392
-
393
- var wellKnownSymbol$a = function (name) {
394
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
395
- var description = 'Symbol.' + name;
396
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
397
- WellKnownSymbolsStore[name] = Symbol$1[name];
398
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
399
- WellKnownSymbolsStore[name] = symbolFor(description);
400
- } else {
401
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
402
- }
403
- } return WellKnownSymbolsStore[name];
404
- };
405
-
406
- var call$7 = functionCall;
407
- var isObject$4 = isObject$6;
408
- var isSymbol$1 = isSymbol$2;
409
- var getMethod$1 = getMethod$2;
410
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
411
- var wellKnownSymbol$9 = wellKnownSymbol$a;
412
-
413
- var $TypeError$4 = TypeError;
414
- var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
415
-
416
- // `ToPrimitive` abstract operation
417
- // https://tc39.es/ecma262/#sec-toprimitive
418
- var toPrimitive$1 = function (input, pref) {
419
- if (!isObject$4(input) || isSymbol$1(input)) return input;
420
- var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
421
- var result;
422
- if (exoticToPrim) {
423
- if (pref === undefined) pref = 'default';
424
- result = call$7(exoticToPrim, input, pref);
425
- if (!isObject$4(result) || isSymbol$1(result)) return result;
426
- throw $TypeError$4("Can't convert object to primitive value");
427
- }
428
- if (pref === undefined) pref = 'number';
429
- return ordinaryToPrimitive(input, pref);
430
- };
431
-
432
- var toPrimitive = toPrimitive$1;
433
- var isSymbol = isSymbol$2;
434
-
435
- // `ToPropertyKey` abstract operation
436
- // https://tc39.es/ecma262/#sec-topropertykey
437
- var toPropertyKey$2 = function (argument) {
438
- var key = toPrimitive(argument, 'string');
439
- return isSymbol(key) ? key : key + '';
440
- };
441
-
442
- var global$8 = global$e;
443
- var isObject$3 = isObject$6;
444
-
445
- var document$1 = global$8.document;
446
- // typeof document.createElement is 'object' in old IE
447
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
448
-
449
- var documentCreateElement$2 = function (it) {
450
- return EXISTS$1 ? document$1.createElement(it) : {};
451
- };
452
-
453
- var DESCRIPTORS$9 = descriptors;
454
- var fails$b = fails$g;
455
- var createElement = documentCreateElement$2;
456
-
457
- // Thanks to IE8 for its funny defineProperty
458
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$b(function () {
459
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
460
- return Object.defineProperty(createElement('div'), 'a', {
461
- get: function () { return 7; }
462
- }).a != 7;
463
- });
464
-
465
- var DESCRIPTORS$8 = descriptors;
466
- var call$6 = functionCall;
467
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
468
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
469
- var toIndexedObject$4 = toIndexedObject$5;
470
- var toPropertyKey$1 = toPropertyKey$2;
471
- var hasOwn$7 = hasOwnProperty_1;
472
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
473
-
474
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
475
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
476
-
477
- // `Object.getOwnPropertyDescriptor` method
478
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
479
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
480
- O = toIndexedObject$4(O);
481
- P = toPropertyKey$1(P);
482
- if (IE8_DOM_DEFINE$1) try {
483
- return $getOwnPropertyDescriptor$1(O, P);
484
- } catch (error) { /* empty */ }
485
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
486
- };
487
-
488
- var objectDefineProperty = {};
489
-
490
- var DESCRIPTORS$7 = descriptors;
491
- var fails$a = fails$g;
492
-
493
- // V8 ~ Chrome 36-
494
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
495
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$a(function () {
496
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
497
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
498
- value: 42,
499
- writable: false
500
- }).prototype != 42;
501
- });
502
-
503
- var isObject$2 = isObject$6;
504
-
505
- var $String$2 = String;
506
- var $TypeError$3 = TypeError;
507
-
508
- // `Assert: Type(argument) is Object`
509
- var anObject$8 = function (argument) {
510
- if (isObject$2(argument)) return argument;
511
- throw $TypeError$3($String$2(argument) + ' is not an object');
512
- };
513
-
514
- var DESCRIPTORS$6 = descriptors;
515
- var IE8_DOM_DEFINE = ie8DomDefine;
516
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
517
- var anObject$7 = anObject$8;
518
- var toPropertyKey = toPropertyKey$2;
519
-
520
- var $TypeError$2 = TypeError;
521
- // eslint-disable-next-line es/no-object-defineproperty -- safe
522
- var $defineProperty = Object.defineProperty;
523
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
524
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
525
- var ENUMERABLE = 'enumerable';
526
- var CONFIGURABLE$1 = 'configurable';
527
- var WRITABLE = 'writable';
528
-
529
- // `Object.defineProperty` method
530
- // https://tc39.es/ecma262/#sec-object.defineproperty
531
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
532
- anObject$7(O);
533
- P = toPropertyKey(P);
534
- anObject$7(Attributes);
535
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
536
- var current = $getOwnPropertyDescriptor(O, P);
537
- if (current && current[WRITABLE]) {
538
- O[P] = Attributes.value;
539
- Attributes = {
540
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
541
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
542
- writable: false
543
- };
544
- }
545
- } return $defineProperty(O, P, Attributes);
546
- } : $defineProperty : function defineProperty(O, P, Attributes) {
547
- anObject$7(O);
548
- P = toPropertyKey(P);
549
- anObject$7(Attributes);
550
- if (IE8_DOM_DEFINE) try {
551
- return $defineProperty(O, P, Attributes);
552
- } catch (error) { /* empty */ }
553
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
554
- if ('value' in Attributes) O[P] = Attributes.value;
555
- return O;
556
- };
557
-
558
- var DESCRIPTORS$5 = descriptors;
559
- var definePropertyModule$3 = objectDefineProperty;
560
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
561
-
562
- var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
563
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
564
- } : function (object, key, value) {
565
- object[key] = value;
566
- return object;
567
- };
568
-
569
- var makeBuiltIn$2 = {exports: {}};
570
-
571
- var DESCRIPTORS$4 = descriptors;
572
- var hasOwn$6 = hasOwnProperty_1;
573
-
574
- var FunctionPrototype$1 = Function.prototype;
575
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
576
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
577
-
578
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
579
- // additional protection from minified / mangled / dropped function names
580
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
581
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
582
-
583
- var functionName = {
584
- EXISTS: EXISTS,
585
- PROPER: PROPER,
586
- CONFIGURABLE: CONFIGURABLE
587
- };
588
-
589
- var uncurryThis$a = functionUncurryThis;
590
- var isCallable$b = isCallable$h;
591
- var store$1 = sharedStore;
592
-
593
- var functionToString = uncurryThis$a(Function.toString);
594
-
595
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
596
- if (!isCallable$b(store$1.inspectSource)) {
597
- store$1.inspectSource = function (it) {
598
- return functionToString(it);
599
- };
600
- }
601
-
602
- var inspectSource$1 = store$1.inspectSource;
603
-
604
- var global$7 = global$e;
605
- var isCallable$a = isCallable$h;
606
-
607
- var WeakMap$1 = global$7.WeakMap;
608
-
609
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
610
-
611
- var shared$2 = shared$4.exports;
612
- var uid = uid$2;
613
-
614
- var keys = shared$2('keys');
615
-
616
- var sharedKey$3 = function (key) {
617
- return keys[key] || (keys[key] = uid(key));
618
- };
619
-
620
- var hiddenKeys$4 = {};
621
-
622
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
623
- var global$6 = global$e;
624
- var isObject$1 = isObject$6;
625
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
626
- var hasOwn$5 = hasOwnProperty_1;
627
- var shared$1 = sharedStore;
628
- var sharedKey$2 = sharedKey$3;
629
- var hiddenKeys$3 = hiddenKeys$4;
630
-
631
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
632
- var TypeError$1 = global$6.TypeError;
633
- var WeakMap = global$6.WeakMap;
634
- var set, get, has;
635
-
636
- var enforce = function (it) {
637
- return has(it) ? get(it) : set(it, {});
638
- };
639
-
640
- var getterFor = function (TYPE) {
641
- return function (it) {
642
- var state;
643
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
644
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
645
- } return state;
646
- };
647
- };
648
-
649
- if (NATIVE_WEAK_MAP || shared$1.state) {
650
- var store = shared$1.state || (shared$1.state = new WeakMap());
651
- /* eslint-disable no-self-assign -- prototype methods protection */
652
- store.get = store.get;
653
- store.has = store.has;
654
- store.set = store.set;
655
- /* eslint-enable no-self-assign -- prototype methods protection */
656
- set = function (it, metadata) {
657
- if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
658
- metadata.facade = it;
659
- store.set(it, metadata);
660
- return metadata;
661
- };
662
- get = function (it) {
663
- return store.get(it) || {};
664
- };
665
- has = function (it) {
666
- return store.has(it);
667
- };
668
- } else {
669
- var STATE = sharedKey$2('state');
670
- hiddenKeys$3[STATE] = true;
671
- set = function (it, metadata) {
672
- if (hasOwn$5(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
673
- metadata.facade = it;
674
- createNonEnumerableProperty$4(it, STATE, metadata);
675
- return metadata;
676
- };
677
- get = function (it) {
678
- return hasOwn$5(it, STATE) ? it[STATE] : {};
679
- };
680
- has = function (it) {
681
- return hasOwn$5(it, STATE);
682
- };
683
- }
684
-
685
- var internalState = {
686
- set: set,
687
- get: get,
688
- has: has,
689
- enforce: enforce,
690
- getterFor: getterFor
691
- };
692
-
693
- var fails$9 = fails$g;
694
- var isCallable$9 = isCallable$h;
695
- var hasOwn$4 = hasOwnProperty_1;
696
- var DESCRIPTORS$3 = descriptors;
697
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
698
- var inspectSource = inspectSource$1;
699
- var InternalStateModule$1 = internalState;
700
-
701
- var enforceInternalState = InternalStateModule$1.enforce;
702
- var getInternalState$2 = InternalStateModule$1.get;
703
- // eslint-disable-next-line es/no-object-defineproperty -- safe
704
- var defineProperty$4 = Object.defineProperty;
705
-
706
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$9(function () {
707
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
708
- });
709
-
710
- var TEMPLATE = String(String).split('String');
711
-
712
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
713
- if (String(name).slice(0, 7) === 'Symbol(') {
714
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
715
- }
716
- if (options && options.getter) name = 'get ' + name;
717
- if (options && options.setter) name = 'set ' + name;
718
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
719
- if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
720
- else value.name = name;
721
- }
722
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
723
- defineProperty$4(value, 'length', { value: options.arity });
724
- }
725
- try {
726
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
727
- if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
728
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
729
- } else if (value.prototype) value.prototype = undefined;
730
- } catch (error) { /* empty */ }
731
- var state = enforceInternalState(value);
732
- if (!hasOwn$4(state, 'source')) {
733
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
734
- } return value;
735
- };
736
-
737
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
738
- // eslint-disable-next-line no-extend-native -- required
739
- Function.prototype.toString = makeBuiltIn$1(function toString() {
740
- return isCallable$9(this) && getInternalState$2(this).source || inspectSource(this);
741
- }, 'toString');
742
-
743
- var isCallable$8 = isCallable$h;
744
- var definePropertyModule$2 = objectDefineProperty;
745
- var makeBuiltIn = makeBuiltIn$2.exports;
746
- var defineGlobalProperty$1 = defineGlobalProperty$3;
747
-
748
- var defineBuiltIn$4 = function (O, key, value, options) {
749
- if (!options) options = {};
750
- var simple = options.enumerable;
751
- var name = options.name !== undefined ? options.name : key;
752
- if (isCallable$8(value)) makeBuiltIn(value, name, options);
753
- if (options.global) {
754
- if (simple) O[key] = value;
755
- else defineGlobalProperty$1(key, value);
756
- } else {
757
- try {
758
- if (!options.unsafe) delete O[key];
759
- else if (O[key]) simple = true;
760
- } catch (error) { /* empty */ }
761
- if (simple) O[key] = value;
762
- else definePropertyModule$2.f(O, key, {
763
- value: value,
764
- enumerable: false,
765
- configurable: !options.nonConfigurable,
766
- writable: !options.nonWritable
767
- });
768
- } return O;
769
- };
770
-
771
- var objectGetOwnPropertyNames = {};
772
-
773
- var ceil = Math.ceil;
774
- var floor$1 = Math.floor;
775
-
776
- // `Math.trunc` method
777
- // https://tc39.es/ecma262/#sec-math.trunc
778
- // eslint-disable-next-line es/no-math-trunc -- safe
779
- var mathTrunc = Math.trunc || function trunc(x) {
780
- var n = +x;
781
- return (n > 0 ? floor$1 : ceil)(n);
782
- };
783
-
784
- var trunc = mathTrunc;
785
-
786
- // `ToIntegerOrInfinity` abstract operation
787
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
788
- var toIntegerOrInfinity$4 = function (argument) {
789
- var number = +argument;
790
- // eslint-disable-next-line no-self-compare -- NaN check
791
- return number !== number || number === 0 ? 0 : trunc(number);
792
- };
793
-
794
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
795
-
796
- var max$1 = Math.max;
797
- var min$2 = Math.min;
798
-
799
- // Helper for a popular repeating case of the spec:
800
- // Let integer be ? ToInteger(index).
801
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
802
- var toAbsoluteIndex$1 = function (index, length) {
803
- var integer = toIntegerOrInfinity$3(index);
804
- return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
805
- };
806
-
807
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
808
-
809
- var min$1 = Math.min;
810
-
811
- // `ToLength` abstract operation
812
- // https://tc39.es/ecma262/#sec-tolength
813
- var toLength$2 = function (argument) {
814
- return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
815
- };
816
-
817
- var toLength$1 = toLength$2;
818
-
819
- // `LengthOfArrayLike` abstract operation
820
- // https://tc39.es/ecma262/#sec-lengthofarraylike
821
- var lengthOfArrayLike$1 = function (obj) {
822
- return toLength$1(obj.length);
823
- };
824
-
825
- var toIndexedObject$3 = toIndexedObject$5;
826
- var toAbsoluteIndex = toAbsoluteIndex$1;
827
- var lengthOfArrayLike = lengthOfArrayLike$1;
828
-
829
- // `Array.prototype.{ indexOf, includes }` methods implementation
830
- var createMethod$1 = function (IS_INCLUDES) {
831
- return function ($this, el, fromIndex) {
832
- var O = toIndexedObject$3($this);
833
- var length = lengthOfArrayLike(O);
834
- var index = toAbsoluteIndex(fromIndex, length);
835
- var value;
836
- // Array#includes uses SameValueZero equality algorithm
837
- // eslint-disable-next-line no-self-compare -- NaN check
838
- if (IS_INCLUDES && el != el) while (length > index) {
839
- value = O[index++];
840
- // eslint-disable-next-line no-self-compare -- NaN check
841
- if (value != value) return true;
842
- // Array#indexOf ignores holes, Array#includes - not
843
- } else for (;length > index; index++) {
844
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
845
- } return !IS_INCLUDES && -1;
846
- };
847
- };
848
-
849
- var arrayIncludes = {
850
- // `Array.prototype.includes` method
851
- // https://tc39.es/ecma262/#sec-array.prototype.includes
852
- includes: createMethod$1(true),
853
- // `Array.prototype.indexOf` method
854
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
855
- indexOf: createMethod$1(false)
856
- };
857
-
858
- var uncurryThis$9 = functionUncurryThis;
859
- var hasOwn$3 = hasOwnProperty_1;
860
- var toIndexedObject$2 = toIndexedObject$5;
861
- var indexOf$1 = arrayIncludes.indexOf;
862
- var hiddenKeys$2 = hiddenKeys$4;
863
-
864
- var push$1 = uncurryThis$9([].push);
865
-
866
- var objectKeysInternal = function (object, names) {
867
- var O = toIndexedObject$2(object);
868
- var i = 0;
869
- var result = [];
870
- var key;
871
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
872
- // Don't enum bug & hidden keys
873
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
874
- ~indexOf$1(result, key) || push$1(result, key);
875
- }
876
- return result;
877
- };
878
-
879
- // IE8- don't enum bug keys
880
- var enumBugKeys$3 = [
881
- 'constructor',
882
- 'hasOwnProperty',
883
- 'isPrototypeOf',
884
- 'propertyIsEnumerable',
885
- 'toLocaleString',
886
- 'toString',
887
- 'valueOf'
888
- ];
889
-
890
- var internalObjectKeys$1 = objectKeysInternal;
891
- var enumBugKeys$2 = enumBugKeys$3;
892
-
893
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
894
-
895
- // `Object.getOwnPropertyNames` method
896
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
897
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
898
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
899
- return internalObjectKeys$1(O, hiddenKeys$1);
900
- };
901
-
902
- var objectGetOwnPropertySymbols = {};
903
-
904
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
905
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
906
-
907
- var getBuiltIn$1 = getBuiltIn$4;
908
- var uncurryThis$8 = functionUncurryThis;
909
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
910
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
911
- var anObject$6 = anObject$8;
912
-
913
- var concat$2 = uncurryThis$8([].concat);
914
-
915
- // all object keys, includes non-enumerable and symbols
916
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
917
- var keys = getOwnPropertyNamesModule.f(anObject$6(it));
918
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
919
- return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
920
- };
921
-
922
- var hasOwn$2 = hasOwnProperty_1;
923
- var ownKeys = ownKeys$1;
924
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
925
- var definePropertyModule$1 = objectDefineProperty;
926
-
927
- var copyConstructorProperties$1 = function (target, source, exceptions) {
928
- var keys = ownKeys(source);
929
- var defineProperty = definePropertyModule$1.f;
930
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
931
- for (var i = 0; i < keys.length; i++) {
932
- var key = keys[i];
933
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
934
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
935
- }
936
- }
937
- };
938
-
939
- var fails$8 = fails$g;
940
- var isCallable$7 = isCallable$h;
941
-
942
- var replacement = /#|\.prototype\./;
943
-
944
- var isForced$1 = function (feature, detection) {
945
- var value = data[normalize(feature)];
946
- return value == POLYFILL ? true
947
- : value == NATIVE ? false
948
- : isCallable$7(detection) ? fails$8(detection)
949
- : !!detection;
950
- };
951
-
952
- var normalize = isForced$1.normalize = function (string) {
953
- return String(string).replace(replacement, '.').toLowerCase();
954
- };
955
-
956
- var data = isForced$1.data = {};
957
- var NATIVE = isForced$1.NATIVE = 'N';
958
- var POLYFILL = isForced$1.POLYFILL = 'P';
959
-
960
- var isForced_1 = isForced$1;
961
-
962
- var global$5 = global$e;
963
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
964
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
965
- var defineBuiltIn$3 = defineBuiltIn$4;
966
- var defineGlobalProperty = defineGlobalProperty$3;
967
- var copyConstructorProperties = copyConstructorProperties$1;
968
- var isForced = isForced_1;
969
-
970
- /*
971
- options.target - name of the target object
972
- options.global - target is the global object
973
- options.stat - export as static methods of target
974
- options.proto - export as prototype methods of target
975
- options.real - real prototype method for the `pure` version
976
- options.forced - export even if the native feature is available
977
- options.bind - bind methods to the target, required for the `pure` version
978
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
979
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
980
- options.sham - add a flag to not completely full polyfills
981
- options.enumerable - export as enumerable property
982
- options.dontCallGetSet - prevent calling a getter on target
983
- options.name - the .name of the function if it does not match the key
984
- */
985
- var _export = function (options, source) {
986
- var TARGET = options.target;
987
- var GLOBAL = options.global;
988
- var STATIC = options.stat;
989
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
990
- if (GLOBAL) {
991
- target = global$5;
992
- } else if (STATIC) {
993
- target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
994
- } else {
995
- target = (global$5[TARGET] || {}).prototype;
996
- }
997
- if (target) for (key in source) {
998
- sourceProperty = source[key];
999
- if (options.dontCallGetSet) {
1000
- descriptor = getOwnPropertyDescriptor(target, key);
1001
- targetProperty = descriptor && descriptor.value;
1002
- } else targetProperty = target[key];
1003
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1004
- // contained in target
1005
- if (!FORCED && targetProperty !== undefined) {
1006
- if (typeof sourceProperty == typeof targetProperty) continue;
1007
- copyConstructorProperties(sourceProperty, targetProperty);
1008
- }
1009
- // add a flag to not completely full polyfills
1010
- if (options.sham || (targetProperty && targetProperty.sham)) {
1011
- createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1012
- }
1013
- defineBuiltIn$3(target, key, sourceProperty, options);
1014
- }
1015
- };
1016
-
1017
- var wellKnownSymbol$8 = wellKnownSymbol$a;
1018
-
1019
- var TO_STRING_TAG$3 = wellKnownSymbol$8('toStringTag');
1020
- var test = {};
1021
-
1022
- test[TO_STRING_TAG$3] = 'z';
1023
-
1024
- var toStringTagSupport = String(test) === '[object z]';
1025
-
1026
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1027
- var isCallable$6 = isCallable$h;
1028
- var classofRaw$1 = classofRaw$2;
1029
- var wellKnownSymbol$7 = wellKnownSymbol$a;
1030
-
1031
- var TO_STRING_TAG$2 = wellKnownSymbol$7('toStringTag');
1032
- var $Object$1 = Object;
1033
-
1034
- // ES3 wrong here
1035
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1036
-
1037
- // fallback for IE11 Script Access Denied error
1038
- var tryGet = function (it, key) {
1039
- try {
1040
- return it[key];
1041
- } catch (error) { /* empty */ }
1042
- };
1043
-
1044
- // getting tag from ES6+ `Object.prototype.toString`
1045
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1046
- var O, tag, result;
1047
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1048
- // @@toStringTag case
1049
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == 'string' ? tag
1050
- // builtinTag case
1051
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1052
- // ES3 arguments fallback
1053
- : (result = classofRaw$1(O)) == 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
1054
- };
1055
-
1056
- var classof$1 = classof$2;
1057
-
1058
- var $String$1 = String;
1059
-
1060
- var toString$3 = function (argument) {
1061
- if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1062
- return $String$1(argument);
1063
- };
1064
-
1065
- var anObject$5 = anObject$8;
1066
-
1067
- // `RegExp.prototype.flags` getter implementation
1068
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1069
- var regexpFlags$1 = function () {
1070
- var that = anObject$5(this);
1071
- var result = '';
1072
- if (that.hasIndices) result += 'd';
1073
- if (that.global) result += 'g';
1074
- if (that.ignoreCase) result += 'i';
1075
- if (that.multiline) result += 'm';
1076
- if (that.dotAll) result += 's';
1077
- if (that.unicode) result += 'u';
1078
- if (that.unicodeSets) result += 'v';
1079
- if (that.sticky) result += 'y';
1080
- return result;
1081
- };
1082
-
1083
- var fails$7 = fails$g;
1084
- var global$4 = global$e;
1085
-
1086
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1087
- var $RegExp$2 = global$4.RegExp;
1088
-
1089
- var UNSUPPORTED_Y$1 = fails$7(function () {
1090
- var re = $RegExp$2('a', 'y');
1091
- re.lastIndex = 2;
1092
- return re.exec('abcd') != null;
1093
- });
1094
-
1095
- // UC Browser bug
1096
- // https://github.com/zloirock/core-js/issues/1008
1097
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$7(function () {
1098
- return !$RegExp$2('a', 'y').sticky;
1099
- });
1100
-
1101
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$7(function () {
1102
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1103
- var re = $RegExp$2('^r', 'gy');
1104
- re.lastIndex = 2;
1105
- return re.exec('str') != null;
1106
- });
1107
-
1108
- var regexpStickyHelpers = {
1109
- BROKEN_CARET: BROKEN_CARET,
1110
- MISSED_STICKY: MISSED_STICKY,
1111
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
1112
- };
1113
-
1114
- var objectDefineProperties = {};
1115
-
1116
- var internalObjectKeys = objectKeysInternal;
1117
- var enumBugKeys$1 = enumBugKeys$3;
1118
-
1119
- // `Object.keys` method
1120
- // https://tc39.es/ecma262/#sec-object.keys
1121
- // eslint-disable-next-line es/no-object-keys -- safe
1122
- var objectKeys$2 = Object.keys || function keys(O) {
1123
- return internalObjectKeys(O, enumBugKeys$1);
1124
- };
1125
-
1126
- var DESCRIPTORS$2 = descriptors;
1127
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1128
- var definePropertyModule = objectDefineProperty;
1129
- var anObject$4 = anObject$8;
1130
- var toIndexedObject$1 = toIndexedObject$5;
1131
- var objectKeys$1 = objectKeys$2;
1132
-
1133
- // `Object.defineProperties` method
1134
- // https://tc39.es/ecma262/#sec-object.defineproperties
1135
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1136
- objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1137
- anObject$4(O);
1138
- var props = toIndexedObject$1(Properties);
1139
- var keys = objectKeys$1(Properties);
1140
- var length = keys.length;
1141
- var index = 0;
1142
- var key;
1143
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1144
- return O;
1145
- };
1146
-
1147
- var getBuiltIn = getBuiltIn$4;
1148
-
1149
- var html$1 = getBuiltIn('document', 'documentElement');
1150
-
1151
- /* global ActiveXObject -- old IE, WSH */
1152
-
1153
- var anObject$3 = anObject$8;
1154
- var definePropertiesModule = objectDefineProperties;
1155
- var enumBugKeys = enumBugKeys$3;
1156
- var hiddenKeys = hiddenKeys$4;
1157
- var html = html$1;
1158
- var documentCreateElement$1 = documentCreateElement$2;
1159
- var sharedKey$1 = sharedKey$3;
1160
-
1161
- var GT = '>';
1162
- var LT = '<';
1163
- var PROTOTYPE = 'prototype';
1164
- var SCRIPT = 'script';
1165
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1166
-
1167
- var EmptyConstructor = function () { /* empty */ };
1168
-
1169
- var scriptTag = function (content) {
1170
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1171
- };
1172
-
1173
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1174
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1175
- activeXDocument.write(scriptTag(''));
1176
- activeXDocument.close();
1177
- var temp = activeXDocument.parentWindow.Object;
1178
- activeXDocument = null; // avoid memory leak
1179
- return temp;
1180
- };
1181
-
1182
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1183
- var NullProtoObjectViaIFrame = function () {
1184
- // Thrash, waste and sodomy: IE GC bug
1185
- var iframe = documentCreateElement$1('iframe');
1186
- var JS = 'java' + SCRIPT + ':';
1187
- var iframeDocument;
1188
- iframe.style.display = 'none';
1189
- html.appendChild(iframe);
1190
- // https://github.com/zloirock/core-js/issues/475
1191
- iframe.src = String(JS);
1192
- iframeDocument = iframe.contentWindow.document;
1193
- iframeDocument.open();
1194
- iframeDocument.write(scriptTag('document.F=Object'));
1195
- iframeDocument.close();
1196
- return iframeDocument.F;
1197
- };
1198
-
1199
- // Check for document.domain and active x support
1200
- // No need to use active x approach when document.domain is not set
1201
- // see https://github.com/es-shims/es5-shim/issues/150
1202
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1203
- // avoid IE GC bug
1204
- var activeXDocument;
1205
- var NullProtoObject = function () {
1206
- try {
1207
- activeXDocument = new ActiveXObject('htmlfile');
1208
- } catch (error) { /* ignore */ }
1209
- NullProtoObject = typeof document != 'undefined'
1210
- ? document.domain && activeXDocument
1211
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1212
- : NullProtoObjectViaIFrame()
1213
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1214
- var length = enumBugKeys.length;
1215
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1216
- return NullProtoObject();
1217
- };
1218
-
1219
- hiddenKeys[IE_PROTO$1] = true;
1220
-
1221
- // `Object.create` method
1222
- // https://tc39.es/ecma262/#sec-object.create
1223
- // eslint-disable-next-line es/no-object-create -- safe
1224
- var objectCreate = Object.create || function create(O, Properties) {
1225
- var result;
1226
- if (O !== null) {
1227
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
1228
- result = new EmptyConstructor();
1229
- EmptyConstructor[PROTOTYPE] = null;
1230
- // add "__proto__" for Object.getPrototypeOf polyfill
1231
- result[IE_PROTO$1] = O;
1232
- } else result = NullProtoObject();
1233
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1234
- };
1235
-
1236
- var fails$6 = fails$g;
1237
- var global$3 = global$e;
1238
-
1239
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1240
- var $RegExp$1 = global$3.RegExp;
1241
-
1242
- var regexpUnsupportedDotAll = fails$6(function () {
1243
- var re = $RegExp$1('.', 's');
1244
- return !(re.dotAll && re.exec('\n') && re.flags === 's');
1245
- });
1246
-
1247
- var fails$5 = fails$g;
1248
- var global$2 = global$e;
1249
-
1250
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1251
- var $RegExp = global$2.RegExp;
1252
-
1253
- var regexpUnsupportedNcg = fails$5(function () {
1254
- var re = $RegExp('(?<a>b)', 'g');
1255
- return re.exec('b').groups.a !== 'b' ||
1256
- 'b'.replace(re, '$<a>c') !== 'bc';
1257
- });
1258
-
1259
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1260
- /* eslint-disable regexp/no-useless-quantifier -- testing */
1261
- var call$5 = functionCall;
1262
- var uncurryThis$7 = functionUncurryThis;
1263
- var toString$2 = toString$3;
1264
- var regexpFlags = regexpFlags$1;
1265
- var stickyHelpers = regexpStickyHelpers;
1266
- var shared = shared$4.exports;
1267
- var create$2 = objectCreate;
1268
- var getInternalState$1 = internalState.get;
1269
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1270
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1271
-
1272
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
1273
- var nativeExec = RegExp.prototype.exec;
1274
- var patchedExec = nativeExec;
1275
- var charAt$3 = uncurryThis$7(''.charAt);
1276
- var indexOf = uncurryThis$7(''.indexOf);
1277
- var replace$1 = uncurryThis$7(''.replace);
1278
- var stringSlice$3 = uncurryThis$7(''.slice);
1279
-
1280
- var UPDATES_LAST_INDEX_WRONG = (function () {
1281
- var re1 = /a/;
1282
- var re2 = /b*/g;
1283
- call$5(nativeExec, re1, 'a');
1284
- call$5(nativeExec, re2, 'a');
1285
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1286
- })();
1287
-
1288
- var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1289
-
1290
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
1291
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1292
-
1293
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1294
-
1295
- if (PATCH) {
1296
- patchedExec = function exec(string) {
1297
- var re = this;
1298
- var state = getInternalState$1(re);
1299
- var str = toString$2(string);
1300
- var raw = state.raw;
1301
- var result, reCopy, lastIndex, match, i, object, group;
1302
-
1303
- if (raw) {
1304
- raw.lastIndex = re.lastIndex;
1305
- result = call$5(patchedExec, raw, str);
1306
- re.lastIndex = raw.lastIndex;
1307
- return result;
1308
- }
1309
-
1310
- var groups = state.groups;
1311
- var sticky = UNSUPPORTED_Y && re.sticky;
1312
- var flags = call$5(regexpFlags, re);
1313
- var source = re.source;
1314
- var charsAdded = 0;
1315
- var strCopy = str;
1316
-
1317
- if (sticky) {
1318
- flags = replace$1(flags, 'y', '');
1319
- if (indexOf(flags, 'g') === -1) {
1320
- flags += 'g';
1321
- }
1322
-
1323
- strCopy = stringSlice$3(str, re.lastIndex);
1324
- // Support anchored sticky behavior.
1325
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1326
- source = '(?: ' + source + ')';
1327
- strCopy = ' ' + strCopy;
1328
- charsAdded++;
1329
- }
1330
- // ^(? + rx + ) is needed, in combination with some str slicing, to
1331
- // simulate the 'y' flag.
1332
- reCopy = new RegExp('^(?:' + source + ')', flags);
1333
- }
1334
-
1335
- if (NPCG_INCLUDED) {
1336
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1337
- }
1338
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1339
-
1340
- match = call$5(nativeExec, sticky ? reCopy : re, strCopy);
1341
-
1342
- if (sticky) {
1343
- if (match) {
1344
- match.input = stringSlice$3(match.input, charsAdded);
1345
- match[0] = stringSlice$3(match[0], charsAdded);
1346
- match.index = re.lastIndex;
1347
- re.lastIndex += match[0].length;
1348
- } else re.lastIndex = 0;
1349
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
1350
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1351
- }
1352
- if (NPCG_INCLUDED && match && match.length > 1) {
1353
- // Fix browsers whose `exec` methods don't consistently return `undefined`
1354
- // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1355
- call$5(nativeReplace, match[0], reCopy, function () {
1356
- for (i = 1; i < arguments.length - 2; i++) {
1357
- if (arguments[i] === undefined) match[i] = undefined;
1358
- }
1359
- });
1360
- }
1361
-
1362
- if (match && groups) {
1363
- match.groups = object = create$2(null);
1364
- for (i = 0; i < groups.length; i++) {
1365
- group = groups[i];
1366
- object[group[0]] = match[group[1]];
1367
- }
1368
- }
1369
-
1370
- return match;
1371
- };
1372
- }
1373
-
1374
- var regexpExec$2 = patchedExec;
1375
-
1376
- var $$2 = _export;
1377
- var exec = regexpExec$2;
1378
-
1379
- // `RegExp.prototype.exec` method
1380
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1381
- $$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
1382
- exec: exec
1383
- });
1384
-
1385
- var NATIVE_BIND = functionBindNative;
1386
-
1387
- var FunctionPrototype = Function.prototype;
1388
- var apply$1 = FunctionPrototype.apply;
1389
- var call$4 = FunctionPrototype.call;
1390
-
1391
- // eslint-disable-next-line es/no-reflect -- safe
1392
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$1) : function () {
1393
- return call$4.apply(apply$1, arguments);
1394
- });
1395
-
1396
- var classofRaw = classofRaw$2;
1397
- var uncurryThis$6 = functionUncurryThis;
1398
-
1399
- var functionUncurryThisClause = function (fn) {
1400
- // Nashorn bug:
1401
- // https://github.com/zloirock/core-js/issues/1128
1402
- // https://github.com/zloirock/core-js/issues/1130
1403
- if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
1404
- };
1405
-
1406
- // TODO: Remove from `core-js@4` since it's moved to entry points
1407
-
1408
- var uncurryThis$5 = functionUncurryThisClause;
1409
- var defineBuiltIn$2 = defineBuiltIn$4;
1410
- var regexpExec$1 = regexpExec$2;
1411
- var fails$4 = fails$g;
1412
- var wellKnownSymbol$6 = wellKnownSymbol$a;
1413
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1414
-
1415
- var SPECIES = wellKnownSymbol$6('species');
1416
- var RegExpPrototype = RegExp.prototype;
1417
-
1418
- var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1419
- var SYMBOL = wellKnownSymbol$6(KEY);
1420
-
1421
- var DELEGATES_TO_SYMBOL = !fails$4(function () {
1422
- // String methods call symbol-named RegEp methods
1423
- var O = {};
1424
- O[SYMBOL] = function () { return 7; };
1425
- return ''[KEY](O) != 7;
1426
- });
1427
-
1428
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$4(function () {
1429
- // Symbol-named RegExp methods call .exec
1430
- var execCalled = false;
1431
- var re = /a/;
1432
-
1433
- if (KEY === 'split') {
1434
- // We can't use real regex here since it causes deoptimization
1435
- // and serious performance degradation in V8
1436
- // https://github.com/zloirock/core-js/issues/306
1437
- re = {};
1438
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
1439
- // a new one. We need to return the patched regex when creating the new one.
1440
- re.constructor = {};
1441
- re.constructor[SPECIES] = function () { return re; };
1442
- re.flags = '';
1443
- re[SYMBOL] = /./[SYMBOL];
1444
- }
1445
-
1446
- re.exec = function () { execCalled = true; return null; };
1447
-
1448
- re[SYMBOL]('');
1449
- return !execCalled;
1450
- });
1451
-
1452
- if (
1453
- !DELEGATES_TO_SYMBOL ||
1454
- !DELEGATES_TO_EXEC ||
1455
- FORCED
1456
- ) {
1457
- var uncurriedNativeRegExpMethod = uncurryThis$5(/./[SYMBOL]);
1458
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1459
- var uncurriedNativeMethod = uncurryThis$5(nativeMethod);
1460
- var $exec = regexp.exec;
1461
- if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1462
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1463
- // The native String method already delegates to @@method (this
1464
- // polyfilled function), leasing to infinite recursion.
1465
- // We avoid it by directly calling the native @@method method.
1466
- return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1467
- }
1468
- return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1469
- }
1470
- return { done: false };
1471
- });
1472
-
1473
- defineBuiltIn$2(String.prototype, KEY, methods[0]);
1474
- defineBuiltIn$2(RegExpPrototype, SYMBOL, methods[1]);
1475
- }
1476
-
1477
- if (SHAM) createNonEnumerableProperty$2(RegExpPrototype[SYMBOL], 'sham', true);
1478
- };
1479
-
1480
- var uncurryThis$4 = functionUncurryThis;
1481
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
1482
- var toString$1 = toString$3;
1483
- var requireObjectCoercible$1 = requireObjectCoercible$4;
1484
-
1485
- var charAt$2 = uncurryThis$4(''.charAt);
1486
- var charCodeAt = uncurryThis$4(''.charCodeAt);
1487
- var stringSlice$2 = uncurryThis$4(''.slice);
1488
-
1489
- var createMethod = function (CONVERT_TO_STRING) {
1490
- return function ($this, pos) {
1491
- var S = toString$1(requireObjectCoercible$1($this));
1492
- var position = toIntegerOrInfinity$1(pos);
1493
- var size = S.length;
1494
- var first, second;
1495
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1496
- first = charCodeAt(S, position);
1497
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
1498
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1499
- ? CONVERT_TO_STRING
1500
- ? charAt$2(S, position)
1501
- : first
1502
- : CONVERT_TO_STRING
1503
- ? stringSlice$2(S, position, position + 2)
1504
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1505
- };
1506
- };
1507
-
1508
- var stringMultibyte = {
1509
- // `String.prototype.codePointAt` method
1510
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1511
- codeAt: createMethod(false),
1512
- // `String.prototype.at` method
1513
- // https://github.com/mathiasbynens/String.prototype.at
1514
- charAt: createMethod(true)
1515
- };
1516
-
1517
- var charAt$1 = stringMultibyte.charAt;
1518
-
1519
- // `AdvanceStringIndex` abstract operation
1520
- // https://tc39.es/ecma262/#sec-advancestringindex
1521
- var advanceStringIndex$1 = function (S, index, unicode) {
1522
- return index + (unicode ? charAt$1(S, index).length : 1);
1523
- };
1524
-
1525
- var uncurryThis$3 = functionUncurryThis;
1526
- var toObject$2 = toObject$4;
1527
-
1528
- var floor = Math.floor;
1529
- var charAt = uncurryThis$3(''.charAt);
1530
- var replace = uncurryThis$3(''.replace);
1531
- var stringSlice$1 = uncurryThis$3(''.slice);
1532
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1533
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1534
-
1535
- // `GetSubstitution` abstract operation
1536
- // https://tc39.es/ecma262/#sec-getsubstitution
1537
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
1538
- var tailPos = position + matched.length;
1539
- var m = captures.length;
1540
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1541
- if (namedCaptures !== undefined) {
1542
- namedCaptures = toObject$2(namedCaptures);
1543
- symbols = SUBSTITUTION_SYMBOLS;
1544
- }
1545
- return replace(replacement, symbols, function (match, ch) {
1546
- var capture;
1547
- switch (charAt(ch, 0)) {
1548
- case '$': return '$';
1549
- case '&': return matched;
1550
- case '`': return stringSlice$1(str, 0, position);
1551
- case "'": return stringSlice$1(str, tailPos);
1552
- case '<':
1553
- capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1554
- break;
1555
- default: // \d\d?
1556
- var n = +ch;
1557
- if (n === 0) return match;
1558
- if (n > m) {
1559
- var f = floor(n / 10);
1560
- if (f === 0) return match;
1561
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1562
- return match;
1563
- }
1564
- capture = captures[n - 1];
1565
- }
1566
- return capture === undefined ? '' : capture;
1567
- });
1568
- };
1569
-
1570
- var call$3 = functionCall;
1571
- var anObject$2 = anObject$8;
1572
- var isCallable$5 = isCallable$h;
1573
- var classof = classofRaw$2;
1574
- var regexpExec = regexpExec$2;
1575
-
1576
- var $TypeError$1 = TypeError;
1577
-
1578
- // `RegExpExec` abstract operation
1579
- // https://tc39.es/ecma262/#sec-regexpexec
1580
- var regexpExecAbstract = function (R, S) {
1581
- var exec = R.exec;
1582
- if (isCallable$5(exec)) {
1583
- var result = call$3(exec, R, S);
1584
- if (result !== null) anObject$2(result);
1585
- return result;
1586
- }
1587
- if (classof(R) === 'RegExp') return call$3(regexpExec, R, S);
1588
- throw $TypeError$1('RegExp#exec called on incompatible receiver');
1589
- };
1590
-
1591
- var apply = functionApply;
1592
- var call$2 = functionCall;
1593
- var uncurryThis$2 = functionUncurryThis;
1594
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1595
- var fails$3 = fails$g;
1596
- var anObject$1 = anObject$8;
1597
- var isCallable$4 = isCallable$h;
1598
- var isNullOrUndefined = isNullOrUndefined$3;
1599
- var toIntegerOrInfinity = toIntegerOrInfinity$4;
1600
- var toLength = toLength$2;
1601
- var toString = toString$3;
1602
- var requireObjectCoercible = requireObjectCoercible$4;
1603
- var advanceStringIndex = advanceStringIndex$1;
1604
- var getMethod = getMethod$2;
1605
- var getSubstitution = getSubstitution$1;
1606
- var regExpExec = regexpExecAbstract;
1607
- var wellKnownSymbol$5 = wellKnownSymbol$a;
1608
-
1609
- var REPLACE = wellKnownSymbol$5('replace');
1610
- var max = Math.max;
1611
- var min = Math.min;
1612
- var concat$1 = uncurryThis$2([].concat);
1613
- var push = uncurryThis$2([].push);
1614
- var stringIndexOf = uncurryThis$2(''.indexOf);
1615
- var stringSlice = uncurryThis$2(''.slice);
1616
-
1617
- var maybeToString = function (it) {
1618
- return it === undefined ? it : String(it);
1619
- };
1620
-
1621
- // IE <= 11 replaces $0 with the whole match, as if it was $&
1622
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1623
- var REPLACE_KEEPS_$0 = (function () {
1624
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1625
- return 'a'.replace(/./, '$0') === '$0';
1626
- })();
1627
-
1628
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1629
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1630
- if (/./[REPLACE]) {
1631
- return /./[REPLACE]('a', '$0') === '';
1632
- }
1633
- return false;
1634
- })();
1635
-
1636
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$3(function () {
1637
- var re = /./;
1638
- re.exec = function () {
1639
- var result = [];
1640
- result.groups = { a: '7' };
1641
- return result;
1642
- };
1643
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1644
- return ''.replace(re, '$<a>') !== '7';
1645
- });
1646
-
1647
- // @@replace logic
1648
- fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1649
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1650
-
1651
- return [
1652
- // `String.prototype.replace` method
1653
- // https://tc39.es/ecma262/#sec-string.prototype.replace
1654
- function replace(searchValue, replaceValue) {
1655
- var O = requireObjectCoercible(this);
1656
- var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
1657
- return replacer
1658
- ? call$2(replacer, searchValue, O, replaceValue)
1659
- : call$2(nativeReplace, toString(O), searchValue, replaceValue);
1660
- },
1661
- // `RegExp.prototype[@@replace]` method
1662
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1663
- function (string, replaceValue) {
1664
- var rx = anObject$1(this);
1665
- var S = toString(string);
1666
-
1667
- if (
1668
- typeof replaceValue == 'string' &&
1669
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
1670
- stringIndexOf(replaceValue, '$<') === -1
1671
- ) {
1672
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1673
- if (res.done) return res.value;
1674
- }
1675
-
1676
- var functionalReplace = isCallable$4(replaceValue);
1677
- if (!functionalReplace) replaceValue = toString(replaceValue);
1678
-
1679
- var global = rx.global;
1680
- if (global) {
1681
- var fullUnicode = rx.unicode;
1682
- rx.lastIndex = 0;
1683
- }
1684
- var results = [];
1685
- while (true) {
1686
- var result = regExpExec(rx, S);
1687
- if (result === null) break;
1688
-
1689
- push(results, result);
1690
- if (!global) break;
1691
-
1692
- var matchStr = toString(result[0]);
1693
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1694
- }
1695
-
1696
- var accumulatedResult = '';
1697
- var nextSourcePosition = 0;
1698
- for (var i = 0; i < results.length; i++) {
1699
- result = results[i];
1700
-
1701
- var matched = toString(result[0]);
1702
- var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
1703
- var captures = [];
1704
- // NOTE: This is equivalent to
1705
- // captures = result.slice(1).map(maybeToString)
1706
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1707
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1708
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1709
- for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
1710
- var namedCaptures = result.groups;
1711
- if (functionalReplace) {
1712
- var replacerArgs = concat$1([matched], captures, position, S);
1713
- if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
1714
- var replacement = toString(apply(replaceValue, undefined, replacerArgs));
1715
- } else {
1716
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1717
- }
1718
- if (position >= nextSourcePosition) {
1719
- accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1720
- nextSourcePosition = position + matched.length;
1721
- }
1722
- }
1723
- return accumulatedResult + stringSlice(S, nextSourcePosition);
1724
- }
1725
- ];
1726
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1727
-
1728
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1729
- var create$1 = objectCreate;
1730
- var defineProperty$3 = objectDefineProperty.f;
1731
-
1732
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1733
- var ArrayPrototype = Array.prototype;
1734
-
1735
- // Array.prototype[@@unscopables]
1736
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1737
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
1738
- defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1739
- configurable: true,
1740
- value: create$1(null)
1741
- });
1742
- }
1743
-
1744
- // add a key to Array.prototype[@@unscopables]
1745
- var addToUnscopables$1 = function (key) {
1746
- ArrayPrototype[UNSCOPABLES][key] = true;
1747
- };
1748
-
1749
- var iterators = {};
1750
-
1751
- var fails$2 = fails$g;
1752
-
1753
- var correctPrototypeGetter = !fails$2(function () {
1754
- function F() { /* empty */ }
1755
- F.prototype.constructor = null;
1756
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1757
- return Object.getPrototypeOf(new F()) !== F.prototype;
1758
- });
1759
-
1760
- var hasOwn$1 = hasOwnProperty_1;
1761
- var isCallable$3 = isCallable$h;
1762
- var toObject$1 = toObject$4;
1763
- var sharedKey = sharedKey$3;
1764
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1765
-
1766
- var IE_PROTO = sharedKey('IE_PROTO');
1767
- var $Object = Object;
1768
- var ObjectPrototype = $Object.prototype;
1769
-
1770
- // `Object.getPrototypeOf` method
1771
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1772
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1773
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1774
- var object = toObject$1(O);
1775
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1776
- var constructor = object.constructor;
1777
- if (isCallable$3(constructor) && object instanceof constructor) {
1778
- return constructor.prototype;
1779
- } return object instanceof $Object ? ObjectPrototype : null;
1780
- };
1781
-
1782
- var fails$1 = fails$g;
1783
- var isCallable$2 = isCallable$h;
1784
- var isObject = isObject$6;
1785
- var getPrototypeOf$1 = objectGetPrototypeOf;
1786
- var defineBuiltIn$1 = defineBuiltIn$4;
1787
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1788
-
1789
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1790
- var BUGGY_SAFARI_ITERATORS$1 = false;
1791
-
1792
- // `%IteratorPrototype%` object
1793
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1794
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1795
-
1796
- /* eslint-disable es/no-array-prototype-keys -- safe */
1797
- if ([].keys) {
1798
- arrayIterator = [].keys();
1799
- // Safari 8 has buggy iterators w/o `next`
1800
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1801
- else {
1802
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1803
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1804
- }
1805
- }
1806
-
1807
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
1808
- var test = {};
1809
- // FF44- legacy iterators case
1810
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1811
- });
1812
-
1813
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1814
-
1815
- // `%IteratorPrototype%[@@iterator]()` method
1816
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1817
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1818
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1819
- return this;
1820
- });
1821
- }
1822
-
1823
- var iteratorsCore = {
1824
- IteratorPrototype: IteratorPrototype$2,
1825
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1826
- };
1827
-
1828
- var defineProperty$2 = objectDefineProperty.f;
1829
- var hasOwn = hasOwnProperty_1;
1830
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1831
-
1832
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1833
-
1834
- var setToStringTag$2 = function (target, TAG, STATIC) {
1835
- if (target && !STATIC) target = target.prototype;
1836
- if (target && !hasOwn(target, TO_STRING_TAG$1)) {
1837
- defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1838
- }
1839
- };
1840
-
1841
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1842
- var create = objectCreate;
1843
- var createPropertyDescriptor = createPropertyDescriptor$3;
1844
- var setToStringTag$1 = setToStringTag$2;
1845
- var Iterators$2 = iterators;
1846
-
1847
- var returnThis$1 = function () { return this; };
1848
-
1849
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1850
- var TO_STRING_TAG = NAME + ' Iterator';
1851
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1852
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1853
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1854
- return IteratorConstructor;
1855
- };
1856
-
1857
- var isCallable$1 = isCallable$h;
1858
-
1859
- var $String = String;
1860
- var $TypeError = TypeError;
1861
-
1862
- var aPossiblePrototype$1 = function (argument) {
1863
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
1864
- throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
1865
- };
1866
-
1867
- /* eslint-disable no-proto -- safe */
1868
-
1869
- var uncurryThis$1 = functionUncurryThis;
1870
- var anObject = anObject$8;
1871
- var aPossiblePrototype = aPossiblePrototype$1;
1872
-
1873
- // `Object.setPrototypeOf` method
1874
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1875
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1876
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1877
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1878
- var CORRECT_SETTER = false;
1879
- var test = {};
1880
- var setter;
1881
- try {
1882
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1883
- setter = uncurryThis$1(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1884
- setter(test, []);
1885
- CORRECT_SETTER = test instanceof Array;
1886
- } catch (error) { /* empty */ }
1887
- return function setPrototypeOf(O, proto) {
1888
- anObject(O);
1889
- aPossiblePrototype(proto);
1890
- if (CORRECT_SETTER) setter(O, proto);
1891
- else O.__proto__ = proto;
1892
- return O;
1893
- };
1894
- }() : undefined);
1895
-
1896
- var $$1 = _export;
1897
- var call$1 = functionCall;
1898
- var FunctionName = functionName;
1899
- var isCallable = isCallable$h;
1900
- var createIteratorConstructor = iteratorCreateConstructor;
1901
- var getPrototypeOf = objectGetPrototypeOf;
1902
- var setPrototypeOf = objectSetPrototypeOf;
1903
- var setToStringTag = setToStringTag$2;
1904
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1905
- var defineBuiltIn = defineBuiltIn$4;
1906
- var wellKnownSymbol$1 = wellKnownSymbol$a;
1907
- var Iterators$1 = iterators;
1908
- var IteratorsCore = iteratorsCore;
1909
-
1910
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1911
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1912
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1913
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1914
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1915
- var KEYS = 'keys';
1916
- var VALUES = 'values';
1917
- var ENTRIES = 'entries';
1918
-
1919
- var returnThis = function () { return this; };
1920
-
1921
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1922
- createIteratorConstructor(IteratorConstructor, NAME, next);
1923
-
1924
- var getIterationMethod = function (KIND) {
1925
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1926
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1927
- switch (KIND) {
1928
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1929
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1930
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1931
- } return function () { return new IteratorConstructor(this); };
1932
- };
1933
-
1934
- var TO_STRING_TAG = NAME + ' Iterator';
1935
- var INCORRECT_VALUES_NAME = false;
1936
- var IterablePrototype = Iterable.prototype;
1937
- var nativeIterator = IterablePrototype[ITERATOR$1]
1938
- || IterablePrototype['@@iterator']
1939
- || DEFAULT && IterablePrototype[DEFAULT];
1940
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1941
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1942
- var CurrentIteratorPrototype, methods, KEY;
1943
-
1944
- // fix native
1945
- if (anyNativeIterator) {
1946
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1947
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1948
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1949
- if (setPrototypeOf) {
1950
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1951
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1952
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1953
- }
1954
- }
1955
- // Set @@toStringTag to native iterators
1956
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1957
- }
1958
- }
1959
-
1960
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1961
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1962
- if (CONFIGURABLE_FUNCTION_NAME) {
1963
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1964
- } else {
1965
- INCORRECT_VALUES_NAME = true;
1966
- defaultIterator = function values() { return call$1(nativeIterator, this); };
1967
- }
1968
- }
1969
-
1970
- // export additional methods
1971
- if (DEFAULT) {
1972
- methods = {
1973
- values: getIterationMethod(VALUES),
1974
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1975
- entries: getIterationMethod(ENTRIES)
1976
- };
1977
- if (FORCED) for (KEY in methods) {
1978
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1979
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1980
- }
1981
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1982
- }
1983
-
1984
- // define iterator
1985
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1986
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1987
- }
1988
- Iterators$1[NAME] = defaultIterator;
1989
-
1990
- return methods;
1991
- };
1992
-
1993
- // `CreateIterResultObject` abstract operation
1994
- // https://tc39.es/ecma262/#sec-createiterresultobject
1995
- var createIterResultObject$1 = function (value, done) {
1996
- return { value: value, done: done };
1997
- };
1998
-
1999
- var toIndexedObject = toIndexedObject$5;
2000
- var addToUnscopables = addToUnscopables$1;
2001
- var Iterators = iterators;
2002
- var InternalStateModule = internalState;
2003
- var defineProperty$1 = objectDefineProperty.f;
2004
- var defineIterator = iteratorDefine;
2005
- var createIterResultObject = createIterResultObject$1;
2006
- var DESCRIPTORS$1 = descriptors;
2007
-
2008
- var ARRAY_ITERATOR = 'Array Iterator';
2009
- var setInternalState = InternalStateModule.set;
2010
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
2011
-
2012
- // `Array.prototype.entries` method
2013
- // https://tc39.es/ecma262/#sec-array.prototype.entries
2014
- // `Array.prototype.keys` method
2015
- // https://tc39.es/ecma262/#sec-array.prototype.keys
2016
- // `Array.prototype.values` method
2017
- // https://tc39.es/ecma262/#sec-array.prototype.values
2018
- // `Array.prototype[@@iterator]` method
2019
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
2020
- // `CreateArrayIterator` internal method
2021
- // https://tc39.es/ecma262/#sec-createarrayiterator
2022
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
2023
- setInternalState(this, {
2024
- type: ARRAY_ITERATOR,
2025
- target: toIndexedObject(iterated), // target
2026
- index: 0, // next index
2027
- kind: kind // kind
2028
- });
2029
- // `%ArrayIteratorPrototype%.next` method
2030
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
2031
- }, function () {
2032
- var state = getInternalState(this);
2033
- var target = state.target;
2034
- var kind = state.kind;
2035
- var index = state.index++;
2036
- if (!target || index >= target.length) {
2037
- state.target = undefined;
2038
- return createIterResultObject(undefined, true);
2039
- }
2040
- if (kind == 'keys') return createIterResultObject(index, false);
2041
- if (kind == 'values') return createIterResultObject(target[index], false);
2042
- return createIterResultObject([index, target[index]], false);
2043
- }, 'values');
2044
-
2045
- // argumentsList[@@iterator] is %ArrayProto_values%
2046
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2047
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2048
- var values = Iterators.Arguments = Iterators.Array;
2049
-
2050
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2051
- addToUnscopables('keys');
2052
- addToUnscopables('values');
2053
- addToUnscopables('entries');
2054
-
2055
- // V8 ~ Chrome 45- bug
2056
- if (DESCRIPTORS$1 && values.name !== 'values') try {
2057
- defineProperty$1(values, 'name', { value: 'values' });
2058
- } catch (error) { /* empty */ }
2059
-
2060
- // iterable DOM collections
2061
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2062
- var domIterables = {
2063
- CSSRuleList: 0,
2064
- CSSStyleDeclaration: 0,
2065
- CSSValueList: 0,
2066
- ClientRectList: 0,
2067
- DOMRectList: 0,
2068
- DOMStringList: 0,
2069
- DOMTokenList: 1,
2070
- DataTransferItemList: 0,
2071
- FileList: 0,
2072
- HTMLAllCollection: 0,
2073
- HTMLCollection: 0,
2074
- HTMLFormElement: 0,
2075
- HTMLSelectElement: 0,
2076
- MediaList: 0,
2077
- MimeTypeArray: 0,
2078
- NamedNodeMap: 0,
2079
- NodeList: 1,
2080
- PaintRequestList: 0,
2081
- Plugin: 0,
2082
- PluginArray: 0,
2083
- SVGLengthList: 0,
2084
- SVGNumberList: 0,
2085
- SVGPathSegList: 0,
2086
- SVGPointList: 0,
2087
- SVGStringList: 0,
2088
- SVGTransformList: 0,
2089
- SourceBufferList: 0,
2090
- StyleSheetList: 0,
2091
- TextTrackCueList: 0,
2092
- TextTrackList: 0,
2093
- TouchList: 0
2094
- };
2095
-
2096
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2097
- var documentCreateElement = documentCreateElement$2;
2098
-
2099
- var classList = documentCreateElement('span').classList;
2100
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2101
-
2102
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2103
-
2104
- var global$1 = global$e;
2105
- var DOMIterables = domIterables;
2106
- var DOMTokenListPrototype = domTokenListPrototype;
2107
- var ArrayIteratorMethods = es_array_iterator;
2108
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
2109
- var wellKnownSymbol = wellKnownSymbol$a;
2110
-
2111
- var ITERATOR = wellKnownSymbol('iterator');
2112
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
2113
- var ArrayValues = ArrayIteratorMethods.values;
2114
-
2115
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2116
- if (CollectionPrototype) {
2117
- // some Chrome versions have non-configurable methods on DOMTokenList
2118
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2119
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2120
- } catch (error) {
2121
- CollectionPrototype[ITERATOR] = ArrayValues;
2122
- }
2123
- if (!CollectionPrototype[TO_STRING_TAG]) {
2124
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
2125
- }
2126
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2127
- // some Chrome versions have non-configurable methods on DOMTokenList
2128
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2129
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2130
- } catch (error) {
2131
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2132
- }
2133
- }
2134
- }
2135
- };
2136
-
2137
- for (var COLLECTION_NAME in DOMIterables) {
2138
- handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
2139
- }
2140
-
2141
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2142
-
2143
- var DESCRIPTORS = descriptors;
2144
- var uncurryThis = functionUncurryThis;
2145
- var call = functionCall;
2146
- var fails = fails$g;
2147
- var objectKeys = objectKeys$2;
2148
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2149
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2150
- var toObject = toObject$4;
2151
- var IndexedObject = indexedObject;
2152
-
2153
- // eslint-disable-next-line es/no-object-assign -- safe
2154
- var $assign = Object.assign;
2155
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2156
- var defineProperty = Object.defineProperty;
2157
- var concat = uncurryThis([].concat);
2158
-
2159
- // `Object.assign` method
2160
- // https://tc39.es/ecma262/#sec-object.assign
2161
- var objectAssign = !$assign || fails(function () {
2162
- // should have correct order of operations (Edge bug)
2163
- if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
2164
- enumerable: true,
2165
- get: function () {
2166
- defineProperty(this, 'b', {
2167
- value: 3,
2168
- enumerable: false
2169
- });
2170
- }
2171
- }), { b: 2 })).b !== 1) return true;
2172
- // should work with symbols and should have deterministic property order (V8 bug)
2173
- var A = {};
2174
- var B = {};
2175
- // eslint-disable-next-line es/no-symbol -- safe
2176
- var symbol = Symbol();
2177
- var alphabet = 'abcdefghijklmnopqrst';
2178
- A[symbol] = 7;
2179
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2180
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
2181
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2182
- var T = toObject(target);
2183
- var argumentsLength = arguments.length;
2184
- var index = 1;
2185
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2186
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
2187
- while (argumentsLength > index) {
2188
- var S = IndexedObject(arguments[index++]);
2189
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2190
- var length = keys.length;
2191
- var j = 0;
2192
- var key;
2193
- while (length > j) {
2194
- key = keys[j++];
2195
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
2196
- }
2197
- } return T;
2198
- } : $assign;
2199
-
2200
- var $ = _export;
2201
- var assign = objectAssign;
2202
-
2203
- // `Object.assign` method
2204
- // https://tc39.es/ecma262/#sec-object.assign
2205
- // eslint-disable-next-line es/no-object-assign -- required for testing
2206
- $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2207
- assign: assign
2208
- });
2209
-
2210
11
  /**
2211
12
  * Converts an array of keys to a valid CSS custom property name.
2212
13
  * @param keys An array of strings representing the keys to be converted to a CSS custom property name.
2213
14
  * @returns A string representing the CSS custom property name.
2214
- */
2215
- const keysToCssVariableName = keys => `--${keys.join("-")}`.replace(/[^a-zA-Z0-9]/g, "-");
15
+ */
16
+ const keysToCssVariableName = (keys) => `--${keys.join("-")}`.replace(/[^a-zA-Z0-9]/g, "-");
2216
17
  /**
2217
18
  * Flattens a nested object containing variables declarations and their values
2218
19
  * into a flat object where the keys are the CSS variable names and the values are
@@ -2222,41 +23,39 @@ const keysToCssVariableName = keys => `--${keys.join("-")}`.replace(/[^a-zA-Z0-9
2222
23
  * @param {object} [output] - The flat object to store the generated CSS variable names and values
2223
24
  * @param {string[]} [keys] - An array of keys representing the current path of the object being processed
2224
25
  * @returns {object} - The generated flat object containing the CSS variable names and values
2225
- */
2226
- const flattenVariablesDeclerationValues = (values, output = {}, keys = []) => {
2227
- for (const [key, value] of Object.entries(values)) {
2228
- let flattend = {};
2229
- if (typeof value === "object") {
2230
- flattend = flattenVariablesDeclerationValues(value, output, [...keys, key]);
2231
- } else {
2232
- flattend[keysToCssVariableName([...keys, key])] = value;
2233
- }
2234
- output = Object.assign(Object.assign({}, flattend), output);
2235
- }
2236
- return output;
2237
- };
26
+ */
27
+ const flattenVariablesDeclerationValues = (values, output = {}, keys = []) => {
28
+ for (const [key, value] of Object.entries(values)) {
29
+ let flattend = {};
30
+ if (typeof value === "object") {
31
+ flattend = flattenVariablesDeclerationValues(value, output, [...keys, key]);
32
+ }
33
+ else {
34
+ flattend[keysToCssVariableName([...keys, key])] = value;
35
+ }
36
+ output = Object.assign(Object.assign({}, flattend), output);
37
+ }
38
+ return output;
39
+ };
2238
40
  /**
2239
41
  * Converts a object containing CSS variables to an array of CSS rules.
2240
42
  * @param variablesDecleration An object containing the CSS variables and their corresponding values.
2241
43
  * @returns An array of CSS rules.
2242
- */
2243
- const variablesToCSSRules = variablesDecleration => {
2244
- if (!variablesDecleration) {
2245
- return [];
2246
- }
2247
- const cssRules = Object.entries(variablesDecleration).map(([key, value]) => ({
2248
- [key === "DEFAULT" ? ":root" : `.${key}`]: flattenVariablesDeclerationValues(value)
2249
- }));
2250
- return cssRules;
2251
- };
2252
-
2253
- const CssTailwindCustomPropertiesPlugin = plugin__default["default"](({
2254
- addBase,
2255
- theme
2256
- }) => {
2257
- const variablesDeclerationFromThemeConfig = theme("variables", {});
2258
- const cssRules = variablesToCSSRules(variablesDeclerationFromThemeConfig);
2259
- addBase(cssRules);
44
+ */
45
+ const variablesToCSSRules = (variablesDecleration) => {
46
+ if (!variablesDecleration) {
47
+ return [];
48
+ }
49
+ const cssRules = Object.entries(variablesDecleration).map(([key, value]) => ({
50
+ [key === "DEFAULT" ? ":root" : `.${key}`]: flattenVariablesDeclerationValues(value),
51
+ }));
52
+ return cssRules;
53
+ };
54
+
55
+ const CssTailwindCustomPropertiesPlugin = plugin__default["default"](({ addBase, theme }) => {
56
+ const variablesDeclerationFromThemeConfig = theme("variables", {});
57
+ const cssRules = variablesToCSSRules(variablesDeclerationFromThemeConfig);
58
+ addBase(cssRules);
2260
59
  });
2261
60
 
2262
61
  exports.CssTailwindCustomPropertiesPlugin = CssTailwindCustomPropertiesPlugin;