ht-components-taro-v3 1.0.2 → 1.0.4

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.
@@ -0,0 +1,2553 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var components = require('@tarojs/components');
7
+ var Taro = require('@tarojs/taro');
8
+
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
+ var Taro__default = /*#__PURE__*/_interopDefaultLegacy(Taro);
13
+
14
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
15
+
16
+ var check = function (it) {
17
+ return it && it.Math === Math && it;
18
+ };
19
+
20
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
21
+ var globalThis_1 =
22
+ // eslint-disable-next-line es/no-global-this -- safe
23
+ check(typeof globalThis == 'object' && globalThis) ||
24
+ check(typeof window == 'object' && window) ||
25
+ // eslint-disable-next-line no-restricted-globals -- safe
26
+ check(typeof self == 'object' && self) ||
27
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
28
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
29
+ // eslint-disable-next-line no-new-func -- fallback
30
+ (function () { return this; })() || Function('return this')();
31
+
32
+ var objectGetOwnPropertyDescriptor = {};
33
+
34
+ var fails$i = function (exec) {
35
+ try {
36
+ return !!exec();
37
+ } catch (error) {
38
+ return true;
39
+ }
40
+ };
41
+
42
+ var fails$h = fails$i;
43
+
44
+ // Detect IE8's incomplete defineProperty implementation
45
+ var descriptors = !fails$h(function () {
46
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
47
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
48
+ });
49
+
50
+ var fails$g = fails$i;
51
+
52
+ var functionBindNative = !fails$g(function () {
53
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
54
+ var test = (function () { /* empty */ }).bind();
55
+ // eslint-disable-next-line no-prototype-builtins -- safe
56
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
57
+ });
58
+
59
+ var NATIVE_BIND$3 = functionBindNative;
60
+
61
+ var call$8 = Function.prototype.call;
62
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
63
+ var functionCall = NATIVE_BIND$3 ? call$8.bind(call$8) : function () {
64
+ return call$8.apply(call$8, arguments);
65
+ };
66
+
67
+ var objectPropertyIsEnumerable = {};
68
+
69
+ var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
70
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
71
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
72
+
73
+ // Nashorn ~ JDK8 bug
74
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
75
+
76
+ // `Object.prototype.propertyIsEnumerable` method implementation
77
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
78
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
79
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
80
+ return !!descriptor && descriptor.enumerable;
81
+ } : $propertyIsEnumerable$1;
82
+
83
+ var createPropertyDescriptor$4 = function (bitmap, value) {
84
+ return {
85
+ enumerable: !(bitmap & 1),
86
+ configurable: !(bitmap & 2),
87
+ writable: !(bitmap & 4),
88
+ value: value
89
+ };
90
+ };
91
+
92
+ var NATIVE_BIND$2 = functionBindNative;
93
+
94
+ var FunctionPrototype$2 = Function.prototype;
95
+ var call$7 = FunctionPrototype$2.call;
96
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
97
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$7, call$7);
98
+
99
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
100
+ return function () {
101
+ return call$7.apply(fn, arguments);
102
+ };
103
+ };
104
+
105
+ var uncurryThis$g = functionUncurryThis;
106
+
107
+ var toString$5 = uncurryThis$g({}.toString);
108
+ var stringSlice$1 = uncurryThis$g(''.slice);
109
+
110
+ var classofRaw$2 = function (it) {
111
+ return stringSlice$1(toString$5(it), 8, -1);
112
+ };
113
+
114
+ var uncurryThis$f = functionUncurryThis;
115
+ var fails$f = fails$i;
116
+ var classof$7 = classofRaw$2;
117
+
118
+ var $Object$3 = Object;
119
+ var split = uncurryThis$f(''.split);
120
+
121
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
122
+ var indexedObject = fails$f(function () {
123
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
124
+ // eslint-disable-next-line no-prototype-builtins -- safe
125
+ return !$Object$3('z').propertyIsEnumerable(0);
126
+ }) ? function (it) {
127
+ return classof$7(it) === 'String' ? split(it, '') : $Object$3(it);
128
+ } : $Object$3;
129
+
130
+ // we can't use just `it == null` since of `document.all` special case
131
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
132
+ var isNullOrUndefined$2 = function (it) {
133
+ return it === null || it === undefined;
134
+ };
135
+
136
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
137
+
138
+ var $TypeError$6 = TypeError;
139
+
140
+ // `RequireObjectCoercible` abstract operation
141
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
142
+ var requireObjectCoercible$2 = function (it) {
143
+ if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
144
+ return it;
145
+ };
146
+
147
+ // toObject with fallback for non-array-like ES3 strings
148
+ var IndexedObject$1 = indexedObject;
149
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
150
+
151
+ var toIndexedObject$8 = function (it) {
152
+ return IndexedObject$1(requireObjectCoercible$1(it));
153
+ };
154
+
155
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
156
+ var documentAll = typeof document == 'object' && document.all;
157
+
158
+ // `IsCallable` abstract operation
159
+ // https://tc39.es/ecma262/#sec-iscallable
160
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
161
+ var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
162
+ return typeof argument == 'function' || argument === documentAll;
163
+ } : function (argument) {
164
+ return typeof argument == 'function';
165
+ };
166
+
167
+ var isCallable$c = isCallable$d;
168
+
169
+ var isObject$8 = function (it) {
170
+ return typeof it == 'object' ? it !== null : isCallable$c(it);
171
+ };
172
+
173
+ var globalThis$e = globalThis_1;
174
+ var isCallable$b = isCallable$d;
175
+
176
+ var aFunction = function (argument) {
177
+ return isCallable$b(argument) ? argument : undefined;
178
+ };
179
+
180
+ var getBuiltIn$7 = function (namespace, method) {
181
+ return arguments.length < 2 ? aFunction(globalThis$e[namespace]) : globalThis$e[namespace] && globalThis$e[namespace][method];
182
+ };
183
+
184
+ var uncurryThis$e = functionUncurryThis;
185
+
186
+ var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
187
+
188
+ var globalThis$d = globalThis_1;
189
+
190
+ var navigator = globalThis$d.navigator;
191
+ var userAgent$1 = navigator && navigator.userAgent;
192
+
193
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
194
+
195
+ var globalThis$c = globalThis_1;
196
+ var userAgent = environmentUserAgent;
197
+
198
+ var process = globalThis$c.process;
199
+ var Deno = globalThis$c.Deno;
200
+ var versions = process && process.versions || Deno && Deno.version;
201
+ var v8 = versions && versions.v8;
202
+ var match, version;
203
+
204
+ if (v8) {
205
+ match = v8.split('.');
206
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
207
+ // but their correct versions are not interesting for us
208
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
209
+ }
210
+
211
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
212
+ // so check `userAgent` even if `.v8` exists, but 0
213
+ if (!version && userAgent) {
214
+ match = userAgent.match(/Edge\/(\d+)/);
215
+ if (!match || match[1] >= 74) {
216
+ match = userAgent.match(/Chrome\/(\d+)/);
217
+ if (match) version = +match[1];
218
+ }
219
+ }
220
+
221
+ var environmentV8Version = version;
222
+
223
+ /* eslint-disable es/no-symbol -- required for testing */
224
+ var V8_VERSION$2 = environmentV8Version;
225
+ var fails$e = fails$i;
226
+ var globalThis$b = globalThis_1;
227
+
228
+ var $String$5 = globalThis$b.String;
229
+
230
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
231
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
232
+ var symbol = Symbol('symbol detection');
233
+ // Chrome 38 Symbol has incorrect toString conversion
234
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
235
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
236
+ // of course, fail.
237
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
238
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
239
+ !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
240
+ });
241
+
242
+ /* eslint-disable es/no-symbol -- required for testing */
243
+ var NATIVE_SYMBOL$5 = symbolConstructorDetection;
244
+
245
+ var useSymbolAsUid = NATIVE_SYMBOL$5 &&
246
+ !Symbol.sham &&
247
+ typeof Symbol.iterator == 'symbol';
248
+
249
+ var getBuiltIn$6 = getBuiltIn$7;
250
+ var isCallable$a = isCallable$d;
251
+ var isPrototypeOf$1 = objectIsPrototypeOf;
252
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
253
+
254
+ var $Object$2 = Object;
255
+
256
+ var isSymbol$4 = USE_SYMBOL_AS_UID$1 ? function (it) {
257
+ return typeof it == 'symbol';
258
+ } : function (it) {
259
+ var $Symbol = getBuiltIn$6('Symbol');
260
+ return isCallable$a($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
261
+ };
262
+
263
+ var $String$4 = String;
264
+
265
+ var tryToString$2 = function (argument) {
266
+ try {
267
+ return $String$4(argument);
268
+ } catch (error) {
269
+ return 'Object';
270
+ }
271
+ };
272
+
273
+ var isCallable$9 = isCallable$d;
274
+ var tryToString$1 = tryToString$2;
275
+
276
+ var $TypeError$5 = TypeError;
277
+
278
+ // `Assert: IsCallable(argument) is true`
279
+ var aCallable$2 = function (argument) {
280
+ if (isCallable$9(argument)) return argument;
281
+ throw new $TypeError$5(tryToString$1(argument) + ' is not a function');
282
+ };
283
+
284
+ var aCallable$1 = aCallable$2;
285
+ var isNullOrUndefined = isNullOrUndefined$2;
286
+
287
+ // `GetMethod` abstract operation
288
+ // https://tc39.es/ecma262/#sec-getmethod
289
+ var getMethod$1 = function (V, P) {
290
+ var func = V[P];
291
+ return isNullOrUndefined(func) ? undefined : aCallable$1(func);
292
+ };
293
+
294
+ var call$6 = functionCall;
295
+ var isCallable$8 = isCallable$d;
296
+ var isObject$7 = isObject$8;
297
+
298
+ var $TypeError$4 = TypeError;
299
+
300
+ // `OrdinaryToPrimitive` abstract operation
301
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
302
+ var ordinaryToPrimitive$1 = function (input, pref) {
303
+ var fn, val;
304
+ if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
305
+ if (isCallable$8(fn = input.valueOf) && !isObject$7(val = call$6(fn, input))) return val;
306
+ if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
307
+ throw new $TypeError$4("Can't convert object to primitive value");
308
+ };
309
+
310
+ var sharedStore = {exports: {}};
311
+
312
+ var globalThis$a = globalThis_1;
313
+
314
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
315
+ var defineProperty$4 = Object.defineProperty;
316
+
317
+ var defineGlobalProperty$3 = function (key, value) {
318
+ try {
319
+ defineProperty$4(globalThis$a, key, { value: value, configurable: true, writable: true });
320
+ } catch (error) {
321
+ globalThis$a[key] = value;
322
+ } return value;
323
+ };
324
+
325
+ var globalThis$9 = globalThis_1;
326
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
327
+
328
+ var SHARED = '__core-js_shared__';
329
+ var store$3 = sharedStore.exports = globalThis$9[SHARED] || defineGlobalProperty$2(SHARED, {});
330
+
331
+ (store$3.versions || (store$3.versions = [])).push({
332
+ version: '3.47.0',
333
+ mode: 'global',
334
+ copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)',
335
+ license: 'https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE',
336
+ source: 'https://github.com/zloirock/core-js'
337
+ });
338
+
339
+ var sharedStoreExports = sharedStore.exports;
340
+
341
+ var store$2 = sharedStoreExports;
342
+
343
+ var shared$6 = function (key, value) {
344
+ return store$2[key] || (store$2[key] = value || {});
345
+ };
346
+
347
+ var requireObjectCoercible = requireObjectCoercible$2;
348
+
349
+ var $Object$1 = Object;
350
+
351
+ // `ToObject` abstract operation
352
+ // https://tc39.es/ecma262/#sec-toobject
353
+ var toObject$5 = function (argument) {
354
+ return $Object$1(requireObjectCoercible(argument));
355
+ };
356
+
357
+ var uncurryThis$d = functionUncurryThis;
358
+ var toObject$4 = toObject$5;
359
+
360
+ var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
361
+
362
+ // `HasOwnProperty` abstract operation
363
+ // https://tc39.es/ecma262/#sec-hasownproperty
364
+ // eslint-disable-next-line es/no-object-hasown -- safe
365
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
366
+ return hasOwnProperty(toObject$4(it), key);
367
+ };
368
+
369
+ var uncurryThis$c = functionUncurryThis;
370
+
371
+ var id = 0;
372
+ var postfix = Math.random();
373
+ var toString$4 = uncurryThis$c(1.1.toString);
374
+
375
+ var uid$4 = function (key) {
376
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
377
+ };
378
+
379
+ var globalThis$8 = globalThis_1;
380
+ var shared$5 = shared$6;
381
+ var hasOwn$c = hasOwnProperty_1;
382
+ var uid$3 = uid$4;
383
+ var NATIVE_SYMBOL$4 = symbolConstructorDetection;
384
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
385
+
386
+ var Symbol$1 = globalThis$8.Symbol;
387
+ var WellKnownSymbolsStore$1 = shared$5('wks');
388
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$3;
389
+
390
+ var wellKnownSymbol$a = function (name) {
391
+ if (!hasOwn$c(WellKnownSymbolsStore$1, name)) {
392
+ WellKnownSymbolsStore$1[name] = NATIVE_SYMBOL$4 && hasOwn$c(Symbol$1, name)
393
+ ? Symbol$1[name]
394
+ : createWellKnownSymbol('Symbol.' + name);
395
+ } return WellKnownSymbolsStore$1[name];
396
+ };
397
+
398
+ var call$5 = functionCall;
399
+ var isObject$6 = isObject$8;
400
+ var isSymbol$3 = isSymbol$4;
401
+ var getMethod = getMethod$1;
402
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
403
+ var wellKnownSymbol$9 = wellKnownSymbol$a;
404
+
405
+ var $TypeError$3 = TypeError;
406
+ var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
407
+
408
+ // `ToPrimitive` abstract operation
409
+ // https://tc39.es/ecma262/#sec-toprimitive
410
+ var toPrimitive$2 = function (input, pref) {
411
+ if (!isObject$6(input) || isSymbol$3(input)) return input;
412
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
413
+ var result;
414
+ if (exoticToPrim) {
415
+ if (pref === undefined) pref = 'default';
416
+ result = call$5(exoticToPrim, input, pref);
417
+ if (!isObject$6(result) || isSymbol$3(result)) return result;
418
+ throw new $TypeError$3("Can't convert object to primitive value");
419
+ }
420
+ if (pref === undefined) pref = 'number';
421
+ return ordinaryToPrimitive(input, pref);
422
+ };
423
+
424
+ var toPrimitive$1 = toPrimitive$2;
425
+ var isSymbol$2 = isSymbol$4;
426
+
427
+ // `ToPropertyKey` abstract operation
428
+ // https://tc39.es/ecma262/#sec-topropertykey
429
+ var toPropertyKey$4 = function (argument) {
430
+ var key = toPrimitive$1(argument, 'string');
431
+ return isSymbol$2(key) ? key : key + '';
432
+ };
433
+
434
+ var globalThis$7 = globalThis_1;
435
+ var isObject$5 = isObject$8;
436
+
437
+ var document$1 = globalThis$7.document;
438
+ // typeof document.createElement is 'object' in old IE
439
+ var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
440
+
441
+ var documentCreateElement$2 = function (it) {
442
+ return EXISTS$1 ? document$1.createElement(it) : {};
443
+ };
444
+
445
+ var DESCRIPTORS$b = descriptors;
446
+ var fails$d = fails$i;
447
+ var createElement = documentCreateElement$2;
448
+
449
+ // Thanks to IE8 for its funny defineProperty
450
+ var ie8DomDefine = !DESCRIPTORS$b && !fails$d(function () {
451
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
452
+ return Object.defineProperty(createElement('div'), 'a', {
453
+ get: function () { return 7; }
454
+ }).a !== 7;
455
+ });
456
+
457
+ var DESCRIPTORS$a = descriptors;
458
+ var call$4 = functionCall;
459
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
460
+ var createPropertyDescriptor$3 = createPropertyDescriptor$4;
461
+ var toIndexedObject$7 = toIndexedObject$8;
462
+ var toPropertyKey$3 = toPropertyKey$4;
463
+ var hasOwn$b = hasOwnProperty_1;
464
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
465
+
466
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
467
+ var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
468
+
469
+ // `Object.getOwnPropertyDescriptor` method
470
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
471
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
472
+ O = toIndexedObject$7(O);
473
+ P = toPropertyKey$3(P);
474
+ if (IE8_DOM_DEFINE$1) try {
475
+ return $getOwnPropertyDescriptor$2(O, P);
476
+ } catch (error) { /* empty */ }
477
+ if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
478
+ };
479
+
480
+ var objectDefineProperty = {};
481
+
482
+ var DESCRIPTORS$9 = descriptors;
483
+ var fails$c = fails$i;
484
+
485
+ // V8 ~ Chrome 36-
486
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
487
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
488
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
489
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
490
+ value: 42,
491
+ writable: false
492
+ }).prototype !== 42;
493
+ });
494
+
495
+ var isObject$4 = isObject$8;
496
+
497
+ var $String$3 = String;
498
+ var $TypeError$2 = TypeError;
499
+
500
+ // `Assert: Type(argument) is Object`
501
+ var anObject$5 = function (argument) {
502
+ if (isObject$4(argument)) return argument;
503
+ throw new $TypeError$2($String$3(argument) + ' is not an object');
504
+ };
505
+
506
+ var DESCRIPTORS$8 = descriptors;
507
+ var IE8_DOM_DEFINE = ie8DomDefine;
508
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
509
+ var anObject$4 = anObject$5;
510
+ var toPropertyKey$2 = toPropertyKey$4;
511
+
512
+ var $TypeError$1 = TypeError;
513
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
514
+ var $defineProperty$1 = Object.defineProperty;
515
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
516
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
517
+ var ENUMERABLE = 'enumerable';
518
+ var CONFIGURABLE$1 = 'configurable';
519
+ var WRITABLE = 'writable';
520
+
521
+ // `Object.defineProperty` method
522
+ // https://tc39.es/ecma262/#sec-object.defineproperty
523
+ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
524
+ anObject$4(O);
525
+ P = toPropertyKey$2(P);
526
+ anObject$4(Attributes);
527
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
528
+ var current = $getOwnPropertyDescriptor$1(O, P);
529
+ if (current && current[WRITABLE]) {
530
+ O[P] = Attributes.value;
531
+ Attributes = {
532
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
533
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
534
+ writable: false
535
+ };
536
+ }
537
+ } return $defineProperty$1(O, P, Attributes);
538
+ } : $defineProperty$1 : function defineProperty(O, P, Attributes) {
539
+ anObject$4(O);
540
+ P = toPropertyKey$2(P);
541
+ anObject$4(Attributes);
542
+ if (IE8_DOM_DEFINE) try {
543
+ return $defineProperty$1(O, P, Attributes);
544
+ } catch (error) { /* empty */ }
545
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
546
+ if ('value' in Attributes) O[P] = Attributes.value;
547
+ return O;
548
+ };
549
+
550
+ var DESCRIPTORS$7 = descriptors;
551
+ var definePropertyModule$5 = objectDefineProperty;
552
+ var createPropertyDescriptor$2 = createPropertyDescriptor$4;
553
+
554
+ var createNonEnumerableProperty$3 = DESCRIPTORS$7 ? function (object, key, value) {
555
+ return definePropertyModule$5.f(object, key, createPropertyDescriptor$2(1, value));
556
+ } : function (object, key, value) {
557
+ object[key] = value;
558
+ return object;
559
+ };
560
+
561
+ var makeBuiltIn$3 = {exports: {}};
562
+
563
+ var DESCRIPTORS$6 = descriptors;
564
+ var hasOwn$a = hasOwnProperty_1;
565
+
566
+ var FunctionPrototype$1 = Function.prototype;
567
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
568
+ var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
569
+
570
+ var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
571
+ // additional protection from minified / mangled / dropped function names
572
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
573
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
574
+
575
+ var functionName = {
576
+ EXISTS: EXISTS,
577
+ PROPER: PROPER,
578
+ CONFIGURABLE: CONFIGURABLE
579
+ };
580
+
581
+ var uncurryThis$b = functionUncurryThis;
582
+ var isCallable$7 = isCallable$d;
583
+ var store$1 = sharedStoreExports;
584
+
585
+ var functionToString = uncurryThis$b(Function.toString);
586
+
587
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
588
+ if (!isCallable$7(store$1.inspectSource)) {
589
+ store$1.inspectSource = function (it) {
590
+ return functionToString(it);
591
+ };
592
+ }
593
+
594
+ var inspectSource$2 = store$1.inspectSource;
595
+
596
+ var globalThis$6 = globalThis_1;
597
+ var isCallable$6 = isCallable$d;
598
+
599
+ var WeakMap$1 = globalThis$6.WeakMap;
600
+
601
+ var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
602
+
603
+ var shared$4 = shared$6;
604
+ var uid$2 = uid$4;
605
+
606
+ var keys = shared$4('keys');
607
+
608
+ var sharedKey$3 = function (key) {
609
+ return keys[key] || (keys[key] = uid$2(key));
610
+ };
611
+
612
+ var hiddenKeys$5 = {};
613
+
614
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
615
+ var globalThis$5 = globalThis_1;
616
+ var isObject$3 = isObject$8;
617
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
618
+ var hasOwn$9 = hasOwnProperty_1;
619
+ var shared$3 = sharedStoreExports;
620
+ var sharedKey$2 = sharedKey$3;
621
+ var hiddenKeys$4 = hiddenKeys$5;
622
+
623
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
624
+ var TypeError$2 = globalThis$5.TypeError;
625
+ var WeakMap = globalThis$5.WeakMap;
626
+ var set, get, has;
627
+
628
+ var enforce = function (it) {
629
+ return has(it) ? get(it) : set(it, {});
630
+ };
631
+
632
+ var getterFor = function (TYPE) {
633
+ return function (it) {
634
+ var state;
635
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
636
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
637
+ } return state;
638
+ };
639
+ };
640
+
641
+ if (NATIVE_WEAK_MAP || shared$3.state) {
642
+ var store = shared$3.state || (shared$3.state = new WeakMap());
643
+ /* eslint-disable no-self-assign -- prototype methods protection */
644
+ store.get = store.get;
645
+ store.has = store.has;
646
+ store.set = store.set;
647
+ /* eslint-enable no-self-assign -- prototype methods protection */
648
+ set = function (it, metadata) {
649
+ if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
650
+ metadata.facade = it;
651
+ store.set(it, metadata);
652
+ return metadata;
653
+ };
654
+ get = function (it) {
655
+ return store.get(it) || {};
656
+ };
657
+ has = function (it) {
658
+ return store.has(it);
659
+ };
660
+ } else {
661
+ var STATE = sharedKey$2('state');
662
+ hiddenKeys$4[STATE] = true;
663
+ set = function (it, metadata) {
664
+ if (hasOwn$9(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
665
+ metadata.facade = it;
666
+ createNonEnumerableProperty$2(it, STATE, metadata);
667
+ return metadata;
668
+ };
669
+ get = function (it) {
670
+ return hasOwn$9(it, STATE) ? it[STATE] : {};
671
+ };
672
+ has = function (it) {
673
+ return hasOwn$9(it, STATE);
674
+ };
675
+ }
676
+
677
+ var internalState = {
678
+ set: set,
679
+ get: get,
680
+ has: has,
681
+ enforce: enforce,
682
+ getterFor: getterFor
683
+ };
684
+
685
+ var uncurryThis$a = functionUncurryThis;
686
+ var fails$b = fails$i;
687
+ var isCallable$5 = isCallable$d;
688
+ var hasOwn$8 = hasOwnProperty_1;
689
+ var DESCRIPTORS$5 = descriptors;
690
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
691
+ var inspectSource$1 = inspectSource$2;
692
+ var InternalStateModule$1 = internalState;
693
+
694
+ var enforceInternalState = InternalStateModule$1.enforce;
695
+ var getInternalState$2 = InternalStateModule$1.get;
696
+ var $String$2 = String;
697
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
698
+ var defineProperty$3 = Object.defineProperty;
699
+ var stringSlice = uncurryThis$a(''.slice);
700
+ var replace$1 = uncurryThis$a(''.replace);
701
+ var join = uncurryThis$a([].join);
702
+
703
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$b(function () {
704
+ return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
705
+ });
706
+
707
+ var TEMPLATE = String(String).split('String');
708
+
709
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
710
+ if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
711
+ name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
712
+ }
713
+ if (options && options.getter) name = 'get ' + name;
714
+ if (options && options.setter) name = 'set ' + name;
715
+ if (!hasOwn$8(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
716
+ if (DESCRIPTORS$5) defineProperty$3(value, 'name', { value: name, configurable: true });
717
+ else value.name = name;
718
+ }
719
+ if (CONFIGURABLE_LENGTH && options && hasOwn$8(options, 'arity') && value.length !== options.arity) {
720
+ defineProperty$3(value, 'length', { value: options.arity });
721
+ }
722
+ try {
723
+ if (options && hasOwn$8(options, 'constructor') && options.constructor) {
724
+ if (DESCRIPTORS$5) defineProperty$3(value, 'prototype', { writable: false });
725
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
726
+ } else if (value.prototype) value.prototype = undefined;
727
+ } catch (error) { /* empty */ }
728
+ var state = enforceInternalState(value);
729
+ if (!hasOwn$8(state, 'source')) {
730
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
731
+ } return value;
732
+ };
733
+
734
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
735
+ // eslint-disable-next-line no-extend-native -- required
736
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
737
+ return isCallable$5(this) && getInternalState$2(this).source || inspectSource$1(this);
738
+ }, 'toString');
739
+
740
+ var makeBuiltInExports = makeBuiltIn$3.exports;
741
+
742
+ var isCallable$4 = isCallable$d;
743
+ var definePropertyModule$4 = objectDefineProperty;
744
+ var makeBuiltIn$1 = makeBuiltInExports;
745
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
746
+
747
+ var defineBuiltIn$4 = function (O, key, value, options) {
748
+ if (!options) options = {};
749
+ var simple = options.enumerable;
750
+ var name = options.name !== undefined ? options.name : key;
751
+ if (isCallable$4(value)) makeBuiltIn$1(value, name, options);
752
+ if (options.global) {
753
+ if (simple) O[key] = value;
754
+ else defineGlobalProperty$1(key, value);
755
+ } else {
756
+ try {
757
+ if (!options.unsafe) delete O[key];
758
+ else if (O[key]) simple = true;
759
+ } catch (error) { /* empty */ }
760
+ if (simple) O[key] = value;
761
+ else definePropertyModule$4.f(O, key, {
762
+ value: value,
763
+ enumerable: false,
764
+ configurable: !options.nonConfigurable,
765
+ writable: !options.nonWritable
766
+ });
767
+ } return O;
768
+ };
769
+
770
+ var objectGetOwnPropertyNames = {};
771
+
772
+ var ceil = Math.ceil;
773
+ var floor = Math.floor;
774
+
775
+ // `Math.trunc` method
776
+ // https://tc39.es/ecma262/#sec-math.trunc
777
+ // eslint-disable-next-line es/no-math-trunc -- safe
778
+ var mathTrunc = Math.trunc || function trunc(x) {
779
+ var n = +x;
780
+ return (n > 0 ? floor : ceil)(n);
781
+ };
782
+
783
+ var trunc = mathTrunc;
784
+
785
+ // `ToIntegerOrInfinity` abstract operation
786
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
787
+ var toIntegerOrInfinity$2 = function (argument) {
788
+ var number = +argument;
789
+ // eslint-disable-next-line no-self-compare -- NaN check
790
+ return number !== number || number === 0 ? 0 : trunc(number);
791
+ };
792
+
793
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
794
+
795
+ var max = Math.max;
796
+ var min$1 = Math.min;
797
+
798
+ // Helper for a popular repeating case of the spec:
799
+ // Let integer be ? ToInteger(index).
800
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
801
+ var toAbsoluteIndex$1 = function (index, length) {
802
+ var integer = toIntegerOrInfinity$1(index);
803
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
804
+ };
805
+
806
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
807
+
808
+ var min = Math.min;
809
+
810
+ // `ToLength` abstract operation
811
+ // https://tc39.es/ecma262/#sec-tolength
812
+ var toLength$1 = function (argument) {
813
+ var len = toIntegerOrInfinity(argument);
814
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
815
+ };
816
+
817
+ var toLength = toLength$1;
818
+
819
+ // `LengthOfArrayLike` abstract operation
820
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
821
+ var lengthOfArrayLike$3 = function (obj) {
822
+ return toLength(obj.length);
823
+ };
824
+
825
+ var toIndexedObject$6 = toIndexedObject$8;
826
+ var toAbsoluteIndex = toAbsoluteIndex$1;
827
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
828
+
829
+ // `Array.prototype.{ indexOf, includes }` methods implementation
830
+ var createMethod$1 = function (IS_INCLUDES) {
831
+ return function ($this, el, fromIndex) {
832
+ var O = toIndexedObject$6($this);
833
+ var length = lengthOfArrayLike$2(O);
834
+ if (length === 0) return !IS_INCLUDES && -1;
835
+ var index = toAbsoluteIndex(fromIndex, length);
836
+ var value;
837
+ // Array#includes uses SameValueZero equality algorithm
838
+ // eslint-disable-next-line no-self-compare -- NaN check
839
+ if (IS_INCLUDES && el !== el) while (length > index) {
840
+ value = O[index++];
841
+ // eslint-disable-next-line no-self-compare -- NaN check
842
+ if (value !== value) return true;
843
+ // Array#indexOf ignores holes, Array#includes - not
844
+ } else for (;length > index; index++) {
845
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
846
+ } return !IS_INCLUDES && -1;
847
+ };
848
+ };
849
+
850
+ var arrayIncludes = {
851
+ // `Array.prototype.includes` method
852
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
853
+ includes: createMethod$1(true),
854
+ // `Array.prototype.indexOf` method
855
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
856
+ indexOf: createMethod$1(false)
857
+ };
858
+
859
+ var uncurryThis$9 = functionUncurryThis;
860
+ var hasOwn$7 = hasOwnProperty_1;
861
+ var toIndexedObject$5 = toIndexedObject$8;
862
+ var indexOf = arrayIncludes.indexOf;
863
+ var hiddenKeys$3 = hiddenKeys$5;
864
+
865
+ var push$3 = uncurryThis$9([].push);
866
+
867
+ var objectKeysInternal = function (object, names) {
868
+ var O = toIndexedObject$5(object);
869
+ var i = 0;
870
+ var result = [];
871
+ var key;
872
+ for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push$3(result, key);
873
+ // Don't enum bug & hidden keys
874
+ while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
875
+ ~indexOf(result, key) || push$3(result, key);
876
+ }
877
+ return result;
878
+ };
879
+
880
+ // IE8- don't enum bug keys
881
+ var enumBugKeys$3 = [
882
+ 'constructor',
883
+ 'hasOwnProperty',
884
+ 'isPrototypeOf',
885
+ 'propertyIsEnumerable',
886
+ 'toLocaleString',
887
+ 'toString',
888
+ 'valueOf'
889
+ ];
890
+
891
+ var internalObjectKeys$1 = objectKeysInternal;
892
+ var enumBugKeys$2 = enumBugKeys$3;
893
+
894
+ var hiddenKeys$2 = enumBugKeys$2.concat('length', 'prototype');
895
+
896
+ // `Object.getOwnPropertyNames` method
897
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
898
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
899
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
900
+ return internalObjectKeys$1(O, hiddenKeys$2);
901
+ };
902
+
903
+ var objectGetOwnPropertySymbols = {};
904
+
905
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
906
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
907
+
908
+ var getBuiltIn$5 = getBuiltIn$7;
909
+ var uncurryThis$8 = functionUncurryThis;
910
+ var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
911
+ var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;
912
+ var anObject$3 = anObject$5;
913
+
914
+ var concat = uncurryThis$8([].concat);
915
+
916
+ // all object keys, includes non-enumerable and symbols
917
+ var ownKeys$3 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
918
+ var keys = getOwnPropertyNamesModule$1.f(anObject$3(it));
919
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f;
920
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
921
+ };
922
+
923
+ var hasOwn$6 = hasOwnProperty_1;
924
+ var ownKeys$2 = ownKeys$3;
925
+ var getOwnPropertyDescriptorModule$2 = objectGetOwnPropertyDescriptor;
926
+ var definePropertyModule$3 = objectDefineProperty;
927
+
928
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
929
+ var keys = ownKeys$2(source);
930
+ var defineProperty = definePropertyModule$3.f;
931
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$2.f;
932
+ for (var i = 0; i < keys.length; i++) {
933
+ var key = keys[i];
934
+ if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) {
935
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
936
+ }
937
+ }
938
+ };
939
+
940
+ var fails$a = fails$i;
941
+ var isCallable$3 = isCallable$d;
942
+
943
+ var replacement = /#|\.prototype\./;
944
+
945
+ var isForced$1 = function (feature, detection) {
946
+ var value = data[normalize(feature)];
947
+ return value === POLYFILL ? true
948
+ : value === NATIVE ? false
949
+ : isCallable$3(detection) ? fails$a(detection)
950
+ : !!detection;
951
+ };
952
+
953
+ var normalize = isForced$1.normalize = function (string) {
954
+ return String(string).replace(replacement, '.').toLowerCase();
955
+ };
956
+
957
+ var data = isForced$1.data = {};
958
+ var NATIVE = isForced$1.NATIVE = 'N';
959
+ var POLYFILL = isForced$1.POLYFILL = 'P';
960
+
961
+ var isForced_1 = isForced$1;
962
+
963
+ var globalThis$4 = globalThis_1;
964
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
965
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
966
+ var defineBuiltIn$3 = defineBuiltIn$4;
967
+ var defineGlobalProperty = defineGlobalProperty$3;
968
+ var copyConstructorProperties = copyConstructorProperties$1;
969
+ var isForced = isForced_1;
970
+
971
+ /*
972
+ options.target - name of the target object
973
+ options.global - target is the global object
974
+ options.stat - export as static methods of target
975
+ options.proto - export as prototype methods of target
976
+ options.real - real prototype method for the `pure` version
977
+ options.forced - export even if the native feature is available
978
+ options.bind - bind methods to the target, required for the `pure` version
979
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
980
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
981
+ options.sham - add a flag to not completely full polyfills
982
+ options.enumerable - export as enumerable property
983
+ options.dontCallGetSet - prevent calling a getter on target
984
+ options.name - the .name of the function if it does not match the key
985
+ */
986
+ var _export = function (options, source) {
987
+ var TARGET = options.target;
988
+ var GLOBAL = options.global;
989
+ var STATIC = options.stat;
990
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
991
+ if (GLOBAL) {
992
+ target = globalThis$4;
993
+ } else if (STATIC) {
994
+ target = globalThis$4[TARGET] || defineGlobalProperty(TARGET, {});
995
+ } else {
996
+ target = globalThis$4[TARGET] && globalThis$4[TARGET].prototype;
997
+ }
998
+ if (target) for (key in source) {
999
+ sourceProperty = source[key];
1000
+ if (options.dontCallGetSet) {
1001
+ descriptor = getOwnPropertyDescriptor(target, key);
1002
+ targetProperty = descriptor && descriptor.value;
1003
+ } else targetProperty = target[key];
1004
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1005
+ // contained in target
1006
+ if (!FORCED && targetProperty !== undefined) {
1007
+ if (typeof sourceProperty == typeof targetProperty) continue;
1008
+ copyConstructorProperties(sourceProperty, targetProperty);
1009
+ }
1010
+ // add a flag to not completely full polyfills
1011
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1012
+ createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1013
+ }
1014
+ defineBuiltIn$3(target, key, sourceProperty, options);
1015
+ }
1016
+ };
1017
+
1018
+ var wellKnownSymbol$8 = wellKnownSymbol$a;
1019
+
1020
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1021
+ var test = {};
1022
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
1023
+ test[TO_STRING_TAG$2] = 'z';
1024
+
1025
+ var toStringTagSupport = String(test) === '[object z]';
1026
+
1027
+ var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1028
+ var isCallable$2 = isCallable$d;
1029
+ var classofRaw$1 = classofRaw$2;
1030
+ var wellKnownSymbol$7 = wellKnownSymbol$a;
1031
+
1032
+ var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
1033
+ var $Object = Object;
1034
+
1035
+ // ES3 wrong here
1036
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1037
+
1038
+ // fallback for IE11 Script Access Denied error
1039
+ var tryGet = function (it, key) {
1040
+ try {
1041
+ return it[key];
1042
+ } catch (error) { /* empty */ }
1043
+ };
1044
+
1045
+ // getting tag from ES6+ `Object.prototype.toString`
1046
+ var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
1047
+ var O, tag, result;
1048
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1049
+ // @@toStringTag case
1050
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1051
+ // builtinTag case
1052
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1053
+ // ES3 arguments fallback
1054
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1055
+ };
1056
+
1057
+ var classof$5 = classof$6;
1058
+
1059
+ var $String$1 = String;
1060
+
1061
+ var toString$3 = function (argument) {
1062
+ if (classof$5(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1063
+ return $String$1(argument);
1064
+ };
1065
+
1066
+ var objectDefineProperties = {};
1067
+
1068
+ var internalObjectKeys = objectKeysInternal;
1069
+ var enumBugKeys$1 = enumBugKeys$3;
1070
+
1071
+ // `Object.keys` method
1072
+ // https://tc39.es/ecma262/#sec-object.keys
1073
+ // eslint-disable-next-line es/no-object-keys -- safe
1074
+ var objectKeys$2 = Object.keys || function keys(O) {
1075
+ return internalObjectKeys(O, enumBugKeys$1);
1076
+ };
1077
+
1078
+ var DESCRIPTORS$4 = descriptors;
1079
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1080
+ var definePropertyModule$2 = objectDefineProperty;
1081
+ var anObject$2 = anObject$5;
1082
+ var toIndexedObject$4 = toIndexedObject$8;
1083
+ var objectKeys$1 = objectKeys$2;
1084
+
1085
+ // `Object.defineProperties` method
1086
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1087
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1088
+ objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1089
+ anObject$2(O);
1090
+ var props = toIndexedObject$4(Properties);
1091
+ var keys = objectKeys$1(Properties);
1092
+ var length = keys.length;
1093
+ var index = 0;
1094
+ var key;
1095
+ while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
1096
+ return O;
1097
+ };
1098
+
1099
+ var getBuiltIn$4 = getBuiltIn$7;
1100
+
1101
+ var html$1 = getBuiltIn$4('document', 'documentElement');
1102
+
1103
+ /* global ActiveXObject -- old IE, WSH */
1104
+ var anObject$1 = anObject$5;
1105
+ var definePropertiesModule$1 = objectDefineProperties;
1106
+ var enumBugKeys = enumBugKeys$3;
1107
+ var hiddenKeys$1 = hiddenKeys$5;
1108
+ var html = html$1;
1109
+ var documentCreateElement$1 = documentCreateElement$2;
1110
+ var sharedKey$1 = sharedKey$3;
1111
+
1112
+ var GT = '>';
1113
+ var LT = '<';
1114
+ var PROTOTYPE$1 = 'prototype';
1115
+ var SCRIPT = 'script';
1116
+ var IE_PROTO = sharedKey$1('IE_PROTO');
1117
+
1118
+ var EmptyConstructor = function () { /* empty */ };
1119
+
1120
+ var scriptTag = function (content) {
1121
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1122
+ };
1123
+
1124
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1125
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1126
+ activeXDocument.write(scriptTag(''));
1127
+ activeXDocument.close();
1128
+ var temp = activeXDocument.parentWindow.Object;
1129
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1130
+ activeXDocument = null;
1131
+ return temp;
1132
+ };
1133
+
1134
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1135
+ var NullProtoObjectViaIFrame = function () {
1136
+ // Thrash, waste and sodomy: IE GC bug
1137
+ var iframe = documentCreateElement$1('iframe');
1138
+ var JS = 'java' + SCRIPT + ':';
1139
+ var iframeDocument;
1140
+ iframe.style.display = 'none';
1141
+ html.appendChild(iframe);
1142
+ // https://github.com/zloirock/core-js/issues/475
1143
+ iframe.src = String(JS);
1144
+ iframeDocument = iframe.contentWindow.document;
1145
+ iframeDocument.open();
1146
+ iframeDocument.write(scriptTag('document.F=Object'));
1147
+ iframeDocument.close();
1148
+ return iframeDocument.F;
1149
+ };
1150
+
1151
+ // Check for document.domain and active x support
1152
+ // No need to use active x approach when document.domain is not set
1153
+ // see https://github.com/es-shims/es5-shim/issues/150
1154
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1155
+ // avoid IE GC bug
1156
+ var activeXDocument;
1157
+ var NullProtoObject = function () {
1158
+ try {
1159
+ activeXDocument = new ActiveXObject('htmlfile');
1160
+ } catch (error) { /* ignore */ }
1161
+ NullProtoObject = typeof document != 'undefined'
1162
+ ? document.domain && activeXDocument
1163
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1164
+ : NullProtoObjectViaIFrame()
1165
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1166
+ var length = enumBugKeys.length;
1167
+ while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys[length]];
1168
+ return NullProtoObject();
1169
+ };
1170
+
1171
+ hiddenKeys$1[IE_PROTO] = true;
1172
+
1173
+ // `Object.create` method
1174
+ // https://tc39.es/ecma262/#sec-object.create
1175
+ // eslint-disable-next-line es/no-object-create -- safe
1176
+ var objectCreate = Object.create || function create(O, Properties) {
1177
+ var result;
1178
+ if (O !== null) {
1179
+ EmptyConstructor[PROTOTYPE$1] = anObject$1(O);
1180
+ result = new EmptyConstructor();
1181
+ EmptyConstructor[PROTOTYPE$1] = null;
1182
+ // add "__proto__" for Object.getPrototypeOf polyfill
1183
+ result[IE_PROTO] = O;
1184
+ } else result = NullProtoObject();
1185
+ return Properties === undefined ? result : definePropertiesModule$1.f(result, Properties);
1186
+ };
1187
+
1188
+ var objectGetOwnPropertyNamesExternal = {};
1189
+
1190
+ var uncurryThis$7 = functionUncurryThis;
1191
+
1192
+ var arraySlice$2 = uncurryThis$7([].slice);
1193
+
1194
+ /* eslint-disable es/no-object-getownpropertynames -- safe */
1195
+ var classof$4 = classofRaw$2;
1196
+ var toIndexedObject$3 = toIndexedObject$8;
1197
+ var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
1198
+ var arraySlice$1 = arraySlice$2;
1199
+
1200
+ var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
1201
+ ? Object.getOwnPropertyNames(window) : [];
1202
+
1203
+ var getWindowNames = function (it) {
1204
+ try {
1205
+ return $getOwnPropertyNames$1(it);
1206
+ } catch (error) {
1207
+ return arraySlice$1(windowNames);
1208
+ }
1209
+ };
1210
+
1211
+ // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
1212
+ objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
1213
+ return windowNames && classof$4(it) === 'Window'
1214
+ ? getWindowNames(it)
1215
+ : $getOwnPropertyNames$1(toIndexedObject$3(it));
1216
+ };
1217
+
1218
+ var makeBuiltIn = makeBuiltInExports;
1219
+ var defineProperty$2 = objectDefineProperty;
1220
+
1221
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1222
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1223
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1224
+ return defineProperty$2.f(target, name, descriptor);
1225
+ };
1226
+
1227
+ var wellKnownSymbolWrapped = {};
1228
+
1229
+ var wellKnownSymbol$6 = wellKnownSymbol$a;
1230
+
1231
+ wellKnownSymbolWrapped.f = wellKnownSymbol$6;
1232
+
1233
+ var globalThis$3 = globalThis_1;
1234
+
1235
+ var path$1 = globalThis$3;
1236
+
1237
+ var path = path$1;
1238
+ var hasOwn$5 = hasOwnProperty_1;
1239
+ var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
1240
+ var defineProperty$1 = objectDefineProperty.f;
1241
+
1242
+ var wellKnownSymbolDefine = function (NAME) {
1243
+ var Symbol = path.Symbol || (path.Symbol = {});
1244
+ if (!hasOwn$5(Symbol, NAME)) defineProperty$1(Symbol, NAME, {
1245
+ value: wrappedWellKnownSymbolModule$1.f(NAME)
1246
+ });
1247
+ };
1248
+
1249
+ var call$3 = functionCall;
1250
+ var getBuiltIn$3 = getBuiltIn$7;
1251
+ var wellKnownSymbol$5 = wellKnownSymbol$a;
1252
+ var defineBuiltIn$2 = defineBuiltIn$4;
1253
+
1254
+ var symbolDefineToPrimitive = function () {
1255
+ var Symbol = getBuiltIn$3('Symbol');
1256
+ var SymbolPrototype = Symbol && Symbol.prototype;
1257
+ var valueOf = SymbolPrototype && SymbolPrototype.valueOf;
1258
+ var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
1259
+
1260
+ if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {
1261
+ // `Symbol.prototype[@@toPrimitive]` method
1262
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
1263
+ // eslint-disable-next-line no-unused-vars -- required for .length
1264
+ defineBuiltIn$2(SymbolPrototype, TO_PRIMITIVE, function (hint) {
1265
+ return call$3(valueOf, this);
1266
+ }, { arity: 1 });
1267
+ }
1268
+ };
1269
+
1270
+ var defineProperty = objectDefineProperty.f;
1271
+ var hasOwn$4 = hasOwnProperty_1;
1272
+ var wellKnownSymbol$4 = wellKnownSymbol$a;
1273
+
1274
+ var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1275
+
1276
+ var setToStringTag$1 = function (target, TAG, STATIC) {
1277
+ if (target && !STATIC) target = target.prototype;
1278
+ if (target && !hasOwn$4(target, TO_STRING_TAG)) {
1279
+ defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
1280
+ }
1281
+ };
1282
+
1283
+ var classofRaw = classofRaw$2;
1284
+ var uncurryThis$6 = functionUncurryThis;
1285
+
1286
+ var functionUncurryThisClause = function (fn) {
1287
+ // Nashorn bug:
1288
+ // https://github.com/zloirock/core-js/issues/1128
1289
+ // https://github.com/zloirock/core-js/issues/1130
1290
+ if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
1291
+ };
1292
+
1293
+ var uncurryThis$5 = functionUncurryThisClause;
1294
+ var aCallable = aCallable$2;
1295
+ var NATIVE_BIND$1 = functionBindNative;
1296
+
1297
+ var bind$1 = uncurryThis$5(uncurryThis$5.bind);
1298
+
1299
+ // optional / simple context binding
1300
+ var functionBindContext = function (fn, that) {
1301
+ aCallable(fn);
1302
+ return that === undefined ? fn : NATIVE_BIND$1 ? bind$1(fn, that) : function (/* ...args */) {
1303
+ return fn.apply(that, arguments);
1304
+ };
1305
+ };
1306
+
1307
+ var classof$3 = classofRaw$2;
1308
+
1309
+ // `IsArray` abstract operation
1310
+ // https://tc39.es/ecma262/#sec-isarray
1311
+ // eslint-disable-next-line es/no-array-isarray -- safe
1312
+ var isArray$3 = Array.isArray || function isArray(argument) {
1313
+ return classof$3(argument) === 'Array';
1314
+ };
1315
+
1316
+ var uncurryThis$4 = functionUncurryThis;
1317
+ var fails$9 = fails$i;
1318
+ var isCallable$1 = isCallable$d;
1319
+ var classof$2 = classof$6;
1320
+ var getBuiltIn$2 = getBuiltIn$7;
1321
+ var inspectSource = inspectSource$2;
1322
+
1323
+ var noop = function () { /* empty */ };
1324
+ var construct = getBuiltIn$2('Reflect', 'construct');
1325
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1326
+ var exec$2 = uncurryThis$4(constructorRegExp.exec);
1327
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1328
+
1329
+ var isConstructorModern = function isConstructor(argument) {
1330
+ if (!isCallable$1(argument)) return false;
1331
+ try {
1332
+ construct(noop, [], argument);
1333
+ return true;
1334
+ } catch (error) {
1335
+ return false;
1336
+ }
1337
+ };
1338
+
1339
+ var isConstructorLegacy = function isConstructor(argument) {
1340
+ if (!isCallable$1(argument)) return false;
1341
+ switch (classof$2(argument)) {
1342
+ case 'AsyncFunction':
1343
+ case 'GeneratorFunction':
1344
+ case 'AsyncGeneratorFunction': return false;
1345
+ }
1346
+ try {
1347
+ // we can't check .prototype since constructors produced by .bind haven't it
1348
+ // `Function#toString` throws on some built-it function in some legacy engines
1349
+ // (for example, `DOMQuad` and similar in FF41-)
1350
+ return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
1351
+ } catch (error) {
1352
+ return true;
1353
+ }
1354
+ };
1355
+
1356
+ isConstructorLegacy.sham = true;
1357
+
1358
+ // `IsConstructor` abstract operation
1359
+ // https://tc39.es/ecma262/#sec-isconstructor
1360
+ var isConstructor$1 = !construct || fails$9(function () {
1361
+ var called;
1362
+ return isConstructorModern(isConstructorModern.call)
1363
+ || !isConstructorModern(Object)
1364
+ || !isConstructorModern(function () { called = true; })
1365
+ || called;
1366
+ }) ? isConstructorLegacy : isConstructorModern;
1367
+
1368
+ var isArray$2 = isArray$3;
1369
+ var isConstructor = isConstructor$1;
1370
+ var isObject$2 = isObject$8;
1371
+ var wellKnownSymbol$3 = wellKnownSymbol$a;
1372
+
1373
+ var SPECIES$1 = wellKnownSymbol$3('species');
1374
+ var $Array = Array;
1375
+
1376
+ // a part of `ArraySpeciesCreate` abstract operation
1377
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1378
+ var arraySpeciesConstructor$1 = function (originalArray) {
1379
+ var C;
1380
+ if (isArray$2(originalArray)) {
1381
+ C = originalArray.constructor;
1382
+ // cross-realm fallback
1383
+ if (isConstructor(C) && (C === $Array || isArray$2(C.prototype))) C = undefined;
1384
+ else if (isObject$2(C)) {
1385
+ C = C[SPECIES$1];
1386
+ if (C === null) C = undefined;
1387
+ }
1388
+ } return C === undefined ? $Array : C;
1389
+ };
1390
+
1391
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
1392
+
1393
+ // `ArraySpeciesCreate` abstract operation
1394
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1395
+ var arraySpeciesCreate$2 = function (originalArray, length) {
1396
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1397
+ };
1398
+
1399
+ var bind = functionBindContext;
1400
+ var uncurryThis$3 = functionUncurryThis;
1401
+ var IndexedObject = indexedObject;
1402
+ var toObject$3 = toObject$5;
1403
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1404
+ var arraySpeciesCreate$1 = arraySpeciesCreate$2;
1405
+
1406
+ var push$2 = uncurryThis$3([].push);
1407
+
1408
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1409
+ var createMethod = function (TYPE) {
1410
+ var IS_MAP = TYPE === 1;
1411
+ var IS_FILTER = TYPE === 2;
1412
+ var IS_SOME = TYPE === 3;
1413
+ var IS_EVERY = TYPE === 4;
1414
+ var IS_FIND_INDEX = TYPE === 6;
1415
+ var IS_FILTER_REJECT = TYPE === 7;
1416
+ var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
1417
+ return function ($this, callbackfn, that, specificCreate) {
1418
+ var O = toObject$3($this);
1419
+ var self = IndexedObject(O);
1420
+ var length = lengthOfArrayLike$1(self);
1421
+ var boundFunction = bind(callbackfn, that);
1422
+ var index = 0;
1423
+ var create = specificCreate || arraySpeciesCreate$1;
1424
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1425
+ var value, result;
1426
+ for (;length > index; index++) if (NO_HOLES || index in self) {
1427
+ value = self[index];
1428
+ result = boundFunction(value, index, O);
1429
+ if (TYPE) {
1430
+ if (IS_MAP) target[index] = result; // map
1431
+ else if (result) switch (TYPE) {
1432
+ case 3: return true; // some
1433
+ case 5: return value; // find
1434
+ case 6: return index; // findIndex
1435
+ case 2: push$2(target, value); // filter
1436
+ } else switch (TYPE) {
1437
+ case 4: return false; // every
1438
+ case 7: push$2(target, value); // filterReject
1439
+ }
1440
+ }
1441
+ }
1442
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1443
+ };
1444
+ };
1445
+
1446
+ var arrayIteration = {
1447
+ // `Array.prototype.forEach` method
1448
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
1449
+ forEach: createMethod(0),
1450
+ // `Array.prototype.map` method
1451
+ // https://tc39.es/ecma262/#sec-array.prototype.map
1452
+ map: createMethod(1),
1453
+ // `Array.prototype.filter` method
1454
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
1455
+ filter: createMethod(2),
1456
+ // `Array.prototype.some` method
1457
+ // https://tc39.es/ecma262/#sec-array.prototype.some
1458
+ some: createMethod(3),
1459
+ // `Array.prototype.every` method
1460
+ // https://tc39.es/ecma262/#sec-array.prototype.every
1461
+ every: createMethod(4),
1462
+ // `Array.prototype.find` method
1463
+ // https://tc39.es/ecma262/#sec-array.prototype.find
1464
+ find: createMethod(5),
1465
+ // `Array.prototype.findIndex` method
1466
+ // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1467
+ findIndex: createMethod(6),
1468
+ // `Array.prototype.filterReject` method
1469
+ // https://github.com/tc39/proposal-array-filtering
1470
+ filterReject: createMethod(7)
1471
+ };
1472
+
1473
+ var $$a = _export;
1474
+ var globalThis$2 = globalThis_1;
1475
+ var call$2 = functionCall;
1476
+ var uncurryThis$2 = functionUncurryThis;
1477
+ var DESCRIPTORS$3 = descriptors;
1478
+ var NATIVE_SYMBOL$3 = symbolConstructorDetection;
1479
+ var fails$8 = fails$i;
1480
+ var hasOwn$3 = hasOwnProperty_1;
1481
+ var isPrototypeOf = objectIsPrototypeOf;
1482
+ var anObject = anObject$5;
1483
+ var toIndexedObject$2 = toIndexedObject$8;
1484
+ var toPropertyKey$1 = toPropertyKey$4;
1485
+ var $toString = toString$3;
1486
+ var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1487
+ var nativeObjectCreate = objectCreate;
1488
+ var objectKeys = objectKeys$2;
1489
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1490
+ var getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal;
1491
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1492
+ var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
1493
+ var definePropertyModule$1 = objectDefineProperty;
1494
+ var definePropertiesModule = objectDefineProperties;
1495
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1496
+ var defineBuiltIn$1 = defineBuiltIn$4;
1497
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1498
+ var shared$2 = shared$6;
1499
+ var sharedKey = sharedKey$3;
1500
+ var hiddenKeys = hiddenKeys$5;
1501
+ var uid$1 = uid$4;
1502
+ var wellKnownSymbol$2 = wellKnownSymbol$a;
1503
+ var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;
1504
+ var defineWellKnownSymbol = wellKnownSymbolDefine;
1505
+ var defineSymbolToPrimitive = symbolDefineToPrimitive;
1506
+ var setToStringTag = setToStringTag$1;
1507
+ var InternalStateModule = internalState;
1508
+ var $forEach$1 = arrayIteration.forEach;
1509
+
1510
+ var HIDDEN = sharedKey('hidden');
1511
+ var SYMBOL = 'Symbol';
1512
+ var PROTOTYPE = 'prototype';
1513
+
1514
+ var setInternalState = InternalStateModule.set;
1515
+ var getInternalState$1 = InternalStateModule.getterFor(SYMBOL);
1516
+
1517
+ var ObjectPrototype = Object[PROTOTYPE];
1518
+ var $Symbol = globalThis$2.Symbol;
1519
+ var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
1520
+ var RangeError = globalThis$2.RangeError;
1521
+ var TypeError$1 = globalThis$2.TypeError;
1522
+ var QObject = globalThis$2.QObject;
1523
+ var nativeGetOwnPropertyDescriptor$1 = getOwnPropertyDescriptorModule$1.f;
1524
+ var nativeDefineProperty = definePropertyModule$1.f;
1525
+ var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
1526
+ var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
1527
+ var push$1 = uncurryThis$2([].push);
1528
+
1529
+ var AllSymbols = shared$2('symbols');
1530
+ var ObjectPrototypeSymbols = shared$2('op-symbols');
1531
+ var WellKnownSymbolsStore = shared$2('wks');
1532
+
1533
+ // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
1534
+ var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
1535
+
1536
+ // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
1537
+ var fallbackDefineProperty = function (O, P, Attributes) {
1538
+ var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
1539
+ if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
1540
+ nativeDefineProperty(O, P, Attributes);
1541
+ if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
1542
+ nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
1543
+ }
1544
+ };
1545
+
1546
+ var setSymbolDescriptor = DESCRIPTORS$3 && fails$8(function () {
1547
+ return nativeObjectCreate(nativeDefineProperty({}, 'a', {
1548
+ get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
1549
+ })).a !== 7;
1550
+ }) ? fallbackDefineProperty : nativeDefineProperty;
1551
+
1552
+ var wrap = function (tag, description) {
1553
+ var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);
1554
+ setInternalState(symbol, {
1555
+ type: SYMBOL,
1556
+ tag: tag,
1557
+ description: description
1558
+ });
1559
+ if (!DESCRIPTORS$3) symbol.description = description;
1560
+ return symbol;
1561
+ };
1562
+
1563
+ var $defineProperty = function defineProperty(O, P, Attributes) {
1564
+ if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
1565
+ anObject(O);
1566
+ var key = toPropertyKey$1(P);
1567
+ anObject(Attributes);
1568
+ if (hasOwn$3(AllSymbols, key)) {
1569
+ if (!Attributes.enumerable) {
1570
+ if (!hasOwn$3(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, nativeObjectCreate(null)));
1571
+ O[HIDDEN][key] = true;
1572
+ } else {
1573
+ if (hasOwn$3(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
1574
+ Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$1(0, false) });
1575
+ } return setSymbolDescriptor(O, key, Attributes);
1576
+ } return nativeDefineProperty(O, key, Attributes);
1577
+ };
1578
+
1579
+ var $defineProperties = function defineProperties(O, Properties) {
1580
+ anObject(O);
1581
+ var properties = toIndexedObject$2(Properties);
1582
+ var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
1583
+ $forEach$1(keys, function (key) {
1584
+ if (!DESCRIPTORS$3 || call$2($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]);
1585
+ });
1586
+ return O;
1587
+ };
1588
+
1589
+ var $create = function create(O, Properties) {
1590
+ return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
1591
+ };
1592
+
1593
+ var $propertyIsEnumerable = function propertyIsEnumerable(V) {
1594
+ var P = toPropertyKey$1(V);
1595
+ var enumerable = call$2(nativePropertyIsEnumerable, this, P);
1596
+ if (this === ObjectPrototype && hasOwn$3(AllSymbols, P) && !hasOwn$3(ObjectPrototypeSymbols, P)) return false;
1597
+ return enumerable || !hasOwn$3(this, P) || !hasOwn$3(AllSymbols, P) || hasOwn$3(this, HIDDEN) && this[HIDDEN][P]
1598
+ ? enumerable : true;
1599
+ };
1600
+
1601
+ var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
1602
+ var it = toIndexedObject$2(O);
1603
+ var key = toPropertyKey$1(P);
1604
+ if (it === ObjectPrototype && hasOwn$3(AllSymbols, key) && !hasOwn$3(ObjectPrototypeSymbols, key)) return;
1605
+ var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
1606
+ if (descriptor && hasOwn$3(AllSymbols, key) && !(hasOwn$3(it, HIDDEN) && it[HIDDEN][key])) {
1607
+ descriptor.enumerable = true;
1608
+ }
1609
+ return descriptor;
1610
+ };
1611
+
1612
+ var $getOwnPropertyNames = function getOwnPropertyNames(O) {
1613
+ var names = nativeGetOwnPropertyNames(toIndexedObject$2(O));
1614
+ var result = [];
1615
+ $forEach$1(names, function (key) {
1616
+ if (!hasOwn$3(AllSymbols, key) && !hasOwn$3(hiddenKeys, key)) push$1(result, key);
1617
+ });
1618
+ return result;
1619
+ };
1620
+
1621
+ var $getOwnPropertySymbols = function (O) {
1622
+ var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
1623
+ var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$2(O));
1624
+ var result = [];
1625
+ $forEach$1(names, function (key) {
1626
+ if (hasOwn$3(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$3(ObjectPrototype, key))) {
1627
+ push$1(result, AllSymbols[key]);
1628
+ }
1629
+ });
1630
+ return result;
1631
+ };
1632
+
1633
+ // `Symbol` constructor
1634
+ // https://tc39.es/ecma262/#sec-symbol-constructor
1635
+ if (!NATIVE_SYMBOL$3) {
1636
+ $Symbol = function Symbol() {
1637
+ if (isPrototypeOf(SymbolPrototype, this)) throw new TypeError$1('Symbol is not a constructor');
1638
+ var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);
1639
+ var tag = uid$1(description);
1640
+ var setter = function (value) {
1641
+ var $this = this === undefined ? globalThis$2 : this;
1642
+ if ($this === ObjectPrototype) call$2(setter, ObjectPrototypeSymbols, value);
1643
+ if (hasOwn$3($this, HIDDEN) && hasOwn$3($this[HIDDEN], tag)) $this[HIDDEN][tag] = false;
1644
+ var descriptor = createPropertyDescriptor$1(1, value);
1645
+ try {
1646
+ setSymbolDescriptor($this, tag, descriptor);
1647
+ } catch (error) {
1648
+ if (!(error instanceof RangeError)) throw error;
1649
+ fallbackDefineProperty($this, tag, descriptor);
1650
+ }
1651
+ };
1652
+ if (DESCRIPTORS$3 && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
1653
+ return wrap(tag, description);
1654
+ };
1655
+
1656
+ SymbolPrototype = $Symbol[PROTOTYPE];
1657
+
1658
+ defineBuiltIn$1(SymbolPrototype, 'toString', function toString() {
1659
+ return getInternalState$1(this).tag;
1660
+ });
1661
+
1662
+ defineBuiltIn$1($Symbol, 'withoutSetter', function (description) {
1663
+ return wrap(uid$1(description), description);
1664
+ });
1665
+
1666
+ propertyIsEnumerableModule.f = $propertyIsEnumerable;
1667
+ definePropertyModule$1.f = $defineProperty;
1668
+ definePropertiesModule.f = $defineProperties;
1669
+ getOwnPropertyDescriptorModule$1.f = $getOwnPropertyDescriptor;
1670
+ getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
1671
+ getOwnPropertySymbolsModule$1.f = $getOwnPropertySymbols;
1672
+
1673
+ wrappedWellKnownSymbolModule.f = function (name) {
1674
+ return wrap(wellKnownSymbol$2(name), name);
1675
+ };
1676
+
1677
+ if (DESCRIPTORS$3) {
1678
+ // https://tc39.es/ecma262/#sec-symbol.prototype.description
1679
+ defineBuiltInAccessor(SymbolPrototype, 'description', {
1680
+ configurable: true,
1681
+ get: function description() {
1682
+ return getInternalState$1(this).description;
1683
+ }
1684
+ });
1685
+ {
1686
+ defineBuiltIn$1(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
1687
+ }
1688
+ }
1689
+ }
1690
+
1691
+ $$a({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL$3, sham: !NATIVE_SYMBOL$3 }, {
1692
+ Symbol: $Symbol
1693
+ });
1694
+
1695
+ $forEach$1(objectKeys(WellKnownSymbolsStore), function (name) {
1696
+ defineWellKnownSymbol(name);
1697
+ });
1698
+
1699
+ $$a({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL$3 }, {
1700
+ useSetter: function () { USE_SETTER = true; },
1701
+ useSimple: function () { USE_SETTER = false; }
1702
+ });
1703
+
1704
+ $$a({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$3, sham: !DESCRIPTORS$3 }, {
1705
+ // `Object.create` method
1706
+ // https://tc39.es/ecma262/#sec-object.create
1707
+ create: $create,
1708
+ // `Object.defineProperty` method
1709
+ // https://tc39.es/ecma262/#sec-object.defineproperty
1710
+ defineProperty: $defineProperty,
1711
+ // `Object.defineProperties` method
1712
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1713
+ defineProperties: $defineProperties,
1714
+ // `Object.getOwnPropertyDescriptor` method
1715
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
1716
+ getOwnPropertyDescriptor: $getOwnPropertyDescriptor
1717
+ });
1718
+
1719
+ $$a({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$3 }, {
1720
+ // `Object.getOwnPropertyNames` method
1721
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1722
+ getOwnPropertyNames: $getOwnPropertyNames
1723
+ });
1724
+
1725
+ // `Symbol.prototype[@@toPrimitive]` method
1726
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
1727
+ defineSymbolToPrimitive();
1728
+
1729
+ // `Symbol.prototype[@@toStringTag]` property
1730
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
1731
+ setToStringTag($Symbol, SYMBOL);
1732
+
1733
+ hiddenKeys[HIDDEN] = true;
1734
+
1735
+ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
1736
+
1737
+ /* eslint-disable es/no-symbol -- safe */
1738
+ var symbolRegistryDetection = NATIVE_SYMBOL$2 && !!Symbol['for'] && !!Symbol.keyFor;
1739
+
1740
+ var $$9 = _export;
1741
+ var getBuiltIn$1 = getBuiltIn$7;
1742
+ var hasOwn$2 = hasOwnProperty_1;
1743
+ var toString$2 = toString$3;
1744
+ var shared$1 = shared$6;
1745
+ var NATIVE_SYMBOL_REGISTRY$1 = symbolRegistryDetection;
1746
+
1747
+ var StringToSymbolRegistry = shared$1('string-to-symbol-registry');
1748
+ var SymbolToStringRegistry$1 = shared$1('symbol-to-string-registry');
1749
+
1750
+ // `Symbol.for` method
1751
+ // https://tc39.es/ecma262/#sec-symbol.for
1752
+ $$9({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {
1753
+ 'for': function (key) {
1754
+ var string = toString$2(key);
1755
+ if (hasOwn$2(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
1756
+ var symbol = getBuiltIn$1('Symbol')(string);
1757
+ StringToSymbolRegistry[string] = symbol;
1758
+ SymbolToStringRegistry$1[symbol] = string;
1759
+ return symbol;
1760
+ }
1761
+ });
1762
+
1763
+ var $$8 = _export;
1764
+ var hasOwn$1 = hasOwnProperty_1;
1765
+ var isSymbol$1 = isSymbol$4;
1766
+ var tryToString = tryToString$2;
1767
+ var shared = shared$6;
1768
+ var NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;
1769
+
1770
+ var SymbolToStringRegistry = shared('symbol-to-string-registry');
1771
+
1772
+ // `Symbol.keyFor` method
1773
+ // https://tc39.es/ecma262/#sec-symbol.keyfor
1774
+ $$8({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
1775
+ keyFor: function keyFor(sym) {
1776
+ if (!isSymbol$1(sym)) throw new TypeError(tryToString(sym) + ' is not a symbol');
1777
+ if (hasOwn$1(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
1778
+ }
1779
+ });
1780
+
1781
+ var NATIVE_BIND = functionBindNative;
1782
+
1783
+ var FunctionPrototype = Function.prototype;
1784
+ var apply$1 = FunctionPrototype.apply;
1785
+ var call$1 = FunctionPrototype.call;
1786
+
1787
+ // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
1788
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
1789
+ return call$1.apply(apply$1, arguments);
1790
+ });
1791
+
1792
+ var isObject$1 = isObject$8;
1793
+ var getInternalState = internalState.get;
1794
+
1795
+ var isRawJson = function isRawJSON(O) {
1796
+ if (!isObject$1(O)) return false;
1797
+ var state = getInternalState(O);
1798
+ return !!state && state.type === 'RawJSON';
1799
+ };
1800
+
1801
+ var uncurryThis$1 = functionUncurryThis;
1802
+ var hasOwn = hasOwnProperty_1;
1803
+
1804
+ var $SyntaxError = SyntaxError;
1805
+ var $parseInt = parseInt;
1806
+ var fromCharCode = String.fromCharCode;
1807
+ var at = uncurryThis$1(''.charAt);
1808
+ var slice$1 = uncurryThis$1(''.slice);
1809
+ var exec$1 = uncurryThis$1(/./.exec);
1810
+
1811
+ var codePoints = {
1812
+ '\\"': '"',
1813
+ '\\\\': '\\',
1814
+ '\\/': '/',
1815
+ '\\b': '\b',
1816
+ '\\f': '\f',
1817
+ '\\n': '\n',
1818
+ '\\r': '\r',
1819
+ '\\t': '\t'
1820
+ };
1821
+
1822
+ var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i;
1823
+ // eslint-disable-next-line regexp/no-control-character -- safe
1824
+ var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/;
1825
+
1826
+ var parseJsonString = function (source, i) {
1827
+ var unterminated = true;
1828
+ var value = '';
1829
+ while (i < source.length) {
1830
+ var chr = at(source, i);
1831
+ if (chr === '\\') {
1832
+ var twoChars = slice$1(source, i, i + 2);
1833
+ if (hasOwn(codePoints, twoChars)) {
1834
+ value += codePoints[twoChars];
1835
+ i += 2;
1836
+ } else if (twoChars === '\\u') {
1837
+ i += 2;
1838
+ var fourHexDigits = slice$1(source, i, i + 4);
1839
+ if (!exec$1(IS_4_HEX_DIGITS, fourHexDigits)) throw new $SyntaxError('Bad Unicode escape at: ' + i);
1840
+ value += fromCharCode($parseInt(fourHexDigits, 16));
1841
+ i += 4;
1842
+ } else throw new $SyntaxError('Unknown escape sequence: "' + twoChars + '"');
1843
+ } else if (chr === '"') {
1844
+ unterminated = false;
1845
+ i++;
1846
+ break;
1847
+ } else {
1848
+ if (exec$1(IS_C0_CONTROL_CODE, chr)) throw new $SyntaxError('Bad control character in string literal at: ' + i);
1849
+ value += chr;
1850
+ i++;
1851
+ }
1852
+ }
1853
+ if (unterminated) throw new $SyntaxError('Unterminated string at: ' + i);
1854
+ return { value: value, end: i };
1855
+ };
1856
+
1857
+ /* eslint-disable es/no-json -- safe */
1858
+ var fails$7 = fails$i;
1859
+
1860
+ var nativeRawJson = !fails$7(function () {
1861
+ var unsafeInt = '9007199254740993';
1862
+ // eslint-disable-next-line es/no-nonstandard-json-properties -- feature detection
1863
+ var raw = JSON.rawJSON(unsafeInt);
1864
+ // eslint-disable-next-line es/no-nonstandard-json-properties -- feature detection
1865
+ return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
1866
+ });
1867
+
1868
+ var $$7 = _export;
1869
+ var getBuiltIn = getBuiltIn$7;
1870
+ var apply = functionApply;
1871
+ var call = functionCall;
1872
+ var uncurryThis = functionUncurryThis;
1873
+ var fails$6 = fails$i;
1874
+ var isArray$1 = isArray$3;
1875
+ var isCallable = isCallable$d;
1876
+ var isRawJSON = isRawJson;
1877
+ var isSymbol = isSymbol$4;
1878
+ var classof$1 = classofRaw$2;
1879
+ var toString$1 = toString$3;
1880
+ var arraySlice = arraySlice$2;
1881
+ var parseJSONString = parseJsonString;
1882
+ var uid = uid$4;
1883
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
1884
+ var NATIVE_RAW_JSON = nativeRawJson;
1885
+
1886
+ var $String = String;
1887
+ var $stringify = getBuiltIn('JSON', 'stringify');
1888
+ var exec = uncurryThis(/./.exec);
1889
+ var charAt = uncurryThis(''.charAt);
1890
+ var charCodeAt = uncurryThis(''.charCodeAt);
1891
+ var replace = uncurryThis(''.replace);
1892
+ var slice = uncurryThis(''.slice);
1893
+ var push = uncurryThis([].push);
1894
+ var numberToString = uncurryThis(1.1.toString);
1895
+
1896
+ var surrogates = /[\uD800-\uDFFF]/g;
1897
+ var lowSurrogates = /^[\uD800-\uDBFF]$/;
1898
+ var hiSurrogates = /^[\uDC00-\uDFFF]$/;
1899
+
1900
+ var MARK = uid();
1901
+ var MARK_LENGTH = MARK.length;
1902
+
1903
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$1 || fails$6(function () {
1904
+ var symbol = getBuiltIn('Symbol')('stringify detection');
1905
+ // MS Edge converts symbol values to JSON as {}
1906
+ return $stringify([symbol]) !== '[null]'
1907
+ // WebKit converts symbol values to JSON as null
1908
+ || $stringify({ a: symbol }) !== '{}'
1909
+ // V8 throws on boxed symbols
1910
+ || $stringify(Object(symbol)) !== '{}';
1911
+ });
1912
+
1913
+ // https://github.com/tc39/proposal-well-formed-stringify
1914
+ var ILL_FORMED_UNICODE = fails$6(function () {
1915
+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
1916
+ || $stringify('\uDEAD') !== '"\\udead"';
1917
+ });
1918
+
1919
+ var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function (it, replacer) {
1920
+ var args = arraySlice(arguments);
1921
+ var $replacer = getReplacerFunction(replacer);
1922
+ if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
1923
+ args[1] = function (key, value) {
1924
+ // some old implementations (like WebKit) could pass numbers as keys
1925
+ if (isCallable($replacer)) value = call($replacer, this, $String(key), value);
1926
+ if (!isSymbol(value)) return value;
1927
+ };
1928
+ return apply($stringify, null, args);
1929
+ } : $stringify;
1930
+
1931
+ var fixIllFormedJSON = function (match, offset, string) {
1932
+ var prev = charAt(string, offset - 1);
1933
+ var next = charAt(string, offset + 1);
1934
+ if ((exec(lowSurrogates, match) && !exec(hiSurrogates, next)) || (exec(hiSurrogates, match) && !exec(lowSurrogates, prev))) {
1935
+ return '\\u' + numberToString(charCodeAt(match, 0), 16);
1936
+ } return match;
1937
+ };
1938
+
1939
+ var getReplacerFunction = function (replacer) {
1940
+ if (isCallable(replacer)) return replacer;
1941
+ if (!isArray$1(replacer)) return;
1942
+ var rawLength = replacer.length;
1943
+ var keys = [];
1944
+ for (var i = 0; i < rawLength; i++) {
1945
+ var element = replacer[i];
1946
+ if (typeof element == 'string') push(keys, element);
1947
+ else if (typeof element == 'number' || classof$1(element) === 'Number' || classof$1(element) === 'String') push(keys, toString$1(element));
1948
+ }
1949
+ var keysLength = keys.length;
1950
+ var root = true;
1951
+ return function (key, value) {
1952
+ if (root) {
1953
+ root = false;
1954
+ return value;
1955
+ }
1956
+ if (isArray$1(this)) return value;
1957
+ for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
1958
+ };
1959
+ };
1960
+
1961
+ // `JSON.stringify` method
1962
+ // https://tc39.es/ecma262/#sec-json.stringify
1963
+ // https://github.com/tc39/proposal-json-parse-with-source
1964
+ if ($stringify) $$7({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {
1965
+ stringify: function stringify(text, replacer, space) {
1966
+ var replacerFunction = getReplacerFunction(replacer);
1967
+ var rawStrings = [];
1968
+
1969
+ var json = stringifyWithProperSymbolsConversion(text, function (key, value) {
1970
+ // some old implementations (like WebKit) could pass numbers as keys
1971
+ var v = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value;
1972
+ return !NATIVE_RAW_JSON && isRawJSON(v) ? MARK + (push(rawStrings, v.rawJSON) - 1) : v;
1973
+ }, space);
1974
+
1975
+ if (typeof json != 'string') return json;
1976
+
1977
+ if (ILL_FORMED_UNICODE) json = replace(json, surrogates, fixIllFormedJSON);
1978
+
1979
+ if (NATIVE_RAW_JSON) return json;
1980
+
1981
+ var result = '';
1982
+ var length = json.length;
1983
+
1984
+ for (var i = 0; i < length; i++) {
1985
+ var chr = charAt(json, i);
1986
+ if (chr === '"') {
1987
+ var end = parseJSONString(json, ++i).end - 1;
1988
+ var string = slice(json, i, end);
1989
+ result += slice(string, 0, MARK_LENGTH) === MARK
1990
+ ? rawStrings[slice(string, MARK_LENGTH)]
1991
+ : '"' + string + '"';
1992
+ i = end;
1993
+ } else result += chr;
1994
+ }
1995
+
1996
+ return result;
1997
+ }
1998
+ });
1999
+
2000
+ var $$6 = _export;
2001
+ var NATIVE_SYMBOL = symbolConstructorDetection;
2002
+ var fails$5 = fails$i;
2003
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2004
+ var toObject$2 = toObject$5;
2005
+
2006
+ // V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
2007
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3443
2008
+ var FORCED$2 = !NATIVE_SYMBOL || fails$5(function () { getOwnPropertySymbolsModule.f(1); });
2009
+
2010
+ // `Object.getOwnPropertySymbols` method
2011
+ // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
2012
+ $$6({ target: 'Object', stat: true, forced: FORCED$2 }, {
2013
+ getOwnPropertySymbols: function getOwnPropertySymbols(it) {
2014
+ var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2015
+ return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject$2(it)) : [];
2016
+ }
2017
+ });
2018
+
2019
+ var fails$4 = fails$i;
2020
+ var wellKnownSymbol$1 = wellKnownSymbol$a;
2021
+ var V8_VERSION$1 = environmentV8Version;
2022
+
2023
+ var SPECIES = wellKnownSymbol$1('species');
2024
+
2025
+ var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
2026
+ // We can't use this feature detection in V8 since it causes
2027
+ // deoptimization and serious performance degradation
2028
+ // https://github.com/zloirock/core-js/issues/677
2029
+ return V8_VERSION$1 >= 51 || !fails$4(function () {
2030
+ var array = [];
2031
+ var constructor = array.constructor = {};
2032
+ constructor[SPECIES] = function () {
2033
+ return { foo: 1 };
2034
+ };
2035
+ return array[METHOD_NAME](Boolean).foo !== 1;
2036
+ });
2037
+ };
2038
+
2039
+ var $$5 = _export;
2040
+ var $filter = arrayIteration.filter;
2041
+ var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
2042
+
2043
+ var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$2('filter');
2044
+
2045
+ // `Array.prototype.filter` method
2046
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
2047
+ // with adding support of @@species
2048
+ $$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
2049
+ filter: function filter(callbackfn /* , thisArg */) {
2050
+ return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2051
+ }
2052
+ });
2053
+
2054
+ var $$4 = _export;
2055
+ var fails$3 = fails$i;
2056
+ var toIndexedObject$1 = toIndexedObject$8;
2057
+ var nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2058
+ var DESCRIPTORS$2 = descriptors;
2059
+
2060
+ var FORCED$1 = !DESCRIPTORS$2 || fails$3(function () { nativeGetOwnPropertyDescriptor(1); });
2061
+
2062
+ // `Object.getOwnPropertyDescriptor` method
2063
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
2064
+ $$4({ target: 'Object', stat: true, forced: FORCED$1, sham: !DESCRIPTORS$2 }, {
2065
+ getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
2066
+ return nativeGetOwnPropertyDescriptor(toIndexedObject$1(it), key);
2067
+ }
2068
+ });
2069
+
2070
+ var DESCRIPTORS$1 = descriptors;
2071
+ var definePropertyModule = objectDefineProperty;
2072
+ var createPropertyDescriptor = createPropertyDescriptor$4;
2073
+
2074
+ var createProperty$2 = function (object, key, value) {
2075
+ if (DESCRIPTORS$1) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
2076
+ else object[key] = value;
2077
+ };
2078
+
2079
+ var $$3 = _export;
2080
+ var DESCRIPTORS = descriptors;
2081
+ var ownKeys$1 = ownKeys$3;
2082
+ var toIndexedObject = toIndexedObject$8;
2083
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
2084
+ var createProperty$1 = createProperty$2;
2085
+
2086
+ // `Object.getOwnPropertyDescriptors` method
2087
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
2088
+ $$3({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
2089
+ getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
2090
+ var O = toIndexedObject(object);
2091
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
2092
+ var keys = ownKeys$1(O);
2093
+ var result = {};
2094
+ var index = 0;
2095
+ var key, descriptor;
2096
+ while (keys.length > index) {
2097
+ descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
2098
+ if (descriptor !== undefined) createProperty$1(result, key, descriptor);
2099
+ }
2100
+ return result;
2101
+ }
2102
+ });
2103
+
2104
+ var $$2 = _export;
2105
+ var toObject$1 = toObject$5;
2106
+ var nativeKeys = objectKeys$2;
2107
+ var fails$2 = fails$i;
2108
+
2109
+ var FAILS_ON_PRIMITIVES = fails$2(function () { nativeKeys(1); });
2110
+
2111
+ // `Object.keys` method
2112
+ // https://tc39.es/ecma262/#sec-object.keys
2113
+ $$2({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
2114
+ keys: function keys(it) {
2115
+ return nativeKeys(toObject$1(it));
2116
+ }
2117
+ });
2118
+
2119
+ // iterable DOM collections
2120
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2121
+ var domIterables = {
2122
+ CSSRuleList: 0,
2123
+ CSSStyleDeclaration: 0,
2124
+ CSSValueList: 0,
2125
+ ClientRectList: 0,
2126
+ DOMRectList: 0,
2127
+ DOMStringList: 0,
2128
+ DOMTokenList: 1,
2129
+ DataTransferItemList: 0,
2130
+ FileList: 0,
2131
+ HTMLAllCollection: 0,
2132
+ HTMLCollection: 0,
2133
+ HTMLFormElement: 0,
2134
+ HTMLSelectElement: 0,
2135
+ MediaList: 0,
2136
+ MimeTypeArray: 0,
2137
+ NamedNodeMap: 0,
2138
+ NodeList: 1,
2139
+ PaintRequestList: 0,
2140
+ Plugin: 0,
2141
+ PluginArray: 0,
2142
+ SVGLengthList: 0,
2143
+ SVGNumberList: 0,
2144
+ SVGPathSegList: 0,
2145
+ SVGPointList: 0,
2146
+ SVGStringList: 0,
2147
+ SVGTransformList: 0,
2148
+ SourceBufferList: 0,
2149
+ StyleSheetList: 0,
2150
+ TextTrackCueList: 0,
2151
+ TextTrackList: 0,
2152
+ TouchList: 0
2153
+ };
2154
+
2155
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2156
+ var documentCreateElement = documentCreateElement$2;
2157
+
2158
+ var classList = documentCreateElement('span').classList;
2159
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2160
+
2161
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2162
+
2163
+ var fails$1 = fails$i;
2164
+
2165
+ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2166
+ var method = [][METHOD_NAME];
2167
+ return !!method && fails$1(function () {
2168
+ // eslint-disable-next-line no-useless-call -- required for testing
2169
+ method.call(null, argument || function () { return 1; }, 1);
2170
+ });
2171
+ };
2172
+
2173
+ var $forEach = arrayIteration.forEach;
2174
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
2175
+
2176
+ var STRICT_METHOD = arrayMethodIsStrict('forEach');
2177
+
2178
+ // `Array.prototype.forEach` method implementation
2179
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
2180
+ var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
2181
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2182
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
2183
+ } : [].forEach;
2184
+
2185
+ var globalThis$1 = globalThis_1;
2186
+ var DOMIterables = domIterables;
2187
+ var DOMTokenListPrototype = domTokenListPrototype;
2188
+ var forEach = arrayForEach;
2189
+ var createNonEnumerableProperty = createNonEnumerableProperty$3;
2190
+
2191
+ var handlePrototype = function (CollectionPrototype) {
2192
+ // some Chrome versions have non-configurable methods on DOMTokenList
2193
+ if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
2194
+ createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
2195
+ } catch (error) {
2196
+ CollectionPrototype.forEach = forEach;
2197
+ }
2198
+ };
2199
+
2200
+ for (var COLLECTION_NAME in DOMIterables) {
2201
+ if (DOMIterables[COLLECTION_NAME]) {
2202
+ handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype);
2203
+ }
2204
+ }
2205
+
2206
+ handlePrototype(DOMTokenListPrototype);
2207
+
2208
+ function _arrayLikeToArray(r, a) {
2209
+ (null == a || a > r.length) && (a = r.length);
2210
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2211
+ return n;
2212
+ }
2213
+
2214
+ function _arrayWithoutHoles(r) {
2215
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
2216
+ }
2217
+
2218
+ function _iterableToArray(r) {
2219
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
2220
+ }
2221
+
2222
+ function _unsupportedIterableToArray(r, a) {
2223
+ if (r) {
2224
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
2225
+ var t = {}.toString.call(r).slice(8, -1);
2226
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
2227
+ }
2228
+ }
2229
+
2230
+ function _nonIterableSpread() {
2231
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2232
+ }
2233
+
2234
+ function _toConsumableArray(r) {
2235
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
2236
+ }
2237
+
2238
+ function _typeof(o) {
2239
+ "@babel/helpers - typeof";
2240
+
2241
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2242
+ return typeof o;
2243
+ } : function (o) {
2244
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2245
+ }, _typeof(o);
2246
+ }
2247
+
2248
+ function toPrimitive(t, r) {
2249
+ if ("object" != _typeof(t) || !t) return t;
2250
+ var e = t[Symbol.toPrimitive];
2251
+ if (void 0 !== e) {
2252
+ var i = e.call(t, r || "default");
2253
+ if ("object" != _typeof(i)) return i;
2254
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2255
+ }
2256
+ return ("string" === r ? String : Number)(t);
2257
+ }
2258
+
2259
+ function toPropertyKey(t) {
2260
+ var i = toPrimitive(t, "string");
2261
+ return "symbol" == _typeof(i) ? i : i + "";
2262
+ }
2263
+
2264
+ function _defineProperty(e, r, t) {
2265
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2266
+ value: t,
2267
+ enumerable: !0,
2268
+ configurable: !0,
2269
+ writable: !0
2270
+ }) : e[r] = t, e;
2271
+ }
2272
+
2273
+ function _arrayWithHoles(r) {
2274
+ if (Array.isArray(r)) return r;
2275
+ }
2276
+
2277
+ function _iterableToArrayLimit(r, l) {
2278
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2279
+ if (null != t) {
2280
+ var e,
2281
+ n,
2282
+ i,
2283
+ u,
2284
+ a = [],
2285
+ f = !0,
2286
+ o = !1;
2287
+ try {
2288
+ if (i = (t = t.call(r)).next, 0 === l) {
2289
+ if (Object(t) !== t) return;
2290
+ f = !1;
2291
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2292
+ } catch (r) {
2293
+ o = !0, n = r;
2294
+ } finally {
2295
+ try {
2296
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2297
+ } finally {
2298
+ if (o) throw n;
2299
+ }
2300
+ }
2301
+ return a;
2302
+ }
2303
+ }
2304
+
2305
+ function _nonIterableRest() {
2306
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2307
+ }
2308
+
2309
+ function _slicedToArray(r, e) {
2310
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
2311
+ }
2312
+
2313
+ var $TypeError = TypeError;
2314
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2315
+
2316
+ var doesNotExceedSafeInteger$1 = function (it) {
2317
+ if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
2318
+ return it;
2319
+ };
2320
+
2321
+ var $$1 = _export;
2322
+ var fails = fails$i;
2323
+ var isArray = isArray$3;
2324
+ var isObject = isObject$8;
2325
+ var toObject = toObject$5;
2326
+ var lengthOfArrayLike = lengthOfArrayLike$3;
2327
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2328
+ var createProperty = createProperty$2;
2329
+ var arraySpeciesCreate = arraySpeciesCreate$2;
2330
+ var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
2331
+ var wellKnownSymbol = wellKnownSymbol$a;
2332
+ var V8_VERSION = environmentV8Version;
2333
+
2334
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
2335
+
2336
+ // We can't use this feature detection in V8 since it causes
2337
+ // deoptimization and serious performance degradation
2338
+ // https://github.com/zloirock/core-js/issues/679
2339
+ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
2340
+ var array = [];
2341
+ array[IS_CONCAT_SPREADABLE] = false;
2342
+ return array.concat()[0] !== array;
2343
+ });
2344
+
2345
+ var isConcatSpreadable = function (O) {
2346
+ if (!isObject(O)) return false;
2347
+ var spreadable = O[IS_CONCAT_SPREADABLE];
2348
+ return spreadable !== undefined ? !!spreadable : isArray(O);
2349
+ };
2350
+
2351
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$1('concat');
2352
+
2353
+ // `Array.prototype.concat` method
2354
+ // https://tc39.es/ecma262/#sec-array.prototype.concat
2355
+ // with adding support of @@isConcatSpreadable and @@species
2356
+ $$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
2357
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
2358
+ concat: function concat(arg) {
2359
+ var O = toObject(this);
2360
+ var A = arraySpeciesCreate(O, 0);
2361
+ var n = 0;
2362
+ var i, k, length, len, E;
2363
+ for (i = -1, length = arguments.length; i < length; i++) {
2364
+ E = i === -1 ? O : arguments[i];
2365
+ if (isConcatSpreadable(E)) {
2366
+ len = lengthOfArrayLike(E);
2367
+ doesNotExceedSafeInteger(n + len);
2368
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
2369
+ } else {
2370
+ doesNotExceedSafeInteger(n + 1);
2371
+ createProperty(A, n++, E);
2372
+ }
2373
+ }
2374
+ A.length = n;
2375
+ return A;
2376
+ }
2377
+ });
2378
+
2379
+ var $ = _export;
2380
+ var $map = arrayIteration.map;
2381
+ var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
2382
+
2383
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
2384
+
2385
+ // `Array.prototype.map` method
2386
+ // https://tc39.es/ecma262/#sec-array.prototype.map
2387
+ // with adding support of @@species
2388
+ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2389
+ map: function map(callbackfn /* , thisArg */) {
2390
+ return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2391
+ }
2392
+ });
2393
+
2394
+ var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
2395
+ var classof = classof$6;
2396
+
2397
+ // `Object.prototype.toString` method implementation
2398
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
2399
+ var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
2400
+ return '[object ' + classof(this) + ']';
2401
+ };
2402
+
2403
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2404
+ var defineBuiltIn = defineBuiltIn$4;
2405
+ var toString = objectToString;
2406
+
2407
+ // `Object.prototype.toString` method
2408
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
2409
+ if (!TO_STRING_TAG_SUPPORT) {
2410
+ defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
2411
+ }
2412
+
2413
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2414
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2415
+
2416
+ // className 组件的自定义类名
2417
+ // isShowNoMoreDataTips 是否显示没有更多数据的提示,默认显示
2418
+ // ajaxFn 请求函数
2419
+ // api 请求接口 - h5环境下使用
2420
+ // method 请求方法,默认GET - h5环境下使用
2421
+ // ajaxData = {} 额外的请求参数
2422
+ // limit 每次请求的数据条数,默认10
2423
+ // resListKey 返回数据列表的key
2424
+ // dealReqDataFn Fn 请求回来的数据处理函数
2425
+ // onReqErrorFn Fn 请求失败回调函数
2426
+ // renderItemFn Fn 列表项渲染函数,必传,函数参数为item和index
2427
+ var HTScrollView = function HTScrollView(props) {
2428
+ var className = props.className,
2429
+ _props$isShowNoMoreDa = props.isShowNoMoreDataTips,
2430
+ isShowNoMoreDataTips = _props$isShowNoMoreDa === void 0 ? true : _props$isShowNoMoreDa;
2431
+
2432
+ // 是否正在请求
2433
+ var _useState = React.useState(true),
2434
+ _useState2 = _slicedToArray(_useState, 2),
2435
+ isRequesting = _useState2[0],
2436
+ setIsRequesting = _useState2[1];
2437
+ // 是否已经请求完全部数据
2438
+ var _useState3 = React.useState(false),
2439
+ _useState4 = _slicedToArray(_useState3, 2),
2440
+ isCompleteAllData = _useState4[0],
2441
+ setIsCompleteAllData = _useState4[1];
2442
+ // 分页数据
2443
+ var _useState5 = React.useState({
2444
+ pageNum: 1,
2445
+ total: 0
2446
+ }),
2447
+ _useState6 = _slicedToArray(_useState5, 2),
2448
+ pageData = _useState6[0],
2449
+ setPageData = _useState6[1];
2450
+ // 请求得到的数据
2451
+ var _useState7 = React.useState([]),
2452
+ _useState8 = _slicedToArray(_useState7, 2),
2453
+ dataList = _useState8[0],
2454
+ setDataList = _useState8[1];
2455
+
2456
+ // 分页数据变化时
2457
+ React.useEffect(function () {
2458
+ getDataList();
2459
+ }, [pageData.pageNum]);
2460
+
2461
+ // 滚动到底部时
2462
+ var scrollToLower = function scrollToLower() {
2463
+ // 没有更多数据
2464
+ if (isCompleteAllData) return;
2465
+ // 正在请求数据(除了初始化时)
2466
+ if (pageData.pageNum !== 1 && isRequesting) return;
2467
+ // 初始化时,还未请求到数据
2468
+ if (pageData.pageNum === 1 && !dataList.length) return;
2469
+ setPageData(_objectSpread(_objectSpread({}, pageData), {}, {
2470
+ pageNum: pageData.pageNum + 1
2471
+ }));
2472
+ };
2473
+
2474
+ // 获取数据列表
2475
+ var getDataList = function getDataList() {
2476
+ var _Taro$getEnv;
2477
+ var ajaxFn = props.ajaxFn,
2478
+ api = props.api,
2479
+ _props$method = props.method,
2480
+ method = _props$method === void 0 ? "GET" : _props$method,
2481
+ _props$ajaxData = props.ajaxData,
2482
+ ajaxData = _props$ajaxData === void 0 ? {} : _props$ajaxData,
2483
+ _props$limit = props.limit,
2484
+ limit = _props$limit === void 0 ? 10 : _props$limit;
2485
+ var env = (_Taro$getEnv = Taro__default["default"].getEnv()) === null || _Taro$getEnv === void 0 ? void 0 : _Taro$getEnv.toLowerCase();
2486
+ console.log("env", env);
2487
+ setIsRequesting(true);
2488
+ var ajaxParams = _objectSpread(_objectSpread({}, ajaxData), {}, {
2489
+ page: pageData.pageNum,
2490
+ limit: limit
2491
+ });
2492
+ if (env === "web") {
2493
+ ajaxFn({
2494
+ method: method,
2495
+ url: api,
2496
+ params: ajaxParams
2497
+ }).then(function (res) {
2498
+ dealAjaxData(res);
2499
+ }).catch(function () {
2500
+ onAjaxError();
2501
+ });
2502
+ } else if (env === "weapp") {
2503
+ ajaxFn(ajaxParams).then(function (res) {
2504
+ dealAjaxData(res);
2505
+ }).catch(function (err) {
2506
+ onAjaxError(err);
2507
+ });
2508
+ }
2509
+ };
2510
+ // 处理请求回来的数据
2511
+ var dealAjaxData = function dealAjaxData(res) {
2512
+ if (res.success) {
2513
+ var dealReqDataFn = props.dealReqDataFn,
2514
+ resListKey = props.resListKey;
2515
+ var newDataList = res.content[resListKey] || [];
2516
+ if (dealReqDataFn) {
2517
+ newDataList = dealReqDataFn(newDataList);
2518
+ }
2519
+ if (pageData.pageNum === 1) {
2520
+ setDataList(newDataList);
2521
+ } else {
2522
+ setDataList([].concat(_toConsumableArray(dataList), _toConsumableArray(newDataList)));
2523
+ }
2524
+ setIsCompleteAllData(!newDataList.length);
2525
+ setIsRequesting(false);
2526
+ } else {
2527
+ onAjaxError("ajax fail");
2528
+ }
2529
+ };
2530
+ // 请求失败时
2531
+ var onAjaxError = function onAjaxError(err) {
2532
+ var onReqErrorFn = props.onReqErrorFn;
2533
+ onReqErrorFn && onReqErrorFn(err);
2534
+ setIsRequesting(false);
2535
+ };
2536
+ return /*#__PURE__*/React__default["default"].createElement(components.ScrollView, {
2537
+ className: "ht-scroll-component-view ".concat(className || ""),
2538
+ scrollY: true,
2539
+ scrollWithAnimation: true,
2540
+ onScrollToLower: scrollToLower
2541
+ }, dataList.map(function (item, index) {
2542
+ return props.renderItemFn(item, index);
2543
+ }), isRequesting && /*#__PURE__*/React__default["default"].createElement(components.View, {
2544
+ className: "request-loading-view"
2545
+ }, /*#__PURE__*/React__default["default"].createElement(components.Image, {
2546
+ className: "request-loading-icon",
2547
+ src: "https://xiaobangkj.oss-cn-hangzhou.aliyuncs.com/mini-live/taroComponentsV3/scroll-bottom-loading-icon.png"
2548
+ }), "\u6B63\u5728\u52A0\u8F7D\u4E2D..."), isCompleteAllData && !!isShowNoMoreDataTips && /*#__PURE__*/React__default["default"].createElement(components.View, {
2549
+ className: "no-more-data-tip"
2550
+ }, "\u6CA1\u6709\u66F4\u591A\u6570\u636E\u4E86"));
2551
+ };
2552
+
2553
+ exports.HTScrollView = HTScrollView;