@dereekb/date 12.6.21 → 13.0.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.cjs.js CHANGED
@@ -1,2170 +1,23 @@
1
1
  'use strict';
2
2
 
3
+ require('core-js/modules/es.iterator.constructor.js');
4
+ require('core-js/modules/es.iterator.filter.js');
5
+ require('core-js/modules/es.iterator.for-each.js');
3
6
  var util = require('@dereekb/util');
4
7
  var dateFns = require('date-fns');
8
+ require('core-js/modules/es.iterator.map.js');
9
+ require('core-js/modules/es.set.difference.v2.js');
10
+ require('core-js/modules/es.set.symmetric-difference.v2.js');
11
+ require('core-js/modules/es.set.union.v2.js');
5
12
  var classTransformer = require('class-transformer');
6
13
  var classValidator = require('class-validator');
7
14
  var dateFnsTz = require('date-fns-tz');
8
15
  var tzdb = require('@vvo/tzdb');
16
+ require('core-js/modules/es.iterator.find.js');
17
+ require('core-js/modules/es.json.stringify.js');
9
18
  var rxjs = require('rxjs');
10
19
  var rrule = require('rrule');
11
20
 
12
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
13
-
14
- var check = function (it) {
15
- return it && it.Math === Math && it;
16
- };
17
-
18
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
19
- var global$b =
20
- // eslint-disable-next-line es/no-global-this -- safe
21
- check(typeof globalThis == 'object' && globalThis) ||
22
- check(typeof window == 'object' && window) ||
23
- // eslint-disable-next-line no-restricted-globals -- safe
24
- check(typeof self == 'object' && self) ||
25
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
26
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
27
- // eslint-disable-next-line no-new-func -- fallback
28
- (function () { return this; })() || Function('return this')();
29
-
30
- var objectGetOwnPropertyDescriptor = {};
31
-
32
- var fails$e = function (exec) {
33
- try {
34
- return !!exec();
35
- } catch (error) {
36
- return true;
37
- }
38
- };
39
-
40
- var fails$d = fails$e;
41
-
42
- // Detect IE8's incomplete defineProperty implementation
43
- var descriptors = !fails$d(function () {
44
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
45
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
46
- });
47
-
48
- var fails$c = fails$e;
49
-
50
- var functionBindNative = !fails$c(function () {
51
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
52
- var test = (function () { /* empty */ }).bind();
53
- // eslint-disable-next-line no-prototype-builtins -- safe
54
- return typeof test != 'function' || test.hasOwnProperty('prototype');
55
- });
56
-
57
- var NATIVE_BIND$2 = functionBindNative;
58
-
59
- var call$c = Function.prototype.call;
60
-
61
- var functionCall = NATIVE_BIND$2 ? call$c.bind(call$c) : function () {
62
- return call$c.apply(call$c, arguments);
63
- };
64
-
65
- var objectPropertyIsEnumerable = {};
66
-
67
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
68
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
69
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
70
-
71
- // Nashorn ~ JDK8 bug
72
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
73
-
74
- // `Object.prototype.propertyIsEnumerable` method implementation
75
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
76
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
77
- var descriptor = getOwnPropertyDescriptor$2(this, V);
78
- return !!descriptor && descriptor.enumerable;
79
- } : $propertyIsEnumerable;
80
-
81
- var createPropertyDescriptor$3 = function (bitmap, value) {
82
- return {
83
- enumerable: !(bitmap & 1),
84
- configurable: !(bitmap & 2),
85
- writable: !(bitmap & 4),
86
- value: value
87
- };
88
- };
89
-
90
- var NATIVE_BIND$1 = functionBindNative;
91
-
92
- var FunctionPrototype$1 = Function.prototype;
93
- var call$b = FunctionPrototype$1.call;
94
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$b, call$b);
95
-
96
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
97
- return function () {
98
- return call$b.apply(fn, arguments);
99
- };
100
- };
101
-
102
- var uncurryThis$e = functionUncurryThis;
103
-
104
- var toString$3 = uncurryThis$e({}.toString);
105
- var stringSlice$1 = uncurryThis$e(''.slice);
106
-
107
- var classofRaw$2 = function (it) {
108
- return stringSlice$1(toString$3(it), 8, -1);
109
- };
110
-
111
- var uncurryThis$d = functionUncurryThis;
112
- var fails$b = fails$e;
113
- var classof$4 = classofRaw$2;
114
-
115
- var $Object$4 = Object;
116
- var split = uncurryThis$d(''.split);
117
-
118
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
119
- var indexedObject = fails$b(function () {
120
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
121
- // eslint-disable-next-line no-prototype-builtins -- safe
122
- return !$Object$4('z').propertyIsEnumerable(0);
123
- }) ? function (it) {
124
- return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
125
- } : $Object$4;
126
-
127
- // we can't use just `it == null` since of `document.all` special case
128
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
129
- var isNullOrUndefined$3 = function (it) {
130
- return it === null || it === undefined;
131
- };
132
-
133
- var isNullOrUndefined$2 = isNullOrUndefined$3;
134
-
135
- var $TypeError$c = TypeError;
136
-
137
- // `RequireObjectCoercible` abstract operation
138
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
139
- var requireObjectCoercible$3 = function (it) {
140
- if (isNullOrUndefined$2(it)) throw new $TypeError$c("Can't call method on " + it);
141
- return it;
142
- };
143
-
144
- // toObject with fallback for non-array-like ES3 strings
145
- var IndexedObject = indexedObject;
146
- var requireObjectCoercible$2 = requireObjectCoercible$3;
147
-
148
- var toIndexedObject$4 = function (it) {
149
- return IndexedObject(requireObjectCoercible$2(it));
150
- };
151
-
152
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
153
- var documentAll = typeof document == 'object' && document.all;
154
-
155
- // `IsCallable` abstract operation
156
- // https://tc39.es/ecma262/#sec-iscallable
157
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
158
- var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
159
- return typeof argument == 'function' || argument === documentAll;
160
- } : function (argument) {
161
- return typeof argument == 'function';
162
- };
163
-
164
- var isCallable$d = isCallable$e;
165
-
166
- var isObject$6 = function (it) {
167
- return typeof it == 'object' ? it !== null : isCallable$d(it);
168
- };
169
-
170
- var global$a = global$b;
171
- var isCallable$c = isCallable$e;
172
-
173
- var aFunction = function (argument) {
174
- return isCallable$c(argument) ? argument : undefined;
175
- };
176
-
177
- var getBuiltIn$4 = function (namespace, method) {
178
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
179
- };
180
-
181
- var uncurryThis$c = functionUncurryThis;
182
-
183
- var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
184
-
185
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
186
-
187
- var global$9 = global$b;
188
- var userAgent = engineUserAgent;
189
-
190
- var process = global$9.process;
191
- var Deno = global$9.Deno;
192
- var versions = process && process.versions || Deno && Deno.version;
193
- var v8 = versions && versions.v8;
194
- var match, version;
195
-
196
- if (v8) {
197
- match = v8.split('.');
198
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
199
- // but their correct versions are not interesting for us
200
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
201
- }
202
-
203
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
204
- // so check `userAgent` even if `.v8` exists, but 0
205
- if (!version && userAgent) {
206
- match = userAgent.match(/Edge\/(\d+)/);
207
- if (!match || match[1] >= 74) {
208
- match = userAgent.match(/Chrome\/(\d+)/);
209
- if (match) version = +match[1];
210
- }
211
- }
212
-
213
- var engineV8Version = version;
214
-
215
- /* eslint-disable es/no-symbol -- required for testing */
216
- var V8_VERSION = engineV8Version;
217
- var fails$a = fails$e;
218
- var global$8 = global$b;
219
-
220
- var $String$4 = global$8.String;
221
-
222
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
223
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
224
- var symbol = Symbol('symbol detection');
225
- // Chrome 38 Symbol has incorrect toString conversion
226
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
227
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
228
- // of course, fail.
229
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
230
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
231
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
232
- });
233
-
234
- /* eslint-disable es/no-symbol -- required for testing */
235
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
236
-
237
- var useSymbolAsUid = NATIVE_SYMBOL$1
238
- && !Symbol.sham
239
- && typeof Symbol.iterator == 'symbol';
240
-
241
- var getBuiltIn$3 = getBuiltIn$4;
242
- var isCallable$b = isCallable$e;
243
- var isPrototypeOf$2 = objectIsPrototypeOf;
244
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
245
-
246
- var $Object$3 = Object;
247
-
248
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
249
- return typeof it == 'symbol';
250
- } : function (it) {
251
- var $Symbol = getBuiltIn$3('Symbol');
252
- return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
253
- };
254
-
255
- var $String$3 = String;
256
-
257
- var tryToString$3 = function (argument) {
258
- try {
259
- return $String$3(argument);
260
- } catch (error) {
261
- return 'Object';
262
- }
263
- };
264
-
265
- var isCallable$a = isCallable$e;
266
- var tryToString$2 = tryToString$3;
267
-
268
- var $TypeError$b = TypeError;
269
-
270
- // `Assert: IsCallable(argument) is true`
271
- var aCallable$9 = function (argument) {
272
- if (isCallable$a(argument)) return argument;
273
- throw new $TypeError$b(tryToString$2(argument) + ' is not a function');
274
- };
275
-
276
- var aCallable$8 = aCallable$9;
277
- var isNullOrUndefined$1 = isNullOrUndefined$3;
278
-
279
- // `GetMethod` abstract operation
280
- // https://tc39.es/ecma262/#sec-getmethod
281
- var getMethod$4 = function (V, P) {
282
- var func = V[P];
283
- return isNullOrUndefined$1(func) ? undefined : aCallable$8(func);
284
- };
285
-
286
- var call$a = functionCall;
287
- var isCallable$9 = isCallable$e;
288
- var isObject$5 = isObject$6;
289
-
290
- var $TypeError$a = TypeError;
291
-
292
- // `OrdinaryToPrimitive` abstract operation
293
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
294
- var ordinaryToPrimitive$1 = function (input, pref) {
295
- var fn, val;
296
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
297
- if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$a(fn, input))) return val;
298
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
299
- throw new $TypeError$a("Can't convert object to primitive value");
300
- };
301
-
302
- var sharedStore = {exports: {}};
303
-
304
- var isPure = false;
305
-
306
- var global$7 = global$b;
307
-
308
- // eslint-disable-next-line es/no-object-defineproperty -- safe
309
- var defineProperty$3 = Object.defineProperty;
310
-
311
- var defineGlobalProperty$3 = function (key, value) {
312
- try {
313
- defineProperty$3(global$7, key, { value: value, configurable: true, writable: true });
314
- } catch (error) {
315
- global$7[key] = value;
316
- } return value;
317
- };
318
-
319
- var globalThis$1 = global$b;
320
- var defineGlobalProperty$2 = defineGlobalProperty$3;
321
-
322
- var SHARED = '__core-js_shared__';
323
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
324
-
325
- (store$3.versions || (store$3.versions = [])).push({
326
- version: '3.36.1',
327
- mode: 'global',
328
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
329
- license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
330
- source: 'https://github.com/zloirock/core-js'
331
- });
332
-
333
- var sharedStoreExports = sharedStore.exports;
334
-
335
- var store$2 = sharedStoreExports;
336
-
337
- var shared$3 = function (key, value) {
338
- return store$2[key] || (store$2[key] = value || {});
339
- };
340
-
341
- var requireObjectCoercible$1 = requireObjectCoercible$3;
342
-
343
- var $Object$2 = Object;
344
-
345
- // `ToObject` abstract operation
346
- // https://tc39.es/ecma262/#sec-toobject
347
- var toObject$4 = function (argument) {
348
- return $Object$2(requireObjectCoercible$1(argument));
349
- };
350
-
351
- var uncurryThis$b = functionUncurryThis;
352
- var toObject$3 = toObject$4;
353
-
354
- var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
355
-
356
- // `HasOwnProperty` abstract operation
357
- // https://tc39.es/ecma262/#sec-hasownproperty
358
- // eslint-disable-next-line es/no-object-hasown -- safe
359
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
360
- return hasOwnProperty(toObject$3(it), key);
361
- };
362
-
363
- var uncurryThis$a = functionUncurryThis;
364
-
365
- var id = 0;
366
- var postfix = Math.random();
367
- var toString$2 = uncurryThis$a(1.0.toString);
368
-
369
- var uid$2 = function (key) {
370
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
371
- };
372
-
373
- var global$6 = global$b;
374
- var shared$2 = shared$3;
375
- var hasOwn$8 = hasOwnProperty_1;
376
- var uid$1 = uid$2;
377
- var NATIVE_SYMBOL = symbolConstructorDetection;
378
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
379
-
380
- var Symbol$1 = global$6.Symbol;
381
- var WellKnownSymbolsStore = shared$2('wks');
382
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
383
-
384
- var wellKnownSymbol$9 = function (name) {
385
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
386
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
387
- ? Symbol$1[name]
388
- : createWellKnownSymbol('Symbol.' + name);
389
- } return WellKnownSymbolsStore[name];
390
- };
391
-
392
- var call$9 = functionCall;
393
- var isObject$4 = isObject$6;
394
- var isSymbol$1 = isSymbol$2;
395
- var getMethod$3 = getMethod$4;
396
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
397
- var wellKnownSymbol$8 = wellKnownSymbol$9;
398
-
399
- var $TypeError$9 = TypeError;
400
- var TO_PRIMITIVE = wellKnownSymbol$8('toPrimitive');
401
-
402
- // `ToPrimitive` abstract operation
403
- // https://tc39.es/ecma262/#sec-toprimitive
404
- var toPrimitive$1 = function (input, pref) {
405
- if (!isObject$4(input) || isSymbol$1(input)) return input;
406
- var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
407
- var result;
408
- if (exoticToPrim) {
409
- if (pref === undefined) pref = 'default';
410
- result = call$9(exoticToPrim, input, pref);
411
- if (!isObject$4(result) || isSymbol$1(result)) return result;
412
- throw new $TypeError$9("Can't convert object to primitive value");
413
- }
414
- if (pref === undefined) pref = 'number';
415
- return ordinaryToPrimitive(input, pref);
416
- };
417
-
418
- var toPrimitive = toPrimitive$1;
419
- var isSymbol = isSymbol$2;
420
-
421
- // `ToPropertyKey` abstract operation
422
- // https://tc39.es/ecma262/#sec-topropertykey
423
- var toPropertyKey$2 = function (argument) {
424
- var key = toPrimitive(argument, 'string');
425
- return isSymbol(key) ? key : key + '';
426
- };
427
-
428
- var global$5 = global$b;
429
- var isObject$3 = isObject$6;
430
-
431
- var document$1 = global$5.document;
432
- // typeof document.createElement is 'object' in old IE
433
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
434
-
435
- var documentCreateElement$1 = function (it) {
436
- return EXISTS$1 ? document$1.createElement(it) : {};
437
- };
438
-
439
- var DESCRIPTORS$a = descriptors;
440
- var fails$9 = fails$e;
441
- var createElement = documentCreateElement$1;
442
-
443
- // Thanks to IE8 for its funny defineProperty
444
- var ie8DomDefine = !DESCRIPTORS$a && !fails$9(function () {
445
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
446
- return Object.defineProperty(createElement('div'), 'a', {
447
- get: function () { return 7; }
448
- }).a !== 7;
449
- });
450
-
451
- var DESCRIPTORS$9 = descriptors;
452
- var call$8 = functionCall;
453
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
454
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
455
- var toIndexedObject$3 = toIndexedObject$4;
456
- var toPropertyKey$1 = toPropertyKey$2;
457
- var hasOwn$7 = hasOwnProperty_1;
458
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
459
-
460
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
461
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
462
-
463
- // `Object.getOwnPropertyDescriptor` method
464
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
465
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
466
- O = toIndexedObject$3(O);
467
- P = toPropertyKey$1(P);
468
- if (IE8_DOM_DEFINE$1) try {
469
- return $getOwnPropertyDescriptor$1(O, P);
470
- } catch (error) { /* empty */ }
471
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$8(propertyIsEnumerableModule.f, O, P), O[P]);
472
- };
473
-
474
- var objectDefineProperty = {};
475
-
476
- var DESCRIPTORS$8 = descriptors;
477
- var fails$8 = fails$e;
478
-
479
- // V8 ~ Chrome 36-
480
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
481
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$8(function () {
482
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
483
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
484
- value: 42,
485
- writable: false
486
- }).prototype !== 42;
487
- });
488
-
489
- var isObject$2 = isObject$6;
490
-
491
- var $String$2 = String;
492
- var $TypeError$8 = TypeError;
493
-
494
- // `Assert: Type(argument) is Object`
495
- var anObject$e = function (argument) {
496
- if (isObject$2(argument)) return argument;
497
- throw new $TypeError$8($String$2(argument) + ' is not an object');
498
- };
499
-
500
- var DESCRIPTORS$7 = descriptors;
501
- var IE8_DOM_DEFINE = ie8DomDefine;
502
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
503
- var anObject$d = anObject$e;
504
- var toPropertyKey = toPropertyKey$2;
505
-
506
- var $TypeError$7 = TypeError;
507
- // eslint-disable-next-line es/no-object-defineproperty -- safe
508
- var $defineProperty = Object.defineProperty;
509
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
510
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
511
- var ENUMERABLE = 'enumerable';
512
- var CONFIGURABLE$1 = 'configurable';
513
- var WRITABLE = 'writable';
514
-
515
- // `Object.defineProperty` method
516
- // https://tc39.es/ecma262/#sec-object.defineproperty
517
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
518
- anObject$d(O);
519
- P = toPropertyKey(P);
520
- anObject$d(Attributes);
521
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
522
- var current = $getOwnPropertyDescriptor(O, P);
523
- if (current && current[WRITABLE]) {
524
- O[P] = Attributes.value;
525
- Attributes = {
526
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
527
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
528
- writable: false
529
- };
530
- }
531
- } return $defineProperty(O, P, Attributes);
532
- } : $defineProperty : function defineProperty(O, P, Attributes) {
533
- anObject$d(O);
534
- P = toPropertyKey(P);
535
- anObject$d(Attributes);
536
- if (IE8_DOM_DEFINE) try {
537
- return $defineProperty(O, P, Attributes);
538
- } catch (error) { /* empty */ }
539
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
540
- if ('value' in Attributes) O[P] = Attributes.value;
541
- return O;
542
- };
543
-
544
- var DESCRIPTORS$6 = descriptors;
545
- var definePropertyModule$4 = objectDefineProperty;
546
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
547
-
548
- var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
549
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
550
- } : function (object, key, value) {
551
- object[key] = value;
552
- return object;
553
- };
554
-
555
- var makeBuiltIn$3 = {exports: {}};
556
-
557
- var DESCRIPTORS$5 = descriptors;
558
- var hasOwn$6 = hasOwnProperty_1;
559
-
560
- var FunctionPrototype = Function.prototype;
561
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
562
- var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
563
-
564
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
565
- // additional protection from minified / mangled / dropped function names
566
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
567
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
568
-
569
- var functionName = {
570
- EXISTS: EXISTS,
571
- PROPER: PROPER,
572
- CONFIGURABLE: CONFIGURABLE
573
- };
574
-
575
- var uncurryThis$9 = functionUncurryThis;
576
- var isCallable$8 = isCallable$e;
577
- var store$1 = sharedStoreExports;
578
-
579
- var functionToString = uncurryThis$9(Function.toString);
580
-
581
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
582
- if (!isCallable$8(store$1.inspectSource)) {
583
- store$1.inspectSource = function (it) {
584
- return functionToString(it);
585
- };
586
- }
587
-
588
- var inspectSource$1 = store$1.inspectSource;
589
-
590
- var global$4 = global$b;
591
- var isCallable$7 = isCallable$e;
592
-
593
- var WeakMap$1 = global$4.WeakMap;
594
-
595
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
596
-
597
- var shared$1 = shared$3;
598
- var uid = uid$2;
599
-
600
- var keys$1 = shared$1('keys');
601
-
602
- var sharedKey$3 = function (key) {
603
- return keys$1[key] || (keys$1[key] = uid(key));
604
- };
605
-
606
- var hiddenKeys$4 = {};
607
-
608
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
609
- var global$3 = global$b;
610
- var isObject$1 = isObject$6;
611
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
612
- var hasOwn$5 = hasOwnProperty_1;
613
- var shared = sharedStoreExports;
614
- var sharedKey$2 = sharedKey$3;
615
- var hiddenKeys$3 = hiddenKeys$4;
616
-
617
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
618
- var TypeError$1 = global$3.TypeError;
619
- var WeakMap = global$3.WeakMap;
620
- var set, get, has$6;
621
-
622
- var enforce = function (it) {
623
- return has$6(it) ? get(it) : set(it, {});
624
- };
625
-
626
- var getterFor = function (TYPE) {
627
- return function (it) {
628
- var state;
629
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
630
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
631
- } return state;
632
- };
633
- };
634
-
635
- if (NATIVE_WEAK_MAP || shared.state) {
636
- var store = shared.state || (shared.state = new WeakMap());
637
- /* eslint-disable no-self-assign -- prototype methods protection */
638
- store.get = store.get;
639
- store.has = store.has;
640
- store.set = store.set;
641
- /* eslint-enable no-self-assign -- prototype methods protection */
642
- set = function (it, metadata) {
643
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
644
- metadata.facade = it;
645
- store.set(it, metadata);
646
- return metadata;
647
- };
648
- get = function (it) {
649
- return store.get(it) || {};
650
- };
651
- has$6 = function (it) {
652
- return store.has(it);
653
- };
654
- } else {
655
- var STATE = sharedKey$2('state');
656
- hiddenKeys$3[STATE] = true;
657
- set = function (it, metadata) {
658
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
659
- metadata.facade = it;
660
- createNonEnumerableProperty$2(it, STATE, metadata);
661
- return metadata;
662
- };
663
- get = function (it) {
664
- return hasOwn$5(it, STATE) ? it[STATE] : {};
665
- };
666
- has$6 = function (it) {
667
- return hasOwn$5(it, STATE);
668
- };
669
- }
670
-
671
- var internalState = {
672
- set: set,
673
- get: get,
674
- has: has$6,
675
- enforce: enforce,
676
- getterFor: getterFor
677
- };
678
-
679
- var uncurryThis$8 = functionUncurryThis;
680
- var fails$7 = fails$e;
681
- var isCallable$6 = isCallable$e;
682
- var hasOwn$4 = hasOwnProperty_1;
683
- var DESCRIPTORS$4 = descriptors;
684
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
685
- var inspectSource = inspectSource$1;
686
- var InternalStateModule$1 = internalState;
687
-
688
- var enforceInternalState = InternalStateModule$1.enforce;
689
- var getInternalState = InternalStateModule$1.get;
690
- var $String$1 = String;
691
- // eslint-disable-next-line es/no-object-defineproperty -- safe
692
- var defineProperty$2 = Object.defineProperty;
693
- var stringSlice = uncurryThis$8(''.slice);
694
- var replace = uncurryThis$8(''.replace);
695
- var join = uncurryThis$8([].join);
696
-
697
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$7(function () {
698
- return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
699
- });
700
-
701
- var TEMPLATE = String(String).split('String');
702
-
703
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
704
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
705
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
706
- }
707
- if (options && options.getter) name = 'get ' + name;
708
- if (options && options.setter) name = 'set ' + name;
709
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
710
- if (DESCRIPTORS$4) defineProperty$2(value, 'name', { value: name, configurable: true });
711
- else value.name = name;
712
- }
713
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
714
- defineProperty$2(value, 'length', { value: options.arity });
715
- }
716
- try {
717
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
718
- if (DESCRIPTORS$4) defineProperty$2(value, 'prototype', { writable: false });
719
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
720
- } else if (value.prototype) value.prototype = undefined;
721
- } catch (error) { /* empty */ }
722
- var state = enforceInternalState(value);
723
- if (!hasOwn$4(state, 'source')) {
724
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
725
- } return value;
726
- };
727
-
728
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
729
- // eslint-disable-next-line no-extend-native -- required
730
- Function.prototype.toString = makeBuiltIn$2(function toString() {
731
- return isCallable$6(this) && getInternalState(this).source || inspectSource(this);
732
- }, 'toString');
733
-
734
- var makeBuiltInExports = makeBuiltIn$3.exports;
735
-
736
- var isCallable$5 = isCallable$e;
737
- var definePropertyModule$3 = objectDefineProperty;
738
- var makeBuiltIn$1 = makeBuiltInExports;
739
- var defineGlobalProperty$1 = defineGlobalProperty$3;
740
-
741
- var defineBuiltIn$3 = function (O, key, value, options) {
742
- if (!options) options = {};
743
- var simple = options.enumerable;
744
- var name = options.name !== undefined ? options.name : key;
745
- if (isCallable$5(value)) makeBuiltIn$1(value, name, options);
746
- if (options.global) {
747
- if (simple) O[key] = value;
748
- else defineGlobalProperty$1(key, value);
749
- } else {
750
- try {
751
- if (!options.unsafe) delete O[key];
752
- else if (O[key]) simple = true;
753
- } catch (error) { /* empty */ }
754
- if (simple) O[key] = value;
755
- else definePropertyModule$3.f(O, key, {
756
- value: value,
757
- enumerable: false,
758
- configurable: !options.nonConfigurable,
759
- writable: !options.nonWritable
760
- });
761
- } return O;
762
- };
763
-
764
- var objectGetOwnPropertyNames = {};
765
-
766
- var ceil = Math.ceil;
767
- var floor = Math.floor;
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$5 = 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$4 = toIntegerOrInfinity$5;
788
-
789
- var max$1 = 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$4(index);
797
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
798
- };
799
-
800
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$5;
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
- var len = toIntegerOrInfinity$3(argument);
808
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
809
- };
810
-
811
- var toLength = toLength$1;
812
-
813
- // `LengthOfArrayLike` abstract operation
814
- // https://tc39.es/ecma262/#sec-lengthofarraylike
815
- var lengthOfArrayLike$4 = function (obj) {
816
- return toLength(obj.length);
817
- };
818
-
819
- var toIndexedObject$2 = toIndexedObject$4;
820
- var toAbsoluteIndex = toAbsoluteIndex$1;
821
- var lengthOfArrayLike$3 = lengthOfArrayLike$4;
822
-
823
- // `Array.prototype.{ indexOf, includes }` methods implementation
824
- var createMethod = function (IS_INCLUDES) {
825
- return function ($this, el, fromIndex) {
826
- var O = toIndexedObject$2($this);
827
- var length = lengthOfArrayLike$3(O);
828
- if (length === 0) return !IS_INCLUDES && -1;
829
- var index = toAbsoluteIndex(fromIndex, length);
830
- var value;
831
- // Array#includes uses SameValueZero equality algorithm
832
- // eslint-disable-next-line no-self-compare -- NaN check
833
- if (IS_INCLUDES && el !== el) while (length > index) {
834
- value = O[index++];
835
- // eslint-disable-next-line no-self-compare -- NaN check
836
- if (value !== value) return true;
837
- // Array#indexOf ignores holes, Array#includes - not
838
- } else for (;length > index; index++) {
839
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
840
- } return !IS_INCLUDES && -1;
841
- };
842
- };
843
-
844
- var arrayIncludes = {
845
- // `Array.prototype.includes` method
846
- // https://tc39.es/ecma262/#sec-array.prototype.includes
847
- includes: createMethod(true),
848
- // `Array.prototype.indexOf` method
849
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
850
- indexOf: createMethod(false)
851
- };
852
-
853
- var uncurryThis$7 = functionUncurryThis;
854
- var hasOwn$3 = hasOwnProperty_1;
855
- var toIndexedObject$1 = toIndexedObject$4;
856
- var indexOf = arrayIncludes.indexOf;
857
- var hiddenKeys$2 = hiddenKeys$4;
858
-
859
- var push = uncurryThis$7([].push);
860
-
861
- var objectKeysInternal = function (object, names) {
862
- var O = toIndexedObject$1(object);
863
- var i = 0;
864
- var result = [];
865
- var key;
866
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
867
- // Don't enum bug & hidden keys
868
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
869
- ~indexOf(result, key) || push(result, key);
870
- }
871
- return result;
872
- };
873
-
874
- // IE8- don't enum bug keys
875
- var enumBugKeys$3 = [
876
- 'constructor',
877
- 'hasOwnProperty',
878
- 'isPrototypeOf',
879
- 'propertyIsEnumerable',
880
- 'toLocaleString',
881
- 'toString',
882
- 'valueOf'
883
- ];
884
-
885
- var internalObjectKeys$1 = objectKeysInternal;
886
- var enumBugKeys$2 = enumBugKeys$3;
887
-
888
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
889
-
890
- // `Object.getOwnPropertyNames` method
891
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
892
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
893
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
894
- return internalObjectKeys$1(O, hiddenKeys$1);
895
- };
896
-
897
- var objectGetOwnPropertySymbols = {};
898
-
899
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
900
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
901
-
902
- var getBuiltIn$2 = getBuiltIn$4;
903
- var uncurryThis$6 = functionUncurryThis;
904
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
905
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
906
- var anObject$c = anObject$e;
907
-
908
- var concat = uncurryThis$6([].concat);
909
-
910
- // all object keys, includes non-enumerable and symbols
911
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
912
- var keys = getOwnPropertyNamesModule.f(anObject$c(it));
913
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
914
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
915
- };
916
-
917
- var hasOwn$2 = hasOwnProperty_1;
918
- var ownKeys = ownKeys$1;
919
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
920
- var definePropertyModule$2 = objectDefineProperty;
921
-
922
- var copyConstructorProperties$1 = function (target, source, exceptions) {
923
- var keys = ownKeys(source);
924
- var defineProperty = definePropertyModule$2.f;
925
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
926
- for (var i = 0; i < keys.length; i++) {
927
- var key = keys[i];
928
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
929
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
930
- }
931
- }
932
- };
933
-
934
- var fails$6 = fails$e;
935
- var isCallable$4 = isCallable$e;
936
-
937
- var replacement = /#|\.prototype\./;
938
-
939
- var isForced$1 = function (feature, detection) {
940
- var value = data[normalize(feature)];
941
- return value === POLYFILL ? true
942
- : value === NATIVE ? false
943
- : isCallable$4(detection) ? fails$6(detection)
944
- : !!detection;
945
- };
946
-
947
- var normalize = isForced$1.normalize = function (string) {
948
- return String(string).replace(replacement, '.').toLowerCase();
949
- };
950
-
951
- var data = isForced$1.data = {};
952
- var NATIVE = isForced$1.NATIVE = 'N';
953
- var POLYFILL = isForced$1.POLYFILL = 'P';
954
-
955
- var isForced_1 = isForced$1;
956
-
957
- var global$2 = global$b;
958
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
959
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
960
- var defineBuiltIn$2 = defineBuiltIn$3;
961
- var defineGlobalProperty = defineGlobalProperty$3;
962
- var copyConstructorProperties = copyConstructorProperties$1;
963
- var isForced = isForced_1;
964
-
965
- /*
966
- options.target - name of the target object
967
- options.global - target is the global object
968
- options.stat - export as static methods of target
969
- options.proto - export as prototype methods of target
970
- options.real - real prototype method for the `pure` version
971
- options.forced - export even if the native feature is available
972
- options.bind - bind methods to the target, required for the `pure` version
973
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
974
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
975
- options.sham - add a flag to not completely full polyfills
976
- options.enumerable - export as enumerable property
977
- options.dontCallGetSet - prevent calling a getter on target
978
- options.name - the .name of the function if it does not match the key
979
- */
980
- var _export = function (options, source) {
981
- var TARGET = options.target;
982
- var GLOBAL = options.global;
983
- var STATIC = options.stat;
984
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
985
- if (GLOBAL) {
986
- target = global$2;
987
- } else if (STATIC) {
988
- target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
989
- } else {
990
- target = global$2[TARGET] && global$2[TARGET].prototype;
991
- }
992
- if (target) for (key in source) {
993
- sourceProperty = source[key];
994
- if (options.dontCallGetSet) {
995
- descriptor = getOwnPropertyDescriptor$1(target, key);
996
- targetProperty = descriptor && descriptor.value;
997
- } else targetProperty = target[key];
998
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
999
- // contained in target
1000
- if (!FORCED && targetProperty !== undefined) {
1001
- if (typeof sourceProperty == typeof targetProperty) continue;
1002
- copyConstructorProperties(sourceProperty, targetProperty);
1003
- }
1004
- // add a flag to not completely full polyfills
1005
- if (options.sham || (targetProperty && targetProperty.sham)) {
1006
- createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1007
- }
1008
- defineBuiltIn$2(target, key, sourceProperty, options);
1009
- }
1010
- };
1011
-
1012
- var classof$3 = classofRaw$2;
1013
-
1014
- // `IsArray` abstract operation
1015
- // https://tc39.es/ecma262/#sec-isarray
1016
- // eslint-disable-next-line es/no-array-isarray -- safe
1017
- var isArray$1 = Array.isArray || function isArray(argument) {
1018
- return classof$3(argument) === 'Array';
1019
- };
1020
-
1021
- var DESCRIPTORS$3 = descriptors;
1022
- var isArray = isArray$1;
1023
-
1024
- var $TypeError$6 = TypeError;
1025
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1026
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1027
-
1028
- // Safari < 13 does not throw an error in this case
1029
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
1030
- // makes no sense without proper strict mode support
1031
- if (this !== undefined) return true;
1032
- try {
1033
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1034
- Object.defineProperty([], 'length', { writable: false }).length = 1;
1035
- } catch (error) {
1036
- return error instanceof TypeError;
1037
- }
1038
- }();
1039
-
1040
- var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1041
- if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
1042
- throw new $TypeError$6('Cannot set read only .length');
1043
- } return O.length = length;
1044
- } : function (O, length) {
1045
- return O.length = length;
1046
- };
1047
-
1048
- var $TypeError$5 = TypeError;
1049
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1050
-
1051
- var doesNotExceedSafeInteger$1 = function (it) {
1052
- if (it > MAX_SAFE_INTEGER) throw $TypeError$5('Maximum allowed index exceeded');
1053
- return it;
1054
- };
1055
-
1056
- var $$e = _export;
1057
- var toObject$2 = toObject$4;
1058
- var lengthOfArrayLike$2 = lengthOfArrayLike$4;
1059
- var setArrayLength = arraySetLength;
1060
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1061
- var fails$5 = fails$e;
1062
-
1063
- var INCORRECT_TO_LENGTH = fails$5(function () {
1064
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1065
- });
1066
-
1067
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
1068
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1069
- var properErrorOnNonWritableLength = function () {
1070
- try {
1071
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1072
- Object.defineProperty([], 'length', { writable: false }).push();
1073
- } catch (error) {
1074
- return error instanceof TypeError;
1075
- }
1076
- };
1077
-
1078
- var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1079
-
1080
- // `Array.prototype.push` method
1081
- // https://tc39.es/ecma262/#sec-array.prototype.push
1082
- $$e({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
1083
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1084
- push: function push(item) {
1085
- var O = toObject$2(this);
1086
- var len = lengthOfArrayLike$2(O);
1087
- var argCount = arguments.length;
1088
- doesNotExceedSafeInteger(len + argCount);
1089
- for (var i = 0; i < argCount; i++) {
1090
- O[len] = arguments[i];
1091
- len++;
1092
- }
1093
- setArrayLength(O, len);
1094
- return len;
1095
- }
1096
- });
1097
-
1098
- var isPrototypeOf$1 = objectIsPrototypeOf;
1099
-
1100
- var $TypeError$4 = TypeError;
1101
-
1102
- var anInstance$1 = function (it, Prototype) {
1103
- if (isPrototypeOf$1(Prototype, it)) return it;
1104
- throw new $TypeError$4('Incorrect invocation');
1105
- };
1106
-
1107
- var fails$4 = fails$e;
1108
-
1109
- var correctPrototypeGetter = !fails$4(function () {
1110
- function F() { /* empty */ }
1111
- F.prototype.constructor = null;
1112
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1113
- return Object.getPrototypeOf(new F()) !== F.prototype;
1114
- });
1115
-
1116
- var hasOwn$1 = hasOwnProperty_1;
1117
- var isCallable$3 = isCallable$e;
1118
- var toObject$1 = toObject$4;
1119
- var sharedKey$1 = sharedKey$3;
1120
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1121
-
1122
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1123
- var $Object$1 = Object;
1124
- var ObjectPrototype = $Object$1.prototype;
1125
-
1126
- // `Object.getPrototypeOf` method
1127
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1128
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1129
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1130
- var object = toObject$1(O);
1131
- if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
1132
- var constructor = object.constructor;
1133
- if (isCallable$3(constructor) && object instanceof constructor) {
1134
- return constructor.prototype;
1135
- } return object instanceof $Object$1 ? ObjectPrototype : null;
1136
- };
1137
-
1138
- var makeBuiltIn = makeBuiltInExports;
1139
- var defineProperty$1 = objectDefineProperty;
1140
-
1141
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1142
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1143
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1144
- return defineProperty$1.f(target, name, descriptor);
1145
- };
1146
-
1147
- var DESCRIPTORS$2 = descriptors;
1148
- var definePropertyModule$1 = objectDefineProperty;
1149
- var createPropertyDescriptor = createPropertyDescriptor$3;
1150
-
1151
- var createProperty$1 = function (object, key, value) {
1152
- if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
1153
- else object[key] = value;
1154
- };
1155
-
1156
- var objectDefineProperties = {};
1157
-
1158
- var internalObjectKeys = objectKeysInternal;
1159
- var enumBugKeys$1 = enumBugKeys$3;
1160
-
1161
- // `Object.keys` method
1162
- // https://tc39.es/ecma262/#sec-object.keys
1163
- // eslint-disable-next-line es/no-object-keys -- safe
1164
- var objectKeys$1 = Object.keys || function keys(O) {
1165
- return internalObjectKeys(O, enumBugKeys$1);
1166
- };
1167
-
1168
- var DESCRIPTORS$1 = descriptors;
1169
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1170
- var definePropertyModule = objectDefineProperty;
1171
- var anObject$b = anObject$e;
1172
- var toIndexedObject = toIndexedObject$4;
1173
- var objectKeys = objectKeys$1;
1174
-
1175
- // `Object.defineProperties` method
1176
- // https://tc39.es/ecma262/#sec-object.defineproperties
1177
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1178
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1179
- anObject$b(O);
1180
- var props = toIndexedObject(Properties);
1181
- var keys = objectKeys(Properties);
1182
- var length = keys.length;
1183
- var index = 0;
1184
- var key;
1185
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1186
- return O;
1187
- };
1188
-
1189
- var getBuiltIn$1 = getBuiltIn$4;
1190
-
1191
- var html$1 = getBuiltIn$1('document', 'documentElement');
1192
-
1193
- /* global ActiveXObject -- old IE, WSH */
1194
- var anObject$a = anObject$e;
1195
- var definePropertiesModule = objectDefineProperties;
1196
- var enumBugKeys = enumBugKeys$3;
1197
- var hiddenKeys = hiddenKeys$4;
1198
- var html = html$1;
1199
- var documentCreateElement = documentCreateElement$1;
1200
- var sharedKey = sharedKey$3;
1201
-
1202
- var GT = '>';
1203
- var LT = '<';
1204
- var PROTOTYPE = 'prototype';
1205
- var SCRIPT = 'script';
1206
- var IE_PROTO = sharedKey('IE_PROTO');
1207
-
1208
- var EmptyConstructor = function () { /* empty */ };
1209
-
1210
- var scriptTag = function (content) {
1211
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1212
- };
1213
-
1214
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1215
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1216
- activeXDocument.write(scriptTag(''));
1217
- activeXDocument.close();
1218
- var temp = activeXDocument.parentWindow.Object;
1219
- activeXDocument = null; // avoid memory leak
1220
- return temp;
1221
- };
1222
-
1223
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1224
- var NullProtoObjectViaIFrame = function () {
1225
- // Thrash, waste and sodomy: IE GC bug
1226
- var iframe = documentCreateElement('iframe');
1227
- var JS = 'java' + SCRIPT + ':';
1228
- var iframeDocument;
1229
- iframe.style.display = 'none';
1230
- html.appendChild(iframe);
1231
- // https://github.com/zloirock/core-js/issues/475
1232
- iframe.src = String(JS);
1233
- iframeDocument = iframe.contentWindow.document;
1234
- iframeDocument.open();
1235
- iframeDocument.write(scriptTag('document.F=Object'));
1236
- iframeDocument.close();
1237
- return iframeDocument.F;
1238
- };
1239
-
1240
- // Check for document.domain and active x support
1241
- // No need to use active x approach when document.domain is not set
1242
- // see https://github.com/es-shims/es5-shim/issues/150
1243
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1244
- // avoid IE GC bug
1245
- var activeXDocument;
1246
- var NullProtoObject = function () {
1247
- try {
1248
- activeXDocument = new ActiveXObject('htmlfile');
1249
- } catch (error) { /* ignore */ }
1250
- NullProtoObject = typeof document != 'undefined'
1251
- ? document.domain && activeXDocument
1252
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1253
- : NullProtoObjectViaIFrame()
1254
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1255
- var length = enumBugKeys.length;
1256
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1257
- return NullProtoObject();
1258
- };
1259
-
1260
- hiddenKeys[IE_PROTO] = true;
1261
-
1262
- // `Object.create` method
1263
- // https://tc39.es/ecma262/#sec-object.create
1264
- // eslint-disable-next-line es/no-object-create -- safe
1265
- var objectCreate = Object.create || function create(O, Properties) {
1266
- var result;
1267
- if (O !== null) {
1268
- EmptyConstructor[PROTOTYPE] = anObject$a(O);
1269
- result = new EmptyConstructor();
1270
- EmptyConstructor[PROTOTYPE] = null;
1271
- // add "__proto__" for Object.getPrototypeOf polyfill
1272
- result[IE_PROTO] = O;
1273
- } else result = NullProtoObject();
1274
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1275
- };
1276
-
1277
- var fails$3 = fails$e;
1278
- var isCallable$2 = isCallable$e;
1279
- var isObject = isObject$6;
1280
- var getPrototypeOf$1 = objectGetPrototypeOf;
1281
- var defineBuiltIn$1 = defineBuiltIn$3;
1282
- var wellKnownSymbol$7 = wellKnownSymbol$9;
1283
-
1284
- var ITERATOR$3 = wellKnownSymbol$7('iterator');
1285
- var BUGGY_SAFARI_ITERATORS = false;
1286
-
1287
- // `%IteratorPrototype%` object
1288
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1289
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1290
-
1291
- /* eslint-disable es/no-array-prototype-keys -- safe */
1292
- if ([].keys) {
1293
- arrayIterator = [].keys();
1294
- // Safari 8 has buggy iterators w/o `next`
1295
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1296
- else {
1297
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1298
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1299
- }
1300
- }
1301
-
1302
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$3(function () {
1303
- var test = {};
1304
- // FF44- legacy iterators case
1305
- return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
1306
- });
1307
-
1308
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1309
-
1310
- // `%IteratorPrototype%[@@iterator]()` method
1311
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1312
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$3])) {
1313
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
1314
- return this;
1315
- });
1316
- }
1317
-
1318
- var iteratorsCore = {
1319
- IteratorPrototype: IteratorPrototype$2,
1320
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1321
- };
1322
-
1323
- var $$d = _export;
1324
- var global$1 = global$b;
1325
- var anInstance = anInstance$1;
1326
- var anObject$9 = anObject$e;
1327
- var isCallable$1 = isCallable$e;
1328
- var getPrototypeOf = objectGetPrototypeOf;
1329
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1330
- var createProperty = createProperty$1;
1331
- var fails$2 = fails$e;
1332
- var hasOwn = hasOwnProperty_1;
1333
- var wellKnownSymbol$6 = wellKnownSymbol$9;
1334
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1335
- var DESCRIPTORS = descriptors;
1336
-
1337
- var CONSTRUCTOR = 'constructor';
1338
- var ITERATOR$2 = 'Iterator';
1339
- var TO_STRING_TAG$3 = wellKnownSymbol$6('toStringTag');
1340
-
1341
- var $TypeError$3 = TypeError;
1342
- var NativeIterator = global$1[ITERATOR$2];
1343
-
1344
- // FF56- have non-standard global helper `Iterator`
1345
- var FORCED$1 = !isCallable$1(NativeIterator)
1346
- || NativeIterator.prototype !== IteratorPrototype$1
1347
- // FF44- non-standard `Iterator` passes previous tests
1348
- || !fails$2(function () { NativeIterator({}); });
1349
-
1350
- var IteratorConstructor = function Iterator() {
1351
- anInstance(this, IteratorPrototype$1);
1352
- if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$3('Abstract class Iterator not directly constructable');
1353
- };
1354
-
1355
- var defineIteratorPrototypeAccessor = function (key, value) {
1356
- if (DESCRIPTORS) {
1357
- defineBuiltInAccessor(IteratorPrototype$1, key, {
1358
- configurable: true,
1359
- get: function () {
1360
- return value;
1361
- },
1362
- set: function (replacement) {
1363
- anObject$9(this);
1364
- if (this === IteratorPrototype$1) throw new $TypeError$3("You can't redefine this property");
1365
- if (hasOwn(this, key)) this[key] = replacement;
1366
- else createProperty(this, key, replacement);
1367
- }
1368
- });
1369
- } else IteratorPrototype$1[key] = value;
1370
- };
1371
-
1372
- if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
1373
-
1374
- if (FORCED$1 || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1375
- defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1376
- }
1377
-
1378
- IteratorConstructor.prototype = IteratorPrototype$1;
1379
-
1380
- // `Iterator` constructor
1381
- // https://github.com/tc39/proposal-iterator-helpers
1382
- $$d({ global: true, constructor: true, forced: FORCED$1 }, {
1383
- Iterator: IteratorConstructor
1384
- });
1385
-
1386
- // `GetIteratorDirect(obj)` abstract operation
1387
- // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1388
- var getIteratorDirect$5 = function (obj) {
1389
- return {
1390
- iterator: obj,
1391
- next: obj.next,
1392
- done: false
1393
- };
1394
- };
1395
-
1396
- var defineBuiltIn = defineBuiltIn$3;
1397
-
1398
- var defineBuiltIns$1 = function (target, src, options) {
1399
- for (var key in src) defineBuiltIn(target, key, src[key], options);
1400
- return target;
1401
- };
1402
-
1403
- // `CreateIterResultObject` abstract operation
1404
- // https://tc39.es/ecma262/#sec-createiterresultobject
1405
- var createIterResultObject$1 = function (value, done) {
1406
- return { value: value, done: done };
1407
- };
1408
-
1409
- var call$7 = functionCall;
1410
- var anObject$8 = anObject$e;
1411
- var getMethod$2 = getMethod$4;
1412
-
1413
- var iteratorClose$5 = function (iterator, kind, value) {
1414
- var innerResult, innerError;
1415
- anObject$8(iterator);
1416
- try {
1417
- innerResult = getMethod$2(iterator, 'return');
1418
- if (!innerResult) {
1419
- if (kind === 'throw') throw value;
1420
- return value;
1421
- }
1422
- innerResult = call$7(innerResult, iterator);
1423
- } catch (error) {
1424
- innerError = true;
1425
- innerResult = error;
1426
- }
1427
- if (kind === 'throw') throw value;
1428
- if (innerError) throw innerResult;
1429
- anObject$8(innerResult);
1430
- return value;
1431
- };
1432
-
1433
- var call$6 = functionCall;
1434
- var create$1 = objectCreate;
1435
- var createNonEnumerableProperty = createNonEnumerableProperty$3;
1436
- var defineBuiltIns = defineBuiltIns$1;
1437
- var wellKnownSymbol$5 = wellKnownSymbol$9;
1438
- var InternalStateModule = internalState;
1439
- var getMethod$1 = getMethod$4;
1440
- var IteratorPrototype = iteratorsCore.IteratorPrototype;
1441
- var createIterResultObject = createIterResultObject$1;
1442
- var iteratorClose$4 = iteratorClose$5;
1443
-
1444
- var TO_STRING_TAG$2 = wellKnownSymbol$5('toStringTag');
1445
- var ITERATOR_HELPER = 'IteratorHelper';
1446
- var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1447
- var setInternalState = InternalStateModule.set;
1448
-
1449
- var createIteratorProxyPrototype = function (IS_ITERATOR) {
1450
- var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1451
-
1452
- return defineBuiltIns(create$1(IteratorPrototype), {
1453
- next: function next() {
1454
- var state = getInternalState(this);
1455
- // for simplification:
1456
- // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
1457
- // for `%IteratorHelperPrototype%.next` - just a value
1458
- if (IS_ITERATOR) return state.nextHandler();
1459
- try {
1460
- var result = state.done ? undefined : state.nextHandler();
1461
- return createIterResultObject(result, state.done);
1462
- } catch (error) {
1463
- state.done = true;
1464
- throw error;
1465
- }
1466
- },
1467
- 'return': function () {
1468
- var state = getInternalState(this);
1469
- var iterator = state.iterator;
1470
- state.done = true;
1471
- if (IS_ITERATOR) {
1472
- var returnMethod = getMethod$1(iterator, 'return');
1473
- return returnMethod ? call$6(returnMethod, iterator) : createIterResultObject(undefined, true);
1474
- }
1475
- if (state.inner) try {
1476
- iteratorClose$4(state.inner.iterator, 'normal');
1477
- } catch (error) {
1478
- return iteratorClose$4(iterator, 'throw', error);
1479
- }
1480
- iteratorClose$4(iterator, 'normal');
1481
- return createIterResultObject(undefined, true);
1482
- }
1483
- });
1484
- };
1485
-
1486
- var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1487
- var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1488
-
1489
- createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG$2, 'Iterator Helper');
1490
-
1491
- var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1492
- var IteratorProxy = function Iterator(record, state) {
1493
- if (state) {
1494
- state.iterator = record.iterator;
1495
- state.next = record.next;
1496
- } else state = record;
1497
- state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
1498
- state.nextHandler = nextHandler;
1499
- state.counter = 0;
1500
- state.done = false;
1501
- setInternalState(this, state);
1502
- };
1503
-
1504
- IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
1505
-
1506
- return IteratorProxy;
1507
- };
1508
-
1509
- var anObject$7 = anObject$e;
1510
- var iteratorClose$3 = iteratorClose$5;
1511
-
1512
- // call something on iterator step with safe closing on error
1513
- var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
1514
- try {
1515
- return ENTRIES ? fn(anObject$7(value)[0], value[1]) : fn(value);
1516
- } catch (error) {
1517
- iteratorClose$3(iterator, 'throw', error);
1518
- }
1519
- };
1520
-
1521
- var $$c = _export;
1522
- var call$5 = functionCall;
1523
- var aCallable$7 = aCallable$9;
1524
- var anObject$6 = anObject$e;
1525
- var getIteratorDirect$4 = getIteratorDirect$5;
1526
- var createIteratorProxy$1 = iteratorCreateProxy;
1527
- var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
1528
- var IS_PURE$1 = isPure;
1529
-
1530
- var IteratorProxy$1 = createIteratorProxy$1(function () {
1531
- var iterator = this.iterator;
1532
- var predicate = this.predicate;
1533
- var next = this.next;
1534
- var result, done, value;
1535
- while (true) {
1536
- result = anObject$6(call$5(next, iterator));
1537
- done = this.done = !!result.done;
1538
- if (done) return;
1539
- value = result.value;
1540
- if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
1541
- }
1542
- });
1543
-
1544
- // `Iterator.prototype.filter` method
1545
- // https://github.com/tc39/proposal-iterator-helpers
1546
- $$c({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1547
- filter: function filter(predicate) {
1548
- anObject$6(this);
1549
- aCallable$7(predicate);
1550
- return new IteratorProxy$1(getIteratorDirect$4(this), {
1551
- predicate: predicate
1552
- });
1553
- }
1554
- });
1555
-
1556
- var classofRaw$1 = classofRaw$2;
1557
- var uncurryThis$5 = functionUncurryThis;
1558
-
1559
- var functionUncurryThisClause = function (fn) {
1560
- // Nashorn bug:
1561
- // https://github.com/zloirock/core-js/issues/1128
1562
- // https://github.com/zloirock/core-js/issues/1130
1563
- if (classofRaw$1(fn) === 'Function') return uncurryThis$5(fn);
1564
- };
1565
-
1566
- var uncurryThis$4 = functionUncurryThisClause;
1567
- var aCallable$6 = aCallable$9;
1568
- var NATIVE_BIND = functionBindNative;
1569
-
1570
- var bind$1 = uncurryThis$4(uncurryThis$4.bind);
1571
-
1572
- // optional / simple context binding
1573
- var functionBindContext = function (fn, that) {
1574
- aCallable$6(fn);
1575
- return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1576
- return fn.apply(that, arguments);
1577
- };
1578
- };
1579
-
1580
- var iterators = {};
1581
-
1582
- var wellKnownSymbol$4 = wellKnownSymbol$9;
1583
- var Iterators$1 = iterators;
1584
-
1585
- var ITERATOR$1 = wellKnownSymbol$4('iterator');
1586
- var ArrayPrototype$1 = Array.prototype;
1587
-
1588
- // check on default Array iterator
1589
- var isArrayIteratorMethod$1 = function (it) {
1590
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype$1[ITERATOR$1] === it);
1591
- };
1592
-
1593
- var wellKnownSymbol$3 = wellKnownSymbol$9;
1594
-
1595
- var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1596
- var test = {};
1597
-
1598
- test[TO_STRING_TAG$1] = 'z';
1599
-
1600
- var toStringTagSupport = String(test) === '[object z]';
1601
-
1602
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1603
- var isCallable = isCallable$e;
1604
- var classofRaw = classofRaw$2;
1605
- var wellKnownSymbol$2 = wellKnownSymbol$9;
1606
-
1607
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1608
- var $Object = Object;
1609
-
1610
- // ES3 wrong here
1611
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1612
-
1613
- // fallback for IE11 Script Access Denied error
1614
- var tryGet = function (it, key) {
1615
- try {
1616
- return it[key];
1617
- } catch (error) { /* empty */ }
1618
- };
1619
-
1620
- // getting tag from ES6+ `Object.prototype.toString`
1621
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1622
- var O, tag, result;
1623
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1624
- // @@toStringTag case
1625
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1626
- // builtinTag case
1627
- : CORRECT_ARGUMENTS ? classofRaw(O)
1628
- // ES3 arguments fallback
1629
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1630
- };
1631
-
1632
- var classof$1 = classof$2;
1633
- var getMethod = getMethod$4;
1634
- var isNullOrUndefined = isNullOrUndefined$3;
1635
- var Iterators = iterators;
1636
- var wellKnownSymbol$1 = wellKnownSymbol$9;
1637
-
1638
- var ITERATOR = wellKnownSymbol$1('iterator');
1639
-
1640
- var getIteratorMethod$2 = function (it) {
1641
- if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
1642
- || getMethod(it, '@@iterator')
1643
- || Iterators[classof$1(it)];
1644
- };
1645
-
1646
- var call$4 = functionCall;
1647
- var aCallable$5 = aCallable$9;
1648
- var anObject$5 = anObject$e;
1649
- var tryToString$1 = tryToString$3;
1650
- var getIteratorMethod$1 = getIteratorMethod$2;
1651
-
1652
- var $TypeError$2 = TypeError;
1653
-
1654
- var getIterator$1 = function (argument, usingIterator) {
1655
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1656
- if (aCallable$5(iteratorMethod)) return anObject$5(call$4(iteratorMethod, argument));
1657
- throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
1658
- };
1659
-
1660
- var bind = functionBindContext;
1661
- var call$3 = functionCall;
1662
- var anObject$4 = anObject$e;
1663
- var tryToString = tryToString$3;
1664
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1665
- var lengthOfArrayLike$1 = lengthOfArrayLike$4;
1666
- var isPrototypeOf = objectIsPrototypeOf;
1667
- var getIterator = getIterator$1;
1668
- var getIteratorMethod = getIteratorMethod$2;
1669
- var iteratorClose$2 = iteratorClose$5;
1670
-
1671
- var $TypeError$1 = TypeError;
1672
-
1673
- var Result = function (stopped, result) {
1674
- this.stopped = stopped;
1675
- this.result = result;
1676
- };
1677
-
1678
- var ResultPrototype = Result.prototype;
1679
-
1680
- var iterate$4 = function (iterable, unboundFunction, options) {
1681
- var that = options && options.that;
1682
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1683
- var IS_RECORD = !!(options && options.IS_RECORD);
1684
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1685
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1686
- var fn = bind(unboundFunction, that);
1687
- var iterator, iterFn, index, length, result, next, step;
1688
-
1689
- var stop = function (condition) {
1690
- if (iterator) iteratorClose$2(iterator, 'normal', condition);
1691
- return new Result(true, condition);
1692
- };
1693
-
1694
- var callFn = function (value) {
1695
- if (AS_ENTRIES) {
1696
- anObject$4(value);
1697
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1698
- } return INTERRUPTED ? fn(value, stop) : fn(value);
1699
- };
1700
-
1701
- if (IS_RECORD) {
1702
- iterator = iterable.iterator;
1703
- } else if (IS_ITERATOR) {
1704
- iterator = iterable;
1705
- } else {
1706
- iterFn = getIteratorMethod(iterable);
1707
- if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
1708
- // optimisation for array iterators
1709
- if (isArrayIteratorMethod(iterFn)) {
1710
- for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
1711
- result = callFn(iterable[index]);
1712
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
1713
- } return new Result(false);
1714
- }
1715
- iterator = getIterator(iterable, iterFn);
1716
- }
1717
-
1718
- next = IS_RECORD ? iterable.next : iterator.next;
1719
- while (!(step = call$3(next, iterator)).done) {
1720
- try {
1721
- result = callFn(step.value);
1722
- } catch (error) {
1723
- iteratorClose$2(iterator, 'throw', error);
1724
- }
1725
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1726
- } return new Result(false);
1727
- };
1728
-
1729
- var $$b = _export;
1730
- var iterate$3 = iterate$4;
1731
- var aCallable$4 = aCallable$9;
1732
- var anObject$3 = anObject$e;
1733
- var getIteratorDirect$3 = getIteratorDirect$5;
1734
-
1735
- // `Iterator.prototype.forEach` method
1736
- // https://github.com/tc39/proposal-iterator-helpers
1737
- $$b({ target: 'Iterator', proto: true, real: true }, {
1738
- forEach: function forEach(fn) {
1739
- anObject$3(this);
1740
- aCallable$4(fn);
1741
- var record = getIteratorDirect$3(this);
1742
- var counter = 0;
1743
- iterate$3(record, function (value) {
1744
- fn(value, counter++);
1745
- }, { IS_RECORD: true });
1746
- }
1747
- });
1748
-
1749
- var call$2 = functionCall;
1750
- var aCallable$3 = aCallable$9;
1751
- var anObject$2 = anObject$e;
1752
- var getIteratorDirect$2 = getIteratorDirect$5;
1753
- var createIteratorProxy = iteratorCreateProxy;
1754
- var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
1755
-
1756
- var IteratorProxy = createIteratorProxy(function () {
1757
- var iterator = this.iterator;
1758
- var result = anObject$2(call$2(this.next, iterator));
1759
- var done = this.done = !!result.done;
1760
- if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1761
- });
1762
-
1763
- // `Iterator.prototype.map` method
1764
- // https://github.com/tc39/proposal-iterator-helpers
1765
- var iteratorMap = function map(mapper) {
1766
- anObject$2(this);
1767
- aCallable$3(mapper);
1768
- return new IteratorProxy(getIteratorDirect$2(this), {
1769
- mapper: mapper
1770
- });
1771
- };
1772
-
1773
- var $$a = _export;
1774
- var map = iteratorMap;
1775
- var IS_PURE = isPure;
1776
-
1777
- // `Iterator.prototype.map` method
1778
- // https://github.com/tc39/proposal-iterator-helpers
1779
- $$a({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
1780
- map: map
1781
- });
1782
-
1783
- var uncurryThis$3 = functionUncurryThis;
1784
-
1785
- // eslint-disable-next-line es/no-set -- safe
1786
- var SetPrototype$1 = Set.prototype;
1787
-
1788
- var setHelpers = {
1789
- // eslint-disable-next-line es/no-set -- safe
1790
- Set: Set,
1791
- add: uncurryThis$3(SetPrototype$1.add),
1792
- has: uncurryThis$3(SetPrototype$1.has),
1793
- remove: uncurryThis$3(SetPrototype$1['delete']),
1794
- proto: SetPrototype$1
1795
- };
1796
-
1797
- var has$5 = setHelpers.has;
1798
-
1799
- // Perform ? RequireInternalSlot(M, [[SetData]])
1800
- var aSet$7 = function (it) {
1801
- has$5(it);
1802
- return it;
1803
- };
1804
-
1805
- var call$1 = functionCall;
1806
-
1807
- var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
1808
- var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
1809
- var next = record.next;
1810
- var step, result;
1811
- while (!(step = call$1(next, iterator)).done) {
1812
- result = fn(step.value);
1813
- if (result !== undefined) return result;
1814
- }
1815
- };
1816
-
1817
- var uncurryThis$2 = functionUncurryThis;
1818
- var iterateSimple$6 = iterateSimple$7;
1819
- var SetHelpers$5 = setHelpers;
1820
-
1821
- var Set$3 = SetHelpers$5.Set;
1822
- var SetPrototype = SetHelpers$5.proto;
1823
- var forEach = uncurryThis$2(SetPrototype.forEach);
1824
- var keys = uncurryThis$2(SetPrototype.keys);
1825
- var next = keys(new Set$3()).next;
1826
-
1827
- var setIterate = function (set, fn, interruptible) {
1828
- return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
1829
- };
1830
-
1831
- var SetHelpers$4 = setHelpers;
1832
- var iterate$2 = setIterate;
1833
-
1834
- var Set$2 = SetHelpers$4.Set;
1835
- var add$3 = SetHelpers$4.add;
1836
-
1837
- var setClone = function (set) {
1838
- var result = new Set$2();
1839
- iterate$2(set, function (it) {
1840
- add$3(result, it);
1841
- });
1842
- return result;
1843
- };
1844
-
1845
- var uncurryThis$1 = functionUncurryThis;
1846
- var aCallable$2 = aCallable$9;
1847
-
1848
- var functionUncurryThisAccessor = function (object, key, method) {
1849
- try {
1850
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1851
- return uncurryThis$1(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
1852
- } catch (error) { /* empty */ }
1853
- };
1854
-
1855
- var uncurryThisAccessor = functionUncurryThisAccessor;
1856
- var SetHelpers$3 = setHelpers;
1857
-
1858
- var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
1859
- return set.size;
1860
- };
1861
-
1862
- var aCallable$1 = aCallable$9;
1863
- var anObject$1 = anObject$e;
1864
- var call = functionCall;
1865
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
1866
- var getIteratorDirect$1 = getIteratorDirect$5;
1867
-
1868
- var INVALID_SIZE = 'Invalid size';
1869
- var $RangeError = RangeError;
1870
- var $TypeError = TypeError;
1871
- var max = Math.max;
1872
-
1873
- var SetRecord = function (set, intSize) {
1874
- this.set = set;
1875
- this.size = max(intSize, 0);
1876
- this.has = aCallable$1(set.has);
1877
- this.keys = aCallable$1(set.keys);
1878
- };
1879
-
1880
- SetRecord.prototype = {
1881
- getIterator: function () {
1882
- return getIteratorDirect$1(anObject$1(call(this.keys, this.set)));
1883
- },
1884
- includes: function (it) {
1885
- return call(this.has, this.set, it);
1886
- }
1887
- };
1888
-
1889
- // `GetSetRecord` abstract operation
1890
- // https://tc39.es/proposal-set-methods/#sec-getsetrecord
1891
- var getSetRecord$7 = function (obj) {
1892
- anObject$1(obj);
1893
- var numSize = +obj.size;
1894
- // NOTE: If size is undefined, then numSize will be NaN
1895
- // eslint-disable-next-line no-self-compare -- NaN check
1896
- if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
1897
- var intSize = toIntegerOrInfinity$2(numSize);
1898
- if (intSize < 0) throw new $RangeError(INVALID_SIZE);
1899
- return new SetRecord(obj, intSize);
1900
- };
1901
-
1902
- var aSet$6 = aSet$7;
1903
- var SetHelpers$2 = setHelpers;
1904
- var clone$2 = setClone;
1905
- var size$4 = setSize;
1906
- var getSetRecord$6 = getSetRecord$7;
1907
- var iterateSet$2 = setIterate;
1908
- var iterateSimple$5 = iterateSimple$7;
1909
-
1910
- var has$4 = SetHelpers$2.has;
1911
- var remove$1 = SetHelpers$2.remove;
1912
-
1913
- // `Set.prototype.difference` method
1914
- // https://github.com/tc39/proposal-set-methods
1915
- var setDifference = function difference(other) {
1916
- var O = aSet$6(this);
1917
- var otherRec = getSetRecord$6(other);
1918
- var result = clone$2(O);
1919
- if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
1920
- if (otherRec.includes(e)) remove$1(result, e);
1921
- });
1922
- else iterateSimple$5(otherRec.getIterator(), function (e) {
1923
- if (has$4(O, e)) remove$1(result, e);
1924
- });
1925
- return result;
1926
- };
1927
-
1928
- var getBuiltIn = getBuiltIn$4;
1929
-
1930
- var createSetLike = function (size) {
1931
- return {
1932
- size: size,
1933
- has: function () {
1934
- return false;
1935
- },
1936
- keys: function () {
1937
- return {
1938
- next: function () {
1939
- return { done: true };
1940
- }
1941
- };
1942
- }
1943
- };
1944
- };
1945
-
1946
- var setMethodAcceptSetLike$7 = function (name) {
1947
- var Set = getBuiltIn('Set');
1948
- try {
1949
- new Set()[name](createSetLike(0));
1950
- try {
1951
- // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
1952
- // https://github.com/tc39/proposal-set-methods/pull/88
1953
- new Set()[name](createSetLike(-1));
1954
- return false;
1955
- } catch (error2) {
1956
- return true;
1957
- }
1958
- } catch (error) {
1959
- return false;
1960
- }
1961
- };
1962
-
1963
- var $$9 = _export;
1964
- var difference = setDifference;
1965
- var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
1966
-
1967
- // `Set.prototype.difference` method
1968
- // https://github.com/tc39/proposal-set-methods
1969
- $$9({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
1970
- difference: difference
1971
- });
1972
-
1973
- var aSet$5 = aSet$7;
1974
- var SetHelpers$1 = setHelpers;
1975
- var size$3 = setSize;
1976
- var getSetRecord$5 = getSetRecord$7;
1977
- var iterateSet$1 = setIterate;
1978
- var iterateSimple$4 = iterateSimple$7;
1979
-
1980
- var Set$1 = SetHelpers$1.Set;
1981
- var add$2 = SetHelpers$1.add;
1982
- var has$3 = SetHelpers$1.has;
1983
-
1984
- // `Set.prototype.intersection` method
1985
- // https://github.com/tc39/proposal-set-methods
1986
- var setIntersection = function intersection(other) {
1987
- var O = aSet$5(this);
1988
- var otherRec = getSetRecord$5(other);
1989
- var result = new Set$1();
1990
-
1991
- if (size$3(O) > otherRec.size) {
1992
- iterateSimple$4(otherRec.getIterator(), function (e) {
1993
- if (has$3(O, e)) add$2(result, e);
1994
- });
1995
- } else {
1996
- iterateSet$1(O, function (e) {
1997
- if (otherRec.includes(e)) add$2(result, e);
1998
- });
1999
- }
2000
-
2001
- return result;
2002
- };
2003
-
2004
- var $$8 = _export;
2005
- var fails$1 = fails$e;
2006
- var intersection = setIntersection;
2007
- var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
2008
-
2009
- var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$1(function () {
2010
- // eslint-disable-next-line es/no-array-from, es/no-set -- testing
2011
- return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
2012
- });
2013
-
2014
- // `Set.prototype.intersection` method
2015
- // https://github.com/tc39/proposal-set-methods
2016
- $$8({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
2017
- intersection: intersection
2018
- });
2019
-
2020
- var aSet$4 = aSet$7;
2021
- var has$2 = setHelpers.has;
2022
- var size$2 = setSize;
2023
- var getSetRecord$4 = getSetRecord$7;
2024
- var iterateSet = setIterate;
2025
- var iterateSimple$3 = iterateSimple$7;
2026
- var iteratorClose$1 = iteratorClose$5;
2027
-
2028
- // `Set.prototype.isDisjointFrom` method
2029
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
2030
- var setIsDisjointFrom = function isDisjointFrom(other) {
2031
- var O = aSet$4(this);
2032
- var otherRec = getSetRecord$4(other);
2033
- if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
2034
- if (otherRec.includes(e)) return false;
2035
- }, true) !== false;
2036
- var iterator = otherRec.getIterator();
2037
- return iterateSimple$3(iterator, function (e) {
2038
- if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
2039
- }) !== false;
2040
- };
2041
-
2042
- var $$7 = _export;
2043
- var isDisjointFrom = setIsDisjointFrom;
2044
- var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
2045
-
2046
- // `Set.prototype.isDisjointFrom` method
2047
- // https://github.com/tc39/proposal-set-methods
2048
- $$7({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
2049
- isDisjointFrom: isDisjointFrom
2050
- });
2051
-
2052
- var aSet$3 = aSet$7;
2053
- var size$1 = setSize;
2054
- var iterate$1 = setIterate;
2055
- var getSetRecord$3 = getSetRecord$7;
2056
-
2057
- // `Set.prototype.isSubsetOf` method
2058
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
2059
- var setIsSubsetOf = function isSubsetOf(other) {
2060
- var O = aSet$3(this);
2061
- var otherRec = getSetRecord$3(other);
2062
- if (size$1(O) > otherRec.size) return false;
2063
- return iterate$1(O, function (e) {
2064
- if (!otherRec.includes(e)) return false;
2065
- }, true) !== false;
2066
- };
2067
-
2068
- var $$6 = _export;
2069
- var isSubsetOf = setIsSubsetOf;
2070
- var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
2071
-
2072
- // `Set.prototype.isSubsetOf` method
2073
- // https://github.com/tc39/proposal-set-methods
2074
- $$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
2075
- isSubsetOf: isSubsetOf
2076
- });
2077
-
2078
- var aSet$2 = aSet$7;
2079
- var has$1 = setHelpers.has;
2080
- var size = setSize;
2081
- var getSetRecord$2 = getSetRecord$7;
2082
- var iterateSimple$2 = iterateSimple$7;
2083
- var iteratorClose = iteratorClose$5;
2084
-
2085
- // `Set.prototype.isSupersetOf` method
2086
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
2087
- var setIsSupersetOf = function isSupersetOf(other) {
2088
- var O = aSet$2(this);
2089
- var otherRec = getSetRecord$2(other);
2090
- if (size(O) < otherRec.size) return false;
2091
- var iterator = otherRec.getIterator();
2092
- return iterateSimple$2(iterator, function (e) {
2093
- if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
2094
- }) !== false;
2095
- };
2096
-
2097
- var $$5 = _export;
2098
- var isSupersetOf = setIsSupersetOf;
2099
- var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
2100
-
2101
- // `Set.prototype.isSupersetOf` method
2102
- // https://github.com/tc39/proposal-set-methods
2103
- $$5({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
2104
- isSupersetOf: isSupersetOf
2105
- });
2106
-
2107
- var aSet$1 = aSet$7;
2108
- var SetHelpers = setHelpers;
2109
- var clone$1 = setClone;
2110
- var getSetRecord$1 = getSetRecord$7;
2111
- var iterateSimple$1 = iterateSimple$7;
2112
-
2113
- var add$1 = SetHelpers.add;
2114
- var has = SetHelpers.has;
2115
- var remove = SetHelpers.remove;
2116
-
2117
- // `Set.prototype.symmetricDifference` method
2118
- // https://github.com/tc39/proposal-set-methods
2119
- var setSymmetricDifference = function symmetricDifference(other) {
2120
- var O = aSet$1(this);
2121
- var keysIter = getSetRecord$1(other).getIterator();
2122
- var result = clone$1(O);
2123
- iterateSimple$1(keysIter, function (e) {
2124
- if (has(O, e)) remove(result, e);
2125
- else add$1(result, e);
2126
- });
2127
- return result;
2128
- };
2129
-
2130
- var $$4 = _export;
2131
- var symmetricDifference = setSymmetricDifference;
2132
- var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
2133
-
2134
- // `Set.prototype.symmetricDifference` method
2135
- // https://github.com/tc39/proposal-set-methods
2136
- $$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
2137
- symmetricDifference: symmetricDifference
2138
- });
2139
-
2140
- var aSet = aSet$7;
2141
- var add = setHelpers.add;
2142
- var clone = setClone;
2143
- var getSetRecord = getSetRecord$7;
2144
- var iterateSimple = iterateSimple$7;
2145
-
2146
- // `Set.prototype.union` method
2147
- // https://github.com/tc39/proposal-set-methods
2148
- var setUnion = function union(other) {
2149
- var O = aSet(this);
2150
- var keysIter = getSetRecord(other).getIterator();
2151
- var result = clone(O);
2152
- iterateSimple(keysIter, function (it) {
2153
- add(result, it);
2154
- });
2155
- return result;
2156
- };
2157
-
2158
- var $$3 = _export;
2159
- var union = setUnion;
2160
- var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
2161
-
2162
- // `Set.prototype.union` method
2163
- // https://github.com/tc39/proposal-set-methods
2164
- $$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
2165
- union: union
2166
- });
2167
-
2168
21
  const MAX_FUTURE_DATE = new Date(Date.UTC(9999, 0));
2169
22
  /**
2170
23
  * Returns true if the input is a date.
@@ -2274,50 +127,6 @@ function isSameDateDay(a, b, defaultValue = null) {
2274
127
  function utcDayForDate(date) {
2275
128
  return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
2276
129
  }
2277
- /**
2278
- * Takes the next occuring time of the input date's hours/minutes.
2279
- *
2280
- * For example, if it is currently 9PM:
2281
- * - if 10PM on any day is passed then 9PM the next day will be returned.
2282
- * - if 11PM on any day is passed, 11PM today will be returned.
2283
- *
2284
- * @deprecated Fails in the rare case where it is the first two hours of a day in a daylight savings zone when daylight savings changes.
2285
- */
2286
- function takeNextUpcomingTime(date, roundDownToMinute) {
2287
- date = copyHoursAndMinutesFromDateToToday(date, roundDownToMinute);
2288
- if (dateFns.isPast(date)) {
2289
- date = dateFns.addDays(date, 1);
2290
- }
2291
- return date;
2292
- }
2293
- /**
2294
- * Creates a new date and copies the hours/minutes from the previous date and applies them to a date for today.
2295
- *
2296
- * @deprecated Fails in the rare case where it is the first two hours of a day in a daylight savings zone when daylight savings changes.
2297
- */
2298
- function copyHoursAndMinutesFromDateToToday(fromDate, roundDownToMinute) {
2299
- return copyHoursAndMinutesFromDate(new Date(), fromDate, roundDownToMinute);
2300
- }
2301
- /**
2302
- * Copies the hours/minutes from now to the target date.
2303
- *
2304
- * @deprecated Fails in the rare case where it is the first two hours of a day in a daylight savings zone when daylight savings changes.
2305
- */
2306
- function copyHoursAndMinutesFromNow(target, roundDownToMinute) {
2307
- return copyHoursAndMinutesFromDate(target, new Date(), roundDownToMinute);
2308
- }
2309
- /**
2310
- * Creates a new date and copies the hours/minutes from the input date to the target date.
2311
- *
2312
- * @deprecated Fails in the rare case where it is the first two hours of a day in a daylight savings zone when daylight savings changes.
2313
- */
2314
- function copyHoursAndMinutesFromDate(target, fromDate, roundDownToMinute) {
2315
- return copyHoursAndMinutesToDate({
2316
- hours: fromDate.getHours(),
2317
- minutes: fromDate.getMinutes(),
2318
- roundDownToMinute
2319
- }, target);
2320
- }
2321
130
  /**
2322
131
  * Creates a new date using UTC and copies the hours/minutes from the input date using the UTC values to the target date.
2323
132
  */
@@ -4225,19 +2034,6 @@ function parseISO8601DayStringToDate(dayString) {
4225
2034
  const result = dateFns.parse(dayString, format, new Date());
4226
2035
  return dateFns.startOfDay(result);
4227
2036
  }
4228
- // MARK: Compat
4229
- /**
4230
- * @deprecated use toISO8601DayStringForSystem instead for clarity. Will be removed in the future.
4231
- */
4232
- const toISO8601DayString = toISO8601DayStringForSystem;
4233
- /**
4234
- * @deprecated use formatToISO8601DayStringForSystem instead for clarity. Will be removed in the future.
4235
- */
4236
- const formatToISO8601DayString = formatToISO8601DayStringForSystem;
4237
- /**
4238
- * @deprecated use formatToMonthDaySlashDate instead for clarity. Will be removed in the future.
4239
- */
4240
- const dateShortDateStringFormat = monthDaySlashDateStringFormat;
4241
2037
 
4242
2038
  /**
4243
2039
  * Returns true if the index is a non-negative integer.
@@ -4884,26 +2680,6 @@ function isValidFullDateCellTiming(timing) {
4884
2680
  return isValid;
4885
2681
  }
4886
2682
 
4887
- var $$2 = _export;
4888
- var iterate = iterate$4;
4889
- var aCallable = aCallable$9;
4890
- var anObject = anObject$e;
4891
- var getIteratorDirect = getIteratorDirect$5;
4892
-
4893
- // `Iterator.prototype.find` method
4894
- // https://github.com/tc39/proposal-iterator-helpers
4895
- $$2({ target: 'Iterator', proto: true, real: true }, {
4896
- find: function find(predicate) {
4897
- anObject(this);
4898
- aCallable(predicate);
4899
- var record = getIteratorDirect(this);
4900
- var counter = 0;
4901
- return iterate(record, function (value, stop) {
4902
- if (predicate(value, counter++)) return stop(value);
4903
- }, { IS_RECORD: true, INTERRUPTED: true }).result;
4904
- }
4905
- });
4906
-
4907
2683
  class DateCellRange extends DateCell {
4908
2684
  constructor(template) {
4909
2685
  super(template);
@@ -6489,8 +4265,8 @@ function yearWeekCodeForDateRangeFactory(factory = yearWeekCodeFactory()) {
6489
4265
  const weeks = [];
6490
4266
  let current = dateFns.startOfWeek(start);
6491
4267
  while (!dateFns.isAfter(current, end)) {
6492
- const week = factory(current);
6493
- weeks.push(week);
4268
+ // use yearWeekCodePairFromDate directly since current is already in target timezone form after systemDateToTargetDate
4269
+ weeks.push(yearWeekCodeFromPair(yearWeekCodePairFromDate(current)));
6494
4270
  current = dateFns.addWeeks(current, 1);
6495
4271
  }
6496
4272
  // TODO: Add test for {"start":"2023-09-24T03:21:24.127Z","end":"2023-09-30T04:59:59.999Z"}
@@ -6978,7 +4754,9 @@ function dateCellScheduleDateRange(input) {
6978
4754
  start = normalInstance.startOfDayInTargetTimezone(startInSystemTimezone); // ensure the start of the day is set/matches the timezone.
6979
4755
  } else {
6980
4756
  if (inputStartsAt != null) {
6981
- start = normalInstance.startOfDayInTargetTimezone(inputStartsAt);
4757
+ // use ISO day string path to avoid system-timezone-dependent startOfDay; matches dateCellTiming behavior
4758
+ const startsAtInTarget = normalInstance.baseDateToTargetDate(inputStartsAt);
4759
+ start = normalInstance.startOfDayInTargetTimezone(formatToISO8601DayStringForUTC(startsAtInTarget));
6982
4760
  } else if (inputEnd != null) {
6983
4761
  start = normalInstance.startOfDayInTargetTimezone(inputEnd); // start on the same day as the end date
6984
4762
  } else {
@@ -7700,7 +5478,17 @@ class LimitDateTimeInstance {
7700
5478
  const dateRange = this.dateRange();
7701
5479
  result = clampDateToDateRange(date, dateRange);
7702
5480
  if (this._config.takeNextUpcomingTime) {
7703
- result = takeNextUpcomingTime(result, this._config.roundDownToMinute ?? false);
5481
+ // Inline implementation of deprecated takeNextUpcomingTime
5482
+ // Copy hours/minutes from result to today, then add a day if it's in the past
5483
+ const roundDownToMinute = this._config.roundDownToMinute ?? false;
5484
+ result = copyHoursAndMinutesToDate({
5485
+ hours: result.getHours(),
5486
+ minutes: result.getMinutes(),
5487
+ roundDownToMinute
5488
+ }, new Date());
5489
+ if (dateFns.isPast(result)) {
5490
+ result = dateFns.addDays(result, 1);
5491
+ }
7704
5492
  } else if (this._config.roundDownToMinute) {
7705
5493
  result = roundDownToMinute(result);
7706
5494
  }
@@ -8203,214 +5991,6 @@ function limitDateTime(config) {
8203
5991
  return new LimitDateTimeInstance(config);
8204
5992
  }
8205
5993
 
8206
- // MARK: Compat
8207
- /**
8208
- * Returns true if any of the input items have expired.
8209
- *
8210
- * If the list is empty, returns false.
8211
- *
8212
- * @deprecated Use ExpirationDetails and checkAtleastOneNotExpired() instead.
8213
- */
8214
- function atleastOneNotExpired(expires) {
8215
- for (const expire of expires) {
8216
- if (!hasExpired(expire)) {
8217
- return true;
8218
- }
8219
- }
8220
- return false;
8221
- }
8222
- /**
8223
- * Returns true if any of the input items has expired.
8224
- *
8225
- * If the list is empty, returns the second argument, or true by default.
8226
- *
8227
- * @deprecated Use ExpirationDetails and checkAnyHaveExpired() instead.
8228
- */
8229
- function anyHaveExpired(expires, expireIfEmpty = true) {
8230
- if (expires.length === 0) {
8231
- return expireIfEmpty;
8232
- }
8233
- for (const expire of expires) {
8234
- if (hasExpired(expire)) {
8235
- return true;
8236
- }
8237
- }
8238
- return false;
8239
- }
8240
- /**
8241
- * Convenience function for checking if the input time has expired.
8242
- *
8243
- * @param timeNumber
8244
- * @param expiresIn
8245
- * @returns
8246
- *
8247
- * @deprecated Use isThrottled() or expirationDetails({ expiresFromDate: time, expiresIn }).hasExpired() instead.
8248
- */
8249
- function timeHasExpired(time, expiresIn) {
8250
- return hasExpired(toExpires(time, expiresIn));
8251
- }
8252
- /**
8253
- * Creates an Expires object from the input date or time number.
8254
- *
8255
- * @deprecated Use ExpirationDetails instead.
8256
- *
8257
- * @param timeNumber Number to convert to a date.
8258
- * @param expiresIn If the input number is the initial date, and not the expiration date, this is used to find the expiresAt time.
8259
- */
8260
- function toExpires(time, expiresIn) {
8261
- let expiresAt = util.dateFromDateOrTimeMillisecondsNumber(time);
8262
- if (expiresAt && expiresIn != null) {
8263
- expiresAt = dateFns.addMilliseconds(expiresAt, expiresIn);
8264
- }
8265
- return {
8266
- expiresAt
8267
- };
8268
- }
8269
- /**
8270
- * Checks whether or not the item has expired. If no expiration date is set, it is considered expired.
8271
- *
8272
- * @deprecated Use ExpirationDetails instead.
8273
- */
8274
- function hasExpired(expires) {
8275
- const expiresAt = getExpiration(expires);
8276
- return dateFns.isPast(expiresAt);
8277
- }
8278
- /**
8279
- * Returns the expiration date, or a date 1 minute in the past if not defined.
8280
- *
8281
- * @deprecated Use ExpirationDetails instead.
8282
- */
8283
- function getExpiration(expires) {
8284
- return expires?.expiresAt ?? dateFns.addMinutes(new Date(), -1);
8285
- }
8286
-
8287
- // TODO: Deprecate and move to @dereekb/rxjs
8288
- /**
8289
- * Creates a new Expires object at the current time on emission that will expire in the set amount of time.
8290
- *
8291
- * @param expiresIn
8292
- * @returns
8293
- */
8294
- function toExpiration(expiresIn) {
8295
- return rxjs.map(() => toExpires(new Date(), expiresIn));
8296
- }
8297
- /**
8298
- * Filters further emissions once the input is expired.
8299
- */
8300
- function skipExpired() {
8301
- return rxjs.filter(expires => !hasExpired(expires));
8302
- }
8303
- /**
8304
- * Skips the input date or timenumber until expiration occurs.
8305
- */
8306
- function skipUntilExpiration(expiresIn) {
8307
- return rxjs.filter(x => timeHasExpired(x, expiresIn));
8308
- }
8309
- /**
8310
- * Skips the input date or timenumber after expiration occurs.
8311
- */
8312
- function skipAfterExpiration(expiresIn) {
8313
- return rxjs.filter(x => !timeHasExpired(x, expiresIn));
8314
- }
8315
- /**
8316
- * Skips emissions until time since the last emission from the watch observable has elapsed.
8317
- */
8318
- function skipUntilTimeElapsedAfterLastEmission(watch, takeFor) {
8319
- return observable => {
8320
- return watch.pipe(rxjs.switchMap(() => {
8321
- const expires = toExpires(new Date(), takeFor);
8322
- return observable.pipe(rxjs.takeWhile(() => !hasExpired(expires)));
8323
- }));
8324
- };
8325
- }
8326
- /**
8327
- * Takes emissions until time since the last emission from the watch observable has elapsed.
8328
- */
8329
- function takeAfterTimeElapsedSinceLastEmission(watch, skipFor) {
8330
- return observable => {
8331
- return watch.pipe(rxjs.switchMap(() => {
8332
- const expires = toExpires(new Date(), skipFor);
8333
- return observable.pipe(rxjs.skipWhile(() => !hasExpired(expires)));
8334
- }));
8335
- };
8336
- }
8337
-
8338
- var wellKnownSymbol = wellKnownSymbol$9;
8339
- var create = objectCreate;
8340
- var defineProperty = objectDefineProperty.f;
8341
-
8342
- var UNSCOPABLES = wellKnownSymbol('unscopables');
8343
- var ArrayPrototype = Array.prototype;
8344
-
8345
- // Array.prototype[@@unscopables]
8346
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
8347
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
8348
- defineProperty(ArrayPrototype, UNSCOPABLES, {
8349
- configurable: true,
8350
- value: create(null)
8351
- });
8352
- }
8353
-
8354
- // add a key to Array.prototype[@@unscopables]
8355
- var addToUnscopables$1 = function (key) {
8356
- ArrayPrototype[UNSCOPABLES][key] = true;
8357
- };
8358
-
8359
- var $$1 = _export;
8360
- var toObject = toObject$4;
8361
- var lengthOfArrayLike = lengthOfArrayLike$4;
8362
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
8363
- var addToUnscopables = addToUnscopables$1;
8364
-
8365
- // `Array.prototype.at` method
8366
- // https://tc39.es/ecma262/#sec-array.prototype.at
8367
- $$1({ target: 'Array', proto: true }, {
8368
- at: function at(index) {
8369
- var O = toObject(this);
8370
- var len = lengthOfArrayLike(O);
8371
- var relativeIndex = toIntegerOrInfinity$1(index);
8372
- var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
8373
- return (k < 0 || k >= len) ? undefined : O[k];
8374
- }
8375
- });
8376
-
8377
- addToUnscopables('at');
8378
-
8379
- var classof = classof$2;
8380
-
8381
- var $String = String;
8382
-
8383
- var toString$1 = function (argument) {
8384
- if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
8385
- return $String(argument);
8386
- };
8387
-
8388
- var $ = _export;
8389
- var uncurryThis = functionUncurryThis;
8390
- var requireObjectCoercible = requireObjectCoercible$3;
8391
- var toIntegerOrInfinity = toIntegerOrInfinity$5;
8392
- var toString = toString$1;
8393
- var fails = fails$e;
8394
-
8395
- var charAt = uncurryThis(''.charAt);
8396
-
8397
- var FORCED = fails(function () {
8398
- // eslint-disable-next-line es/no-array-string-prototype-at -- safe
8399
- return '𠮷'.at(-2) !== '\uD842';
8400
- });
8401
-
8402
- // `String.prototype.at` method
8403
- // https://tc39.es/ecma262/#sec-string.prototype.at
8404
- $({ target: 'String', proto: true, forced: FORCED }, {
8405
- at: function at(index) {
8406
- var S = toString(requireObjectCoercible(this));
8407
- var len = S.length;
8408
- var relativeIndex = toIntegerOrInfinity(index);
8409
- var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
8410
- return (k < 0 || k >= len) ? undefined : charAt(S, k);
8411
- }
8412
- });
8413
-
8414
5994
  function makeDateQueryForOccuringFilter(find) {
8415
5995
  const result = {};
8416
5996
  result.timezone = find.timezone;
@@ -9115,28 +6695,24 @@ class ModelRecurrenceInfoUtility {
9115
6695
  }
9116
6696
 
9117
6697
  Object.defineProperty(exports, "dateFromDateOrTimeMillisecondsNumber", {
9118
- enumerable: true,
9119
- get: function () { return util.dateFromDateOrTimeMillisecondsNumber; }
9120
- });
9121
- Object.defineProperty(exports, "dateFromDateOrTimeNumber", {
9122
- enumerable: true,
9123
- get: function () { return util.dateFromDateOrTimeNumber; }
6698
+ enumerable: true,
6699
+ get: function () { return util.dateFromDateOrTimeMillisecondsNumber; }
9124
6700
  });
9125
6701
  Object.defineProperty(exports, "unixDateTimeSecondsNumberForNow", {
9126
- enumerable: true,
9127
- get: function () { return util.unixDateTimeSecondsNumberForNow; }
6702
+ enumerable: true,
6703
+ get: function () { return util.unixDateTimeSecondsNumberForNow; }
9128
6704
  });
9129
6705
  Object.defineProperty(exports, "unixDateTimeSecondsNumberFromDate", {
9130
- enumerable: true,
9131
- get: function () { return util.unixDateTimeSecondsNumberFromDate; }
6706
+ enumerable: true,
6707
+ get: function () { return util.unixDateTimeSecondsNumberFromDate; }
9132
6708
  });
9133
6709
  Object.defineProperty(exports, "unixDateTimeSecondsNumberFromDateOrTimeNumber", {
9134
- enumerable: true,
9135
- get: function () { return util.unixDateTimeSecondsNumberFromDateOrTimeNumber; }
6710
+ enumerable: true,
6711
+ get: function () { return util.unixDateTimeSecondsNumberFromDateOrTimeNumber; }
9136
6712
  });
9137
6713
  Object.defineProperty(exports, "unixDateTimeSecondsNumberToDate", {
9138
- enumerable: true,
9139
- get: function () { return util.unixDateTimeSecondsNumberToDate; }
6714
+ enumerable: true,
6715
+ get: function () { return util.unixDateTimeSecondsNumberToDate; }
9140
6716
  });
9141
6717
  exports.AnyIterResult = AnyIterResult;
9142
6718
  exports.CalendarDate = CalendarDate;
@@ -9184,8 +6760,6 @@ exports.allIndexesInDateCellRangesToArray = allIndexesInDateCellRangesToArray;
9184
6760
  exports.allKnownTimezoneStrings = allKnownTimezoneStrings;
9185
6761
  exports.allTimezoneInfos = allTimezoneInfos;
9186
6762
  exports.allTimezoneStrings = allTimezoneStrings;
9187
- exports.anyHaveExpired = anyHaveExpired;
9188
- exports.atleastOneNotExpired = atleastOneNotExpired;
9189
6763
  exports.baseDateToTargetDate = baseDateToTargetDate;
9190
6764
  exports.calculateAllConversions = calculateAllConversions;
9191
6765
  exports.calculateExpectedDateCellTimingDuration = calculateExpectedDateCellTimingDuration;
@@ -9201,10 +6775,7 @@ exports.clampDateRangeFunction = clampDateRangeFunction;
9201
6775
  exports.clampDateRangeToDateRange = clampDateRangeToDateRange;
9202
6776
  exports.clampDateToDateRange = clampDateToDateRange;
9203
6777
  exports.copyDateCellScheduleDateFilterConfig = copyDateCellScheduleDateFilterConfig;
9204
- exports.copyHoursAndMinutesFromDate = copyHoursAndMinutesFromDate;
9205
- exports.copyHoursAndMinutesFromDateToToday = copyHoursAndMinutesFromDateToToday;
9206
6778
  exports.copyHoursAndMinutesFromDateWithTimezoneNormal = copyHoursAndMinutesFromDateWithTimezoneNormal;
9207
- exports.copyHoursAndMinutesFromNow = copyHoursAndMinutesFromNow;
9208
6779
  exports.copyHoursAndMinutesFromNowWithTimezoneNormal = copyHoursAndMinutesFromNowWithTimezoneNormal;
9209
6780
  exports.copyHoursAndMinutesFromUTCDate = copyHoursAndMinutesFromUTCDate;
9210
6781
  exports.copyHoursAndMinutesToDate = copyHoursAndMinutesToDate;
@@ -9277,7 +6848,6 @@ exports.dateRangeOverlapsDateRangeFunction = dateRangeOverlapsDateRangeFunction;
9277
6848
  exports.dateRangeRelativeState = dateRangeRelativeState;
9278
6849
  exports.dateRelativeStateForDateCellRangeComparedToIndex = dateRelativeStateForDateCellRangeComparedToIndex;
9279
6850
  exports.dateShortDateAndTimeStringFormat = dateShortDateAndTimeStringFormat;
9280
- exports.dateShortDateStringFormat = dateShortDateStringFormat;
9281
6851
  exports.dateTimeInstance = dateTimeInstance;
9282
6852
  exports.dateTimeInstanceUtc = dateTimeInstanceUtc;
9283
6853
  exports.dateTimeMinuteDecisionFunction = dateTimeMinuteDecisionFunction;
@@ -9322,7 +6892,6 @@ exports.formatToDateString = formatToDateString;
9322
6892
  exports.formatToDayRangeString = formatToDayRangeString;
9323
6893
  exports.formatToDayTimeRangeString = formatToDayTimeRangeString;
9324
6894
  exports.formatToISO8601DateString = formatToISO8601DateString;
9325
- exports.formatToISO8601DayString = formatToISO8601DayString;
9326
6895
  exports.formatToISO8601DayStringForSystem = formatToISO8601DayStringForSystem;
9327
6896
  exports.formatToISO8601DayStringForUTC = formatToISO8601DayStringForUTC;
9328
6897
  exports.formatToMonthDaySlashDate = formatToMonthDaySlashDate;
@@ -9343,7 +6912,6 @@ exports.getCurrentSystemOffsetInMs = getCurrentSystemOffsetInMs;
9343
6912
  exports.getDateCellTimingFirstEventDateRange = getDateCellTimingFirstEventDateRange;
9344
6913
  exports.getDateCellTimingHoursInEvent = getDateCellTimingHoursInEvent;
9345
6914
  exports.getDaysOfWeekInDateRange = getDaysOfWeekInDateRange;
9346
- exports.getExpiration = getExpiration;
9347
6915
  exports.getGreatestDateCellIndexInDateCellRanges = getGreatestDateCellIndexInDateCellRanges;
9348
6916
  exports.getLeastAndGreatestDateCellIndexInDateCellRanges = getLeastAndGreatestDateCellIndexInDateCellRanges;
9349
6917
  exports.getLeastDateCellIndexInDateCellRanges = getLeastDateCellIndexInDateCellRanges;
@@ -9357,7 +6925,6 @@ exports.groupDateRangesByDateRelativeState = groupDateRangesByDateRelativeState;
9357
6925
  exports.groupToDateCellRanges = groupToDateCellRanges;
9358
6926
  exports.groupUniqueDateCells = groupUniqueDateCells;
9359
6927
  exports.guessCurrentTimezone = guessCurrentTimezone;
9360
- exports.hasExpired = hasExpired;
9361
6928
  exports.hoursToMs = hoursToMs;
9362
6929
  exports.inverseDateTimezoneUtcNormalInstanceTransformType = inverseDateTimezoneUtcNormalInstanceTransformType;
9363
6930
  exports.isAfter = isAfter;
@@ -9464,10 +7031,6 @@ exports.shiftDateCellTimingToTimezone = shiftDateCellTimingToTimezone;
9464
7031
  exports.shiftDateCellTimingToTimezoneFunction = shiftDateCellTimingToTimezoneFunction;
9465
7032
  exports.shiftDateCellTimingToUTCTimezone = shiftDateCellTimingToUTCTimezone;
9466
7033
  exports.simplifyDateCellScheduleDayCodes = simplifyDateCellScheduleDayCodes;
9467
- exports.skipAfterExpiration = skipAfterExpiration;
9468
- exports.skipExpired = skipExpired;
9469
- exports.skipUntilExpiration = skipUntilExpiration;
9470
- exports.skipUntilTimeElapsedAfterLastEmission = skipUntilTimeElapsedAfterLastEmission;
9471
7034
  exports.sortByDateFunction = sortByDateFunction;
9472
7035
  exports.sortByISO8601DateStringFunction = sortByISO8601DateStringFunction;
9473
7036
  exports.sortByISO8601DateStrings = sortByISO8601DateStrings;
@@ -9483,16 +7046,10 @@ exports.systemDateTimezoneUtcNormal = systemDateTimezoneUtcNormal;
9483
7046
  exports.systemExperiencesDaylightSavings = systemExperiencesDaylightSavings;
9484
7047
  exports.systemNormalDateToBaseDate = systemNormalDateToBaseDate;
9485
7048
  exports.systemNormalDateToBaseDateOffset = systemNormalDateToBaseDateOffset;
9486
- exports.takeAfterTimeElapsedSinceLastEmission = takeAfterTimeElapsedSinceLastEmission;
9487
- exports.takeNextUpcomingTime = takeNextUpcomingTime;
9488
7049
  exports.targetDateToBaseDate = targetDateToBaseDate;
9489
- exports.timeHasExpired = timeHasExpired;
9490
7050
  exports.timezoneInfoForSystem = timezoneInfoForSystem;
9491
7051
  exports.timezoneStringToSearchableString = timezoneStringToSearchableString;
9492
7052
  exports.timezoneStringToTimezoneInfo = timezoneStringToTimezoneInfo;
9493
- exports.toExpiration = toExpiration;
9494
- exports.toExpires = toExpires;
9495
- exports.toISO8601DayString = toISO8601DayString;
9496
7053
  exports.toISO8601DayStringForSystem = toISO8601DayStringForSystem;
9497
7054
  exports.toISO8601DayStringForUTC = toISO8601DayStringForUTC;
9498
7055
  exports.toISODateString = toISODateString;