@ada-support/embed2 1.1.45 → 1.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/npm-entry/index.js +2607 -154
  2. package/package.json +1 -1
@@ -1,6 +1,13 @@
1
1
  /******/ (function() { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
+ /***/ 9969:
5
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
6
+
7
+ module.exports = __webpack_require__(7641);
8
+
9
+ /***/ }),
10
+
4
11
  /***/ 5683:
5
12
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
6
13
 
@@ -531,6 +538,47 @@ module.exports = function (argument) {
531
538
  };
532
539
 
533
540
 
541
+ /***/ }),
542
+
543
+ /***/ 1851:
544
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
545
+
546
+ var global = __webpack_require__(1899);
547
+ var isCallable = __webpack_require__(7475);
548
+
549
+ var String = global.String;
550
+ var TypeError = global.TypeError;
551
+
552
+ module.exports = function (argument) {
553
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
554
+ throw TypeError("Can't set " + String(argument) + ' as a prototype');
555
+ };
556
+
557
+
558
+ /***/ }),
559
+
560
+ /***/ 8479:
561
+ /***/ (function(module) {
562
+
563
+ module.exports = function () { /* empty */ };
564
+
565
+
566
+ /***/ }),
567
+
568
+ /***/ 5743:
569
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
570
+
571
+ var global = __webpack_require__(1899);
572
+ var isPrototypeOf = __webpack_require__(7046);
573
+
574
+ var TypeError = global.TypeError;
575
+
576
+ module.exports = function (it, Prototype) {
577
+ if (isPrototypeOf(Prototype, it)) return it;
578
+ throw TypeError('Incorrect invocation');
579
+ };
580
+
581
+
534
582
  /***/ }),
535
583
 
536
584
  /***/ 6059:
@@ -549,6 +597,61 @@ module.exports = function (argument) {
549
597
  };
550
598
 
551
599
 
600
+ /***/ }),
601
+
602
+ /***/ 1354:
603
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
604
+
605
+ "use strict";
606
+
607
+ var global = __webpack_require__(1899);
608
+ var bind = __webpack_require__(6843);
609
+ var call = __webpack_require__(8834);
610
+ var toObject = __webpack_require__(9678);
611
+ var callWithSafeIterationClosing = __webpack_require__(5196);
612
+ var isArrayIteratorMethod = __webpack_require__(6782);
613
+ var isConstructor = __webpack_require__(4284);
614
+ var lengthOfArrayLike = __webpack_require__(623);
615
+ var createProperty = __webpack_require__(5449);
616
+ var getIterator = __webpack_require__(3476);
617
+ var getIteratorMethod = __webpack_require__(2902);
618
+
619
+ var Array = global.Array;
620
+
621
+ // `Array.from` method implementation
622
+ // https://tc39.es/ecma262/#sec-array.from
623
+ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
624
+ var O = toObject(arrayLike);
625
+ var IS_CONSTRUCTOR = isConstructor(this);
626
+ var argumentsLength = arguments.length;
627
+ var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
628
+ var mapping = mapfn !== undefined;
629
+ if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
630
+ var iteratorMethod = getIteratorMethod(O);
631
+ var index = 0;
632
+ var length, result, step, iterator, next, value;
633
+ // if the target is not iterable or it's an array with the default iterator - use a simple case
634
+ if (iteratorMethod && !(this == Array && isArrayIteratorMethod(iteratorMethod))) {
635
+ iterator = getIterator(O, iteratorMethod);
636
+ next = iterator.next;
637
+ result = IS_CONSTRUCTOR ? new this() : [];
638
+ for (;!(step = call(next, iterator)).done; index++) {
639
+ value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
640
+ createProperty(result, index, value);
641
+ }
642
+ } else {
643
+ length = lengthOfArrayLike(O);
644
+ result = IS_CONSTRUCTOR ? new this(length) : Array(length);
645
+ for (;length > index; index++) {
646
+ value = mapping ? mapfn(O[index], index) : O[index];
647
+ createProperty(result, index, value);
648
+ }
649
+ }
650
+ result.length = index;
651
+ return result;
652
+ };
653
+
654
+
552
655
  /***/ }),
553
656
 
554
657
  /***/ 1692:
@@ -720,6 +823,57 @@ var uncurryThis = __webpack_require__(5329);
720
823
  module.exports = uncurryThis([].slice);
721
824
 
722
825
 
826
+ /***/ }),
827
+
828
+ /***/ 1388:
829
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
830
+
831
+ var arraySlice = __webpack_require__(5790);
832
+
833
+ var floor = Math.floor;
834
+
835
+ var mergeSort = function (array, comparefn) {
836
+ var length = array.length;
837
+ var middle = floor(length / 2);
838
+ return length < 8 ? insertionSort(array, comparefn) : merge(
839
+ array,
840
+ mergeSort(arraySlice(array, 0, middle), comparefn),
841
+ mergeSort(arraySlice(array, middle), comparefn),
842
+ comparefn
843
+ );
844
+ };
845
+
846
+ var insertionSort = function (array, comparefn) {
847
+ var length = array.length;
848
+ var i = 1;
849
+ var element, j;
850
+
851
+ while (i < length) {
852
+ j = i;
853
+ element = array[i];
854
+ while (j && comparefn(array[j - 1], element) > 0) {
855
+ array[j] = array[--j];
856
+ }
857
+ if (j !== i++) array[j] = element;
858
+ } return array;
859
+ };
860
+
861
+ var merge = function (array, left, right, comparefn) {
862
+ var llength = left.length;
863
+ var rlength = right.length;
864
+ var lindex = 0;
865
+ var rindex = 0;
866
+
867
+ while (lindex < llength || rindex < rlength) {
868
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
869
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
870
+ : lindex < llength ? left[lindex++] : right[rindex++];
871
+ } return array;
872
+ };
873
+
874
+ module.exports = mergeSort;
875
+
876
+
723
877
  /***/ }),
724
878
 
725
879
  /***/ 5693:
@@ -764,6 +918,24 @@ module.exports = function (originalArray, length) {
764
918
  };
765
919
 
766
920
 
921
+ /***/ }),
922
+
923
+ /***/ 5196:
924
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
925
+
926
+ var anObject = __webpack_require__(6059);
927
+ var iteratorClose = __webpack_require__(7609);
928
+
929
+ // call something on iterator step with safe closing on error
930
+ module.exports = function (iterator, fn, value, ENTRIES) {
931
+ try {
932
+ return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
933
+ } catch (error) {
934
+ iteratorClose(iterator, 'throw', error);
935
+ }
936
+ };
937
+
938
+
767
939
  /***/ }),
768
940
 
769
941
  /***/ 2532:
@@ -816,6 +988,45 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
816
988
  };
817
989
 
818
990
 
991
+ /***/ }),
992
+
993
+ /***/ 4160:
994
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
995
+
996
+ var fails = __webpack_require__(5981);
997
+
998
+ module.exports = !fails(function () {
999
+ function F() { /* empty */ }
1000
+ F.prototype.constructor = null;
1001
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1002
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1003
+ });
1004
+
1005
+
1006
+ /***/ }),
1007
+
1008
+ /***/ 1046:
1009
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1010
+
1011
+ "use strict";
1012
+
1013
+ var IteratorPrototype = (__webpack_require__(5143).IteratorPrototype);
1014
+ var create = __webpack_require__(9290);
1015
+ var createPropertyDescriptor = __webpack_require__(1887);
1016
+ var setToStringTag = __webpack_require__(904);
1017
+ var Iterators = __webpack_require__(2077);
1018
+
1019
+ var returnThis = function () { return this; };
1020
+
1021
+ module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1022
+ var TO_STRING_TAG = NAME + ' Iterator';
1023
+ IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1024
+ setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
1025
+ Iterators[TO_STRING_TAG] = returnThis;
1026
+ return IteratorConstructor;
1027
+ };
1028
+
1029
+
819
1030
  /***/ }),
820
1031
 
821
1032
  /***/ 2029:
@@ -866,6 +1077,113 @@ module.exports = function (object, key, value) {
866
1077
  };
867
1078
 
868
1079
 
1080
+ /***/ }),
1081
+
1082
+ /***/ 7771:
1083
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1084
+
1085
+ "use strict";
1086
+
1087
+ var $ = __webpack_require__(6887);
1088
+ var call = __webpack_require__(8834);
1089
+ var IS_PURE = __webpack_require__(2529);
1090
+ var FunctionName = __webpack_require__(9417);
1091
+ var isCallable = __webpack_require__(7475);
1092
+ var createIteratorConstructor = __webpack_require__(1046);
1093
+ var getPrototypeOf = __webpack_require__(249);
1094
+ var setPrototypeOf = __webpack_require__(8929);
1095
+ var setToStringTag = __webpack_require__(904);
1096
+ var createNonEnumerableProperty = __webpack_require__(2029);
1097
+ var redefine = __webpack_require__(9754);
1098
+ var wellKnownSymbol = __webpack_require__(9813);
1099
+ var Iterators = __webpack_require__(2077);
1100
+ var IteratorsCore = __webpack_require__(5143);
1101
+
1102
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1103
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1104
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1105
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1106
+ var ITERATOR = wellKnownSymbol('iterator');
1107
+ var KEYS = 'keys';
1108
+ var VALUES = 'values';
1109
+ var ENTRIES = 'entries';
1110
+
1111
+ var returnThis = function () { return this; };
1112
+
1113
+ module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1114
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1115
+
1116
+ var getIterationMethod = function (KIND) {
1117
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1118
+ if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1119
+ switch (KIND) {
1120
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1121
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1122
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1123
+ } return function () { return new IteratorConstructor(this); };
1124
+ };
1125
+
1126
+ var TO_STRING_TAG = NAME + ' Iterator';
1127
+ var INCORRECT_VALUES_NAME = false;
1128
+ var IterablePrototype = Iterable.prototype;
1129
+ var nativeIterator = IterablePrototype[ITERATOR]
1130
+ || IterablePrototype['@@iterator']
1131
+ || DEFAULT && IterablePrototype[DEFAULT];
1132
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1133
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1134
+ var CurrentIteratorPrototype, methods, KEY;
1135
+
1136
+ // fix native
1137
+ if (anyNativeIterator) {
1138
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1139
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1140
+ if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1141
+ if (setPrototypeOf) {
1142
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1143
+ } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
1144
+ redefine(CurrentIteratorPrototype, ITERATOR, returnThis);
1145
+ }
1146
+ }
1147
+ // Set @@toStringTag to native iterators
1148
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
1149
+ if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
1150
+ }
1151
+ }
1152
+
1153
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1154
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1155
+ if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
1156
+ createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
1157
+ } else {
1158
+ INCORRECT_VALUES_NAME = true;
1159
+ defaultIterator = function values() { return call(nativeIterator, this); };
1160
+ }
1161
+ }
1162
+
1163
+ // export additional methods
1164
+ if (DEFAULT) {
1165
+ methods = {
1166
+ values: getIterationMethod(VALUES),
1167
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1168
+ entries: getIterationMethod(ENTRIES)
1169
+ };
1170
+ if (FORCED) for (KEY in methods) {
1171
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1172
+ redefine(IterablePrototype, KEY, methods[KEY]);
1173
+ }
1174
+ } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1175
+ }
1176
+
1177
+ // define iterator
1178
+ if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
1179
+ redefine(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
1180
+ }
1181
+ Iterators[NAME] = defaultIterator;
1182
+
1183
+ return methods;
1184
+ };
1185
+
1186
+
869
1187
  /***/ }),
870
1188
 
871
1189
  /***/ 6349:
@@ -1177,6 +1495,30 @@ module.exports = NATIVE_BIND ? call.bind(call) : function () {
1177
1495
  };
1178
1496
 
1179
1497
 
1498
+ /***/ }),
1499
+
1500
+ /***/ 9417:
1501
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1502
+
1503
+ var DESCRIPTORS = __webpack_require__(5746);
1504
+ var hasOwn = __webpack_require__(953);
1505
+
1506
+ var FunctionPrototype = Function.prototype;
1507
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1508
+ var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
1509
+
1510
+ var EXISTS = hasOwn(FunctionPrototype, 'name');
1511
+ // additional protection from minified / mangled / dropped function names
1512
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1513
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
1514
+
1515
+ module.exports = {
1516
+ EXISTS: EXISTS,
1517
+ PROPER: PROPER,
1518
+ CONFIGURABLE: CONFIGURABLE
1519
+ };
1520
+
1521
+
1180
1522
  /***/ }),
1181
1523
 
1182
1524
  /***/ 5329:
@@ -1217,6 +1559,46 @@ module.exports = function (namespace, method) {
1217
1559
  };
1218
1560
 
1219
1561
 
1562
+ /***/ }),
1563
+
1564
+ /***/ 2902:
1565
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1566
+
1567
+ var classof = __webpack_require__(9697);
1568
+ var getMethod = __webpack_require__(4229);
1569
+ var Iterators = __webpack_require__(2077);
1570
+ var wellKnownSymbol = __webpack_require__(9813);
1571
+
1572
+ var ITERATOR = wellKnownSymbol('iterator');
1573
+
1574
+ module.exports = function (it) {
1575
+ if (it != undefined) return getMethod(it, ITERATOR)
1576
+ || getMethod(it, '@@iterator')
1577
+ || Iterators[classof(it)];
1578
+ };
1579
+
1580
+
1581
+ /***/ }),
1582
+
1583
+ /***/ 3476:
1584
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1585
+
1586
+ var global = __webpack_require__(1899);
1587
+ var call = __webpack_require__(8834);
1588
+ var aCallable = __webpack_require__(4883);
1589
+ var anObject = __webpack_require__(6059);
1590
+ var tryToString = __webpack_require__(9826);
1591
+ var getIteratorMethod = __webpack_require__(2902);
1592
+
1593
+ var TypeError = global.TypeError;
1594
+
1595
+ module.exports = function (argument, usingIterator) {
1596
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
1597
+ if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
1598
+ throw TypeError(tryToString(argument) + ' is not iterable');
1599
+ };
1600
+
1601
+
1220
1602
  /***/ }),
1221
1603
 
1222
1604
  /***/ 4229:
@@ -1426,6 +1808,23 @@ module.exports = {
1426
1808
  };
1427
1809
 
1428
1810
 
1811
+ /***/ }),
1812
+
1813
+ /***/ 6782:
1814
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1815
+
1816
+ var wellKnownSymbol = __webpack_require__(9813);
1817
+ var Iterators = __webpack_require__(2077);
1818
+
1819
+ var ITERATOR = wellKnownSymbol('iterator');
1820
+ var ArrayPrototype = Array.prototype;
1821
+
1822
+ // check on default Array iterator
1823
+ module.exports = function (it) {
1824
+ return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
1825
+ };
1826
+
1827
+
1429
1828
  /***/ }),
1430
1829
 
1431
1830
  /***/ 1052:
@@ -1582,6 +1981,100 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
1582
1981
  };
1583
1982
 
1584
1983
 
1984
+ /***/ }),
1985
+
1986
+ /***/ 7609:
1987
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1988
+
1989
+ var call = __webpack_require__(8834);
1990
+ var anObject = __webpack_require__(6059);
1991
+ var getMethod = __webpack_require__(4229);
1992
+
1993
+ module.exports = function (iterator, kind, value) {
1994
+ var innerResult, innerError;
1995
+ anObject(iterator);
1996
+ try {
1997
+ innerResult = getMethod(iterator, 'return');
1998
+ if (!innerResult) {
1999
+ if (kind === 'throw') throw value;
2000
+ return value;
2001
+ }
2002
+ innerResult = call(innerResult, iterator);
2003
+ } catch (error) {
2004
+ innerError = true;
2005
+ innerResult = error;
2006
+ }
2007
+ if (kind === 'throw') throw value;
2008
+ if (innerError) throw innerResult;
2009
+ anObject(innerResult);
2010
+ return value;
2011
+ };
2012
+
2013
+
2014
+ /***/ }),
2015
+
2016
+ /***/ 5143:
2017
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2018
+
2019
+ "use strict";
2020
+
2021
+ var fails = __webpack_require__(5981);
2022
+ var isCallable = __webpack_require__(7475);
2023
+ var create = __webpack_require__(9290);
2024
+ var getPrototypeOf = __webpack_require__(249);
2025
+ var redefine = __webpack_require__(9754);
2026
+ var wellKnownSymbol = __webpack_require__(9813);
2027
+ var IS_PURE = __webpack_require__(2529);
2028
+
2029
+ var ITERATOR = wellKnownSymbol('iterator');
2030
+ var BUGGY_SAFARI_ITERATORS = false;
2031
+
2032
+ // `%IteratorPrototype%` object
2033
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
2034
+ var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
2035
+
2036
+ /* eslint-disable es/no-array-prototype-keys -- safe */
2037
+ if ([].keys) {
2038
+ arrayIterator = [].keys();
2039
+ // Safari 8 has buggy iterators w/o `next`
2040
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
2041
+ else {
2042
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
2043
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
2044
+ }
2045
+ }
2046
+
2047
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
2048
+ var test = {};
2049
+ // FF44- legacy iterators case
2050
+ return IteratorPrototype[ITERATOR].call(test) !== test;
2051
+ });
2052
+
2053
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
2054
+ else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
2055
+
2056
+ // `%IteratorPrototype%[@@iterator]()` method
2057
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2058
+ if (!isCallable(IteratorPrototype[ITERATOR])) {
2059
+ redefine(IteratorPrototype, ITERATOR, function () {
2060
+ return this;
2061
+ });
2062
+ }
2063
+
2064
+ module.exports = {
2065
+ IteratorPrototype: IteratorPrototype,
2066
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
2067
+ };
2068
+
2069
+
2070
+ /***/ }),
2071
+
2072
+ /***/ 2077:
2073
+ /***/ (function(module) {
2074
+
2075
+ module.exports = {};
2076
+
2077
+
1585
2078
  /***/ }),
1586
2079
 
1587
2080
  /***/ 623:
@@ -1618,10 +2111,51 @@ module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
1618
2111
 
1619
2112
  /***/ }),
1620
2113
 
1621
- /***/ 8019:
2114
+ /***/ 8468:
1622
2115
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1623
2116
 
1624
- var global = __webpack_require__(1899);
2117
+ var fails = __webpack_require__(5981);
2118
+ var wellKnownSymbol = __webpack_require__(9813);
2119
+ var IS_PURE = __webpack_require__(2529);
2120
+
2121
+ var ITERATOR = wellKnownSymbol('iterator');
2122
+
2123
+ module.exports = !fails(function () {
2124
+ // eslint-disable-next-line unicorn/relative-url-style -- required for testing
2125
+ var url = new URL('b?a=1&b=2&c=3', 'http://a');
2126
+ var searchParams = url.searchParams;
2127
+ var result = '';
2128
+ url.pathname = 'c%20d';
2129
+ searchParams.forEach(function (value, key) {
2130
+ searchParams['delete']('b');
2131
+ result += key + value;
2132
+ });
2133
+ return (IS_PURE && !url.toJSON)
2134
+ || !searchParams.sort
2135
+ || url.href !== 'http://a/c%20d?a=1&c=3'
2136
+ || searchParams.get('c') !== '3'
2137
+ || String(new URLSearchParams('?a=1')) !== 'a=1'
2138
+ || !searchParams[ITERATOR]
2139
+ // throws in Edge
2140
+ || new URL('https://a@b').username !== 'a'
2141
+ || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
2142
+ // not punycoded in Edge
2143
+ || new URL('http://тест').host !== 'xn--e1aybc'
2144
+ // not escaped in Chrome 62-
2145
+ || new URL('http://a#б').hash !== '#%D0%B1'
2146
+ // fails in Chrome 66-
2147
+ || result !== 'a1c3'
2148
+ // throws in Safari
2149
+ || new URL('http://x', undefined).host !== 'x';
2150
+ });
2151
+
2152
+
2153
+ /***/ }),
2154
+
2155
+ /***/ 8019:
2156
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2157
+
2158
+ var global = __webpack_require__(1899);
1625
2159
  var isCallable = __webpack_require__(7475);
1626
2160
  var inspectSource = __webpack_require__(1302);
1627
2161
 
@@ -1948,6 +2482,34 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1948
2482
  exports.f = Object.getOwnPropertySymbols;
1949
2483
 
1950
2484
 
2485
+ /***/ }),
2486
+
2487
+ /***/ 249:
2488
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2489
+
2490
+ var global = __webpack_require__(1899);
2491
+ var hasOwn = __webpack_require__(953);
2492
+ var isCallable = __webpack_require__(7475);
2493
+ var toObject = __webpack_require__(9678);
2494
+ var sharedKey = __webpack_require__(4262);
2495
+ var CORRECT_PROTOTYPE_GETTER = __webpack_require__(4160);
2496
+
2497
+ var IE_PROTO = sharedKey('IE_PROTO');
2498
+ var Object = global.Object;
2499
+ var ObjectPrototype = Object.prototype;
2500
+
2501
+ // `Object.getPrototypeOf` method
2502
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
2503
+ module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
2504
+ var object = toObject(O);
2505
+ if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
2506
+ var constructor = object.constructor;
2507
+ if (isCallable(constructor) && object instanceof constructor) {
2508
+ return constructor.prototype;
2509
+ } return object instanceof Object ? ObjectPrototype : null;
2510
+ };
2511
+
2512
+
1951
2513
  /***/ }),
1952
2514
 
1953
2515
  /***/ 7046:
@@ -2023,6 +2585,40 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
2023
2585
  } : $propertyIsEnumerable;
2024
2586
 
2025
2587
 
2588
+ /***/ }),
2589
+
2590
+ /***/ 8929:
2591
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2592
+
2593
+ /* eslint-disable no-proto -- safe */
2594
+ var uncurryThis = __webpack_require__(5329);
2595
+ var anObject = __webpack_require__(6059);
2596
+ var aPossiblePrototype = __webpack_require__(1851);
2597
+
2598
+ // `Object.setPrototypeOf` method
2599
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
2600
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
2601
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
2602
+ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
2603
+ var CORRECT_SETTER = false;
2604
+ var test = {};
2605
+ var setter;
2606
+ try {
2607
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2608
+ setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
2609
+ setter(test, []);
2610
+ CORRECT_SETTER = test instanceof Array;
2611
+ } catch (error) { /* empty */ }
2612
+ return function setPrototypeOf(O, proto) {
2613
+ anObject(O);
2614
+ aPossiblePrototype(proto);
2615
+ if (CORRECT_SETTER) setter(O, proto);
2616
+ else O.__proto__ = proto;
2617
+ return O;
2618
+ };
2619
+ }() : undefined);
2620
+
2621
+
2026
2622
  /***/ }),
2027
2623
 
2028
2624
  /***/ 5623:
@@ -2071,6 +2667,21 @@ module.exports = function (input, pref) {
2071
2667
  module.exports = {};
2072
2668
 
2073
2669
 
2670
+ /***/ }),
2671
+
2672
+ /***/ 7524:
2673
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2674
+
2675
+ var redefine = __webpack_require__(9754);
2676
+
2677
+ module.exports = function (target, src, options) {
2678
+ for (var key in src) {
2679
+ if (options && options.unsafe && target[key]) target[key] = src[key];
2680
+ else redefine(target, key, src[key], options);
2681
+ } return target;
2682
+ };
2683
+
2684
+
2074
2685
  /***/ }),
2075
2686
 
2076
2687
  /***/ 9754:
@@ -2195,6 +2806,239 @@ var store = __webpack_require__(3030);
2195
2806
  });
2196
2807
 
2197
2808
 
2809
+ /***/ }),
2810
+
2811
+ /***/ 4620:
2812
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2813
+
2814
+ var uncurryThis = __webpack_require__(5329);
2815
+ var toIntegerOrInfinity = __webpack_require__(2435);
2816
+ var toString = __webpack_require__(5803);
2817
+ var requireObjectCoercible = __webpack_require__(8219);
2818
+
2819
+ var charAt = uncurryThis(''.charAt);
2820
+ var charCodeAt = uncurryThis(''.charCodeAt);
2821
+ var stringSlice = uncurryThis(''.slice);
2822
+
2823
+ var createMethod = function (CONVERT_TO_STRING) {
2824
+ return function ($this, pos) {
2825
+ var S = toString(requireObjectCoercible($this));
2826
+ var position = toIntegerOrInfinity(pos);
2827
+ var size = S.length;
2828
+ var first, second;
2829
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2830
+ first = charCodeAt(S, position);
2831
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
2832
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2833
+ ? CONVERT_TO_STRING
2834
+ ? charAt(S, position)
2835
+ : first
2836
+ : CONVERT_TO_STRING
2837
+ ? stringSlice(S, position, position + 2)
2838
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2839
+ };
2840
+ };
2841
+
2842
+ module.exports = {
2843
+ // `String.prototype.codePointAt` method
2844
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2845
+ codeAt: createMethod(false),
2846
+ // `String.prototype.at` method
2847
+ // https://github.com/mathiasbynens/String.prototype.at
2848
+ charAt: createMethod(true)
2849
+ };
2850
+
2851
+
2852
+ /***/ }),
2853
+
2854
+ /***/ 3291:
2855
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2856
+
2857
+ "use strict";
2858
+
2859
+ // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
2860
+ var global = __webpack_require__(1899);
2861
+ var uncurryThis = __webpack_require__(5329);
2862
+
2863
+ var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
2864
+ var base = 36;
2865
+ var tMin = 1;
2866
+ var tMax = 26;
2867
+ var skew = 38;
2868
+ var damp = 700;
2869
+ var initialBias = 72;
2870
+ var initialN = 128; // 0x80
2871
+ var delimiter = '-'; // '\x2D'
2872
+ var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
2873
+ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
2874
+ var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
2875
+ var baseMinusTMin = base - tMin;
2876
+
2877
+ var RangeError = global.RangeError;
2878
+ var exec = uncurryThis(regexSeparators.exec);
2879
+ var floor = Math.floor;
2880
+ var fromCharCode = String.fromCharCode;
2881
+ var charCodeAt = uncurryThis(''.charCodeAt);
2882
+ var join = uncurryThis([].join);
2883
+ var push = uncurryThis([].push);
2884
+ var replace = uncurryThis(''.replace);
2885
+ var split = uncurryThis(''.split);
2886
+ var toLowerCase = uncurryThis(''.toLowerCase);
2887
+
2888
+ /**
2889
+ * Creates an array containing the numeric code points of each Unicode
2890
+ * character in the string. While JavaScript uses UCS-2 internally,
2891
+ * this function will convert a pair of surrogate halves (each of which
2892
+ * UCS-2 exposes as separate characters) into a single code point,
2893
+ * matching UTF-16.
2894
+ */
2895
+ var ucs2decode = function (string) {
2896
+ var output = [];
2897
+ var counter = 0;
2898
+ var length = string.length;
2899
+ while (counter < length) {
2900
+ var value = charCodeAt(string, counter++);
2901
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
2902
+ // It's a high surrogate, and there is a next character.
2903
+ var extra = charCodeAt(string, counter++);
2904
+ if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
2905
+ push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
2906
+ } else {
2907
+ // It's an unmatched surrogate; only append this code unit, in case the
2908
+ // next code unit is the high surrogate of a surrogate pair.
2909
+ push(output, value);
2910
+ counter--;
2911
+ }
2912
+ } else {
2913
+ push(output, value);
2914
+ }
2915
+ }
2916
+ return output;
2917
+ };
2918
+
2919
+ /**
2920
+ * Converts a digit/integer into a basic code point.
2921
+ */
2922
+ var digitToBasic = function (digit) {
2923
+ // 0..25 map to ASCII a..z or A..Z
2924
+ // 26..35 map to ASCII 0..9
2925
+ return digit + 22 + 75 * (digit < 26);
2926
+ };
2927
+
2928
+ /**
2929
+ * Bias adaptation function as per section 3.4 of RFC 3492.
2930
+ * https://tools.ietf.org/html/rfc3492#section-3.4
2931
+ */
2932
+ var adapt = function (delta, numPoints, firstTime) {
2933
+ var k = 0;
2934
+ delta = firstTime ? floor(delta / damp) : delta >> 1;
2935
+ delta += floor(delta / numPoints);
2936
+ while (delta > baseMinusTMin * tMax >> 1) {
2937
+ delta = floor(delta / baseMinusTMin);
2938
+ k += base;
2939
+ }
2940
+ return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
2941
+ };
2942
+
2943
+ /**
2944
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
2945
+ * Punycode string of ASCII-only symbols.
2946
+ */
2947
+ var encode = function (input) {
2948
+ var output = [];
2949
+
2950
+ // Convert the input in UCS-2 to an array of Unicode code points.
2951
+ input = ucs2decode(input);
2952
+
2953
+ // Cache the length.
2954
+ var inputLength = input.length;
2955
+
2956
+ // Initialize the state.
2957
+ var n = initialN;
2958
+ var delta = 0;
2959
+ var bias = initialBias;
2960
+ var i, currentValue;
2961
+
2962
+ // Handle the basic code points.
2963
+ for (i = 0; i < input.length; i++) {
2964
+ currentValue = input[i];
2965
+ if (currentValue < 0x80) {
2966
+ push(output, fromCharCode(currentValue));
2967
+ }
2968
+ }
2969
+
2970
+ var basicLength = output.length; // number of basic code points.
2971
+ var handledCPCount = basicLength; // number of code points that have been handled;
2972
+
2973
+ // Finish the basic string with a delimiter unless it's empty.
2974
+ if (basicLength) {
2975
+ push(output, delimiter);
2976
+ }
2977
+
2978
+ // Main encoding loop:
2979
+ while (handledCPCount < inputLength) {
2980
+ // All non-basic code points < n have been handled already. Find the next larger one:
2981
+ var m = maxInt;
2982
+ for (i = 0; i < input.length; i++) {
2983
+ currentValue = input[i];
2984
+ if (currentValue >= n && currentValue < m) {
2985
+ m = currentValue;
2986
+ }
2987
+ }
2988
+
2989
+ // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
2990
+ var handledCPCountPlusOne = handledCPCount + 1;
2991
+ if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
2992
+ throw RangeError(OVERFLOW_ERROR);
2993
+ }
2994
+
2995
+ delta += (m - n) * handledCPCountPlusOne;
2996
+ n = m;
2997
+
2998
+ for (i = 0; i < input.length; i++) {
2999
+ currentValue = input[i];
3000
+ if (currentValue < n && ++delta > maxInt) {
3001
+ throw RangeError(OVERFLOW_ERROR);
3002
+ }
3003
+ if (currentValue == n) {
3004
+ // Represent delta as a generalized variable-length integer.
3005
+ var q = delta;
3006
+ var k = base;
3007
+ while (true) {
3008
+ var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
3009
+ if (q < t) break;
3010
+ var qMinusT = q - t;
3011
+ var baseMinusT = base - t;
3012
+ push(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
3013
+ q = floor(qMinusT / baseMinusT);
3014
+ k += base;
3015
+ }
3016
+
3017
+ push(output, fromCharCode(digitToBasic(q)));
3018
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
3019
+ delta = 0;
3020
+ handledCPCount++;
3021
+ }
3022
+ }
3023
+
3024
+ delta++;
3025
+ n++;
3026
+ }
3027
+ return join(output, '');
3028
+ };
3029
+
3030
+ module.exports = function (input) {
3031
+ var encoded = [];
3032
+ var labels = split(replace(toLowerCase(input), regexSeparators, '\u002E'), '.');
3033
+ var i, label;
3034
+ for (i = 0; i < labels.length; i++) {
3035
+ label = labels[i];
3036
+ push(encoded, exec(regexNonASCII, label) ? 'xn--' + encode(label) : label);
3037
+ }
3038
+ return join(encoded, '.');
3039
+ };
3040
+
3041
+
2198
3042
  /***/ }),
2199
3043
 
2200
3044
  /***/ 9413:
@@ -2424,6 +3268,21 @@ module.exports = DESCRIPTORS && fails(function () {
2424
3268
  });
2425
3269
 
2426
3270
 
3271
+ /***/ }),
3272
+
3273
+ /***/ 8348:
3274
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3275
+
3276
+ var global = __webpack_require__(1899);
3277
+
3278
+ var TypeError = global.TypeError;
3279
+
3280
+ module.exports = function (passed, required) {
3281
+ if (passed < required) throw TypeError('Not enough arguments');
3282
+ return passed;
3283
+ };
3284
+
3285
+
2427
3286
  /***/ }),
2428
3287
 
2429
3288
  /***/ 1477:
@@ -2496,6 +3355,75 @@ $({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
2496
3355
  });
2497
3356
 
2498
3357
 
3358
+ /***/ }),
3359
+
3360
+ /***/ 6274:
3361
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3362
+
3363
+ "use strict";
3364
+
3365
+ var toIndexedObject = __webpack_require__(4529);
3366
+ var addToUnscopables = __webpack_require__(8479);
3367
+ var Iterators = __webpack_require__(2077);
3368
+ var InternalStateModule = __webpack_require__(5402);
3369
+ var defineProperty = (__webpack_require__(5988).f);
3370
+ var defineIterator = __webpack_require__(7771);
3371
+ var IS_PURE = __webpack_require__(2529);
3372
+ var DESCRIPTORS = __webpack_require__(5746);
3373
+
3374
+ var ARRAY_ITERATOR = 'Array Iterator';
3375
+ var setInternalState = InternalStateModule.set;
3376
+ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
3377
+
3378
+ // `Array.prototype.entries` method
3379
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
3380
+ // `Array.prototype.keys` method
3381
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
3382
+ // `Array.prototype.values` method
3383
+ // https://tc39.es/ecma262/#sec-array.prototype.values
3384
+ // `Array.prototype[@@iterator]` method
3385
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
3386
+ // `CreateArrayIterator` internal method
3387
+ // https://tc39.es/ecma262/#sec-createarrayiterator
3388
+ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
3389
+ setInternalState(this, {
3390
+ type: ARRAY_ITERATOR,
3391
+ target: toIndexedObject(iterated), // target
3392
+ index: 0, // next index
3393
+ kind: kind // kind
3394
+ });
3395
+ // `%ArrayIteratorPrototype%.next` method
3396
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
3397
+ }, function () {
3398
+ var state = getInternalState(this);
3399
+ var target = state.target;
3400
+ var kind = state.kind;
3401
+ var index = state.index++;
3402
+ if (!target || index >= target.length) {
3403
+ state.target = undefined;
3404
+ return { value: undefined, done: true };
3405
+ }
3406
+ if (kind == 'keys') return { value: index, done: false };
3407
+ if (kind == 'values') return { value: target[index], done: false };
3408
+ return { value: [index, target[index]], done: false };
3409
+ }, 'values');
3410
+
3411
+ // argumentsList[@@iterator] is %ArrayProto_values%
3412
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
3413
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
3414
+ var values = Iterators.Arguments = Iterators.Array;
3415
+
3416
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3417
+ addToUnscopables('keys');
3418
+ addToUnscopables('values');
3419
+ addToUnscopables('entries');
3420
+
3421
+ // V8 ~ Chrome 45- bug
3422
+ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
3423
+ defineProperty(values, 'name', { value: 'values' });
3424
+ } catch (error) { /* empty */ }
3425
+
3426
+
2499
3427
  /***/ }),
2500
3428
 
2501
3429
  /***/ 9221:
@@ -2550,6 +3478,44 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
2550
3478
  });
2551
3479
 
2552
3480
 
3481
+ /***/ }),
3482
+
3483
+ /***/ 7971:
3484
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3485
+
3486
+ "use strict";
3487
+
3488
+ var charAt = (__webpack_require__(4620).charAt);
3489
+ var toString = __webpack_require__(5803);
3490
+ var InternalStateModule = __webpack_require__(5402);
3491
+ var defineIterator = __webpack_require__(7771);
3492
+
3493
+ var STRING_ITERATOR = 'String Iterator';
3494
+ var setInternalState = InternalStateModule.set;
3495
+ var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
3496
+
3497
+ // `String.prototype[@@iterator]` method
3498
+ // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
3499
+ defineIterator(String, 'String', function (iterated) {
3500
+ setInternalState(this, {
3501
+ type: STRING_ITERATOR,
3502
+ string: toString(iterated),
3503
+ index: 0
3504
+ });
3505
+ // `%StringIteratorPrototype%.next` method
3506
+ // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
3507
+ }, function next() {
3508
+ var state = getInternalState(this);
3509
+ var string = state.string;
3510
+ var index = state.index;
3511
+ var point;
3512
+ if (index >= string.length) return { value: undefined, done: true };
3513
+ point = charAt(string, index);
3514
+ state.index += point.length;
3515
+ return { value: point, done: false };
3516
+ });
3517
+
3518
+
2553
3519
  /***/ }),
2554
3520
 
2555
3521
  /***/ 5824:
@@ -2725,162 +3691,1613 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
2725
3691
  return result;
2726
3692
  };
2727
3693
 
2728
- // `Symbol` constructor
2729
- // https://tc39.es/ecma262/#sec-symbol-constructor
2730
- if (!NATIVE_SYMBOL) {
2731
- $Symbol = function Symbol() {
2732
- if (isPrototypeOf(SymbolPrototype, this)) throw TypeError('Symbol is not a constructor');
2733
- var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);
2734
- var tag = uid(description);
2735
- var setter = function (value) {
2736
- if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value);
2737
- if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
2738
- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
2739
- };
2740
- if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
2741
- return wrap(tag, description);
2742
- };
3694
+ // `Symbol` constructor
3695
+ // https://tc39.es/ecma262/#sec-symbol-constructor
3696
+ if (!NATIVE_SYMBOL) {
3697
+ $Symbol = function Symbol() {
3698
+ if (isPrototypeOf(SymbolPrototype, this)) throw TypeError('Symbol is not a constructor');
3699
+ var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);
3700
+ var tag = uid(description);
3701
+ var setter = function (value) {
3702
+ if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value);
3703
+ if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
3704
+ setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
3705
+ };
3706
+ if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
3707
+ return wrap(tag, description);
3708
+ };
3709
+
3710
+ SymbolPrototype = $Symbol[PROTOTYPE];
3711
+
3712
+ redefine(SymbolPrototype, 'toString', function toString() {
3713
+ return getInternalState(this).tag;
3714
+ });
3715
+
3716
+ redefine($Symbol, 'withoutSetter', function (description) {
3717
+ return wrap(uid(description), description);
3718
+ });
3719
+
3720
+ propertyIsEnumerableModule.f = $propertyIsEnumerable;
3721
+ definePropertyModule.f = $defineProperty;
3722
+ definePropertiesModule.f = $defineProperties;
3723
+ getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
3724
+ getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
3725
+ getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
3726
+
3727
+ wrappedWellKnownSymbolModule.f = function (name) {
3728
+ return wrap(wellKnownSymbol(name), name);
3729
+ };
3730
+
3731
+ if (DESCRIPTORS) {
3732
+ // https://github.com/tc39/proposal-Symbol-description
3733
+ nativeDefineProperty(SymbolPrototype, 'description', {
3734
+ configurable: true,
3735
+ get: function description() {
3736
+ return getInternalState(this).description;
3737
+ }
3738
+ });
3739
+ if (!IS_PURE) {
3740
+ redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
3741
+ }
3742
+ }
3743
+ }
3744
+
3745
+ $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
3746
+ Symbol: $Symbol
3747
+ });
3748
+
3749
+ $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
3750
+ defineWellKnownSymbol(name);
3751
+ });
3752
+
3753
+ $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
3754
+ // `Symbol.for` method
3755
+ // https://tc39.es/ecma262/#sec-symbol.for
3756
+ 'for': function (key) {
3757
+ var string = $toString(key);
3758
+ if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
3759
+ var symbol = $Symbol(string);
3760
+ StringToSymbolRegistry[string] = symbol;
3761
+ SymbolToStringRegistry[symbol] = string;
3762
+ return symbol;
3763
+ },
3764
+ // `Symbol.keyFor` method
3765
+ // https://tc39.es/ecma262/#sec-symbol.keyfor
3766
+ keyFor: function keyFor(sym) {
3767
+ if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
3768
+ if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
3769
+ },
3770
+ useSetter: function () { USE_SETTER = true; },
3771
+ useSimple: function () { USE_SETTER = false; }
3772
+ });
3773
+
3774
+ $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
3775
+ // `Object.create` method
3776
+ // https://tc39.es/ecma262/#sec-object.create
3777
+ create: $create,
3778
+ // `Object.defineProperty` method
3779
+ // https://tc39.es/ecma262/#sec-object.defineproperty
3780
+ defineProperty: $defineProperty,
3781
+ // `Object.defineProperties` method
3782
+ // https://tc39.es/ecma262/#sec-object.defineproperties
3783
+ defineProperties: $defineProperties,
3784
+ // `Object.getOwnPropertyDescriptor` method
3785
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
3786
+ getOwnPropertyDescriptor: $getOwnPropertyDescriptor
3787
+ });
3788
+
3789
+ $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
3790
+ // `Object.getOwnPropertyNames` method
3791
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
3792
+ getOwnPropertyNames: $getOwnPropertyNames,
3793
+ // `Object.getOwnPropertySymbols` method
3794
+ // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
3795
+ getOwnPropertySymbols: $getOwnPropertySymbols
3796
+ });
3797
+
3798
+ // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
3799
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3443
3800
+ $({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
3801
+ getOwnPropertySymbols: function getOwnPropertySymbols(it) {
3802
+ return getOwnPropertySymbolsModule.f(toObject(it));
3803
+ }
3804
+ });
3805
+
3806
+ // `JSON.stringify` method behavior with symbols
3807
+ // https://tc39.es/ecma262/#sec-json.stringify
3808
+ if ($stringify) {
3809
+ var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
3810
+ var symbol = $Symbol();
3811
+ // MS Edge converts symbol values to JSON as {}
3812
+ return $stringify([symbol]) != '[null]'
3813
+ // WebKit converts symbol values to JSON as null
3814
+ || $stringify({ a: symbol }) != '{}'
3815
+ // V8 throws on boxed symbols
3816
+ || $stringify(Object(symbol)) != '{}';
3817
+ });
3818
+
3819
+ $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
3820
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3821
+ stringify: function stringify(it, replacer, space) {
3822
+ var args = arraySlice(arguments);
3823
+ var $replacer = replacer;
3824
+ if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
3825
+ if (!isArray(replacer)) replacer = function (key, value) {
3826
+ if (isCallable($replacer)) value = call($replacer, this, key, value);
3827
+ if (!isSymbol(value)) return value;
3828
+ };
3829
+ args[1] = replacer;
3830
+ return apply($stringify, null, args);
3831
+ }
3832
+ });
3833
+ }
3834
+
3835
+ // `Symbol.prototype[@@toPrimitive]` method
3836
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
3837
+ if (!SymbolPrototype[TO_PRIMITIVE]) {
3838
+ var valueOf = SymbolPrototype.valueOf;
3839
+ // eslint-disable-next-line no-unused-vars -- required for .length
3840
+ redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
3841
+ // TODO: improve hint logic
3842
+ return call(valueOf, this);
3843
+ });
3844
+ }
3845
+ // `Symbol.prototype[@@toStringTag]` property
3846
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
3847
+ setToStringTag($Symbol, SYMBOL);
3848
+
3849
+ hiddenKeys[HIDDEN] = true;
3850
+
3851
+
3852
+ /***/ }),
3853
+
3854
+ /***/ 5304:
3855
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3856
+
3857
+ "use strict";
3858
+
3859
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
3860
+ __webpack_require__(6274);
3861
+ var $ = __webpack_require__(6887);
3862
+ var global = __webpack_require__(1899);
3863
+ var getBuiltIn = __webpack_require__(626);
3864
+ var call = __webpack_require__(8834);
3865
+ var uncurryThis = __webpack_require__(5329);
3866
+ var USE_NATIVE_URL = __webpack_require__(8468);
3867
+ var redefine = __webpack_require__(9754);
3868
+ var redefineAll = __webpack_require__(7524);
3869
+ var setToStringTag = __webpack_require__(904);
3870
+ var createIteratorConstructor = __webpack_require__(1046);
3871
+ var InternalStateModule = __webpack_require__(5402);
3872
+ var anInstance = __webpack_require__(5743);
3873
+ var isCallable = __webpack_require__(7475);
3874
+ var hasOwn = __webpack_require__(953);
3875
+ var bind = __webpack_require__(6843);
3876
+ var classof = __webpack_require__(9697);
3877
+ var anObject = __webpack_require__(6059);
3878
+ var isObject = __webpack_require__(941);
3879
+ var $toString = __webpack_require__(5803);
3880
+ var create = __webpack_require__(9290);
3881
+ var createPropertyDescriptor = __webpack_require__(1887);
3882
+ var getIterator = __webpack_require__(3476);
3883
+ var getIteratorMethod = __webpack_require__(2902);
3884
+ var validateArgumentsLength = __webpack_require__(8348);
3885
+ var wellKnownSymbol = __webpack_require__(9813);
3886
+ var arraySort = __webpack_require__(1388);
3887
+
3888
+ var ITERATOR = wellKnownSymbol('iterator');
3889
+ var URL_SEARCH_PARAMS = 'URLSearchParams';
3890
+ var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
3891
+ var setInternalState = InternalStateModule.set;
3892
+ var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
3893
+ var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
3894
+
3895
+ var n$Fetch = getBuiltIn('fetch');
3896
+ var N$Request = getBuiltIn('Request');
3897
+ var Headers = getBuiltIn('Headers');
3898
+ var RequestPrototype = N$Request && N$Request.prototype;
3899
+ var HeadersPrototype = Headers && Headers.prototype;
3900
+ var RegExp = global.RegExp;
3901
+ var TypeError = global.TypeError;
3902
+ var decodeURIComponent = global.decodeURIComponent;
3903
+ var encodeURIComponent = global.encodeURIComponent;
3904
+ var charAt = uncurryThis(''.charAt);
3905
+ var join = uncurryThis([].join);
3906
+ var push = uncurryThis([].push);
3907
+ var replace = uncurryThis(''.replace);
3908
+ var shift = uncurryThis([].shift);
3909
+ var splice = uncurryThis([].splice);
3910
+ var split = uncurryThis(''.split);
3911
+ var stringSlice = uncurryThis(''.slice);
3912
+
3913
+ var plus = /\+/g;
3914
+ var sequences = Array(4);
3915
+
3916
+ var percentSequence = function (bytes) {
3917
+ return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
3918
+ };
3919
+
3920
+ var percentDecode = function (sequence) {
3921
+ try {
3922
+ return decodeURIComponent(sequence);
3923
+ } catch (error) {
3924
+ return sequence;
3925
+ }
3926
+ };
3927
+
3928
+ var deserialize = function (it) {
3929
+ var result = replace(it, plus, ' ');
3930
+ var bytes = 4;
3931
+ try {
3932
+ return decodeURIComponent(result);
3933
+ } catch (error) {
3934
+ while (bytes) {
3935
+ result = replace(result, percentSequence(bytes--), percentDecode);
3936
+ }
3937
+ return result;
3938
+ }
3939
+ };
3940
+
3941
+ var find = /[!'()~]|%20/g;
3942
+
3943
+ var replacements = {
3944
+ '!': '%21',
3945
+ "'": '%27',
3946
+ '(': '%28',
3947
+ ')': '%29',
3948
+ '~': '%7E',
3949
+ '%20': '+'
3950
+ };
3951
+
3952
+ var replacer = function (match) {
3953
+ return replacements[match];
3954
+ };
3955
+
3956
+ var serialize = function (it) {
3957
+ return replace(encodeURIComponent(it), find, replacer);
3958
+ };
3959
+
3960
+ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
3961
+ setInternalState(this, {
3962
+ type: URL_SEARCH_PARAMS_ITERATOR,
3963
+ iterator: getIterator(getInternalParamsState(params).entries),
3964
+ kind: kind
3965
+ });
3966
+ }, 'Iterator', function next() {
3967
+ var state = getInternalIteratorState(this);
3968
+ var kind = state.kind;
3969
+ var step = state.iterator.next();
3970
+ var entry = step.value;
3971
+ if (!step.done) {
3972
+ step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
3973
+ } return step;
3974
+ }, true);
3975
+
3976
+ var URLSearchParamsState = function (init) {
3977
+ this.entries = [];
3978
+ this.url = null;
3979
+
3980
+ if (init !== undefined) {
3981
+ if (isObject(init)) this.parseObject(init);
3982
+ else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
3983
+ }
3984
+ };
3985
+
3986
+ URLSearchParamsState.prototype = {
3987
+ type: URL_SEARCH_PARAMS,
3988
+ bindURL: function (url) {
3989
+ this.url = url;
3990
+ this.update();
3991
+ },
3992
+ parseObject: function (object) {
3993
+ var iteratorMethod = getIteratorMethod(object);
3994
+ var iterator, next, step, entryIterator, entryNext, first, second;
3995
+
3996
+ if (iteratorMethod) {
3997
+ iterator = getIterator(object, iteratorMethod);
3998
+ next = iterator.next;
3999
+ while (!(step = call(next, iterator)).done) {
4000
+ entryIterator = getIterator(anObject(step.value));
4001
+ entryNext = entryIterator.next;
4002
+ if (
4003
+ (first = call(entryNext, entryIterator)).done ||
4004
+ (second = call(entryNext, entryIterator)).done ||
4005
+ !call(entryNext, entryIterator).done
4006
+ ) throw TypeError('Expected sequence with length 2');
4007
+ push(this.entries, { key: $toString(first.value), value: $toString(second.value) });
4008
+ }
4009
+ } else for (var key in object) if (hasOwn(object, key)) {
4010
+ push(this.entries, { key: key, value: $toString(object[key]) });
4011
+ }
4012
+ },
4013
+ parseQuery: function (query) {
4014
+ if (query) {
4015
+ var attributes = split(query, '&');
4016
+ var index = 0;
4017
+ var attribute, entry;
4018
+ while (index < attributes.length) {
4019
+ attribute = attributes[index++];
4020
+ if (attribute.length) {
4021
+ entry = split(attribute, '=');
4022
+ push(this.entries, {
4023
+ key: deserialize(shift(entry)),
4024
+ value: deserialize(join(entry, '='))
4025
+ });
4026
+ }
4027
+ }
4028
+ }
4029
+ },
4030
+ serialize: function () {
4031
+ var entries = this.entries;
4032
+ var result = [];
4033
+ var index = 0;
4034
+ var entry;
4035
+ while (index < entries.length) {
4036
+ entry = entries[index++];
4037
+ push(result, serialize(entry.key) + '=' + serialize(entry.value));
4038
+ } return join(result, '&');
4039
+ },
4040
+ update: function () {
4041
+ this.entries.length = 0;
4042
+ this.parseQuery(this.url.query);
4043
+ },
4044
+ updateURL: function () {
4045
+ if (this.url) this.url.update();
4046
+ }
4047
+ };
4048
+
4049
+ // `URLSearchParams` constructor
4050
+ // https://url.spec.whatwg.org/#interface-urlsearchparams
4051
+ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
4052
+ anInstance(this, URLSearchParamsPrototype);
4053
+ var init = arguments.length > 0 ? arguments[0] : undefined;
4054
+ setInternalState(this, new URLSearchParamsState(init));
4055
+ };
4056
+
4057
+ var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
4058
+
4059
+ redefineAll(URLSearchParamsPrototype, {
4060
+ // `URLSearchParams.prototype.append` method
4061
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-append
4062
+ append: function append(name, value) {
4063
+ validateArgumentsLength(arguments.length, 2);
4064
+ var state = getInternalParamsState(this);
4065
+ push(state.entries, { key: $toString(name), value: $toString(value) });
4066
+ state.updateURL();
4067
+ },
4068
+ // `URLSearchParams.prototype.delete` method
4069
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
4070
+ 'delete': function (name) {
4071
+ validateArgumentsLength(arguments.length, 1);
4072
+ var state = getInternalParamsState(this);
4073
+ var entries = state.entries;
4074
+ var key = $toString(name);
4075
+ var index = 0;
4076
+ while (index < entries.length) {
4077
+ if (entries[index].key === key) splice(entries, index, 1);
4078
+ else index++;
4079
+ }
4080
+ state.updateURL();
4081
+ },
4082
+ // `URLSearchParams.prototype.get` method
4083
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-get
4084
+ get: function get(name) {
4085
+ validateArgumentsLength(arguments.length, 1);
4086
+ var entries = getInternalParamsState(this).entries;
4087
+ var key = $toString(name);
4088
+ var index = 0;
4089
+ for (; index < entries.length; index++) {
4090
+ if (entries[index].key === key) return entries[index].value;
4091
+ }
4092
+ return null;
4093
+ },
4094
+ // `URLSearchParams.prototype.getAll` method
4095
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
4096
+ getAll: function getAll(name) {
4097
+ validateArgumentsLength(arguments.length, 1);
4098
+ var entries = getInternalParamsState(this).entries;
4099
+ var key = $toString(name);
4100
+ var result = [];
4101
+ var index = 0;
4102
+ for (; index < entries.length; index++) {
4103
+ if (entries[index].key === key) push(result, entries[index].value);
4104
+ }
4105
+ return result;
4106
+ },
4107
+ // `URLSearchParams.prototype.has` method
4108
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-has
4109
+ has: function has(name) {
4110
+ validateArgumentsLength(arguments.length, 1);
4111
+ var entries = getInternalParamsState(this).entries;
4112
+ var key = $toString(name);
4113
+ var index = 0;
4114
+ while (index < entries.length) {
4115
+ if (entries[index++].key === key) return true;
4116
+ }
4117
+ return false;
4118
+ },
4119
+ // `URLSearchParams.prototype.set` method
4120
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-set
4121
+ set: function set(name, value) {
4122
+ validateArgumentsLength(arguments.length, 1);
4123
+ var state = getInternalParamsState(this);
4124
+ var entries = state.entries;
4125
+ var found = false;
4126
+ var key = $toString(name);
4127
+ var val = $toString(value);
4128
+ var index = 0;
4129
+ var entry;
4130
+ for (; index < entries.length; index++) {
4131
+ entry = entries[index];
4132
+ if (entry.key === key) {
4133
+ if (found) splice(entries, index--, 1);
4134
+ else {
4135
+ found = true;
4136
+ entry.value = val;
4137
+ }
4138
+ }
4139
+ }
4140
+ if (!found) push(entries, { key: key, value: val });
4141
+ state.updateURL();
4142
+ },
4143
+ // `URLSearchParams.prototype.sort` method
4144
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
4145
+ sort: function sort() {
4146
+ var state = getInternalParamsState(this);
4147
+ arraySort(state.entries, function (a, b) {
4148
+ return a.key > b.key ? 1 : -1;
4149
+ });
4150
+ state.updateURL();
4151
+ },
4152
+ // `URLSearchParams.prototype.forEach` method
4153
+ forEach: function forEach(callback /* , thisArg */) {
4154
+ var entries = getInternalParamsState(this).entries;
4155
+ var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
4156
+ var index = 0;
4157
+ var entry;
4158
+ while (index < entries.length) {
4159
+ entry = entries[index++];
4160
+ boundFunction(entry.value, entry.key, this);
4161
+ }
4162
+ },
4163
+ // `URLSearchParams.prototype.keys` method
4164
+ keys: function keys() {
4165
+ return new URLSearchParamsIterator(this, 'keys');
4166
+ },
4167
+ // `URLSearchParams.prototype.values` method
4168
+ values: function values() {
4169
+ return new URLSearchParamsIterator(this, 'values');
4170
+ },
4171
+ // `URLSearchParams.prototype.entries` method
4172
+ entries: function entries() {
4173
+ return new URLSearchParamsIterator(this, 'entries');
4174
+ }
4175
+ }, { enumerable: true });
4176
+
4177
+ // `URLSearchParams.prototype[@@iterator]` method
4178
+ redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
4179
+
4180
+ // `URLSearchParams.prototype.toString` method
4181
+ // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
4182
+ redefine(URLSearchParamsPrototype, 'toString', function toString() {
4183
+ return getInternalParamsState(this).serialize();
4184
+ }, { enumerable: true });
4185
+
4186
+ setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
4187
+
4188
+ $({ global: true, forced: !USE_NATIVE_URL }, {
4189
+ URLSearchParams: URLSearchParamsConstructor
4190
+ });
4191
+
4192
+ // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
4193
+ if (!USE_NATIVE_URL && isCallable(Headers)) {
4194
+ var headersHas = uncurryThis(HeadersPrototype.has);
4195
+ var headersSet = uncurryThis(HeadersPrototype.set);
4196
+
4197
+ var wrapRequestOptions = function (init) {
4198
+ if (isObject(init)) {
4199
+ var body = init.body;
4200
+ var headers;
4201
+ if (classof(body) === URL_SEARCH_PARAMS) {
4202
+ headers = init.headers ? new Headers(init.headers) : new Headers();
4203
+ if (!headersHas(headers, 'content-type')) {
4204
+ headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
4205
+ }
4206
+ return create(init, {
4207
+ body: createPropertyDescriptor(0, $toString(body)),
4208
+ headers: createPropertyDescriptor(0, headers)
4209
+ });
4210
+ }
4211
+ } return init;
4212
+ };
4213
+
4214
+ if (isCallable(n$Fetch)) {
4215
+ $({ global: true, enumerable: true, forced: true }, {
4216
+ fetch: function fetch(input /* , init */) {
4217
+ return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
4218
+ }
4219
+ });
4220
+ }
4221
+
4222
+ if (isCallable(N$Request)) {
4223
+ var RequestConstructor = function Request(input /* , init */) {
4224
+ anInstance(this, RequestPrototype);
4225
+ return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
4226
+ };
4227
+
4228
+ RequestPrototype.constructor = RequestConstructor;
4229
+ RequestConstructor.prototype = RequestPrototype;
4230
+
4231
+ $({ global: true, forced: true }, {
4232
+ Request: RequestConstructor
4233
+ });
4234
+ }
4235
+ }
4236
+
4237
+ module.exports = {
4238
+ URLSearchParams: URLSearchParamsConstructor,
4239
+ getState: getInternalParamsState
4240
+ };
4241
+
4242
+
4243
+ /***/ }),
4244
+
4245
+ /***/ 3601:
4246
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4247
+
4248
+ "use strict";
4249
+
4250
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
4251
+ __webpack_require__(7971);
4252
+ var $ = __webpack_require__(6887);
4253
+ var DESCRIPTORS = __webpack_require__(5746);
4254
+ var USE_NATIVE_URL = __webpack_require__(8468);
4255
+ var global = __webpack_require__(1899);
4256
+ var bind = __webpack_require__(6843);
4257
+ var uncurryThis = __webpack_require__(5329);
4258
+ var defineProperties = (__webpack_require__(9938).f);
4259
+ var redefine = __webpack_require__(9754);
4260
+ var anInstance = __webpack_require__(5743);
4261
+ var hasOwn = __webpack_require__(953);
4262
+ var assign = __webpack_require__(4420);
4263
+ var arrayFrom = __webpack_require__(1354);
4264
+ var arraySlice = __webpack_require__(5790);
4265
+ var codeAt = (__webpack_require__(4620).codeAt);
4266
+ var toASCII = __webpack_require__(3291);
4267
+ var $toString = __webpack_require__(5803);
4268
+ var setToStringTag = __webpack_require__(904);
4269
+ var validateArgumentsLength = __webpack_require__(8348);
4270
+ var URLSearchParamsModule = __webpack_require__(5304);
4271
+ var InternalStateModule = __webpack_require__(5402);
4272
+
4273
+ var setInternalState = InternalStateModule.set;
4274
+ var getInternalURLState = InternalStateModule.getterFor('URL');
4275
+ var URLSearchParams = URLSearchParamsModule.URLSearchParams;
4276
+ var getInternalSearchParamsState = URLSearchParamsModule.getState;
4277
+
4278
+ var NativeURL = global.URL;
4279
+ var TypeError = global.TypeError;
4280
+ var parseInt = global.parseInt;
4281
+ var floor = Math.floor;
4282
+ var pow = Math.pow;
4283
+ var charAt = uncurryThis(''.charAt);
4284
+ var exec = uncurryThis(/./.exec);
4285
+ var join = uncurryThis([].join);
4286
+ var numberToString = uncurryThis(1.0.toString);
4287
+ var pop = uncurryThis([].pop);
4288
+ var push = uncurryThis([].push);
4289
+ var replace = uncurryThis(''.replace);
4290
+ var shift = uncurryThis([].shift);
4291
+ var split = uncurryThis(''.split);
4292
+ var stringSlice = uncurryThis(''.slice);
4293
+ var toLowerCase = uncurryThis(''.toLowerCase);
4294
+ var unshift = uncurryThis([].unshift);
4295
+
4296
+ var INVALID_AUTHORITY = 'Invalid authority';
4297
+ var INVALID_SCHEME = 'Invalid scheme';
4298
+ var INVALID_HOST = 'Invalid host';
4299
+ var INVALID_PORT = 'Invalid port';
4300
+
4301
+ var ALPHA = /[a-z]/i;
4302
+ // eslint-disable-next-line regexp/no-obscure-range -- safe
4303
+ var ALPHANUMERIC = /[\d+-.a-z]/i;
4304
+ var DIGIT = /\d/;
4305
+ var HEX_START = /^0x/i;
4306
+ var OCT = /^[0-7]+$/;
4307
+ var DEC = /^\d+$/;
4308
+ var HEX = /^[\da-f]+$/i;
4309
+ /* eslint-disable regexp/no-control-character -- safe */
4310
+ var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
4311
+ var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
4312
+ var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g;
4313
+ var TAB_AND_NEW_LINE = /[\t\n\r]/g;
4314
+ /* eslint-enable regexp/no-control-character -- safe */
4315
+ var EOF;
4316
+
4317
+ // https://url.spec.whatwg.org/#ipv4-number-parser
4318
+ var parseIPv4 = function (input) {
4319
+ var parts = split(input, '.');
4320
+ var partsLength, numbers, index, part, radix, number, ipv4;
4321
+ if (parts.length && parts[parts.length - 1] == '') {
4322
+ parts.length--;
4323
+ }
4324
+ partsLength = parts.length;
4325
+ if (partsLength > 4) return input;
4326
+ numbers = [];
4327
+ for (index = 0; index < partsLength; index++) {
4328
+ part = parts[index];
4329
+ if (part == '') return input;
4330
+ radix = 10;
4331
+ if (part.length > 1 && charAt(part, 0) == '0') {
4332
+ radix = exec(HEX_START, part) ? 16 : 8;
4333
+ part = stringSlice(part, radix == 8 ? 1 : 2);
4334
+ }
4335
+ if (part === '') {
4336
+ number = 0;
4337
+ } else {
4338
+ if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part)) return input;
4339
+ number = parseInt(part, radix);
4340
+ }
4341
+ push(numbers, number);
4342
+ }
4343
+ for (index = 0; index < partsLength; index++) {
4344
+ number = numbers[index];
4345
+ if (index == partsLength - 1) {
4346
+ if (number >= pow(256, 5 - partsLength)) return null;
4347
+ } else if (number > 255) return null;
4348
+ }
4349
+ ipv4 = pop(numbers);
4350
+ for (index = 0; index < numbers.length; index++) {
4351
+ ipv4 += numbers[index] * pow(256, 3 - index);
4352
+ }
4353
+ return ipv4;
4354
+ };
4355
+
4356
+ // https://url.spec.whatwg.org/#concept-ipv6-parser
4357
+ // eslint-disable-next-line max-statements -- TODO
4358
+ var parseIPv6 = function (input) {
4359
+ var address = [0, 0, 0, 0, 0, 0, 0, 0];
4360
+ var pieceIndex = 0;
4361
+ var compress = null;
4362
+ var pointer = 0;
4363
+ var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
4364
+
4365
+ var chr = function () {
4366
+ return charAt(input, pointer);
4367
+ };
4368
+
4369
+ if (chr() == ':') {
4370
+ if (charAt(input, 1) != ':') return;
4371
+ pointer += 2;
4372
+ pieceIndex++;
4373
+ compress = pieceIndex;
4374
+ }
4375
+ while (chr()) {
4376
+ if (pieceIndex == 8) return;
4377
+ if (chr() == ':') {
4378
+ if (compress !== null) return;
4379
+ pointer++;
4380
+ pieceIndex++;
4381
+ compress = pieceIndex;
4382
+ continue;
4383
+ }
4384
+ value = length = 0;
4385
+ while (length < 4 && exec(HEX, chr())) {
4386
+ value = value * 16 + parseInt(chr(), 16);
4387
+ pointer++;
4388
+ length++;
4389
+ }
4390
+ if (chr() == '.') {
4391
+ if (length == 0) return;
4392
+ pointer -= length;
4393
+ if (pieceIndex > 6) return;
4394
+ numbersSeen = 0;
4395
+ while (chr()) {
4396
+ ipv4Piece = null;
4397
+ if (numbersSeen > 0) {
4398
+ if (chr() == '.' && numbersSeen < 4) pointer++;
4399
+ else return;
4400
+ }
4401
+ if (!exec(DIGIT, chr())) return;
4402
+ while (exec(DIGIT, chr())) {
4403
+ number = parseInt(chr(), 10);
4404
+ if (ipv4Piece === null) ipv4Piece = number;
4405
+ else if (ipv4Piece == 0) return;
4406
+ else ipv4Piece = ipv4Piece * 10 + number;
4407
+ if (ipv4Piece > 255) return;
4408
+ pointer++;
4409
+ }
4410
+ address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
4411
+ numbersSeen++;
4412
+ if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
4413
+ }
4414
+ if (numbersSeen != 4) return;
4415
+ break;
4416
+ } else if (chr() == ':') {
4417
+ pointer++;
4418
+ if (!chr()) return;
4419
+ } else if (chr()) return;
4420
+ address[pieceIndex++] = value;
4421
+ }
4422
+ if (compress !== null) {
4423
+ swaps = pieceIndex - compress;
4424
+ pieceIndex = 7;
4425
+ while (pieceIndex != 0 && swaps > 0) {
4426
+ swap = address[pieceIndex];
4427
+ address[pieceIndex--] = address[compress + swaps - 1];
4428
+ address[compress + --swaps] = swap;
4429
+ }
4430
+ } else if (pieceIndex != 8) return;
4431
+ return address;
4432
+ };
4433
+
4434
+ var findLongestZeroSequence = function (ipv6) {
4435
+ var maxIndex = null;
4436
+ var maxLength = 1;
4437
+ var currStart = null;
4438
+ var currLength = 0;
4439
+ var index = 0;
4440
+ for (; index < 8; index++) {
4441
+ if (ipv6[index] !== 0) {
4442
+ if (currLength > maxLength) {
4443
+ maxIndex = currStart;
4444
+ maxLength = currLength;
4445
+ }
4446
+ currStart = null;
4447
+ currLength = 0;
4448
+ } else {
4449
+ if (currStart === null) currStart = index;
4450
+ ++currLength;
4451
+ }
4452
+ }
4453
+ if (currLength > maxLength) {
4454
+ maxIndex = currStart;
4455
+ maxLength = currLength;
4456
+ }
4457
+ return maxIndex;
4458
+ };
4459
+
4460
+ // https://url.spec.whatwg.org/#host-serializing
4461
+ var serializeHost = function (host) {
4462
+ var result, index, compress, ignore0;
4463
+ // ipv4
4464
+ if (typeof host == 'number') {
4465
+ result = [];
4466
+ for (index = 0; index < 4; index++) {
4467
+ unshift(result, host % 256);
4468
+ host = floor(host / 256);
4469
+ } return join(result, '.');
4470
+ // ipv6
4471
+ } else if (typeof host == 'object') {
4472
+ result = '';
4473
+ compress = findLongestZeroSequence(host);
4474
+ for (index = 0; index < 8; index++) {
4475
+ if (ignore0 && host[index] === 0) continue;
4476
+ if (ignore0) ignore0 = false;
4477
+ if (compress === index) {
4478
+ result += index ? ':' : '::';
4479
+ ignore0 = true;
4480
+ } else {
4481
+ result += numberToString(host[index], 16);
4482
+ if (index < 7) result += ':';
4483
+ }
4484
+ }
4485
+ return '[' + result + ']';
4486
+ } return host;
4487
+ };
4488
+
4489
+ var C0ControlPercentEncodeSet = {};
4490
+ var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
4491
+ ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
4492
+ });
4493
+ var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
4494
+ '#': 1, '?': 1, '{': 1, '}': 1
4495
+ });
4496
+ var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
4497
+ '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
4498
+ });
4499
+
4500
+ var percentEncode = function (chr, set) {
4501
+ var code = codeAt(chr, 0);
4502
+ return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
4503
+ };
4504
+
4505
+ // https://url.spec.whatwg.org/#special-scheme
4506
+ var specialSchemes = {
4507
+ ftp: 21,
4508
+ file: null,
4509
+ http: 80,
4510
+ https: 443,
4511
+ ws: 80,
4512
+ wss: 443
4513
+ };
4514
+
4515
+ // https://url.spec.whatwg.org/#windows-drive-letter
4516
+ var isWindowsDriveLetter = function (string, normalized) {
4517
+ var second;
4518
+ return string.length == 2 && exec(ALPHA, charAt(string, 0))
4519
+ && ((second = charAt(string, 1)) == ':' || (!normalized && second == '|'));
4520
+ };
4521
+
4522
+ // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
4523
+ var startsWithWindowsDriveLetter = function (string) {
4524
+ var third;
4525
+ return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
4526
+ string.length == 2 ||
4527
+ ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
4528
+ );
4529
+ };
4530
+
4531
+ // https://url.spec.whatwg.org/#single-dot-path-segment
4532
+ var isSingleDot = function (segment) {
4533
+ return segment === '.' || toLowerCase(segment) === '%2e';
4534
+ };
4535
+
4536
+ // https://url.spec.whatwg.org/#double-dot-path-segment
4537
+ var isDoubleDot = function (segment) {
4538
+ segment = toLowerCase(segment);
4539
+ return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
4540
+ };
4541
+
4542
+ // States:
4543
+ var SCHEME_START = {};
4544
+ var SCHEME = {};
4545
+ var NO_SCHEME = {};
4546
+ var SPECIAL_RELATIVE_OR_AUTHORITY = {};
4547
+ var PATH_OR_AUTHORITY = {};
4548
+ var RELATIVE = {};
4549
+ var RELATIVE_SLASH = {};
4550
+ var SPECIAL_AUTHORITY_SLASHES = {};
4551
+ var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
4552
+ var AUTHORITY = {};
4553
+ var HOST = {};
4554
+ var HOSTNAME = {};
4555
+ var PORT = {};
4556
+ var FILE = {};
4557
+ var FILE_SLASH = {};
4558
+ var FILE_HOST = {};
4559
+ var PATH_START = {};
4560
+ var PATH = {};
4561
+ var CANNOT_BE_A_BASE_URL_PATH = {};
4562
+ var QUERY = {};
4563
+ var FRAGMENT = {};
4564
+
4565
+ var URLState = function (url, isBase, base) {
4566
+ var urlString = $toString(url);
4567
+ var baseState, failure, searchParams;
4568
+ if (isBase) {
4569
+ failure = this.parse(urlString);
4570
+ if (failure) throw TypeError(failure);
4571
+ this.searchParams = null;
4572
+ } else {
4573
+ if (base !== undefined) baseState = new URLState(base, true);
4574
+ failure = this.parse(urlString, null, baseState);
4575
+ if (failure) throw TypeError(failure);
4576
+ searchParams = getInternalSearchParamsState(new URLSearchParams());
4577
+ searchParams.bindURL(this);
4578
+ this.searchParams = searchParams;
4579
+ }
4580
+ };
4581
+
4582
+ URLState.prototype = {
4583
+ type: 'URL',
4584
+ // https://url.spec.whatwg.org/#url-parsing
4585
+ // eslint-disable-next-line max-statements -- TODO
4586
+ parse: function (input, stateOverride, base) {
4587
+ var url = this;
4588
+ var state = stateOverride || SCHEME_START;
4589
+ var pointer = 0;
4590
+ var buffer = '';
4591
+ var seenAt = false;
4592
+ var seenBracket = false;
4593
+ var seenPasswordToken = false;
4594
+ var codePoints, chr, bufferCodePoints, failure;
4595
+
4596
+ input = $toString(input);
4597
+
4598
+ if (!stateOverride) {
4599
+ url.scheme = '';
4600
+ url.username = '';
4601
+ url.password = '';
4602
+ url.host = null;
4603
+ url.port = null;
4604
+ url.path = [];
4605
+ url.query = null;
4606
+ url.fragment = null;
4607
+ url.cannotBeABaseURL = false;
4608
+ input = replace(input, LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
4609
+ }
4610
+
4611
+ input = replace(input, TAB_AND_NEW_LINE, '');
4612
+
4613
+ codePoints = arrayFrom(input);
4614
+
4615
+ while (pointer <= codePoints.length) {
4616
+ chr = codePoints[pointer];
4617
+ switch (state) {
4618
+ case SCHEME_START:
4619
+ if (chr && exec(ALPHA, chr)) {
4620
+ buffer += toLowerCase(chr);
4621
+ state = SCHEME;
4622
+ } else if (!stateOverride) {
4623
+ state = NO_SCHEME;
4624
+ continue;
4625
+ } else return INVALID_SCHEME;
4626
+ break;
4627
+
4628
+ case SCHEME:
4629
+ if (chr && (exec(ALPHANUMERIC, chr) || chr == '+' || chr == '-' || chr == '.')) {
4630
+ buffer += toLowerCase(chr);
4631
+ } else if (chr == ':') {
4632
+ if (stateOverride && (
4633
+ (url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
4634
+ (buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
4635
+ (url.scheme == 'file' && !url.host)
4636
+ )) return;
4637
+ url.scheme = buffer;
4638
+ if (stateOverride) {
4639
+ if (url.isSpecial() && specialSchemes[url.scheme] == url.port) url.port = null;
4640
+ return;
4641
+ }
4642
+ buffer = '';
4643
+ if (url.scheme == 'file') {
4644
+ state = FILE;
4645
+ } else if (url.isSpecial() && base && base.scheme == url.scheme) {
4646
+ state = SPECIAL_RELATIVE_OR_AUTHORITY;
4647
+ } else if (url.isSpecial()) {
4648
+ state = SPECIAL_AUTHORITY_SLASHES;
4649
+ } else if (codePoints[pointer + 1] == '/') {
4650
+ state = PATH_OR_AUTHORITY;
4651
+ pointer++;
4652
+ } else {
4653
+ url.cannotBeABaseURL = true;
4654
+ push(url.path, '');
4655
+ state = CANNOT_BE_A_BASE_URL_PATH;
4656
+ }
4657
+ } else if (!stateOverride) {
4658
+ buffer = '';
4659
+ state = NO_SCHEME;
4660
+ pointer = 0;
4661
+ continue;
4662
+ } else return INVALID_SCHEME;
4663
+ break;
4664
+
4665
+ case NO_SCHEME:
4666
+ if (!base || (base.cannotBeABaseURL && chr != '#')) return INVALID_SCHEME;
4667
+ if (base.cannotBeABaseURL && chr == '#') {
4668
+ url.scheme = base.scheme;
4669
+ url.path = arraySlice(base.path);
4670
+ url.query = base.query;
4671
+ url.fragment = '';
4672
+ url.cannotBeABaseURL = true;
4673
+ state = FRAGMENT;
4674
+ break;
4675
+ }
4676
+ state = base.scheme == 'file' ? FILE : RELATIVE;
4677
+ continue;
4678
+
4679
+ case SPECIAL_RELATIVE_OR_AUTHORITY:
4680
+ if (chr == '/' && codePoints[pointer + 1] == '/') {
4681
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
4682
+ pointer++;
4683
+ } else {
4684
+ state = RELATIVE;
4685
+ continue;
4686
+ } break;
4687
+
4688
+ case PATH_OR_AUTHORITY:
4689
+ if (chr == '/') {
4690
+ state = AUTHORITY;
4691
+ break;
4692
+ } else {
4693
+ state = PATH;
4694
+ continue;
4695
+ }
4696
+
4697
+ case RELATIVE:
4698
+ url.scheme = base.scheme;
4699
+ if (chr == EOF) {
4700
+ url.username = base.username;
4701
+ url.password = base.password;
4702
+ url.host = base.host;
4703
+ url.port = base.port;
4704
+ url.path = arraySlice(base.path);
4705
+ url.query = base.query;
4706
+ } else if (chr == '/' || (chr == '\\' && url.isSpecial())) {
4707
+ state = RELATIVE_SLASH;
4708
+ } else if (chr == '?') {
4709
+ url.username = base.username;
4710
+ url.password = base.password;
4711
+ url.host = base.host;
4712
+ url.port = base.port;
4713
+ url.path = arraySlice(base.path);
4714
+ url.query = '';
4715
+ state = QUERY;
4716
+ } else if (chr == '#') {
4717
+ url.username = base.username;
4718
+ url.password = base.password;
4719
+ url.host = base.host;
4720
+ url.port = base.port;
4721
+ url.path = arraySlice(base.path);
4722
+ url.query = base.query;
4723
+ url.fragment = '';
4724
+ state = FRAGMENT;
4725
+ } else {
4726
+ url.username = base.username;
4727
+ url.password = base.password;
4728
+ url.host = base.host;
4729
+ url.port = base.port;
4730
+ url.path = arraySlice(base.path);
4731
+ url.path.length--;
4732
+ state = PATH;
4733
+ continue;
4734
+ } break;
2743
4735
 
2744
- SymbolPrototype = $Symbol[PROTOTYPE];
4736
+ case RELATIVE_SLASH:
4737
+ if (url.isSpecial() && (chr == '/' || chr == '\\')) {
4738
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
4739
+ } else if (chr == '/') {
4740
+ state = AUTHORITY;
4741
+ } else {
4742
+ url.username = base.username;
4743
+ url.password = base.password;
4744
+ url.host = base.host;
4745
+ url.port = base.port;
4746
+ state = PATH;
4747
+ continue;
4748
+ } break;
2745
4749
 
2746
- redefine(SymbolPrototype, 'toString', function toString() {
2747
- return getInternalState(this).tag;
2748
- });
4750
+ case SPECIAL_AUTHORITY_SLASHES:
4751
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
4752
+ if (chr != '/' || charAt(buffer, pointer + 1) != '/') continue;
4753
+ pointer++;
4754
+ break;
2749
4755
 
2750
- redefine($Symbol, 'withoutSetter', function (description) {
2751
- return wrap(uid(description), description);
2752
- });
4756
+ case SPECIAL_AUTHORITY_IGNORE_SLASHES:
4757
+ if (chr != '/' && chr != '\\') {
4758
+ state = AUTHORITY;
4759
+ continue;
4760
+ } break;
4761
+
4762
+ case AUTHORITY:
4763
+ if (chr == '@') {
4764
+ if (seenAt) buffer = '%40' + buffer;
4765
+ seenAt = true;
4766
+ bufferCodePoints = arrayFrom(buffer);
4767
+ for (var i = 0; i < bufferCodePoints.length; i++) {
4768
+ var codePoint = bufferCodePoints[i];
4769
+ if (codePoint == ':' && !seenPasswordToken) {
4770
+ seenPasswordToken = true;
4771
+ continue;
4772
+ }
4773
+ var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
4774
+ if (seenPasswordToken) url.password += encodedCodePoints;
4775
+ else url.username += encodedCodePoints;
4776
+ }
4777
+ buffer = '';
4778
+ } else if (
4779
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
4780
+ (chr == '\\' && url.isSpecial())
4781
+ ) {
4782
+ if (seenAt && buffer == '') return INVALID_AUTHORITY;
4783
+ pointer -= arrayFrom(buffer).length + 1;
4784
+ buffer = '';
4785
+ state = HOST;
4786
+ } else buffer += chr;
4787
+ break;
2753
4788
 
2754
- propertyIsEnumerableModule.f = $propertyIsEnumerable;
2755
- definePropertyModule.f = $defineProperty;
2756
- definePropertiesModule.f = $defineProperties;
2757
- getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
2758
- getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
2759
- getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
4789
+ case HOST:
4790
+ case HOSTNAME:
4791
+ if (stateOverride && url.scheme == 'file') {
4792
+ state = FILE_HOST;
4793
+ continue;
4794
+ } else if (chr == ':' && !seenBracket) {
4795
+ if (buffer == '') return INVALID_HOST;
4796
+ failure = url.parseHost(buffer);
4797
+ if (failure) return failure;
4798
+ buffer = '';
4799
+ state = PORT;
4800
+ if (stateOverride == HOSTNAME) return;
4801
+ } else if (
4802
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
4803
+ (chr == '\\' && url.isSpecial())
4804
+ ) {
4805
+ if (url.isSpecial() && buffer == '') return INVALID_HOST;
4806
+ if (stateOverride && buffer == '' && (url.includesCredentials() || url.port !== null)) return;
4807
+ failure = url.parseHost(buffer);
4808
+ if (failure) return failure;
4809
+ buffer = '';
4810
+ state = PATH_START;
4811
+ if (stateOverride) return;
4812
+ continue;
4813
+ } else {
4814
+ if (chr == '[') seenBracket = true;
4815
+ else if (chr == ']') seenBracket = false;
4816
+ buffer += chr;
4817
+ } break;
4818
+
4819
+ case PORT:
4820
+ if (exec(DIGIT, chr)) {
4821
+ buffer += chr;
4822
+ } else if (
4823
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
4824
+ (chr == '\\' && url.isSpecial()) ||
4825
+ stateOverride
4826
+ ) {
4827
+ if (buffer != '') {
4828
+ var port = parseInt(buffer, 10);
4829
+ if (port > 0xFFFF) return INVALID_PORT;
4830
+ url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
4831
+ buffer = '';
4832
+ }
4833
+ if (stateOverride) return;
4834
+ state = PATH_START;
4835
+ continue;
4836
+ } else return INVALID_PORT;
4837
+ break;
2760
4838
 
2761
- wrappedWellKnownSymbolModule.f = function (name) {
2762
- return wrap(wellKnownSymbol(name), name);
2763
- };
4839
+ case FILE:
4840
+ url.scheme = 'file';
4841
+ if (chr == '/' || chr == '\\') state = FILE_SLASH;
4842
+ else if (base && base.scheme == 'file') {
4843
+ if (chr == EOF) {
4844
+ url.host = base.host;
4845
+ url.path = arraySlice(base.path);
4846
+ url.query = base.query;
4847
+ } else if (chr == '?') {
4848
+ url.host = base.host;
4849
+ url.path = arraySlice(base.path);
4850
+ url.query = '';
4851
+ state = QUERY;
4852
+ } else if (chr == '#') {
4853
+ url.host = base.host;
4854
+ url.path = arraySlice(base.path);
4855
+ url.query = base.query;
4856
+ url.fragment = '';
4857
+ state = FRAGMENT;
4858
+ } else {
4859
+ if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
4860
+ url.host = base.host;
4861
+ url.path = arraySlice(base.path);
4862
+ url.shortenPath();
4863
+ }
4864
+ state = PATH;
4865
+ continue;
4866
+ }
4867
+ } else {
4868
+ state = PATH;
4869
+ continue;
4870
+ } break;
2764
4871
 
2765
- if (DESCRIPTORS) {
2766
- // https://github.com/tc39/proposal-Symbol-description
2767
- nativeDefineProperty(SymbolPrototype, 'description', {
2768
- configurable: true,
2769
- get: function description() {
2770
- return getInternalState(this).description;
4872
+ case FILE_SLASH:
4873
+ if (chr == '/' || chr == '\\') {
4874
+ state = FILE_HOST;
4875
+ break;
4876
+ }
4877
+ if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
4878
+ if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
4879
+ else url.host = base.host;
4880
+ }
4881
+ state = PATH;
4882
+ continue;
4883
+
4884
+ case FILE_HOST:
4885
+ if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') {
4886
+ if (!stateOverride && isWindowsDriveLetter(buffer)) {
4887
+ state = PATH;
4888
+ } else if (buffer == '') {
4889
+ url.host = '';
4890
+ if (stateOverride) return;
4891
+ state = PATH_START;
4892
+ } else {
4893
+ failure = url.parseHost(buffer);
4894
+ if (failure) return failure;
4895
+ if (url.host == 'localhost') url.host = '';
4896
+ if (stateOverride) return;
4897
+ buffer = '';
4898
+ state = PATH_START;
4899
+ } continue;
4900
+ } else buffer += chr;
4901
+ break;
4902
+
4903
+ case PATH_START:
4904
+ if (url.isSpecial()) {
4905
+ state = PATH;
4906
+ if (chr != '/' && chr != '\\') continue;
4907
+ } else if (!stateOverride && chr == '?') {
4908
+ url.query = '';
4909
+ state = QUERY;
4910
+ } else if (!stateOverride && chr == '#') {
4911
+ url.fragment = '';
4912
+ state = FRAGMENT;
4913
+ } else if (chr != EOF) {
4914
+ state = PATH;
4915
+ if (chr != '/') continue;
4916
+ } break;
4917
+
4918
+ case PATH:
4919
+ if (
4920
+ chr == EOF || chr == '/' ||
4921
+ (chr == '\\' && url.isSpecial()) ||
4922
+ (!stateOverride && (chr == '?' || chr == '#'))
4923
+ ) {
4924
+ if (isDoubleDot(buffer)) {
4925
+ url.shortenPath();
4926
+ if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
4927
+ push(url.path, '');
4928
+ }
4929
+ } else if (isSingleDot(buffer)) {
4930
+ if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
4931
+ push(url.path, '');
4932
+ }
4933
+ } else {
4934
+ if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
4935
+ if (url.host) url.host = '';
4936
+ buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
4937
+ }
4938
+ push(url.path, buffer);
4939
+ }
4940
+ buffer = '';
4941
+ if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) {
4942
+ while (url.path.length > 1 && url.path[0] === '') {
4943
+ shift(url.path);
4944
+ }
4945
+ }
4946
+ if (chr == '?') {
4947
+ url.query = '';
4948
+ state = QUERY;
4949
+ } else if (chr == '#') {
4950
+ url.fragment = '';
4951
+ state = FRAGMENT;
4952
+ }
4953
+ } else {
4954
+ buffer += percentEncode(chr, pathPercentEncodeSet);
4955
+ } break;
4956
+
4957
+ case CANNOT_BE_A_BASE_URL_PATH:
4958
+ if (chr == '?') {
4959
+ url.query = '';
4960
+ state = QUERY;
4961
+ } else if (chr == '#') {
4962
+ url.fragment = '';
4963
+ state = FRAGMENT;
4964
+ } else if (chr != EOF) {
4965
+ url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
4966
+ } break;
4967
+
4968
+ case QUERY:
4969
+ if (!stateOverride && chr == '#') {
4970
+ url.fragment = '';
4971
+ state = FRAGMENT;
4972
+ } else if (chr != EOF) {
4973
+ if (chr == "'" && url.isSpecial()) url.query += '%27';
4974
+ else if (chr == '#') url.query += '%23';
4975
+ else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
4976
+ } break;
4977
+
4978
+ case FRAGMENT:
4979
+ if (chr != EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
4980
+ break;
2771
4981
  }
2772
- });
2773
- if (!IS_PURE) {
2774
- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
4982
+
4983
+ pointer++;
4984
+ }
4985
+ },
4986
+ // https://url.spec.whatwg.org/#host-parsing
4987
+ parseHost: function (input) {
4988
+ var result, codePoints, index;
4989
+ if (charAt(input, 0) == '[') {
4990
+ if (charAt(input, input.length - 1) != ']') return INVALID_HOST;
4991
+ result = parseIPv6(stringSlice(input, 1, -1));
4992
+ if (!result) return INVALID_HOST;
4993
+ this.host = result;
4994
+ // opaque host
4995
+ } else if (!this.isSpecial()) {
4996
+ if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
4997
+ result = '';
4998
+ codePoints = arrayFrom(input);
4999
+ for (index = 0; index < codePoints.length; index++) {
5000
+ result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
5001
+ }
5002
+ this.host = result;
5003
+ } else {
5004
+ input = toASCII(input);
5005
+ if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
5006
+ result = parseIPv4(input);
5007
+ if (result === null) return INVALID_HOST;
5008
+ this.host = result;
5009
+ }
5010
+ },
5011
+ // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
5012
+ cannotHaveUsernamePasswordPort: function () {
5013
+ return !this.host || this.cannotBeABaseURL || this.scheme == 'file';
5014
+ },
5015
+ // https://url.spec.whatwg.org/#include-credentials
5016
+ includesCredentials: function () {
5017
+ return this.username != '' || this.password != '';
5018
+ },
5019
+ // https://url.spec.whatwg.org/#is-special
5020
+ isSpecial: function () {
5021
+ return hasOwn(specialSchemes, this.scheme);
5022
+ },
5023
+ // https://url.spec.whatwg.org/#shorten-a-urls-path
5024
+ shortenPath: function () {
5025
+ var path = this.path;
5026
+ var pathSize = path.length;
5027
+ if (pathSize && (this.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
5028
+ path.length--;
5029
+ }
5030
+ },
5031
+ // https://url.spec.whatwg.org/#concept-url-serializer
5032
+ serialize: function () {
5033
+ var url = this;
5034
+ var scheme = url.scheme;
5035
+ var username = url.username;
5036
+ var password = url.password;
5037
+ var host = url.host;
5038
+ var port = url.port;
5039
+ var path = url.path;
5040
+ var query = url.query;
5041
+ var fragment = url.fragment;
5042
+ var output = scheme + ':';
5043
+ if (host !== null) {
5044
+ output += '//';
5045
+ if (url.includesCredentials()) {
5046
+ output += username + (password ? ':' + password : '') + '@';
5047
+ }
5048
+ output += serializeHost(host);
5049
+ if (port !== null) output += ':' + port;
5050
+ } else if (scheme == 'file') output += '//';
5051
+ output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
5052
+ if (query !== null) output += '?' + query;
5053
+ if (fragment !== null) output += '#' + fragment;
5054
+ return output;
5055
+ },
5056
+ // https://url.spec.whatwg.org/#dom-url-href
5057
+ setHref: function (href) {
5058
+ var failure = this.parse(href);
5059
+ if (failure) throw TypeError(failure);
5060
+ this.searchParams.update();
5061
+ },
5062
+ // https://url.spec.whatwg.org/#dom-url-origin
5063
+ getOrigin: function () {
5064
+ var scheme = this.scheme;
5065
+ var port = this.port;
5066
+ if (scheme == 'blob') try {
5067
+ return new URLConstructor(scheme.path[0]).origin;
5068
+ } catch (error) {
5069
+ return 'null';
5070
+ }
5071
+ if (scheme == 'file' || !this.isSpecial()) return 'null';
5072
+ return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
5073
+ },
5074
+ // https://url.spec.whatwg.org/#dom-url-protocol
5075
+ getProtocol: function () {
5076
+ return this.scheme + ':';
5077
+ },
5078
+ setProtocol: function (protocol) {
5079
+ this.parse($toString(protocol) + ':', SCHEME_START);
5080
+ },
5081
+ // https://url.spec.whatwg.org/#dom-url-username
5082
+ getUsername: function () {
5083
+ return this.username;
5084
+ },
5085
+ setUsername: function (username) {
5086
+ var codePoints = arrayFrom($toString(username));
5087
+ if (this.cannotHaveUsernamePasswordPort()) return;
5088
+ this.username = '';
5089
+ for (var i = 0; i < codePoints.length; i++) {
5090
+ this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
5091
+ }
5092
+ },
5093
+ // https://url.spec.whatwg.org/#dom-url-password
5094
+ getPassword: function () {
5095
+ return this.password;
5096
+ },
5097
+ setPassword: function (password) {
5098
+ var codePoints = arrayFrom($toString(password));
5099
+ if (this.cannotHaveUsernamePasswordPort()) return;
5100
+ this.password = '';
5101
+ for (var i = 0; i < codePoints.length; i++) {
5102
+ this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
5103
+ }
5104
+ },
5105
+ // https://url.spec.whatwg.org/#dom-url-host
5106
+ getHost: function () {
5107
+ var host = this.host;
5108
+ var port = this.port;
5109
+ return host === null ? ''
5110
+ : port === null ? serializeHost(host)
5111
+ : serializeHost(host) + ':' + port;
5112
+ },
5113
+ setHost: function (host) {
5114
+ if (this.cannotBeABaseURL) return;
5115
+ this.parse(host, HOST);
5116
+ },
5117
+ // https://url.spec.whatwg.org/#dom-url-hostname
5118
+ getHostname: function () {
5119
+ var host = this.host;
5120
+ return host === null ? '' : serializeHost(host);
5121
+ },
5122
+ setHostname: function (hostname) {
5123
+ if (this.cannotBeABaseURL) return;
5124
+ this.parse(hostname, HOSTNAME);
5125
+ },
5126
+ // https://url.spec.whatwg.org/#dom-url-port
5127
+ getPort: function () {
5128
+ var port = this.port;
5129
+ return port === null ? '' : $toString(port);
5130
+ },
5131
+ setPort: function (port) {
5132
+ if (this.cannotHaveUsernamePasswordPort()) return;
5133
+ port = $toString(port);
5134
+ if (port == '') this.port = null;
5135
+ else this.parse(port, PORT);
5136
+ },
5137
+ // https://url.spec.whatwg.org/#dom-url-pathname
5138
+ getPathname: function () {
5139
+ var path = this.path;
5140
+ return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
5141
+ },
5142
+ setPathname: function (pathname) {
5143
+ if (this.cannotBeABaseURL) return;
5144
+ this.path = [];
5145
+ this.parse(pathname, PATH_START);
5146
+ },
5147
+ // https://url.spec.whatwg.org/#dom-url-search
5148
+ getSearch: function () {
5149
+ var query = this.query;
5150
+ return query ? '?' + query : '';
5151
+ },
5152
+ setSearch: function (search) {
5153
+ search = $toString(search);
5154
+ if (search == '') {
5155
+ this.query = null;
5156
+ } else {
5157
+ if ('?' == charAt(search, 0)) search = stringSlice(search, 1);
5158
+ this.query = '';
5159
+ this.parse(search, QUERY);
5160
+ }
5161
+ this.searchParams.update();
5162
+ },
5163
+ // https://url.spec.whatwg.org/#dom-url-searchparams
5164
+ getSearchParams: function () {
5165
+ return this.searchParams.facade;
5166
+ },
5167
+ // https://url.spec.whatwg.org/#dom-url-hash
5168
+ getHash: function () {
5169
+ var fragment = this.fragment;
5170
+ return fragment ? '#' + fragment : '';
5171
+ },
5172
+ setHash: function (hash) {
5173
+ hash = $toString(hash);
5174
+ if (hash == '') {
5175
+ this.fragment = null;
5176
+ return;
2775
5177
  }
5178
+ if ('#' == charAt(hash, 0)) hash = stringSlice(hash, 1);
5179
+ this.fragment = '';
5180
+ this.parse(hash, FRAGMENT);
5181
+ },
5182
+ update: function () {
5183
+ this.query = this.searchParams.serialize() || null;
2776
5184
  }
2777
- }
5185
+ };
2778
5186
 
2779
- $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
2780
- Symbol: $Symbol
2781
- });
5187
+ // `URL` constructor
5188
+ // https://url.spec.whatwg.org/#url-class
5189
+ var URLConstructor = function URL(url /* , base */) {
5190
+ var that = anInstance(this, URLPrototype);
5191
+ var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
5192
+ var state = setInternalState(that, new URLState(url, false, base));
5193
+ if (!DESCRIPTORS) {
5194
+ that.href = state.serialize();
5195
+ that.origin = state.getOrigin();
5196
+ that.protocol = state.getProtocol();
5197
+ that.username = state.getUsername();
5198
+ that.password = state.getPassword();
5199
+ that.host = state.getHost();
5200
+ that.hostname = state.getHostname();
5201
+ that.port = state.getPort();
5202
+ that.pathname = state.getPathname();
5203
+ that.search = state.getSearch();
5204
+ that.searchParams = state.getSearchParams();
5205
+ that.hash = state.getHash();
5206
+ }
5207
+ };
2782
5208
 
2783
- $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
2784
- defineWellKnownSymbol(name);
2785
- });
5209
+ var URLPrototype = URLConstructor.prototype;
2786
5210
 
2787
- $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
2788
- // `Symbol.for` method
2789
- // https://tc39.es/ecma262/#sec-symbol.for
2790
- 'for': function (key) {
2791
- var string = $toString(key);
2792
- if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
2793
- var symbol = $Symbol(string);
2794
- StringToSymbolRegistry[string] = symbol;
2795
- SymbolToStringRegistry[symbol] = string;
2796
- return symbol;
2797
- },
2798
- // `Symbol.keyFor` method
2799
- // https://tc39.es/ecma262/#sec-symbol.keyfor
2800
- keyFor: function keyFor(sym) {
2801
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
2802
- if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
2803
- },
2804
- useSetter: function () { USE_SETTER = true; },
2805
- useSimple: function () { USE_SETTER = false; }
2806
- });
5211
+ var accessorDescriptor = function (getter, setter) {
5212
+ return {
5213
+ get: function () {
5214
+ return getInternalURLState(this)[getter]();
5215
+ },
5216
+ set: setter && function (value) {
5217
+ return getInternalURLState(this)[setter](value);
5218
+ },
5219
+ configurable: true,
5220
+ enumerable: true
5221
+ };
5222
+ };
2807
5223
 
2808
- $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
2809
- // `Object.create` method
2810
- // https://tc39.es/ecma262/#sec-object.create
2811
- create: $create,
2812
- // `Object.defineProperty` method
2813
- // https://tc39.es/ecma262/#sec-object.defineproperty
2814
- defineProperty: $defineProperty,
2815
- // `Object.defineProperties` method
2816
- // https://tc39.es/ecma262/#sec-object.defineproperties
2817
- defineProperties: $defineProperties,
2818
- // `Object.getOwnPropertyDescriptor` method
2819
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
2820
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor
2821
- });
5224
+ if (DESCRIPTORS) {
5225
+ defineProperties(URLPrototype, {
5226
+ // `URL.prototype.href` accessors pair
5227
+ // https://url.spec.whatwg.org/#dom-url-href
5228
+ href: accessorDescriptor('serialize', 'setHref'),
5229
+ // `URL.prototype.origin` getter
5230
+ // https://url.spec.whatwg.org/#dom-url-origin
5231
+ origin: accessorDescriptor('getOrigin'),
5232
+ // `URL.prototype.protocol` accessors pair
5233
+ // https://url.spec.whatwg.org/#dom-url-protocol
5234
+ protocol: accessorDescriptor('getProtocol', 'setProtocol'),
5235
+ // `URL.prototype.username` accessors pair
5236
+ // https://url.spec.whatwg.org/#dom-url-username
5237
+ username: accessorDescriptor('getUsername', 'setUsername'),
5238
+ // `URL.prototype.password` accessors pair
5239
+ // https://url.spec.whatwg.org/#dom-url-password
5240
+ password: accessorDescriptor('getPassword', 'setPassword'),
5241
+ // `URL.prototype.host` accessors pair
5242
+ // https://url.spec.whatwg.org/#dom-url-host
5243
+ host: accessorDescriptor('getHost', 'setHost'),
5244
+ // `URL.prototype.hostname` accessors pair
5245
+ // https://url.spec.whatwg.org/#dom-url-hostname
5246
+ hostname: accessorDescriptor('getHostname', 'setHostname'),
5247
+ // `URL.prototype.port` accessors pair
5248
+ // https://url.spec.whatwg.org/#dom-url-port
5249
+ port: accessorDescriptor('getPort', 'setPort'),
5250
+ // `URL.prototype.pathname` accessors pair
5251
+ // https://url.spec.whatwg.org/#dom-url-pathname
5252
+ pathname: accessorDescriptor('getPathname', 'setPathname'),
5253
+ // `URL.prototype.search` accessors pair
5254
+ // https://url.spec.whatwg.org/#dom-url-search
5255
+ search: accessorDescriptor('getSearch', 'setSearch'),
5256
+ // `URL.prototype.searchParams` getter
5257
+ // https://url.spec.whatwg.org/#dom-url-searchparams
5258
+ searchParams: accessorDescriptor('getSearchParams'),
5259
+ // `URL.prototype.hash` accessors pair
5260
+ // https://url.spec.whatwg.org/#dom-url-hash
5261
+ hash: accessorDescriptor('getHash', 'setHash')
5262
+ });
5263
+ }
2822
5264
 
2823
- $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
2824
- // `Object.getOwnPropertyNames` method
2825
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
2826
- getOwnPropertyNames: $getOwnPropertyNames,
2827
- // `Object.getOwnPropertySymbols` method
2828
- // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
2829
- getOwnPropertySymbols: $getOwnPropertySymbols
2830
- });
5265
+ // `URL.prototype.toJSON` method
5266
+ // https://url.spec.whatwg.org/#dom-url-tojson
5267
+ redefine(URLPrototype, 'toJSON', function toJSON() {
5268
+ return getInternalURLState(this).serialize();
5269
+ }, { enumerable: true });
2831
5270
 
2832
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
2833
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
2834
- $({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
2835
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
2836
- return getOwnPropertySymbolsModule.f(toObject(it));
2837
- }
5271
+ // `URL.prototype.toString` method
5272
+ // https://url.spec.whatwg.org/#URL-stringification-behavior
5273
+ redefine(URLPrototype, 'toString', function toString() {
5274
+ return getInternalURLState(this).serialize();
5275
+ }, { enumerable: true });
5276
+
5277
+ if (NativeURL) {
5278
+ var nativeCreateObjectURL = NativeURL.createObjectURL;
5279
+ var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
5280
+ // `URL.createObjectURL` method
5281
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
5282
+ if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
5283
+ // `URL.revokeObjectURL` method
5284
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
5285
+ if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
5286
+ }
5287
+
5288
+ setToStringTag(URLConstructor, 'URL');
5289
+
5290
+ $({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
5291
+ URL: URLConstructor
2838
5292
  });
2839
5293
 
2840
- // `JSON.stringify` method behavior with symbols
2841
- // https://tc39.es/ecma262/#sec-json.stringify
2842
- if ($stringify) {
2843
- var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
2844
- var symbol = $Symbol();
2845
- // MS Edge converts symbol values to JSON as {}
2846
- return $stringify([symbol]) != '[null]'
2847
- // WebKit converts symbol values to JSON as null
2848
- || $stringify({ a: symbol }) != '{}'
2849
- // V8 throws on boxed symbols
2850
- || $stringify(Object(symbol)) != '{}';
2851
- });
2852
5294
 
2853
- $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
2854
- // eslint-disable-next-line no-unused-vars -- required for `.length`
2855
- stringify: function stringify(it, replacer, space) {
2856
- var args = arraySlice(arguments);
2857
- var $replacer = replacer;
2858
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
2859
- if (!isArray(replacer)) replacer = function (key, value) {
2860
- if (isCallable($replacer)) value = call($replacer, this, key, value);
2861
- if (!isSymbol(value)) return value;
2862
- };
2863
- args[1] = replacer;
2864
- return apply($stringify, null, args);
2865
- }
2866
- });
2867
- }
5295
+ /***/ }),
2868
5296
 
2869
- // `Symbol.prototype[@@toPrimitive]` method
2870
- // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
2871
- if (!SymbolPrototype[TO_PRIMITIVE]) {
2872
- var valueOf = SymbolPrototype.valueOf;
2873
- // eslint-disable-next-line no-unused-vars -- required for .length
2874
- redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
2875
- // TODO: improve hint logic
2876
- return call(valueOf, this);
2877
- });
2878
- }
2879
- // `Symbol.prototype[@@toStringTag]` property
2880
- // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
2881
- setToStringTag($Symbol, SYMBOL);
5297
+ /***/ 8947:
5298
+ /***/ (function() {
2882
5299
 
2883
- hiddenKeys[HIDDEN] = true;
5300
+ // empty
2884
5301
 
2885
5302
 
2886
5303
  /***/ }),
@@ -2933,6 +5350,29 @@ var parent = __webpack_require__(8494);
2933
5350
  module.exports = parent;
2934
5351
 
2935
5352
 
5353
+ /***/ }),
5354
+
5355
+ /***/ 7641:
5356
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5357
+
5358
+ var parent = __webpack_require__(1459);
5359
+
5360
+ module.exports = parent;
5361
+
5362
+
5363
+ /***/ }),
5364
+
5365
+ /***/ 1459:
5366
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5367
+
5368
+ __webpack_require__(3601);
5369
+ __webpack_require__(8947);
5370
+ __webpack_require__(5304);
5371
+ var path = __webpack_require__(4058);
5372
+
5373
+ module.exports = path.URL;
5374
+
5375
+
2936
5376
  /***/ }),
2937
5377
 
2938
5378
  /***/ 7266:
@@ -13195,7 +15635,7 @@ const client = new error_tracker_BrowserClient({
13195
15635
  },
13196
15636
 
13197
15637
  environment: "production",
13198
- release: "1.1.45-428a23c",
15638
+ release: "1.1.46-717856b",
13199
15639
  sampleRate: 0.25,
13200
15640
  autoSessionTracking: false,
13201
15641
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -13793,7 +16233,7 @@ function getEmbedURL(_ref) {
13793
16233
  host = "http://".concat(window.location.hostname, ":9001");
13794
16234
  }
13795
16235
 
13796
- return "".concat(host, "/embed/").concat(frameName, "/").concat("428a23c", "/index.html");
16236
+ return "".concat(host, "/embed/").concat(frameName, "/").concat("717856b", "/index.html");
13797
16237
  }
13798
16238
  /**
13799
16239
  * Generate the Chat / API URL
@@ -15318,9 +17758,9 @@ async function log(message, extra, options) {
15318
17758
  service: "embed",
15319
17759
  env: "production",
15320
17760
  embedVersion: 2,
15321
- version: "1.1.45",
17761
+ version: "1.1.46",
15322
17762
  isNpm: true,
15323
- commitHash: "428a23c"
17763
+ commitHash: "717856b"
15324
17764
  }))
15325
17765
  });
15326
17766
  }
@@ -15594,6 +18034,9 @@ function ButtonFrame_mapStateToProps(storeState) {
15594
18034
  }
15595
18035
 
15596
18036
  /* harmony default export */ var components_ButtonFrame = (connect(ButtonFrame_mapStateToProps)(ButtonFrame));
18037
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/url.js
18038
+ var url = __webpack_require__(9969);
18039
+ var url_default = /*#__PURE__*/__webpack_require__.n(url);
15597
18040
  ;// CONCATENATED MODULE: ./src/common/constants/timeouts.ts
15598
18041
  const ANIMATION_DELAY = 50;
15599
18042
  ;// CONCATENATED MODULE: ./src/common/helpers/is-mobile.ts
@@ -15615,6 +18058,7 @@ const isMobile = /(iPhone)|(iPod)|(android)|(webOS)/i.exec(navigator.userAgent)
15615
18058
 
15616
18059
 
15617
18060
 
18061
+
15618
18062
  class ChatFrame extends d {
15619
18063
  constructor() {
15620
18064
  super(...arguments);
@@ -15715,6 +18159,25 @@ class ChatFrame extends d {
15715
18159
 
15716
18160
  if (!handle) {
15717
18161
  throw new AdaEmbedError("`handle` is not defined");
18162
+ } // check the host page URL for an adaSMSToken and add it as a chatterToken query param for chat's iframe URL
18163
+
18164
+
18165
+ const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
18166
+ const smsToken = hostPageUrlParams.get("adaSMSToken");
18167
+ const queryParams = {
18168
+ embedVersion: "717856b".slice(0, 7),
18169
+ greeting,
18170
+ language,
18171
+ skipGreeting,
18172
+ introShown: wasIntroShown,
18173
+ embed2: 1,
18174
+ private: privateMode ? 1 : null,
18175
+ test_user: testMode ? 1 : null,
18176
+ align: getAlignment(adaSettings)
18177
+ };
18178
+
18179
+ if (smsToken) {
18180
+ queryParams.adaSMSToken = smsToken;
15718
18181
  }
15719
18182
 
15720
18183
  return getURL({
@@ -15722,17 +18185,7 @@ class ChatFrame extends d {
15722
18185
  handle,
15723
18186
  cluster,
15724
18187
  domain,
15725
- qp: {
15726
- embedVersion: "428a23c".slice(0, 7),
15727
- greeting,
15728
- language,
15729
- skipGreeting,
15730
- introShown: wasIntroShown,
15731
- embed2: 1,
15732
- private: privateMode ? 1 : null,
15733
- test_user: testMode ? 1 : null,
15734
- align: getAlignment(adaSettings)
15735
- }
18188
+ qp: queryParams
15736
18189
  });
15737
18190
  }
15738
18191
 
@@ -17832,7 +20285,7 @@ class Embed {
17832
20285
 
17833
20286
  }
17834
20287
 
17835
- _defineProperty(Embed, "embed2Version", "428a23c");
20288
+ _defineProperty(Embed, "embed2Version", "717856b");
17836
20289
  ;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
17837
20290
 
17838
20291