@dotcms/react 0.0.1-beta.9 → 1.0.0-next.1

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 (57) hide show
  1. package/README.md +531 -93
  2. package/index.esm.js +2992 -786
  3. package/package.json +10 -12
  4. package/src/index.d.ts +7 -1
  5. package/src/lib/next/__test__/mock.d.ts +2 -1
  6. package/src/lib/next/components/Column/Column.d.ts +1 -1
  7. package/src/lib/next/components/Container/Container.d.ts +1 -1
  8. package/src/lib/next/components/Container/{ContainerFallbakcs.d.ts → ContainerFallbacks.d.ts} +2 -2
  9. package/src/lib/next/components/Contentlet/Contentlet.d.ts +2 -2
  10. package/src/lib/next/components/DotCMSBlockEditorRenderer/DotCMSBlockEditorRenderer.d.ts +27 -0
  11. package/src/lib/{deprecated/components/BlockEditorRenderer/item → next/components/DotCMSBlockEditorRenderer/components}/BlockEditorBlock.d.ts +8 -5
  12. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Code.d.ts +24 -0
  13. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/DotContent.d.ts +14 -0
  14. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Image.d.ts +10 -0
  15. package/src/lib/{deprecated/components/BlockEditorRenderer → next/components/DotCMSBlockEditorRenderer/components}/blocks/Lists.d.ts +8 -4
  16. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/NoComponentProvided.d.ts +3 -0
  17. package/src/lib/{deprecated/components/BlockEditorRenderer → next/components/DotCMSBlockEditorRenderer/components}/blocks/Table.d.ts +3 -3
  18. package/src/lib/{deprecated/components/BlockEditorRenderer → next/components/DotCMSBlockEditorRenderer/components}/blocks/Texts.d.ts +23 -13
  19. package/src/lib/next/components/DotCMSBlockEditorRenderer/components/blocks/Video.d.ts +10 -0
  20. package/src/lib/{deprecated/components/DotEditableText/DotEditableText.d.ts → next/components/DotCMSEditableText/DotCMSEditableText.d.ts} +8 -6
  21. package/src/lib/{deprecated/components/DotEditableText → next/components/DotCMSEditableText}/utils.d.ts +9 -9
  22. package/src/lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody.d.ts +5 -5
  23. package/src/lib/next/components/DotCMSLayoutBody/components/ErrorMessage.d.ts +1 -4
  24. package/src/lib/next/components/DotCMSShow/DotCMSShow.d.ts +2 -2
  25. package/src/lib/next/components/FallbackComponent/FallbackComponent.d.ts +6 -6
  26. package/src/lib/next/components/Row/Row.d.ts +1 -1
  27. package/src/lib/next/contexts/DotCMSPageContext.d.ts +2 -3
  28. package/src/lib/next/hooks/{useShowInUVE.d.ts → useDotCMSShowWhen.d.ts} +5 -5
  29. package/src/lib/next/hooks/useEditableDotCMSPage.d.ts +90 -0
  30. package/src/lib/next/hooks/useIsDevMode.d.ts +2 -5
  31. package/es.regexp.to-string.esm.js +0 -1878
  32. package/next.esm.d.ts +0 -1
  33. package/next.esm.js +0 -738
  34. package/src/lib/deprecated/components/BlockEditorRenderer/BlockEditorRenderer.d.ts +0 -37
  35. package/src/lib/deprecated/components/BlockEditorRenderer/blocks/Code.d.ts +0 -17
  36. package/src/lib/deprecated/components/BlockEditorRenderer/blocks/Contentlet.d.ts +0 -41
  37. package/src/lib/deprecated/components/BlockEditorRenderer/blocks/Image.d.ts +0 -8
  38. package/src/lib/deprecated/components/BlockEditorRenderer/blocks/Video.d.ts +0 -8
  39. package/src/lib/deprecated/components/Column/Column.d.ts +0 -19
  40. package/src/lib/deprecated/components/Container/Container.d.ts +0 -19
  41. package/src/lib/deprecated/components/DotcmsLayout/DotcmsLayout.d.ts +0 -34
  42. package/src/lib/deprecated/components/PageProvider/PageProvider.d.ts +0 -14
  43. package/src/lib/deprecated/components/Row/Row.d.ts +0 -26
  44. package/src/lib/deprecated/contexts/PageContext.d.ts +0 -8
  45. package/src/lib/deprecated/deprecated_api.d.ts +0 -7
  46. package/src/lib/deprecated/hooks/useCheckHaveContent.d.ts +0 -5
  47. package/src/lib/deprecated/hooks/useDotcmsEditor.d.ts +0 -13
  48. package/src/lib/deprecated/hooks/useDotcmsPageContext.d.ts +0 -9
  49. package/src/lib/deprecated/mocks/index.d.ts +0 -1
  50. package/src/lib/deprecated/mocks/mockPageContext.d.ts +0 -7
  51. package/src/lib/deprecated/models/blocks.interface.d.ts +0 -89
  52. package/src/lib/deprecated/models/content-node.interface.d.ts +0 -82
  53. package/src/lib/deprecated/models/index.d.ts +0 -127
  54. package/src/lib/deprecated/utils/utils.d.ts +0 -58
  55. package/src/lib/next/types.d.ts +0 -421
  56. package/src/lib/next/utils/index.d.ts +0 -136
  57. package/src/next.d.ts +0 -3
@@ -1,1878 +0,0 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
-
3
- var fails$d = function (exec) {
4
- try {
5
- return !!exec();
6
- } catch (error) {
7
- return true;
8
- }
9
- };
10
-
11
- var fails$c = fails$d;
12
-
13
- var functionBindNative = !fails$c(function () {
14
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
15
- var test = (function () { /* empty */ }).bind();
16
- // eslint-disable-next-line no-prototype-builtins -- safe
17
- return typeof test != 'function' || test.hasOwnProperty('prototype');
18
- });
19
-
20
- var NATIVE_BIND$2 = functionBindNative;
21
-
22
- var FunctionPrototype$2 = Function.prototype;
23
- var call$9 = FunctionPrototype$2.call;
24
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$9, call$9);
25
-
26
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
27
- return function () {
28
- return call$9.apply(fn, arguments);
29
- };
30
- };
31
-
32
- var uncurryThis$d = functionUncurryThis;
33
-
34
- var toString$3 = uncurryThis$d({}.toString);
35
- var stringSlice$1 = uncurryThis$d(''.slice);
36
-
37
- var classofRaw$1 = function (it) {
38
- return stringSlice$1(toString$3(it), 8, -1);
39
- };
40
-
41
- var uncurryThis$c = functionUncurryThis;
42
- var fails$b = fails$d;
43
- var classof$4 = classofRaw$1;
44
-
45
- var $Object$4 = Object;
46
- var split = uncurryThis$c(''.split);
47
-
48
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
49
- var indexedObject = fails$b(function () {
50
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
51
- // eslint-disable-next-line no-prototype-builtins -- safe
52
- return !$Object$4('z').propertyIsEnumerable(0);
53
- }) ? function (it) {
54
- return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
55
- } : $Object$4;
56
-
57
- // we can't use just `it == null` since of `document.all` special case
58
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
59
- var isNullOrUndefined$2 = function (it) {
60
- return it === null || it === undefined;
61
- };
62
-
63
- var isNullOrUndefined$1 = isNullOrUndefined$2;
64
-
65
- var $TypeError$6 = TypeError;
66
-
67
- // `RequireObjectCoercible` abstract operation
68
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
69
- var requireObjectCoercible$3 = function (it) {
70
- if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
71
- return it;
72
- };
73
-
74
- // toObject with fallback for non-array-like ES3 strings
75
- var IndexedObject$1 = indexedObject;
76
- var requireObjectCoercible$2 = requireObjectCoercible$3;
77
-
78
- var toIndexedObject$5 = function (it) {
79
- return IndexedObject$1(requireObjectCoercible$2(it));
80
- };
81
-
82
- var check = function (it) {
83
- return it && it.Math === Math && it;
84
- };
85
-
86
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
87
- var global$b =
88
- // eslint-disable-next-line es/no-global-this -- safe
89
- check(typeof globalThis == 'object' && globalThis) ||
90
- check(typeof window == 'object' && window) ||
91
- // eslint-disable-next-line no-restricted-globals -- safe
92
- check(typeof self == 'object' && self) ||
93
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
94
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
95
- // eslint-disable-next-line no-new-func -- fallback
96
- (function () { return this; })() || Function('return this')();
97
-
98
- var sharedStore = {exports: {}};
99
-
100
- var global$a = global$b;
101
-
102
- // eslint-disable-next-line es/no-object-defineproperty -- safe
103
- var defineProperty$5 = Object.defineProperty;
104
-
105
- var defineGlobalProperty$3 = function (key, value) {
106
- try {
107
- defineProperty$5(global$a, key, { value: value, configurable: true, writable: true });
108
- } catch (error) {
109
- global$a[key] = value;
110
- } return value;
111
- };
112
-
113
- var globalThis$1 = global$b;
114
- var defineGlobalProperty$2 = defineGlobalProperty$3;
115
-
116
- var SHARED = '__core-js_shared__';
117
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
118
-
119
- (store$3.versions || (store$3.versions = [])).push({
120
- version: '3.36.1',
121
- mode: 'global',
122
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
123
- license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
124
- source: 'https://github.com/zloirock/core-js'
125
- });
126
-
127
- var sharedStoreExports = sharedStore.exports;
128
-
129
- var store$2 = sharedStoreExports;
130
-
131
- var shared$3 = function (key, value) {
132
- return store$2[key] || (store$2[key] = value || {});
133
- };
134
-
135
- var requireObjectCoercible$1 = requireObjectCoercible$3;
136
-
137
- var $Object$3 = Object;
138
-
139
- // `ToObject` abstract operation
140
- // https://tc39.es/ecma262/#sec-toobject
141
- var toObject$3 = function (argument) {
142
- return $Object$3(requireObjectCoercible$1(argument));
143
- };
144
-
145
- var uncurryThis$b = functionUncurryThis;
146
- var toObject$2 = toObject$3;
147
-
148
- var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
149
-
150
- // `HasOwnProperty` abstract operation
151
- // https://tc39.es/ecma262/#sec-hasownproperty
152
- // eslint-disable-next-line es/no-object-hasown -- safe
153
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
154
- return hasOwnProperty(toObject$2(it), key);
155
- };
156
-
157
- var uncurryThis$a = functionUncurryThis;
158
-
159
- var id = 0;
160
- var postfix = Math.random();
161
- var toString$2 = uncurryThis$a(1.0.toString);
162
-
163
- var uid$2 = function (key) {
164
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
165
- };
166
-
167
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
168
-
169
- var global$9 = global$b;
170
- var userAgent = engineUserAgent;
171
-
172
- var process = global$9.process;
173
- var Deno = global$9.Deno;
174
- var versions = process && process.versions || Deno && Deno.version;
175
- var v8 = versions && versions.v8;
176
- var match, version;
177
-
178
- if (v8) {
179
- match = v8.split('.');
180
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
181
- // but their correct versions are not interesting for us
182
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
183
- }
184
-
185
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
186
- // so check `userAgent` even if `.v8` exists, but 0
187
- if (!version && userAgent) {
188
- match = userAgent.match(/Edge\/(\d+)/);
189
- if (!match || match[1] >= 74) {
190
- match = userAgent.match(/Chrome\/(\d+)/);
191
- if (match) version = +match[1];
192
- }
193
- }
194
-
195
- var engineV8Version = version;
196
-
197
- /* eslint-disable es/no-symbol -- required for testing */
198
- var V8_VERSION = engineV8Version;
199
- var fails$a = fails$d;
200
- var global$8 = global$b;
201
-
202
- var $String$6 = global$8.String;
203
-
204
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
205
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
206
- var symbol = Symbol('symbol detection');
207
- // Chrome 38 Symbol has incorrect toString conversion
208
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
209
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
210
- // of course, fail.
211
- return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
212
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
213
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
214
- });
215
-
216
- /* eslint-disable es/no-symbol -- required for testing */
217
- var NATIVE_SYMBOL$2 = symbolConstructorDetection;
218
-
219
- var useSymbolAsUid = NATIVE_SYMBOL$2
220
- && !Symbol.sham
221
- && typeof Symbol.iterator == 'symbol';
222
-
223
- var global$7 = global$b;
224
- var shared$2 = shared$3;
225
- var hasOwn$9 = hasOwnProperty_1;
226
- var uid$1 = uid$2;
227
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
228
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
229
-
230
- var Symbol$1 = global$7.Symbol;
231
- var WellKnownSymbolsStore = shared$2('wks');
232
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
233
-
234
- var wellKnownSymbol$8 = function (name) {
235
- if (!hasOwn$9(WellKnownSymbolsStore, name)) {
236
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$9(Symbol$1, name)
237
- ? Symbol$1[name]
238
- : createWellKnownSymbol('Symbol.' + name);
239
- } return WellKnownSymbolsStore[name];
240
- };
241
-
242
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
243
- var documentAll = typeof document == 'object' && document.all;
244
-
245
- // `IsCallable` abstract operation
246
- // https://tc39.es/ecma262/#sec-iscallable
247
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
248
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
249
- return typeof argument == 'function' || argument === documentAll;
250
- } : function (argument) {
251
- return typeof argument == 'function';
252
- };
253
-
254
- var isCallable$f = isCallable$g;
255
-
256
- var isObject$8 = function (it) {
257
- return typeof it == 'object' ? it !== null : isCallable$f(it);
258
- };
259
-
260
- var isObject$7 = isObject$8;
261
-
262
- var $String$5 = String;
263
- var $TypeError$5 = TypeError;
264
-
265
- // `Assert: Type(argument) is Object`
266
- var anObject$6 = function (argument) {
267
- if (isObject$7(argument)) return argument;
268
- throw new $TypeError$5($String$5(argument) + ' is not an object');
269
- };
270
-
271
- var objectDefineProperties = {};
272
-
273
- var fails$9 = fails$d;
274
-
275
- // Detect IE8's incomplete defineProperty implementation
276
- var descriptors = !fails$9(function () {
277
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
278
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
279
- });
280
-
281
- var DESCRIPTORS$9 = descriptors;
282
- var fails$8 = fails$d;
283
-
284
- // V8 ~ Chrome 36-
285
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
286
- var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$8(function () {
287
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
288
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
289
- value: 42,
290
- writable: false
291
- }).prototype !== 42;
292
- });
293
-
294
- var objectDefineProperty = {};
295
-
296
- var global$6 = global$b;
297
- var isObject$6 = isObject$8;
298
-
299
- var document$1 = global$6.document;
300
- // typeof document.createElement is 'object' in old IE
301
- var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
302
-
303
- var documentCreateElement$2 = function (it) {
304
- return EXISTS$1 ? document$1.createElement(it) : {};
305
- };
306
-
307
- var DESCRIPTORS$8 = descriptors;
308
- var fails$7 = fails$d;
309
- var createElement = documentCreateElement$2;
310
-
311
- // Thanks to IE8 for its funny defineProperty
312
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$7(function () {
313
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
314
- return Object.defineProperty(createElement('div'), 'a', {
315
- get: function () { return 7; }
316
- }).a !== 7;
317
- });
318
-
319
- var NATIVE_BIND$1 = functionBindNative;
320
-
321
- var call$8 = Function.prototype.call;
322
-
323
- var functionCall = NATIVE_BIND$1 ? call$8.bind(call$8) : function () {
324
- return call$8.apply(call$8, arguments);
325
- };
326
-
327
- var global$5 = global$b;
328
- var isCallable$e = isCallable$g;
329
-
330
- var aFunction = function (argument) {
331
- return isCallable$e(argument) ? argument : undefined;
332
- };
333
-
334
- var getBuiltIn$4 = function (namespace, method) {
335
- return arguments.length < 2 ? aFunction(global$5[namespace]) : global$5[namespace] && global$5[namespace][method];
336
- };
337
-
338
- var uncurryThis$9 = functionUncurryThis;
339
-
340
- var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
341
-
342
- var getBuiltIn$3 = getBuiltIn$4;
343
- var isCallable$d = isCallable$g;
344
- var isPrototypeOf$1 = objectIsPrototypeOf;
345
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
346
-
347
- var $Object$2 = Object;
348
-
349
- var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) {
350
- return typeof it == 'symbol';
351
- } : function (it) {
352
- var $Symbol = getBuiltIn$3('Symbol');
353
- return isCallable$d($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
354
- };
355
-
356
- var $String$4 = String;
357
-
358
- var tryToString$1 = function (argument) {
359
- try {
360
- return $String$4(argument);
361
- } catch (error) {
362
- return 'Object';
363
- }
364
- };
365
-
366
- var isCallable$c = isCallable$g;
367
- var tryToString = tryToString$1;
368
-
369
- var $TypeError$4 = TypeError;
370
-
371
- // `Assert: IsCallable(argument) is true`
372
- var aCallable$2 = function (argument) {
373
- if (isCallable$c(argument)) return argument;
374
- throw new $TypeError$4(tryToString(argument) + ' is not a function');
375
- };
376
-
377
- var aCallable$1 = aCallable$2;
378
- var isNullOrUndefined = isNullOrUndefined$2;
379
-
380
- // `GetMethod` abstract operation
381
- // https://tc39.es/ecma262/#sec-getmethod
382
- var getMethod$1 = function (V, P) {
383
- var func = V[P];
384
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
385
- };
386
-
387
- var call$7 = functionCall;
388
- var isCallable$b = isCallable$g;
389
- var isObject$5 = isObject$8;
390
-
391
- var $TypeError$3 = TypeError;
392
-
393
- // `OrdinaryToPrimitive` abstract operation
394
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
395
- var ordinaryToPrimitive$1 = function (input, pref) {
396
- var fn, val;
397
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$7(fn, input))) return val;
398
- if (isCallable$b(fn = input.valueOf) && !isObject$5(val = call$7(fn, input))) return val;
399
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$7(fn, input))) return val;
400
- throw new $TypeError$3("Can't convert object to primitive value");
401
- };
402
-
403
- var call$6 = functionCall;
404
- var isObject$4 = isObject$8;
405
- var isSymbol$2 = isSymbol$3;
406
- var getMethod = getMethod$1;
407
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
408
- var wellKnownSymbol$7 = wellKnownSymbol$8;
409
-
410
- var $TypeError$2 = TypeError;
411
- var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
412
-
413
- // `ToPrimitive` abstract operation
414
- // https://tc39.es/ecma262/#sec-toprimitive
415
- var toPrimitive$1 = function (input, pref) {
416
- if (!isObject$4(input) || isSymbol$2(input)) return input;
417
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
418
- var result;
419
- if (exoticToPrim) {
420
- if (pref === undefined) pref = 'default';
421
- result = call$6(exoticToPrim, input, pref);
422
- if (!isObject$4(result) || isSymbol$2(result)) return result;
423
- throw new $TypeError$2("Can't convert object to primitive value");
424
- }
425
- if (pref === undefined) pref = 'number';
426
- return ordinaryToPrimitive(input, pref);
427
- };
428
-
429
- var toPrimitive = toPrimitive$1;
430
- var isSymbol$1 = isSymbol$3;
431
-
432
- // `ToPropertyKey` abstract operation
433
- // https://tc39.es/ecma262/#sec-topropertykey
434
- var toPropertyKey$2 = function (argument) {
435
- var key = toPrimitive(argument, 'string');
436
- return isSymbol$1(key) ? key : key + '';
437
- };
438
-
439
- var DESCRIPTORS$7 = descriptors;
440
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
441
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
442
- var anObject$5 = anObject$6;
443
- var toPropertyKey$1 = toPropertyKey$2;
444
-
445
- var $TypeError$1 = TypeError;
446
- // eslint-disable-next-line es/no-object-defineproperty -- safe
447
- var $defineProperty = Object.defineProperty;
448
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
449
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
450
- var ENUMERABLE = 'enumerable';
451
- var CONFIGURABLE$1 = 'configurable';
452
- var WRITABLE = 'writable';
453
-
454
- // `Object.defineProperty` method
455
- // https://tc39.es/ecma262/#sec-object.defineproperty
456
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
457
- anObject$5(O);
458
- P = toPropertyKey$1(P);
459
- anObject$5(Attributes);
460
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
461
- var current = $getOwnPropertyDescriptor$1(O, P);
462
- if (current && current[WRITABLE]) {
463
- O[P] = Attributes.value;
464
- Attributes = {
465
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
466
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
467
- writable: false
468
- };
469
- }
470
- } return $defineProperty(O, P, Attributes);
471
- } : $defineProperty : function defineProperty(O, P, Attributes) {
472
- anObject$5(O);
473
- P = toPropertyKey$1(P);
474
- anObject$5(Attributes);
475
- if (IE8_DOM_DEFINE$1) try {
476
- return $defineProperty(O, P, Attributes);
477
- } catch (error) { /* empty */ }
478
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
479
- if ('value' in Attributes) O[P] = Attributes.value;
480
- return O;
481
- };
482
-
483
- var ceil = Math.ceil;
484
- var floor = Math.floor;
485
-
486
- // `Math.trunc` method
487
- // https://tc39.es/ecma262/#sec-math.trunc
488
- // eslint-disable-next-line es/no-math-trunc -- safe
489
- var mathTrunc = Math.trunc || function trunc(x) {
490
- var n = +x;
491
- return (n > 0 ? floor : ceil)(n);
492
- };
493
-
494
- var trunc = mathTrunc;
495
-
496
- // `ToIntegerOrInfinity` abstract operation
497
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
498
- var toIntegerOrInfinity$2 = function (argument) {
499
- var number = +argument;
500
- // eslint-disable-next-line no-self-compare -- NaN check
501
- return number !== number || number === 0 ? 0 : trunc(number);
502
- };
503
-
504
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
505
-
506
- var max = Math.max;
507
- var min$1 = Math.min;
508
-
509
- // Helper for a popular repeating case of the spec:
510
- // Let integer be ? ToInteger(index).
511
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
512
- var toAbsoluteIndex$1 = function (index, length) {
513
- var integer = toIntegerOrInfinity$1(index);
514
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
515
- };
516
-
517
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
518
-
519
- var min = Math.min;
520
-
521
- // `ToLength` abstract operation
522
- // https://tc39.es/ecma262/#sec-tolength
523
- var toLength$1 = function (argument) {
524
- var len = toIntegerOrInfinity(argument);
525
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
526
- };
527
-
528
- var toLength = toLength$1;
529
-
530
- // `LengthOfArrayLike` abstract operation
531
- // https://tc39.es/ecma262/#sec-lengthofarraylike
532
- var lengthOfArrayLike$1 = function (obj) {
533
- return toLength(obj.length);
534
- };
535
-
536
- var toIndexedObject$4 = toIndexedObject$5;
537
- var toAbsoluteIndex = toAbsoluteIndex$1;
538
- var lengthOfArrayLike = lengthOfArrayLike$1;
539
-
540
- // `Array.prototype.{ indexOf, includes }` methods implementation
541
- var createMethod = function (IS_INCLUDES) {
542
- return function ($this, el, fromIndex) {
543
- var O = toIndexedObject$4($this);
544
- var length = lengthOfArrayLike(O);
545
- if (length === 0) return !IS_INCLUDES && -1;
546
- var index = toAbsoluteIndex(fromIndex, length);
547
- var value;
548
- // Array#includes uses SameValueZero equality algorithm
549
- // eslint-disable-next-line no-self-compare -- NaN check
550
- if (IS_INCLUDES && el !== el) while (length > index) {
551
- value = O[index++];
552
- // eslint-disable-next-line no-self-compare -- NaN check
553
- if (value !== value) return true;
554
- // Array#indexOf ignores holes, Array#includes - not
555
- } else for (;length > index; index++) {
556
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
557
- } return !IS_INCLUDES && -1;
558
- };
559
- };
560
-
561
- var arrayIncludes = {
562
- // `Array.prototype.includes` method
563
- // https://tc39.es/ecma262/#sec-array.prototype.includes
564
- includes: createMethod(true),
565
- // `Array.prototype.indexOf` method
566
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
567
- indexOf: createMethod(false)
568
- };
569
-
570
- var hiddenKeys$4 = {};
571
-
572
- var uncurryThis$8 = functionUncurryThis;
573
- var hasOwn$8 = hasOwnProperty_1;
574
- var toIndexedObject$3 = toIndexedObject$5;
575
- var indexOf = arrayIncludes.indexOf;
576
- var hiddenKeys$3 = hiddenKeys$4;
577
-
578
- var push$1 = uncurryThis$8([].push);
579
-
580
- var objectKeysInternal = function (object, names) {
581
- var O = toIndexedObject$3(object);
582
- var i = 0;
583
- var result = [];
584
- var key;
585
- for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push$1(result, key);
586
- // Don't enum bug & hidden keys
587
- while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
588
- ~indexOf(result, key) || push$1(result, key);
589
- }
590
- return result;
591
- };
592
-
593
- // IE8- don't enum bug keys
594
- var enumBugKeys$3 = [
595
- 'constructor',
596
- 'hasOwnProperty',
597
- 'isPrototypeOf',
598
- 'propertyIsEnumerable',
599
- 'toLocaleString',
600
- 'toString',
601
- 'valueOf'
602
- ];
603
-
604
- var internalObjectKeys$1 = objectKeysInternal;
605
- var enumBugKeys$2 = enumBugKeys$3;
606
-
607
- // `Object.keys` method
608
- // https://tc39.es/ecma262/#sec-object.keys
609
- // eslint-disable-next-line es/no-object-keys -- safe
610
- var objectKeys$2 = Object.keys || function keys(O) {
611
- return internalObjectKeys$1(O, enumBugKeys$2);
612
- };
613
-
614
- var DESCRIPTORS$6 = descriptors;
615
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
616
- var definePropertyModule$3 = objectDefineProperty;
617
- var anObject$4 = anObject$6;
618
- var toIndexedObject$2 = toIndexedObject$5;
619
- var objectKeys$1 = objectKeys$2;
620
-
621
- // `Object.defineProperties` method
622
- // https://tc39.es/ecma262/#sec-object.defineproperties
623
- // eslint-disable-next-line es/no-object-defineproperties -- safe
624
- objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
625
- anObject$4(O);
626
- var props = toIndexedObject$2(Properties);
627
- var keys = objectKeys$1(Properties);
628
- var length = keys.length;
629
- var index = 0;
630
- var key;
631
- while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
632
- return O;
633
- };
634
-
635
- var getBuiltIn$2 = getBuiltIn$4;
636
-
637
- var html$1 = getBuiltIn$2('document', 'documentElement');
638
-
639
- var shared$1 = shared$3;
640
- var uid = uid$2;
641
-
642
- var keys = shared$1('keys');
643
-
644
- var sharedKey$3 = function (key) {
645
- return keys[key] || (keys[key] = uid(key));
646
- };
647
-
648
- /* global ActiveXObject -- old IE, WSH */
649
- var anObject$3 = anObject$6;
650
- var definePropertiesModule = objectDefineProperties;
651
- var enumBugKeys$1 = enumBugKeys$3;
652
- var hiddenKeys$2 = hiddenKeys$4;
653
- var html = html$1;
654
- var documentCreateElement$1 = documentCreateElement$2;
655
- var sharedKey$2 = sharedKey$3;
656
-
657
- var GT = '>';
658
- var LT = '<';
659
- var PROTOTYPE = 'prototype';
660
- var SCRIPT = 'script';
661
- var IE_PROTO$1 = sharedKey$2('IE_PROTO');
662
-
663
- var EmptyConstructor = function () { /* empty */ };
664
-
665
- var scriptTag = function (content) {
666
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
667
- };
668
-
669
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
670
- var NullProtoObjectViaActiveX = function (activeXDocument) {
671
- activeXDocument.write(scriptTag(''));
672
- activeXDocument.close();
673
- var temp = activeXDocument.parentWindow.Object;
674
- activeXDocument = null; // avoid memory leak
675
- return temp;
676
- };
677
-
678
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
679
- var NullProtoObjectViaIFrame = function () {
680
- // Thrash, waste and sodomy: IE GC bug
681
- var iframe = documentCreateElement$1('iframe');
682
- var JS = 'java' + SCRIPT + ':';
683
- var iframeDocument;
684
- iframe.style.display = 'none';
685
- html.appendChild(iframe);
686
- // https://github.com/zloirock/core-js/issues/475
687
- iframe.src = String(JS);
688
- iframeDocument = iframe.contentWindow.document;
689
- iframeDocument.open();
690
- iframeDocument.write(scriptTag('document.F=Object'));
691
- iframeDocument.close();
692
- return iframeDocument.F;
693
- };
694
-
695
- // Check for document.domain and active x support
696
- // No need to use active x approach when document.domain is not set
697
- // see https://github.com/es-shims/es5-shim/issues/150
698
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
699
- // avoid IE GC bug
700
- var activeXDocument;
701
- var NullProtoObject = function () {
702
- try {
703
- activeXDocument = new ActiveXObject('htmlfile');
704
- } catch (error) { /* ignore */ }
705
- NullProtoObject = typeof document != 'undefined'
706
- ? document.domain && activeXDocument
707
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
708
- : NullProtoObjectViaIFrame()
709
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
710
- var length = enumBugKeys$1.length;
711
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
712
- return NullProtoObject();
713
- };
714
-
715
- hiddenKeys$2[IE_PROTO$1] = true;
716
-
717
- // `Object.create` method
718
- // https://tc39.es/ecma262/#sec-object.create
719
- // eslint-disable-next-line es/no-object-create -- safe
720
- var objectCreate = Object.create || function create(O, Properties) {
721
- var result;
722
- if (O !== null) {
723
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
724
- result = new EmptyConstructor();
725
- EmptyConstructor[PROTOTYPE] = null;
726
- // add "__proto__" for Object.getPrototypeOf polyfill
727
- result[IE_PROTO$1] = O;
728
- } else result = NullProtoObject();
729
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
730
- };
731
-
732
- var wellKnownSymbol$6 = wellKnownSymbol$8;
733
- var create$1 = objectCreate;
734
- var defineProperty$4 = objectDefineProperty.f;
735
-
736
- var UNSCOPABLES = wellKnownSymbol$6('unscopables');
737
- var ArrayPrototype = Array.prototype;
738
-
739
- // Array.prototype[@@unscopables]
740
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
741
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
742
- defineProperty$4(ArrayPrototype, UNSCOPABLES, {
743
- configurable: true,
744
- value: create$1(null)
745
- });
746
- }
747
-
748
- // add a key to Array.prototype[@@unscopables]
749
- var addToUnscopables$1 = function (key) {
750
- ArrayPrototype[UNSCOPABLES][key] = true;
751
- };
752
-
753
- var iterators = {};
754
-
755
- var global$4 = global$b;
756
- var isCallable$a = isCallable$g;
757
-
758
- var WeakMap$1 = global$4.WeakMap;
759
-
760
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
761
-
762
- var createPropertyDescriptor$3 = function (bitmap, value) {
763
- return {
764
- enumerable: !(bitmap & 1),
765
- configurable: !(bitmap & 2),
766
- writable: !(bitmap & 4),
767
- value: value
768
- };
769
- };
770
-
771
- var DESCRIPTORS$5 = descriptors;
772
- var definePropertyModule$2 = objectDefineProperty;
773
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
774
-
775
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
776
- return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
777
- } : function (object, key, value) {
778
- object[key] = value;
779
- return object;
780
- };
781
-
782
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
783
- var global$3 = global$b;
784
- var isObject$3 = isObject$8;
785
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
786
- var hasOwn$7 = hasOwnProperty_1;
787
- var shared = sharedStoreExports;
788
- var sharedKey$1 = sharedKey$3;
789
- var hiddenKeys$1 = hiddenKeys$4;
790
-
791
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
792
- var TypeError$1 = global$3.TypeError;
793
- var WeakMap = global$3.WeakMap;
794
- var set, get, has;
795
-
796
- var enforce = function (it) {
797
- return has(it) ? get(it) : set(it, {});
798
- };
799
-
800
- var getterFor = function (TYPE) {
801
- return function (it) {
802
- var state;
803
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
804
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
805
- } return state;
806
- };
807
- };
808
-
809
- if (NATIVE_WEAK_MAP || shared.state) {
810
- var store$1 = shared.state || (shared.state = new WeakMap());
811
- /* eslint-disable no-self-assign -- prototype methods protection */
812
- store$1.get = store$1.get;
813
- store$1.has = store$1.has;
814
- store$1.set = store$1.set;
815
- /* eslint-enable no-self-assign -- prototype methods protection */
816
- set = function (it, metadata) {
817
- if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
818
- metadata.facade = it;
819
- store$1.set(it, metadata);
820
- return metadata;
821
- };
822
- get = function (it) {
823
- return store$1.get(it) || {};
824
- };
825
- has = function (it) {
826
- return store$1.has(it);
827
- };
828
- } else {
829
- var STATE = sharedKey$1('state');
830
- hiddenKeys$1[STATE] = true;
831
- set = function (it, metadata) {
832
- if (hasOwn$7(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
833
- metadata.facade = it;
834
- createNonEnumerableProperty$3(it, STATE, metadata);
835
- return metadata;
836
- };
837
- get = function (it) {
838
- return hasOwn$7(it, STATE) ? it[STATE] : {};
839
- };
840
- has = function (it) {
841
- return hasOwn$7(it, STATE);
842
- };
843
- }
844
-
845
- var internalState = {
846
- set: set,
847
- get: get,
848
- has: has,
849
- enforce: enforce,
850
- getterFor: getterFor
851
- };
852
-
853
- var objectGetOwnPropertyDescriptor = {};
854
-
855
- var objectPropertyIsEnumerable = {};
856
-
857
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
858
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
859
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
860
-
861
- // Nashorn ~ JDK8 bug
862
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
863
-
864
- // `Object.prototype.propertyIsEnumerable` method implementation
865
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
866
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
867
- var descriptor = getOwnPropertyDescriptor$1(this, V);
868
- return !!descriptor && descriptor.enumerable;
869
- } : $propertyIsEnumerable;
870
-
871
- var DESCRIPTORS$4 = descriptors;
872
- var call$5 = functionCall;
873
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
874
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
875
- var toIndexedObject$1 = toIndexedObject$5;
876
- var toPropertyKey = toPropertyKey$2;
877
- var hasOwn$6 = hasOwnProperty_1;
878
- var IE8_DOM_DEFINE = ie8DomDefine;
879
-
880
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
881
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
882
-
883
- // `Object.getOwnPropertyDescriptor` method
884
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
885
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
886
- O = toIndexedObject$1(O);
887
- P = toPropertyKey(P);
888
- if (IE8_DOM_DEFINE) try {
889
- return $getOwnPropertyDescriptor(O, P);
890
- } catch (error) { /* empty */ }
891
- if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
892
- };
893
-
894
- var makeBuiltIn$2 = {exports: {}};
895
-
896
- var DESCRIPTORS$3 = descriptors;
897
- var hasOwn$5 = hasOwnProperty_1;
898
-
899
- var FunctionPrototype$1 = Function.prototype;
900
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
901
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
902
-
903
- var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
904
- // additional protection from minified / mangled / dropped function names
905
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
906
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
907
-
908
- var functionName = {
909
- EXISTS: EXISTS,
910
- PROPER: PROPER,
911
- CONFIGURABLE: CONFIGURABLE
912
- };
913
-
914
- var uncurryThis$7 = functionUncurryThis;
915
- var isCallable$9 = isCallable$g;
916
- var store = sharedStoreExports;
917
-
918
- var functionToString = uncurryThis$7(Function.toString);
919
-
920
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
921
- if (!isCallable$9(store.inspectSource)) {
922
- store.inspectSource = function (it) {
923
- return functionToString(it);
924
- };
925
- }
926
-
927
- var inspectSource$1 = store.inspectSource;
928
-
929
- var uncurryThis$6 = functionUncurryThis;
930
- var fails$6 = fails$d;
931
- var isCallable$8 = isCallable$g;
932
- var hasOwn$4 = hasOwnProperty_1;
933
- var DESCRIPTORS$2 = descriptors;
934
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
935
- var inspectSource = inspectSource$1;
936
- var InternalStateModule$1 = internalState;
937
-
938
- var enforceInternalState = InternalStateModule$1.enforce;
939
- var getInternalState$1 = InternalStateModule$1.get;
940
- var $String$3 = String;
941
- // eslint-disable-next-line es/no-object-defineproperty -- safe
942
- var defineProperty$3 = Object.defineProperty;
943
- var stringSlice = uncurryThis$6(''.slice);
944
- var replace$1 = uncurryThis$6(''.replace);
945
- var join = uncurryThis$6([].join);
946
-
947
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$6(function () {
948
- return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
949
- });
950
-
951
- var TEMPLATE = String(String).split('String');
952
-
953
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
954
- if (stringSlice($String$3(name), 0, 7) === 'Symbol(') {
955
- name = '[' + replace$1($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
956
- }
957
- if (options && options.getter) name = 'get ' + name;
958
- if (options && options.setter) name = 'set ' + name;
959
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
960
- if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
961
- else value.name = name;
962
- }
963
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
964
- defineProperty$3(value, 'length', { value: options.arity });
965
- }
966
- try {
967
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
968
- if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
969
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
970
- } else if (value.prototype) value.prototype = undefined;
971
- } catch (error) { /* empty */ }
972
- var state = enforceInternalState(value);
973
- if (!hasOwn$4(state, 'source')) {
974
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
975
- } return value;
976
- };
977
-
978
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
979
- // eslint-disable-next-line no-extend-native -- required
980
- Function.prototype.toString = makeBuiltIn$1(function toString() {
981
- return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
982
- }, 'toString');
983
-
984
- var makeBuiltInExports = makeBuiltIn$2.exports;
985
-
986
- var isCallable$7 = isCallable$g;
987
- var definePropertyModule$1 = objectDefineProperty;
988
- var makeBuiltIn = makeBuiltInExports;
989
- var defineGlobalProperty$1 = defineGlobalProperty$3;
990
-
991
- var defineBuiltIn$4 = function (O, key, value, options) {
992
- if (!options) options = {};
993
- var simple = options.enumerable;
994
- var name = options.name !== undefined ? options.name : key;
995
- if (isCallable$7(value)) makeBuiltIn(value, name, options);
996
- if (options.global) {
997
- if (simple) O[key] = value;
998
- else defineGlobalProperty$1(key, value);
999
- } else {
1000
- try {
1001
- if (!options.unsafe) delete O[key];
1002
- else if (O[key]) simple = true;
1003
- } catch (error) { /* empty */ }
1004
- if (simple) O[key] = value;
1005
- else definePropertyModule$1.f(O, key, {
1006
- value: value,
1007
- enumerable: false,
1008
- configurable: !options.nonConfigurable,
1009
- writable: !options.nonWritable
1010
- });
1011
- } return O;
1012
- };
1013
-
1014
- var objectGetOwnPropertyNames = {};
1015
-
1016
- var internalObjectKeys = objectKeysInternal;
1017
- var enumBugKeys = enumBugKeys$3;
1018
-
1019
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1020
-
1021
- // `Object.getOwnPropertyNames` method
1022
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
1023
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1024
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1025
- return internalObjectKeys(O, hiddenKeys);
1026
- };
1027
-
1028
- var objectGetOwnPropertySymbols = {};
1029
-
1030
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1031
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1032
-
1033
- var getBuiltIn$1 = getBuiltIn$4;
1034
- var uncurryThis$5 = functionUncurryThis;
1035
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1036
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1037
- var anObject$2 = anObject$6;
1038
-
1039
- var concat$1 = uncurryThis$5([].concat);
1040
-
1041
- // all object keys, includes non-enumerable and symbols
1042
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
1043
- var keys = getOwnPropertyNamesModule.f(anObject$2(it));
1044
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1045
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1046
- };
1047
-
1048
- var hasOwn$3 = hasOwnProperty_1;
1049
- var ownKeys = ownKeys$1;
1050
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1051
- var definePropertyModule = objectDefineProperty;
1052
-
1053
- var copyConstructorProperties$1 = function (target, source, exceptions) {
1054
- var keys = ownKeys(source);
1055
- var defineProperty = definePropertyModule.f;
1056
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1057
- for (var i = 0; i < keys.length; i++) {
1058
- var key = keys[i];
1059
- if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1060
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1061
- }
1062
- }
1063
- };
1064
-
1065
- var fails$5 = fails$d;
1066
- var isCallable$6 = isCallable$g;
1067
-
1068
- var replacement = /#|\.prototype\./;
1069
-
1070
- var isForced$1 = function (feature, detection) {
1071
- var value = data[normalize(feature)];
1072
- return value === POLYFILL ? true
1073
- : value === NATIVE ? false
1074
- : isCallable$6(detection) ? fails$5(detection)
1075
- : !!detection;
1076
- };
1077
-
1078
- var normalize = isForced$1.normalize = function (string) {
1079
- return String(string).replace(replacement, '.').toLowerCase();
1080
- };
1081
-
1082
- var data = isForced$1.data = {};
1083
- var NATIVE = isForced$1.NATIVE = 'N';
1084
- var POLYFILL = isForced$1.POLYFILL = 'P';
1085
-
1086
- var isForced_1 = isForced$1;
1087
-
1088
- var global$2 = global$b;
1089
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1090
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1091
- var defineBuiltIn$3 = defineBuiltIn$4;
1092
- var defineGlobalProperty = defineGlobalProperty$3;
1093
- var copyConstructorProperties = copyConstructorProperties$1;
1094
- var isForced = isForced_1;
1095
-
1096
- /*
1097
- options.target - name of the target object
1098
- options.global - target is the global object
1099
- options.stat - export as static methods of target
1100
- options.proto - export as prototype methods of target
1101
- options.real - real prototype method for the `pure` version
1102
- options.forced - export even if the native feature is available
1103
- options.bind - bind methods to the target, required for the `pure` version
1104
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1105
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1106
- options.sham - add a flag to not completely full polyfills
1107
- options.enumerable - export as enumerable property
1108
- options.dontCallGetSet - prevent calling a getter on target
1109
- options.name - the .name of the function if it does not match the key
1110
- */
1111
- var _export = function (options, source) {
1112
- var TARGET = options.target;
1113
- var GLOBAL = options.global;
1114
- var STATIC = options.stat;
1115
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1116
- if (GLOBAL) {
1117
- target = global$2;
1118
- } else if (STATIC) {
1119
- target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
1120
- } else {
1121
- target = global$2[TARGET] && global$2[TARGET].prototype;
1122
- }
1123
- if (target) for (key in source) {
1124
- sourceProperty = source[key];
1125
- if (options.dontCallGetSet) {
1126
- descriptor = getOwnPropertyDescriptor(target, key);
1127
- targetProperty = descriptor && descriptor.value;
1128
- } else targetProperty = target[key];
1129
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1130
- // contained in target
1131
- if (!FORCED && targetProperty !== undefined) {
1132
- if (typeof sourceProperty == typeof targetProperty) continue;
1133
- copyConstructorProperties(sourceProperty, targetProperty);
1134
- }
1135
- // add a flag to not completely full polyfills
1136
- if (options.sham || (targetProperty && targetProperty.sham)) {
1137
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1138
- }
1139
- defineBuiltIn$3(target, key, sourceProperty, options);
1140
- }
1141
- };
1142
-
1143
- var fails$4 = fails$d;
1144
-
1145
- var correctPrototypeGetter = !fails$4(function () {
1146
- function F() { /* empty */ }
1147
- F.prototype.constructor = null;
1148
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1149
- return Object.getPrototypeOf(new F()) !== F.prototype;
1150
- });
1151
-
1152
- var hasOwn$2 = hasOwnProperty_1;
1153
- var isCallable$5 = isCallable$g;
1154
- var toObject$1 = toObject$3;
1155
- var sharedKey = sharedKey$3;
1156
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1157
-
1158
- var IE_PROTO = sharedKey('IE_PROTO');
1159
- var $Object$1 = Object;
1160
- var ObjectPrototype = $Object$1.prototype;
1161
-
1162
- // `Object.getPrototypeOf` method
1163
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1164
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1165
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1166
- var object = toObject$1(O);
1167
- if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1168
- var constructor = object.constructor;
1169
- if (isCallable$5(constructor) && object instanceof constructor) {
1170
- return constructor.prototype;
1171
- } return object instanceof $Object$1 ? ObjectPrototype : null;
1172
- };
1173
-
1174
- var fails$3 = fails$d;
1175
- var isCallable$4 = isCallable$g;
1176
- var isObject$2 = isObject$8;
1177
- var getPrototypeOf$1 = objectGetPrototypeOf;
1178
- var defineBuiltIn$2 = defineBuiltIn$4;
1179
- var wellKnownSymbol$5 = wellKnownSymbol$8;
1180
-
1181
- var ITERATOR$2 = wellKnownSymbol$5('iterator');
1182
- var BUGGY_SAFARI_ITERATORS$1 = false;
1183
-
1184
- // `%IteratorPrototype%` object
1185
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1186
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1187
-
1188
- /* eslint-disable es/no-array-prototype-keys -- safe */
1189
- if ([].keys) {
1190
- arrayIterator = [].keys();
1191
- // Safari 8 has buggy iterators w/o `next`
1192
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1193
- else {
1194
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1195
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1196
- }
1197
- }
1198
-
1199
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$3(function () {
1200
- var test = {};
1201
- // FF44- legacy iterators case
1202
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1203
- });
1204
-
1205
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1206
-
1207
- // `%IteratorPrototype%[@@iterator]()` method
1208
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1209
- if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1210
- defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1211
- return this;
1212
- });
1213
- }
1214
-
1215
- var iteratorsCore = {
1216
- IteratorPrototype: IteratorPrototype$2,
1217
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1218
- };
1219
-
1220
- var defineProperty$2 = objectDefineProperty.f;
1221
- var hasOwn$1 = hasOwnProperty_1;
1222
- var wellKnownSymbol$4 = wellKnownSymbol$8;
1223
-
1224
- var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1225
-
1226
- var setToStringTag$3 = function (target, TAG, STATIC) {
1227
- if (target && !STATIC) target = target.prototype;
1228
- if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1229
- defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1230
- }
1231
- };
1232
-
1233
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1234
- var create = objectCreate;
1235
- var createPropertyDescriptor = createPropertyDescriptor$3;
1236
- var setToStringTag$2 = setToStringTag$3;
1237
- var Iterators$2 = iterators;
1238
-
1239
- var returnThis$1 = function () { return this; };
1240
-
1241
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1242
- var TO_STRING_TAG = NAME + ' Iterator';
1243
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1244
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1245
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1246
- return IteratorConstructor;
1247
- };
1248
-
1249
- var uncurryThis$4 = functionUncurryThis;
1250
- var aCallable = aCallable$2;
1251
-
1252
- var functionUncurryThisAccessor = function (object, key, method) {
1253
- try {
1254
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1255
- return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1256
- } catch (error) { /* empty */ }
1257
- };
1258
-
1259
- var isObject$1 = isObject$8;
1260
-
1261
- var isPossiblePrototype$1 = function (argument) {
1262
- return isObject$1(argument) || argument === null;
1263
- };
1264
-
1265
- var isPossiblePrototype = isPossiblePrototype$1;
1266
-
1267
- var $String$2 = String;
1268
- var $TypeError = TypeError;
1269
-
1270
- var aPossiblePrototype$1 = function (argument) {
1271
- if (isPossiblePrototype(argument)) return argument;
1272
- throw new $TypeError("Can't set " + $String$2(argument) + ' as a prototype');
1273
- };
1274
-
1275
- /* eslint-disable no-proto -- safe */
1276
- var uncurryThisAccessor = functionUncurryThisAccessor;
1277
- var isObject = isObject$8;
1278
- var requireObjectCoercible = requireObjectCoercible$3;
1279
- var aPossiblePrototype = aPossiblePrototype$1;
1280
-
1281
- // `Object.setPrototypeOf` method
1282
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1283
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1284
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1285
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1286
- var CORRECT_SETTER = false;
1287
- var test = {};
1288
- var setter;
1289
- try {
1290
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1291
- setter(test, []);
1292
- CORRECT_SETTER = test instanceof Array;
1293
- } catch (error) { /* empty */ }
1294
- return function setPrototypeOf(O, proto) {
1295
- requireObjectCoercible(O);
1296
- aPossiblePrototype(proto);
1297
- if (!isObject(O)) return O;
1298
- if (CORRECT_SETTER) setter(O, proto);
1299
- else O.__proto__ = proto;
1300
- return O;
1301
- };
1302
- }() : undefined);
1303
-
1304
- var $$2 = _export;
1305
- var call$4 = functionCall;
1306
- var FunctionName = functionName;
1307
- var isCallable$3 = isCallable$g;
1308
- var createIteratorConstructor = iteratorCreateConstructor;
1309
- var getPrototypeOf = objectGetPrototypeOf;
1310
- var setPrototypeOf = objectSetPrototypeOf;
1311
- var setToStringTag$1 = setToStringTag$3;
1312
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1313
- var defineBuiltIn$1 = defineBuiltIn$4;
1314
- var wellKnownSymbol$3 = wellKnownSymbol$8;
1315
- var Iterators$1 = iterators;
1316
- var IteratorsCore = iteratorsCore;
1317
-
1318
- var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1319
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1320
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1321
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1322
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
1323
- var KEYS = 'keys';
1324
- var VALUES = 'values';
1325
- var ENTRIES = 'entries';
1326
-
1327
- var returnThis = function () { return this; };
1328
-
1329
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1330
- createIteratorConstructor(IteratorConstructor, NAME, next);
1331
-
1332
- var getIterationMethod = function (KIND) {
1333
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1334
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1335
-
1336
- switch (KIND) {
1337
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1338
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1339
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1340
- }
1341
-
1342
- return function () { return new IteratorConstructor(this); };
1343
- };
1344
-
1345
- var TO_STRING_TAG = NAME + ' Iterator';
1346
- var INCORRECT_VALUES_NAME = false;
1347
- var IterablePrototype = Iterable.prototype;
1348
- var nativeIterator = IterablePrototype[ITERATOR$1]
1349
- || IterablePrototype['@@iterator']
1350
- || DEFAULT && IterablePrototype[DEFAULT];
1351
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1352
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1353
- var CurrentIteratorPrototype, methods, KEY;
1354
-
1355
- // fix native
1356
- if (anyNativeIterator) {
1357
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1358
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1359
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1360
- if (setPrototypeOf) {
1361
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1362
- } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
1363
- defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1364
- }
1365
- }
1366
- // Set @@toStringTag to native iterators
1367
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1368
- }
1369
- }
1370
-
1371
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1372
- if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1373
- if (CONFIGURABLE_FUNCTION_NAME) {
1374
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1375
- } else {
1376
- INCORRECT_VALUES_NAME = true;
1377
- defaultIterator = function values() { return call$4(nativeIterator, this); };
1378
- }
1379
- }
1380
-
1381
- // export additional methods
1382
- if (DEFAULT) {
1383
- methods = {
1384
- values: getIterationMethod(VALUES),
1385
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1386
- entries: getIterationMethod(ENTRIES)
1387
- };
1388
- if (FORCED) for (KEY in methods) {
1389
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1390
- defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1391
- }
1392
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1393
- }
1394
-
1395
- // define iterator
1396
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1397
- defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1398
- }
1399
- Iterators$1[NAME] = defaultIterator;
1400
-
1401
- return methods;
1402
- };
1403
-
1404
- // `CreateIterResultObject` abstract operation
1405
- // https://tc39.es/ecma262/#sec-createiterresultobject
1406
- var createIterResultObject$1 = function (value, done) {
1407
- return { value: value, done: done };
1408
- };
1409
-
1410
- var toIndexedObject = toIndexedObject$5;
1411
- var addToUnscopables = addToUnscopables$1;
1412
- var Iterators = iterators;
1413
- var InternalStateModule = internalState;
1414
- var defineProperty$1 = objectDefineProperty.f;
1415
- var defineIterator = iteratorDefine;
1416
- var createIterResultObject = createIterResultObject$1;
1417
- var DESCRIPTORS$1 = descriptors;
1418
-
1419
- var ARRAY_ITERATOR = 'Array Iterator';
1420
- var setInternalState = InternalStateModule.set;
1421
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1422
-
1423
- // `Array.prototype.entries` method
1424
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1425
- // `Array.prototype.keys` method
1426
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1427
- // `Array.prototype.values` method
1428
- // https://tc39.es/ecma262/#sec-array.prototype.values
1429
- // `Array.prototype[@@iterator]` method
1430
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1431
- // `CreateArrayIterator` internal method
1432
- // https://tc39.es/ecma262/#sec-createarrayiterator
1433
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1434
- setInternalState(this, {
1435
- type: ARRAY_ITERATOR,
1436
- target: toIndexedObject(iterated), // target
1437
- index: 0, // next index
1438
- kind: kind // kind
1439
- });
1440
- // `%ArrayIteratorPrototype%.next` method
1441
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1442
- }, function () {
1443
- var state = getInternalState(this);
1444
- var target = state.target;
1445
- var index = state.index++;
1446
- if (!target || index >= target.length) {
1447
- state.target = undefined;
1448
- return createIterResultObject(undefined, true);
1449
- }
1450
- switch (state.kind) {
1451
- case 'keys': return createIterResultObject(index, false);
1452
- case 'values': return createIterResultObject(target[index], false);
1453
- } return createIterResultObject([index, target[index]], false);
1454
- }, 'values');
1455
-
1456
- // argumentsList[@@iterator] is %ArrayProto_values%
1457
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1458
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1459
- var values = Iterators.Arguments = Iterators.Array;
1460
-
1461
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1462
- addToUnscopables('keys');
1463
- addToUnscopables('values');
1464
- addToUnscopables('entries');
1465
-
1466
- // V8 ~ Chrome 45- bug
1467
- if (DESCRIPTORS$1 && values.name !== 'values') try {
1468
- defineProperty$1(values, 'name', { value: 'values' });
1469
- } catch (error) { /* empty */ }
1470
-
1471
- var DESCRIPTORS = descriptors;
1472
- var uncurryThis$3 = functionUncurryThis;
1473
- var call$3 = functionCall;
1474
- var fails$2 = fails$d;
1475
- var objectKeys = objectKeys$2;
1476
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1477
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1478
- var toObject = toObject$3;
1479
- var IndexedObject = indexedObject;
1480
-
1481
- // eslint-disable-next-line es/no-object-assign -- safe
1482
- var $assign = Object.assign;
1483
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1484
- var defineProperty = Object.defineProperty;
1485
- var concat = uncurryThis$3([].concat);
1486
-
1487
- // `Object.assign` method
1488
- // https://tc39.es/ecma262/#sec-object.assign
1489
- var objectAssign = !$assign || fails$2(function () {
1490
- // should have correct order of operations (Edge bug)
1491
- if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1492
- enumerable: true,
1493
- get: function () {
1494
- defineProperty(this, 'b', {
1495
- value: 3,
1496
- enumerable: false
1497
- });
1498
- }
1499
- }), { b: 2 })).b !== 1) return true;
1500
- // should work with symbols and should have deterministic property order (V8 bug)
1501
- var A = {};
1502
- var B = {};
1503
- // eslint-disable-next-line es/no-symbol -- safe
1504
- var symbol = Symbol('assign detection');
1505
- var alphabet = 'abcdefghijklmnopqrst';
1506
- A[symbol] = 7;
1507
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1508
- return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1509
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1510
- var T = toObject(target);
1511
- var argumentsLength = arguments.length;
1512
- var index = 1;
1513
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1514
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1515
- while (argumentsLength > index) {
1516
- var S = IndexedObject(arguments[index++]);
1517
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1518
- var length = keys.length;
1519
- var j = 0;
1520
- var key;
1521
- while (length > j) {
1522
- key = keys[j++];
1523
- if (!DESCRIPTORS || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1524
- }
1525
- } return T;
1526
- } : $assign;
1527
-
1528
- var $$1 = _export;
1529
- var assign = objectAssign;
1530
-
1531
- // `Object.assign` method
1532
- // https://tc39.es/ecma262/#sec-object.assign
1533
- // eslint-disable-next-line es/no-object-assign -- required for testing
1534
- $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1535
- assign: assign
1536
- });
1537
-
1538
- // iterable DOM collections
1539
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1540
- var domIterables = {
1541
- CSSRuleList: 0,
1542
- CSSStyleDeclaration: 0,
1543
- CSSValueList: 0,
1544
- ClientRectList: 0,
1545
- DOMRectList: 0,
1546
- DOMStringList: 0,
1547
- DOMTokenList: 1,
1548
- DataTransferItemList: 0,
1549
- FileList: 0,
1550
- HTMLAllCollection: 0,
1551
- HTMLCollection: 0,
1552
- HTMLFormElement: 0,
1553
- HTMLSelectElement: 0,
1554
- MediaList: 0,
1555
- MimeTypeArray: 0,
1556
- NamedNodeMap: 0,
1557
- NodeList: 1,
1558
- PaintRequestList: 0,
1559
- Plugin: 0,
1560
- PluginArray: 0,
1561
- SVGLengthList: 0,
1562
- SVGNumberList: 0,
1563
- SVGPathSegList: 0,
1564
- SVGPointList: 0,
1565
- SVGStringList: 0,
1566
- SVGTransformList: 0,
1567
- SourceBufferList: 0,
1568
- StyleSheetList: 0,
1569
- TextTrackCueList: 0,
1570
- TextTrackList: 0,
1571
- TouchList: 0
1572
- };
1573
-
1574
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1575
- var documentCreateElement = documentCreateElement$2;
1576
-
1577
- var classList = documentCreateElement('span').classList;
1578
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1579
-
1580
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1581
-
1582
- var global$1 = global$b;
1583
- var DOMIterables = domIterables;
1584
- var DOMTokenListPrototype = domTokenListPrototype;
1585
- var ArrayIteratorMethods = es_array_iterator;
1586
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
1587
- var setToStringTag = setToStringTag$3;
1588
- var wellKnownSymbol$2 = wellKnownSymbol$8;
1589
-
1590
- var ITERATOR = wellKnownSymbol$2('iterator');
1591
- var ArrayValues = ArrayIteratorMethods.values;
1592
-
1593
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1594
- if (CollectionPrototype) {
1595
- // some Chrome versions have non-configurable methods on DOMTokenList
1596
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1597
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1598
- } catch (error) {
1599
- CollectionPrototype[ITERATOR] = ArrayValues;
1600
- }
1601
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1602
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1603
- // some Chrome versions have non-configurable methods on DOMTokenList
1604
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1605
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1606
- } catch (error) {
1607
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1608
- }
1609
- }
1610
- }
1611
- };
1612
-
1613
- for (var COLLECTION_NAME in DOMIterables) {
1614
- handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1615
- }
1616
-
1617
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1618
-
1619
- function styleInject(css, ref) {
1620
- if ( ref === void 0 ) ref = {};
1621
- var insertAt = ref.insertAt;
1622
-
1623
- if (!css || typeof document === 'undefined') { return; }
1624
-
1625
- var head = document.head || document.getElementsByTagName('head')[0];
1626
- var style = document.createElement('style');
1627
- style.type = 'text/css';
1628
-
1629
- if (insertAt === 'top') {
1630
- if (head.firstChild) {
1631
- head.insertBefore(style, head.firstChild);
1632
- } else {
1633
- head.appendChild(style);
1634
- }
1635
- } else {
1636
- head.appendChild(style);
1637
- }
1638
-
1639
- if (style.styleSheet) {
1640
- style.styleSheet.cssText = css;
1641
- } else {
1642
- style.appendChild(document.createTextNode(css));
1643
- }
1644
- }
1645
-
1646
- var NATIVE_BIND = functionBindNative;
1647
-
1648
- var FunctionPrototype = Function.prototype;
1649
- var apply$1 = FunctionPrototype.apply;
1650
- var call$2 = FunctionPrototype.call;
1651
-
1652
- // eslint-disable-next-line es/no-reflect -- safe
1653
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
1654
- return call$2.apply(apply$1, arguments);
1655
- });
1656
-
1657
- var uncurryThis$2 = functionUncurryThis;
1658
-
1659
- var arraySlice$1 = uncurryThis$2([].slice);
1660
-
1661
- var classof$3 = classofRaw$1;
1662
-
1663
- // `IsArray` abstract operation
1664
- // https://tc39.es/ecma262/#sec-isarray
1665
- // eslint-disable-next-line es/no-array-isarray -- safe
1666
- var isArray$1 = Array.isArray || function isArray(argument) {
1667
- return classof$3(argument) === 'Array';
1668
- };
1669
-
1670
- var wellKnownSymbol$1 = wellKnownSymbol$8;
1671
-
1672
- var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
1673
- var test = {};
1674
-
1675
- test[TO_STRING_TAG$1] = 'z';
1676
-
1677
- var toStringTagSupport = String(test) === '[object z]';
1678
-
1679
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1680
- var isCallable$2 = isCallable$g;
1681
- var classofRaw = classofRaw$1;
1682
- var wellKnownSymbol = wellKnownSymbol$8;
1683
-
1684
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1685
- var $Object = Object;
1686
-
1687
- // ES3 wrong here
1688
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1689
-
1690
- // fallback for IE11 Script Access Denied error
1691
- var tryGet = function (it, key) {
1692
- try {
1693
- return it[key];
1694
- } catch (error) { /* empty */ }
1695
- };
1696
-
1697
- // getting tag from ES6+ `Object.prototype.toString`
1698
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1699
- var O, tag, result;
1700
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1701
- // @@toStringTag case
1702
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1703
- // builtinTag case
1704
- : CORRECT_ARGUMENTS ? classofRaw(O)
1705
- // ES3 arguments fallback
1706
- : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1707
- };
1708
-
1709
- var classof$1 = classof$2;
1710
-
1711
- var $String$1 = String;
1712
-
1713
- var toString$1 = function (argument) {
1714
- if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1715
- return $String$1(argument);
1716
- };
1717
-
1718
- var uncurryThis$1 = functionUncurryThis;
1719
- var isArray = isArray$1;
1720
- var isCallable$1 = isCallable$g;
1721
- var classof = classofRaw$1;
1722
- var toString = toString$1;
1723
-
1724
- var push = uncurryThis$1([].push);
1725
-
1726
- var getJsonReplacerFunction = function (replacer) {
1727
- if (isCallable$1(replacer)) return replacer;
1728
- if (!isArray(replacer)) return;
1729
- var rawLength = replacer.length;
1730
- var keys = [];
1731
- for (var i = 0; i < rawLength; i++) {
1732
- var element = replacer[i];
1733
- if (typeof element == 'string') push(keys, element);
1734
- else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element));
1735
- }
1736
- var keysLength = keys.length;
1737
- var root = true;
1738
- return function (key, value) {
1739
- if (root) {
1740
- root = false;
1741
- return value;
1742
- }
1743
- if (isArray(this)) return value;
1744
- for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
1745
- };
1746
- };
1747
-
1748
- var $ = _export;
1749
- var getBuiltIn = getBuiltIn$4;
1750
- var apply = functionApply;
1751
- var call$1 = functionCall;
1752
- var uncurryThis = functionUncurryThis;
1753
- var fails$1 = fails$d;
1754
- var isCallable = isCallable$g;
1755
- var isSymbol = isSymbol$3;
1756
- var arraySlice = arraySlice$1;
1757
- var getReplacerFunction = getJsonReplacerFunction;
1758
- var NATIVE_SYMBOL = symbolConstructorDetection;
1759
-
1760
- var $String = String;
1761
- var $stringify = getBuiltIn('JSON', 'stringify');
1762
- var exec = uncurryThis(/./.exec);
1763
- var charAt = uncurryThis(''.charAt);
1764
- var charCodeAt = uncurryThis(''.charCodeAt);
1765
- var replace = uncurryThis(''.replace);
1766
- var numberToString = uncurryThis(1.0.toString);
1767
-
1768
- var tester = /[\uD800-\uDFFF]/g;
1769
- var low = /^[\uD800-\uDBFF]$/;
1770
- var hi = /^[\uDC00-\uDFFF]$/;
1771
-
1772
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$1(function () {
1773
- var symbol = getBuiltIn('Symbol')('stringify detection');
1774
- // MS Edge converts symbol values to JSON as {}
1775
- return $stringify([symbol]) !== '[null]'
1776
- // WebKit converts symbol values to JSON as null
1777
- || $stringify({ a: symbol }) !== '{}'
1778
- // V8 throws on boxed symbols
1779
- || $stringify(Object(symbol)) !== '{}';
1780
- });
1781
-
1782
- // https://github.com/tc39/proposal-well-formed-stringify
1783
- var ILL_FORMED_UNICODE = fails$1(function () {
1784
- return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
1785
- || $stringify('\uDEAD') !== '"\\udead"';
1786
- });
1787
-
1788
- var stringifyWithSymbolsFix = function (it, replacer) {
1789
- var args = arraySlice(arguments);
1790
- var $replacer = getReplacerFunction(replacer);
1791
- if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
1792
- args[1] = function (key, value) {
1793
- // some old implementations (like WebKit) could pass numbers as keys
1794
- if (isCallable($replacer)) value = call$1($replacer, this, $String(key), value);
1795
- if (!isSymbol(value)) return value;
1796
- };
1797
- return apply($stringify, null, args);
1798
- };
1799
-
1800
- var fixIllFormed = function (match, offset, string) {
1801
- var prev = charAt(string, offset - 1);
1802
- var next = charAt(string, offset + 1);
1803
- if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {
1804
- return '\\u' + numberToString(charCodeAt(match, 0), 16);
1805
- } return match;
1806
- };
1807
-
1808
- if ($stringify) {
1809
- // `JSON.stringify` method
1810
- // https://tc39.es/ecma262/#sec-json.stringify
1811
- $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
1812
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1813
- stringify: function stringify(it, replacer, space) {
1814
- var args = arraySlice(arguments);
1815
- var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
1816
- return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result;
1817
- }
1818
- });
1819
- }
1820
-
1821
- var anObject$1 = anObject$6;
1822
-
1823
- // `RegExp.prototype.flags` getter implementation
1824
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1825
- var regexpFlags = function () {
1826
- var that = anObject$1(this);
1827
- var result = '';
1828
- if (that.hasIndices) result += 'd';
1829
- if (that.global) result += 'g';
1830
- if (that.ignoreCase) result += 'i';
1831
- if (that.multiline) result += 'm';
1832
- if (that.dotAll) result += 's';
1833
- if (that.unicode) result += 'u';
1834
- if (that.unicodeSets) result += 'v';
1835
- if (that.sticky) result += 'y';
1836
- return result;
1837
- };
1838
-
1839
- var call = functionCall;
1840
- var hasOwn = hasOwnProperty_1;
1841
- var isPrototypeOf = objectIsPrototypeOf;
1842
- var regExpFlags = regexpFlags;
1843
-
1844
- var RegExpPrototype$1 = RegExp.prototype;
1845
-
1846
- var regexpGetFlags = function (R) {
1847
- var flags = R.flags;
1848
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
1849
- ? call(regExpFlags, R) : flags;
1850
- };
1851
-
1852
- var PROPER_FUNCTION_NAME = functionName.PROPER;
1853
- var defineBuiltIn = defineBuiltIn$4;
1854
- var anObject = anObject$6;
1855
- var $toString = toString$1;
1856
- var fails = fails$d;
1857
- var getRegExpFlags = regexpGetFlags;
1858
-
1859
- var TO_STRING = 'toString';
1860
- var RegExpPrototype = RegExp.prototype;
1861
- var nativeToString = RegExpPrototype[TO_STRING];
1862
-
1863
- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
1864
- // FF44- RegExp#toString has a wrong name
1865
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
1866
-
1867
- // `RegExp.prototype.toString` method
1868
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1869
- if (NOT_GENERIC || INCORRECT_NAME) {
1870
- defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
1871
- var R = anObject(this);
1872
- var pattern = $toString(R.source);
1873
- var flags = $toString(getRegExpFlags(R));
1874
- return '/' + pattern + '/' + flags;
1875
- }, { unsafe: true });
1876
- }
1877
-
1878
- export { isNullOrUndefined$2 as A, tryToString$1 as B, toObject$3 as C, lengthOfArrayLike$1 as D, global$b as E, defineBuiltIn$4 as F, arraySlice$1 as G, setToStringTag$3 as H, iteratorCreateConstructor as I, isObject$8 as J, objectCreate as K, hasOwnProperty_1 as L, objectAssign as M, _export as _, toIntegerOrInfinity$2 as a, internalState as b, createIterResultObject$1 as c, fails$d as d, descriptors as e, functionUncurryThis as f, classofRaw$1 as g, aCallable$2 as h, iteratorDefine as i, functionBindNative as j, objectIsPrototypeOf as k, functionCall as l, makeBuiltInExports as m, anObject$6 as n, objectDefineProperty as o, getMethod$1 as p, iterators as q, requireObjectCoercible$3 as r, styleInject as s, toString$1 as t, getBuiltIn$4 as u, isCallable$g as v, wellKnownSymbol$8 as w, classof$2 as x, inspectSource$1 as y, createPropertyDescriptor$3 as z };