@dotcms/react 0.0.1-alpha.29 → 0.0.1-alpha.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,27 +1,9 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { useState, useEffect, createContext, useContext, createElement as createElement$1, forwardRef } from 'react';
3
- import { isInsideEditor, initEditor, updateNavigation, destroyEditor, DotCmsClient } from '@dotcms/client';
3
+ import { isInsideEditor, initEditor, updateNavigation, destroyEditor, DotCmsClient, postMessageToEditor, CUSTOMER_ACTIONS } from '@dotcms/client';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
6
 
7
- var check = function (it) {
8
- return it && it.Math === Math && it;
9
- };
10
-
11
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var global$b =
13
- // eslint-disable-next-line es/no-global-this -- safe
14
- check(typeof globalThis == 'object' && globalThis) ||
15
- check(typeof window == 'object' && window) ||
16
- // eslint-disable-next-line no-restricted-globals -- safe
17
- check(typeof self == 'object' && self) ||
18
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
20
- // eslint-disable-next-line no-new-func -- fallback
21
- (function () { return this; })() || Function('return this')();
22
-
23
- var objectGetOwnPropertyDescriptor = {};
24
-
25
7
  var fails$c = function (exec) {
26
8
  try {
27
9
  return !!exec();
@@ -32,15 +14,7 @@ var fails$c = function (exec) {
32
14
 
33
15
  var fails$b = fails$c;
34
16
 
35
- // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$b(function () {
37
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
- });
40
-
41
- var fails$a = fails$c;
42
-
43
- var functionBindNative = !fails$a(function () {
17
+ var functionBindNative = !fails$b(function () {
44
18
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
19
  var test = (function () { /* empty */ }).bind();
46
20
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -49,46 +23,13 @@ var functionBindNative = !fails$a(function () {
49
23
 
50
24
  var NATIVE_BIND$2 = functionBindNative;
51
25
 
52
- var call$8 = Function.prototype.call;
53
-
54
- var functionCall = NATIVE_BIND$2 ? call$8.bind(call$8) : function () {
55
- return call$8.apply(call$8, arguments);
56
- };
57
-
58
- var objectPropertyIsEnumerable = {};
59
-
60
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
63
-
64
- // Nashorn ~ JDK8 bug
65
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
66
-
67
- // `Object.prototype.propertyIsEnumerable` method implementation
68
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
69
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
70
- var descriptor = getOwnPropertyDescriptor$1(this, V);
71
- return !!descriptor && descriptor.enumerable;
72
- } : $propertyIsEnumerable;
73
-
74
- var createPropertyDescriptor$3 = function (bitmap, value) {
75
- return {
76
- enumerable: !(bitmap & 1),
77
- configurable: !(bitmap & 2),
78
- writable: !(bitmap & 4),
79
- value: value
80
- };
81
- };
82
-
83
- var NATIVE_BIND$1 = functionBindNative;
84
-
85
26
  var FunctionPrototype$2 = Function.prototype;
86
- var call$7 = FunctionPrototype$2.call;
87
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$7, call$7);
27
+ var call$8 = FunctionPrototype$2.call;
28
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$8, call$8);
88
29
 
89
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
30
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
90
31
  return function () {
91
- return call$7.apply(fn, arguments);
32
+ return call$8.apply(fn, arguments);
92
33
  };
93
34
  };
94
35
 
@@ -102,14 +43,14 @@ var classofRaw$1 = function (it) {
102
43
  };
103
44
 
104
45
  var uncurryThis$c = functionUncurryThis;
105
- var fails$9 = fails$c;
46
+ var fails$a = fails$c;
106
47
  var classof$4 = classofRaw$1;
107
48
 
108
49
  var $Object$4 = Object;
109
50
  var split = uncurryThis$c(''.split);
110
51
 
111
52
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$9(function () {
53
+ var indexedObject = fails$a(function () {
113
54
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
55
  // eslint-disable-next-line no-prototype-builtins -- safe
115
56
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -142,38 +83,90 @@ var toIndexedObject$5 = function (it) {
142
83
  return IndexedObject$1(requireObjectCoercible$2(it));
143
84
  };
144
85
 
145
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
146
- var documentAll = typeof document == 'object' && document.all;
147
-
148
- // `IsCallable` abstract operation
149
- // https://tc39.es/ecma262/#sec-iscallable
150
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
- return typeof argument == 'function' || argument === documentAll;
153
- } : function (argument) {
154
- return typeof argument == 'function';
86
+ var check = function (it) {
87
+ return it && it.Math === Math && it;
155
88
  };
156
89
 
157
- var isCallable$f = isCallable$g;
90
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
91
+ var global$b =
92
+ // eslint-disable-next-line es/no-global-this -- safe
93
+ check(typeof globalThis == 'object' && globalThis) ||
94
+ check(typeof window == 'object' && window) ||
95
+ // eslint-disable-next-line no-restricted-globals -- safe
96
+ check(typeof self == 'object' && self) ||
97
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
98
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
99
+ // eslint-disable-next-line no-new-func -- fallback
100
+ (function () { return this; })() || Function('return this')();
158
101
 
159
- var isObject$8 = function (it) {
160
- return typeof it == 'object' ? it !== null : isCallable$f(it);
161
- };
102
+ var sharedStore = {exports: {}};
162
103
 
163
104
  var global$a = global$b;
164
- var isCallable$e = isCallable$g;
165
105
 
166
- var aFunction = function (argument) {
167
- return isCallable$e(argument) ? argument : undefined;
106
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
107
+ var defineProperty$5 = Object.defineProperty;
108
+
109
+ var defineGlobalProperty$3 = function (key, value) {
110
+ try {
111
+ defineProperty$5(global$a, key, { value: value, configurable: true, writable: true });
112
+ } catch (error) {
113
+ global$a[key] = value;
114
+ } return value;
168
115
  };
169
116
 
170
- var getBuiltIn$4 = function (namespace, method) {
171
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
117
+ var globalThis$1 = global$b;
118
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
119
+
120
+ var SHARED = '__core-js_shared__';
121
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
122
+
123
+ (store$3.versions || (store$3.versions = [])).push({
124
+ version: '3.36.1',
125
+ mode: 'global',
126
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
127
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
128
+ source: 'https://github.com/zloirock/core-js'
129
+ });
130
+
131
+ var sharedStoreExports = sharedStore.exports;
132
+
133
+ var store$2 = sharedStoreExports;
134
+
135
+ var shared$3 = function (key, value) {
136
+ return store$2[key] || (store$2[key] = value || {});
137
+ };
138
+
139
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
140
+
141
+ var $Object$3 = Object;
142
+
143
+ // `ToObject` abstract operation
144
+ // https://tc39.es/ecma262/#sec-toobject
145
+ var toObject$3 = function (argument) {
146
+ return $Object$3(requireObjectCoercible$1(argument));
172
147
  };
173
148
 
174
149
  var uncurryThis$b = functionUncurryThis;
150
+ var toObject$2 = toObject$3;
151
+
152
+ var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
153
+
154
+ // `HasOwnProperty` abstract operation
155
+ // https://tc39.es/ecma262/#sec-hasownproperty
156
+ // eslint-disable-next-line es/no-object-hasown -- safe
157
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
158
+ return hasOwnProperty(toObject$2(it), key);
159
+ };
160
+
161
+ var uncurryThis$a = functionUncurryThis;
162
+
163
+ var id = 0;
164
+ var postfix = Math.random();
165
+ var toString$2 = uncurryThis$a(1.0.toString);
175
166
 
176
- var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
167
+ var uid$2 = function (key) {
168
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
169
+ };
177
170
 
178
171
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
179
172
 
@@ -207,13 +200,13 @@ var engineV8Version = version;
207
200
 
208
201
  /* eslint-disable es/no-symbol -- required for testing */
209
202
  var V8_VERSION = engineV8Version;
210
- var fails$8 = fails$c;
203
+ var fails$9 = fails$c;
211
204
  var global$8 = global$b;
212
205
 
213
206
  var $String$6 = global$8.String;
214
207
 
215
208
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
216
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
209
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
217
210
  var symbol = Symbol('symbol detection');
218
211
  // Chrome 38 Symbol has incorrect toString conversion
219
212
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -231,25 +224,144 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
231
224
  && !Symbol.sham
232
225
  && typeof Symbol.iterator == 'symbol';
233
226
 
227
+ var global$7 = global$b;
228
+ var shared$2 = shared$3;
229
+ var hasOwn$8 = hasOwnProperty_1;
230
+ var uid$1 = uid$2;
231
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
232
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
233
+
234
+ var Symbol$1 = global$7.Symbol;
235
+ var WellKnownSymbolsStore = shared$2('wks');
236
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
237
+
238
+ var wellKnownSymbol$8 = function (name) {
239
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
240
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$8(Symbol$1, name)
241
+ ? Symbol$1[name]
242
+ : createWellKnownSymbol('Symbol.' + name);
243
+ } return WellKnownSymbolsStore[name];
244
+ };
245
+
246
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
247
+ var documentAll = typeof document == 'object' && document.all;
248
+
249
+ // `IsCallable` abstract operation
250
+ // https://tc39.es/ecma262/#sec-iscallable
251
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
252
+ var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
253
+ return typeof argument == 'function' || argument === documentAll;
254
+ } : function (argument) {
255
+ return typeof argument == 'function';
256
+ };
257
+
258
+ var isCallable$f = isCallable$g;
259
+
260
+ var isObject$8 = function (it) {
261
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
262
+ };
263
+
264
+ var isObject$7 = isObject$8;
265
+
266
+ var $String$5 = String;
267
+ var $TypeError$5 = TypeError;
268
+
269
+ // `Assert: Type(argument) is Object`
270
+ var anObject$4 = function (argument) {
271
+ if (isObject$7(argument)) return argument;
272
+ throw new $TypeError$5($String$5(argument) + ' is not an object');
273
+ };
274
+
275
+ var objectDefineProperties = {};
276
+
277
+ var fails$8 = fails$c;
278
+
279
+ // Detect IE8's incomplete defineProperty implementation
280
+ var descriptors = !fails$8(function () {
281
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
282
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
283
+ });
284
+
285
+ var DESCRIPTORS$9 = descriptors;
286
+ var fails$7 = fails$c;
287
+
288
+ // V8 ~ Chrome 36-
289
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
290
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$7(function () {
291
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
292
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
293
+ value: 42,
294
+ writable: false
295
+ }).prototype !== 42;
296
+ });
297
+
298
+ var objectDefineProperty = {};
299
+
300
+ var global$6 = global$b;
301
+ var isObject$6 = isObject$8;
302
+
303
+ var document$1 = global$6.document;
304
+ // typeof document.createElement is 'object' in old IE
305
+ var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
306
+
307
+ var documentCreateElement$2 = function (it) {
308
+ return EXISTS$1 ? document$1.createElement(it) : {};
309
+ };
310
+
311
+ var DESCRIPTORS$8 = descriptors;
312
+ var fails$6 = fails$c;
313
+ var createElement = documentCreateElement$2;
314
+
315
+ // Thanks to IE8 for its funny defineProperty
316
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$6(function () {
317
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
318
+ return Object.defineProperty(createElement('div'), 'a', {
319
+ get: function () { return 7; }
320
+ }).a !== 7;
321
+ });
322
+
323
+ var NATIVE_BIND$1 = functionBindNative;
324
+
325
+ var call$7 = Function.prototype.call;
326
+
327
+ var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
328
+ return call$7.apply(call$7, arguments);
329
+ };
330
+
331
+ var global$5 = global$b;
332
+ var isCallable$e = isCallable$g;
333
+
334
+ var aFunction = function (argument) {
335
+ return isCallable$e(argument) ? argument : undefined;
336
+ };
337
+
338
+ var getBuiltIn$4 = function (namespace, method) {
339
+ return arguments.length < 2 ? aFunction(global$5[namespace]) : global$5[namespace] && global$5[namespace][method];
340
+ };
341
+
342
+ var uncurryThis$9 = functionUncurryThis;
343
+
344
+ var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
345
+
234
346
  var getBuiltIn$3 = getBuiltIn$4;
235
347
  var isCallable$d = isCallable$g;
236
348
  var isPrototypeOf = objectIsPrototypeOf;
237
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
349
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
238
350
 
239
- var $Object$3 = Object;
351
+ var $Object$2 = Object;
240
352
 
241
- var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
353
+ var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) {
242
354
  return typeof it == 'symbol';
243
355
  } : function (it) {
244
356
  var $Symbol = getBuiltIn$3('Symbol');
245
- return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
357
+ return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
246
358
  };
247
359
 
248
- var $String$5 = String;
360
+ var $String$4 = String;
249
361
 
250
362
  var tryToString$1 = function (argument) {
251
363
  try {
252
- return $String$5(argument);
364
+ return $String$4(argument);
253
365
  } catch (error) {
254
366
  return 'Object';
255
367
  }
@@ -258,12 +370,12 @@ var tryToString$1 = function (argument) {
258
370
  var isCallable$c = isCallable$g;
259
371
  var tryToString = tryToString$1;
260
372
 
261
- var $TypeError$5 = TypeError;
373
+ var $TypeError$4 = TypeError;
262
374
 
263
375
  // `Assert: IsCallable(argument) is true`
264
376
  var aCallable$2 = function (argument) {
265
377
  if (isCallable$c(argument)) return argument;
266
- throw new $TypeError$5(tryToString(argument) + ' is not a function');
378
+ throw new $TypeError$4(tryToString(argument) + ' is not a function');
267
379
  };
268
380
 
269
381
  var aCallable$1 = aCallable$2;
@@ -278,127 +390,41 @@ var getMethod$1 = function (V, P) {
278
390
 
279
391
  var call$6 = functionCall;
280
392
  var isCallable$b = isCallable$g;
281
- var isObject$7 = isObject$8;
393
+ var isObject$5 = isObject$8;
282
394
 
283
- var $TypeError$4 = TypeError;
395
+ var $TypeError$3 = TypeError;
284
396
 
285
397
  // `OrdinaryToPrimitive` abstract operation
286
398
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
287
399
  var ordinaryToPrimitive$1 = function (input, pref) {
288
400
  var fn, val;
289
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
290
- if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$6(fn, input))) return val;
291
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
292
- throw new $TypeError$4("Can't convert object to primitive value");
293
- };
294
-
295
- var sharedStore = {exports: {}};
296
-
297
- var global$7 = global$b;
298
-
299
- // eslint-disable-next-line es/no-object-defineproperty -- safe
300
- var defineProperty$5 = Object.defineProperty;
301
-
302
- var defineGlobalProperty$3 = function (key, value) {
303
- try {
304
- defineProperty$5(global$7, key, { value: value, configurable: true, writable: true });
305
- } catch (error) {
306
- global$7[key] = value;
307
- } return value;
308
- };
309
-
310
- var globalThis$1 = global$b;
311
- var defineGlobalProperty$2 = defineGlobalProperty$3;
312
-
313
- var SHARED = '__core-js_shared__';
314
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
315
-
316
- (store$3.versions || (store$3.versions = [])).push({
317
- version: '3.36.1',
318
- mode: 'global',
319
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
320
- license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
321
- source: 'https://github.com/zloirock/core-js'
322
- });
323
-
324
- var store$2 = sharedStore.exports;
325
-
326
- var shared$3 = function (key, value) {
327
- return store$2[key] || (store$2[key] = value || {});
328
- };
329
-
330
- var requireObjectCoercible$1 = requireObjectCoercible$3;
331
-
332
- var $Object$2 = Object;
333
-
334
- // `ToObject` abstract operation
335
- // https://tc39.es/ecma262/#sec-toobject
336
- var toObject$3 = function (argument) {
337
- return $Object$2(requireObjectCoercible$1(argument));
338
- };
339
-
340
- var uncurryThis$a = functionUncurryThis;
341
- var toObject$2 = toObject$3;
342
-
343
- var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
344
-
345
- // `HasOwnProperty` abstract operation
346
- // https://tc39.es/ecma262/#sec-hasownproperty
347
- // eslint-disable-next-line es/no-object-hasown -- safe
348
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
349
- return hasOwnProperty(toObject$2(it), key);
350
- };
351
-
352
- var uncurryThis$9 = functionUncurryThis;
353
-
354
- var id = 0;
355
- var postfix = Math.random();
356
- var toString$2 = uncurryThis$9(1.0.toString);
357
-
358
- var uid$2 = function (key) {
359
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
360
- };
361
-
362
- var global$6 = global$b;
363
- var shared$2 = shared$3;
364
- var hasOwn$8 = hasOwnProperty_1;
365
- var uid$1 = uid$2;
366
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
367
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
368
-
369
- var Symbol$1 = global$6.Symbol;
370
- var WellKnownSymbolsStore = shared$2('wks');
371
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
372
-
373
- var wellKnownSymbol$8 = function (name) {
374
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
375
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$8(Symbol$1, name)
376
- ? Symbol$1[name]
377
- : createWellKnownSymbol('Symbol.' + name);
378
- } return WellKnownSymbolsStore[name];
401
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$6(fn, input))) return val;
402
+ if (isCallable$b(fn = input.valueOf) && !isObject$5(val = call$6(fn, input))) return val;
403
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$6(fn, input))) return val;
404
+ throw new $TypeError$3("Can't convert object to primitive value");
379
405
  };
380
406
 
381
407
  var call$5 = functionCall;
382
- var isObject$6 = isObject$8;
408
+ var isObject$4 = isObject$8;
383
409
  var isSymbol$2 = isSymbol$3;
384
410
  var getMethod = getMethod$1;
385
411
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
386
412
  var wellKnownSymbol$7 = wellKnownSymbol$8;
387
413
 
388
- var $TypeError$3 = TypeError;
414
+ var $TypeError$2 = TypeError;
389
415
  var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
390
416
 
391
417
  // `ToPrimitive` abstract operation
392
418
  // https://tc39.es/ecma262/#sec-toprimitive
393
419
  var toPrimitive$1 = function (input, pref) {
394
- if (!isObject$6(input) || isSymbol$2(input)) return input;
420
+ if (!isObject$4(input) || isSymbol$2(input)) return input;
395
421
  var exoticToPrim = getMethod(input, TO_PRIMITIVE);
396
422
  var result;
397
423
  if (exoticToPrim) {
398
424
  if (pref === undefined) pref = 'default';
399
425
  result = call$5(exoticToPrim, input, pref);
400
- if (!isObject$6(result) || isSymbol$2(result)) return result;
401
- throw new $TypeError$3("Can't convert object to primitive value");
426
+ if (!isObject$4(result) || isSymbol$2(result)) return result;
427
+ throw new $TypeError$2("Can't convert object to primitive value");
402
428
  }
403
429
  if (pref === undefined) pref = 'number';
404
430
  return ordinaryToPrimitive(input, pref);
@@ -414,101 +440,29 @@ var toPropertyKey$2 = function (argument) {
414
440
  return isSymbol$1(key) ? key : key + '';
415
441
  };
416
442
 
417
- var global$5 = global$b;
418
- var isObject$5 = isObject$8;
419
-
420
- var document$1 = global$5.document;
421
- // typeof document.createElement is 'object' in old IE
422
- var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
423
-
424
- var documentCreateElement$2 = function (it) {
425
- return EXISTS$1 ? document$1.createElement(it) : {};
426
- };
427
-
428
- var DESCRIPTORS$9 = descriptors;
429
- var fails$7 = fails$c;
430
- var createElement = documentCreateElement$2;
431
-
432
- // Thanks to IE8 for its funny defineProperty
433
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
434
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
435
- return Object.defineProperty(createElement('div'), 'a', {
436
- get: function () { return 7; }
437
- }).a !== 7;
438
- });
439
-
440
- var DESCRIPTORS$8 = descriptors;
441
- var call$4 = functionCall;
442
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
443
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
444
- var toIndexedObject$4 = toIndexedObject$5;
445
- var toPropertyKey$1 = toPropertyKey$2;
446
- var hasOwn$7 = hasOwnProperty_1;
447
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
448
-
449
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
450
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
451
-
452
- // `Object.getOwnPropertyDescriptor` method
453
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
454
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
455
- O = toIndexedObject$4(O);
456
- P = toPropertyKey$1(P);
457
- if (IE8_DOM_DEFINE$1) try {
458
- return $getOwnPropertyDescriptor$1(O, P);
459
- } catch (error) { /* empty */ }
460
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
461
- };
462
-
463
- var objectDefineProperty = {};
464
-
465
443
  var DESCRIPTORS$7 = descriptors;
466
- var fails$6 = fails$c;
467
-
468
- // V8 ~ Chrome 36-
469
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
470
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
471
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
472
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
473
- value: 42,
474
- writable: false
475
- }).prototype !== 42;
476
- });
477
-
478
- var isObject$4 = isObject$8;
479
-
480
- var $String$4 = String;
481
- var $TypeError$2 = TypeError;
482
-
483
- // `Assert: Type(argument) is Object`
484
- var anObject$4 = function (argument) {
485
- if (isObject$4(argument)) return argument;
486
- throw new $TypeError$2($String$4(argument) + ' is not an object');
487
- };
488
-
489
- var DESCRIPTORS$6 = descriptors;
490
- var IE8_DOM_DEFINE = ie8DomDefine;
444
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
491
445
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
492
446
  var anObject$3 = anObject$4;
493
- var toPropertyKey = toPropertyKey$2;
447
+ var toPropertyKey$1 = toPropertyKey$2;
494
448
 
495
449
  var $TypeError$1 = TypeError;
496
450
  // eslint-disable-next-line es/no-object-defineproperty -- safe
497
451
  var $defineProperty = Object.defineProperty;
498
452
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
499
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
453
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
500
454
  var ENUMERABLE = 'enumerable';
501
455
  var CONFIGURABLE$1 = 'configurable';
502
456
  var WRITABLE = 'writable';
503
457
 
504
458
  // `Object.defineProperty` method
505
459
  // https://tc39.es/ecma262/#sec-object.defineproperty
506
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
460
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
507
461
  anObject$3(O);
508
- P = toPropertyKey(P);
462
+ P = toPropertyKey$1(P);
509
463
  anObject$3(Attributes);
510
464
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
511
- var current = $getOwnPropertyDescriptor(O, P);
465
+ var current = $getOwnPropertyDescriptor$1(O, P);
512
466
  if (current && current[WRITABLE]) {
513
467
  O[P] = Attributes.value;
514
468
  Attributes = {
@@ -520,9 +474,9 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
520
474
  } return $defineProperty(O, P, Attributes);
521
475
  } : $defineProperty : function defineProperty(O, P, Attributes) {
522
476
  anObject$3(O);
523
- P = toPropertyKey(P);
477
+ P = toPropertyKey$1(P);
524
478
  anObject$3(Attributes);
525
- if (IE8_DOM_DEFINE) try {
479
+ if (IE8_DOM_DEFINE$1) try {
526
480
  return $defineProperty(O, P, Attributes);
527
481
  } catch (error) { /* empty */ }
528
482
  if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
@@ -530,78 +484,313 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
530
484
  return O;
531
485
  };
532
486
 
533
- var DESCRIPTORS$5 = descriptors;
534
- var definePropertyModule$3 = objectDefineProperty;
535
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
487
+ var ceil = Math.ceil;
488
+ var floor = Math.floor;
536
489
 
537
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
538
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
539
- } : function (object, key, value) {
540
- object[key] = value;
541
- return object;
490
+ // `Math.trunc` method
491
+ // https://tc39.es/ecma262/#sec-math.trunc
492
+ // eslint-disable-next-line es/no-math-trunc -- safe
493
+ var mathTrunc = Math.trunc || function trunc(x) {
494
+ var n = +x;
495
+ return (n > 0 ? floor : ceil)(n);
542
496
  };
543
497
 
544
- var makeBuiltIn$2 = {exports: {}};
545
-
546
- var DESCRIPTORS$4 = descriptors;
547
- var hasOwn$6 = hasOwnProperty_1;
548
-
549
- var FunctionPrototype$1 = Function.prototype;
550
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
551
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
552
-
553
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
554
- // additional protection from minified / mangled / dropped function names
555
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
556
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
498
+ var trunc = mathTrunc;
557
499
 
558
- var functionName = {
559
- EXISTS: EXISTS,
560
- PROPER: PROPER,
561
- CONFIGURABLE: CONFIGURABLE
500
+ // `ToIntegerOrInfinity` abstract operation
501
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
502
+ var toIntegerOrInfinity$2 = function (argument) {
503
+ var number = +argument;
504
+ // eslint-disable-next-line no-self-compare -- NaN check
505
+ return number !== number || number === 0 ? 0 : trunc(number);
562
506
  };
563
507
 
564
- var uncurryThis$8 = functionUncurryThis;
565
- var isCallable$a = isCallable$g;
566
- var store$1 = sharedStore.exports;
508
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
567
509
 
568
- var functionToString = uncurryThis$8(Function.toString);
510
+ var max = Math.max;
511
+ var min$1 = Math.min;
569
512
 
570
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
571
- if (!isCallable$a(store$1.inspectSource)) {
572
- store$1.inspectSource = function (it) {
573
- return functionToString(it);
574
- };
575
- }
513
+ // Helper for a popular repeating case of the spec:
514
+ // Let integer be ? ToInteger(index).
515
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
516
+ var toAbsoluteIndex$1 = function (index, length) {
517
+ var integer = toIntegerOrInfinity$1(index);
518
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
519
+ };
576
520
 
577
- var inspectSource$1 = store$1.inspectSource;
521
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
578
522
 
579
- var global$4 = global$b;
580
- var isCallable$9 = isCallable$g;
523
+ var min = Math.min;
581
524
 
582
- var WeakMap$1 = global$4.WeakMap;
525
+ // `ToLength` abstract operation
526
+ // https://tc39.es/ecma262/#sec-tolength
527
+ var toLength$1 = function (argument) {
528
+ var len = toIntegerOrInfinity(argument);
529
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
530
+ };
583
531
 
584
- var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
532
+ var toLength = toLength$1;
585
533
 
586
- var shared$1 = shared$3;
587
- var uid = uid$2;
534
+ // `LengthOfArrayLike` abstract operation
535
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
536
+ var lengthOfArrayLike$1 = function (obj) {
537
+ return toLength(obj.length);
538
+ };
588
539
 
589
- var keys = shared$1('keys');
540
+ var toIndexedObject$4 = toIndexedObject$5;
541
+ var toAbsoluteIndex = toAbsoluteIndex$1;
542
+ var lengthOfArrayLike = lengthOfArrayLike$1;
590
543
 
591
- var sharedKey$3 = function (key) {
592
- return keys[key] || (keys[key] = uid(key));
544
+ // `Array.prototype.{ indexOf, includes }` methods implementation
545
+ var createMethod = function (IS_INCLUDES) {
546
+ return function ($this, el, fromIndex) {
547
+ var O = toIndexedObject$4($this);
548
+ var length = lengthOfArrayLike(O);
549
+ if (length === 0) return !IS_INCLUDES && -1;
550
+ var index = toAbsoluteIndex(fromIndex, length);
551
+ var value;
552
+ // Array#includes uses SameValueZero equality algorithm
553
+ // eslint-disable-next-line no-self-compare -- NaN check
554
+ if (IS_INCLUDES && el !== el) while (length > index) {
555
+ value = O[index++];
556
+ // eslint-disable-next-line no-self-compare -- NaN check
557
+ if (value !== value) return true;
558
+ // Array#indexOf ignores holes, Array#includes - not
559
+ } else for (;length > index; index++) {
560
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
561
+ } return !IS_INCLUDES && -1;
562
+ };
563
+ };
564
+
565
+ var arrayIncludes = {
566
+ // `Array.prototype.includes` method
567
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
568
+ includes: createMethod(true),
569
+ // `Array.prototype.indexOf` method
570
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
571
+ indexOf: createMethod(false)
572
+ };
573
+
574
+ var hiddenKeys$4 = {};
575
+
576
+ var uncurryThis$8 = functionUncurryThis;
577
+ var hasOwn$7 = hasOwnProperty_1;
578
+ var toIndexedObject$3 = toIndexedObject$5;
579
+ var indexOf = arrayIncludes.indexOf;
580
+ var hiddenKeys$3 = hiddenKeys$4;
581
+
582
+ var push$1 = uncurryThis$8([].push);
583
+
584
+ var objectKeysInternal = function (object, names) {
585
+ var O = toIndexedObject$3(object);
586
+ var i = 0;
587
+ var result = [];
588
+ var key;
589
+ for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push$1(result, key);
590
+ // Don't enum bug & hidden keys
591
+ while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
592
+ ~indexOf(result, key) || push$1(result, key);
593
+ }
594
+ return result;
595
+ };
596
+
597
+ // IE8- don't enum bug keys
598
+ var enumBugKeys$3 = [
599
+ 'constructor',
600
+ 'hasOwnProperty',
601
+ 'isPrototypeOf',
602
+ 'propertyIsEnumerable',
603
+ 'toLocaleString',
604
+ 'toString',
605
+ 'valueOf'
606
+ ];
607
+
608
+ var internalObjectKeys$1 = objectKeysInternal;
609
+ var enumBugKeys$2 = enumBugKeys$3;
610
+
611
+ // `Object.keys` method
612
+ // https://tc39.es/ecma262/#sec-object.keys
613
+ // eslint-disable-next-line es/no-object-keys -- safe
614
+ var objectKeys$2 = Object.keys || function keys(O) {
615
+ return internalObjectKeys$1(O, enumBugKeys$2);
616
+ };
617
+
618
+ var DESCRIPTORS$6 = descriptors;
619
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
620
+ var definePropertyModule$3 = objectDefineProperty;
621
+ var anObject$2 = anObject$4;
622
+ var toIndexedObject$2 = toIndexedObject$5;
623
+ var objectKeys$1 = objectKeys$2;
624
+
625
+ // `Object.defineProperties` method
626
+ // https://tc39.es/ecma262/#sec-object.defineproperties
627
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
628
+ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
629
+ anObject$2(O);
630
+ var props = toIndexedObject$2(Properties);
631
+ var keys = objectKeys$1(Properties);
632
+ var length = keys.length;
633
+ var index = 0;
634
+ var key;
635
+ while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
636
+ return O;
637
+ };
638
+
639
+ var getBuiltIn$2 = getBuiltIn$4;
640
+
641
+ var html$1 = getBuiltIn$2('document', 'documentElement');
642
+
643
+ var shared$1 = shared$3;
644
+ var uid = uid$2;
645
+
646
+ var keys = shared$1('keys');
647
+
648
+ var sharedKey$3 = function (key) {
649
+ return keys[key] || (keys[key] = uid(key));
650
+ };
651
+
652
+ /* global ActiveXObject -- old IE, WSH */
653
+ var anObject$1 = anObject$4;
654
+ var definePropertiesModule = objectDefineProperties;
655
+ var enumBugKeys$1 = enumBugKeys$3;
656
+ var hiddenKeys$2 = hiddenKeys$4;
657
+ var html = html$1;
658
+ var documentCreateElement$1 = documentCreateElement$2;
659
+ var sharedKey$2 = sharedKey$3;
660
+
661
+ var GT = '>';
662
+ var LT = '<';
663
+ var PROTOTYPE = 'prototype';
664
+ var SCRIPT = 'script';
665
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
666
+
667
+ var EmptyConstructor = function () { /* empty */ };
668
+
669
+ var scriptTag = function (content) {
670
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
671
+ };
672
+
673
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
674
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
675
+ activeXDocument.write(scriptTag(''));
676
+ activeXDocument.close();
677
+ var temp = activeXDocument.parentWindow.Object;
678
+ activeXDocument = null; // avoid memory leak
679
+ return temp;
680
+ };
681
+
682
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
683
+ var NullProtoObjectViaIFrame = function () {
684
+ // Thrash, waste and sodomy: IE GC bug
685
+ var iframe = documentCreateElement$1('iframe');
686
+ var JS = 'java' + SCRIPT + ':';
687
+ var iframeDocument;
688
+ iframe.style.display = 'none';
689
+ html.appendChild(iframe);
690
+ // https://github.com/zloirock/core-js/issues/475
691
+ iframe.src = String(JS);
692
+ iframeDocument = iframe.contentWindow.document;
693
+ iframeDocument.open();
694
+ iframeDocument.write(scriptTag('document.F=Object'));
695
+ iframeDocument.close();
696
+ return iframeDocument.F;
697
+ };
698
+
699
+ // Check for document.domain and active x support
700
+ // No need to use active x approach when document.domain is not set
701
+ // see https://github.com/es-shims/es5-shim/issues/150
702
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
703
+ // avoid IE GC bug
704
+ var activeXDocument;
705
+ var NullProtoObject = function () {
706
+ try {
707
+ activeXDocument = new ActiveXObject('htmlfile');
708
+ } catch (error) { /* ignore */ }
709
+ NullProtoObject = typeof document != 'undefined'
710
+ ? document.domain && activeXDocument
711
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
712
+ : NullProtoObjectViaIFrame()
713
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
714
+ var length = enumBugKeys$1.length;
715
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
716
+ return NullProtoObject();
717
+ };
718
+
719
+ hiddenKeys$2[IE_PROTO$1] = true;
720
+
721
+ // `Object.create` method
722
+ // https://tc39.es/ecma262/#sec-object.create
723
+ // eslint-disable-next-line es/no-object-create -- safe
724
+ var objectCreate = Object.create || function create(O, Properties) {
725
+ var result;
726
+ if (O !== null) {
727
+ EmptyConstructor[PROTOTYPE] = anObject$1(O);
728
+ result = new EmptyConstructor();
729
+ EmptyConstructor[PROTOTYPE] = null;
730
+ // add "__proto__" for Object.getPrototypeOf polyfill
731
+ result[IE_PROTO$1] = O;
732
+ } else result = NullProtoObject();
733
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
734
+ };
735
+
736
+ var wellKnownSymbol$6 = wellKnownSymbol$8;
737
+ var create$1 = objectCreate;
738
+ var defineProperty$4 = objectDefineProperty.f;
739
+
740
+ var UNSCOPABLES = wellKnownSymbol$6('unscopables');
741
+ var ArrayPrototype = Array.prototype;
742
+
743
+ // Array.prototype[@@unscopables]
744
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
745
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
746
+ defineProperty$4(ArrayPrototype, UNSCOPABLES, {
747
+ configurable: true,
748
+ value: create$1(null)
749
+ });
750
+ }
751
+
752
+ // add a key to Array.prototype[@@unscopables]
753
+ var addToUnscopables$1 = function (key) {
754
+ ArrayPrototype[UNSCOPABLES][key] = true;
755
+ };
756
+
757
+ var iterators = {};
758
+
759
+ var global$4 = global$b;
760
+ var isCallable$a = isCallable$g;
761
+
762
+ var WeakMap$1 = global$4.WeakMap;
763
+
764
+ var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
765
+
766
+ var createPropertyDescriptor$3 = function (bitmap, value) {
767
+ return {
768
+ enumerable: !(bitmap & 1),
769
+ configurable: !(bitmap & 2),
770
+ writable: !(bitmap & 4),
771
+ value: value
772
+ };
773
+ };
774
+
775
+ var DESCRIPTORS$5 = descriptors;
776
+ var definePropertyModule$2 = objectDefineProperty;
777
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
778
+
779
+ var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
780
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
781
+ } : function (object, key, value) {
782
+ object[key] = value;
783
+ return object;
593
784
  };
594
785
 
595
- var hiddenKeys$4 = {};
596
-
597
786
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
598
787
  var global$3 = global$b;
599
788
  var isObject$3 = isObject$8;
600
789
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
601
- var hasOwn$5 = hasOwnProperty_1;
602
- var shared = sharedStore.exports;
603
- var sharedKey$2 = sharedKey$3;
604
- var hiddenKeys$3 = hiddenKeys$4;
790
+ var hasOwn$6 = hasOwnProperty_1;
791
+ var shared = sharedStoreExports;
792
+ var sharedKey$1 = sharedKey$3;
793
+ var hiddenKeys$1 = hiddenKeys$4;
605
794
 
606
795
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
607
796
  var TypeError$1 = global$3.TypeError;
@@ -622,38 +811,38 @@ var getterFor = function (TYPE) {
622
811
  };
623
812
 
624
813
  if (NATIVE_WEAK_MAP || shared.state) {
625
- var store = shared.state || (shared.state = new WeakMap());
814
+ var store$1 = shared.state || (shared.state = new WeakMap());
626
815
  /* eslint-disable no-self-assign -- prototype methods protection */
627
- store.get = store.get;
628
- store.has = store.has;
629
- store.set = store.set;
816
+ store$1.get = store$1.get;
817
+ store$1.has = store$1.has;
818
+ store$1.set = store$1.set;
630
819
  /* eslint-enable no-self-assign -- prototype methods protection */
631
820
  set = function (it, metadata) {
632
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
821
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
633
822
  metadata.facade = it;
634
- store.set(it, metadata);
823
+ store$1.set(it, metadata);
635
824
  return metadata;
636
825
  };
637
826
  get = function (it) {
638
- return store.get(it) || {};
827
+ return store$1.get(it) || {};
639
828
  };
640
829
  has = function (it) {
641
- return store.has(it);
830
+ return store$1.has(it);
642
831
  };
643
832
  } else {
644
- var STATE = sharedKey$2('state');
645
- hiddenKeys$3[STATE] = true;
833
+ var STATE = sharedKey$1('state');
834
+ hiddenKeys$1[STATE] = true;
646
835
  set = function (it, metadata) {
647
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
836
+ if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
648
837
  metadata.facade = it;
649
838
  createNonEnumerableProperty$3(it, STATE, metadata);
650
839
  return metadata;
651
840
  };
652
841
  get = function (it) {
653
- return hasOwn$5(it, STATE) ? it[STATE] : {};
842
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
654
843
  };
655
844
  has = function (it) {
656
- return hasOwn$5(it, STATE);
845
+ return hasOwn$6(it, STATE);
657
846
  };
658
847
  }
659
848
 
@@ -665,64 +854,142 @@ var internalState = {
665
854
  getterFor: getterFor
666
855
  };
667
856
 
668
- var uncurryThis$7 = functionUncurryThis;
669
- var fails$5 = fails$c;
670
- var isCallable$8 = isCallable$g;
671
- var hasOwn$4 = hasOwnProperty_1;
672
- var DESCRIPTORS$3 = descriptors;
673
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
674
- var inspectSource = inspectSource$1;
675
- var InternalStateModule$1 = internalState;
676
-
677
- var enforceInternalState = InternalStateModule$1.enforce;
678
- var getInternalState$1 = InternalStateModule$1.get;
679
- var $String$3 = String;
680
- // eslint-disable-next-line es/no-object-defineproperty -- safe
681
- var defineProperty$4 = Object.defineProperty;
682
- var stringSlice = uncurryThis$7(''.slice);
683
- var replace$1 = uncurryThis$7(''.replace);
684
- var join = uncurryThis$7([].join);
857
+ var objectGetOwnPropertyDescriptor = {};
685
858
 
686
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
687
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
688
- });
859
+ var objectPropertyIsEnumerable = {};
689
860
 
690
- var TEMPLATE = String(String).split('String');
861
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
862
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
863
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
691
864
 
692
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
693
- if (stringSlice($String$3(name), 0, 7) === 'Symbol(') {
694
- name = '[' + replace$1($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
695
- }
696
- if (options && options.getter) name = 'get ' + name;
697
- if (options && options.setter) name = 'set ' + name;
698
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
699
- if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
700
- else value.name = name;
701
- }
702
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
703
- defineProperty$4(value, 'length', { value: options.arity });
704
- }
705
- try {
706
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
707
- if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
708
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
709
- } else if (value.prototype) value.prototype = undefined;
710
- } catch (error) { /* empty */ }
711
- var state = enforceInternalState(value);
712
- if (!hasOwn$4(state, 'source')) {
713
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
714
- } return value;
715
- };
865
+ // Nashorn ~ JDK8 bug
866
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
716
867
 
717
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
718
- // eslint-disable-next-line no-extend-native -- required
719
- Function.prototype.toString = makeBuiltIn$1(function toString() {
720
- return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
721
- }, 'toString');
868
+ // `Object.prototype.propertyIsEnumerable` method implementation
869
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
870
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
871
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
872
+ return !!descriptor && descriptor.enumerable;
873
+ } : $propertyIsEnumerable;
874
+
875
+ var DESCRIPTORS$4 = descriptors;
876
+ var call$4 = functionCall;
877
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
878
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
879
+ var toIndexedObject$1 = toIndexedObject$5;
880
+ var toPropertyKey = toPropertyKey$2;
881
+ var hasOwn$5 = hasOwnProperty_1;
882
+ var IE8_DOM_DEFINE = ie8DomDefine;
883
+
884
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
885
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
886
+
887
+ // `Object.getOwnPropertyDescriptor` method
888
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
889
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
890
+ O = toIndexedObject$1(O);
891
+ P = toPropertyKey(P);
892
+ if (IE8_DOM_DEFINE) try {
893
+ return $getOwnPropertyDescriptor(O, P);
894
+ } catch (error) { /* empty */ }
895
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
896
+ };
897
+
898
+ var makeBuiltIn$2 = {exports: {}};
899
+
900
+ var DESCRIPTORS$3 = descriptors;
901
+ var hasOwn$4 = hasOwnProperty_1;
902
+
903
+ var FunctionPrototype$1 = Function.prototype;
904
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
905
+ var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
906
+
907
+ var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
908
+ // additional protection from minified / mangled / dropped function names
909
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
910
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
911
+
912
+ var functionName = {
913
+ EXISTS: EXISTS,
914
+ PROPER: PROPER,
915
+ CONFIGURABLE: CONFIGURABLE
916
+ };
917
+
918
+ var uncurryThis$7 = functionUncurryThis;
919
+ var isCallable$9 = isCallable$g;
920
+ var store = sharedStoreExports;
921
+
922
+ var functionToString = uncurryThis$7(Function.toString);
923
+
924
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
925
+ if (!isCallable$9(store.inspectSource)) {
926
+ store.inspectSource = function (it) {
927
+ return functionToString(it);
928
+ };
929
+ }
930
+
931
+ var inspectSource$1 = store.inspectSource;
932
+
933
+ var uncurryThis$6 = functionUncurryThis;
934
+ var fails$5 = fails$c;
935
+ var isCallable$8 = isCallable$g;
936
+ var hasOwn$3 = hasOwnProperty_1;
937
+ var DESCRIPTORS$2 = descriptors;
938
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
939
+ var inspectSource = inspectSource$1;
940
+ var InternalStateModule$1 = internalState;
941
+
942
+ var enforceInternalState = InternalStateModule$1.enforce;
943
+ var getInternalState$1 = InternalStateModule$1.get;
944
+ var $String$3 = String;
945
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
946
+ var defineProperty$3 = Object.defineProperty;
947
+ var stringSlice = uncurryThis$6(''.slice);
948
+ var replace$1 = uncurryThis$6(''.replace);
949
+ var join = uncurryThis$6([].join);
950
+
951
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$5(function () {
952
+ return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
953
+ });
954
+
955
+ var TEMPLATE = String(String).split('String');
956
+
957
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
958
+ if (stringSlice($String$3(name), 0, 7) === 'Symbol(') {
959
+ name = '[' + replace$1($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
960
+ }
961
+ if (options && options.getter) name = 'get ' + name;
962
+ if (options && options.setter) name = 'set ' + name;
963
+ if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
964
+ if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
965
+ else value.name = name;
966
+ }
967
+ if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
968
+ defineProperty$3(value, 'length', { value: options.arity });
969
+ }
970
+ try {
971
+ if (options && hasOwn$3(options, 'constructor') && options.constructor) {
972
+ if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
973
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
974
+ } else if (value.prototype) value.prototype = undefined;
975
+ } catch (error) { /* empty */ }
976
+ var state = enforceInternalState(value);
977
+ if (!hasOwn$3(state, 'source')) {
978
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
979
+ } return value;
980
+ };
981
+
982
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
983
+ // eslint-disable-next-line no-extend-native -- required
984
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
985
+ return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
986
+ }, 'toString');
987
+
988
+ var makeBuiltInExports = makeBuiltIn$2.exports;
722
989
 
723
990
  var isCallable$7 = isCallable$g;
724
- var definePropertyModule$2 = objectDefineProperty;
725
- var makeBuiltIn = makeBuiltIn$2.exports;
991
+ var definePropertyModule$1 = objectDefineProperty;
992
+ var makeBuiltIn = makeBuiltInExports;
726
993
  var defineGlobalProperty$1 = defineGlobalProperty$3;
727
994
 
728
995
  var defineBuiltIn$3 = function (O, key, value, options) {
@@ -739,7 +1006,7 @@ var defineBuiltIn$3 = function (O, key, value, options) {
739
1006
  else if (O[key]) simple = true;
740
1007
  } catch (error) { /* empty */ }
741
1008
  if (simple) O[key] = value;
742
- else definePropertyModule$2.f(O, key, {
1009
+ else definePropertyModule$1.f(O, key, {
743
1010
  value: value,
744
1011
  enumerable: false,
745
1012
  configurable: !options.nonConfigurable,
@@ -750,135 +1017,16 @@ var defineBuiltIn$3 = function (O, key, value, options) {
750
1017
 
751
1018
  var objectGetOwnPropertyNames = {};
752
1019
 
753
- var ceil = Math.ceil;
754
- var floor = Math.floor;
755
-
756
- // `Math.trunc` method
757
- // https://tc39.es/ecma262/#sec-math.trunc
758
- // eslint-disable-next-line es/no-math-trunc -- safe
759
- var mathTrunc = Math.trunc || function trunc(x) {
760
- var n = +x;
761
- return (n > 0 ? floor : ceil)(n);
762
- };
763
-
764
- var trunc = mathTrunc;
765
-
766
- // `ToIntegerOrInfinity` abstract operation
767
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
768
- var toIntegerOrInfinity$2 = function (argument) {
769
- var number = +argument;
770
- // eslint-disable-next-line no-self-compare -- NaN check
771
- return number !== number || number === 0 ? 0 : trunc(number);
772
- };
773
-
774
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
775
-
776
- var max = Math.max;
777
- var min$1 = Math.min;
778
-
779
- // Helper for a popular repeating case of the spec:
780
- // Let integer be ? ToInteger(index).
781
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
782
- var toAbsoluteIndex$1 = function (index, length) {
783
- var integer = toIntegerOrInfinity$1(index);
784
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
785
- };
786
-
787
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
788
-
789
- var min = Math.min;
790
-
791
- // `ToLength` abstract operation
792
- // https://tc39.es/ecma262/#sec-tolength
793
- var toLength$1 = function (argument) {
794
- var len = toIntegerOrInfinity(argument);
795
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
796
- };
797
-
798
- var toLength = toLength$1;
799
-
800
- // `LengthOfArrayLike` abstract operation
801
- // https://tc39.es/ecma262/#sec-lengthofarraylike
802
- var lengthOfArrayLike$1 = function (obj) {
803
- return toLength(obj.length);
804
- };
805
-
806
- var toIndexedObject$3 = toIndexedObject$5;
807
- var toAbsoluteIndex = toAbsoluteIndex$1;
808
- var lengthOfArrayLike = lengthOfArrayLike$1;
809
-
810
- // `Array.prototype.{ indexOf, includes }` methods implementation
811
- var createMethod = function (IS_INCLUDES) {
812
- return function ($this, el, fromIndex) {
813
- var O = toIndexedObject$3($this);
814
- var length = lengthOfArrayLike(O);
815
- if (length === 0) return !IS_INCLUDES && -1;
816
- var index = toAbsoluteIndex(fromIndex, length);
817
- var value;
818
- // Array#includes uses SameValueZero equality algorithm
819
- // eslint-disable-next-line no-self-compare -- NaN check
820
- if (IS_INCLUDES && el !== el) while (length > index) {
821
- value = O[index++];
822
- // eslint-disable-next-line no-self-compare -- NaN check
823
- if (value !== value) return true;
824
- // Array#indexOf ignores holes, Array#includes - not
825
- } else for (;length > index; index++) {
826
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
827
- } return !IS_INCLUDES && -1;
828
- };
829
- };
830
-
831
- var arrayIncludes = {
832
- // `Array.prototype.includes` method
833
- // https://tc39.es/ecma262/#sec-array.prototype.includes
834
- includes: createMethod(true),
835
- // `Array.prototype.indexOf` method
836
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
837
- indexOf: createMethod(false)
838
- };
839
-
840
- var uncurryThis$6 = functionUncurryThis;
841
- var hasOwn$3 = hasOwnProperty_1;
842
- var toIndexedObject$2 = toIndexedObject$5;
843
- var indexOf = arrayIncludes.indexOf;
844
- var hiddenKeys$2 = hiddenKeys$4;
845
-
846
- var push$1 = uncurryThis$6([].push);
847
-
848
- var objectKeysInternal = function (object, names) {
849
- var O = toIndexedObject$2(object);
850
- var i = 0;
851
- var result = [];
852
- var key;
853
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
854
- // Don't enum bug & hidden keys
855
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
856
- ~indexOf(result, key) || push$1(result, key);
857
- }
858
- return result;
859
- };
860
-
861
- // IE8- don't enum bug keys
862
- var enumBugKeys$3 = [
863
- 'constructor',
864
- 'hasOwnProperty',
865
- 'isPrototypeOf',
866
- 'propertyIsEnumerable',
867
- 'toLocaleString',
868
- 'toString',
869
- 'valueOf'
870
- ];
871
-
872
- var internalObjectKeys$1 = objectKeysInternal;
873
- var enumBugKeys$2 = enumBugKeys$3;
1020
+ var internalObjectKeys = objectKeysInternal;
1021
+ var enumBugKeys = enumBugKeys$3;
874
1022
 
875
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1023
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
876
1024
 
877
1025
  // `Object.getOwnPropertyNames` method
878
1026
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
879
1027
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
880
1028
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
881
- return internalObjectKeys$1(O, hiddenKeys$1);
1029
+ return internalObjectKeys(O, hiddenKeys);
882
1030
  };
883
1031
 
884
1032
  var objectGetOwnPropertySymbols = {};
@@ -886,330 +1034,119 @@ var objectGetOwnPropertySymbols = {};
886
1034
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
887
1035
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
888
1036
 
889
- var getBuiltIn$2 = getBuiltIn$4;
1037
+ var getBuiltIn$1 = getBuiltIn$4;
890
1038
  var uncurryThis$5 = functionUncurryThis;
891
1039
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
892
1040
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
893
- var anObject$2 = anObject$4;
894
-
895
- var concat$1 = uncurryThis$5([].concat);
896
-
897
- // all object keys, includes non-enumerable and symbols
898
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
899
- var keys = getOwnPropertyNamesModule.f(anObject$2(it));
900
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
901
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
902
- };
903
-
904
- var hasOwn$2 = hasOwnProperty_1;
905
- var ownKeys = ownKeys$1;
906
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
907
- var definePropertyModule$1 = objectDefineProperty;
908
-
909
- var copyConstructorProperties$1 = function (target, source, exceptions) {
910
- var keys = ownKeys(source);
911
- var defineProperty = definePropertyModule$1.f;
912
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
913
- for (var i = 0; i < keys.length; i++) {
914
- var key = keys[i];
915
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
916
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
917
- }
918
- }
919
- };
920
-
921
- var fails$4 = fails$c;
922
- var isCallable$6 = isCallable$g;
923
-
924
- var replacement = /#|\.prototype\./;
925
-
926
- var isForced$1 = function (feature, detection) {
927
- var value = data[normalize(feature)];
928
- return value === POLYFILL ? true
929
- : value === NATIVE ? false
930
- : isCallable$6(detection) ? fails$4(detection)
931
- : !!detection;
932
- };
933
-
934
- var normalize = isForced$1.normalize = function (string) {
935
- return String(string).replace(replacement, '.').toLowerCase();
936
- };
937
-
938
- var data = isForced$1.data = {};
939
- var NATIVE = isForced$1.NATIVE = 'N';
940
- var POLYFILL = isForced$1.POLYFILL = 'P';
941
-
942
- var isForced_1 = isForced$1;
943
-
944
- var global$2 = global$b;
945
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
946
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
947
- var defineBuiltIn$2 = defineBuiltIn$3;
948
- var defineGlobalProperty = defineGlobalProperty$3;
949
- var copyConstructorProperties = copyConstructorProperties$1;
950
- var isForced = isForced_1;
951
-
952
- /*
953
- options.target - name of the target object
954
- options.global - target is the global object
955
- options.stat - export as static methods of target
956
- options.proto - export as prototype methods of target
957
- options.real - real prototype method for the `pure` version
958
- options.forced - export even if the native feature is available
959
- options.bind - bind methods to the target, required for the `pure` version
960
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
961
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
962
- options.sham - add a flag to not completely full polyfills
963
- options.enumerable - export as enumerable property
964
- options.dontCallGetSet - prevent calling a getter on target
965
- options.name - the .name of the function if it does not match the key
966
- */
967
- var _export = function (options, source) {
968
- var TARGET = options.target;
969
- var GLOBAL = options.global;
970
- var STATIC = options.stat;
971
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
972
- if (GLOBAL) {
973
- target = global$2;
974
- } else if (STATIC) {
975
- target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
976
- } else {
977
- target = global$2[TARGET] && global$2[TARGET].prototype;
978
- }
979
- if (target) for (key in source) {
980
- sourceProperty = source[key];
981
- if (options.dontCallGetSet) {
982
- descriptor = getOwnPropertyDescriptor(target, key);
983
- targetProperty = descriptor && descriptor.value;
984
- } else targetProperty = target[key];
985
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
986
- // contained in target
987
- if (!FORCED && targetProperty !== undefined) {
988
- if (typeof sourceProperty == typeof targetProperty) continue;
989
- copyConstructorProperties(sourceProperty, targetProperty);
990
- }
991
- // add a flag to not completely full polyfills
992
- if (options.sham || (targetProperty && targetProperty.sham)) {
993
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
994
- }
995
- defineBuiltIn$2(target, key, sourceProperty, options);
996
- }
997
- };
998
-
999
- var internalObjectKeys = objectKeysInternal;
1000
- var enumBugKeys$1 = enumBugKeys$3;
1001
-
1002
- // `Object.keys` method
1003
- // https://tc39.es/ecma262/#sec-object.keys
1004
- // eslint-disable-next-line es/no-object-keys -- safe
1005
- var objectKeys$2 = Object.keys || function keys(O) {
1006
- return internalObjectKeys(O, enumBugKeys$1);
1007
- };
1008
-
1009
- var DESCRIPTORS$2 = descriptors;
1010
- var uncurryThis$4 = functionUncurryThis;
1011
- var call$3 = functionCall;
1012
- var fails$3 = fails$c;
1013
- var objectKeys$1 = objectKeys$2;
1014
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1015
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1016
- var toObject$1 = toObject$3;
1017
- var IndexedObject = indexedObject;
1018
-
1019
- // eslint-disable-next-line es/no-object-assign -- safe
1020
- var $assign = Object.assign;
1021
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1022
- var defineProperty$3 = Object.defineProperty;
1023
- var concat = uncurryThis$4([].concat);
1024
-
1025
- // `Object.assign` method
1026
- // https://tc39.es/ecma262/#sec-object.assign
1027
- var objectAssign = !$assign || fails$3(function () {
1028
- // should have correct order of operations (Edge bug)
1029
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1030
- enumerable: true,
1031
- get: function () {
1032
- defineProperty$3(this, 'b', {
1033
- value: 3,
1034
- enumerable: false
1035
- });
1036
- }
1037
- }), { b: 2 })).b !== 1) return true;
1038
- // should work with symbols and should have deterministic property order (V8 bug)
1039
- var A = {};
1040
- var B = {};
1041
- // eslint-disable-next-line es/no-symbol -- safe
1042
- var symbol = Symbol('assign detection');
1043
- var alphabet = 'abcdefghijklmnopqrst';
1044
- A[symbol] = 7;
1045
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1046
- return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1047
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1048
- var T = toObject$1(target);
1049
- var argumentsLength = arguments.length;
1050
- var index = 1;
1051
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1052
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1053
- while (argumentsLength > index) {
1054
- var S = IndexedObject(arguments[index++]);
1055
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1056
- var length = keys.length;
1057
- var j = 0;
1058
- var key;
1059
- while (length > j) {
1060
- key = keys[j++];
1061
- if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1062
- }
1063
- } return T;
1064
- } : $assign;
1065
-
1066
- var $$2 = _export;
1067
- var assign = objectAssign;
1068
-
1069
- // `Object.assign` method
1070
- // https://tc39.es/ecma262/#sec-object.assign
1071
- // eslint-disable-next-line es/no-object-assign -- required for testing
1072
- $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1073
- assign: assign
1074
- });
1075
-
1076
- var objectDefineProperties = {};
1077
-
1078
- var DESCRIPTORS$1 = descriptors;
1079
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1080
- var definePropertyModule = objectDefineProperty;
1081
- var anObject$1 = anObject$4;
1082
- var toIndexedObject$1 = toIndexedObject$5;
1083
- var objectKeys = objectKeys$2;
1084
-
1085
- // `Object.defineProperties` method
1086
- // https://tc39.es/ecma262/#sec-object.defineproperties
1087
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1088
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1089
- anObject$1(O);
1090
- var props = toIndexedObject$1(Properties);
1091
- var keys = objectKeys(Properties);
1092
- var length = keys.length;
1093
- var index = 0;
1094
- var key;
1095
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1096
- return O;
1097
- };
1098
-
1099
- var getBuiltIn$1 = getBuiltIn$4;
1100
-
1101
- var html$1 = getBuiltIn$1('document', 'documentElement');
1102
-
1103
- /* global ActiveXObject -- old IE, WSH */
1104
- var anObject = anObject$4;
1105
- var definePropertiesModule = objectDefineProperties;
1106
- var enumBugKeys = enumBugKeys$3;
1107
- var hiddenKeys = hiddenKeys$4;
1108
- var html = html$1;
1109
- var documentCreateElement$1 = documentCreateElement$2;
1110
- var sharedKey$1 = sharedKey$3;
1111
-
1112
- var GT = '>';
1113
- var LT = '<';
1114
- var PROTOTYPE = 'prototype';
1115
- var SCRIPT = 'script';
1116
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1041
+ var anObject = anObject$4;
1117
1042
 
1118
- var EmptyConstructor = function () { /* empty */ };
1043
+ var concat$1 = uncurryThis$5([].concat);
1119
1044
 
1120
- var scriptTag = function (content) {
1121
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1045
+ // all object keys, includes non-enumerable and symbols
1046
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
1047
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
1048
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1049
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1122
1050
  };
1123
1051
 
1124
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1125
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1126
- activeXDocument.write(scriptTag(''));
1127
- activeXDocument.close();
1128
- var temp = activeXDocument.parentWindow.Object;
1129
- activeXDocument = null; // avoid memory leak
1130
- return temp;
1131
- };
1052
+ var hasOwn$2 = hasOwnProperty_1;
1053
+ var ownKeys = ownKeys$1;
1054
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1055
+ var definePropertyModule = objectDefineProperty;
1132
1056
 
1133
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1134
- var NullProtoObjectViaIFrame = function () {
1135
- // Thrash, waste and sodomy: IE GC bug
1136
- var iframe = documentCreateElement$1('iframe');
1137
- var JS = 'java' + SCRIPT + ':';
1138
- var iframeDocument;
1139
- iframe.style.display = 'none';
1140
- html.appendChild(iframe);
1141
- // https://github.com/zloirock/core-js/issues/475
1142
- iframe.src = String(JS);
1143
- iframeDocument = iframe.contentWindow.document;
1144
- iframeDocument.open();
1145
- iframeDocument.write(scriptTag('document.F=Object'));
1146
- iframeDocument.close();
1147
- return iframeDocument.F;
1057
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1058
+ var keys = ownKeys(source);
1059
+ var defineProperty = definePropertyModule.f;
1060
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1061
+ for (var i = 0; i < keys.length; i++) {
1062
+ var key = keys[i];
1063
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1064
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1065
+ }
1066
+ }
1148
1067
  };
1149
1068
 
1150
- // Check for document.domain and active x support
1151
- // No need to use active x approach when document.domain is not set
1152
- // see https://github.com/es-shims/es5-shim/issues/150
1153
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1154
- // avoid IE GC bug
1155
- var activeXDocument;
1156
- var NullProtoObject = function () {
1157
- try {
1158
- activeXDocument = new ActiveXObject('htmlfile');
1159
- } catch (error) { /* ignore */ }
1160
- NullProtoObject = typeof document != 'undefined'
1161
- ? document.domain && activeXDocument
1162
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1163
- : NullProtoObjectViaIFrame()
1164
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1165
- var length = enumBugKeys.length;
1166
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1167
- return NullProtoObject();
1168
- };
1069
+ var fails$4 = fails$c;
1070
+ var isCallable$6 = isCallable$g;
1169
1071
 
1170
- hiddenKeys[IE_PROTO$1] = true;
1072
+ var replacement = /#|\.prototype\./;
1171
1073
 
1172
- // `Object.create` method
1173
- // https://tc39.es/ecma262/#sec-object.create
1174
- // eslint-disable-next-line es/no-object-create -- safe
1175
- var objectCreate = Object.create || function create(O, Properties) {
1176
- var result;
1177
- if (O !== null) {
1178
- EmptyConstructor[PROTOTYPE] = anObject(O);
1179
- result = new EmptyConstructor();
1180
- EmptyConstructor[PROTOTYPE] = null;
1181
- // add "__proto__" for Object.getPrototypeOf polyfill
1182
- result[IE_PROTO$1] = O;
1183
- } else result = NullProtoObject();
1184
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1074
+ var isForced$1 = function (feature, detection) {
1075
+ var value = data[normalize(feature)];
1076
+ return value === POLYFILL ? true
1077
+ : value === NATIVE ? false
1078
+ : isCallable$6(detection) ? fails$4(detection)
1079
+ : !!detection;
1185
1080
  };
1186
1081
 
1187
- var wellKnownSymbol$6 = wellKnownSymbol$8;
1188
- var create$1 = objectCreate;
1189
- var defineProperty$2 = objectDefineProperty.f;
1082
+ var normalize = isForced$1.normalize = function (string) {
1083
+ return String(string).replace(replacement, '.').toLowerCase();
1084
+ };
1190
1085
 
1191
- var UNSCOPABLES = wellKnownSymbol$6('unscopables');
1192
- var ArrayPrototype = Array.prototype;
1086
+ var data = isForced$1.data = {};
1087
+ var NATIVE = isForced$1.NATIVE = 'N';
1088
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1193
1089
 
1194
- // Array.prototype[@@unscopables]
1195
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1196
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
1197
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1198
- configurable: true,
1199
- value: create$1(null)
1200
- });
1201
- }
1090
+ var isForced_1 = isForced$1;
1202
1091
 
1203
- // add a key to Array.prototype[@@unscopables]
1204
- var addToUnscopables$1 = function (key) {
1205
- ArrayPrototype[UNSCOPABLES][key] = true;
1206
- };
1092
+ var global$2 = global$b;
1093
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1094
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1095
+ var defineBuiltIn$2 = defineBuiltIn$3;
1096
+ var defineGlobalProperty = defineGlobalProperty$3;
1097
+ var copyConstructorProperties = copyConstructorProperties$1;
1098
+ var isForced = isForced_1;
1207
1099
 
1208
- var iterators = {};
1100
+ /*
1101
+ options.target - name of the target object
1102
+ options.global - target is the global object
1103
+ options.stat - export as static methods of target
1104
+ options.proto - export as prototype methods of target
1105
+ options.real - real prototype method for the `pure` version
1106
+ options.forced - export even if the native feature is available
1107
+ options.bind - bind methods to the target, required for the `pure` version
1108
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1109
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1110
+ options.sham - add a flag to not completely full polyfills
1111
+ options.enumerable - export as enumerable property
1112
+ options.dontCallGetSet - prevent calling a getter on target
1113
+ options.name - the .name of the function if it does not match the key
1114
+ */
1115
+ var _export = function (options, source) {
1116
+ var TARGET = options.target;
1117
+ var GLOBAL = options.global;
1118
+ var STATIC = options.stat;
1119
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1120
+ if (GLOBAL) {
1121
+ target = global$2;
1122
+ } else if (STATIC) {
1123
+ target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
1124
+ } else {
1125
+ target = global$2[TARGET] && global$2[TARGET].prototype;
1126
+ }
1127
+ if (target) for (key in source) {
1128
+ sourceProperty = source[key];
1129
+ if (options.dontCallGetSet) {
1130
+ descriptor = getOwnPropertyDescriptor(target, key);
1131
+ targetProperty = descriptor && descriptor.value;
1132
+ } else targetProperty = target[key];
1133
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1134
+ // contained in target
1135
+ if (!FORCED && targetProperty !== undefined) {
1136
+ if (typeof sourceProperty == typeof targetProperty) continue;
1137
+ copyConstructorProperties(sourceProperty, targetProperty);
1138
+ }
1139
+ // add a flag to not completely full polyfills
1140
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1141
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1142
+ }
1143
+ defineBuiltIn$2(target, key, sourceProperty, options);
1144
+ }
1145
+ };
1209
1146
 
1210
- var fails$2 = fails$c;
1147
+ var fails$3 = fails$c;
1211
1148
 
1212
- var correctPrototypeGetter = !fails$2(function () {
1149
+ var correctPrototypeGetter = !fails$3(function () {
1213
1150
  function F() { /* empty */ }
1214
1151
  F.prototype.constructor = null;
1215
1152
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1218,7 +1155,7 @@ var correctPrototypeGetter = !fails$2(function () {
1218
1155
 
1219
1156
  var hasOwn$1 = hasOwnProperty_1;
1220
1157
  var isCallable$5 = isCallable$g;
1221
- var toObject = toObject$3;
1158
+ var toObject$1 = toObject$3;
1222
1159
  var sharedKey = sharedKey$3;
1223
1160
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1224
1161
 
@@ -1230,7 +1167,7 @@ var ObjectPrototype = $Object$1.prototype;
1230
1167
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1231
1168
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1232
1169
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1233
- var object = toObject(O);
1170
+ var object = toObject$1(O);
1234
1171
  if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1235
1172
  var constructor = object.constructor;
1236
1173
  if (isCallable$5(constructor) && object instanceof constructor) {
@@ -1238,7 +1175,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1238
1175
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1239
1176
  };
1240
1177
 
1241
- var fails$1 = fails$c;
1178
+ var fails$2 = fails$c;
1242
1179
  var isCallable$4 = isCallable$g;
1243
1180
  var isObject$2 = isObject$8;
1244
1181
  var getPrototypeOf$1 = objectGetPrototypeOf;
@@ -1263,7 +1200,7 @@ if ([].keys) {
1263
1200
  }
1264
1201
  }
1265
1202
 
1266
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$1(function () {
1203
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$2(function () {
1267
1204
  var test = {};
1268
1205
  // FF44- legacy iterators case
1269
1206
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1284,7 +1221,7 @@ var iteratorsCore = {
1284
1221
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1285
1222
  };
1286
1223
 
1287
- var defineProperty$1 = objectDefineProperty.f;
1224
+ var defineProperty$2 = objectDefineProperty.f;
1288
1225
  var hasOwn = hasOwnProperty_1;
1289
1226
  var wellKnownSymbol$4 = wellKnownSymbol$8;
1290
1227
 
@@ -1293,7 +1230,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1293
1230
  var setToStringTag$3 = function (target, TAG, STATIC) {
1294
1231
  if (target && !STATIC) target = target.prototype;
1295
1232
  if (target && !hasOwn(target, TO_STRING_TAG$2)) {
1296
- defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1233
+ defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1297
1234
  }
1298
1235
  };
1299
1236
 
@@ -1313,13 +1250,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1313
1250
  return IteratorConstructor;
1314
1251
  };
1315
1252
 
1316
- var uncurryThis$3 = functionUncurryThis;
1253
+ var uncurryThis$4 = functionUncurryThis;
1317
1254
  var aCallable = aCallable$2;
1318
1255
 
1319
1256
  var functionUncurryThisAccessor = function (object, key, method) {
1320
1257
  try {
1321
1258
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1322
- return uncurryThis$3(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1259
+ return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1323
1260
  } catch (error) { /* empty */ }
1324
1261
  };
1325
1262
 
@@ -1368,8 +1305,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1368
1305
  };
1369
1306
  }() : undefined);
1370
1307
 
1371
- var $$1 = _export;
1372
- var call$2 = functionCall;
1308
+ var $$2 = _export;
1309
+ var call$3 = functionCall;
1373
1310
  var FunctionName = functionName;
1374
1311
  var isCallable$3 = isCallable$g;
1375
1312
  var createIteratorConstructor = iteratorCreateConstructor;
@@ -1441,7 +1378,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1441
1378
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1442
1379
  } else {
1443
1380
  INCORRECT_VALUES_NAME = true;
1444
- defaultIterator = function values() { return call$2(nativeIterator, this); };
1381
+ defaultIterator = function values() { return call$3(nativeIterator, this); };
1445
1382
  }
1446
1383
  }
1447
1384
 
@@ -1456,7 +1393,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1456
1393
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1457
1394
  defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1458
1395
  }
1459
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1396
+ } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1460
1397
  }
1461
1398
 
1462
1399
  // define iterator
@@ -1478,10 +1415,10 @@ var toIndexedObject = toIndexedObject$5;
1478
1415
  var addToUnscopables = addToUnscopables$1;
1479
1416
  var Iterators = iterators;
1480
1417
  var InternalStateModule = internalState;
1481
- var defineProperty = objectDefineProperty.f;
1418
+ var defineProperty$1 = objectDefineProperty.f;
1482
1419
  var defineIterator = iteratorDefine;
1483
1420
  var createIterResultObject = createIterResultObject$1;
1484
- var DESCRIPTORS = descriptors;
1421
+ var DESCRIPTORS$1 = descriptors;
1485
1422
 
1486
1423
  var ARRAY_ITERATOR = 'Array Iterator';
1487
1424
  var setInternalState = InternalStateModule.set;
@@ -1531,10 +1468,77 @@ addToUnscopables('values');
1531
1468
  addToUnscopables('entries');
1532
1469
 
1533
1470
  // V8 ~ Chrome 45- bug
1534
- if (DESCRIPTORS && values.name !== 'values') try {
1535
- defineProperty(values, 'name', { value: 'values' });
1471
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1472
+ defineProperty$1(values, 'name', { value: 'values' });
1536
1473
  } catch (error) { /* empty */ }
1537
1474
 
1475
+ var DESCRIPTORS = descriptors;
1476
+ var uncurryThis$3 = functionUncurryThis;
1477
+ var call$2 = functionCall;
1478
+ var fails$1 = fails$c;
1479
+ var objectKeys = objectKeys$2;
1480
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1481
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1482
+ var toObject = toObject$3;
1483
+ var IndexedObject = indexedObject;
1484
+
1485
+ // eslint-disable-next-line es/no-object-assign -- safe
1486
+ var $assign = Object.assign;
1487
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1488
+ var defineProperty = Object.defineProperty;
1489
+ var concat = uncurryThis$3([].concat);
1490
+
1491
+ // `Object.assign` method
1492
+ // https://tc39.es/ecma262/#sec-object.assign
1493
+ var objectAssign = !$assign || fails$1(function () {
1494
+ // should have correct order of operations (Edge bug)
1495
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1496
+ enumerable: true,
1497
+ get: function () {
1498
+ defineProperty(this, 'b', {
1499
+ value: 3,
1500
+ enumerable: false
1501
+ });
1502
+ }
1503
+ }), { b: 2 })).b !== 1) return true;
1504
+ // should work with symbols and should have deterministic property order (V8 bug)
1505
+ var A = {};
1506
+ var B = {};
1507
+ // eslint-disable-next-line es/no-symbol -- safe
1508
+ var symbol = Symbol('assign detection');
1509
+ var alphabet = 'abcdefghijklmnopqrst';
1510
+ A[symbol] = 7;
1511
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1512
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1513
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1514
+ var T = toObject(target);
1515
+ var argumentsLength = arguments.length;
1516
+ var index = 1;
1517
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1518
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1519
+ while (argumentsLength > index) {
1520
+ var S = IndexedObject(arguments[index++]);
1521
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1522
+ var length = keys.length;
1523
+ var j = 0;
1524
+ var key;
1525
+ while (length > j) {
1526
+ key = keys[j++];
1527
+ if (!DESCRIPTORS || call$2(propertyIsEnumerable, S, key)) T[key] = S[key];
1528
+ }
1529
+ } return T;
1530
+ } : $assign;
1531
+
1532
+ var $$1 = _export;
1533
+ var assign = objectAssign;
1534
+
1535
+ // `Object.assign` method
1536
+ // https://tc39.es/ecma262/#sec-object.assign
1537
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1538
+ $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1539
+ assign: assign
1540
+ });
1541
+
1538
1542
  // iterable DOM collections
1539
1543
  // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1540
1544
  var domIterables = {
@@ -1617,22 +1621,38 @@ for (var COLLECTION_NAME in DOMIterables) {
1617
1621
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1618
1622
 
1619
1623
  const useDotcmsEditor = ({
1620
- pathname,
1621
- onReload
1624
+ pageContext,
1625
+ config
1622
1626
  }) => {
1623
- const [isInsideEditor$1, setIsInsideEditor] = useState(false);
1627
+ const {
1628
+ pathname,
1629
+ onReload,
1630
+ editor
1631
+ } = config;
1632
+ const [state, setState] = useState(Object.assign({}, pageContext, {
1633
+ isInsideEditor: false
1634
+ }));
1635
+ /**
1636
+ * Initializes the DotCMS editor.
1637
+ *
1638
+ */
1624
1639
  useEffect(() => {
1625
- const insideEditor = isInsideEditor();
1626
- if (!insideEditor) {
1640
+ if (!isInsideEditor()) {
1627
1641
  return;
1628
1642
  }
1629
1643
  initEditor({
1630
1644
  pathname
1631
1645
  });
1632
1646
  updateNavigation(pathname || '/');
1633
- setIsInsideEditor(insideEditor);
1647
+ setState(prevState => Object.assign({}, prevState, {
1648
+ isInsideEditor: true
1649
+ }));
1634
1650
  return () => destroyEditor();
1635
1651
  }, [pathname]);
1652
+ /**
1653
+ * Reloads the page when changes are made in the editor.
1654
+ *
1655
+ */
1636
1656
  useEffect(() => {
1637
1657
  const insideEditor = isInsideEditor();
1638
1658
  const client = DotCmsClient.instance;
@@ -1642,9 +1662,35 @@ const useDotcmsEditor = ({
1642
1662
  client.editor.on('changes', () => onReload == null ? void 0 : onReload());
1643
1663
  return () => client.editor.off('changes');
1644
1664
  }, [onReload]);
1645
- return {
1646
- isInsideEditor: isInsideEditor$1
1647
- };
1665
+ /**
1666
+ * Sends a message to the editor when the client is ready.
1667
+ */
1668
+ useEffect(() => {
1669
+ if (!isInsideEditor()) {
1670
+ return;
1671
+ }
1672
+ postMessageToEditor({
1673
+ action: CUSTOMER_ACTIONS.CLIENT_READY,
1674
+ payload: editor
1675
+ });
1676
+ }, [pathname]);
1677
+ /**
1678
+ * Updates the page asset when changes are made in the editor.
1679
+ */
1680
+ useEffect(() => {
1681
+ if (!isInsideEditor()) {
1682
+ return;
1683
+ }
1684
+ const client = DotCmsClient.instance;
1685
+ client.editor.on('changes', data => {
1686
+ const pageAsset = data;
1687
+ setState(state => Object.assign({}, state, {
1688
+ pageAsset
1689
+ }));
1690
+ });
1691
+ return () => client.editor.off('changes');
1692
+ }, []);
1693
+ return state;
1648
1694
  };
1649
1695
 
1650
1696
  const PageContext = /*#__PURE__*/createContext(null);
@@ -2085,19 +2131,12 @@ const Row = /*#__PURE__*/forwardRef((props, ref) => {
2085
2131
  * @param {DotcmsPageProps} props - The properties for the DotCMS page.
2086
2132
  * @returns {JSX.Element} - A JSX element that represents the layout for a DotCMS page.
2087
2133
  */
2088
- function DotcmsLayout({
2089
- pageContext,
2090
- config
2091
- }) {
2134
+ function DotcmsLayout(dotPageProps) {
2092
2135
  var _pageContext$pageAsse;
2093
- const {
2094
- isInsideEditor
2095
- } = useDotcmsEditor(config);
2136
+ const pageContext = useDotcmsEditor(dotPageProps);
2096
2137
  return jsx(PageProvider, {
2097
- pageContext: Object.assign({}, pageContext, {
2098
- isInsideEditor
2099
- }),
2100
- children: (_pageContext$pageAsse = pageContext.pageAsset.layout) == null ? void 0 : _pageContext$pageAsse.body.rows.map((row, index) => jsx(Row, {
2138
+ pageContext: pageContext,
2139
+ children: (_pageContext$pageAsse = pageContext.pageAsset) == null || (_pageContext$pageAsse = _pageContext$pageAsse.layout) == null ? void 0 : _pageContext$pageAsse.body.rows.map((row, index) => jsx(Row, {
2101
2140
  row: row
2102
2141
  }, index))
2103
2142
  });