videomail-client 11.4.13 → 11.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/umd/index.js CHANGED
@@ -5,16 +5,16 @@
5
5
  else root["VideomailClient"] = factory();
6
6
  })(globalThis, ()=>(()=>{
7
7
  var __webpack_modules__ = {
8
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl": function(module1, __webpack_exports__, __webpack_require__) {
8
+ "./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl": function(module1, __webpack_exports__, __webpack_require__) {
9
9
  "use strict";
10
10
  __webpack_require__.d(__webpack_exports__, {
11
11
  A: ()=>__WEBPACK_DEFAULT_EXPORT__
12
12
  });
13
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
14
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
15
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
16
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
17
- var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
13
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
14
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
15
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
16
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
17
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
18
18
  ___CSS_LOADER_EXPORT___.push([
19
19
  module1.id,
20
20
  `@keyframes blink {
@@ -4391,6 +4391,11 @@
4391
4391
  var implementation = __webpack_require__("./node_modules/function-bind/implementation.js");
4392
4392
  module1.exports = Function.prototype.bind || implementation;
4393
4393
  },
4394
+ "./node_modules/generator-function/index.js": function(module1) {
4395
+ "use strict";
4396
+ const cached = (function*() {}).constructor;
4397
+ module1.exports = ()=>cached;
4398
+ },
4394
4399
  "./node_modules/get-intrinsic/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
4395
4400
  "use strict";
4396
4401
  var undefined;
@@ -5198,13 +5203,7 @@
5198
5203
  var getProto = __webpack_require__("./node_modules/get-proto/index.js");
5199
5204
  var toStr = callBound('Object.prototype.toString');
5200
5205
  var fnToStr = callBound('Function.prototype.toString');
5201
- var getGeneratorFunc = function() {
5202
- if (!hasToStringTag) return false;
5203
- try {
5204
- return Function('return function*() {}')();
5205
- } catch (e) {}
5206
- };
5207
- var GeneratorFunction;
5206
+ var getGeneratorFunction = __webpack_require__("./node_modules/generator-function/index.js");
5208
5207
  module1.exports = function(fn) {
5209
5208
  if ('function' != typeof fn) return false;
5210
5209
  if (isFnRegex(fnToStr(fn))) return true;
@@ -5213,11 +5212,8 @@
5213
5212
  return '[object GeneratorFunction]' === str;
5214
5213
  }
5215
5214
  if (!getProto) return false;
5216
- if (void 0 === GeneratorFunction) {
5217
- var generatorFunc = getGeneratorFunc();
5218
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
5219
- }
5220
- return getProto(fn) === GeneratorFunction;
5215
+ var GeneratorFunction = getGeneratorFunction();
5216
+ return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
5221
5217
  };
5222
5218
  },
5223
5219
  "./node_modules/is-power-of-two/index.js": function(module1) {
@@ -6010,15 +6006,17 @@
6010
6006
  parseArrays: true,
6011
6007
  plainObjects: false,
6012
6008
  strictDepth: false,
6013
- strictNullHandling: false
6009
+ strictNullHandling: false,
6010
+ throwOnLimitExceeded: false
6014
6011
  };
6015
6012
  var interpretNumericEntities = function(str) {
6016
6013
  return str.replace(/&#(\d+);/g, function($0, numberStr) {
6017
6014
  return String.fromCharCode(parseInt(numberStr, 10));
6018
6015
  });
6019
6016
  };
6020
- var parseArrayValue = function(val, options) {
6017
+ var parseArrayValue = function(val, options, currentArrayLength) {
6021
6018
  if (val && 'string' == typeof val && options.comma && val.indexOf(',') > -1) return val.split(',');
6019
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6022
6020
  return val;
6023
6021
  };
6024
6022
  var isoSentinel = 'utf8=%26%2310003%3B';
@@ -6030,7 +6028,8 @@
6030
6028
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
6031
6029
  cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
6032
6030
  var limit = options.parameterLimit === 1 / 0 ? void 0 : options.parameterLimit;
6033
- var parts = cleanStr.split(options.delimiter, limit);
6031
+ var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
6032
+ if (options.throwOnLimitExceeded && parts.length > limit) throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (1 === limit ? '' : 's') + ' allowed.');
6034
6033
  var skipIndex = -1;
6035
6034
  var i;
6036
6035
  var charset = options.charset;
@@ -6046,17 +6045,18 @@
6046
6045
  var part = parts[i];
6047
6046
  var bracketEqualsPos = part.indexOf(']=');
6048
6047
  var pos = -1 === bracketEqualsPos ? part.indexOf('=') : bracketEqualsPos + 1;
6049
- var key, val;
6048
+ var key;
6049
+ var val;
6050
6050
  if (-1 === pos) {
6051
6051
  key = options.decoder(part, defaults.decoder, charset, 'key');
6052
6052
  val = options.strictNullHandling ? null : '';
6053
6053
  } else {
6054
6054
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
6055
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function(encodedVal) {
6055
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
6056
6056
  return options.decoder(encodedVal, defaults.decoder, charset, 'value');
6057
6057
  });
6058
6058
  }
6059
- if (val && options.interpretNumericEntities && 'iso-8859-1' === charset) val = interpretNumericEntities(val);
6059
+ if (val && options.interpretNumericEntities && 'iso-8859-1' === charset) val = interpretNumericEntities(String(val));
6060
6060
  if (part.indexOf('[]=') > -1) val = isArray(val) ? [
6061
6061
  val
6062
6062
  ] : val;
@@ -6067,13 +6067,20 @@
6067
6067
  return obj;
6068
6068
  };
6069
6069
  var parseObject = function(chain, val, options, valuesParsed) {
6070
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
6070
+ var currentArrayLength = 0;
6071
+ if (chain.length > 0 && '[]' === chain[chain.length - 1]) {
6072
+ var parentKey = chain.slice(0, -1).join('');
6073
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
6074
+ }
6075
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
6071
6076
  for(var i = chain.length - 1; i >= 0; --i){
6072
6077
  var obj;
6073
6078
  var root = chain[i];
6074
- if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : [].concat(leaf);
6079
+ if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf);
6075
6080
  else {
6076
- obj = options.plainObjects ? Object.create(null) : {};
6081
+ obj = options.plainObjects ? {
6082
+ __proto__: null
6083
+ } : {};
6077
6084
  var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root;
6078
6085
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
6079
6086
  var index = parseInt(decodedRoot, 10);
@@ -6124,6 +6131,7 @@
6124
6131
  if (void 0 !== opts.decodeDotInKeys && 'boolean' != typeof opts.decodeDotInKeys) throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
6125
6132
  if (null !== opts.decoder && void 0 !== opts.decoder && 'function' != typeof opts.decoder) throw new TypeError('Decoder has to be a function.');
6126
6133
  if (void 0 !== opts.charset && 'utf-8' !== opts.charset && 'iso-8859-1' !== opts.charset) throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
6134
+ if (void 0 !== opts.throwOnLimitExceeded && 'boolean' != typeof opts.throwOnLimitExceeded) throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
6127
6135
  var charset = void 0 === opts.charset ? defaults.charset : opts.charset;
6128
6136
  var duplicates = void 0 === opts.duplicates ? defaults.duplicates : opts.duplicates;
6129
6137
  if ('combine' !== duplicates && 'first' !== duplicates && 'last' !== duplicates) throw new TypeError('The duplicates option must be either combine, first, or last');
@@ -6148,14 +6156,19 @@
6148
6156
  parseArrays: false !== opts.parseArrays,
6149
6157
  plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects,
6150
6158
  strictDepth: 'boolean' == typeof opts.strictDepth ? !!opts.strictDepth : defaults.strictDepth,
6151
- strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling
6159
+ strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling,
6160
+ throwOnLimitExceeded: 'boolean' == typeof opts.throwOnLimitExceeded ? opts.throwOnLimitExceeded : false
6152
6161
  };
6153
6162
  };
6154
6163
  module1.exports = function(str, opts) {
6155
6164
  var options = normalizeParseOptions(opts);
6156
- if ('' === str || null == str) return options.plainObjects ? Object.create(null) : {};
6165
+ if ('' === str || null == str) return options.plainObjects ? {
6166
+ __proto__: null
6167
+ } : {};
6157
6168
  var tempObj = 'string' == typeof str ? parseValues(str, options) : str;
6158
- var obj = options.plainObjects ? Object.create(null) : {};
6169
+ var obj = options.plainObjects ? {
6170
+ __proto__: null
6171
+ } : {};
6159
6172
  var keys = Object.keys(tempObj);
6160
6173
  for(var i = 0; i < keys.length; ++i){
6161
6174
  var key = keys[i];
@@ -6200,11 +6213,13 @@
6200
6213
  arrayFormat: 'indices',
6201
6214
  charset: 'utf-8',
6202
6215
  charsetSentinel: false,
6216
+ commaRoundTrip: false,
6203
6217
  delimiter: '&',
6204
6218
  encode: true,
6205
6219
  encodeDotInKeys: false,
6206
6220
  encoder: utils.encode,
6207
6221
  encodeValuesOnly: false,
6222
+ filter: void 0,
6208
6223
  format: defaultFormat,
6209
6224
  formatter: formats.formatters[defaultFormat],
6210
6225
  indices: false,
@@ -6266,14 +6281,14 @@
6266
6281
  var keys = Object.keys(obj);
6267
6282
  objKeys = sort ? keys.sort(sort) : keys;
6268
6283
  }
6269
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
6284
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
6270
6285
  var adjustedPrefix = commaRoundTrip && isArray(obj) && 1 === obj.length ? encodedPrefix + '[]' : encodedPrefix;
6271
6286
  if (allowEmptyArrays && isArray(obj) && 0 === obj.length) return adjustedPrefix + '[]';
6272
6287
  for(var j = 0; j < objKeys.length; ++j){
6273
6288
  var key = objKeys[j];
6274
- var value = 'object' == typeof key && void 0 !== key.value ? key.value : obj[key];
6289
+ var value = 'object' == typeof key && key && void 0 !== key.value ? key.value : obj[key];
6275
6290
  if (!skipNulls || null !== value) {
6276
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
6291
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
6277
6292
  var keyPrefix = isArray(obj) ? 'function' == typeof generateArrayPrefix ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
6278
6293
  sideChannel.set(object, step);
6279
6294
  var valueSideChannel = getSideChannel();
@@ -6309,7 +6324,7 @@
6309
6324
  arrayFormat: arrayFormat,
6310
6325
  charset: charset,
6311
6326
  charsetSentinel: 'boolean' == typeof opts.charsetSentinel ? opts.charsetSentinel : defaults.charsetSentinel,
6312
- commaRoundTrip: opts.commaRoundTrip,
6327
+ commaRoundTrip: !!opts.commaRoundTrip,
6313
6328
  delimiter: void 0 === opts.delimiter ? defaults.delimiter : opts.delimiter,
6314
6329
  encode: 'boolean' == typeof opts.encode ? opts.encode : defaults.encode,
6315
6330
  encodeDotInKeys: 'boolean' == typeof opts.encodeDotInKeys ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
@@ -6345,7 +6360,8 @@
6345
6360
  var sideChannel = getSideChannel();
6346
6361
  for(var i = 0; i < objKeys.length; ++i){
6347
6362
  var key = objKeys[i];
6348
- if (!options.skipNulls || null !== obj[key]) pushToArray(keys, stringify(obj[key], key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
6363
+ var value = obj[key];
6364
+ if (!options.skipNulls || null !== value) pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
6349
6365
  }
6350
6366
  var joined = keys.join(options.delimiter);
6351
6367
  var prefix = true === options.addQueryPrefix ? '?' : '';
@@ -6376,13 +6392,15 @@
6376
6392
  }
6377
6393
  };
6378
6394
  var arrayToObject = function(source, options) {
6379
- var obj = options && options.plainObjects ? Object.create(null) : {};
6395
+ var obj = options && options.plainObjects ? {
6396
+ __proto__: null
6397
+ } : {};
6380
6398
  for(var i = 0; i < source.length; ++i)if (void 0 !== source[i]) obj[i] = source[i];
6381
6399
  return obj;
6382
6400
  };
6383
6401
  var merge = function merge(target, source, options) {
6384
6402
  if (!source) return target;
6385
- if ('object' != typeof source) {
6403
+ if ('object' != typeof source && 'function' != typeof source) {
6386
6404
  if (isArray(target)) target.push(source);
6387
6405
  else if (!target || 'object' != typeof target) return [
6388
6406
  target,
@@ -6419,7 +6437,7 @@
6419
6437
  return acc;
6420
6438
  }, target);
6421
6439
  };
6422
- var decode = function(str, decoder, charset) {
6440
+ var decode = function(str, defaultDecoder, charset) {
6423
6441
  var strWithoutPlus = str.replace(/\+/g, ' ');
6424
6442
  if ('iso-8859-1' === charset) return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
6425
6443
  try {
@@ -10187,7 +10205,7 @@
10187
10205
  "?aa23": function() {},
10188
10206
  "?9936": function() {},
10189
10207
  "?5f55": function() {},
10190
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module1) {
10208
+ "./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module1) {
10191
10209
  "use strict";
10192
10210
  module1.exports = function(cssWithMappingToString) {
10193
10211
  var list = [];
@@ -10241,13 +10259,13 @@
10241
10259
  return list;
10242
10260
  };
10243
10261
  },
10244
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module1) {
10262
+ "./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module1) {
10245
10263
  "use strict";
10246
10264
  module1.exports = function(i) {
10247
10265
  return i[1];
10248
10266
  };
10249
10267
  },
10250
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module1) {
10268
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module1) {
10251
10269
  "use strict";
10252
10270
  var stylesInDOM = [];
10253
10271
  function getIndexByIdentifier(identifier) {
@@ -10326,7 +10344,7 @@
10326
10344
  };
10327
10345
  };
10328
10346
  },
10329
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module1) {
10347
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module1) {
10330
10348
  "use strict";
10331
10349
  var memo = {};
10332
10350
  function getTarget(target) {
@@ -10348,7 +10366,7 @@
10348
10366
  }
10349
10367
  module1.exports = insertBySelector;
10350
10368
  },
10351
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module1) {
10369
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module1) {
10352
10370
  "use strict";
10353
10371
  function insertStyleElement(options) {
10354
10372
  var element = document.createElement("style");
@@ -10358,7 +10376,7 @@
10358
10376
  }
10359
10377
  module1.exports = insertStyleElement;
10360
10378
  },
10361
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module1, __unused_webpack_exports, __webpack_require__) {
10379
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module1, __unused_webpack_exports, __webpack_require__) {
10362
10380
  "use strict";
10363
10381
  function setAttributesWithoutAttributes(styleElement) {
10364
10382
  var nonce = __webpack_require__.nc;
@@ -10366,7 +10384,7 @@
10366
10384
  }
10367
10385
  module1.exports = setAttributesWithoutAttributes;
10368
10386
  },
10369
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module1) {
10387
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module1) {
10370
10388
  "use strict";
10371
10389
  function apply(styleElement, options, obj) {
10372
10390
  var css = "";
@@ -10403,7 +10421,7 @@
10403
10421
  }
10404
10422
  module1.exports = domAPI;
10405
10423
  },
10406
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module1) {
10424
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module1) {
10407
10425
  "use strict";
10408
10426
  function styleTagTransform(css, styleElement) {
10409
10427
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
@@ -10648,11 +10666,16 @@
10648
10666
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10649
10667
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10650
10668
  var package_namespaceObject = {
10651
- rE: "11.4.13"
10669
+ rE: "11.5.1"
10652
10670
  };
10653
10671
  var defined = __webpack_require__("./node_modules/defined/index.js");
10654
10672
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
10655
- var LIBVERSION = '2.0.5', UA_MAX_LENGTH = 500, USER_AGENT = 'user-agent', EMPTY = '', UNKNOWN = '?', FUNC_TYPE = 'function', UNDEF_TYPE = 'undefined', OBJ_TYPE = 'object', STR_TYPE = 'string', UA_BROWSER = 'browser', UA_CPU = 'cpu', UA_DEVICE = 'device', UA_ENGINE = 'engine', UA_OS = 'os', UA_RESULT = 'result', NAME = 'name', TYPE = 'type', VENDOR = 'vendor', VERSION = 'version', ARCHITECTURE = 'architecture', MAJOR = 'major', MODEL = 'model', CONSOLE = 'console', MOBILE = 'mobile', TABLET = 'tablet', SMARTTV = 'smarttv', WEARABLE = 'wearable', XR = 'xr', EMBEDDED = 'embedded', INAPP = 'inapp', BRANDS = 'brands', FORMFACTORS = 'formFactors', FULLVERLIST = 'fullVersionList', PLATFORM = 'platform', PLATFORMVER = 'platformVersion', BITNESS = 'bitness', CH_HEADER = 'sec-ch-ua', CH_HEADER_FULL_VER_LIST = CH_HEADER + '-full-version-list', CH_HEADER_ARCH = CH_HEADER + '-arch', CH_HEADER_BITNESS = CH_HEADER + '-' + BITNESS, CH_HEADER_FORM_FACTORS = CH_HEADER + '-form-factors', CH_HEADER_MOBILE = CH_HEADER + '-' + MOBILE, CH_HEADER_MODEL = CH_HEADER + '-' + MODEL, CH_HEADER_PLATFORM = CH_HEADER + '-' + PLATFORM, CH_HEADER_PLATFORM_VER = CH_HEADER_PLATFORM + '-version', CH_ALL_VALUES = [
10673
+ var LIBVERSION = '2.0.6', UA_MAX_LENGTH = 500, USER_AGENT = 'user-agent', EMPTY = '', UNKNOWN = '?', TYPEOF = {
10674
+ FUNCTION: 'function',
10675
+ OBJECT: 'object',
10676
+ STRING: 'string',
10677
+ UNDEFINED: 'undefined'
10678
+ }, BROWSER = 'browser', CPU = 'cpu', DEVICE = 'device', ENGINE = 'engine', OS = 'os', RESULT = 'result', NAME = 'name', TYPE = 'type', VENDOR = 'vendor', VERSION = 'version', ARCHITECTURE = 'architecture', MAJOR = 'major', MODEL = 'model', CONSOLE = 'console', MOBILE = 'mobile', TABLET = 'tablet', SMARTTV = 'smarttv', WEARABLE = 'wearable', XR = 'xr', EMBEDDED = 'embedded', INAPP = 'inapp', BRANDS = 'brands', FORMFACTORS = 'formFactors', FULLVERLIST = 'fullVersionList', PLATFORM = 'platform', PLATFORMVER = 'platformVersion', BITNESS = 'bitness', CH = 'sec-ch-ua', CH_FULL_VER_LIST = CH + '-full-version-list', CH_ARCH = CH + '-arch', CH_BITNESS = CH + '-' + BITNESS, CH_FORM_FACTORS = CH + '-form-factors', CH_MOBILE = CH + '-' + MOBILE, CH_MODEL = CH + '-' + MODEL, CH_PLATFORM = CH + '-' + PLATFORM, CH_PLATFORM_VER = CH_PLATFORM + '-version', CH_ALL_VALUES = [
10656
10679
  BRANDS,
10657
10680
  FULLVERLIST,
10658
10681
  MOBILE,
@@ -10663,7 +10686,7 @@
10663
10686
  FORMFACTORS,
10664
10687
  BITNESS
10665
10688
  ], AMAZON = 'Amazon', APPLE = 'Apple', ASUS = 'ASUS', BLACKBERRY = 'BlackBerry', GOOGLE = 'Google', HUAWEI = 'Huawei', LENOVO = 'Lenovo', HONOR = 'Honor', LG = 'LG', MICROSOFT = 'Microsoft', MOTOROLA = 'Motorola', NVIDIA = 'Nvidia', ONEPLUS = 'OnePlus', OPPO = 'OPPO', SAMSUNG = 'Samsung', SHARP = 'Sharp', SONY = 'Sony', XIAOMI = 'Xiaomi', ZEBRA = 'Zebra', CHROME = 'Chrome', CHROMIUM = 'Chromium', CHROMECAST = 'Chromecast', EDGE = 'Edge', FIREFOX = 'Firefox', OPERA = 'Opera', FACEBOOK = 'Facebook', SOGOU = 'Sogou', PREFIX_MOBILE = 'Mobile ', SUFFIX_BROWSER = ' Browser', WINDOWS = 'Windows';
10666
- var isWindow = typeof window !== UNDEF_TYPE, NAVIGATOR = isWindow && window.navigator ? window.navigator : void 0, NAVIGATOR_UADATA = NAVIGATOR && NAVIGATOR.userAgentData ? NAVIGATOR.userAgentData : void 0;
10689
+ var isWindow = typeof window !== TYPEOF.UNDEFINED, NAVIGATOR = isWindow && window.navigator ? window.navigator : void 0, NAVIGATOR_UADATA = NAVIGATOR && NAVIGATOR.userAgentData ? NAVIGATOR.userAgentData : void 0;
10667
10690
  var extend = function(defaultRgx, extensions) {
10668
10691
  var mergedRgx = {};
10669
10692
  var extraRgx = extensions;
@@ -10678,7 +10701,7 @@
10678
10701
  for(var i = 0; i < arr.length; i++)enums[arr[i].toUpperCase()] = arr[i];
10679
10702
  return enums;
10680
10703
  }, has = function(str1, str2) {
10681
- if (typeof str1 === OBJ_TYPE && str1.length > 0) {
10704
+ if (typeof str1 === TYPEOF.OBJECT && str1.length > 0) {
10682
10705
  for(var i in str1)if (lowerize(str2) == lowerize(str1[i])) return true;
10683
10706
  return false;
10684
10707
  }
@@ -10686,7 +10709,7 @@
10686
10709
  }, isExtensions = function(obj, deep) {
10687
10710
  for(var prop in obj)return /^(browser|cpu|device|engine|os)$/.test(prop) || (deep ? isExtensions(obj[prop]) : false);
10688
10711
  }, isString = function(val) {
10689
- return typeof val === STR_TYPE;
10712
+ return typeof val === TYPEOF.STRING;
10690
10713
  }, itemListToArray = function(header) {
10691
10714
  if (!header) return;
10692
10715
  var arr = [];
@@ -10706,7 +10729,7 @@
10706
10729
  }, setProps = function(arr) {
10707
10730
  for(var i in arr)if (arr.hasOwnProperty(i)) {
10708
10731
  var propName = arr[i];
10709
- if (typeof propName == OBJ_TYPE && 2 == propName.length) this[propName[0]] = propName[1];
10732
+ if (typeof propName == TYPEOF.OBJECT && 2 == propName.length) this[propName[0]] = propName[1];
10710
10733
  else this[propName] = void 0;
10711
10734
  }
10712
10735
  return this;
@@ -10715,10 +10738,8 @@
10715
10738
  }, stripQuotes = function(str) {
10716
10739
  return strip(/\\?\"/g, str);
10717
10740
  }, ua_parser_trim = function(str, len) {
10718
- if (isString(str)) {
10719
- str = strip(/^\s\s*/, str);
10720
- return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
10721
- }
10741
+ str = strip(/^\s\s*/, String(str));
10742
+ return typeof len === TYPEOF.UNDEFINED ? str : str.substring(0, len);
10722
10743
  };
10723
10744
  var rgxMapper = function(ua, arrays) {
10724
10745
  if (!ua || !arrays) return;
@@ -10732,10 +10753,10 @@
10732
10753
  if (!!matches) for(p = 0; p < props.length; p++){
10733
10754
  match = matches[++k];
10734
10755
  q = props[p];
10735
- if (typeof q === OBJ_TYPE && q.length > 0) {
10736
- if (2 === q.length) if (typeof q[1] == FUNC_TYPE) this[q[0]] = q[1].call(this, match);
10756
+ if (typeof q === TYPEOF.OBJECT && q.length > 0) {
10757
+ if (2 === q.length) if (typeof q[1] == TYPEOF.FUNCTION) this[q[0]] = q[1].call(this, match);
10737
10758
  else this[q[0]] = q[1];
10738
- else if (q.length >= 3) if (typeof q[1] !== FUNC_TYPE || q[1].exec && q[1].test) {
10759
+ else if (q.length >= 3) if (typeof q[1] !== TYPEOF.FUNCTION || q[1].exec && q[1].test) {
10739
10760
  if (3 == q.length) this[q[0]] = match ? match.replace(q[1], q[2]) : void 0;
10740
10761
  else if (4 == q.length) this[q[0]] = match ? q[3].call(this, match.replace(q[1], q[2])) : void 0;
10741
10762
  else if (q.length > 4) this[q[0]] = match ? q[3].apply(this, [
@@ -10749,7 +10770,7 @@
10749
10770
  i += 2;
10750
10771
  }
10751
10772
  }, strMapper = function(str, map) {
10752
- for(var i in map)if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
10773
+ for(var i in map)if (typeof map[i] === TYPEOF.OBJECT && map[i].length > 0) {
10753
10774
  for(var j = 0; j < map[i].length; j++)if (has(map[i][j], str)) return i === UNKNOWN ? void 0 : i;
10754
10775
  } else if (has(map[i], str)) return i === UNKNOWN ? void 0 : i;
10755
10776
  return map.hasOwnProperty('*') ? map['*'] : str;
@@ -10900,8 +10921,9 @@
10900
10921
  /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,
10901
10922
  /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,
10902
10923
  /(?:ms|\()(ie) ([\w\.]+)/i,
10903
- /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,
10904
- /(heytap|ovi|115|surf)browser\/([\d\.]+)/i,
10924
+ /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,
10925
+ /(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,
10926
+ /(qwant)(?:ios|mobile)\/([\d\.]+)/i,
10905
10927
  /(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i
10906
10928
  ],
10907
10929
  [
@@ -11178,6 +11200,7 @@
11178
11200
  /\b(line)\/([\w\.]+)\/iab/i,
11179
11201
  /(alipay)client\/([\w\.]+)/i,
11180
11202
  /(twitter)(?:and| f.+e\/([\w\.]+))/i,
11203
+ /(bing)(?:web|sapphire)\/([\w\.]+)/i,
11181
11204
  /(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i
11182
11205
  ],
11183
11206
  [
@@ -11389,9 +11412,9 @@
11389
11412
  /ekiohf.+(flow)\/([\w\.]+)/i,
11390
11413
  /(swiftfox)/i,
11391
11414
  /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,
11392
- /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,
11415
+ /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,
11393
11416
  /(firefox)\/([\w\.]+)/i,
11394
- /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,
11417
+ /(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,
11395
11418
  /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,
11396
11419
  /\b(links) \(([\w\.]+)/i
11397
11420
  ],
@@ -11484,6 +11507,15 @@
11484
11507
  lowerize
11485
11508
  ]
11486
11509
  ],
11510
+ [
11511
+ /mc680.0/i
11512
+ ],
11513
+ [
11514
+ [
11515
+ ARCHITECTURE,
11516
+ '68k'
11517
+ ]
11518
+ ],
11487
11519
  [
11488
11520
  /winnt.+\[axp/i
11489
11521
  ],
@@ -11526,7 +11558,7 @@
11526
11558
  ]
11527
11559
  ],
11528
11560
  [
11529
- /(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
11561
+ /(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i
11530
11562
  ],
11531
11563
  [
11532
11564
  MODEL,
@@ -11540,9 +11572,8 @@
11540
11572
  ]
11541
11573
  ],
11542
11574
  [
11543
- /\((ipad);[-\w\),; ]+apple/i,
11544
- /applecoremedia\/[\w\.]+ \((ipad)/i,
11545
- /\b(ipad)\d\d?,\d\d?[;\]].+ios/i
11575
+ /\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,
11576
+ /\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i
11546
11577
  ],
11547
11578
  [
11548
11579
  MODEL,
@@ -11622,8 +11653,8 @@
11622
11653
  ]
11623
11654
  ],
11624
11655
  [
11625
- /(?:huawei)([-\w ]+)[;\)]/i,
11626
- /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i
11656
+ /(?:huawei) ?([-\w ]+)[;\)]/i,
11657
+ /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i
11627
11658
  ],
11628
11659
  [
11629
11660
  MODEL,
@@ -11638,7 +11669,7 @@
11638
11669
  ],
11639
11670
  [
11640
11671
  /oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,
11641
- /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i
11672
+ /\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i
11642
11673
  ],
11643
11674
  [
11644
11675
  [
@@ -11661,7 +11692,7 @@
11661
11692
  /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,
11662
11693
  /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,
11663
11694
  /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,
11664
- /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,
11695
+ /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,
11665
11696
  / ([\w ]+) miui\/v?\d/i
11666
11697
  ],
11667
11698
  [
@@ -11879,7 +11910,7 @@
11879
11910
  ],
11880
11911
  [
11881
11912
  /(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,
11882
- /nokia[-_ ]?(([-\w\. ]*))/i
11913
+ /nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i
11883
11914
  ],
11884
11915
  [
11885
11916
  [
@@ -12010,7 +12041,7 @@
12010
12041
  ],
12011
12042
  [
12012
12043
  /\b((?:bb[a-f]|st[hv])100-\d)/i,
12013
- /\(bb10; (\w+)/i
12044
+ /(?:blackberry|\(bb10;) (\w+)/i
12014
12045
  ],
12015
12046
  [
12016
12047
  MODEL,
@@ -12291,10 +12322,11 @@
12291
12322
  ],
12292
12323
  [
12293
12324
  /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,
12294
- /; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,
12325
+ /; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,
12295
12326
  /(hp) ([\w ]+\w)/i,
12296
12327
  /(microsoft); (lumia[\w ]+)/i,
12297
12328
  /(oppo) ?([\w ]+) bui/i,
12329
+ /(hisense) ([ehv][\w ]+)\)/i,
12298
12330
  /droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i
12299
12331
  ],
12300
12332
  [
@@ -12967,7 +12999,7 @@
12967
12999
  ]
12968
13000
  ],
12969
13001
  [
12970
- /droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i
13002
+ /droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i
12971
13003
  ],
12972
13004
  [
12973
13005
  MODEL,
@@ -13117,7 +13149,7 @@
13117
13149
  ],
13118
13150
  [
13119
13151
  /[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,
13120
- /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,
13152
+ /(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w\.]+)/i,
13121
13153
  /cfnetwork\/.+darwin/i
13122
13154
  ],
13123
13155
  [
@@ -13360,7 +13392,7 @@
13360
13392
  };
13361
13393
  setProps.call(props.init, [
13362
13394
  [
13363
- UA_BROWSER,
13395
+ BROWSER,
13364
13396
  [
13365
13397
  NAME,
13366
13398
  VERSION,
@@ -13369,13 +13401,13 @@
13369
13401
  ]
13370
13402
  ],
13371
13403
  [
13372
- UA_CPU,
13404
+ CPU,
13373
13405
  [
13374
13406
  ARCHITECTURE
13375
13407
  ]
13376
13408
  ],
13377
13409
  [
13378
- UA_DEVICE,
13410
+ DEVICE,
13379
13411
  [
13380
13412
  TYPE,
13381
13413
  MODEL,
@@ -13383,14 +13415,14 @@
13383
13415
  ]
13384
13416
  ],
13385
13417
  [
13386
- UA_ENGINE,
13418
+ ENGINE,
13387
13419
  [
13388
13420
  NAME,
13389
13421
  VERSION
13390
13422
  ]
13391
13423
  ],
13392
13424
  [
13393
- UA_OS,
13425
+ OS,
13394
13426
  [
13395
13427
  NAME,
13396
13428
  VERSION
@@ -13399,20 +13431,20 @@
13399
13431
  ]);
13400
13432
  setProps.call(props.isIgnore, [
13401
13433
  [
13402
- UA_BROWSER,
13434
+ BROWSER,
13403
13435
  [
13404
13436
  VERSION,
13405
13437
  MAJOR
13406
13438
  ]
13407
13439
  ],
13408
13440
  [
13409
- UA_ENGINE,
13441
+ ENGINE,
13410
13442
  [
13411
13443
  VERSION
13412
13444
  ]
13413
13445
  ],
13414
13446
  [
13415
- UA_OS,
13447
+ OS,
13416
13448
  [
13417
13449
  VERSION
13418
13450
  ]
@@ -13420,44 +13452,44 @@
13420
13452
  ]);
13421
13453
  setProps.call(props.isIgnoreRgx, [
13422
13454
  [
13423
- UA_BROWSER,
13455
+ BROWSER,
13424
13456
  / ?browser$/i
13425
13457
  ],
13426
13458
  [
13427
- UA_OS,
13459
+ OS,
13428
13460
  / ?os$/i
13429
13461
  ]
13430
13462
  ]);
13431
13463
  setProps.call(props.toString, [
13432
13464
  [
13433
- UA_BROWSER,
13465
+ BROWSER,
13434
13466
  [
13435
13467
  NAME,
13436
13468
  VERSION
13437
13469
  ]
13438
13470
  ],
13439
13471
  [
13440
- UA_CPU,
13472
+ CPU,
13441
13473
  [
13442
13474
  ARCHITECTURE
13443
13475
  ]
13444
13476
  ],
13445
13477
  [
13446
- UA_DEVICE,
13478
+ DEVICE,
13447
13479
  [
13448
13480
  VENDOR,
13449
13481
  MODEL
13450
13482
  ]
13451
13483
  ],
13452
13484
  [
13453
- UA_ENGINE,
13485
+ ENGINE,
13454
13486
  [
13455
13487
  NAME,
13456
13488
  VERSION
13457
13489
  ]
13458
13490
  ],
13459
13491
  [
13460
- UA_OS,
13492
+ OS,
13461
13493
  [
13462
13494
  NAME,
13463
13495
  VERSION
@@ -13483,13 +13515,13 @@
13483
13515
  IData.prototype.withFeatureCheck = function() {
13484
13516
  return item.detectFeature().get();
13485
13517
  };
13486
- if (itemType != UA_RESULT) {
13518
+ if (itemType != RESULT) {
13487
13519
  IData.prototype.is = function(strToCheck) {
13488
13520
  var is = false;
13489
13521
  for(var i in this)if (this.hasOwnProperty(i) && !has(is_ignoreProps, i) && lowerize(is_ignoreRgx ? strip(is_ignoreRgx, this[i]) : this[i]) == lowerize(is_ignoreRgx ? strip(is_ignoreRgx, strToCheck) : strToCheck)) {
13490
13522
  is = true;
13491
- if (strToCheck != UNDEF_TYPE) break;
13492
- } else if (strToCheck == UNDEF_TYPE && is) {
13523
+ if (strToCheck != TYPEOF.UNDEFINED) break;
13524
+ } else if (strToCheck == TYPEOF.UNDEFINED && is) {
13493
13525
  is = !is;
13494
13526
  break;
13495
13527
  }
@@ -13497,8 +13529,8 @@
13497
13529
  };
13498
13530
  IData.prototype.toString = function() {
13499
13531
  var str = EMPTY;
13500
- for(var i in toString_props)if (typeof this[toString_props[i]] !== UNDEF_TYPE) str += (str ? ' ' : EMPTY) + this[toString_props[i]];
13501
- return str || UNDEF_TYPE;
13532
+ for(var i in toString_props)if (typeof this[toString_props[i]] !== TYPEOF.UNDEFINED) str += (str ? ' ' : EMPTY) + this[toString_props[i]];
13533
+ return str || TYPEOF.UNDEFINED;
13502
13534
  };
13503
13535
  }
13504
13536
  if (!NAVIGATOR_UADATA) IData.prototype.then = function(cb) {
@@ -13522,42 +13554,42 @@
13522
13554
  if (isHttpUACH) setProps.call(this, [
13523
13555
  [
13524
13556
  BRANDS,
13525
- itemListToArray(uach[CH_HEADER])
13557
+ itemListToArray(uach[CH])
13526
13558
  ],
13527
13559
  [
13528
13560
  FULLVERLIST,
13529
- itemListToArray(uach[CH_HEADER_FULL_VER_LIST])
13561
+ itemListToArray(uach[CH_FULL_VER_LIST])
13530
13562
  ],
13531
13563
  [
13532
13564
  MOBILE,
13533
- /\?1/.test(uach[CH_HEADER_MOBILE])
13565
+ /\?1/.test(uach[CH_MOBILE])
13534
13566
  ],
13535
13567
  [
13536
13568
  MODEL,
13537
- stripQuotes(uach[CH_HEADER_MODEL])
13569
+ stripQuotes(uach[CH_MODEL])
13538
13570
  ],
13539
13571
  [
13540
13572
  PLATFORM,
13541
- stripQuotes(uach[CH_HEADER_PLATFORM])
13573
+ stripQuotes(uach[CH_PLATFORM])
13542
13574
  ],
13543
13575
  [
13544
13576
  PLATFORMVER,
13545
- stripQuotes(uach[CH_HEADER_PLATFORM_VER])
13577
+ stripQuotes(uach[CH_PLATFORM_VER])
13546
13578
  ],
13547
13579
  [
13548
13580
  ARCHITECTURE,
13549
- stripQuotes(uach[CH_HEADER_ARCH])
13581
+ stripQuotes(uach[CH_ARCH])
13550
13582
  ],
13551
13583
  [
13552
13584
  FORMFACTORS,
13553
- itemListToArray(uach[CH_HEADER_FORM_FACTORS])
13585
+ itemListToArray(uach[CH_FORM_FACTORS])
13554
13586
  ],
13555
13587
  [
13556
13588
  BITNESS,
13557
- stripQuotes(uach[CH_HEADER_BITNESS])
13589
+ stripQuotes(uach[CH_BITNESS])
13558
13590
  ]
13559
13591
  ]);
13560
- else for(var prop in uach)if (this.hasOwnProperty(prop) && typeof uach[prop] !== UNDEF_TYPE) this[prop] = uach[prop];
13592
+ else for(var prop in uach)if (this.hasOwnProperty(prop) && typeof uach[prop] !== TYPEOF.UNDEFINED) this[prop] = uach[prop];
13561
13593
  }
13562
13594
  function UAItem(itemType, ua, rgxMap, uaCH) {
13563
13595
  this.get = function(prop) {
@@ -13574,55 +13606,65 @@
13574
13606
  };
13575
13607
  this.detectFeature = function() {
13576
13608
  if (NAVIGATOR && NAVIGATOR.userAgent == this.ua) switch(this.itemType){
13577
- case UA_BROWSER:
13578
- if (NAVIGATOR.brave && typeof NAVIGATOR.brave.isBrave == FUNC_TYPE) this.set(NAME, 'Brave');
13609
+ case BROWSER:
13610
+ if (NAVIGATOR.brave && typeof NAVIGATOR.brave.isBrave == TYPEOF.FUNCTION) this.set(NAME, 'Brave');
13579
13611
  break;
13580
- case UA_DEVICE:
13612
+ case DEVICE:
13581
13613
  if (!this.get(TYPE) && NAVIGATOR_UADATA && NAVIGATOR_UADATA[MOBILE]) this.set(TYPE, MOBILE);
13582
- if ('Macintosh' == this.get(MODEL) && NAVIGATOR && typeof NAVIGATOR.standalone !== UNDEF_TYPE && NAVIGATOR.maxTouchPoints && NAVIGATOR.maxTouchPoints > 2) this.set(MODEL, 'iPad').set(TYPE, TABLET);
13614
+ if ('Macintosh' == this.get(MODEL) && NAVIGATOR && typeof NAVIGATOR.standalone !== TYPEOF.UNDEFINED && NAVIGATOR.maxTouchPoints && NAVIGATOR.maxTouchPoints > 2) this.set(MODEL, 'iPad').set(TYPE, TABLET);
13583
13615
  break;
13584
- case UA_OS:
13616
+ case OS:
13585
13617
  if (!this.get(NAME) && NAVIGATOR_UADATA && NAVIGATOR_UADATA[PLATFORM]) this.set(NAME, NAVIGATOR_UADATA[PLATFORM]);
13586
13618
  break;
13587
- case UA_RESULT:
13619
+ case RESULT:
13588
13620
  var data = this.data;
13589
13621
  var detect = function(itemType) {
13590
13622
  return data[itemType].getItem().detectFeature().get();
13591
13623
  };
13592
- this.set(UA_BROWSER, detect(UA_BROWSER)).set(UA_CPU, detect(UA_CPU)).set(UA_DEVICE, detect(UA_DEVICE)).set(UA_ENGINE, detect(UA_ENGINE)).set(UA_OS, detect(UA_OS));
13624
+ this.set(BROWSER, detect(BROWSER)).set(CPU, detect(CPU)).set(DEVICE, detect(DEVICE)).set(ENGINE, detect(ENGINE)).set(OS, detect(OS));
13593
13625
  }
13594
13626
  return this;
13595
13627
  };
13596
13628
  this.parseUA = function() {
13597
- if (this.itemType != UA_RESULT) rgxMapper.call(this.data, this.ua, this.rgxMap);
13598
- if (this.itemType == UA_BROWSER) this.set(MAJOR, majorize(this.get(VERSION)));
13629
+ if (this.itemType != RESULT) rgxMapper.call(this.data, this.ua, this.rgxMap);
13630
+ switch(this.itemType){
13631
+ case BROWSER:
13632
+ this.set(MAJOR, majorize(this.get(VERSION)));
13633
+ break;
13634
+ case OS:
13635
+ if ('iOS' == this.get(NAME) && '18.6' == this.get(VERSION)) {
13636
+ var realVersion = /\) Version\/([\d\.]+)/.exec(this.ua);
13637
+ if (realVersion && parseInt(realVersion[1].substring(0, 2), 10) >= 26) this.set(VERSION, realVersion[1]);
13638
+ }
13639
+ break;
13640
+ }
13599
13641
  return this;
13600
13642
  };
13601
13643
  this.parseCH = function() {
13602
13644
  var uaCH = this.uaCH, rgxMap = this.rgxMap;
13603
13645
  switch(this.itemType){
13604
- case UA_BROWSER:
13605
- case UA_ENGINE:
13646
+ case BROWSER:
13647
+ case ENGINE:
13606
13648
  var brands = uaCH[FULLVERLIST] || uaCH[BRANDS], prevName;
13607
13649
  if (brands) for(var i = 0; i < brands.length; i++){
13608
13650
  var brandName = brands[i].brand || brands[i], brandVersion = brands[i].version;
13609
- if (this.itemType == UA_BROWSER && !/not.a.brand/i.test(brandName) && (!prevName || /Chrom/.test(prevName) && brandName != CHROMIUM || prevName == EDGE && /WebView2/.test(brandName))) {
13651
+ if (this.itemType == BROWSER && !/not.a.brand/i.test(brandName) && (!prevName || /Chrom/.test(prevName) && brandName != CHROMIUM || prevName == EDGE && /WebView2/.test(brandName))) {
13610
13652
  brandName = strMapper(brandName, browserHintsMap);
13611
13653
  prevName = this.get(NAME);
13612
13654
  if (!(prevName && !/Chrom/.test(prevName) && /Chrom/.test(brandName))) this.set(NAME, brandName).set(VERSION, brandVersion).set(MAJOR, majorize(brandVersion));
13613
13655
  prevName = brandName;
13614
13656
  }
13615
- if (this.itemType == UA_ENGINE && brandName == CHROMIUM) this.set(VERSION, brandVersion);
13657
+ if (this.itemType == ENGINE && brandName == CHROMIUM) this.set(VERSION, brandVersion);
13616
13658
  }
13617
13659
  break;
13618
- case UA_CPU:
13660
+ case CPU:
13619
13661
  var archName = uaCH[ARCHITECTURE];
13620
13662
  if (archName) {
13621
13663
  if (archName && '64' == uaCH[BITNESS]) archName += '64';
13622
13664
  rgxMapper.call(this.data, archName + ';', rgxMap);
13623
13665
  }
13624
13666
  break;
13625
- case UA_DEVICE:
13667
+ case DEVICE:
13626
13668
  if (uaCH[MOBILE]) this.set(TYPE, MOBILE);
13627
13669
  if (uaCH[MODEL]) {
13628
13670
  this.set(MODEL, uaCH[MODEL]);
@@ -13642,7 +13684,7 @@
13642
13684
  this.set(TYPE, ff);
13643
13685
  }
13644
13686
  break;
13645
- case UA_OS:
13687
+ case OS:
13646
13688
  var osName = uaCH[PLATFORM];
13647
13689
  if (osName) {
13648
13690
  var osVersion = uaCH[PLATFORMVER];
@@ -13651,12 +13693,12 @@
13651
13693
  }
13652
13694
  if (this.get(NAME) == WINDOWS && 'Xbox' == uaCH[MODEL]) this.set(NAME, 'Xbox').set(VERSION, void 0);
13653
13695
  break;
13654
- case UA_RESULT:
13696
+ case RESULT:
13655
13697
  var data = this.data;
13656
13698
  var parse = function(itemType) {
13657
13699
  return data[itemType].getItem().setCH(uaCH).parseCH().get();
13658
13700
  };
13659
- this.set(UA_BROWSER, parse(UA_BROWSER)).set(UA_CPU, parse(UA_CPU)).set(UA_DEVICE, parse(UA_DEVICE)).set(UA_ENGINE, parse(UA_ENGINE)).set(UA_OS, parse(UA_OS));
13701
+ this.set(BROWSER, parse(BROWSER)).set(CPU, parse(CPU)).set(DEVICE, parse(DEVICE)).set(ENGINE, parse(ENGINE)).set(OS, parse(OS));
13660
13702
  }
13661
13703
  return this;
13662
13704
  };
@@ -13685,20 +13727,20 @@
13685
13727
  return this;
13686
13728
  }
13687
13729
  function UAParser(ua, extensions, headers) {
13688
- if (typeof ua === OBJ_TYPE) {
13730
+ if (typeof ua === TYPEOF.OBJECT) {
13689
13731
  if (isExtensions(ua, true)) {
13690
- if (typeof extensions === OBJ_TYPE) headers = extensions;
13732
+ if (typeof extensions === TYPEOF.OBJECT) headers = extensions;
13691
13733
  extensions = ua;
13692
13734
  } else {
13693
13735
  headers = ua;
13694
13736
  extensions = void 0;
13695
13737
  }
13696
13738
  ua = void 0;
13697
- } else if (typeof ua === STR_TYPE && !isExtensions(extensions, true)) {
13739
+ } else if (typeof ua === TYPEOF.STRING && !isExtensions(extensions, true)) {
13698
13740
  headers = extensions;
13699
13741
  extensions = void 0;
13700
13742
  }
13701
- if (headers) if (typeof headers.append === FUNC_TYPE) {
13743
+ if (headers) if (typeof headers.append === TYPEOF.FUNCTION) {
13702
13744
  var kv = {};
13703
13745
  headers.forEach(function(v, k) {
13704
13746
  kv[String(k).toLowerCase()] = v;
@@ -13710,9 +13752,9 @@
13710
13752
  headers = normalized;
13711
13753
  }
13712
13754
  if (!(this instanceof UAParser)) return new UAParser(ua, extensions, headers).getResult();
13713
- var userAgent = typeof ua === STR_TYPE ? ua : headers && headers[USER_AGENT] ? headers[USER_AGENT] : NAVIGATOR && NAVIGATOR.userAgent ? NAVIGATOR.userAgent : EMPTY, httpUACH = new UACHData(headers, true), regexMap = extensions ? extend(defaultRegexes, extensions) : defaultRegexes, createItemFunc = function(itemType) {
13714
- if (itemType == UA_RESULT) return function() {
13715
- return new UAItem(itemType, userAgent, regexMap, httpUACH).set('ua', userAgent).set(UA_BROWSER, this.getBrowser()).set(UA_CPU, this.getCPU()).set(UA_DEVICE, this.getDevice()).set(UA_ENGINE, this.getEngine()).set(UA_OS, this.getOS()).get();
13755
+ var userAgent = typeof ua === TYPEOF.STRING ? ua : headers && headers[USER_AGENT] ? headers[USER_AGENT] : NAVIGATOR && NAVIGATOR.userAgent ? NAVIGATOR.userAgent : EMPTY, httpUACH = new UACHData(headers, true), regexMap = extensions ? extend(defaultRegexes, extensions) : defaultRegexes, createItemFunc = function(itemType) {
13756
+ if (itemType == RESULT) return function() {
13757
+ return new UAItem(itemType, userAgent, regexMap, httpUACH).set('ua', userAgent).set(BROWSER, this.getBrowser()).set(CPU, this.getCPU()).set(DEVICE, this.getDevice()).set(ENGINE, this.getEngine()).set(OS, this.getOS()).get();
13716
13758
  };
13717
13759
  return function() {
13718
13760
  return new UAItem(itemType, userAgent, regexMap[itemType], httpUACH).parseUA().get();
@@ -13721,27 +13763,27 @@
13721
13763
  setProps.call(this, [
13722
13764
  [
13723
13765
  'getBrowser',
13724
- createItemFunc(UA_BROWSER)
13766
+ createItemFunc(BROWSER)
13725
13767
  ],
13726
13768
  [
13727
13769
  'getCPU',
13728
- createItemFunc(UA_CPU)
13770
+ createItemFunc(CPU)
13729
13771
  ],
13730
13772
  [
13731
13773
  'getDevice',
13732
- createItemFunc(UA_DEVICE)
13774
+ createItemFunc(DEVICE)
13733
13775
  ],
13734
13776
  [
13735
13777
  'getEngine',
13736
- createItemFunc(UA_ENGINE)
13778
+ createItemFunc(ENGINE)
13737
13779
  ],
13738
13780
  [
13739
13781
  'getOS',
13740
- createItemFunc(UA_OS)
13782
+ createItemFunc(OS)
13741
13783
  ],
13742
13784
  [
13743
13785
  'getResult',
13744
- createItemFunc(UA_RESULT)
13786
+ createItemFunc(RESULT)
13745
13787
  ],
13746
13788
  [
13747
13789
  'getUA',
@@ -13752,7 +13794,7 @@
13752
13794
  [
13753
13795
  'setUA',
13754
13796
  function(ua) {
13755
- if (isString(ua)) userAgent = ua.length > UA_MAX_LENGTH ? ua_parser_trim(ua, UA_MAX_LENGTH) : ua;
13797
+ if (isString(ua)) userAgent = ua_parser_trim(ua, UA_MAX_LENGTH);
13756
13798
  return this;
13757
13799
  }
13758
13800
  ]
@@ -13960,7 +14002,7 @@
13960
14002
  screen.width,
13961
14003
  screen.height,
13962
14004
  screen.colorDepth
13963
- ].join("\xd7");
14005
+ ].join("×");
13964
14006
  if (screen.orientation) this.orientation = screen.orientation.type;
13965
14007
  this.err = errData?.err;
13966
14008
  const stackTarget = errData?.cause ?? errData?.err;
@@ -14892,19 +14934,19 @@
14892
14934
  return newOptions;
14893
14935
  }
14894
14936
  const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
14895
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
14937
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
14896
14938
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
14897
- var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
14939
+ var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
14898
14940
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
14899
- var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
14941
+ var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
14900
14942
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
14901
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
14943
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
14902
14944
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
14903
- var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
14945
+ var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
14904
14946
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
14905
- var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
14947
+ var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
14906
14948
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
14907
- var main = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
14949
+ var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
14908
14950
  var main_options = {};
14909
14951
  main_options.styleTagTransform = styleTagTransform_default();
14910
14952
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -15463,7 +15505,7 @@
15463
15505
  else {
15464
15506
  this.facingModeElement = document.createElement("button");
15465
15507
  this.facingModeElement.classList.add("facingMode");
15466
- this.facingModeElement.innerHTML = "\u293E";
15508
+ this.facingModeElement.innerHTML = "";
15467
15509
  this.facingModeElement.onclick = (e)=>{
15468
15510
  e?.preventDefault();
15469
15511
  try {
@@ -15810,17 +15852,17 @@
15810
15852
  this.options.logger.debug("Limit reached");
15811
15853
  lead += `${this.options.text.limitReached}.<br/>`;
15812
15854
  }
15813
- lead += `${this.options.text.sending} \u{2026}`;
15855
+ lead += `${this.options.text.sending} …`;
15814
15856
  this.notify(lead, void 0, {
15815
15857
  stillWait: true,
15816
15858
  entertain: this.options.notifier.entertain
15817
15859
  });
15818
15860
  }
15819
15861
  onConnecting() {
15820
- this.notify("Connecting \u2026");
15862
+ this.notify("Connecting ");
15821
15863
  }
15822
15864
  onLoadingUserMedia() {
15823
- this.notify("Loading webcam \u2026");
15865
+ this.notify("Loading webcam ");
15824
15866
  }
15825
15867
  onProgress(frameProgress, sampleProgress) {
15826
15868
  let overallProgress;
@@ -15832,7 +15874,7 @@
15832
15874
  }
15833
15875
  onBeginVideoEncoding() {
15834
15876
  this.visuals.beginWaiting();
15835
- const lead = `${this.options.text.encoding} \u{2026}`;
15877
+ const lead = `${this.options.text.encoding} …`;
15836
15878
  this.notify(lead, void 0, {
15837
15879
  stillWait: true,
15838
15880
  entertain: this.options.notifier.entertain
@@ -15864,7 +15906,7 @@
15864
15906
  this.onBeginVideoEncoding();
15865
15907
  });
15866
15908
  this.on("UNLOADING", ()=>{
15867
- this.notify("Unloading \u2026");
15909
+ this.notify("Unloading ");
15868
15910
  });
15869
15911
  this.on("DISCONNECTED", ()=>{
15870
15912
  this.notify("Disconnected");
@@ -16261,7 +16303,7 @@
16261
16303
  "volumechange"
16262
16304
  ];
16263
16305
  const mediaEvents = MEDIA_EVENTS;
16264
- const EVENT_ASCII = "|\u2014O\u2014|";
16306
+ const EVENT_ASCII = "|—O—|";
16265
16307
  class UserMedia extends util_Despot {
16266
16308
  recorder;
16267
16309
  rawVisualUserMedia;
@@ -16551,7 +16593,7 @@
16551
16593
  }
16552
16594
  const visuals_userMedia = UserMedia;
16553
16595
  var Buffer = __webpack_require__("./node_modules/buffer/index.js")["Buffer"];
16554
- const PIPE_SYMBOL = "\xb0\xba\xa4\xf8,\xb8\xb8,\xf8\xa4\xba\xb0`\xb0\xba\xa4\xf8,\xb8,\xf8\xa4\xb0\xba\xa4\xf8,\xb8\xb8,\xf8\xa4\xba\xb0`\xb0\xba\xa4\xf8,\xb8 ";
16596
+ const PIPE_SYMBOL = "°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ";
16555
16597
  class Recorder extends util_Despot {
16556
16598
  visuals;
16557
16599
  replay;
@@ -17053,7 +17095,7 @@
17053
17095
  }, 0);
17054
17096
  }
17055
17097
  } else {
17056
- this.options.logger.debug(`Reconnecting for the command ${command} \u{2026}`);
17098
+ this.options.logger.debug(`Reconnecting for the command ${command} …`);
17057
17099
  this.initSocket(()=>{
17058
17100
  this.writeCommand(command, args);
17059
17101
  cb?.();
@@ -18333,7 +18375,7 @@
18333
18375
  const name = invalidInput.getAttribute("name");
18334
18376
  valid = false;
18335
18377
  if (name) {
18336
- whyInvalid = `Input "${name}" seems wrong \u{1F914}`;
18378
+ whyInvalid = `Input "${name}" seems wrong 🤔`;
18337
18379
  invalidData = {
18338
18380
  [name]: invalidInput.getAttribute("value")
18339
18381
  };
@@ -18341,7 +18383,7 @@
18341
18383
  } else if (!this.areVisualsHidden() && !visualsValid) {
18342
18384
  if (this.buttonsAreReady() || this.isRecording() || this.isPaused() || this.isCountingDown()) {
18343
18385
  valid = false;
18344
- whyInvalid = "Don't forget to record a video \uD83D\uDE09";
18386
+ whyInvalid = "Don't forget to record a video 😉";
18345
18387
  invalidData = {
18346
18388
  key: void 0
18347
18389
  };