kucservice 1.3.9 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -203,48 +203,6 @@ module.exports = function (fn, that) {
203
203
  };
204
204
 
205
205
 
206
- /***/ }),
207
-
208
- /***/ "0538":
209
- /***/ (function(module, exports, __webpack_require__) {
210
-
211
- "use strict";
212
-
213
- var global = __webpack_require__("da84");
214
- var uncurryThis = __webpack_require__("e330");
215
- var aCallable = __webpack_require__("59ed");
216
- var isObject = __webpack_require__("861d");
217
- var hasOwn = __webpack_require__("1a2d");
218
- var arraySlice = __webpack_require__("f36a");
219
- var NATIVE_BIND = __webpack_require__("40d5");
220
-
221
- var Function = global.Function;
222
- var concat = uncurryThis([].concat);
223
- var join = uncurryThis([].join);
224
- var factories = {};
225
-
226
- var construct = function (C, argsLength, args) {
227
- if (!hasOwn(factories, argsLength)) {
228
- for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
229
- factories[argsLength] = Function('C,a', 'return new C(' + join(list, ',') + ')');
230
- } return factories[argsLength](C, args);
231
- };
232
-
233
- // `Function.prototype.bind` method implementation
234
- // https://tc39.es/ecma262/#sec-function.prototype.bind
235
- module.exports = NATIVE_BIND ? Function.bind : function bind(that /* , ...args */) {
236
- var F = aCallable(this);
237
- var Prototype = F.prototype;
238
- var partArgs = arraySlice(arguments, 1);
239
- var boundFunction = function bound(/* args... */) {
240
- var args = concat(partArgs, arraySlice(arguments));
241
- return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
242
- };
243
- if (isObject(Prototype)) boundFunction.prototype = Prototype;
244
- return boundFunction;
245
- };
246
-
247
-
248
206
  /***/ }),
249
207
 
250
208
  /***/ "057f":
@@ -366,31 +324,6 @@ module.exports = !DESCRIPTORS && !fails(function () {
366
324
  });
367
325
 
368
326
 
369
- /***/ }),
370
-
371
- /***/ "0d03":
372
- /***/ (function(module, exports, __webpack_require__) {
373
-
374
- var uncurryThis = __webpack_require__("e330");
375
- var redefine = __webpack_require__("6eeb");
376
-
377
- var DatePrototype = Date.prototype;
378
- var INVALID_DATE = 'Invalid Date';
379
- var TO_STRING = 'toString';
380
- var un$DateToString = uncurryThis(DatePrototype[TO_STRING]);
381
- var getTime = uncurryThis(DatePrototype.getTime);
382
-
383
- // `Date.prototype.toString` method
384
- // https://tc39.es/ecma262/#sec-date.prototype.tostring
385
- if (String(new Date(NaN)) != INVALID_DATE) {
386
- redefine(DatePrototype, TO_STRING, function toString() {
387
- var value = getTime(this);
388
- // eslint-disable-next-line no-self-compare -- NaN check
389
- return value === value ? un$DateToString(this) : INVALID_DATE;
390
- });
391
- }
392
-
393
-
394
327
  /***/ }),
395
328
 
396
329
  /***/ "0d51":
@@ -667,21 +600,6 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
667
600
  }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
668
601
 
669
602
 
670
- /***/ }),
671
-
672
- /***/ "131a":
673
- /***/ (function(module, exports, __webpack_require__) {
674
-
675
- var $ = __webpack_require__("23e7");
676
- var setPrototypeOf = __webpack_require__("d2bb");
677
-
678
- // `Object.setPrototypeOf` method
679
- // https://tc39.es/ecma262/#sec-object.setprototypeof
680
- $({ target: 'Object', stat: true }, {
681
- setPrototypeOf: setPrototypeOf
682
- });
683
-
684
-
685
603
  /***/ }),
686
604
 
687
605
  /***/ "13d5":
@@ -1179,44 +1097,6 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1179
1097
  };
1180
1098
 
1181
1099
 
1182
- /***/ }),
1183
-
1184
- /***/ "25f0":
1185
- /***/ (function(module, exports, __webpack_require__) {
1186
-
1187
- "use strict";
1188
-
1189
- var uncurryThis = __webpack_require__("e330");
1190
- var PROPER_FUNCTION_NAME = __webpack_require__("5e77").PROPER;
1191
- var redefine = __webpack_require__("6eeb");
1192
- var anObject = __webpack_require__("825a");
1193
- var isPrototypeOf = __webpack_require__("3a9b");
1194
- var $toString = __webpack_require__("577e");
1195
- var fails = __webpack_require__("d039");
1196
- var regExpFlags = __webpack_require__("ad6d");
1197
-
1198
- var TO_STRING = 'toString';
1199
- var RegExpPrototype = RegExp.prototype;
1200
- var n$ToString = RegExpPrototype[TO_STRING];
1201
- var getFlags = uncurryThis(regExpFlags);
1202
-
1203
- var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1204
- // FF44- RegExp#toString has a wrong name
1205
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
1206
-
1207
- // `RegExp.prototype.toString` method
1208
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1209
- if (NOT_GENERIC || INCORRECT_NAME) {
1210
- redefine(RegExp.prototype, TO_STRING, function toString() {
1211
- var R = anObject(this);
1212
- var p = $toString(R.source);
1213
- var rf = R.flags;
1214
- var f = $toString(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
1215
- return '/' + p + '/' + f;
1216
- }, { unsafe: true });
1217
- }
1218
-
1219
-
1220
1100
  /***/ }),
1221
1101
 
1222
1102
  /***/ "2626":
@@ -1463,29 +1343,6 @@ if (!version && userAgent) {
1463
1343
  module.exports = version;
1464
1344
 
1465
1345
 
1466
- /***/ }),
1467
-
1468
- /***/ "3410":
1469
- /***/ (function(module, exports, __webpack_require__) {
1470
-
1471
- var $ = __webpack_require__("23e7");
1472
- var fails = __webpack_require__("d039");
1473
- var toObject = __webpack_require__("7b0b");
1474
- var nativeGetPrototypeOf = __webpack_require__("e163");
1475
- var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
1476
-
1477
- var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
1478
-
1479
- // `Object.getPrototypeOf` method
1480
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1481
- $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
1482
- getPrototypeOf: function getPrototypeOf(it) {
1483
- return nativeGetPrototypeOf(toObject(it));
1484
- }
1485
- });
1486
-
1487
-
1488
-
1489
1346
  /***/ }),
1490
1347
 
1491
1348
  /***/ "342f":
@@ -1636,612 +1493,35 @@ var fails = __webpack_require__("d039");
1636
1493
 
1637
1494
  module.exports = !fails(function () {
1638
1495
  var test = (function () { /* empty */ }).bind();
1639
- // eslint-disable-next-line no-prototype-builtins -- safe
1640
- return typeof test != 'function' || test.hasOwnProperty('prototype');
1641
- });
1642
-
1643
-
1644
- /***/ }),
1645
-
1646
- /***/ "4160":
1647
- /***/ (function(module, exports, __webpack_require__) {
1648
-
1649
- "use strict";
1650
-
1651
- var $ = __webpack_require__("23e7");
1652
- var forEach = __webpack_require__("17c2");
1653
-
1654
- // `Array.prototype.forEach` method
1655
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
1656
- // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1657
- $({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
1658
- forEach: forEach
1659
- });
1660
-
1661
-
1662
- /***/ }),
1663
-
1664
- /***/ "4269":
1665
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1666
-
1667
- "use strict";
1668
- // ESM COMPAT FLAG
1669
- __webpack_require__.r(__webpack_exports__);
1670
-
1671
- // EXPORTS
1672
- __webpack_require__.d(__webpack_exports__, "useSocket", function() { return /* binding */ useSocket; });
1673
-
1674
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
1675
- var es_error_cause = __webpack_require__("d9e2");
1676
-
1677
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.to-string.js
1678
- var es_error_to_string = __webpack_require__("d401");
1679
-
1680
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1681
-
1682
-
1683
- function _assertThisInitialized(self) {
1684
- if (self === void 0) {
1685
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1686
- }
1687
-
1688
- return self;
1689
- }
1690
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.create.js
1691
- var es_object_create = __webpack_require__("b8bf");
1692
-
1693
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.define-property.js
1694
- var es_object_define_property = __webpack_require__("7a82");
1695
-
1696
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.set-prototype-of.js
1697
- var es_object_set_prototype_of = __webpack_require__("131a");
1698
-
1699
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1700
-
1701
- function _setPrototypeOf(o, p) {
1702
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
1703
- o.__proto__ = p;
1704
- return o;
1705
- };
1706
-
1707
- return _setPrototypeOf(o, p);
1708
- }
1709
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
1710
-
1711
-
1712
-
1713
-
1714
-
1715
- function _inherits(subClass, superClass) {
1716
- if (typeof superClass !== "function" && superClass !== null) {
1717
- throw new TypeError("Super expression must either be null or a function");
1718
- }
1719
-
1720
- subClass.prototype = Object.create(superClass && superClass.prototype, {
1721
- constructor: {
1722
- value: subClass,
1723
- writable: true,
1724
- configurable: true
1725
- }
1726
- });
1727
- Object.defineProperty(subClass, "prototype", {
1728
- writable: false
1729
- });
1730
- if (superClass) _setPrototypeOf(subClass, superClass);
1731
- }
1732
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.construct.js
1733
- var es_reflect_construct = __webpack_require__("4ae1");
1734
-
1735
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
1736
- var es_object_to_string = __webpack_require__("d3b7");
1737
-
1738
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.to-string-tag.js
1739
- var es_reflect_to_string_tag = __webpack_require__("f8c9");
1740
-
1741
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-prototype-of.js
1742
- var es_object_get_prototype_of = __webpack_require__("3410");
1743
-
1744
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
1745
-
1746
-
1747
- function _getPrototypeOf(o) {
1748
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
1749
- return o.__proto__ || Object.getPrototypeOf(o);
1750
- };
1751
- return _getPrototypeOf(o);
1752
- }
1753
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1754
-
1755
-
1756
-
1757
- function _isNativeReflectConstruct() {
1758
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1759
- if (Reflect.construct.sham) return false;
1760
- if (typeof Proxy === "function") return true;
1761
-
1762
- try {
1763
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
1764
- return true;
1765
- } catch (e) {
1766
- return false;
1767
- }
1768
- }
1769
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
1770
- var esm_typeof = __webpack_require__("53ca");
1771
-
1772
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
1773
-
1774
-
1775
-
1776
-
1777
- function _possibleConstructorReturn(self, call) {
1778
- if (call && (Object(esm_typeof["a" /* default */])(call) === "object" || typeof call === "function")) {
1779
- return call;
1780
- } else if (call !== void 0) {
1781
- throw new TypeError("Derived constructors may only return object or undefined");
1782
- }
1783
-
1784
- return _assertThisInitialized(self);
1785
- }
1786
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
1787
-
1788
-
1789
-
1790
-
1791
-
1792
-
1793
- function _createSuper(Derived) {
1794
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
1795
- return function _createSuperInternal() {
1796
- var Super = _getPrototypeOf(Derived),
1797
- result;
1798
-
1799
- if (hasNativeReflectConstruct) {
1800
- var NewTarget = _getPrototypeOf(this).constructor;
1801
- result = Reflect.construct(Super, arguments, NewTarget);
1802
- } else {
1803
- result = Super.apply(this, arguments);
1804
- }
1805
-
1806
- return _possibleConstructorReturn(this, result);
1807
- };
1808
- }
1809
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
1810
- var es_array_iterator = __webpack_require__("e260");
1811
-
1812
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
1813
- var es_map = __webpack_require__("4ec9");
1814
-
1815
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
1816
- var es_string_iterator = __webpack_require__("3ca3");
1817
-
1818
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
1819
- var web_dom_collections_iterator = __webpack_require__("ddb0");
1820
-
1821
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
1822
- var es_array_index_of = __webpack_require__("c975");
1823
-
1824
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.date.to-string.js
1825
- var es_date_to_string = __webpack_require__("0d03");
1826
-
1827
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
1828
- var es_regexp_to_string = __webpack_require__("25f0");
1829
-
1830
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
1831
-
1832
-
1833
-
1834
-
1835
-
1836
- function _isNativeFunction(fn) {
1837
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
1838
- }
1839
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.bind.js
1840
- var es_function_bind = __webpack_require__("c0b6");
1841
-
1842
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/construct.js
1843
-
1844
-
1845
-
1846
-
1847
-
1848
-
1849
- function construct_construct(Parent, args, Class) {
1850
- if (_isNativeReflectConstruct()) {
1851
- construct_construct = Reflect.construct;
1852
- } else {
1853
- construct_construct = function _construct(Parent, args, Class) {
1854
- var a = [null];
1855
- a.push.apply(a, args);
1856
- var Constructor = Function.bind.apply(Parent, a);
1857
- var instance = new Constructor();
1858
- if (Class) _setPrototypeOf(instance, Class.prototype);
1859
- return instance;
1860
- };
1861
- }
1862
-
1863
- return construct_construct.apply(null, arguments);
1864
- }
1865
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1866
-
1867
-
1868
-
1869
-
1870
-
1871
-
1872
-
1873
-
1874
-
1875
-
1876
-
1877
-
1878
- function wrapNativeSuper_wrapNativeSuper(Class) {
1879
- var _cache = typeof Map === "function" ? new Map() : undefined;
1880
-
1881
- wrapNativeSuper_wrapNativeSuper = function _wrapNativeSuper(Class) {
1882
- if (Class === null || !_isNativeFunction(Class)) return Class;
1883
-
1884
- if (typeof Class !== "function") {
1885
- throw new TypeError("Super expression must either be null or a function");
1886
- }
1887
-
1888
- if (typeof _cache !== "undefined") {
1889
- if (_cache.has(Class)) return _cache.get(Class);
1890
-
1891
- _cache.set(Class, Wrapper);
1892
- }
1893
-
1894
- function Wrapper() {
1895
- return construct_construct(Class, arguments, _getPrototypeOf(this).constructor);
1896
- }
1897
-
1898
- Wrapper.prototype = Object.create(Class.prototype, {
1899
- constructor: {
1900
- value: Wrapper,
1901
- enumerable: false,
1902
- writable: true,
1903
- configurable: true
1904
- }
1905
- });
1906
- return _setPrototypeOf(Wrapper, Class);
1907
- };
1908
-
1909
- return wrapNativeSuper_wrapNativeSuper(Class);
1910
- }
1911
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
1912
- var classCallCheck = __webpack_require__("d4ec");
1913
-
1914
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
1915
- var createClass = __webpack_require__("bee2");
1916
-
1917
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
1918
- var defineProperty = __webpack_require__("ade3");
1919
-
1920
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
1921
- var es_array_for_each = __webpack_require__("4160");
1922
-
1923
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
1924
- var web_dom_collections_for_each = __webpack_require__("159b");
1925
-
1926
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
1927
- var es_object_keys = __webpack_require__("b64b");
1928
-
1929
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
1930
- var es_array_reduce = __webpack_require__("13d5");
1931
-
1932
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
1933
- var es_array_concat = __webpack_require__("99af");
1934
-
1935
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
1936
- var es_object_assign = __webpack_require__("cca6");
1937
-
1938
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.timers.js
1939
- var web_timers = __webpack_require__("4795");
1940
-
1941
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
1942
- var es_array_includes = __webpack_require__("caad");
1943
-
1944
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
1945
- var es_json_stringify = __webpack_require__("e9c4");
1946
-
1947
- // CONCATENATED MODULE: ./src/lib/webApi/websocket.js
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
-
1969
-
1970
-
1971
-
1972
- var EventTypes = ['open', 'close', 'message', 'error', 'reconnect'];
1973
- var DEFAULT_CHECK_TIME = 30 * 1000; // 心跳检测的默认时间
1974
-
1975
- var TIMEOUT = 40 * 1000; //重连延迟时间
1976
-
1977
- var DEFAULT_CHECK_COUNT = 10; // 心跳检测默认失败重连次数
1978
-
1979
- var DEFAULT_CHECK_DATA = {
1980
- Type: 1,
1981
- Parameters: ['alive']
1982
- }; // 心跳检测的默认参数
1983
-
1984
- var CLOSE_ABNORMAL = 1000; // WebSocket正常关闭code码
1985
-
1986
- function deepClone(source) {
1987
- if (!source && Object(esm_typeof["a" /* default */])(source) !== 'object') {
1988
- throw new Error('error arguments', 'deepClone');
1989
- }
1990
-
1991
- var targetObj = source.constructor === Array ? [] : {};
1992
- Object.keys(source).forEach(function (keys) {
1993
- if (source[keys] && Object(esm_typeof["a" /* default */])(source[keys]) === 'object') {
1994
- targetObj[keys] = deepClone(source[keys]);
1995
- } else {
1996
- targetObj[keys] = source[keys];
1997
- }
1998
- });
1999
- return targetObj;
2000
- }
2001
-
2002
- var websocket_EventMap = /*#__PURE__*/function () {
2003
- function EventMap() {
2004
- Object(classCallCheck["a" /* default */])(this, EventMap);
2005
-
2006
- Object(defineProperty["a" /* default */])(this, "deps", new Map());
2007
- }
2008
-
2009
- Object(createClass["a" /* default */])(EventMap, [{
2010
- key: "depend",
2011
- value: function depend(eventType, callback) {
2012
- this.deps.set(eventType, callback);
2013
- }
2014
- }, {
2015
- key: "notify",
2016
- value: function notify(eventType, event) {
2017
- if (this.deps.has(eventType)) {
2018
- this.deps.get(eventType)(event);
2019
- }
2020
- }
2021
- }]);
2022
-
2023
- return EventMap;
2024
- }();
2025
-
2026
- var websocket_Socket = /*#__PURE__*/function (_WebSocket) {
2027
- _inherits(Socket, _WebSocket);
2028
-
2029
- var _super = _createSuper(Socket);
2030
-
2031
- /**
2032
- *
2033
- * @param {Object} _self vue实例 用于在销毁组件时 如果有重连的定时 则销毁
2034
- */
2035
- function Socket(options, dep) {
2036
- var _this;
2037
-
2038
- var reconnectCount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
2039
-
2040
- var _self = arguments.length > 3 ? arguments[3] : undefined;
2041
-
2042
- Object(classCallCheck["a" /* default */])(this, Socket);
2043
-
2044
- var _baseURL = '';
2045
- var url = options.url,
2046
- protocols = options.protocols,
2047
- _options$query = options.query,
2048
- query = _options$query === void 0 ? {} : _options$query,
2049
- _options$greet = options.greet,
2050
- greet = _options$greet === void 0 ? null : _options$greet,
2051
- _options$customBase = options.customBase,
2052
- customBase = _options$customBase === void 0 ? null : _options$customBase,
2053
- checkData = options.checkData;
2054
-
2055
- var _queryParams = Object.keys(query).reduce(function (str, key) {
2056
- if (Object(esm_typeof["a" /* default */])(query[key]) !== 'object' && typeof query[key] !== 'function') {
2057
- return str += str.length > 0 ? "&".concat(key, "=").concat(query[key]) : "".concat(key, "=").concat(query[key]);
2058
- } else {
2059
- return str;
2060
- }
2061
- }, '');
2062
-
2063
- if (customBase) {
2064
- _baseURL = customBase;
2065
- }
2066
-
2067
- _this = _super.call(this, "".concat(_baseURL).concat(url).concat(_queryParams ? '?' + _queryParams : ''), protocols);
2068
-
2069
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "heartCheckData", DEFAULT_CHECK_DATA);
2070
-
2071
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "heartCheckTimeout", DEFAULT_CHECK_TIME);
2072
-
2073
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "heartCheckInterval", null);
2074
-
2075
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "heartCheckCount", DEFAULT_CHECK_COUNT);
2076
-
2077
- Object(defineProperty["a" /* default */])(_assertThisInitialized(_this), "firstConnect", false);
2078
-
2079
- _this.self = _self;
2080
- _this._currentOptions = options;
2081
- _this._dep = dep;
2082
- _this.heartCheckData = checkData || DEFAULT_CHECK_DATA;
2083
- _this._reconnectCount = reconnectCount;
2084
- greet && Object.assign(_assertThisInitialized(_this), {
2085
- heartCheckData: greet
2086
- });
2087
-
2088
- _this.initSocket();
2089
-
2090
- return _this;
2091
- } // 初始化WebSocket
2092
-
2093
-
2094
- Object(createClass["a" /* default */])(Socket, [{
2095
- key: "initSocket",
2096
- value: function initSocket() {
2097
- // 监听webSocket的事件
2098
- this.onopen = function (e) {
2099
- this._dep.notify('open', e);
2100
-
2101
- this.firstConnect = true;
2102
- this.heartCheckStart();
2103
- };
2104
-
2105
- this.onclose = function (e) {
2106
- var _this2 = this;
2107
-
2108
- this._dep.notify('close', e); // 如果WebSocket是非正常关闭 则进行重连
2109
-
2110
-
2111
- if (e.code !== CLOSE_ABNORMAL) {
2112
- // if (this._reconnectCount < this.heartCheckCount) {
2113
- this._reconnectCount++;
2114
- var optionsClone = deepClone(this._currentOptions); // 只有初次连接成功 重连时才传递参数
2115
-
2116
- if (this.firstConnect) {
2117
- optionsClone.query.type = 'reconnect';
2118
- }
2119
-
2120
- this.self.socketTimer && clearTimeout(this.self.socketTimer);
2121
- this.self.socketTimer = setTimeout(function () {
2122
- var _socket = new Socket(optionsClone, _this2._dep, _this2._reconnectCount, _this2.self);
2123
-
2124
- _this2._dep.notify('reconnect', _socket);
2125
- }, TIMEOUT); // } else {
2126
- // return console.error('WebSocket重连失败, 请联系技术客服!')
2127
- // }
2128
- }
2129
- };
2130
-
2131
- this.onerror = function (e) {
2132
- this._dep.notify('error', e);
2133
- };
2134
-
2135
- this.onmessage = function (e) {
2136
- var _this3 = this;
2137
-
2138
- // 如果后端返回的是二进制数据
2139
- if (e.data instanceof Blob) {
2140
- var reader = new FileReader();
2141
- reader.readAsArrayBuffer(e.data);
2142
-
2143
- reader.onload = function (ev) {
2144
- if (ev.target.readyState === FileReader.DONE) {
2145
- var _ev$target;
2146
-
2147
- _this3._dep.notify('message', (_ev$target = ev.target) === null || _ev$target === void 0 ? void 0 : _ev$target.result);
2148
- }
2149
- };
2150
- } else {
2151
- // 处理普通数据
2152
- try {
2153
- // const _parseData = JSON.parse(e.data)
2154
- this._dep.notify('message', e.data);
2155
- } catch (error) {
2156
- console.log(error);
2157
- }
2158
- }
2159
- };
2160
- } // 订阅事件
2161
-
2162
- }, {
2163
- key: "subscribe",
2164
- value: function subscribe(eventType, callback) {
2165
- if (typeof callback !== 'function') throw new Error('The second param is must be a function');
2166
- if (!EventTypes.includes(eventType)) throw new Error('The first param is not supported');
2167
-
2168
- this._dep.depend(eventType, callback);
2169
- } // 发送消息
2170
-
2171
- }, {
2172
- key: "sendMessage",
2173
- value: function sendMessage(data) {
2174
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2175
- var _options$transformJSO = options.transformJSON,
2176
- transformJSON = _options$transformJSO === void 0 ? true : _options$transformJSO;
2177
- var result = data;
2178
-
2179
- if (transformJSON) {
2180
- result = JSON.stringify(data);
2181
- }
2182
-
2183
- this.send(result);
2184
- } // 关闭WebSocket
2185
-
2186
- }, {
2187
- key: "closeSocket",
2188
- value: function closeSocket(code, reason) {
2189
- this.clearHeartCheck();
2190
- this.close(code, reason);
2191
- } // 开始心跳检测
1496
+ // eslint-disable-next-line no-prototype-builtins -- safe
1497
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
1498
+ });
2192
1499
 
2193
- }, {
2194
- key: "heartCheckStart",
2195
- value: function heartCheckStart() {
2196
- var _this4 = this;
2197
1500
 
2198
- this.heartCheckInterval = setInterval(function () {
2199
- if (_this4.readyState === _this4.OPEN) {
2200
- var transformJSON = Object(esm_typeof["a" /* default */])(_this4.heartCheckData) === 'object';
1501
+ /***/ }),
2201
1502
 
2202
- _this4.sendMessage(_this4.heartCheckData, {
2203
- transformJSON: transformJSON
2204
- });
2205
- } else {
2206
- _this4.clearHeartCheck();
2207
- }
2208
- }, this.heartCheckTimeout);
2209
- } // 清除心跳检测
1503
+ /***/ "4160":
1504
+ /***/ (function(module, exports, __webpack_require__) {
2210
1505
 
2211
- }, {
2212
- key: "clearHeartCheck",
2213
- value: function clearHeartCheck() {
2214
- clearInterval(this.heartCheckInterval);
2215
- } // 重置心跳检测
1506
+ "use strict";
2216
1507
 
2217
- }, {
2218
- key: "resetHeartCheck",
2219
- value: function resetHeartCheck() {
2220
- clearInterval(this.heartCheckInterval);
2221
- this.heartCheckStart();
2222
- }
2223
- }]);
1508
+ var $ = __webpack_require__("23e7");
1509
+ var forEach = __webpack_require__("17c2");
2224
1510
 
2225
- return Socket;
2226
- }( /*#__PURE__*/wrapNativeSuper_wrapNativeSuper(WebSocket)); // 默认的配置项
1511
+ // `Array.prototype.forEach` method
1512
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
1513
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1514
+ $({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
1515
+ forEach: forEach
1516
+ });
2227
1517
 
2228
1518
 
2229
- var defaultOptions = {
2230
- url: '',
2231
- protocols: '',
2232
- customBase: null,
2233
- query: {}
2234
- };
2235
- var useSocket = function useSocket() {
2236
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultOptions;
1519
+ /***/ }),
2237
1520
 
2238
- var _self = arguments.length > 1 ? arguments[1] : undefined;
1521
+ /***/ "4269":
1522
+ /***/ (function(module, exports) {
2239
1523
 
2240
- if (!window.WebSocket) return console.error('您的浏览器不支持WebSocket, 请更换浏览器!');
2241
- var dep = new websocket_EventMap();
2242
- var reconnectCount = 0;
2243
- return new websocket_Socket(options, dep, reconnectCount, _self);
2244
- };
1524
+ throw new Error("Module build failed (from ./node_modules/thread-loader/dist/cjs.js):\nThread Loader (Worker 0)\nC:\\worker\\kucservice\\kucservice\\src\\lib\\webApi\\websocket.js: Invalid left-hand side in assignment expression. (91:8)\n\n 89 |\n 90 | this.self?.socketTimer && clearTimeout(this.self.socketTimer)\n> 91 | this.self?.socketTimer = setTimeout(() => {\n | ^\n 92 | const _socket = new Socket(optionsClone, this._dep, this._reconnectCount, this.self)\n 93 | this._dep.notify('reconnect', _socket)\n 94 | }, TIMEOUT)\n at PoolWorker.fromErrorObj (C:\\worker\\kucservice\\kucservice\\node_modules\\thread-loader\\dist\\WorkerPool.js:262:12)\n at C:\\worker\\kucservice\\kucservice\\node_modules\\thread-loader\\dist\\WorkerPool.js:204:29\n at instantiate (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:72:32)\n at constructor (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:358:12)\n at Object.raise (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:3335:19)\n at Object.checkLVal (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12002:12)\n at Object.parseMaybeAssign (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12246:12)\n at Object.parseExpressionBase (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12150:23)\n at C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12144:39\n at Object.allowInAnd (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:14236:16)\n at Object.parseExpression (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:12144:17)\n at Object.parseStatementContent (C:\\worker\\kucservice\\kucservice\\node_modules\\@babel\\parser\\lib\\index.js:14676:23)");
2245
1525
 
2246
1526
  /***/ }),
2247
1527
 
@@ -2439,69 +1719,6 @@ module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
2439
1719
  });
2440
1720
 
2441
1721
 
2442
- /***/ }),
2443
-
2444
- /***/ "4ae1":
2445
- /***/ (function(module, exports, __webpack_require__) {
2446
-
2447
- var $ = __webpack_require__("23e7");
2448
- var getBuiltIn = __webpack_require__("d066");
2449
- var apply = __webpack_require__("2ba4");
2450
- var bind = __webpack_require__("0538");
2451
- var aConstructor = __webpack_require__("5087");
2452
- var anObject = __webpack_require__("825a");
2453
- var isObject = __webpack_require__("861d");
2454
- var create = __webpack_require__("7c73");
2455
- var fails = __webpack_require__("d039");
2456
-
2457
- var nativeConstruct = getBuiltIn('Reflect', 'construct');
2458
- var ObjectPrototype = Object.prototype;
2459
- var push = [].push;
2460
-
2461
- // `Reflect.construct` method
2462
- // https://tc39.es/ecma262/#sec-reflect.construct
2463
- // MS Edge supports only 2 arguments and argumentsList argument is optional
2464
- // FF Nightly sets third argument as `new.target`, but does not create `this` from it
2465
- var NEW_TARGET_BUG = fails(function () {
2466
- function F() { /* empty */ }
2467
- return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
2468
- });
2469
-
2470
- var ARGS_BUG = !fails(function () {
2471
- nativeConstruct(function () { /* empty */ });
2472
- });
2473
-
2474
- var FORCED = NEW_TARGET_BUG || ARGS_BUG;
2475
-
2476
- $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
2477
- construct: function construct(Target, args /* , newTarget */) {
2478
- aConstructor(Target);
2479
- anObject(args);
2480
- var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);
2481
- if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
2482
- if (Target == newTarget) {
2483
- // w/o altered newTarget, optimization for 0-4 arguments
2484
- switch (args.length) {
2485
- case 0: return new Target();
2486
- case 1: return new Target(args[0]);
2487
- case 2: return new Target(args[0], args[1]);
2488
- case 3: return new Target(args[0], args[1], args[2]);
2489
- case 4: return new Target(args[0], args[1], args[2], args[3]);
2490
- }
2491
- // w/o altered newTarget, lot of arguments case
2492
- var $args = [null];
2493
- apply(push, $args, args);
2494
- return new (apply(bind, Target, $args))();
2495
- }
2496
- // with altered newTarget, not support built-in constructors
2497
- var proto = newTarget.prototype;
2498
- var instance = create(isObject(proto) ? proto : ObjectPrototype);
2499
- var result = apply(Target, instance, args);
2500
- return isObject(result) ? result : instance;
2501
- }
2502
- });
2503
-
2504
-
2505
1722
  /***/ }),
2506
1723
 
2507
1724
  /***/ "4d64":
@@ -2643,23 +1860,6 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
2643
1860
  };
2644
1861
 
2645
1862
 
2646
- /***/ }),
2647
-
2648
- /***/ "4ec9":
2649
- /***/ (function(module, exports, __webpack_require__) {
2650
-
2651
- "use strict";
2652
-
2653
- var collection = __webpack_require__("6d61");
2654
- var collectionStrong = __webpack_require__("6566");
2655
-
2656
- // `Map` constructor
2657
- // https://tc39.es/ecma262/#sec-map-objects
2658
- collection('Map', function (init) {
2659
- return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
2660
- }, collectionStrong);
2661
-
2662
-
2663
1863
  /***/ }),
2664
1864
 
2665
1865
  /***/ "4fad":
@@ -2749,44 +1949,6 @@ webpackContext.id = "5180";
2749
1949
 
2750
1950
  /***/ }),
2751
1951
 
2752
- /***/ "53ca":
2753
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2754
-
2755
- "use strict";
2756
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
2757
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a4d3");
2758
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
2759
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e01a");
2760
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__);
2761
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d3b7");
2762
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
2763
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d28b");
2764
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_3__);
2765
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("e260");
2766
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
2767
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("3ca3");
2768
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
2769
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("ddb0");
2770
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6__);
2771
-
2772
-
2773
-
2774
-
2775
-
2776
-
2777
-
2778
- function _typeof(obj) {
2779
- "@babel/helpers - typeof";
2780
-
2781
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
2782
- return typeof obj;
2783
- } : function (obj) {
2784
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2785
- }, _typeof(obj);
2786
- }
2787
-
2788
- /***/ }),
2789
-
2790
1952
  /***/ "5692":
2791
1953
  /***/ (function(module, exports, __webpack_require__) {
2792
1954
 
@@ -3090,218 +2252,6 @@ module.exports = {
3090
2252
  };
3091
2253
 
3092
2254
 
3093
- /***/ }),
3094
-
3095
- /***/ "6566":
3096
- /***/ (function(module, exports, __webpack_require__) {
3097
-
3098
- "use strict";
3099
-
3100
- var defineProperty = __webpack_require__("9bf2").f;
3101
- var create = __webpack_require__("7c73");
3102
- var redefineAll = __webpack_require__("e2cc");
3103
- var bind = __webpack_require__("0366");
3104
- var anInstance = __webpack_require__("19aa");
3105
- var iterate = __webpack_require__("2266");
3106
- var defineIterator = __webpack_require__("7dd0");
3107
- var setSpecies = __webpack_require__("2626");
3108
- var DESCRIPTORS = __webpack_require__("83ab");
3109
- var fastKey = __webpack_require__("f183").fastKey;
3110
- var InternalStateModule = __webpack_require__("69f3");
3111
-
3112
- var setInternalState = InternalStateModule.set;
3113
- var internalStateGetterFor = InternalStateModule.getterFor;
3114
-
3115
- module.exports = {
3116
- getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
3117
- var Constructor = wrapper(function (that, iterable) {
3118
- anInstance(that, Prototype);
3119
- setInternalState(that, {
3120
- type: CONSTRUCTOR_NAME,
3121
- index: create(null),
3122
- first: undefined,
3123
- last: undefined,
3124
- size: 0
3125
- });
3126
- if (!DESCRIPTORS) that.size = 0;
3127
- if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
3128
- });
3129
-
3130
- var Prototype = Constructor.prototype;
3131
-
3132
- var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
3133
-
3134
- var define = function (that, key, value) {
3135
- var state = getInternalState(that);
3136
- var entry = getEntry(that, key);
3137
- var previous, index;
3138
- // change existing entry
3139
- if (entry) {
3140
- entry.value = value;
3141
- // create new entry
3142
- } else {
3143
- state.last = entry = {
3144
- index: index = fastKey(key, true),
3145
- key: key,
3146
- value: value,
3147
- previous: previous = state.last,
3148
- next: undefined,
3149
- removed: false
3150
- };
3151
- if (!state.first) state.first = entry;
3152
- if (previous) previous.next = entry;
3153
- if (DESCRIPTORS) state.size++;
3154
- else that.size++;
3155
- // add to index
3156
- if (index !== 'F') state.index[index] = entry;
3157
- } return that;
3158
- };
3159
-
3160
- var getEntry = function (that, key) {
3161
- var state = getInternalState(that);
3162
- // fast case
3163
- var index = fastKey(key);
3164
- var entry;
3165
- if (index !== 'F') return state.index[index];
3166
- // frozen object case
3167
- for (entry = state.first; entry; entry = entry.next) {
3168
- if (entry.key == key) return entry;
3169
- }
3170
- };
3171
-
3172
- redefineAll(Prototype, {
3173
- // `{ Map, Set }.prototype.clear()` methods
3174
- // https://tc39.es/ecma262/#sec-map.prototype.clear
3175
- // https://tc39.es/ecma262/#sec-set.prototype.clear
3176
- clear: function clear() {
3177
- var that = this;
3178
- var state = getInternalState(that);
3179
- var data = state.index;
3180
- var entry = state.first;
3181
- while (entry) {
3182
- entry.removed = true;
3183
- if (entry.previous) entry.previous = entry.previous.next = undefined;
3184
- delete data[entry.index];
3185
- entry = entry.next;
3186
- }
3187
- state.first = state.last = undefined;
3188
- if (DESCRIPTORS) state.size = 0;
3189
- else that.size = 0;
3190
- },
3191
- // `{ Map, Set }.prototype.delete(key)` methods
3192
- // https://tc39.es/ecma262/#sec-map.prototype.delete
3193
- // https://tc39.es/ecma262/#sec-set.prototype.delete
3194
- 'delete': function (key) {
3195
- var that = this;
3196
- var state = getInternalState(that);
3197
- var entry = getEntry(that, key);
3198
- if (entry) {
3199
- var next = entry.next;
3200
- var prev = entry.previous;
3201
- delete state.index[entry.index];
3202
- entry.removed = true;
3203
- if (prev) prev.next = next;
3204
- if (next) next.previous = prev;
3205
- if (state.first == entry) state.first = next;
3206
- if (state.last == entry) state.last = prev;
3207
- if (DESCRIPTORS) state.size--;
3208
- else that.size--;
3209
- } return !!entry;
3210
- },
3211
- // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
3212
- // https://tc39.es/ecma262/#sec-map.prototype.foreach
3213
- // https://tc39.es/ecma262/#sec-set.prototype.foreach
3214
- forEach: function forEach(callbackfn /* , that = undefined */) {
3215
- var state = getInternalState(this);
3216
- var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3217
- var entry;
3218
- while (entry = entry ? entry.next : state.first) {
3219
- boundFunction(entry.value, entry.key, this);
3220
- // revert to the last existing entry
3221
- while (entry && entry.removed) entry = entry.previous;
3222
- }
3223
- },
3224
- // `{ Map, Set}.prototype.has(key)` methods
3225
- // https://tc39.es/ecma262/#sec-map.prototype.has
3226
- // https://tc39.es/ecma262/#sec-set.prototype.has
3227
- has: function has(key) {
3228
- return !!getEntry(this, key);
3229
- }
3230
- });
3231
-
3232
- redefineAll(Prototype, IS_MAP ? {
3233
- // `Map.prototype.get(key)` method
3234
- // https://tc39.es/ecma262/#sec-map.prototype.get
3235
- get: function get(key) {
3236
- var entry = getEntry(this, key);
3237
- return entry && entry.value;
3238
- },
3239
- // `Map.prototype.set(key, value)` method
3240
- // https://tc39.es/ecma262/#sec-map.prototype.set
3241
- set: function set(key, value) {
3242
- return define(this, key === 0 ? 0 : key, value);
3243
- }
3244
- } : {
3245
- // `Set.prototype.add(value)` method
3246
- // https://tc39.es/ecma262/#sec-set.prototype.add
3247
- add: function add(value) {
3248
- return define(this, value = value === 0 ? 0 : value, value);
3249
- }
3250
- });
3251
- if (DESCRIPTORS) defineProperty(Prototype, 'size', {
3252
- get: function () {
3253
- return getInternalState(this).size;
3254
- }
3255
- });
3256
- return Constructor;
3257
- },
3258
- setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {
3259
- var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
3260
- var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
3261
- var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
3262
- // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods
3263
- // https://tc39.es/ecma262/#sec-map.prototype.entries
3264
- // https://tc39.es/ecma262/#sec-map.prototype.keys
3265
- // https://tc39.es/ecma262/#sec-map.prototype.values
3266
- // https://tc39.es/ecma262/#sec-map.prototype-@@iterator
3267
- // https://tc39.es/ecma262/#sec-set.prototype.entries
3268
- // https://tc39.es/ecma262/#sec-set.prototype.keys
3269
- // https://tc39.es/ecma262/#sec-set.prototype.values
3270
- // https://tc39.es/ecma262/#sec-set.prototype-@@iterator
3271
- defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {
3272
- setInternalState(this, {
3273
- type: ITERATOR_NAME,
3274
- target: iterated,
3275
- state: getInternalCollectionState(iterated),
3276
- kind: kind,
3277
- last: undefined
3278
- });
3279
- }, function () {
3280
- var state = getInternalIteratorState(this);
3281
- var kind = state.kind;
3282
- var entry = state.last;
3283
- // revert to the last existing entry
3284
- while (entry && entry.removed) entry = entry.previous;
3285
- // get next entry
3286
- if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
3287
- // or finish the iteration
3288
- state.target = undefined;
3289
- return { value: undefined, done: true };
3290
- }
3291
- // return step by kind
3292
- if (kind == 'keys') return { value: entry.key, done: false };
3293
- if (kind == 'values') return { value: entry.value, done: false };
3294
- return { value: [entry.key, entry.value], done: false };
3295
- }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
3296
-
3297
- // `{ Map, Set }.prototype[@@species]` accessors
3298
- // https://tc39.es/ecma262/#sec-get-map-@@species
3299
- // https://tc39.es/ecma262/#sec-get-set-@@species
3300
- setSpecies(CONSTRUCTOR_NAME);
3301
- }
3302
- };
3303
-
3304
-
3305
2255
  /***/ }),
3306
2256
 
3307
2257
  /***/ "65f0":
@@ -6758,22 +5708,6 @@ module.exports = {
6758
5708
  };
6759
5709
 
6760
5710
 
6761
- /***/ }),
6762
-
6763
- /***/ "b8bf":
6764
- /***/ (function(module, exports, __webpack_require__) {
6765
-
6766
- var $ = __webpack_require__("23e7");
6767
- var DESCRIPTORS = __webpack_require__("83ab");
6768
- var create = __webpack_require__("7c73");
6769
-
6770
- // `Object.create` method
6771
- // https://tc39.es/ecma262/#sec-object.create
6772
- $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
6773
- create: create
6774
- });
6775
-
6776
-
6777
5711
  /***/ }),
6778
5712
 
6779
5713
  /***/ "b980":
@@ -6867,21 +5801,6 @@ module.exports = function (input, pref) {
6867
5801
  };
6868
5802
 
6869
5803
 
6870
- /***/ }),
6871
-
6872
- /***/ "c0b6":
6873
- /***/ (function(module, exports, __webpack_require__) {
6874
-
6875
- var $ = __webpack_require__("23e7");
6876
- var bind = __webpack_require__("0538");
6877
-
6878
- // `Function.prototype.bind` method
6879
- // https://tc39.es/ecma262/#sec-function.prototype.bind
6880
- $({ target: 'Function', proto: true, forced: Function.bind !== bind }, {
6881
- bind: bind
6882
- });
6883
-
6884
-
6885
5804
  /***/ }),
6886
5805
 
6887
5806
  /***/ "c430":
@@ -7038,29 +5957,6 @@ module.exports = function (object, names) {
7038
5957
  };
7039
5958
 
7040
5959
 
7041
- /***/ }),
7042
-
7043
- /***/ "caad":
7044
- /***/ (function(module, exports, __webpack_require__) {
7045
-
7046
- "use strict";
7047
-
7048
- var $ = __webpack_require__("23e7");
7049
- var $includes = __webpack_require__("4d64").includes;
7050
- var addToUnscopables = __webpack_require__("44d2");
7051
-
7052
- // `Array.prototype.includes` method
7053
- // https://tc39.es/ecma262/#sec-array.prototype.includes
7054
- $({ target: 'Array', proto: true }, {
7055
- includes: function includes(el /* , fromIndex = 0 */) {
7056
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
7057
- }
7058
- });
7059
-
7060
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
7061
- addToUnscopables('includes');
7062
-
7063
-
7064
5960
  /***/ }),
7065
5961
 
7066
5962
  /***/ "cc12":
@@ -8771,22 +7667,6 @@ module.exports = function (key) {
8771
7667
  };
8772
7668
 
8773
7669
 
8774
- /***/ }),
8775
-
8776
- /***/ "f8c9":
8777
- /***/ (function(module, exports, __webpack_require__) {
8778
-
8779
- var $ = __webpack_require__("23e7");
8780
- var global = __webpack_require__("da84");
8781
- var setToStringTag = __webpack_require__("d44e");
8782
-
8783
- $({ global: true }, { Reflect: {} });
8784
-
8785
- // Reflect[@@toStringTag] property
8786
- // https://tc39.es/ecma262/#sec-reflect-@@tostringtag
8787
- setToStringTag(global.Reflect, 'Reflect', true);
8788
-
8789
-
8790
7670
  /***/ }),
8791
7671
 
8792
7672
  /***/ "fb15":
@@ -8882,12 +7762,44 @@ function _classPrivateFieldGet(receiver, privateMap) {
8882
7762
  var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
8883
7763
  return _classApplyDescriptorGet(receiver, descriptor);
8884
7764
  }
8885
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
8886
- var esm_typeof = __webpack_require__("53ca");
7765
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
7766
+ var es_symbol = __webpack_require__("a4d3");
7767
+
7768
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
7769
+ var es_symbol_description = __webpack_require__("e01a");
8887
7770
 
8888
7771
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
8889
7772
  var es_object_to_string = __webpack_require__("d3b7");
8890
7773
 
7774
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
7775
+ var es_symbol_iterator = __webpack_require__("d28b");
7776
+
7777
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
7778
+ var es_array_iterator = __webpack_require__("e260");
7779
+
7780
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
7781
+ var es_string_iterator = __webpack_require__("3ca3");
7782
+
7783
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
7784
+ var web_dom_collections_iterator = __webpack_require__("ddb0");
7785
+
7786
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
7787
+
7788
+
7789
+
7790
+
7791
+
7792
+
7793
+
7794
+ function _typeof(obj) {
7795
+ "@babel/helpers - typeof";
7796
+
7797
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7798
+ return typeof obj;
7799
+ } : function (obj) {
7800
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7801
+ }, _typeof(obj);
7802
+ }
8891
7803
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
8892
7804
  var es_object_assign = __webpack_require__("cca6");
8893
7805
 
@@ -8906,18 +7818,9 @@ var web_dom_collections_for_each = __webpack_require__("159b");
8906
7818
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
8907
7819
  var es_object_keys = __webpack_require__("b64b");
8908
7820
 
8909
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
8910
- var es_array_iterator = __webpack_require__("e260");
8911
-
8912
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
8913
- var es_string_iterator = __webpack_require__("3ca3");
8914
-
8915
7821
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
8916
7822
  var es_weak_map = __webpack_require__("10d1");
8917
7823
 
8918
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
8919
- var web_dom_collections_iterator = __webpack_require__("ddb0");
8920
-
8921
7824
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
8922
7825
  var defineProperty = __webpack_require__("ade3");
8923
7826
 
@@ -9011,7 +7914,7 @@ var w = function w(d, e, t) {
9011
7914
  };
9012
7915
 
9013
7916
  var phoneClient_b = function b(d, e, t) {
9014
- return w(d, Object(esm_typeof["a" /* default */])(e) != "symbol" ? e + "" : e, t), t;
7917
+ return w(d, _typeof(e) != "symbol" ? e + "" : e, t), t;
9015
7918
  };
9016
7919
 
9017
7920
  var phoneClient_j = /*#__PURE__*/function () {
@@ -10127,7 +9030,7 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, docePr
10127
9030
 
10128
9031
  }; // 判断videoConfig是否为JSON对象
10129
9032
 
10130
- if (videoConfig && Object(esm_typeof["a" /* default */])(videoConfig) === 'object' && Object.prototype.toString.call(videoConfig) === '[object Object]') {
9033
+ if (videoConfig && _typeof(videoConfig) === 'object' && Object.prototype.toString.call(videoConfig) === '[object Object]') {
10131
9034
  videoConfigdefault = Object.assign(videoConfigdefault, videoConfig);
10132
9035
  }
10133
9036