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