(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-libs"],{

/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
/*!************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _extends; });\nfunction _extends() {\n  _extends = Object.assign ? Object.assign.bind() : function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n    return target;\n  };\n  return _extends.apply(this, arguments);\n}\n\n//# sourceURL=webpack:///./node_modules/@babel/runtime/helpers/esm/extends.js?");

/***/ }),

/***/ "./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=[\"attrs\",\"props\",\"domProps\"],toArrayMerge=[\"class\",\"style\",\"directives\"],functionalMerge=[\"on\",\"nativeOn\"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=[].concat(d,e)}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=[].concat(g,h)}else c[b][f]=a[b][f];}else if(\"hook\"===b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}};module.exports=mergeJsxProps;\n\n\n//# sourceURL=webpack:///./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js?");

/***/ }),

/***/ "./node_modules/axios/index.js":
/*!*************************************!*\
  !*** ./node_modules/axios/index.js ***!
  \*************************************/
/*! exports provided: default, Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, mergeConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Axios\", function() { return Axios; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AxiosError\", function() { return AxiosError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CanceledError\", function() { return CanceledError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isCancel\", function() { return isCancel; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CancelToken\", function() { return CancelToken; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VERSION\", function() { return VERSION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"all\", function() { return all; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Cancel\", function() { return Cancel; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isAxiosError\", function() { return isAxiosError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"spread\", function() { return spread; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toFormData\", function() { return toFormData; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AxiosHeaders\", function() { return AxiosHeaders; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"HttpStatusCode\", function() { return HttpStatusCode; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formToJSON\", function() { return formToJSON; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mergeConfig\", function() { return mergeConfig; });\n/* harmony import */ var _lib_axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/axios.js */ \"./node_modules/axios/lib/axios.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _lib_axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n  Axios,\n  AxiosError,\n  CanceledError,\n  isCancel,\n  CancelToken,\n  VERSION,\n  all,\n  Cancel,\n  isAxiosError,\n  spread,\n  toFormData,\n  AxiosHeaders,\n  HttpStatusCode,\n  formToJSON,\n  mergeConfig\n} = _lib_axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n\n\n\n\n//# sourceURL=webpack:///./node_modules/axios/index.js?");

/***/ }),

/***/ "./node_modules/axios/lib/adapters/adapters.js":
/*!*****************************************************!*\
  !*** ./node_modules/axios/lib/adapters/adapters.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./http.js */ \"./node_modules/axios/lib/helpers/null.js\");\n/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./xhr.js */ \"./node_modules/axios/lib/adapters/xhr.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n\nconst knownAdapters = {\n  http: _http_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(knownAdapters, (fn, value) => {\n  if(fn) {\n    try {\n      Object.defineProperty(fn, 'name', {value});\n    } catch (e) {\n      // eslint-disable-next-line no-empty\n    }\n    Object.defineProperty(fn, 'adapterName', {value});\n  }\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  getAdapter: (adapters) => {\n    adapters = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(adapters) ? adapters : [adapters];\n\n    const {length} = adapters;\n    let nameOrAdapter;\n    let adapter;\n\n    for (let i = 0; i < length; i++) {\n      nameOrAdapter = adapters[i];\n      if((adapter = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {\n        break;\n      }\n    }\n\n    if (!adapter) {\n      if (adapter === false) {\n        throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\n          `Adapter ${nameOrAdapter} is not supported by the environment`,\n          'ERR_NOT_SUPPORT'\n        );\n      }\n\n      throw new Error(\n        _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasOwnProp(knownAdapters, nameOrAdapter) ?\n          `Adapter '${nameOrAdapter}' is not available in the build` :\n          `Unknown adapter '${nameOrAdapter}'`\n      );\n    }\n\n    if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(adapter)) {\n      throw new TypeError('adapter is not a function');\n    }\n\n    return adapter;\n  },\n  adapters: knownAdapters\n});\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/adapters/adapters.js?");

/***/ }),

/***/ "./node_modules/axios/lib/adapters/xhr.js":
/*!************************************************!*\
  !*** ./node_modules/axios/lib/adapters/xhr.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../core/settle.js */ \"./node_modules/axios/lib/core/settle.js\");\n/* harmony import */ var _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../helpers/cookies.js */ \"./node_modules/axios/lib/helpers/cookies.js\");\n/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../helpers/buildURL.js */ \"./node_modules/axios/lib/helpers/buildURL.js\");\n/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/buildFullPath.js */ \"./node_modules/axios/lib/core/buildFullPath.js\");\n/* harmony import */ var _helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../helpers/isURLSameOrigin.js */ \"./node_modules/axios/lib/helpers/isURLSameOrigin.js\");\n/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../defaults/transitional.js */ \"./node_modules/axios/lib/defaults/transitional.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ \"./node_modules/axios/lib/helpers/parseProtocol.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/speedometer.js */ \"./node_modules/axios/lib/helpers/speedometer.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction progressEventReducer(listener, isDownloadStream) {\n  let bytesNotified = 0;\n  const _speedometer = Object(_helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(50, 250);\n\n  return e => {\n    const loaded = e.loaded;\n    const total = e.lengthComputable ? e.total : undefined;\n    const progressBytes = loaded - bytesNotified;\n    const rate = _speedometer(progressBytes);\n    const inRange = loaded <= total;\n\n    bytesNotified = loaded;\n\n    const data = {\n      loaded,\n      total,\n      progress: total ? (loaded / total) : undefined,\n      bytes: progressBytes,\n      rate: rate ? rate : undefined,\n      estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n      event: e\n    };\n\n    data[isDownloadStream ? 'download' : 'upload'] = true;\n\n    listener(data);\n  };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (isXHRAdapterSupported && function (config) {\n  return new Promise(function dispatchXhrRequest(resolve, reject) {\n    let requestData = config.data;\n    const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"].from(config.headers).normalize();\n    const responseType = config.responseType;\n    let onCanceled;\n    function done() {\n      if (config.cancelToken) {\n        config.cancelToken.unsubscribe(onCanceled);\n      }\n\n      if (config.signal) {\n        config.signal.removeEventListener('abort', onCanceled);\n      }\n    }\n\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(requestData)) {\n      if (_platform_index_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"].isStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"].isStandardBrowserWebWorkerEnv) {\n        requestHeaders.setContentType(false); // Let the browser set it\n      } else {\n        requestHeaders.setContentType('multipart/form-data;', false); // mobile/desktop app frameworks\n      }\n    }\n\n    let request = new XMLHttpRequest();\n\n    // HTTP basic authentication\n    if (config.auth) {\n      const username = config.auth.username || '';\n      const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n      requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n    }\n\n    const fullPath = Object(_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(config.baseURL, config.url);\n\n    request.open(config.method.toUpperCase(), Object(_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(fullPath, config.params, config.paramsSerializer), true);\n\n    // Set the request timeout in MS\n    request.timeout = config.timeout;\n\n    function onloadend() {\n      if (!request) {\n        return;\n      }\n      // Prepare the response\n      const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"].from(\n        'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n      );\n      const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n        request.responseText : request.response;\n      const response = {\n        data: responseData,\n        status: request.status,\n        statusText: request.statusText,\n        headers: responseHeaders,\n        config,\n        request\n      };\n\n      Object(_core_settle_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(function _resolve(value) {\n        resolve(value);\n        done();\n      }, function _reject(err) {\n        reject(err);\n        done();\n      }, response);\n\n      // Clean up request\n      request = null;\n    }\n\n    if ('onloadend' in request) {\n      // Use onloadend if available\n      request.onloadend = onloadend;\n    } else {\n      // Listen for ready state to emulate onloadend\n      request.onreadystatechange = function handleLoad() {\n        if (!request || request.readyState !== 4) {\n          return;\n        }\n\n        // The request errored out and we didn't get a response, this will be\n        // handled by onerror instead\n        // With one exception: request that using file: protocol, most browsers\n        // will return status as 0 even though it's a successful request\n        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n          return;\n        }\n        // readystate handler is calling before onerror or ontimeout handlers,\n        // so we should call onloadend on the next 'tick'\n        setTimeout(onloadend);\n      };\n    }\n\n    // Handle browser request cancellation (as opposed to a manual cancellation)\n    request.onabort = function handleAbort() {\n      if (!request) {\n        return;\n      }\n\n      reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].ECONNABORTED, config, request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle low level network errors\n    request.onerror = function handleError() {\n      // Real errors are hidden from us by the browser\n      // onerror should only fire if it's a network error\n      reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].ERR_NETWORK, config, request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle timeout\n    request.ontimeout = function handleTimeout() {\n      let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n      const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n      if (config.timeoutErrorMessage) {\n        timeoutErrorMessage = config.timeoutErrorMessage;\n      }\n      reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\n        timeoutErrorMessage,\n        transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].ECONNABORTED,\n        config,\n        request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Add xsrf header\n    // This is only done if running in a standard browser environment.\n    // Specifically not if we're in a web worker, or react-native.\n    if (_platform_index_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"].isStandardBrowserEnv) {\n      // Add xsrf header\n      const xsrfValue = (config.withCredentials || Object(_helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(fullPath))\n        && config.xsrfCookieName && _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].read(config.xsrfCookieName);\n\n      if (xsrfValue) {\n        requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n      }\n    }\n\n    // Remove Content-Type if data is undefined\n    requestData === undefined && requestHeaders.setContentType(null);\n\n    // Add headers to the request\n    if ('setRequestHeader' in request) {\n      _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n        request.setRequestHeader(key, val);\n      });\n    }\n\n    // Add withCredentials to request if needed\n    if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(config.withCredentials)) {\n      request.withCredentials = !!config.withCredentials;\n    }\n\n    // Add responseType to request if needed\n    if (responseType && responseType !== 'json') {\n      request.responseType = config.responseType;\n    }\n\n    // Handle progress if needed\n    if (typeof config.onDownloadProgress === 'function') {\n      request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n    }\n\n    // Not all browsers support upload events\n    if (typeof config.onUploadProgress === 'function' && request.upload) {\n      request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n    }\n\n    if (config.cancelToken || config.signal) {\n      // Handle cancellation\n      // eslint-disable-next-line func-names\n      onCanceled = cancel => {\n        if (!request) {\n          return;\n        }\n        reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"](null, config, request) : cancel);\n        request.abort();\n        request = null;\n      };\n\n      config.cancelToken && config.cancelToken.subscribe(onCanceled);\n      if (config.signal) {\n        config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n      }\n    }\n\n    const protocol = Object(_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(fullPath);\n\n    if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"].protocols.indexOf(protocol) === -1) {\n      reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].ERR_BAD_REQUEST, config));\n      return;\n    }\n\n\n    // Send the request\n    request.send(requestData || null);\n  });\n});\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/adapters/xhr.js?");

/***/ }),

/***/ "./node_modules/axios/lib/axios.js":
/*!*****************************************!*\
  !*** ./node_modules/axios/lib/axios.js ***!
  \*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ \"./node_modules/axios/lib/helpers/bind.js\");\n/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/Axios.js */ \"./node_modules/axios/lib/core/Axios.js\");\n/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ \"./node_modules/axios/lib/helpers/formDataToJSON.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/CancelToken.js */ \"./node_modules/axios/lib/cancel/CancelToken.js\");\n/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./cancel/isCancel.js */ \"./node_modules/axios/lib/cancel/isCancel.js\");\n/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./env/data.js */ \"./node_modules/axios/lib/env/data.js\");\n/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./helpers/toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/spread.js */ \"./node_modules/axios/lib/helpers/spread.js\");\n/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ \"./node_modules/axios/lib/helpers/isAxiosError.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ \"./node_modules/axios/lib/helpers/HttpStatusCode.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n  const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"](defaultConfig);\n  const instance = Object(_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype.request, context);\n\n  // Copy axios.prototype to instance\n  _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype, context, {allOwnKeys: true});\n\n  // Copy context to instance\n  _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].extend(instance, context, null, {allOwnKeys: true});\n\n  // Factory for creating new instances\n  instance.create = function create(instanceConfig) {\n    return createInstance(Object(_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(defaultConfig, instanceConfig));\n  };\n\n  return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n\n// Expose Cancel & CancelToken\naxios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\naxios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\naxios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"];\naxios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_9__[\"VERSION\"];\naxios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"];\n\n// Expose AxiosError class\naxios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"];\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n  return Promise.all(promises);\n};\n\naxios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"];\n\n// Expose isAxiosError\naxios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_13__[\"default\"];\n\n// Expose mergeConfig\naxios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n\naxios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_14__[\"default\"];\n\naxios.formToJSON = thing => Object(_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.HttpStatusCode = _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"];\n\naxios.default = axios;\n\n// this module should only have a default export\n/* harmony default export */ __webpack_exports__[\"default\"] = (axios);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/axios.js?");

/***/ }),

/***/ "./node_modules/axios/lib/cancel/CancelToken.js":
/*!******************************************************!*\
  !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n\n\n\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n  constructor(executor) {\n    if (typeof executor !== 'function') {\n      throw new TypeError('executor must be a function.');\n    }\n\n    let resolvePromise;\n\n    this.promise = new Promise(function promiseExecutor(resolve) {\n      resolvePromise = resolve;\n    });\n\n    const token = this;\n\n    // eslint-disable-next-line func-names\n    this.promise.then(cancel => {\n      if (!token._listeners) return;\n\n      let i = token._listeners.length;\n\n      while (i-- > 0) {\n        token._listeners[i](cancel);\n      }\n      token._listeners = null;\n    });\n\n    // eslint-disable-next-line func-names\n    this.promise.then = onfulfilled => {\n      let _resolve;\n      // eslint-disable-next-line func-names\n      const promise = new Promise(resolve => {\n        token.subscribe(resolve);\n        _resolve = resolve;\n      }).then(onfulfilled);\n\n      promise.cancel = function reject() {\n        token.unsubscribe(_resolve);\n      };\n\n      return promise;\n    };\n\n    executor(function cancel(message, config, request) {\n      if (token.reason) {\n        // Cancellation has already been requested\n        return;\n      }\n\n      token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](message, config, request);\n      resolvePromise(token.reason);\n    });\n  }\n\n  /**\n   * Throws a `CanceledError` if cancellation has been requested.\n   */\n  throwIfRequested() {\n    if (this.reason) {\n      throw this.reason;\n    }\n  }\n\n  /**\n   * Subscribe to the cancel signal\n   */\n\n  subscribe(listener) {\n    if (this.reason) {\n      listener(this.reason);\n      return;\n    }\n\n    if (this._listeners) {\n      this._listeners.push(listener);\n    } else {\n      this._listeners = [listener];\n    }\n  }\n\n  /**\n   * Unsubscribe from the cancel signal\n   */\n\n  unsubscribe(listener) {\n    if (!this._listeners) {\n      return;\n    }\n    const index = this._listeners.indexOf(listener);\n    if (index !== -1) {\n      this._listeners.splice(index, 1);\n    }\n  }\n\n  /**\n   * Returns an object that contains a new `CancelToken` and a function that, when called,\n   * cancels the `CancelToken`.\n   */\n  static source() {\n    let cancel;\n    const token = new CancelToken(function executor(c) {\n      cancel = c;\n    });\n    return {\n      token,\n      cancel\n    };\n  }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CancelToken);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/cancel/CancelToken.js?");

/***/ }),

/***/ "./node_modules/axios/lib/cancel/CanceledError.js":
/*!********************************************************!*\
  !*** ./node_modules/axios/lib/cancel/CanceledError.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n  // eslint-disable-next-line no-eq-null,eqeqeq\n  _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_CANCELED, config, request);\n  this.name = 'CanceledError';\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n  __CANCEL__: true\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CanceledError);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/cancel/CanceledError.js?");

/***/ }),

/***/ "./node_modules/axios/lib/cancel/isCancel.js":
/*!***************************************************!*\
  !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return isCancel; });\n\n\nfunction isCancel(value) {\n  return !!(value && value.__CANCEL__);\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/cancel/isCancel.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/Axios.js":
/*!**********************************************!*\
  !*** ./node_modules/axios/lib/core/Axios.js ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/buildURL.js */ \"./node_modules/axios/lib/helpers/buildURL.js\");\n/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InterceptorManager.js */ \"./node_modules/axios/lib/core/InterceptorManager.js\");\n/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dispatchRequest.js */ \"./node_modules/axios/lib/core/dispatchRequest.js\");\n/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./buildFullPath.js */ \"./node_modules/axios/lib/core/buildFullPath.js\");\n/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/validator.js */ \"./node_modules/axios/lib/helpers/validator.js\");\n/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n  constructor(instanceConfig) {\n    this.defaults = instanceConfig;\n    this.interceptors = {\n      request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"](),\n      response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]()\n    };\n  }\n\n  /**\n   * Dispatch a request\n   *\n   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n   * @param {?Object} config\n   *\n   * @returns {Promise} The Promise to be fulfilled\n   */\n  request(configOrUrl, config) {\n    /*eslint no-param-reassign:0*/\n    // Allow for axios('example/url'[, config]) a la fetch API\n    if (typeof configOrUrl === 'string') {\n      config = config || {};\n      config.url = configOrUrl;\n    } else {\n      config = configOrUrl || {};\n    }\n\n    config = Object(_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this.defaults, config);\n\n    const {transitional, paramsSerializer, headers} = config;\n\n    if (transitional !== undefined) {\n      _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].assertOptions(transitional, {\n        silentJSONParsing: validators.transitional(validators.boolean),\n        forcedJSONParsing: validators.transitional(validators.boolean),\n        clarifyTimeoutError: validators.transitional(validators.boolean)\n      }, false);\n    }\n\n    if (paramsSerializer != null) {\n      if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(paramsSerializer)) {\n        config.paramsSerializer = {\n          serialize: paramsSerializer\n        }\n      } else {\n        _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].assertOptions(paramsSerializer, {\n          encode: validators.function,\n          serialize: validators.function\n        }, true);\n      }\n    }\n\n    // Set config.method\n    config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n    let contextHeaders;\n\n    // Flatten headers\n    contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].merge(\n      headers.common,\n      headers[config.method]\n    );\n\n    contextHeaders && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(\n      ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n      (method) => {\n        delete headers[method];\n      }\n    );\n\n    config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].concat(contextHeaders, headers);\n\n    // filter out skipped interceptors\n    const requestInterceptorChain = [];\n    let synchronousRequestInterceptors = true;\n    this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n      if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n        return;\n      }\n\n      synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n      requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n    });\n\n    const responseInterceptorChain = [];\n    this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n      responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n    });\n\n    let promise;\n    let i = 0;\n    let len;\n\n    if (!synchronousRequestInterceptors) {\n      const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].bind(this), undefined];\n      chain.unshift.apply(chain, requestInterceptorChain);\n      chain.push.apply(chain, responseInterceptorChain);\n      len = chain.length;\n\n      promise = Promise.resolve(config);\n\n      while (i < len) {\n        promise = promise.then(chain[i++], chain[i++]);\n      }\n\n      return promise;\n    }\n\n    len = requestInterceptorChain.length;\n\n    let newConfig = config;\n\n    i = 0;\n\n    while (i < len) {\n      const onFulfilled = requestInterceptorChain[i++];\n      const onRejected = requestInterceptorChain[i++];\n      try {\n        newConfig = onFulfilled(newConfig);\n      } catch (error) {\n        onRejected.call(this, error);\n        break;\n      }\n    }\n\n    try {\n      promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].call(this, newConfig);\n    } catch (error) {\n      return Promise.reject(error);\n    }\n\n    i = 0;\n    len = responseInterceptorChain.length;\n\n    while (i < len) {\n      promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n    }\n\n    return promise;\n  }\n\n  getUri(config) {\n    config = Object(_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this.defaults, config);\n    const fullPath = Object(_buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(config.baseURL, config.url);\n    return Object(_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(fullPath, config.params, config.paramsSerializer);\n  }\n}\n\n// Provide aliases for supported request methods\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n  /*eslint func-names:0*/\n  Axios.prototype[method] = function(url, config) {\n    return this.request(Object(_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(config || {}, {\n      method,\n      url,\n      data: (config || {}).data\n    }));\n  };\n});\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n  /*eslint func-names:0*/\n\n  function generateHTTPMethod(isForm) {\n    return function httpMethod(url, data, config) {\n      return this.request(Object(_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(config || {}, {\n        method,\n        headers: isForm ? {\n          'Content-Type': 'multipart/form-data'\n        } : {},\n        url,\n        data\n      }));\n    };\n  }\n\n  Axios.prototype[method] = generateHTTPMethod();\n\n  Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Axios);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/Axios.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/AxiosError.js":
/*!***************************************************!*\
  !*** ./node_modules/axios/lib/core/AxiosError.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n  Error.call(this);\n\n  if (Error.captureStackTrace) {\n    Error.captureStackTrace(this, this.constructor);\n  } else {\n    this.stack = (new Error()).stack;\n  }\n\n  this.message = message;\n  this.name = 'AxiosError';\n  code && (this.code = code);\n  config && (this.config = config);\n  request && (this.request = request);\n  response && (this.response = response);\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].inherits(AxiosError, Error, {\n  toJSON: function toJSON() {\n    return {\n      // Standard\n      message: this.message,\n      name: this.name,\n      // Microsoft\n      description: this.description,\n      number: this.number,\n      // Mozilla\n      fileName: this.fileName,\n      lineNumber: this.lineNumber,\n      columnNumber: this.columnNumber,\n      stack: this.stack,\n      // Axios\n      config: _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toJSONObject(this.config),\n      code: this.code,\n      status: this.response && this.response.status ? this.response.status : null\n    };\n  }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n  'ERR_BAD_OPTION_VALUE',\n  'ERR_BAD_OPTION',\n  'ECONNABORTED',\n  'ETIMEDOUT',\n  'ERR_NETWORK',\n  'ERR_FR_TOO_MANY_REDIRECTS',\n  'ERR_DEPRECATED',\n  'ERR_BAD_RESPONSE',\n  'ERR_BAD_REQUEST',\n  'ERR_CANCELED',\n  'ERR_NOT_SUPPORT',\n  'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n  descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n  const axiosError = Object.create(prototype);\n\n  _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(error, axiosError, function filter(obj) {\n    return obj !== Error.prototype;\n  }, prop => {\n    return prop !== 'isAxiosError';\n  });\n\n  AxiosError.call(axiosError, error.message, code, config, request, response);\n\n  axiosError.cause = error;\n\n  axiosError.name = error.name;\n\n  customProps && Object.assign(axiosError, customProps);\n\n  return axiosError;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosError);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/AxiosError.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/AxiosHeaders.js":
/*!*****************************************************!*\
  !*** ./node_modules/axios/lib/core/AxiosHeaders.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ \"./node_modules/axios/lib/helpers/parseHeaders.js\");\n\n\n\n\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n  return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n  if (value === false || value == null) {\n    return value;\n  }\n\n  return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n  const tokens = Object.create(null);\n  const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n  let match;\n\n  while ((match = tokensRE.exec(str))) {\n    tokens[match[1]] = match[2];\n  }\n\n  return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(filter)) {\n    return filter.call(this, value, header);\n  }\n\n  if (isHeaderNameFilter) {\n    value = header;\n  }\n\n  if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(value)) return;\n\n  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(filter)) {\n    return value.indexOf(filter) !== -1;\n  }\n\n  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isRegExp(filter)) {\n    return filter.test(value);\n  }\n}\n\nfunction formatHeader(header) {\n  return header.trim()\n    .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n      return char.toUpperCase() + str;\n    });\n}\n\nfunction buildAccessors(obj, header) {\n  const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toCamelCase(' ' + header);\n\n  ['get', 'set', 'has'].forEach(methodName => {\n    Object.defineProperty(obj, methodName + accessorName, {\n      value: function(arg1, arg2, arg3) {\n        return this[methodName].call(this, header, arg1, arg2, arg3);\n      },\n      configurable: true\n    });\n  });\n}\n\nclass AxiosHeaders {\n  constructor(headers) {\n    headers && this.set(headers);\n  }\n\n  set(header, valueOrRewrite, rewrite) {\n    const self = this;\n\n    function setHeader(_value, _header, _rewrite) {\n      const lHeader = normalizeHeader(_header);\n\n      if (!lHeader) {\n        throw new Error('header name must be a non-empty string');\n      }\n\n      const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(self, lHeader);\n\n      if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n        self[key || _header] = normalizeValue(_value);\n      }\n    }\n\n    const setHeaders = (headers, _rewrite) =>\n      _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(header) || header instanceof this.constructor) {\n      setHeaders(header, valueOrRewrite)\n    } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n      setHeaders(Object(_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(header), valueOrRewrite);\n    } else {\n      header != null && setHeader(valueOrRewrite, header, rewrite);\n    }\n\n    return this;\n  }\n\n  get(header, parser) {\n    header = normalizeHeader(header);\n\n    if (header) {\n      const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(this, header);\n\n      if (key) {\n        const value = this[key];\n\n        if (!parser) {\n          return value;\n        }\n\n        if (parser === true) {\n          return parseTokens(value);\n        }\n\n        if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(parser)) {\n          return parser.call(this, value, key);\n        }\n\n        if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isRegExp(parser)) {\n          return parser.exec(value);\n        }\n\n        throw new TypeError('parser must be boolean|regexp|function');\n      }\n    }\n  }\n\n  has(header, matcher) {\n    header = normalizeHeader(header);\n\n    if (header) {\n      const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(this, header);\n\n      return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n    }\n\n    return false;\n  }\n\n  delete(header, matcher) {\n    const self = this;\n    let deleted = false;\n\n    function deleteHeader(_header) {\n      _header = normalizeHeader(_header);\n\n      if (_header) {\n        const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(self, _header);\n\n        if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n          delete self[key];\n\n          deleted = true;\n        }\n      }\n    }\n\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(header)) {\n      header.forEach(deleteHeader);\n    } else {\n      deleteHeader(header);\n    }\n\n    return deleted;\n  }\n\n  clear(matcher) {\n    const keys = Object.keys(this);\n    let i = keys.length;\n    let deleted = false;\n\n    while (i--) {\n      const key = keys[i];\n      if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n        delete this[key];\n        deleted = true;\n      }\n    }\n\n    return deleted;\n  }\n\n  normalize(format) {\n    const self = this;\n    const headers = {};\n\n    _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this, (value, header) => {\n      const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(headers, header);\n\n      if (key) {\n        self[key] = normalizeValue(value);\n        delete self[header];\n        return;\n      }\n\n      const normalized = format ? formatHeader(header) : String(header).trim();\n\n      if (normalized !== header) {\n        delete self[header];\n      }\n\n      self[normalized] = normalizeValue(value);\n\n      headers[normalized] = true;\n    });\n\n    return this;\n  }\n\n  concat(...targets) {\n    return this.constructor.concat(this, ...targets);\n  }\n\n  toJSON(asStrings) {\n    const obj = Object.create(null);\n\n    _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this, (value, header) => {\n      value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) ? value.join(', ') : value);\n    });\n\n    return obj;\n  }\n\n  [Symbol.iterator]() {\n    return Object.entries(this.toJSON())[Symbol.iterator]();\n  }\n\n  toString() {\n    return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n  }\n\n  get [Symbol.toStringTag]() {\n    return 'AxiosHeaders';\n  }\n\n  static from(thing) {\n    return thing instanceof this ? thing : new this(thing);\n  }\n\n  static concat(first, ...targets) {\n    const computed = new this(first);\n\n    targets.forEach((target) => computed.set(target));\n\n    return computed;\n  }\n\n  static accessor(header) {\n    const internals = this[$internals] = (this[$internals] = {\n      accessors: {}\n    });\n\n    const accessors = internals.accessors;\n    const prototype = this.prototype;\n\n    function defineAccessor(_header) {\n      const lHeader = normalizeHeader(_header);\n\n      if (!accessors[lHeader]) {\n        buildAccessors(prototype, _header);\n        accessors[lHeader] = true;\n      }\n    }\n\n    _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n    return this;\n  }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].freezeMethods(AxiosHeaders.prototype);\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].freezeMethods(AxiosHeaders);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosHeaders);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/AxiosHeaders.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/InterceptorManager.js":
/*!***********************************************************!*\
  !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\nclass InterceptorManager {\n  constructor() {\n    this.handlers = [];\n  }\n\n  /**\n   * Add a new interceptor to the stack\n   *\n   * @param {Function} fulfilled The function to handle `then` for a `Promise`\n   * @param {Function} rejected The function to handle `reject` for a `Promise`\n   *\n   * @return {Number} An ID used to remove interceptor later\n   */\n  use(fulfilled, rejected, options) {\n    this.handlers.push({\n      fulfilled,\n      rejected,\n      synchronous: options ? options.synchronous : false,\n      runWhen: options ? options.runWhen : null\n    });\n    return this.handlers.length - 1;\n  }\n\n  /**\n   * Remove an interceptor from the stack\n   *\n   * @param {Number} id The ID that was returned by `use`\n   *\n   * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n   */\n  eject(id) {\n    if (this.handlers[id]) {\n      this.handlers[id] = null;\n    }\n  }\n\n  /**\n   * Clear all interceptors from the stack\n   *\n   * @returns {void}\n   */\n  clear() {\n    if (this.handlers) {\n      this.handlers = [];\n    }\n  }\n\n  /**\n   * Iterate over all the registered interceptors\n   *\n   * This method is particularly useful for skipping over any\n   * interceptors that may have become `null` calling `eject`.\n   *\n   * @param {Function} fn The function to call for each interceptor\n   *\n   * @returns {void}\n   */\n  forEach(fn) {\n    _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this.handlers, function forEachHandler(h) {\n      if (h !== null) {\n        fn(h);\n      }\n    });\n  }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (InterceptorManager);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/InterceptorManager.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/buildFullPath.js":
/*!******************************************************!*\
  !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return buildFullPath; });\n/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ \"./node_modules/axios/lib/helpers/isAbsoluteURL.js\");\n/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ \"./node_modules/axios/lib/helpers/combineURLs.js\");\n\n\n\n\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nfunction buildFullPath(baseURL, requestedURL) {\n  if (baseURL && !Object(_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(requestedURL)) {\n    return Object(_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(baseURL, requestedURL);\n  }\n  return requestedURL;\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/buildFullPath.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/dispatchRequest.js":
/*!********************************************************!*\
  !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return dispatchRequest; });\n/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transformData.js */ \"./node_modules/axios/lib/core/transformData.js\");\n/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/isCancel.js */ \"./node_modules/axios/lib/cancel/isCancel.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../adapters/adapters.js */ \"./node_modules/axios/lib/adapters/adapters.js\");\n\n\n\n\n\n\n\n\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n  if (config.cancelToken) {\n    config.cancelToken.throwIfRequested();\n  }\n\n  if (config.signal && config.signal.aborted) {\n    throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"](null, config);\n  }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nfunction dispatchRequest(config) {\n  throwIfCancellationRequested(config);\n\n  config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].from(config.headers);\n\n  // Transform request data\n  config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(\n    config,\n    config.transformRequest\n  );\n\n  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n    config.headers.setContentType('application/x-www-form-urlencoded', false);\n  }\n\n  const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].adapter);\n\n  return adapter(config).then(function onAdapterResolution(response) {\n    throwIfCancellationRequested(config);\n\n    // Transform response data\n    response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(\n      config,\n      config.transformResponse,\n      response\n    );\n\n    response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].from(response.headers);\n\n    return response;\n  }, function onAdapterRejection(reason) {\n    if (!Object(_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(reason)) {\n      throwIfCancellationRequested(config);\n\n      // Transform response data\n      if (reason && reason.response) {\n        reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(\n          config,\n          config.transformResponse,\n          reason.response\n        );\n        reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].from(reason.response.headers);\n      }\n    }\n\n    return Promise.reject(reason);\n  });\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/dispatchRequest.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/mergeConfig.js":
/*!****************************************************!*\
  !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return mergeConfig; });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\nconst headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nfunction mergeConfig(config1, config2) {\n  // eslint-disable-next-line no-param-reassign\n  config2 = config2 || {};\n  const config = {};\n\n  function getMergedValue(target, source, caseless) {\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(source)) {\n      return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].merge.call({caseless}, target, source);\n    } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(source)) {\n      return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].merge({}, source);\n    } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(source)) {\n      return source.slice();\n    }\n    return source;\n  }\n\n  // eslint-disable-next-line consistent-return\n  function mergeDeepProperties(a, b, caseless) {\n    if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(b)) {\n      return getMergedValue(a, b, caseless);\n    } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(a)) {\n      return getMergedValue(undefined, a, caseless);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function valueFromConfig2(a, b) {\n    if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(b)) {\n      return getMergedValue(undefined, b);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function defaultToConfig2(a, b) {\n    if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(b)) {\n      return getMergedValue(undefined, b);\n    } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(a)) {\n      return getMergedValue(undefined, a);\n    }\n  }\n\n  // eslint-disable-next-line consistent-return\n  function mergeDirectKeys(a, b, prop) {\n    if (prop in config2) {\n      return getMergedValue(a, b);\n    } else if (prop in config1) {\n      return getMergedValue(undefined, a);\n    }\n  }\n\n  const mergeMap = {\n    url: valueFromConfig2,\n    method: valueFromConfig2,\n    data: valueFromConfig2,\n    baseURL: defaultToConfig2,\n    transformRequest: defaultToConfig2,\n    transformResponse: defaultToConfig2,\n    paramsSerializer: defaultToConfig2,\n    timeout: defaultToConfig2,\n    timeoutMessage: defaultToConfig2,\n    withCredentials: defaultToConfig2,\n    adapter: defaultToConfig2,\n    responseType: defaultToConfig2,\n    xsrfCookieName: defaultToConfig2,\n    xsrfHeaderName: defaultToConfig2,\n    onUploadProgress: defaultToConfig2,\n    onDownloadProgress: defaultToConfig2,\n    decompress: defaultToConfig2,\n    maxContentLength: defaultToConfig2,\n    maxBodyLength: defaultToConfig2,\n    beforeRedirect: defaultToConfig2,\n    transport: defaultToConfig2,\n    httpAgent: defaultToConfig2,\n    httpsAgent: defaultToConfig2,\n    cancelToken: defaultToConfig2,\n    socketPath: defaultToConfig2,\n    responseEncoding: defaultToConfig2,\n    validateStatus: mergeDirectKeys,\n    headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n  };\n\n  _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n    const merge = mergeMap[prop] || mergeDeepProperties;\n    const configValue = merge(config1[prop], config2[prop], prop);\n    (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n  });\n\n  return config;\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/mergeConfig.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/settle.js":
/*!***********************************************!*\
  !*** ./node_modules/axios/lib/core/settle.js ***!
  \***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return settle; });\n/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nfunction settle(resolve, reject, response) {\n  const validateStatus = response.config.validateStatus;\n  if (!response.status || !validateStatus || validateStatus(response.status)) {\n    resolve(response);\n  } else {\n    reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](\n      'Request failed with status code ' + response.status,\n      [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n      response.config,\n      response.request,\n      response\n    ));\n  }\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/settle.js?");

/***/ }),

/***/ "./node_modules/axios/lib/core/transformData.js":
/*!******************************************************!*\
  !*** ./node_modules/axios/lib/core/transformData.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return transformData; });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nfunction transformData(fns, response) {\n  const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n  const context = response || config;\n  const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].from(context.headers);\n  let data = context.data;\n\n  _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(fns, function transform(fn) {\n    data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n  });\n\n  headers.normalize();\n\n  return data;\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/core/transformData.js?");

/***/ }),

/***/ "./node_modules/axios/lib/defaults/index.js":
/*!**************************************************!*\
  !*** ./node_modules/axios/lib/defaults/index.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transitional.js */ \"./node_modules/axios/lib/defaults/transitional.js\");\n/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ \"./node_modules/axios/lib/helpers/toURLEncodedForm.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ \"./node_modules/axios/lib/helpers/formDataToJSON.js\");\n\n\n\n\n\n\n\n\n\n\nconst DEFAULT_CONTENT_TYPE = {\n  'Content-Type': undefined\n};\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(rawValue)) {\n    try {\n      (parser || JSON.parse)(rawValue);\n      return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].trim(rawValue);\n    } catch (e) {\n      if (e.name !== 'SyntaxError') {\n        throw e;\n      }\n    }\n  }\n\n  return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n  transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n\n  adapter: ['xhr', 'http'],\n\n  transformRequest: [function transformRequest(data, headers) {\n    const contentType = headers.getContentType() || '';\n    const hasJSONContentType = contentType.indexOf('application/json') > -1;\n    const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(data);\n\n    if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isHTMLForm(data)) {\n      data = new FormData(data);\n    }\n\n    const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(data);\n\n    if (isFormData) {\n      if (!hasJSONContentType) {\n        return data;\n      }\n      return hasJSONContentType ? JSON.stringify(Object(_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(data)) : data;\n    }\n\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBuffer(data) ||\n      _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBuffer(data) ||\n      _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isStream(data) ||\n      _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFile(data) ||\n      _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBlob(data)\n    ) {\n      return data;\n    }\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBufferView(data)) {\n      return data.buffer;\n    }\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isURLSearchParams(data)) {\n      headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n      return data.toString();\n    }\n\n    let isFileList;\n\n    if (isObjectPayload) {\n      if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n        return Object(_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(data, this.formSerializer).toString();\n      }\n\n      if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n        const _FormData = this.env && this.env.FormData;\n\n        return Object(_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n          isFileList ? {'files[]': data} : data,\n          _FormData && new _FormData(),\n          this.formSerializer\n        );\n      }\n    }\n\n    if (isObjectPayload || hasJSONContentType ) {\n      headers.setContentType('application/json', false);\n      return stringifySafely(data);\n    }\n\n    return data;\n  }],\n\n  transformResponse: [function transformResponse(data) {\n    const transitional = this.transitional || defaults.transitional;\n    const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n    const JSONRequested = this.responseType === 'json';\n\n    if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n      const silentJSONParsing = transitional && transitional.silentJSONParsing;\n      const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n      try {\n        return JSON.parse(data);\n      } catch (e) {\n        if (strictJSONParsing) {\n          if (e.name === 'SyntaxError') {\n            throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_RESPONSE, this, null, this.response);\n          }\n          throw e;\n        }\n      }\n    }\n\n    return data;\n  }],\n\n  /**\n   * A timeout in milliseconds to abort a request. If set to 0 (default) a\n   * timeout is not created.\n   */\n  timeout: 0,\n\n  xsrfCookieName: 'XSRF-TOKEN',\n  xsrfHeaderName: 'X-XSRF-TOKEN',\n\n  maxContentLength: -1,\n  maxBodyLength: -1,\n\n  env: {\n    FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].classes.FormData,\n    Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].classes.Blob\n  },\n\n  validateStatus: function validateStatus(status) {\n    return status >= 200 && status < 300;\n  },\n\n  headers: {\n    common: {\n      'Accept': 'application/json, text/plain, */*'\n    }\n  }\n};\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n  defaults.headers[method] = {};\n});\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n  defaults.headers[method] = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].merge(DEFAULT_CONTENT_TYPE);\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (defaults);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/defaults/index.js?");

/***/ }),

/***/ "./node_modules/axios/lib/defaults/transitional.js":
/*!*********************************************************!*\
  !*** ./node_modules/axios/lib/defaults/transitional.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  silentJSONParsing: true,\n  forcedJSONParsing: true,\n  clarifyTimeoutError: false\n});\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/defaults/transitional.js?");

/***/ }),

/***/ "./node_modules/axios/lib/env/data.js":
/*!********************************************!*\
  !*** ./node_modules/axios/lib/env/data.js ***!
  \********************************************/
/*! exports provided: VERSION */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VERSION\", function() { return VERSION; });\nconst VERSION = \"1.4.0\";\n\n//# sourceURL=webpack:///./node_modules/axios/lib/env/data.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js":
/*!****************************************************************!*\
  !*** ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***!
  \****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n\n\n\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n  const charMap = {\n    '!': '%21',\n    \"'\": '%27',\n    '(': '%28',\n    ')': '%29',\n    '~': '%7E',\n    '%20': '+',\n    '%00': '\\x00'\n  };\n  return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n    return charMap[match];\n  });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n  this._pairs = [];\n\n  params && Object(_toFormData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n  this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n  const _encode = encoder ? function(value) {\n    return encoder.call(this, value, encode);\n  } : encode;\n\n  return this._pairs.map(function each(pair) {\n    return _encode(pair[0]) + '=' + _encode(pair[1]);\n  }, '').join('&');\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosURLSearchParams);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/AxiosURLSearchParams.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/HttpStatusCode.js":
/*!**********************************************************!*\
  !*** ./node_modules/axios/lib/helpers/HttpStatusCode.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nconst HttpStatusCode = {\n  Continue: 100,\n  SwitchingProtocols: 101,\n  Processing: 102,\n  EarlyHints: 103,\n  Ok: 200,\n  Created: 201,\n  Accepted: 202,\n  NonAuthoritativeInformation: 203,\n  NoContent: 204,\n  ResetContent: 205,\n  PartialContent: 206,\n  MultiStatus: 207,\n  AlreadyReported: 208,\n  ImUsed: 226,\n  MultipleChoices: 300,\n  MovedPermanently: 301,\n  Found: 302,\n  SeeOther: 303,\n  NotModified: 304,\n  UseProxy: 305,\n  Unused: 306,\n  TemporaryRedirect: 307,\n  PermanentRedirect: 308,\n  BadRequest: 400,\n  Unauthorized: 401,\n  PaymentRequired: 402,\n  Forbidden: 403,\n  NotFound: 404,\n  MethodNotAllowed: 405,\n  NotAcceptable: 406,\n  ProxyAuthenticationRequired: 407,\n  RequestTimeout: 408,\n  Conflict: 409,\n  Gone: 410,\n  LengthRequired: 411,\n  PreconditionFailed: 412,\n  PayloadTooLarge: 413,\n  UriTooLong: 414,\n  UnsupportedMediaType: 415,\n  RangeNotSatisfiable: 416,\n  ExpectationFailed: 417,\n  ImATeapot: 418,\n  MisdirectedRequest: 421,\n  UnprocessableEntity: 422,\n  Locked: 423,\n  FailedDependency: 424,\n  TooEarly: 425,\n  UpgradeRequired: 426,\n  PreconditionRequired: 428,\n  TooManyRequests: 429,\n  RequestHeaderFieldsTooLarge: 431,\n  UnavailableForLegalReasons: 451,\n  InternalServerError: 500,\n  NotImplemented: 501,\n  BadGateway: 502,\n  ServiceUnavailable: 503,\n  GatewayTimeout: 504,\n  HttpVersionNotSupported: 505,\n  VariantAlsoNegotiates: 506,\n  InsufficientStorage: 507,\n  LoopDetected: 508,\n  NotExtended: 510,\n  NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n  HttpStatusCode[value] = key;\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (HttpStatusCode);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/HttpStatusCode.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/bind.js":
/*!************************************************!*\
  !*** ./node_modules/axios/lib/helpers/bind.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return bind; });\n\n\nfunction bind(fn, thisArg) {\n  return function wrap() {\n    return fn.apply(thisArg, arguments);\n  };\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/bind.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/buildURL.js":
/*!****************************************************!*\
  !*** ./node_modules/axios/lib/helpers/buildURL.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return buildURL; });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ \"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js\");\n\n\n\n\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n  return encodeURIComponent(val).\n    replace(/%3A/gi, ':').\n    replace(/%24/g, '$').\n    replace(/%2C/gi, ',').\n    replace(/%20/g, '+').\n    replace(/%5B/gi, '[').\n    replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nfunction buildURL(url, params, options) {\n  /*eslint no-param-reassign:0*/\n  if (!params) {\n    return url;\n  }\n  \n  const _encode = options && options.encode || encode;\n\n  const serializeFn = options && options.serialize;\n\n  let serializedParams;\n\n  if (serializeFn) {\n    serializedParams = serializeFn(params, options);\n  } else {\n    serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isURLSearchParams(params) ?\n      params.toString() :\n      new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](params, options).toString(_encode);\n  }\n\n  if (serializedParams) {\n    const hashmarkIndex = url.indexOf(\"#\");\n\n    if (hashmarkIndex !== -1) {\n      url = url.slice(0, hashmarkIndex);\n    }\n    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n  }\n\n  return url;\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/buildURL.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/combineURLs.js":
/*!*******************************************************!*\
  !*** ./node_modules/axios/lib/helpers/combineURLs.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return combineURLs; });\n\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nfunction combineURLs(baseURL, relativeURL) {\n  return relativeURL\n    ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n    : baseURL;\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/combineURLs.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/cookies.js":
/*!***************************************************!*\
  !*** ./node_modules/axios/lib/helpers/cookies.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isStandardBrowserEnv ?\n\n// Standard browser envs support document.cookie\n  (function standardBrowserEnv() {\n    return {\n      write: function write(name, value, expires, path, domain, secure) {\n        const cookie = [];\n        cookie.push(name + '=' + encodeURIComponent(value));\n\n        if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isNumber(expires)) {\n          cookie.push('expires=' + new Date(expires).toGMTString());\n        }\n\n        if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(path)) {\n          cookie.push('path=' + path);\n        }\n\n        if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(domain)) {\n          cookie.push('domain=' + domain);\n        }\n\n        if (secure === true) {\n          cookie.push('secure');\n        }\n\n        document.cookie = cookie.join('; ');\n      },\n\n      read: function read(name) {\n        const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n        return (match ? decodeURIComponent(match[3]) : null);\n      },\n\n      remove: function remove(name) {\n        this.write(name, '', Date.now() - 86400000);\n      }\n    };\n  })() :\n\n// Non standard browser env (web workers, react-native) lack needed support.\n  (function nonStandardBrowserEnv() {\n    return {\n      write: function write() {},\n      read: function read() { return null; },\n      remove: function remove() {}\n    };\n  })());\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/cookies.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/formDataToJSON.js":
/*!**********************************************************!*\
  !*** ./node_modules/axios/lib/helpers/formDataToJSON.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n  // foo[x][y][z]\n  // foo.x.y.z\n  // foo-x-y-z\n  // foo x y z\n  return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n    return match[0] === '[]' ? '' : match[1] || match[0];\n  });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n  const obj = {};\n  const keys = Object.keys(arr);\n  let i;\n  const len = keys.length;\n  let key;\n  for (i = 0; i < len; i++) {\n    key = keys[i];\n    obj[key] = arr[key];\n  }\n  return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n  function buildPath(path, value, target, index) {\n    let name = path[index++];\n    const isNumericKey = Number.isFinite(+name);\n    const isLast = index >= path.length;\n    name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(target) ? target.length : name;\n\n    if (isLast) {\n      if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasOwnProp(target, name)) {\n        target[name] = [target[name], value];\n      } else {\n        target[name] = value;\n      }\n\n      return !isNumericKey;\n    }\n\n    if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(target[name])) {\n      target[name] = [];\n    }\n\n    const result = buildPath(path, value, target[name], index);\n\n    if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(target[name])) {\n      target[name] = arrayToObject(target[name]);\n    }\n\n    return !isNumericKey;\n  }\n\n  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(formData.entries)) {\n    const obj = {};\n\n    _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEachEntry(formData, (name, value) => {\n      buildPath(parsePropPath(name), value, obj, 0);\n    });\n\n    return obj;\n  }\n\n  return null;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (formDataToJSON);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/formDataToJSON.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
/*!*********************************************************!*\
  !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return isAbsoluteURL; });\n\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nfunction isAbsoluteURL(url) {\n  // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n  // by any combination of letters, digits, plus, period, or hyphen.\n  return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/isAbsoluteURL.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/isAxiosError.js":
/*!********************************************************!*\
  !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return isAxiosError; });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nfunction isAxiosError(payload) {\n  return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(payload) && (payload.isAxiosError === true);\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/isAxiosError.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
/*!***********************************************************!*\
  !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n  (function standardBrowserEnv() {\n    const msie = /(msie|trident)/i.test(navigator.userAgent);\n    const urlParsingNode = document.createElement('a');\n    let originURL;\n\n    /**\n    * Parse a URL to discover it's components\n    *\n    * @param {String} url The URL to be parsed\n    * @returns {Object}\n    */\n    function resolveURL(url) {\n      let href = url;\n\n      if (msie) {\n        // IE needs attribute set twice to normalize properties\n        urlParsingNode.setAttribute('href', href);\n        href = urlParsingNode.href;\n      }\n\n      urlParsingNode.setAttribute('href', href);\n\n      // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n      return {\n        href: urlParsingNode.href,\n        protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n        host: urlParsingNode.host,\n        search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n        hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n        hostname: urlParsingNode.hostname,\n        port: urlParsingNode.port,\n        pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n          urlParsingNode.pathname :\n          '/' + urlParsingNode.pathname\n      };\n    }\n\n    originURL = resolveURL(window.location.href);\n\n    /**\n    * Determine if a URL shares the same origin as the current location\n    *\n    * @param {String} requestURL The URL to test\n    * @returns {boolean} True if URL shares the same origin, otherwise false\n    */\n    return function isURLSameOrigin(requestURL) {\n      const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n      return (parsed.protocol === originURL.protocol &&\n          parsed.host === originURL.host);\n    };\n  })() :\n\n  // Non standard browser envs (web workers, react-native) lack needed support.\n  (function nonStandardBrowserEnv() {\n    return function isURLSameOrigin() {\n      return true;\n    };\n  })());\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/isURLSameOrigin.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/null.js":
/*!************************************************!*\
  !*** ./node_modules/axios/lib/helpers/null.js ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// eslint-disable-next-line strict\n/* harmony default export */ __webpack_exports__[\"default\"] = (null);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/null.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
/*!********************************************************!*\
  !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toObjectSet([\n  'age', 'authorization', 'content-length', 'content-type', 'etag',\n  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n  'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n  'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\n/* harmony default export */ __webpack_exports__[\"default\"] = (rawHeaders => {\n  const parsed = {};\n  let key;\n  let val;\n  let i;\n\n  rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n    i = line.indexOf(':');\n    key = line.substring(0, i).trim().toLowerCase();\n    val = line.substring(i + 1).trim();\n\n    if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n      return;\n    }\n\n    if (key === 'set-cookie') {\n      if (parsed[key]) {\n        parsed[key].push(val);\n      } else {\n        parsed[key] = [val];\n      }\n    } else {\n      parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n    }\n  });\n\n  return parsed;\n});\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/parseHeaders.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/parseProtocol.js":
/*!*********************************************************!*\
  !*** ./node_modules/axios/lib/helpers/parseProtocol.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return parseProtocol; });\n\n\nfunction parseProtocol(url) {\n  const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n  return match && match[1] || '';\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/parseProtocol.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/speedometer.js":
/*!*******************************************************!*\
  !*** ./node_modules/axios/lib/helpers/speedometer.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n  samplesCount = samplesCount || 10;\n  const bytes = new Array(samplesCount);\n  const timestamps = new Array(samplesCount);\n  let head = 0;\n  let tail = 0;\n  let firstSampleTS;\n\n  min = min !== undefined ? min : 1000;\n\n  return function push(chunkLength) {\n    const now = Date.now();\n\n    const startedAt = timestamps[tail];\n\n    if (!firstSampleTS) {\n      firstSampleTS = now;\n    }\n\n    bytes[head] = chunkLength;\n    timestamps[head] = now;\n\n    let i = tail;\n    let bytesCount = 0;\n\n    while (i !== head) {\n      bytesCount += bytes[i++];\n      i = i % samplesCount;\n    }\n\n    head = (head + 1) % samplesCount;\n\n    if (head === tail) {\n      tail = (tail + 1) % samplesCount;\n    }\n\n    if (now - firstSampleTS < min) {\n      return;\n    }\n\n    const passed = startedAt && now - startedAt;\n\n    return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n  };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (speedometer);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/speedometer.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/spread.js":
/*!**************************************************!*\
  !*** ./node_modules/axios/lib/helpers/spread.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return spread; });\n\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n *  ```js\n *  function f(x, y, z) {}\n *  var args = [1, 2, 3];\n *  f.apply(null, args);\n *  ```\n *\n * With `spread` this example can be re-written.\n *\n *  ```js\n *  spread(function(x, y, z) {})([1, 2, 3]);\n *  ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nfunction spread(callback) {\n  return function wrap(arr) {\n    return callback.apply(null, arr);\n  };\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/spread.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/toFormData.js":
/*!******************************************************!*\
  !*** ./node_modules/axios/lib/helpers/toFormData.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ \"./node_modules/axios/lib/helpers/null.js\");\n\n\n\n\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\n\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n  return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n  return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n  if (!path) return key;\n  return path.concat(key).map(function each(token, i) {\n    // eslint-disable-next-line no-param-reassign\n    token = removeBrackets(token);\n    return !dots && i ? '[' + token + ']' : token;\n  }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n  return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {}, null, function filter(prop) {\n  return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n  if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(obj)) {\n    throw new TypeError('target must be an object');\n  }\n\n  // eslint-disable-next-line no-param-reassign\n  formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"] || FormData)();\n\n  // eslint-disable-next-line no-param-reassign\n  options = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(options, {\n    metaTokens: true,\n    dots: false,\n    indexes: false\n  }, false, function defined(option, source) {\n    // eslint-disable-next-line no-eq-null,eqeqeq\n    return !_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(source[option]);\n  });\n\n  const metaTokens = options.metaTokens;\n  // eslint-disable-next-line no-use-before-define\n  const visitor = options.visitor || defaultVisitor;\n  const dots = options.dots;\n  const indexes = options.indexes;\n  const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n  const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isSpecCompliantForm(formData);\n\n  if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(visitor)) {\n    throw new TypeError('visitor must be a function');\n  }\n\n  function convertValue(value) {\n    if (value === null) return '';\n\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isDate(value)) {\n      return value.toISOString();\n    }\n\n    if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBlob(value)) {\n      throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('Blob is not supported. Use a Buffer instead.');\n    }\n\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isTypedArray(value)) {\n      return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n    }\n\n    return value;\n  }\n\n  /**\n   * Default visitor.\n   *\n   * @param {*} value\n   * @param {String|Number} key\n   * @param {Array<String|Number>} path\n   * @this {FormData}\n   *\n   * @returns {boolean} return true to visit the each prop of the value recursively\n   */\n  function defaultVisitor(value, key, path) {\n    let arr = value;\n\n    if (value && !path && typeof value === 'object') {\n      if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '{}')) {\n        // eslint-disable-next-line no-param-reassign\n        key = metaTokens ? key : key.slice(0, -2);\n        // eslint-disable-next-line no-param-reassign\n        value = JSON.stringify(value);\n      } else if (\n        (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) && isFlatArray(value)) ||\n        ((_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toArray(value))\n        )) {\n        // eslint-disable-next-line no-param-reassign\n        key = removeBrackets(key);\n\n        arr.forEach(function each(el, index) {\n          !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(el) || el === null) && formData.append(\n            // eslint-disable-next-line no-nested-ternary\n            indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n            convertValue(el)\n          );\n        });\n        return false;\n      }\n    }\n\n    if (isVisitable(value)) {\n      return true;\n    }\n\n    formData.append(renderKey(path, key, dots), convertValue(value));\n\n    return false;\n  }\n\n  const stack = [];\n\n  const exposedHelpers = Object.assign(predicates, {\n    defaultVisitor,\n    convertValue,\n    isVisitable\n  });\n\n  function build(value, path) {\n    if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(value)) return;\n\n    if (stack.indexOf(value) !== -1) {\n      throw Error('Circular reference detected in ' + path.join('.'));\n    }\n\n    stack.push(value);\n\n    _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(value, function each(el, key) {\n      const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(el) || el === null) && visitor.call(\n        formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(key) ? key.trim() : key, path, exposedHelpers\n      );\n\n      if (result === true) {\n        build(el, path ? path.concat(key) : [key]);\n      }\n    });\n\n    stack.pop();\n  }\n\n  if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(obj)) {\n    throw new TypeError('data must be an object');\n  }\n\n  build(obj);\n\n  return formData;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (toFormData);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ \"./node_modules/buffer/index.js\").Buffer))\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/toFormData.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/toURLEncodedForm.js":
/*!************************************************************!*\
  !*** ./node_modules/axios/lib/helpers/toURLEncodedForm.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return toURLEncodedForm; });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n\nfunction toURLEncodedForm(data, options) {\n  return Object(_toFormData_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].classes.URLSearchParams(), Object.assign({\n    visitor: function(value, key, path, helpers) {\n      if (_platform_index_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBuffer(value)) {\n        this.append(key, value.toString('base64'));\n        return false;\n      }\n\n      return helpers.defaultVisitor.apply(this, arguments);\n    }\n  }, options));\n}\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/toURLEncodedForm.js?");

/***/ }),

/***/ "./node_modules/axios/lib/helpers/validator.js":
/*!*****************************************************!*\
  !*** ./node_modules/axios/lib/helpers/validator.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ \"./node_modules/axios/lib/env/data.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n  validators[type] = function validator(thing) {\n    return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n  };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n  function formatMessage(opt, desc) {\n    return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__[\"VERSION\"] + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n  }\n\n  // eslint-disable-next-line func-names\n  return (value, opt, opts) => {\n    if (validator === false) {\n      throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](\n        formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n        _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_DEPRECATED\n      );\n    }\n\n    if (version && !deprecatedWarnings[opt]) {\n      deprecatedWarnings[opt] = true;\n      // eslint-disable-next-line no-console\n      console.warn(\n        formatMessage(\n          opt,\n          ' has been deprecated since v' + version + ' and will be removed in the near future'\n        )\n      );\n    }\n\n    return validator ? validator(value, opt, opts) : true;\n  };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n  if (typeof options !== 'object') {\n    throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION_VALUE);\n  }\n  const keys = Object.keys(options);\n  let i = keys.length;\n  while (i-- > 0) {\n    const opt = keys[i];\n    const validator = schema[opt];\n    if (validator) {\n      const value = options[opt];\n      const result = value === undefined || validator(value, opt, options);\n      if (result !== true) {\n        throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION_VALUE);\n      }\n      continue;\n    }\n    if (allowUnknown !== true) {\n      throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION);\n    }\n  }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  assertOptions,\n  validators\n});\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/helpers/validator.js?");

/***/ }),

/***/ "./node_modules/axios/lib/platform/browser/classes/Blob.js":
/*!*****************************************************************!*\
  !*** ./node_modules/axios/lib/platform/browser/classes/Blob.js ***!
  \*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof Blob !== 'undefined' ? Blob : null);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/platform/browser/classes/Blob.js?");

/***/ }),

/***/ "./node_modules/axios/lib/platform/browser/classes/FormData.js":
/*!*********************************************************************!*\
  !*** ./node_modules/axios/lib/platform/browser/classes/FormData.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof FormData !== 'undefined' ? FormData : null);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/platform/browser/classes/FormData.js?");

/***/ }),

/***/ "./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js":
/*!****************************************************************************!*\
  !*** ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ \"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js?");

/***/ }),

/***/ "./node_modules/axios/lib/platform/browser/index.js":
/*!**********************************************************!*\
  !*** ./node_modules/axios/lib/platform/browser/index.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ \"./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js\");\n/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ \"./node_modules/axios/lib/platform/browser/classes/FormData.js\");\n/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ \"./node_modules/axios/lib/platform/browser/classes/Blob.js\");\n\n\n\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n *  typeof window -> undefined\n *  typeof document -> undefined\n *\n * react-native:\n *  navigator.product -> 'ReactNative'\n * nativescript\n *  navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst isStandardBrowserEnv = (() => {\n  let product;\n  if (typeof navigator !== 'undefined' && (\n    (product = navigator.product) === 'ReactNative' ||\n    product === 'NativeScript' ||\n    product === 'NS')\n  ) {\n    return false;\n  }\n\n  return typeof window !== 'undefined' && typeof document !== 'undefined';\n})();\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\n const isStandardBrowserWebWorkerEnv = (() => {\n  return (\n    typeof WorkerGlobalScope !== 'undefined' &&\n    // eslint-disable-next-line no-undef\n    self instanceof WorkerGlobalScope &&\n    typeof self.importScripts === 'function'\n  );\n})();\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  isBrowser: true,\n  classes: {\n    URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n    FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n    Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n  },\n  isStandardBrowserEnv,\n  isStandardBrowserWebWorkerEnv,\n  protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n});\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/platform/browser/index.js?");

/***/ }),

/***/ "./node_modules/axios/lib/platform/index.js":
/*!**************************************************!*\
  !*** ./node_modules/axios/lib/platform/index.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node/index.js */ \"./node_modules/axios/lib/platform/browser/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return _node_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n\n\n\n\n\n//# sourceURL=webpack:///./node_modules/axios/lib/platform/index.js?");

/***/ }),

/***/ "./node_modules/axios/lib/utils.js":
/*!*****************************************!*\
  !*** ./node_modules/axios/lib/utils.js ***!
  \*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ \"./node_modules/axios/lib/helpers/bind.js\");\n\n\n\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n    const str = toString.call(thing);\n    return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n  type = type.toLowerCase();\n  return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n    && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n  let result;\n  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n    result = ArrayBuffer.isView(val);\n  } else {\n    result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n  }\n  return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n  if (kindOf(val) !== 'object') {\n    return false;\n  }\n\n  const prototype = getPrototypeOf(val);\n  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n  let kind;\n  return thing && (\n    (typeof FormData === 'function' && thing instanceof FormData) || (\n      isFunction(thing.append) && (\n        (kind = kindOf(thing)) === 'formdata' ||\n        // detect form-data instance\n        (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n      )\n    )\n  )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n  str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n  // Don't bother if no value provided\n  if (obj === null || typeof obj === 'undefined') {\n    return;\n  }\n\n  let i;\n  let l;\n\n  // Force an array if not already something iterable\n  if (typeof obj !== 'object') {\n    /*eslint no-param-reassign:0*/\n    obj = [obj];\n  }\n\n  if (isArray(obj)) {\n    // Iterate over array values\n    for (i = 0, l = obj.length; i < l; i++) {\n      fn.call(null, obj[i], i, obj);\n    }\n  } else {\n    // Iterate over object keys\n    const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n    const len = keys.length;\n    let key;\n\n    for (i = 0; i < len; i++) {\n      key = keys[i];\n      fn.call(null, obj[key], key, obj);\n    }\n  }\n}\n\nfunction findKey(obj, key) {\n  key = key.toLowerCase();\n  const keys = Object.keys(obj);\n  let i = keys.length;\n  let _key;\n  while (i-- > 0) {\n    _key = keys[i];\n    if (key === _key.toLowerCase()) {\n      return _key;\n    }\n  }\n  return null;\n}\n\nconst _global = (() => {\n  /*eslint no-undef:0*/\n  if (typeof globalThis !== \"undefined\") return globalThis;\n  return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n  const {caseless} = isContextDefined(this) && this || {};\n  const result = {};\n  const assignValue = (val, key) => {\n    const targetKey = caseless && findKey(result, key) || key;\n    if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n      result[targetKey] = merge(result[targetKey], val);\n    } else if (isPlainObject(val)) {\n      result[targetKey] = merge({}, val);\n    } else if (isArray(val)) {\n      result[targetKey] = val.slice();\n    } else {\n      result[targetKey] = val;\n    }\n  }\n\n  for (let i = 0, l = arguments.length; i < l; i++) {\n    arguments[i] && forEach(arguments[i], assignValue);\n  }\n  return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n  forEach(b, (val, key) => {\n    if (thisArg && isFunction(val)) {\n      a[key] = Object(_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(val, thisArg);\n    } else {\n      a[key] = val;\n    }\n  }, {allOwnKeys});\n  return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n  if (content.charCodeAt(0) === 0xFEFF) {\n    content = content.slice(1);\n  }\n  return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n  constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n  constructor.prototype.constructor = constructor;\n  Object.defineProperty(constructor, 'super', {\n    value: superConstructor.prototype\n  });\n  props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n  let props;\n  let i;\n  let prop;\n  const merged = {};\n\n  destObj = destObj || {};\n  // eslint-disable-next-line no-eq-null,eqeqeq\n  if (sourceObj == null) return destObj;\n\n  do {\n    props = Object.getOwnPropertyNames(sourceObj);\n    i = props.length;\n    while (i-- > 0) {\n      prop = props[i];\n      if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n        destObj[prop] = sourceObj[prop];\n        merged[prop] = true;\n      }\n    }\n    sourceObj = filter !== false && getPrototypeOf(sourceObj);\n  } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n  return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n  str = String(str);\n  if (position === undefined || position > str.length) {\n    position = str.length;\n  }\n  position -= searchString.length;\n  const lastIndex = str.indexOf(searchString, position);\n  return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n  if (!thing) return null;\n  if (isArray(thing)) return thing;\n  let i = thing.length;\n  if (!isNumber(i)) return null;\n  const arr = new Array(i);\n  while (i-- > 0) {\n    arr[i] = thing[i];\n  }\n  return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n  // eslint-disable-next-line func-names\n  return thing => {\n    return TypedArray && thing instanceof TypedArray;\n  };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n  const generator = obj && obj[Symbol.iterator];\n\n  const iterator = generator.call(obj);\n\n  let result;\n\n  while ((result = iterator.next()) && !result.done) {\n    const pair = result.value;\n    fn.call(obj, pair[0], pair[1]);\n  }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n  let matches;\n  const arr = [];\n\n  while ((matches = regExp.exec(str)) !== null) {\n    arr.push(matches);\n  }\n\n  return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n  return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n    function replacer(m, p1, p2) {\n      return p1.toUpperCase() + p2;\n    }\n  );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n  const descriptors = Object.getOwnPropertyDescriptors(obj);\n  const reducedDescriptors = {};\n\n  forEach(descriptors, (descriptor, name) => {\n    if (reducer(descriptor, name, obj) !== false) {\n      reducedDescriptors[name] = descriptor;\n    }\n  });\n\n  Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n  reduceDescriptors(obj, (descriptor, name) => {\n    // skip restricted props in strict mode\n    if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n      return false;\n    }\n\n    const value = obj[name];\n\n    if (!isFunction(value)) return;\n\n    descriptor.enumerable = false;\n\n    if ('writable' in descriptor) {\n      descriptor.writable = false;\n      return;\n    }\n\n    if (!descriptor.set) {\n      descriptor.set = () => {\n        throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n      };\n    }\n  });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n  const obj = {};\n\n  const define = (arr) => {\n    arr.forEach(value => {\n      obj[value] = true;\n    });\n  }\n\n  isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n  return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n  value = +value;\n  return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n  DIGIT,\n  ALPHA,\n  ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n  let str = '';\n  const {length} = alphabet;\n  while (size--) {\n    str += alphabet[Math.random() * length|0]\n  }\n\n  return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n  return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n  const stack = new Array(10);\n\n  const visit = (source, i) => {\n\n    if (isObject(source)) {\n      if (stack.indexOf(source) >= 0) {\n        return;\n      }\n\n      if(!('toJSON' in source)) {\n        stack[i] = source;\n        const target = isArray(source) ? [] : {};\n\n        forEach(source, (value, key) => {\n          const reducedValue = visit(value, i + 1);\n          !isUndefined(reducedValue) && (target[key] = reducedValue);\n        });\n\n        stack[i] = undefined;\n\n        return target;\n      }\n    }\n\n    return source;\n  }\n\n  return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n  thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  isArray,\n  isArrayBuffer,\n  isBuffer,\n  isFormData,\n  isArrayBufferView,\n  isString,\n  isNumber,\n  isBoolean,\n  isObject,\n  isPlainObject,\n  isUndefined,\n  isDate,\n  isFile,\n  isBlob,\n  isRegExp,\n  isFunction,\n  isStream,\n  isURLSearchParams,\n  isTypedArray,\n  isFileList,\n  forEach,\n  merge,\n  extend,\n  trim,\n  stripBOM,\n  inherits,\n  toFlatObject,\n  kindOf,\n  kindOfTest,\n  endsWith,\n  toArray,\n  forEachEntry,\n  matchAll,\n  isHTMLForm,\n  hasOwnProperty,\n  hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n  reduceDescriptors,\n  freezeMethods,\n  toObjectSet,\n  toCamelCase,\n  noop,\n  toFiniteNumber,\n  findKey,\n  global: _global,\n  isContextDefined,\n  ALPHABET,\n  generateString,\n  isSpecCompliantForm,\n  toJSONObject,\n  isAsyncFn,\n  isThenable\n});\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/axios/lib/utils.js?");

/***/ }),

/***/ "./node_modules/base64-js/index.js":
/*!*****************************************!*\
  !*** ./node_modules/base64-js/index.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n  lookup[i] = code[i]\n  revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n  var len = b64.length\n\n  if (len % 4 > 0) {\n    throw new Error('Invalid string. Length must be a multiple of 4')\n  }\n\n  // Trim off extra bytes after placeholder bytes are found\n  // See: https://github.com/beatgammit/base64-js/issues/42\n  var validLen = b64.indexOf('=')\n  if (validLen === -1) validLen = len\n\n  var placeHoldersLen = validLen === len\n    ? 0\n    : 4 - (validLen % 4)\n\n  return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n  var lens = getLens(b64)\n  var validLen = lens[0]\n  var placeHoldersLen = lens[1]\n  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n  var tmp\n  var lens = getLens(b64)\n  var validLen = lens[0]\n  var placeHoldersLen = lens[1]\n\n  var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n  var curByte = 0\n\n  // if there are placeholders, only get up to the last complete 4 chars\n  var len = placeHoldersLen > 0\n    ? validLen - 4\n    : validLen\n\n  var i\n  for (i = 0; i < len; i += 4) {\n    tmp =\n      (revLookup[b64.charCodeAt(i)] << 18) |\n      (revLookup[b64.charCodeAt(i + 1)] << 12) |\n      (revLookup[b64.charCodeAt(i + 2)] << 6) |\n      revLookup[b64.charCodeAt(i + 3)]\n    arr[curByte++] = (tmp >> 16) & 0xFF\n    arr[curByte++] = (tmp >> 8) & 0xFF\n    arr[curByte++] = tmp & 0xFF\n  }\n\n  if (placeHoldersLen === 2) {\n    tmp =\n      (revLookup[b64.charCodeAt(i)] << 2) |\n      (revLookup[b64.charCodeAt(i + 1)] >> 4)\n    arr[curByte++] = tmp & 0xFF\n  }\n\n  if (placeHoldersLen === 1) {\n    tmp =\n      (revLookup[b64.charCodeAt(i)] << 10) |\n      (revLookup[b64.charCodeAt(i + 1)] << 4) |\n      (revLookup[b64.charCodeAt(i + 2)] >> 2)\n    arr[curByte++] = (tmp >> 8) & 0xFF\n    arr[curByte++] = tmp & 0xFF\n  }\n\n  return arr\n}\n\nfunction tripletToBase64 (num) {\n  return lookup[num >> 18 & 0x3F] +\n    lookup[num >> 12 & 0x3F] +\n    lookup[num >> 6 & 0x3F] +\n    lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n  var tmp\n  var output = []\n  for (var i = start; i < end; i += 3) {\n    tmp =\n      ((uint8[i] << 16) & 0xFF0000) +\n      ((uint8[i + 1] << 8) & 0xFF00) +\n      (uint8[i + 2] & 0xFF)\n    output.push(tripletToBase64(tmp))\n  }\n  return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n  var tmp\n  var len = uint8.length\n  var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n  var parts = []\n  var maxChunkLength = 16383 // must be multiple of 3\n\n  // go through the array every three bytes, we'll deal with trailing stuff later\n  for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n    parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n  }\n\n  // pad the end with zeros, but make sure to not forget the extra bytes\n  if (extraBytes === 1) {\n    tmp = uint8[len - 1]\n    parts.push(\n      lookup[tmp >> 2] +\n      lookup[(tmp << 4) & 0x3F] +\n      '=='\n    )\n  } else if (extraBytes === 2) {\n    tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n    parts.push(\n      lookup[tmp >> 10] +\n      lookup[(tmp >> 4) & 0x3F] +\n      lookup[(tmp << 2) & 0x3F] +\n      '='\n    )\n  }\n\n  return parts.join('')\n}\n\n\n//# sourceURL=webpack:///./node_modules/base64-js/index.js?");

/***/ }),

/***/ "./node_modules/buffer/index.js":
/*!**************************************!*\
  !*** ./node_modules/buffer/index.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("/* WEBPACK VAR INJECTION */(function(global) {/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <http://feross.org>\n * @license  MIT\n */\n/* eslint-disable no-proto */\n\n\n\nvar base64 = __webpack_require__(/*! base64-js */ \"./node_modules/base64-js/index.js\")\nvar ieee754 = __webpack_require__(/*! ieee754 */ \"./node_modules/ieee754/index.js\")\nvar isArray = __webpack_require__(/*! isarray */ \"./node_modules/isarray/index.js\")\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n *   === true    Use Uint8Array implementation (fastest)\n *   === false   Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n *     incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n  ? global.TYPED_ARRAY_SUPPORT\n  : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n  try {\n    var arr = new Uint8Array(1)\n    arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n    return arr.foo() === 42 && // typed array instances can be augmented\n        typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n        arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n  } catch (e) {\n    return false\n  }\n}\n\nfunction kMaxLength () {\n  return Buffer.TYPED_ARRAY_SUPPORT\n    ? 0x7fffffff\n    : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n  if (kMaxLength() < length) {\n    throw new RangeError('Invalid typed array length')\n  }\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    // Return an augmented `Uint8Array` instance, for best performance\n    that = new Uint8Array(length)\n    that.__proto__ = Buffer.prototype\n  } else {\n    // Fallback: Return an object instance of the Buffer class\n    if (that === null) {\n      that = new Buffer(length)\n    }\n    that.length = length\n  }\n\n  return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n  if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n    return new Buffer(arg, encodingOrOffset, length)\n  }\n\n  // Common case.\n  if (typeof arg === 'number') {\n    if (typeof encodingOrOffset === 'string') {\n      throw new Error(\n        'If encoding is specified then the first argument must be a string'\n      )\n    }\n    return allocUnsafe(this, arg)\n  }\n  return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n  arr.__proto__ = Buffer.prototype\n  return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n  if (typeof value === 'number') {\n    throw new TypeError('\"value\" argument must not be a number')\n  }\n\n  if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n    return fromArrayBuffer(that, value, encodingOrOffset, length)\n  }\n\n  if (typeof value === 'string') {\n    return fromString(that, value, encodingOrOffset)\n  }\n\n  return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n  return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n  Buffer.prototype.__proto__ = Uint8Array.prototype\n  Buffer.__proto__ = Uint8Array\n  if (typeof Symbol !== 'undefined' && Symbol.species &&\n      Buffer[Symbol.species] === Buffer) {\n    // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n    Object.defineProperty(Buffer, Symbol.species, {\n      value: null,\n      configurable: true\n    })\n  }\n}\n\nfunction assertSize (size) {\n  if (typeof size !== 'number') {\n    throw new TypeError('\"size\" argument must be a number')\n  } else if (size < 0) {\n    throw new RangeError('\"size\" argument must not be negative')\n  }\n}\n\nfunction alloc (that, size, fill, encoding) {\n  assertSize(size)\n  if (size <= 0) {\n    return createBuffer(that, size)\n  }\n  if (fill !== undefined) {\n    // Only pay attention to encoding if it's a string. This\n    // prevents accidentally sending in a number that would\n    // be interpretted as a start offset.\n    return typeof encoding === 'string'\n      ? createBuffer(that, size).fill(fill, encoding)\n      : createBuffer(that, size).fill(fill)\n  }\n  return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n  return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n  assertSize(size)\n  that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n  if (!Buffer.TYPED_ARRAY_SUPPORT) {\n    for (var i = 0; i < size; ++i) {\n      that[i] = 0\n    }\n  }\n  return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n  return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n  return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n  if (typeof encoding !== 'string' || encoding === '') {\n    encoding = 'utf8'\n  }\n\n  if (!Buffer.isEncoding(encoding)) {\n    throw new TypeError('\"encoding\" must be a valid string encoding')\n  }\n\n  var length = byteLength(string, encoding) | 0\n  that = createBuffer(that, length)\n\n  var actual = that.write(string, encoding)\n\n  if (actual !== length) {\n    // Writing a hex string, for example, that contains invalid characters will\n    // cause everything after the first invalid character to be ignored. (e.g.\n    // 'abxxcd' will be treated as 'ab')\n    that = that.slice(0, actual)\n  }\n\n  return that\n}\n\nfunction fromArrayLike (that, array) {\n  var length = array.length < 0 ? 0 : checked(array.length) | 0\n  that = createBuffer(that, length)\n  for (var i = 0; i < length; i += 1) {\n    that[i] = array[i] & 255\n  }\n  return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n  array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n  if (byteOffset < 0 || array.byteLength < byteOffset) {\n    throw new RangeError('\\'offset\\' is out of bounds')\n  }\n\n  if (array.byteLength < byteOffset + (length || 0)) {\n    throw new RangeError('\\'length\\' is out of bounds')\n  }\n\n  if (byteOffset === undefined && length === undefined) {\n    array = new Uint8Array(array)\n  } else if (length === undefined) {\n    array = new Uint8Array(array, byteOffset)\n  } else {\n    array = new Uint8Array(array, byteOffset, length)\n  }\n\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    // Return an augmented `Uint8Array` instance, for best performance\n    that = array\n    that.__proto__ = Buffer.prototype\n  } else {\n    // Fallback: Return an object instance of the Buffer class\n    that = fromArrayLike(that, array)\n  }\n  return that\n}\n\nfunction fromObject (that, obj) {\n  if (Buffer.isBuffer(obj)) {\n    var len = checked(obj.length) | 0\n    that = createBuffer(that, len)\n\n    if (that.length === 0) {\n      return that\n    }\n\n    obj.copy(that, 0, 0, len)\n    return that\n  }\n\n  if (obj) {\n    if ((typeof ArrayBuffer !== 'undefined' &&\n        obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n      if (typeof obj.length !== 'number' || isnan(obj.length)) {\n        return createBuffer(that, 0)\n      }\n      return fromArrayLike(that, obj)\n    }\n\n    if (obj.type === 'Buffer' && isArray(obj.data)) {\n      return fromArrayLike(that, obj.data)\n    }\n  }\n\n  throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n  // Note: cannot use `length < kMaxLength()` here because that fails when\n  // length is NaN (which is otherwise coerced to zero.)\n  if (length >= kMaxLength()) {\n    throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n                         'size: 0x' + kMaxLength().toString(16) + ' bytes')\n  }\n  return length | 0\n}\n\nfunction SlowBuffer (length) {\n  if (+length != length) { // eslint-disable-line eqeqeq\n    length = 0\n  }\n  return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n  return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n    throw new TypeError('Arguments must be Buffers')\n  }\n\n  if (a === b) return 0\n\n  var x = a.length\n  var y = b.length\n\n  for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n    if (a[i] !== b[i]) {\n      x = a[i]\n      y = b[i]\n      break\n    }\n  }\n\n  if (x < y) return -1\n  if (y < x) return 1\n  return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n  switch (String(encoding).toLowerCase()) {\n    case 'hex':\n    case 'utf8':\n    case 'utf-8':\n    case 'ascii':\n    case 'latin1':\n    case 'binary':\n    case 'base64':\n    case 'ucs2':\n    case 'ucs-2':\n    case 'utf16le':\n    case 'utf-16le':\n      return true\n    default:\n      return false\n  }\n}\n\nBuffer.concat = function concat (list, length) {\n  if (!isArray(list)) {\n    throw new TypeError('\"list\" argument must be an Array of Buffers')\n  }\n\n  if (list.length === 0) {\n    return Buffer.alloc(0)\n  }\n\n  var i\n  if (length === undefined) {\n    length = 0\n    for (i = 0; i < list.length; ++i) {\n      length += list[i].length\n    }\n  }\n\n  var buffer = Buffer.allocUnsafe(length)\n  var pos = 0\n  for (i = 0; i < list.length; ++i) {\n    var buf = list[i]\n    if (!Buffer.isBuffer(buf)) {\n      throw new TypeError('\"list\" argument must be an Array of Buffers')\n    }\n    buf.copy(buffer, pos)\n    pos += buf.length\n  }\n  return buffer\n}\n\nfunction byteLength (string, encoding) {\n  if (Buffer.isBuffer(string)) {\n    return string.length\n  }\n  if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n      (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n    return string.byteLength\n  }\n  if (typeof string !== 'string') {\n    string = '' + string\n  }\n\n  var len = string.length\n  if (len === 0) return 0\n\n  // Use a for loop to avoid recursion\n  var loweredCase = false\n  for (;;) {\n    switch (encoding) {\n      case 'ascii':\n      case 'latin1':\n      case 'binary':\n        return len\n      case 'utf8':\n      case 'utf-8':\n      case undefined:\n        return utf8ToBytes(string).length\n      case 'ucs2':\n      case 'ucs-2':\n      case 'utf16le':\n      case 'utf-16le':\n        return len * 2\n      case 'hex':\n        return len >>> 1\n      case 'base64':\n        return base64ToBytes(string).length\n      default:\n        if (loweredCase) return utf8ToBytes(string).length // assume utf8\n        encoding = ('' + encoding).toLowerCase()\n        loweredCase = true\n    }\n  }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n  var loweredCase = false\n\n  // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n  // property of a typed array.\n\n  // This behaves neither like String nor Uint8Array in that we set start/end\n  // to their upper/lower bounds if the value passed is out of range.\n  // undefined is handled specially as per ECMA-262 6th Edition,\n  // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n  if (start === undefined || start < 0) {\n    start = 0\n  }\n  // Return early if start > this.length. Done here to prevent potential uint32\n  // coercion fail below.\n  if (start > this.length) {\n    return ''\n  }\n\n  if (end === undefined || end > this.length) {\n    end = this.length\n  }\n\n  if (end <= 0) {\n    return ''\n  }\n\n  // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n  end >>>= 0\n  start >>>= 0\n\n  if (end <= start) {\n    return ''\n  }\n\n  if (!encoding) encoding = 'utf8'\n\n  while (true) {\n    switch (encoding) {\n      case 'hex':\n        return hexSlice(this, start, end)\n\n      case 'utf8':\n      case 'utf-8':\n        return utf8Slice(this, start, end)\n\n      case 'ascii':\n        return asciiSlice(this, start, end)\n\n      case 'latin1':\n      case 'binary':\n        return latin1Slice(this, start, end)\n\n      case 'base64':\n        return base64Slice(this, start, end)\n\n      case 'ucs2':\n      case 'ucs-2':\n      case 'utf16le':\n      case 'utf-16le':\n        return utf16leSlice(this, start, end)\n\n      default:\n        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n        encoding = (encoding + '').toLowerCase()\n        loweredCase = true\n    }\n  }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n  var i = b[n]\n  b[n] = b[m]\n  b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n  var len = this.length\n  if (len % 2 !== 0) {\n    throw new RangeError('Buffer size must be a multiple of 16-bits')\n  }\n  for (var i = 0; i < len; i += 2) {\n    swap(this, i, i + 1)\n  }\n  return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n  var len = this.length\n  if (len % 4 !== 0) {\n    throw new RangeError('Buffer size must be a multiple of 32-bits')\n  }\n  for (var i = 0; i < len; i += 4) {\n    swap(this, i, i + 3)\n    swap(this, i + 1, i + 2)\n  }\n  return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n  var len = this.length\n  if (len % 8 !== 0) {\n    throw new RangeError('Buffer size must be a multiple of 64-bits')\n  }\n  for (var i = 0; i < len; i += 8) {\n    swap(this, i, i + 7)\n    swap(this, i + 1, i + 6)\n    swap(this, i + 2, i + 5)\n    swap(this, i + 3, i + 4)\n  }\n  return this\n}\n\nBuffer.prototype.toString = function toString () {\n  var length = this.length | 0\n  if (length === 0) return ''\n  if (arguments.length === 0) return utf8Slice(this, 0, length)\n  return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n  if (this === b) return true\n  return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n  var str = ''\n  var max = exports.INSPECT_MAX_BYTES\n  if (this.length > 0) {\n    str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n    if (this.length > max) str += ' ... '\n  }\n  return '<Buffer ' + str + '>'\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n  if (!Buffer.isBuffer(target)) {\n    throw new TypeError('Argument must be a Buffer')\n  }\n\n  if (start === undefined) {\n    start = 0\n  }\n  if (end === undefined) {\n    end = target ? target.length : 0\n  }\n  if (thisStart === undefined) {\n    thisStart = 0\n  }\n  if (thisEnd === undefined) {\n    thisEnd = this.length\n  }\n\n  if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n    throw new RangeError('out of range index')\n  }\n\n  if (thisStart >= thisEnd && start >= end) {\n    return 0\n  }\n  if (thisStart >= thisEnd) {\n    return -1\n  }\n  if (start >= end) {\n    return 1\n  }\n\n  start >>>= 0\n  end >>>= 0\n  thisStart >>>= 0\n  thisEnd >>>= 0\n\n  if (this === target) return 0\n\n  var x = thisEnd - thisStart\n  var y = end - start\n  var len = Math.min(x, y)\n\n  var thisCopy = this.slice(thisStart, thisEnd)\n  var targetCopy = target.slice(start, end)\n\n  for (var i = 0; i < len; ++i) {\n    if (thisCopy[i] !== targetCopy[i]) {\n      x = thisCopy[i]\n      y = targetCopy[i]\n      break\n    }\n  }\n\n  if (x < y) return -1\n  if (y < x) return 1\n  return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n  // Empty buffer means no match\n  if (buffer.length === 0) return -1\n\n  // Normalize byteOffset\n  if (typeof byteOffset === 'string') {\n    encoding = byteOffset\n    byteOffset = 0\n  } else if (byteOffset > 0x7fffffff) {\n    byteOffset = 0x7fffffff\n  } else if (byteOffset < -0x80000000) {\n    byteOffset = -0x80000000\n  }\n  byteOffset = +byteOffset  // Coerce to Number.\n  if (isNaN(byteOffset)) {\n    // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n    byteOffset = dir ? 0 : (buffer.length - 1)\n  }\n\n  // Normalize byteOffset: negative offsets start from the end of the buffer\n  if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n  if (byteOffset >= buffer.length) {\n    if (dir) return -1\n    else byteOffset = buffer.length - 1\n  } else if (byteOffset < 0) {\n    if (dir) byteOffset = 0\n    else return -1\n  }\n\n  // Normalize val\n  if (typeof val === 'string') {\n    val = Buffer.from(val, encoding)\n  }\n\n  // Finally, search either indexOf (if dir is true) or lastIndexOf\n  if (Buffer.isBuffer(val)) {\n    // Special case: looking for empty string/buffer always fails\n    if (val.length === 0) {\n      return -1\n    }\n    return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n  } else if (typeof val === 'number') {\n    val = val & 0xFF // Search for a byte value [0-255]\n    if (Buffer.TYPED_ARRAY_SUPPORT &&\n        typeof Uint8Array.prototype.indexOf === 'function') {\n      if (dir) {\n        return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n      } else {\n        return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n      }\n    }\n    return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n  }\n\n  throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n  var indexSize = 1\n  var arrLength = arr.length\n  var valLength = val.length\n\n  if (encoding !== undefined) {\n    encoding = String(encoding).toLowerCase()\n    if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n        encoding === 'utf16le' || encoding === 'utf-16le') {\n      if (arr.length < 2 || val.length < 2) {\n        return -1\n      }\n      indexSize = 2\n      arrLength /= 2\n      valLength /= 2\n      byteOffset /= 2\n    }\n  }\n\n  function read (buf, i) {\n    if (indexSize === 1) {\n      return buf[i]\n    } else {\n      return buf.readUInt16BE(i * indexSize)\n    }\n  }\n\n  var i\n  if (dir) {\n    var foundIndex = -1\n    for (i = byteOffset; i < arrLength; i++) {\n      if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n        if (foundIndex === -1) foundIndex = i\n        if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n      } else {\n        if (foundIndex !== -1) i -= i - foundIndex\n        foundIndex = -1\n      }\n    }\n  } else {\n    if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n    for (i = byteOffset; i >= 0; i--) {\n      var found = true\n      for (var j = 0; j < valLength; j++) {\n        if (read(arr, i + j) !== read(val, j)) {\n          found = false\n          break\n        }\n      }\n      if (found) return i\n    }\n  }\n\n  return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n  return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n  return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n  return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n  offset = Number(offset) || 0\n  var remaining = buf.length - offset\n  if (!length) {\n    length = remaining\n  } else {\n    length = Number(length)\n    if (length > remaining) {\n      length = remaining\n    }\n  }\n\n  // must be an even number of digits\n  var strLen = string.length\n  if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n  if (length > strLen / 2) {\n    length = strLen / 2\n  }\n  for (var i = 0; i < length; ++i) {\n    var parsed = parseInt(string.substr(i * 2, 2), 16)\n    if (isNaN(parsed)) return i\n    buf[offset + i] = parsed\n  }\n  return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n  return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n  return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n  return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n  return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n  // Buffer#write(string)\n  if (offset === undefined) {\n    encoding = 'utf8'\n    length = this.length\n    offset = 0\n  // Buffer#write(string, encoding)\n  } else if (length === undefined && typeof offset === 'string') {\n    encoding = offset\n    length = this.length\n    offset = 0\n  // Buffer#write(string, offset[, length][, encoding])\n  } else if (isFinite(offset)) {\n    offset = offset | 0\n    if (isFinite(length)) {\n      length = length | 0\n      if (encoding === undefined) encoding = 'utf8'\n    } else {\n      encoding = length\n      length = undefined\n    }\n  // legacy write(string, encoding, offset, length) - remove in v0.13\n  } else {\n    throw new Error(\n      'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n    )\n  }\n\n  var remaining = this.length - offset\n  if (length === undefined || length > remaining) length = remaining\n\n  if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n    throw new RangeError('Attempt to write outside buffer bounds')\n  }\n\n  if (!encoding) encoding = 'utf8'\n\n  var loweredCase = false\n  for (;;) {\n    switch (encoding) {\n      case 'hex':\n        return hexWrite(this, string, offset, length)\n\n      case 'utf8':\n      case 'utf-8':\n        return utf8Write(this, string, offset, length)\n\n      case 'ascii':\n        return asciiWrite(this, string, offset, length)\n\n      case 'latin1':\n      case 'binary':\n        return latin1Write(this, string, offset, length)\n\n      case 'base64':\n        // Warning: maxLength not taken into account in base64Write\n        return base64Write(this, string, offset, length)\n\n      case 'ucs2':\n      case 'ucs-2':\n      case 'utf16le':\n      case 'utf-16le':\n        return ucs2Write(this, string, offset, length)\n\n      default:\n        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n        encoding = ('' + encoding).toLowerCase()\n        loweredCase = true\n    }\n  }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n  return {\n    type: 'Buffer',\n    data: Array.prototype.slice.call(this._arr || this, 0)\n  }\n}\n\nfunction base64Slice (buf, start, end) {\n  if (start === 0 && end === buf.length) {\n    return base64.fromByteArray(buf)\n  } else {\n    return base64.fromByteArray(buf.slice(start, end))\n  }\n}\n\nfunction utf8Slice (buf, start, end) {\n  end = Math.min(buf.length, end)\n  var res = []\n\n  var i = start\n  while (i < end) {\n    var firstByte = buf[i]\n    var codePoint = null\n    var bytesPerSequence = (firstByte > 0xEF) ? 4\n      : (firstByte > 0xDF) ? 3\n      : (firstByte > 0xBF) ? 2\n      : 1\n\n    if (i + bytesPerSequence <= end) {\n      var secondByte, thirdByte, fourthByte, tempCodePoint\n\n      switch (bytesPerSequence) {\n        case 1:\n          if (firstByte < 0x80) {\n            codePoint = firstByte\n          }\n          break\n        case 2:\n          secondByte = buf[i + 1]\n          if ((secondByte & 0xC0) === 0x80) {\n            tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n            if (tempCodePoint > 0x7F) {\n              codePoint = tempCodePoint\n            }\n          }\n          break\n        case 3:\n          secondByte = buf[i + 1]\n          thirdByte = buf[i + 2]\n          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n            tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n            if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n              codePoint = tempCodePoint\n            }\n          }\n          break\n        case 4:\n          secondByte = buf[i + 1]\n          thirdByte = buf[i + 2]\n          fourthByte = buf[i + 3]\n          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n            tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n            if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n              codePoint = tempCodePoint\n            }\n          }\n      }\n    }\n\n    if (codePoint === null) {\n      // we did not generate a valid codePoint so insert a\n      // replacement char (U+FFFD) and advance only 1 byte\n      codePoint = 0xFFFD\n      bytesPerSequence = 1\n    } else if (codePoint > 0xFFFF) {\n      // encode to utf16 (surrogate pair dance)\n      codePoint -= 0x10000\n      res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n      codePoint = 0xDC00 | codePoint & 0x3FF\n    }\n\n    res.push(codePoint)\n    i += bytesPerSequence\n  }\n\n  return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n  var len = codePoints.length\n  if (len <= MAX_ARGUMENTS_LENGTH) {\n    return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n  }\n\n  // Decode in chunks to avoid \"call stack size exceeded\".\n  var res = ''\n  var i = 0\n  while (i < len) {\n    res += String.fromCharCode.apply(\n      String,\n      codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n    )\n  }\n  return res\n}\n\nfunction asciiSlice (buf, start, end) {\n  var ret = ''\n  end = Math.min(buf.length, end)\n\n  for (var i = start; i < end; ++i) {\n    ret += String.fromCharCode(buf[i] & 0x7F)\n  }\n  return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n  var ret = ''\n  end = Math.min(buf.length, end)\n\n  for (var i = start; i < end; ++i) {\n    ret += String.fromCharCode(buf[i])\n  }\n  return ret\n}\n\nfunction hexSlice (buf, start, end) {\n  var len = buf.length\n\n  if (!start || start < 0) start = 0\n  if (!end || end < 0 || end > len) end = len\n\n  var out = ''\n  for (var i = start; i < end; ++i) {\n    out += toHex(buf[i])\n  }\n  return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n  var bytes = buf.slice(start, end)\n  var res = ''\n  for (var i = 0; i < bytes.length; i += 2) {\n    res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n  }\n  return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n  var len = this.length\n  start = ~~start\n  end = end === undefined ? len : ~~end\n\n  if (start < 0) {\n    start += len\n    if (start < 0) start = 0\n  } else if (start > len) {\n    start = len\n  }\n\n  if (end < 0) {\n    end += len\n    if (end < 0) end = 0\n  } else if (end > len) {\n    end = len\n  }\n\n  if (end < start) end = start\n\n  var newBuf\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    newBuf = this.subarray(start, end)\n    newBuf.__proto__ = Buffer.prototype\n  } else {\n    var sliceLen = end - start\n    newBuf = new Buffer(sliceLen, undefined)\n    for (var i = 0; i < sliceLen; ++i) {\n      newBuf[i] = this[i + start]\n    }\n  }\n\n  return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n  if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n  if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n  var val = this[offset]\n  var mul = 1\n  var i = 0\n  while (++i < byteLength && (mul *= 0x100)) {\n    val += this[offset + i] * mul\n  }\n\n  return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) {\n    checkOffset(offset, byteLength, this.length)\n  }\n\n  var val = this[offset + --byteLength]\n  var mul = 1\n  while (byteLength > 0 && (mul *= 0x100)) {\n    val += this[offset + --byteLength] * mul\n  }\n\n  return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 1, this.length)\n  return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 2, this.length)\n  return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 2, this.length)\n  return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n\n  return ((this[offset]) |\n      (this[offset + 1] << 8) |\n      (this[offset + 2] << 16)) +\n      (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n\n  return (this[offset] * 0x1000000) +\n    ((this[offset + 1] << 16) |\n    (this[offset + 2] << 8) |\n    this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n  var val = this[offset]\n  var mul = 1\n  var i = 0\n  while (++i < byteLength && (mul *= 0x100)) {\n    val += this[offset + i] * mul\n  }\n  mul *= 0x80\n\n  if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n  return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n  var i = byteLength\n  var mul = 1\n  var val = this[offset + --i]\n  while (i > 0 && (mul *= 0x100)) {\n    val += this[offset + --i] * mul\n  }\n  mul *= 0x80\n\n  if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n  return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 1, this.length)\n  if (!(this[offset] & 0x80)) return (this[offset])\n  return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 2, this.length)\n  var val = this[offset] | (this[offset + 1] << 8)\n  return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 2, this.length)\n  var val = this[offset + 1] | (this[offset] << 8)\n  return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n\n  return (this[offset]) |\n    (this[offset + 1] << 8) |\n    (this[offset + 2] << 16) |\n    (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n\n  return (this[offset] << 24) |\n    (this[offset + 1] << 16) |\n    (this[offset + 2] << 8) |\n    (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n  return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 4, this.length)\n  return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 8, this.length)\n  return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n  if (!noAssert) checkOffset(offset, 8, this.length)\n  return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n  if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n  if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n  if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n  value = +value\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) {\n    var maxBytes = Math.pow(2, 8 * byteLength) - 1\n    checkInt(this, value, offset, byteLength, maxBytes, 0)\n  }\n\n  var mul = 1\n  var i = 0\n  this[offset] = value & 0xFF\n  while (++i < byteLength && (mul *= 0x100)) {\n    this[offset + i] = (value / mul) & 0xFF\n  }\n\n  return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n  value = +value\n  offset = offset | 0\n  byteLength = byteLength | 0\n  if (!noAssert) {\n    var maxBytes = Math.pow(2, 8 * byteLength) - 1\n    checkInt(this, value, offset, byteLength, maxBytes, 0)\n  }\n\n  var i = byteLength - 1\n  var mul = 1\n  this[offset + i] = value & 0xFF\n  while (--i >= 0 && (mul *= 0x100)) {\n    this[offset + i] = (value / mul) & 0xFF\n  }\n\n  return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n  this[offset] = (value & 0xff)\n  return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n  if (value < 0) value = 0xffff + value + 1\n  for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n    buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n      (littleEndian ? i : 1 - i) * 8\n  }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value & 0xff)\n    this[offset + 1] = (value >>> 8)\n  } else {\n    objectWriteUInt16(this, value, offset, true)\n  }\n  return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value >>> 8)\n    this[offset + 1] = (value & 0xff)\n  } else {\n    objectWriteUInt16(this, value, offset, false)\n  }\n  return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n  if (value < 0) value = 0xffffffff + value + 1\n  for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n    buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n  }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset + 3] = (value >>> 24)\n    this[offset + 2] = (value >>> 16)\n    this[offset + 1] = (value >>> 8)\n    this[offset] = (value & 0xff)\n  } else {\n    objectWriteUInt32(this, value, offset, true)\n  }\n  return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value >>> 24)\n    this[offset + 1] = (value >>> 16)\n    this[offset + 2] = (value >>> 8)\n    this[offset + 3] = (value & 0xff)\n  } else {\n    objectWriteUInt32(this, value, offset, false)\n  }\n  return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) {\n    var limit = Math.pow(2, 8 * byteLength - 1)\n\n    checkInt(this, value, offset, byteLength, limit - 1, -limit)\n  }\n\n  var i = 0\n  var mul = 1\n  var sub = 0\n  this[offset] = value & 0xFF\n  while (++i < byteLength && (mul *= 0x100)) {\n    if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n      sub = 1\n    }\n    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n  }\n\n  return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) {\n    var limit = Math.pow(2, 8 * byteLength - 1)\n\n    checkInt(this, value, offset, byteLength, limit - 1, -limit)\n  }\n\n  var i = byteLength - 1\n  var mul = 1\n  var sub = 0\n  this[offset + i] = value & 0xFF\n  while (--i >= 0 && (mul *= 0x100)) {\n    if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n      sub = 1\n    }\n    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n  }\n\n  return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n  if (value < 0) value = 0xff + value + 1\n  this[offset] = (value & 0xff)\n  return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value & 0xff)\n    this[offset + 1] = (value >>> 8)\n  } else {\n    objectWriteUInt16(this, value, offset, true)\n  }\n  return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value >>> 8)\n    this[offset + 1] = (value & 0xff)\n  } else {\n    objectWriteUInt16(this, value, offset, false)\n  }\n  return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value & 0xff)\n    this[offset + 1] = (value >>> 8)\n    this[offset + 2] = (value >>> 16)\n    this[offset + 3] = (value >>> 24)\n  } else {\n    objectWriteUInt32(this, value, offset, true)\n  }\n  return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n  value = +value\n  offset = offset | 0\n  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n  if (value < 0) value = 0xffffffff + value + 1\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\n    this[offset] = (value >>> 24)\n    this[offset + 1] = (value >>> 16)\n    this[offset + 2] = (value >>> 8)\n    this[offset + 3] = (value & 0xff)\n  } else {\n    objectWriteUInt32(this, value, offset, false)\n  }\n  return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n  if (offset + ext > buf.length) throw new RangeError('Index out of range')\n  if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n  if (!noAssert) {\n    checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n  }\n  ieee754.write(buf, value, offset, littleEndian, 23, 4)\n  return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n  return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n  return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n  if (!noAssert) {\n    checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n  }\n  ieee754.write(buf, value, offset, littleEndian, 52, 8)\n  return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n  return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n  return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n  if (!start) start = 0\n  if (!end && end !== 0) end = this.length\n  if (targetStart >= target.length) targetStart = target.length\n  if (!targetStart) targetStart = 0\n  if (end > 0 && end < start) end = start\n\n  // Copy 0 bytes; we're done\n  if (end === start) return 0\n  if (target.length === 0 || this.length === 0) return 0\n\n  // Fatal error conditions\n  if (targetStart < 0) {\n    throw new RangeError('targetStart out of bounds')\n  }\n  if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n  if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n  // Are we oob?\n  if (end > this.length) end = this.length\n  if (target.length - targetStart < end - start) {\n    end = target.length - targetStart + start\n  }\n\n  var len = end - start\n  var i\n\n  if (this === target && start < targetStart && targetStart < end) {\n    // descending copy from end\n    for (i = len - 1; i >= 0; --i) {\n      target[i + targetStart] = this[i + start]\n    }\n  } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n    // ascending copy from start\n    for (i = 0; i < len; ++i) {\n      target[i + targetStart] = this[i + start]\n    }\n  } else {\n    Uint8Array.prototype.set.call(\n      target,\n      this.subarray(start, start + len),\n      targetStart\n    )\n  }\n\n  return len\n}\n\n// Usage:\n//    buffer.fill(number[, offset[, end]])\n//    buffer.fill(buffer[, offset[, end]])\n//    buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n  // Handle string cases:\n  if (typeof val === 'string') {\n    if (typeof start === 'string') {\n      encoding = start\n      start = 0\n      end = this.length\n    } else if (typeof end === 'string') {\n      encoding = end\n      end = this.length\n    }\n    if (val.length === 1) {\n      var code = val.charCodeAt(0)\n      if (code < 256) {\n        val = code\n      }\n    }\n    if (encoding !== undefined && typeof encoding !== 'string') {\n      throw new TypeError('encoding must be a string')\n    }\n    if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n      throw new TypeError('Unknown encoding: ' + encoding)\n    }\n  } else if (typeof val === 'number') {\n    val = val & 255\n  }\n\n  // Invalid ranges are not set to a default, so can range check early.\n  if (start < 0 || this.length < start || this.length < end) {\n    throw new RangeError('Out of range index')\n  }\n\n  if (end <= start) {\n    return this\n  }\n\n  start = start >>> 0\n  end = end === undefined ? this.length : end >>> 0\n\n  if (!val) val = 0\n\n  var i\n  if (typeof val === 'number') {\n    for (i = start; i < end; ++i) {\n      this[i] = val\n    }\n  } else {\n    var bytes = Buffer.isBuffer(val)\n      ? val\n      : utf8ToBytes(new Buffer(val, encoding).toString())\n    var len = bytes.length\n    for (i = 0; i < end - start; ++i) {\n      this[i + start] = bytes[i % len]\n    }\n  }\n\n  return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n  // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n  str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n  // Node converts strings with length < 2 to ''\n  if (str.length < 2) return ''\n  // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n  while (str.length % 4 !== 0) {\n    str = str + '='\n  }\n  return str\n}\n\nfunction stringtrim (str) {\n  if (str.trim) return str.trim()\n  return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n  if (n < 16) return '0' + n.toString(16)\n  return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n  units = units || Infinity\n  var codePoint\n  var length = string.length\n  var leadSurrogate = null\n  var bytes = []\n\n  for (var i = 0; i < length; ++i) {\n    codePoint = string.charCodeAt(i)\n\n    // is surrogate component\n    if (codePoint > 0xD7FF && codePoint < 0xE000) {\n      // last char was a lead\n      if (!leadSurrogate) {\n        // no lead yet\n        if (codePoint > 0xDBFF) {\n          // unexpected trail\n          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n          continue\n        } else if (i + 1 === length) {\n          // unpaired lead\n          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n          continue\n        }\n\n        // valid lead\n        leadSurrogate = codePoint\n\n        continue\n      }\n\n      // 2 leads in a row\n      if (codePoint < 0xDC00) {\n        if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n        leadSurrogate = codePoint\n        continue\n      }\n\n      // valid surrogate pair\n      codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n    } else if (leadSurrogate) {\n      // valid bmp char, but last char was a lead\n      if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n    }\n\n    leadSurrogate = null\n\n    // encode utf8\n    if (codePoint < 0x80) {\n      if ((units -= 1) < 0) break\n      bytes.push(codePoint)\n    } else if (codePoint < 0x800) {\n      if ((units -= 2) < 0) break\n      bytes.push(\n        codePoint >> 0x6 | 0xC0,\n        codePoint & 0x3F | 0x80\n      )\n    } else if (codePoint < 0x10000) {\n      if ((units -= 3) < 0) break\n      bytes.push(\n        codePoint >> 0xC | 0xE0,\n        codePoint >> 0x6 & 0x3F | 0x80,\n        codePoint & 0x3F | 0x80\n      )\n    } else if (codePoint < 0x110000) {\n      if ((units -= 4) < 0) break\n      bytes.push(\n        codePoint >> 0x12 | 0xF0,\n        codePoint >> 0xC & 0x3F | 0x80,\n        codePoint >> 0x6 & 0x3F | 0x80,\n        codePoint & 0x3F | 0x80\n      )\n    } else {\n      throw new Error('Invalid code point')\n    }\n  }\n\n  return bytes\n}\n\nfunction asciiToBytes (str) {\n  var byteArray = []\n  for (var i = 0; i < str.length; ++i) {\n    // Node's code seems to be doing this and not & 0x7F..\n    byteArray.push(str.charCodeAt(i) & 0xFF)\n  }\n  return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n  var c, hi, lo\n  var byteArray = []\n  for (var i = 0; i < str.length; ++i) {\n    if ((units -= 2) < 0) break\n\n    c = str.charCodeAt(i)\n    hi = c >> 8\n    lo = c % 256\n    byteArray.push(lo)\n    byteArray.push(hi)\n  }\n\n  return byteArray\n}\n\nfunction base64ToBytes (str) {\n  return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n  for (var i = 0; i < length; ++i) {\n    if ((i + offset >= dst.length) || (i >= src.length)) break\n    dst[i + offset] = src[i]\n  }\n  return i\n}\n\nfunction isnan (val) {\n  return val !== val // eslint-disable-line no-self-compare\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/buffer/index.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/a-callable.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/a-callable.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar tryToString = __webpack_require__(/*! ../internals/try-to-string */ \"./node_modules/core-js/internals/try-to-string.js\");\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n  if (isCallable(argument)) return argument;\n  throw $TypeError(tryToString(argument) + ' is not a function');\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/a-callable.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/a-possible-prototype.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/internals/a-possible-prototype.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n  if (typeof argument == 'object' || isCallable(argument)) return argument;\n  throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/a-possible-prototype.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/an-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/an-object.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js/internals/is-object.js\");\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n  if (isObject(argument)) return argument;\n  throw $TypeError($String(argument) + ' is not an object');\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/an-object.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/array-includes.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/array-includes.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ \"./node_modules/core-js/internals/to-indexed-object.js\");\nvar toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ \"./node_modules/core-js/internals/to-absolute-index.js\");\nvar lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ \"./node_modules/core-js/internals/length-of-array-like.js\");\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n  return function ($this, el, fromIndex) {\n    var O = toIndexedObject($this);\n    var length = lengthOfArrayLike(O);\n    var index = toAbsoluteIndex(fromIndex, length);\n    var value;\n    // Array#includes uses SameValueZero equality algorithm\n    // eslint-disable-next-line no-self-compare -- NaN check\n    if (IS_INCLUDES && el != el) while (length > index) {\n      value = O[index++];\n      // eslint-disable-next-line no-self-compare -- NaN check\n      if (value != value) return true;\n    // Array#indexOf ignores holes, Array#includes - not\n    } else for (;length > index; index++) {\n      if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n    } return !IS_INCLUDES && -1;\n  };\n};\n\nmodule.exports = {\n  // `Array.prototype.includes` method\n  // https://tc39.es/ecma262/#sec-array.prototype.includes\n  includes: createMethod(true),\n  // `Array.prototype.indexOf` method\n  // https://tc39.es/ecma262/#sec-array.prototype.indexof\n  indexOf: createMethod(false)\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/array-includes.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/array-method-is-strict.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/internals/array-method-is-strict.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\n\nmodule.exports = function (METHOD_NAME, argument) {\n  var method = [][METHOD_NAME];\n  return !!method && fails(function () {\n    // eslint-disable-next-line no-useless-call -- required for testing\n    method.call(null, argument || function () { return 1; }, 1);\n  });\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/array-method-is-strict.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/array-reduce.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/array-reduce.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar aCallable = __webpack_require__(/*! ../internals/a-callable */ \"./node_modules/core-js/internals/a-callable.js\");\nvar toObject = __webpack_require__(/*! ../internals/to-object */ \"./node_modules/core-js/internals/to-object.js\");\nvar IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ \"./node_modules/core-js/internals/indexed-object.js\");\nvar lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ \"./node_modules/core-js/internals/length-of-array-like.js\");\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n  return function (that, callbackfn, argumentsLength, memo) {\n    aCallable(callbackfn);\n    var O = toObject(that);\n    var self = IndexedObject(O);\n    var length = lengthOfArrayLike(O);\n    var index = IS_RIGHT ? length - 1 : 0;\n    var i = IS_RIGHT ? -1 : 1;\n    if (argumentsLength < 2) while (true) {\n      if (index in self) {\n        memo = self[index];\n        index += i;\n        break;\n      }\n      index += i;\n      if (IS_RIGHT ? index < 0 : length <= index) {\n        throw $TypeError('Reduce of empty array with no initial value');\n      }\n    }\n    for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n      memo = callbackfn(memo, self[index], index, O);\n    }\n    return memo;\n  };\n};\n\nmodule.exports = {\n  // `Array.prototype.reduce` method\n  // https://tc39.es/ecma262/#sec-array.prototype.reduce\n  left: createMethod(false),\n  // `Array.prototype.reduceRight` method\n  // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n  right: createMethod(true)\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/array-reduce.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/array-set-length.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/internals/array-set-length.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar isArray = __webpack_require__(/*! ../internals/is-array */ \"./node_modules/core-js/internals/is-array.js\");\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n  // makes no sense without proper strict mode support\n  if (this !== undefined) return true;\n  try {\n    // eslint-disable-next-line es/no-object-defineproperty -- safe\n    Object.defineProperty([], 'length', { writable: false }).length = 1;\n  } catch (error) {\n    return error instanceof TypeError;\n  }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n  if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n    throw $TypeError('Cannot set read only .length');\n  } return O.length = length;\n} : function (O, length) {\n  return O.length = length;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/array-set-length.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/classof-raw.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/classof-raw.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n  return stringSlice(toString(it), 8, -1);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/classof-raw.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/classof.js":
/*!***************************************************!*\
  !*** ./node_modules/core-js/internals/classof.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ \"./node_modules/core-js/internals/to-string-tag-support.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar classofRaw = __webpack_require__(/*! ../internals/classof-raw */ \"./node_modules/core-js/internals/classof-raw.js\");\nvar wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ \"./node_modules/core-js/internals/well-known-symbol.js\");\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n  try {\n    return it[key];\n  } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n  var O, tag, result;\n  return it === undefined ? 'Undefined' : it === null ? 'Null'\n    // @@toStringTag case\n    : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n    // builtinTag case\n    : CORRECT_ARGUMENTS ? classofRaw(O)\n    // ES3 arguments fallback\n    : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/classof.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/copy-constructor-properties.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/internals/copy-constructor-properties.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js/internals/has-own-property.js\");\nvar ownKeys = __webpack_require__(/*! ../internals/own-keys */ \"./node_modules/core-js/internals/own-keys.js\");\nvar getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ \"./node_modules/core-js/internals/object-get-own-property-descriptor.js\");\nvar definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ \"./node_modules/core-js/internals/object-define-property.js\");\n\nmodule.exports = function (target, source, exceptions) {\n  var keys = ownKeys(source);\n  var defineProperty = definePropertyModule.f;\n  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n  for (var i = 0; i < keys.length; i++) {\n    var key = keys[i];\n    if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n      defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n    }\n  }\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/copy-constructor-properties.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/create-non-enumerable-property.js":
/*!**************************************************************************!*\
  !*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ \"./node_modules/core-js/internals/object-define-property.js\");\nvar createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ \"./node_modules/core-js/internals/create-property-descriptor.js\");\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n  return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n  object[key] = value;\n  return object;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/create-non-enumerable-property.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/create-property-descriptor.js":
/*!**********************************************************************!*\
  !*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = function (bitmap, value) {\n  return {\n    enumerable: !(bitmap & 1),\n    configurable: !(bitmap & 2),\n    writable: !(bitmap & 4),\n    value: value\n  };\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/create-property-descriptor.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/define-built-in-accessor.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/define-built-in-accessor.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar makeBuiltIn = __webpack_require__(/*! ../internals/make-built-in */ \"./node_modules/core-js/internals/make-built-in.js\");\nvar defineProperty = __webpack_require__(/*! ../internals/object-define-property */ \"./node_modules/core-js/internals/object-define-property.js\");\n\nmodule.exports = function (target, name, descriptor) {\n  if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n  if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n  return defineProperty.f(target, name, descriptor);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/define-built-in-accessor.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/define-built-in.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/internals/define-built-in.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ \"./node_modules/core-js/internals/object-define-property.js\");\nvar makeBuiltIn = __webpack_require__(/*! ../internals/make-built-in */ \"./node_modules/core-js/internals/make-built-in.js\");\nvar defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ \"./node_modules/core-js/internals/define-global-property.js\");\n\nmodule.exports = function (O, key, value, options) {\n  if (!options) options = {};\n  var simple = options.enumerable;\n  var name = options.name !== undefined ? options.name : key;\n  if (isCallable(value)) makeBuiltIn(value, name, options);\n  if (options.global) {\n    if (simple) O[key] = value;\n    else defineGlobalProperty(key, value);\n  } else {\n    try {\n      if (!options.unsafe) delete O[key];\n      else if (O[key]) simple = true;\n    } catch (error) { /* empty */ }\n    if (simple) O[key] = value;\n    else definePropertyModule.f(O, key, {\n      value: value,\n      enumerable: false,\n      configurable: !options.nonConfigurable,\n      writable: !options.nonWritable\n    });\n  } return O;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/define-built-in.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/define-global-property.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/internals/define-global-property.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n  try {\n    defineProperty(global, key, { value: value, configurable: true, writable: true });\n  } catch (error) {\n    global[key] = value;\n  } return value;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/define-global-property.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/descriptors.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/descriptors.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n  // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/descriptors.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/document-all.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/document-all.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n  all: documentAll,\n  IS_HTMLDDA: IS_HTMLDDA\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/document-all.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/document-create-element.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/document-create-element.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js/internals/is-object.js\");\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n  return EXISTS ? document.createElement(it) : {};\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/document-create-element.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/does-not-exceed-safe-integer.js":
/*!************************************************************************!*\
  !*** ./node_modules/core-js/internals/does-not-exceed-safe-integer.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n  if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n  return it;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/does-not-exceed-safe-integer.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/engine-is-node.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/engine-is-node.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("/* WEBPACK VAR INJECTION */(function(process) {\nvar classof = __webpack_require__(/*! ../internals/classof-raw */ \"./node_modules/core-js/internals/classof-raw.js\");\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node-libs-browser/mock/process.js */ \"./node_modules/node-libs-browser/mock/process.js\")))\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/engine-is-node.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/engine-user-agent.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/engine-user-agent.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/engine-user-agent.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/engine-v8-version.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/engine-v8-version.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ \"./node_modules/core-js/internals/engine-user-agent.js\");\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n  match = v8.split('.');\n  // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n  // but their correct versions are not interesting for us\n  version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n  match = userAgent.match(/Edge\\/(\\d+)/);\n  if (!match || match[1] >= 74) {\n    match = userAgent.match(/Chrome\\/(\\d+)/);\n    if (match) version = +match[1];\n  }\n}\n\nmodule.exports = version;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/engine-v8-version.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/enum-bug-keys.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/enum-bug-keys.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n// IE8- don't enum bug keys\nmodule.exports = [\n  'constructor',\n  'hasOwnProperty',\n  'isPrototypeOf',\n  'propertyIsEnumerable',\n  'toLocaleString',\n  'toString',\n  'valueOf'\n];\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/enum-bug-keys.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/error-stack-clear.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/error-stack-clear.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n  if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n    while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n  } return stack;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/error-stack-clear.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/error-stack-install.js":
/*!***************************************************************!*\
  !*** ./node_modules/core-js/internals/error-stack-install.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ \"./node_modules/core-js/internals/create-non-enumerable-property.js\");\nvar clearErrorStack = __webpack_require__(/*! ../internals/error-stack-clear */ \"./node_modules/core-js/internals/error-stack-clear.js\");\nvar ERROR_STACK_INSTALLABLE = __webpack_require__(/*! ../internals/error-stack-installable */ \"./node_modules/core-js/internals/error-stack-installable.js\");\n\n// non-standard V8\nvar captureStackTrace = Error.captureStackTrace;\n\nmodule.exports = function (error, C, stack, dropEntries) {\n  if (ERROR_STACK_INSTALLABLE) {\n    if (captureStackTrace) captureStackTrace(error, C);\n    else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));\n  }\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/error-stack-install.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/error-stack-installable.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/error-stack-installable.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\nvar createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ \"./node_modules/core-js/internals/create-property-descriptor.js\");\n\nmodule.exports = !fails(function () {\n  var error = Error('a');\n  if (!('stack' in error)) return true;\n  // eslint-disable-next-line es/no-object-defineproperty -- safe\n  Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n  return error.stack !== 7;\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/error-stack-installable.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/export.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/export.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar getOwnPropertyDescriptor = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ \"./node_modules/core-js/internals/object-get-own-property-descriptor.js\").f;\nvar createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ \"./node_modules/core-js/internals/create-non-enumerable-property.js\");\nvar defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ \"./node_modules/core-js/internals/define-built-in.js\");\nvar defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ \"./node_modules/core-js/internals/define-global-property.js\");\nvar copyConstructorProperties = __webpack_require__(/*! ../internals/copy-constructor-properties */ \"./node_modules/core-js/internals/copy-constructor-properties.js\");\nvar isForced = __webpack_require__(/*! ../internals/is-forced */ \"./node_modules/core-js/internals/is-forced.js\");\n\n/*\n  options.target         - name of the target object\n  options.global         - target is the global object\n  options.stat           - export as static methods of target\n  options.proto          - export as prototype methods of target\n  options.real           - real prototype method for the `pure` version\n  options.forced         - export even if the native feature is available\n  options.bind           - bind methods to the target, required for the `pure` version\n  options.wrap           - wrap constructors to preventing global pollution, required for the `pure` version\n  options.unsafe         - use the simple assignment of property instead of delete + defineProperty\n  options.sham           - add a flag to not completely full polyfills\n  options.enumerable     - export as enumerable property\n  options.dontCallGetSet - prevent calling a getter on target\n  options.name           - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n  var TARGET = options.target;\n  var GLOBAL = options.global;\n  var STATIC = options.stat;\n  var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n  if (GLOBAL) {\n    target = global;\n  } else if (STATIC) {\n    target = global[TARGET] || defineGlobalProperty(TARGET, {});\n  } else {\n    target = (global[TARGET] || {}).prototype;\n  }\n  if (target) for (key in source) {\n    sourceProperty = source[key];\n    if (options.dontCallGetSet) {\n      descriptor = getOwnPropertyDescriptor(target, key);\n      targetProperty = descriptor && descriptor.value;\n    } else targetProperty = target[key];\n    FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n    // contained in target\n    if (!FORCED && targetProperty !== undefined) {\n      if (typeof sourceProperty == typeof targetProperty) continue;\n      copyConstructorProperties(sourceProperty, targetProperty);\n    }\n    // add a flag to not completely full polyfills\n    if (options.sham || (targetProperty && targetProperty.sham)) {\n      createNonEnumerableProperty(sourceProperty, 'sham', true);\n    }\n    defineBuiltIn(target, key, sourceProperty, options);\n  }\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/export.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/fails.js":
/*!*************************************************!*\
  !*** ./node_modules/core-js/internals/fails.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = function (exec) {\n  try {\n    return !!exec();\n  } catch (error) {\n    return true;\n  }\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/fails.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/function-apply.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/function-apply.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ \"./node_modules/core-js/internals/function-bind-native.js\");\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n  return call.apply(apply, arguments);\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/function-apply.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/function-bind-native.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/internals/function-bind-native.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\n\nmodule.exports = !fails(function () {\n  // eslint-disable-next-line es/no-function-prototype-bind -- safe\n  var test = (function () { /* empty */ }).bind();\n  // eslint-disable-next-line no-prototype-builtins -- safe\n  return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/function-bind-native.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/function-call.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/function-call.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ \"./node_modules/core-js/internals/function-bind-native.js\");\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n  return call.apply(call, arguments);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/function-call.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/function-name.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/function-name.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js/internals/has-own-property.js\");\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n  EXISTS: EXISTS,\n  PROPER: PROPER,\n  CONFIGURABLE: CONFIGURABLE\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/function-name.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/function-uncurry-this-accessor.js":
/*!**************************************************************************!*\
  !*** ./node_modules/core-js/internals/function-uncurry-this-accessor.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar aCallable = __webpack_require__(/*! ../internals/a-callable */ \"./node_modules/core-js/internals/a-callable.js\");\n\nmodule.exports = function (object, key, method) {\n  try {\n    // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n    return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n  } catch (error) { /* empty */ }\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/function-uncurry-this-accessor.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/function-uncurry-this.js":
/*!*****************************************************************!*\
  !*** ./node_modules/core-js/internals/function-uncurry-this.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ \"./node_modules/core-js/internals/function-bind-native.js\");\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n  return function () {\n    return call.apply(fn, arguments);\n  };\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/function-uncurry-this.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/get-built-in.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/get-built-in.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\n\nvar aFunction = function (argument) {\n  return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n  return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/get-built-in.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/get-method.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/get-method.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar aCallable = __webpack_require__(/*! ../internals/a-callable */ \"./node_modules/core-js/internals/a-callable.js\");\nvar isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ \"./node_modules/core-js/internals/is-null-or-undefined.js\");\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n  var func = V[P];\n  return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/get-method.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/global.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/global.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("/* WEBPACK VAR INJECTION */(function(global) {\nvar check = function (it) {\n  return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n  // eslint-disable-next-line es/no-global-this -- safe\n  check(typeof globalThis == 'object' && globalThis) ||\n  check(typeof window == 'object' && window) ||\n  // eslint-disable-next-line no-restricted-globals -- safe\n  check(typeof self == 'object' && self) ||\n  check(typeof global == 'object' && global) ||\n  // eslint-disable-next-line no-new-func -- fallback\n  (function () { return this; })() || this || Function('return this')();\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/global.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/has-own-property.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/internals/has-own-property.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar toObject = __webpack_require__(/*! ../internals/to-object */ \"./node_modules/core-js/internals/to-object.js\");\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n  return hasOwnProperty(toObject(it), key);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/has-own-property.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/hidden-keys.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/hidden-keys.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = {};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/hidden-keys.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/ie8-dom-define.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\nvar createElement = __webpack_require__(/*! ../internals/document-create-element */ \"./node_modules/core-js/internals/document-create-element.js\");\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n  // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n  return Object.defineProperty(createElement('div'), 'a', {\n    get: function () { return 7; }\n  }).a != 7;\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/ie8-dom-define.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/indexed-object.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/indexed-object.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\nvar classof = __webpack_require__(/*! ../internals/classof-raw */ \"./node_modules/core-js/internals/classof-raw.js\");\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n  // eslint-disable-next-line no-prototype-builtins -- safe\n  return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n  return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/indexed-object.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/inherit-if-required.js":
/*!***************************************************************!*\
  !*** ./node_modules/core-js/internals/inherit-if-required.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js/internals/is-object.js\");\nvar setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ \"./node_modules/core-js/internals/object-set-prototype-of.js\");\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n  var NewTarget, NewTargetPrototype;\n  if (\n    // it can work only with native `setPrototypeOf`\n    setPrototypeOf &&\n    // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n    isCallable(NewTarget = dummy.constructor) &&\n    NewTarget !== Wrapper &&\n    isObject(NewTargetPrototype = NewTarget.prototype) &&\n    NewTargetPrototype !== Wrapper.prototype\n  ) setPrototypeOf($this, NewTargetPrototype);\n  return $this;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/inherit-if-required.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/inspect-source.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/inspect-source.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar store = __webpack_require__(/*! ../internals/shared-store */ \"./node_modules/core-js/internals/shared-store.js\");\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n  store.inspectSource = function (it) {\n    return functionToString(it);\n  };\n}\n\nmodule.exports = store.inspectSource;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/inspect-source.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/install-error-cause.js":
/*!***************************************************************!*\
  !*** ./node_modules/core-js/internals/install-error-cause.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js/internals/is-object.js\");\nvar createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ \"./node_modules/core-js/internals/create-non-enumerable-property.js\");\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n  if (isObject(options) && 'cause' in options) {\n    createNonEnumerableProperty(O, 'cause', options.cause);\n  }\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/install-error-cause.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/internal-state.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/internal-state.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar NATIVE_WEAK_MAP = __webpack_require__(/*! ../internals/weak-map-basic-detection */ \"./node_modules/core-js/internals/weak-map-basic-detection.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js/internals/is-object.js\");\nvar createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ \"./node_modules/core-js/internals/create-non-enumerable-property.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js/internals/has-own-property.js\");\nvar shared = __webpack_require__(/*! ../internals/shared-store */ \"./node_modules/core-js/internals/shared-store.js\");\nvar sharedKey = __webpack_require__(/*! ../internals/shared-key */ \"./node_modules/core-js/internals/shared-key.js\");\nvar hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ \"./node_modules/core-js/internals/hidden-keys.js\");\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n  return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n  return function (it) {\n    var state;\n    if (!isObject(it) || (state = get(it)).type !== TYPE) {\n      throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n    } return state;\n  };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n  var store = shared.state || (shared.state = new WeakMap());\n  /* eslint-disable no-self-assign -- prototype methods protection */\n  store.get = store.get;\n  store.has = store.has;\n  store.set = store.set;\n  /* eslint-enable no-self-assign -- prototype methods protection */\n  set = function (it, metadata) {\n    if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n    metadata.facade = it;\n    store.set(it, metadata);\n    return metadata;\n  };\n  get = function (it) {\n    return store.get(it) || {};\n  };\n  has = function (it) {\n    return store.has(it);\n  };\n} else {\n  var STATE = sharedKey('state');\n  hiddenKeys[STATE] = true;\n  set = function (it, metadata) {\n    if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n    metadata.facade = it;\n    createNonEnumerableProperty(it, STATE, metadata);\n    return metadata;\n  };\n  get = function (it) {\n    return hasOwn(it, STATE) ? it[STATE] : {};\n  };\n  has = function (it) {\n    return hasOwn(it, STATE);\n  };\n}\n\nmodule.exports = {\n  set: set,\n  get: get,\n  has: has,\n  enforce: enforce,\n  getterFor: getterFor\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/internal-state.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/is-array.js":
/*!****************************************************!*\
  !*** ./node_modules/core-js/internals/is-array.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar classof = __webpack_require__(/*! ../internals/classof-raw */ \"./node_modules/core-js/internals/classof-raw.js\");\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n  return classof(argument) == 'Array';\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/is-array.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/is-callable.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/is-callable.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar $documentAll = __webpack_require__(/*! ../internals/document-all */ \"./node_modules/core-js/internals/document-all.js\");\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n  return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n  return typeof argument == 'function';\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/is-callable.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/is-forced.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/is-forced.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n  var value = data[normalize(feature)];\n  return value == POLYFILL ? true\n    : value == NATIVE ? false\n    : isCallable(detection) ? fails(detection)\n    : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n  return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/is-forced.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/is-null-or-undefined.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/internals/is-null-or-undefined.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n  return it === null || it === undefined;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/is-null-or-undefined.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/is-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/is-object.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar $documentAll = __webpack_require__(/*! ../internals/document-all */ \"./node_modules/core-js/internals/document-all.js\");\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n  return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n  return typeof it == 'object' ? it !== null : isCallable(it);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/is-object.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/is-pure.js":
/*!***************************************************!*\
  !*** ./node_modules/core-js/internals/is-pure.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nmodule.exports = false;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/is-pure.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/is-symbol.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/is-symbol.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ \"./node_modules/core-js/internals/get-built-in.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ \"./node_modules/core-js/internals/object-is-prototype-of.js\");\nvar USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ \"./node_modules/core-js/internals/use-symbol-as-uid.js\");\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n  return typeof it == 'symbol';\n} : function (it) {\n  var $Symbol = getBuiltIn('Symbol');\n  return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/is-symbol.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/length-of-array-like.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/internals/length-of-array-like.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar toLength = __webpack_require__(/*! ../internals/to-length */ \"./node_modules/core-js/internals/to-length.js\");\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n  return toLength(obj.length);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/length-of-array-like.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/make-built-in.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/make-built-in.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js/internals/has-own-property.js\");\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar CONFIGURABLE_FUNCTION_NAME = __webpack_require__(/*! ../internals/function-name */ \"./node_modules/core-js/internals/function-name.js\").CONFIGURABLE;\nvar inspectSource = __webpack_require__(/*! ../internals/inspect-source */ \"./node_modules/core-js/internals/inspect-source.js\");\nvar InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ \"./node_modules/core-js/internals/internal-state.js\");\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n  if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n    name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n  }\n  if (options && options.getter) name = 'get ' + name;\n  if (options && options.setter) name = 'set ' + name;\n  if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n    if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n    else value.name = name;\n  }\n  if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n    defineProperty(value, 'length', { value: options.arity });\n  }\n  try {\n    if (options && hasOwn(options, 'constructor') && options.constructor) {\n      if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n    // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n    } else if (value.prototype) value.prototype = undefined;\n  } catch (error) { /* empty */ }\n  var state = enforceInternalState(value);\n  if (!hasOwn(state, 'source')) {\n    state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n  } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n  return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/make-built-in.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/math-trunc.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/math-trunc.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n  var n = +x;\n  return (n > 0 ? floor : ceil)(n);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/math-trunc.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/normalize-string-argument.js":
/*!*********************************************************************!*\
  !*** ./node_modules/core-js/internals/normalize-string-argument.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar toString = __webpack_require__(/*! ../internals/to-string */ \"./node_modules/core-js/internals/to-string.js\");\n\nmodule.exports = function (argument, $default) {\n  return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/normalize-string-argument.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/object-define-property.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-define-property.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ \"./node_modules/core-js/internals/ie8-dom-define.js\");\nvar V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ \"./node_modules/core-js/internals/v8-prototype-define-bug.js\");\nvar anObject = __webpack_require__(/*! ../internals/an-object */ \"./node_modules/core-js/internals/an-object.js\");\nvar toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ \"./node_modules/core-js/internals/to-property-key.js\");\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n  anObject(O);\n  P = toPropertyKey(P);\n  anObject(Attributes);\n  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n    var current = $getOwnPropertyDescriptor(O, P);\n    if (current && current[WRITABLE]) {\n      O[P] = Attributes.value;\n      Attributes = {\n        configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n        enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n        writable: false\n      };\n    }\n  } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n  anObject(O);\n  P = toPropertyKey(P);\n  anObject(Attributes);\n  if (IE8_DOM_DEFINE) try {\n    return $defineProperty(O, P, Attributes);\n  } catch (error) { /* empty */ }\n  if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n  if ('value' in Attributes) O[P] = Attributes.value;\n  return O;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/object-define-property.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/object-get-own-property-descriptor.js":
/*!******************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar call = __webpack_require__(/*! ../internals/function-call */ \"./node_modules/core-js/internals/function-call.js\");\nvar propertyIsEnumerableModule = __webpack_require__(/*! ../internals/object-property-is-enumerable */ \"./node_modules/core-js/internals/object-property-is-enumerable.js\");\nvar createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ \"./node_modules/core-js/internals/create-property-descriptor.js\");\nvar toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ \"./node_modules/core-js/internals/to-indexed-object.js\");\nvar toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ \"./node_modules/core-js/internals/to-property-key.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js/internals/has-own-property.js\");\nvar IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ \"./node_modules/core-js/internals/ie8-dom-define.js\");\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n  O = toIndexedObject(O);\n  P = toPropertyKey(P);\n  if (IE8_DOM_DEFINE) try {\n    return $getOwnPropertyDescriptor(O, P);\n  } catch (error) { /* empty */ }\n  if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/object-get-own-property-descriptor.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/object-get-own-property-names.js":
/*!*************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-names.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ \"./node_modules/core-js/internals/object-keys-internal.js\");\nvar enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ \"./node_modules/core-js/internals/enum-bug-keys.js\");\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n  return internalObjectKeys(O, hiddenKeys);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/object-get-own-property-names.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/object-get-own-property-symbols.js":
/*!***************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/object-get-own-property-symbols.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/object-is-prototype-of.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-is-prototype-of.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/object-is-prototype-of.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/object-keys-internal.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/internals/object-keys-internal.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js/internals/has-own-property.js\");\nvar toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ \"./node_modules/core-js/internals/to-indexed-object.js\");\nvar indexOf = __webpack_require__(/*! ../internals/array-includes */ \"./node_modules/core-js/internals/array-includes.js\").indexOf;\nvar hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ \"./node_modules/core-js/internals/hidden-keys.js\");\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n  var O = toIndexedObject(object);\n  var i = 0;\n  var result = [];\n  var key;\n  for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n  // Don't enum bug & hidden keys\n  while (names.length > i) if (hasOwn(O, key = names[i++])) {\n    ~indexOf(result, key) || push(result, key);\n  }\n  return result;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/object-keys-internal.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/object-property-is-enumerable.js":
/*!*************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n  var descriptor = getOwnPropertyDescriptor(this, V);\n  return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/object-property-is-enumerable.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/object-set-prototype-of.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-set-prototype-of.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = __webpack_require__(/*! ../internals/function-uncurry-this-accessor */ \"./node_modules/core-js/internals/function-uncurry-this-accessor.js\");\nvar anObject = __webpack_require__(/*! ../internals/an-object */ \"./node_modules/core-js/internals/an-object.js\");\nvar aPossiblePrototype = __webpack_require__(/*! ../internals/a-possible-prototype */ \"./node_modules/core-js/internals/a-possible-prototype.js\");\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n  var CORRECT_SETTER = false;\n  var test = {};\n  var setter;\n  try {\n    setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n    setter(test, []);\n    CORRECT_SETTER = test instanceof Array;\n  } catch (error) { /* empty */ }\n  return function setPrototypeOf(O, proto) {\n    anObject(O);\n    aPossiblePrototype(proto);\n    if (CORRECT_SETTER) setter(O, proto);\n    else O.__proto__ = proto;\n    return O;\n  };\n}() : undefined);\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/object-set-prototype-of.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/ordinary-to-primitive.js":
/*!*****************************************************************!*\
  !*** ./node_modules/core-js/internals/ordinary-to-primitive.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar call = __webpack_require__(/*! ../internals/function-call */ \"./node_modules/core-js/internals/function-call.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js/internals/is-object.js\");\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n  var fn, val;\n  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n  if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n  throw $TypeError(\"Can't convert object to primitive value\");\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/ordinary-to-primitive.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/own-keys.js":
/*!****************************************************!*\
  !*** ./node_modules/core-js/internals/own-keys.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ \"./node_modules/core-js/internals/get-built-in.js\");\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar getOwnPropertyNamesModule = __webpack_require__(/*! ../internals/object-get-own-property-names */ \"./node_modules/core-js/internals/object-get-own-property-names.js\");\nvar getOwnPropertySymbolsModule = __webpack_require__(/*! ../internals/object-get-own-property-symbols */ \"./node_modules/core-js/internals/object-get-own-property-symbols.js\");\nvar anObject = __webpack_require__(/*! ../internals/an-object */ \"./node_modules/core-js/internals/an-object.js\");\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n  var keys = getOwnPropertyNamesModule.f(anObject(it));\n  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n  return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/own-keys.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/proxy-accessor.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/proxy-accessor.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar defineProperty = __webpack_require__(/*! ../internals/object-define-property */ \"./node_modules/core-js/internals/object-define-property.js\").f;\n\nmodule.exports = function (Target, Source, key) {\n  key in Target || defineProperty(Target, key, {\n    configurable: true,\n    get: function () { return Source[key]; },\n    set: function (it) { Source[key] = it; }\n  });\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/proxy-accessor.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/require-object-coercible.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/require-object-coercible.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ \"./node_modules/core-js/internals/is-null-or-undefined.js\");\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n  if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n  return it;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/require-object-coercible.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/shared-key.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/shared-key.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar shared = __webpack_require__(/*! ../internals/shared */ \"./node_modules/core-js/internals/shared.js\");\nvar uid = __webpack_require__(/*! ../internals/uid */ \"./node_modules/core-js/internals/uid.js\");\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n  return keys[key] || (keys[key] = uid(key));\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/shared-key.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/shared-store.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/shared-store.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ \"./node_modules/core-js/internals/define-global-property.js\");\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/shared-store.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/shared.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/shared.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar IS_PURE = __webpack_require__(/*! ../internals/is-pure */ \"./node_modules/core-js/internals/is-pure.js\");\nvar store = __webpack_require__(/*! ../internals/shared-store */ \"./node_modules/core-js/internals/shared-store.js\");\n\n(module.exports = function (key, value) {\n  return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n  version: '3.32.0',\n  mode: IS_PURE ? 'pure' : 'global',\n  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n  license: 'https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE',\n  source: 'https://github.com/zloirock/core-js'\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/shared.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/symbol-constructor-detection.js":
/*!************************************************************************!*\
  !*** ./node_modules/core-js/internals/symbol-constructor-detection.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ \"./node_modules/core-js/internals/engine-v8-version.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n  var symbol = Symbol();\n  // Chrome 38 Symbol has incorrect toString conversion\n  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n  // of course, fail.\n  return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n    // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n    !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/symbol-constructor-detection.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-absolute-index.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/to-absolute-index.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ \"./node_modules/core-js/internals/to-integer-or-infinity.js\");\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n  var integer = toIntegerOrInfinity(index);\n  return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-absolute-index.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-indexed-object.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/to-indexed-object.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ \"./node_modules/core-js/internals/indexed-object.js\");\nvar requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ \"./node_modules/core-js/internals/require-object-coercible.js\");\n\nmodule.exports = function (it) {\n  return IndexedObject(requireObjectCoercible(it));\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-indexed-object.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-integer-or-infinity.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/internals/to-integer-or-infinity.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar trunc = __webpack_require__(/*! ../internals/math-trunc */ \"./node_modules/core-js/internals/math-trunc.js\");\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n  var number = +argument;\n  // eslint-disable-next-line no-self-compare -- NaN check\n  return number !== number || number === 0 ? 0 : trunc(number);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-integer-or-infinity.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-length.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/to-length.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ \"./node_modules/core-js/internals/to-integer-or-infinity.js\");\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n  return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-length.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/to-object.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ \"./node_modules/core-js/internals/require-object-coercible.js\");\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n  return $Object(requireObjectCoercible(argument));\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-object.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-primitive.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/to-primitive.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar call = __webpack_require__(/*! ../internals/function-call */ \"./node_modules/core-js/internals/function-call.js\");\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js/internals/is-object.js\");\nvar isSymbol = __webpack_require__(/*! ../internals/is-symbol */ \"./node_modules/core-js/internals/is-symbol.js\");\nvar getMethod = __webpack_require__(/*! ../internals/get-method */ \"./node_modules/core-js/internals/get-method.js\");\nvar ordinaryToPrimitive = __webpack_require__(/*! ../internals/ordinary-to-primitive */ \"./node_modules/core-js/internals/ordinary-to-primitive.js\");\nvar wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ \"./node_modules/core-js/internals/well-known-symbol.js\");\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n  if (!isObject(input) || isSymbol(input)) return input;\n  var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n  var result;\n  if (exoticToPrim) {\n    if (pref === undefined) pref = 'default';\n    result = call(exoticToPrim, input, pref);\n    if (!isObject(result) || isSymbol(result)) return result;\n    throw $TypeError(\"Can't convert object to primitive value\");\n  }\n  if (pref === undefined) pref = 'number';\n  return ordinaryToPrimitive(input, pref);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-primitive.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-property-key.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/internals/to-property-key.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ \"./node_modules/core-js/internals/to-primitive.js\");\nvar isSymbol = __webpack_require__(/*! ../internals/is-symbol */ \"./node_modules/core-js/internals/is-symbol.js\");\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n  var key = toPrimitive(argument, 'string');\n  return isSymbol(key) ? key : key + '';\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-property-key.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-string-tag-support.js":
/*!*****************************************************************!*\
  !*** ./node_modules/core-js/internals/to-string-tag-support.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ \"./node_modules/core-js/internals/well-known-symbol.js\");\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-string-tag-support.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/to-string.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/to-string.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar classof = __webpack_require__(/*! ../internals/classof */ \"./node_modules/core-js/internals/classof.js\");\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n  if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n  return $String(argument);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/to-string.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/try-to-string.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/try-to-string.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar $String = String;\n\nmodule.exports = function (argument) {\n  try {\n    return $String(argument);\n  } catch (error) {\n    return 'Object';\n  }\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/try-to-string.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/uid.js":
/*!***********************************************!*\
  !*** ./node_modules/core-js/internals/uid.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/uid.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/use-symbol-as-uid.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ \"./node_modules/core-js/internals/symbol-constructor-detection.js\");\n\nmodule.exports = NATIVE_SYMBOL\n  && !Symbol.sham\n  && typeof Symbol.iterator == 'symbol';\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/use-symbol-as-uid.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/v8-prototype-define-bug.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/v8-prototype-define-bug.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n  // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n  return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n    value: 42,\n    writable: false\n  }).prototype != 42;\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/v8-prototype-define-bug.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/validate-arguments-length.js":
/*!*********************************************************************!*\
  !*** ./node_modules/core-js/internals/validate-arguments-length.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n  if (passed < required) throw $TypeError('Not enough arguments');\n  return passed;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/validate-arguments-length.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/weak-map-basic-detection.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/weak-map-basic-detection.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js/internals/is-callable.js\");\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/weak-map-basic-detection.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/well-known-symbol.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/well-known-symbol.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar shared = __webpack_require__(/*! ../internals/shared */ \"./node_modules/core-js/internals/shared.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js/internals/has-own-property.js\");\nvar uid = __webpack_require__(/*! ../internals/uid */ \"./node_modules/core-js/internals/uid.js\");\nvar NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ \"./node_modules/core-js/internals/symbol-constructor-detection.js\");\nvar USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ \"./node_modules/core-js/internals/use-symbol-as-uid.js\");\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n  if (!hasOwn(WellKnownSymbolsStore, name)) {\n    WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n      ? Symbol[name]\n      : createWellKnownSymbol('Symbol.' + name);\n  } return WellKnownSymbolsStore[name];\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/well-known-symbol.js?");

/***/ }),

/***/ "./node_modules/core-js/internals/wrap-error-constructor-with-cause.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/core-js/internals/wrap-error-constructor-with-cause.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ \"./node_modules/core-js/internals/get-built-in.js\");\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js/internals/has-own-property.js\");\nvar createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ \"./node_modules/core-js/internals/create-non-enumerable-property.js\");\nvar isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ \"./node_modules/core-js/internals/object-is-prototype-of.js\");\nvar setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ \"./node_modules/core-js/internals/object-set-prototype-of.js\");\nvar copyConstructorProperties = __webpack_require__(/*! ../internals/copy-constructor-properties */ \"./node_modules/core-js/internals/copy-constructor-properties.js\");\nvar proxyAccessor = __webpack_require__(/*! ../internals/proxy-accessor */ \"./node_modules/core-js/internals/proxy-accessor.js\");\nvar inheritIfRequired = __webpack_require__(/*! ../internals/inherit-if-required */ \"./node_modules/core-js/internals/inherit-if-required.js\");\nvar normalizeStringArgument = __webpack_require__(/*! ../internals/normalize-string-argument */ \"./node_modules/core-js/internals/normalize-string-argument.js\");\nvar installErrorCause = __webpack_require__(/*! ../internals/install-error-cause */ \"./node_modules/core-js/internals/install-error-cause.js\");\nvar installErrorStack = __webpack_require__(/*! ../internals/error-stack-install */ \"./node_modules/core-js/internals/error-stack-install.js\");\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar IS_PURE = __webpack_require__(/*! ../internals/is-pure */ \"./node_modules/core-js/internals/is-pure.js\");\n\nmodule.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {\n  var STACK_TRACE_LIMIT = 'stackTraceLimit';\n  var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;\n  var path = FULL_NAME.split('.');\n  var ERROR_NAME = path[path.length - 1];\n  var OriginalError = getBuiltIn.apply(null, path);\n\n  if (!OriginalError) return;\n\n  var OriginalErrorPrototype = OriginalError.prototype;\n\n  // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006\n  if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;\n\n  if (!FORCED) return OriginalError;\n\n  var BaseError = getBuiltIn('Error');\n\n  var WrappedError = wrapper(function (a, b) {\n    var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);\n    var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();\n    if (message !== undefined) createNonEnumerableProperty(result, 'message', message);\n    installErrorStack(result, WrappedError, result.stack, 2);\n    if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);\n    if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);\n    return result;\n  });\n\n  WrappedError.prototype = OriginalErrorPrototype;\n\n  if (ERROR_NAME !== 'Error') {\n    if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);\n    else copyConstructorProperties(WrappedError, BaseError, { name: true });\n  } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {\n    proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);\n    proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');\n  }\n\n  copyConstructorProperties(WrappedError, OriginalError);\n\n  if (!IS_PURE) try {\n    // Safari 13- bug: WebAssembly errors does not have a proper `.name`\n    if (OriginalErrorPrototype.name !== ERROR_NAME) {\n      createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);\n    }\n    OriginalErrorPrototype.constructor = WrappedError;\n  } catch (error) { /* empty */ }\n\n  return WrappedError;\n};\n\n\n//# sourceURL=webpack:///./node_modules/core-js/internals/wrap-error-constructor-with-cause.js?");

/***/ }),

/***/ "./node_modules/core-js/modules/es.array.push.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/modules/es.array.push.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"./node_modules/core-js/internals/export.js\");\nvar toObject = __webpack_require__(/*! ../internals/to-object */ \"./node_modules/core-js/internals/to-object.js\");\nvar lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ \"./node_modules/core-js/internals/length-of-array-like.js\");\nvar setArrayLength = __webpack_require__(/*! ../internals/array-set-length */ \"./node_modules/core-js/internals/array-set-length.js\");\nvar doesNotExceedSafeInteger = __webpack_require__(/*! ../internals/does-not-exceed-safe-integer */ \"./node_modules/core-js/internals/does-not-exceed-safe-integer.js\");\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js/internals/fails.js\");\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n  return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n  try {\n    // eslint-disable-next-line es/no-object-defineproperty -- safe\n    Object.defineProperty([], 'length', { writable: false }).push();\n  } catch (error) {\n    return error instanceof TypeError;\n  }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n  // eslint-disable-next-line no-unused-vars -- required for `.length`\n  push: function push(item) {\n    var O = toObject(this);\n    var len = lengthOfArrayLike(O);\n    var argCount = arguments.length;\n    doesNotExceedSafeInteger(len + argCount);\n    for (var i = 0; i < argCount; i++) {\n      O[len] = arguments[i];\n      len++;\n    }\n    setArrayLength(O, len);\n    return len;\n  }\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/modules/es.array.push.js?");

/***/ }),

/***/ "./node_modules/core-js/modules/es.array.reduce.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/modules/es.array.reduce.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar $ = __webpack_require__(/*! ../internals/export */ \"./node_modules/core-js/internals/export.js\");\nvar $reduce = __webpack_require__(/*! ../internals/array-reduce */ \"./node_modules/core-js/internals/array-reduce.js\").left;\nvar arrayMethodIsStrict = __webpack_require__(/*! ../internals/array-method-is-strict */ \"./node_modules/core-js/internals/array-method-is-strict.js\");\nvar CHROME_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ \"./node_modules/core-js/internals/engine-v8-version.js\");\nvar IS_NODE = __webpack_require__(/*! ../internals/engine-is-node */ \"./node_modules/core-js/internals/engine-is-node.js\");\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: FORCED }, {\n  reduce: function reduce(callbackfn /* , initialValue */) {\n    var length = arguments.length;\n    return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n  }\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/modules/es.array.reduce.js?");

/***/ }),

/***/ "./node_modules/core-js/modules/es.error.cause.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/modules/es.error.cause.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n/* eslint-disable no-unused-vars -- required for functions `.length` */\nvar $ = __webpack_require__(/*! ../internals/export */ \"./node_modules/core-js/internals/export.js\");\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js/internals/global.js\");\nvar apply = __webpack_require__(/*! ../internals/function-apply */ \"./node_modules/core-js/internals/function-apply.js\");\nvar wrapErrorConstructorWithCause = __webpack_require__(/*! ../internals/wrap-error-constructor-with-cause */ \"./node_modules/core-js/internals/wrap-error-constructor-with-cause.js\");\n\nvar WEB_ASSEMBLY = 'WebAssembly';\nvar WebAssembly = global[WEB_ASSEMBLY];\n\nvar FORCED = Error('e', { cause: 7 }).cause !== 7;\n\nvar exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n  var O = {};\n  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);\n  $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);\n};\n\nvar exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n  if (WebAssembly && WebAssembly[ERROR_NAME]) {\n    var O = {};\n    O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);\n    $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);\n  }\n};\n\n// https://tc39.es/ecma262/#sec-nativeerror\nexportGlobalErrorCauseWrapper('Error', function (init) {\n  return function Error(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('EvalError', function (init) {\n  return function EvalError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('RangeError', function (init) {\n  return function RangeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('ReferenceError', function (init) {\n  return function ReferenceError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('SyntaxError', function (init) {\n  return function SyntaxError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('TypeError', function (init) {\n  return function TypeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('URIError', function (init) {\n  return function URIError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('CompileError', function (init) {\n  return function CompileError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('LinkError', function (init) {\n  return function LinkError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {\n  return function RuntimeError(message) { return apply(init, this, arguments); };\n});\n\n\n//# sourceURL=webpack:///./node_modules/core-js/modules/es.error.cause.js?");

/***/ }),

/***/ "./node_modules/core-js/modules/web.url-search-params.delete.js":
/*!**********************************************************************!*\
  !*** ./node_modules/core-js/modules/web.url-search-params.delete.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ \"./node_modules/core-js/internals/define-built-in.js\");\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar toString = __webpack_require__(/*! ../internals/to-string */ \"./node_modules/core-js/internals/to-string.js\");\nvar validateArgumentsLength = __webpack_require__(/*! ../internals/validate-arguments-length */ \"./node_modules/core-js/internals/validate-arguments-length.js\");\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar append = uncurryThis(URLSearchParamsPrototype.append);\nvar $delete = uncurryThis(URLSearchParamsPrototype['delete']);\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\nvar push = uncurryThis([].push);\nvar params = new $URLSearchParams('a=1&a=2&b=3');\n\nparams['delete']('a', 1);\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nparams['delete']('b', undefined);\n\nif (params + '' !== 'a=2') {\n  defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {\n    var length = arguments.length;\n    var $value = length < 2 ? undefined : arguments[1];\n    if (length && $value === undefined) return $delete(this, name);\n    var entries = [];\n    forEach(this, function (v, k) { // also validates `this`\n      push(entries, { key: k, value: v });\n    });\n    validateArgumentsLength(length, 1);\n    var key = toString(name);\n    var value = toString($value);\n    var index = 0;\n    var dindex = 0;\n    var found = false;\n    var entriesLength = entries.length;\n    var entry;\n    while (index < entriesLength) {\n      entry = entries[index++];\n      if (found || entry.key === key) {\n        found = true;\n        $delete(this, entry.key);\n      } else dindex++;\n    }\n    while (dindex < entriesLength) {\n      entry = entries[dindex++];\n      if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);\n    }\n  }, { enumerable: true, unsafe: true });\n}\n\n\n//# sourceURL=webpack:///./node_modules/core-js/modules/web.url-search-params.delete.js?");

/***/ }),

/***/ "./node_modules/core-js/modules/web.url-search-params.has.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/modules/web.url-search-params.has.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ \"./node_modules/core-js/internals/define-built-in.js\");\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar toString = __webpack_require__(/*! ../internals/to-string */ \"./node_modules/core-js/internals/to-string.js\");\nvar validateArgumentsLength = __webpack_require__(/*! ../internals/validate-arguments-length */ \"./node_modules/core-js/internals/validate-arguments-length.js\");\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar getAll = uncurryThis(URLSearchParamsPrototype.getAll);\nvar $has = uncurryThis(URLSearchParamsPrototype.has);\nvar params = new $URLSearchParams('a=1');\n\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nif (params.has('a', 2) || !params.has('a', undefined)) {\n  defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {\n    var length = arguments.length;\n    var $value = length < 2 ? undefined : arguments[1];\n    if (length && $value === undefined) return $has(this, name);\n    var values = getAll(this, name); // also validates `this`\n    validateArgumentsLength(length, 1);\n    var value = toString($value);\n    var index = 0;\n    while (index < values.length) {\n      if (values[index++] === value) return true;\n    } return false;\n  }, { enumerable: true, unsafe: true });\n}\n\n\n//# sourceURL=webpack:///./node_modules/core-js/modules/web.url-search-params.has.js?");

/***/ }),

/***/ "./node_modules/core-js/modules/web.url-search-params.size.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/modules/web.url-search-params.size.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nvar DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js/internals/descriptors.js\");\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js/internals/function-uncurry-this.js\");\nvar defineBuiltInAccessor = __webpack_require__(/*! ../internals/define-built-in-accessor */ \"./node_modules/core-js/internals/define-built-in-accessor.js\");\n\nvar URLSearchParamsPrototype = URLSearchParams.prototype;\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\n\n// `URLSearchParams.prototype.size` getter\n// https://github.com/whatwg/url/pull/734\nif (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {\n  defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {\n    get: function size() {\n      var count = 0;\n      forEach(this, function () { count++; });\n      return count;\n    },\n    configurable: true,\n    enumerable: true\n  });\n}\n\n\n//# sourceURL=webpack:///./node_modules/core-js/modules/web.url-search-params.size.js?");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/button/index.less":
/*!************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/button/index.less ***!
  \************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".van-button {\\n  position: relative;\\n  display: inline-block;\\n  box-sizing: border-box;\\n  height: 44px;\\n  margin: 0;\\n  padding: 0;\\n  font-size: 16px;\\n  line-height: 1.2;\\n  text-align: center;\\n  border-radius: 2px;\\n  cursor: pointer;\\n  -webkit-transition: opacity 0.2s;\\n  transition: opacity 0.2s;\\n  -webkit-appearance: none;\\n}\\n.van-button::before {\\n  position: absolute;\\n  top: 50%;\\n  left: 50%;\\n  width: 100%;\\n  height: 100%;\\n  background-color: #000;\\n  border: inherit;\\n  border-color: #000;\\n  border-radius: inherit;\\n  /* inherit parent's border radius */\\n  -webkit-transform: translate(-50%, -50%);\\n          transform: translate(-50%, -50%);\\n  opacity: 0;\\n  content: ' ';\\n}\\n.van-button:active::before {\\n  opacity: 0.1;\\n}\\n.van-button--loading::before,\\n.van-button--disabled::before {\\n  display: none;\\n}\\n.van-button--default {\\n  color: #323233;\\n  background-color: #fff;\\n  border: 1px solid #ebedf0;\\n}\\n.van-button--primary {\\n  color: #fff;\\n  background-color: #07c160;\\n  border: 1px solid #07c160;\\n}\\n.van-button--info {\\n  color: #fff;\\n  background-color: #1989fa;\\n  border: 1px solid #1989fa;\\n}\\n.van-button--danger {\\n  color: #fff;\\n  background-color: #ee0a24;\\n  border: 1px solid #ee0a24;\\n}\\n.van-button--warning {\\n  color: #fff;\\n  background-color: #ff976a;\\n  border: 1px solid #ff976a;\\n}\\n.van-button--plain {\\n  background-color: #fff;\\n}\\n.van-button--plain.van-button--primary {\\n  color: #07c160;\\n}\\n.van-button--plain.van-button--info {\\n  color: #1989fa;\\n}\\n.van-button--plain.van-button--danger {\\n  color: #ee0a24;\\n}\\n.van-button--plain.van-button--warning {\\n  color: #ff976a;\\n}\\n.van-button--large {\\n  width: 100%;\\n  height: 50px;\\n}\\n.van-button--normal {\\n  padding: 0 15px;\\n  font-size: 14px;\\n}\\n.van-button--small {\\n  height: 32px;\\n  padding: 0 8px;\\n  font-size: 12px;\\n}\\n.van-button__loading {\\n  color: inherit;\\n  font-size: inherit;\\n}\\n.van-button--mini {\\n  height: 24px;\\n  padding: 0 4px;\\n  font-size: 10px;\\n}\\n.van-button--mini + .van-button--mini {\\n  margin-left: 4px;\\n}\\n.van-button--block {\\n  display: block;\\n  width: 100%;\\n}\\n.van-button--disabled {\\n  cursor: not-allowed;\\n  opacity: 0.5;\\n}\\n.van-button--loading {\\n  cursor: default;\\n}\\n.van-button--round {\\n  border-radius: 999px;\\n}\\n.van-button--square {\\n  border-radius: 0;\\n}\\n.van-button__content {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  height: 100%;\\n}\\n.van-button__content::before {\\n  content: ' ';\\n}\\n.van-button__icon {\\n  font-size: 1.2em;\\n  line-height: inherit;\\n}\\n.van-button__icon + .van-button__text,\\n.van-button__loading + .van-button__text,\\n.van-button__text + .van-button__icon,\\n.van-button__text + .van-button__loading {\\n  margin-left: 4px;\\n}\\n.van-button--hairline {\\n  border-width: 0;\\n}\\n.van-button--hairline::after {\\n  border-color: inherit;\\n  border-radius: 4px;\\n}\\n.van-button--hairline.van-button--round::after {\\n  border-radius: 999px;\\n}\\n.van-button--hairline.van-button--square::after {\\n  border-radius: 0;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/button/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/dialog/index.less":
/*!************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/dialog/index.less ***!
  \************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".van-dialog {\\n  position: fixed;\\n  top: 45%;\\n  left: 50%;\\n  width: 320px;\\n  overflow: hidden;\\n  font-size: 16px;\\n  background-color: #fff;\\n  border-radius: 16px;\\n  -webkit-transform: translate3d(-50%, -50%, 0);\\n          transform: translate3d(-50%, -50%, 0);\\n  -webkit-backface-visibility: hidden;\\n          backface-visibility: hidden;\\n  -webkit-transition: 0.3s;\\n  transition: 0.3s;\\n  -webkit-transition-property: opacity, -webkit-transform;\\n  transition-property: opacity, -webkit-transform;\\n  transition-property: transform, opacity;\\n  transition-property: transform, opacity, -webkit-transform;\\n}\\n@media (max-width: 321px) {\\n  .van-dialog {\\n    width: 90%;\\n  }\\n}\\n.van-dialog__header {\\n  padding-top: 26px;\\n  font-weight: 500;\\n  line-height: 24px;\\n  text-align: center;\\n}\\n.van-dialog__header--isolated {\\n  padding: 24px 0;\\n}\\n.van-dialog__content--isolated {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  min-height: 104px;\\n}\\n.van-dialog__message {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  max-height: 60vh;\\n  padding: 26px 24px;\\n  overflow-y: auto;\\n  font-size: 14px;\\n  line-height: 20px;\\n  white-space: pre-wrap;\\n  text-align: center;\\n  word-wrap: break-word;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-dialog__message--has-title {\\n  padding-top: 8px;\\n  color: #646566;\\n}\\n.van-dialog__message--left {\\n  text-align: left;\\n}\\n.van-dialog__message--right {\\n  text-align: right;\\n}\\n.van-dialog__footer {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  overflow: hidden;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-dialog__confirm,\\n.van-dialog__cancel {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  height: 48px;\\n  margin: 0;\\n  border: 0;\\n}\\n.van-dialog__confirm,\\n.van-dialog__confirm:active {\\n  color: #ee0a24;\\n}\\n.van-dialog--round-button .van-dialog__footer {\\n  position: relative;\\n  height: auto;\\n  padding: 8px 24px 16px;\\n}\\n.van-dialog--round-button .van-dialog__message {\\n  padding-bottom: 16px;\\n  color: #323233;\\n}\\n.van-dialog--round-button .van-dialog__confirm,\\n.van-dialog--round-button .van-dialog__cancel {\\n  height: 36px;\\n}\\n.van-dialog--round-button .van-dialog__confirm {\\n  color: #fff;\\n}\\n.van-dialog-bounce-enter {\\n  -webkit-transform: translate3d(-50%, -50%, 0) scale(0.7);\\n          transform: translate3d(-50%, -50%, 0) scale(0.7);\\n  opacity: 0;\\n}\\n.van-dialog-bounce-leave-active {\\n  -webkit-transform: translate3d(-50%, -50%, 0) scale(0.9);\\n          transform: translate3d(-50%, -50%, 0) scale(0.9);\\n  opacity: 0;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/dialog/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/goods-action-button/index.less":
/*!*************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/goods-action-button/index.less ***!
  \*************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".van-goods-action-button {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  height: 40px;\\n  font-weight: 500;\\n  font-size: 14px;\\n  border: none;\\n  border-radius: 0;\\n}\\n.van-goods-action-button--first {\\n  margin-left: 5px;\\n  border-top-left-radius: 999px;\\n  border-bottom-left-radius: 999px;\\n}\\n.van-goods-action-button--last {\\n  margin-right: 5px;\\n  border-top-right-radius: 999px;\\n  border-bottom-right-radius: 999px;\\n}\\n.van-goods-action-button--warning {\\n  background: -webkit-linear-gradient(left, #ffd01e, #ff8917);\\n  background: linear-gradient(to right, #ffd01e, #ff8917);\\n}\\n.van-goods-action-button--danger {\\n  background: -webkit-linear-gradient(left, #ff6034, #ee0a24);\\n  background: linear-gradient(to right, #ff6034, #ee0a24);\\n}\\n@media (max-width: 321px) {\\n  .van-goods-action-button {\\n    font-size: 13px;\\n  }\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/goods-action-button/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/goods-action/index.less":
/*!******************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/goods-action/index.less ***!
  \******************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".van-goods-action {\\n  position: fixed;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  box-sizing: content-box;\\n  height: 50px;\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n  background-color: #fff;\\n}\\n.van-goods-action--unfit {\\n  padding-bottom: 0;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/goods-action/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/icon/index.less":
/*!**********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/icon/index.less ***!
  \**********************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"/* stylelint-disable selector-pseudo-element-colon-notation */\\n/* stylelint-disable font-family-no-missing-generic-family-keyword */\\n.van-icon {\\n  position: relative;\\n  display: inline-block;\\n  font: normal normal normal 14px/1 'vant-icon';\\n  font-size: inherit;\\n  text-rendering: auto;\\n  -webkit-font-smoothing: antialiased;\\n}\\n.van-icon:before {\\n  display: inline-block;\\n}\\n.van-icon-exchange:before {\\n  content: '\\\\e6af';\\n}\\n.van-icon-eye:before {\\n  content: '\\\\e6b0';\\n}\\n.van-icon-enlarge:before {\\n  content: '\\\\e6b1';\\n}\\n.van-icon-expand-o:before {\\n  content: '\\\\e6b2';\\n}\\n.van-icon-eye-o:before {\\n  content: '\\\\e6b3';\\n}\\n.van-icon-expand:before {\\n  content: '\\\\e6b4';\\n}\\n.van-icon-filter-o:before {\\n  content: '\\\\e6b5';\\n}\\n.van-icon-fire:before {\\n  content: '\\\\e6b6';\\n}\\n.van-icon-fail:before {\\n  content: '\\\\e6b7';\\n}\\n.van-icon-failure:before {\\n  content: '\\\\e6b8';\\n}\\n.van-icon-fire-o:before {\\n  content: '\\\\e6b9';\\n}\\n.van-icon-flag-o:before {\\n  content: '\\\\e6ba';\\n}\\n.van-icon-font:before {\\n  content: '\\\\e6bb';\\n}\\n.van-icon-font-o:before {\\n  content: '\\\\e6bc';\\n}\\n.van-icon-gem-o:before {\\n  content: '\\\\e6bd';\\n}\\n.van-icon-flower-o:before {\\n  content: '\\\\e6be';\\n}\\n.van-icon-gem:before {\\n  content: '\\\\e6bf';\\n}\\n.van-icon-gift-card:before {\\n  content: '\\\\e6c0';\\n}\\n.van-icon-friends:before {\\n  content: '\\\\e6c1';\\n}\\n.van-icon-friends-o:before {\\n  content: '\\\\e6c2';\\n}\\n.van-icon-gold-coin:before {\\n  content: '\\\\e6c3';\\n}\\n.van-icon-gold-coin-o:before {\\n  content: '\\\\e6c4';\\n}\\n.van-icon-good-job-o:before {\\n  content: '\\\\e6c5';\\n}\\n.van-icon-gift:before {\\n  content: '\\\\e6c6';\\n}\\n.van-icon-gift-o:before {\\n  content: '\\\\e6c7';\\n}\\n.van-icon-gift-card-o:before {\\n  content: '\\\\e6c8';\\n}\\n.van-icon-good-job:before {\\n  content: '\\\\e6c9';\\n}\\n.van-icon-home-o:before {\\n  content: '\\\\e6ca';\\n}\\n.van-icon-goods-collect:before {\\n  content: '\\\\e6cb';\\n}\\n.van-icon-graphic:before {\\n  content: '\\\\e6cc';\\n}\\n.van-icon-goods-collect-o:before {\\n  content: '\\\\e6cd';\\n}\\n.van-icon-hot-o:before {\\n  content: '\\\\e6ce';\\n}\\n.van-icon-info:before {\\n  content: '\\\\e6cf';\\n}\\n.van-icon-hotel-o:before {\\n  content: '\\\\e6d0';\\n}\\n.van-icon-info-o:before {\\n  content: '\\\\e6d1';\\n}\\n.van-icon-hot-sale-o:before {\\n  content: '\\\\e6d2';\\n}\\n.van-icon-hot:before {\\n  content: '\\\\e6d3';\\n}\\n.van-icon-like:before {\\n  content: '\\\\e6d4';\\n}\\n.van-icon-idcard:before {\\n  content: '\\\\e6d5';\\n}\\n.van-icon-invitation:before {\\n  content: '\\\\e6d6';\\n}\\n.van-icon-like-o:before {\\n  content: '\\\\e6d7';\\n}\\n.van-icon-hot-sale:before {\\n  content: '\\\\e6d8';\\n}\\n.van-icon-location-o:before {\\n  content: '\\\\e6d9';\\n}\\n.van-icon-location:before {\\n  content: '\\\\e6da';\\n}\\n.van-icon-label:before {\\n  content: '\\\\e6db';\\n}\\n.van-icon-lock:before {\\n  content: '\\\\e6dc';\\n}\\n.van-icon-label-o:before {\\n  content: '\\\\e6dd';\\n}\\n.van-icon-map-marked:before {\\n  content: '\\\\e6de';\\n}\\n.van-icon-logistics:before {\\n  content: '\\\\e6df';\\n}\\n.van-icon-manager:before {\\n  content: '\\\\e6e0';\\n}\\n.van-icon-more:before {\\n  content: '\\\\e6e1';\\n}\\n.van-icon-live:before {\\n  content: '\\\\e6e2';\\n}\\n.van-icon-manager-o:before {\\n  content: '\\\\e6e3';\\n}\\n.van-icon-medal:before {\\n  content: '\\\\e6e4';\\n}\\n.van-icon-more-o:before {\\n  content: '\\\\e6e5';\\n}\\n.van-icon-music-o:before {\\n  content: '\\\\e6e6';\\n}\\n.van-icon-music:before {\\n  content: '\\\\e6e7';\\n}\\n.van-icon-new-arrival-o:before {\\n  content: '\\\\e6e8';\\n}\\n.van-icon-medal-o:before {\\n  content: '\\\\e6e9';\\n}\\n.van-icon-new-o:before {\\n  content: '\\\\e6ea';\\n}\\n.van-icon-free-postage:before {\\n  content: '\\\\e6eb';\\n}\\n.van-icon-newspaper-o:before {\\n  content: '\\\\e6ec';\\n}\\n.van-icon-new-arrival:before {\\n  content: '\\\\e6ed';\\n}\\n.van-icon-minus:before {\\n  content: '\\\\e6ee';\\n}\\n.van-icon-orders-o:before {\\n  content: '\\\\e6ef';\\n}\\n.van-icon-new:before {\\n  content: '\\\\e6f0';\\n}\\n.van-icon-paid:before {\\n  content: '\\\\e6f1';\\n}\\n.van-icon-notes-o:before {\\n  content: '\\\\e6f2';\\n}\\n.van-icon-other-pay:before {\\n  content: '\\\\e6f3';\\n}\\n.van-icon-pause-circle:before {\\n  content: '\\\\e6f4';\\n}\\n.van-icon-pause:before {\\n  content: '\\\\e6f5';\\n}\\n.van-icon-pause-circle-o:before {\\n  content: '\\\\e6f6';\\n}\\n.van-icon-peer-pay:before {\\n  content: '\\\\e6f7';\\n}\\n.van-icon-pending-payment:before {\\n  content: '\\\\e6f8';\\n}\\n.van-icon-passed:before {\\n  content: '\\\\e6f9';\\n}\\n.van-icon-plus:before {\\n  content: '\\\\e6fa';\\n}\\n.van-icon-phone-circle-o:before {\\n  content: '\\\\e6fb';\\n}\\n.van-icon-phone-o:before {\\n  content: '\\\\e6fc';\\n}\\n.van-icon-printer:before {\\n  content: '\\\\e6fd';\\n}\\n.van-icon-photo-fail:before {\\n  content: '\\\\e6fe';\\n}\\n.van-icon-phone:before {\\n  content: '\\\\e6ff';\\n}\\n.van-icon-photo-o:before {\\n  content: '\\\\e700';\\n}\\n.van-icon-play-circle:before {\\n  content: '\\\\e701';\\n}\\n.van-icon-play:before {\\n  content: '\\\\e702';\\n}\\n.van-icon-phone-circle:before {\\n  content: '\\\\e703';\\n}\\n.van-icon-point-gift-o:before {\\n  content: '\\\\e704';\\n}\\n.van-icon-point-gift:before {\\n  content: '\\\\e705';\\n}\\n.van-icon-play-circle-o:before {\\n  content: '\\\\e706';\\n}\\n.van-icon-shrink:before {\\n  content: '\\\\e707';\\n}\\n.van-icon-photo:before {\\n  content: '\\\\e708';\\n}\\n.van-icon-qr:before {\\n  content: '\\\\e709';\\n}\\n.van-icon-qr-invalid:before {\\n  content: '\\\\e70a';\\n}\\n.van-icon-question-o:before {\\n  content: '\\\\e70b';\\n}\\n.van-icon-revoke:before {\\n  content: '\\\\e70c';\\n}\\n.van-icon-replay:before {\\n  content: '\\\\e70d';\\n}\\n.van-icon-service:before {\\n  content: '\\\\e70e';\\n}\\n.van-icon-question:before {\\n  content: '\\\\e70f';\\n}\\n.van-icon-search:before {\\n  content: '\\\\e710';\\n}\\n.van-icon-refund-o:before {\\n  content: '\\\\e711';\\n}\\n.van-icon-service-o:before {\\n  content: '\\\\e712';\\n}\\n.van-icon-scan:before {\\n  content: '\\\\e713';\\n}\\n.van-icon-share:before {\\n  content: '\\\\e714';\\n}\\n.van-icon-send-gift-o:before {\\n  content: '\\\\e715';\\n}\\n.van-icon-share-o:before {\\n  content: '\\\\e716';\\n}\\n.van-icon-setting:before {\\n  content: '\\\\e717';\\n}\\n.van-icon-points:before {\\n  content: '\\\\e718';\\n}\\n.van-icon-photograph:before {\\n  content: '\\\\e719';\\n}\\n.van-icon-shop:before {\\n  content: '\\\\e71a';\\n}\\n.van-icon-shop-o:before {\\n  content: '\\\\e71b';\\n}\\n.van-icon-shop-collect-o:before {\\n  content: '\\\\e71c';\\n}\\n.van-icon-shop-collect:before {\\n  content: '\\\\e71d';\\n}\\n.van-icon-smile:before {\\n  content: '\\\\e71e';\\n}\\n.van-icon-shopping-cart-o:before {\\n  content: '\\\\e71f';\\n}\\n.van-icon-sign:before {\\n  content: '\\\\e720';\\n}\\n.van-icon-sort:before {\\n  content: '\\\\e721';\\n}\\n.van-icon-star-o:before {\\n  content: '\\\\e722';\\n}\\n.van-icon-smile-comment-o:before {\\n  content: '\\\\e723';\\n}\\n.van-icon-stop:before {\\n  content: '\\\\e724';\\n}\\n.van-icon-stop-circle-o:before {\\n  content: '\\\\e725';\\n}\\n.van-icon-smile-o:before {\\n  content: '\\\\e726';\\n}\\n.van-icon-star:before {\\n  content: '\\\\e727';\\n}\\n.van-icon-success:before {\\n  content: '\\\\e728';\\n}\\n.van-icon-stop-circle:before {\\n  content: '\\\\e729';\\n}\\n.van-icon-records:before {\\n  content: '\\\\e72a';\\n}\\n.van-icon-shopping-cart:before {\\n  content: '\\\\e72b';\\n}\\n.van-icon-tosend:before {\\n  content: '\\\\e72c';\\n}\\n.van-icon-todo-list:before {\\n  content: '\\\\e72d';\\n}\\n.van-icon-thumb-circle-o:before {\\n  content: '\\\\e72e';\\n}\\n.van-icon-thumb-circle:before {\\n  content: '\\\\e72f';\\n}\\n.van-icon-umbrella-circle:before {\\n  content: '\\\\e730';\\n}\\n.van-icon-underway:before {\\n  content: '\\\\e731';\\n}\\n.van-icon-upgrade:before {\\n  content: '\\\\e732';\\n}\\n.van-icon-todo-list-o:before {\\n  content: '\\\\e733';\\n}\\n.van-icon-tv-o:before {\\n  content: '\\\\e734';\\n}\\n.van-icon-underway-o:before {\\n  content: '\\\\e735';\\n}\\n.van-icon-user-o:before {\\n  content: '\\\\e736';\\n}\\n.van-icon-vip-card-o:before {\\n  content: '\\\\e737';\\n}\\n.van-icon-vip-card:before {\\n  content: '\\\\e738';\\n}\\n.van-icon-send-gift:before {\\n  content: '\\\\e739';\\n}\\n.van-icon-wap-home:before {\\n  content: '\\\\e73a';\\n}\\n.van-icon-wap-nav:before {\\n  content: '\\\\e73b';\\n}\\n.van-icon-volume-o:before {\\n  content: '\\\\e73c';\\n}\\n.van-icon-video:before {\\n  content: '\\\\e73d';\\n}\\n.van-icon-wap-home-o:before {\\n  content: '\\\\e73e';\\n}\\n.van-icon-volume:before {\\n  content: '\\\\e73f';\\n}\\n.van-icon-warning:before {\\n  content: '\\\\e740';\\n}\\n.van-icon-weapp-nav:before {\\n  content: '\\\\e741';\\n}\\n.van-icon-wechat-pay:before {\\n  content: '\\\\e742';\\n}\\n.van-icon-warning-o:before {\\n  content: '\\\\e743';\\n}\\n.van-icon-wechat:before {\\n  content: '\\\\e744';\\n}\\n.van-icon-setting-o:before {\\n  content: '\\\\e745';\\n}\\n.van-icon-youzan-shield:before {\\n  content: '\\\\e746';\\n}\\n.van-icon-warn-o:before {\\n  content: '\\\\e747';\\n}\\n.van-icon-smile-comment:before {\\n  content: '\\\\e748';\\n}\\n.van-icon-user-circle-o:before {\\n  content: '\\\\e749';\\n}\\n.van-icon-video-o:before {\\n  content: '\\\\e74a';\\n}\\n.van-icon-add-square:before {\\n  content: '\\\\e65c';\\n}\\n.van-icon-add:before {\\n  content: '\\\\e65d';\\n}\\n.van-icon-arrow-down:before {\\n  content: '\\\\e65e';\\n}\\n.van-icon-arrow-up:before {\\n  content: '\\\\e65f';\\n}\\n.van-icon-arrow:before {\\n  content: '\\\\e660';\\n}\\n.van-icon-after-sale:before {\\n  content: '\\\\e661';\\n}\\n.van-icon-add-o:before {\\n  content: '\\\\e662';\\n}\\n.van-icon-alipay:before {\\n  content: '\\\\e663';\\n}\\n.van-icon-ascending:before {\\n  content: '\\\\e664';\\n}\\n.van-icon-apps-o:before {\\n  content: '\\\\e665';\\n}\\n.van-icon-aim:before {\\n  content: '\\\\e666';\\n}\\n.van-icon-award:before {\\n  content: '\\\\e667';\\n}\\n.van-icon-arrow-left:before {\\n  content: '\\\\e668';\\n}\\n.van-icon-award-o:before {\\n  content: '\\\\e669';\\n}\\n.van-icon-audio:before {\\n  content: '\\\\e66a';\\n}\\n.van-icon-bag-o:before {\\n  content: '\\\\e66b';\\n}\\n.van-icon-balance-list:before {\\n  content: '\\\\e66c';\\n}\\n.van-icon-back-top:before {\\n  content: '\\\\e66d';\\n}\\n.van-icon-bag:before {\\n  content: '\\\\e66e';\\n}\\n.van-icon-balance-pay:before {\\n  content: '\\\\e66f';\\n}\\n.van-icon-balance-o:before {\\n  content: '\\\\e670';\\n}\\n.van-icon-bar-chart-o:before {\\n  content: '\\\\e671';\\n}\\n.van-icon-bars:before {\\n  content: '\\\\e672';\\n}\\n.van-icon-balance-list-o:before {\\n  content: '\\\\e673';\\n}\\n.van-icon-birthday-cake-o:before {\\n  content: '\\\\e674';\\n}\\n.van-icon-bookmark:before {\\n  content: '\\\\e675';\\n}\\n.van-icon-bill:before {\\n  content: '\\\\e676';\\n}\\n.van-icon-bell:before {\\n  content: '\\\\e677';\\n}\\n.van-icon-browsing-history-o:before {\\n  content: '\\\\e678';\\n}\\n.van-icon-browsing-history:before {\\n  content: '\\\\e679';\\n}\\n.van-icon-bookmark-o:before {\\n  content: '\\\\e67a';\\n}\\n.van-icon-bulb-o:before {\\n  content: '\\\\e67b';\\n}\\n.van-icon-bullhorn-o:before {\\n  content: '\\\\e67c';\\n}\\n.van-icon-bill-o:before {\\n  content: '\\\\e67d';\\n}\\n.van-icon-calendar-o:before {\\n  content: '\\\\e67e';\\n}\\n.van-icon-brush-o:before {\\n  content: '\\\\e67f';\\n}\\n.van-icon-card:before {\\n  content: '\\\\e680';\\n}\\n.van-icon-cart-o:before {\\n  content: '\\\\e681';\\n}\\n.van-icon-cart-circle:before {\\n  content: '\\\\e682';\\n}\\n.van-icon-cart-circle-o:before {\\n  content: '\\\\e683';\\n}\\n.van-icon-cart:before {\\n  content: '\\\\e684';\\n}\\n.van-icon-cash-on-deliver:before {\\n  content: '\\\\e685';\\n}\\n.van-icon-cash-back-record:before {\\n  content: '\\\\e686';\\n}\\n.van-icon-cashier-o:before {\\n  content: '\\\\e687';\\n}\\n.van-icon-chart-trending-o:before {\\n  content: '\\\\e688';\\n}\\n.van-icon-certificate:before {\\n  content: '\\\\e689';\\n}\\n.van-icon-chat:before {\\n  content: '\\\\e68a';\\n}\\n.van-icon-clear:before {\\n  content: '\\\\e68b';\\n}\\n.van-icon-chat-o:before {\\n  content: '\\\\e68c';\\n}\\n.van-icon-checked:before {\\n  content: '\\\\e68d';\\n}\\n.van-icon-clock:before {\\n  content: '\\\\e68e';\\n}\\n.van-icon-clock-o:before {\\n  content: '\\\\e68f';\\n}\\n.van-icon-close:before {\\n  content: '\\\\e690';\\n}\\n.van-icon-closed-eye:before {\\n  content: '\\\\e691';\\n}\\n.van-icon-circle:before {\\n  content: '\\\\e692';\\n}\\n.van-icon-cluster-o:before {\\n  content: '\\\\e693';\\n}\\n.van-icon-column:before {\\n  content: '\\\\e694';\\n}\\n.van-icon-comment-circle-o:before {\\n  content: '\\\\e695';\\n}\\n.van-icon-cluster:before {\\n  content: '\\\\e696';\\n}\\n.van-icon-comment:before {\\n  content: '\\\\e697';\\n}\\n.van-icon-comment-o:before {\\n  content: '\\\\e698';\\n}\\n.van-icon-comment-circle:before {\\n  content: '\\\\e699';\\n}\\n.van-icon-completed:before {\\n  content: '\\\\e69a';\\n}\\n.van-icon-credit-pay:before {\\n  content: '\\\\e69b';\\n}\\n.van-icon-coupon:before {\\n  content: '\\\\e69c';\\n}\\n.van-icon-debit-pay:before {\\n  content: '\\\\e69d';\\n}\\n.van-icon-coupon-o:before {\\n  content: '\\\\e69e';\\n}\\n.van-icon-contact:before {\\n  content: '\\\\e69f';\\n}\\n.van-icon-descending:before {\\n  content: '\\\\e6a0';\\n}\\n.van-icon-desktop-o:before {\\n  content: '\\\\e6a1';\\n}\\n.van-icon-diamond-o:before {\\n  content: '\\\\e6a2';\\n}\\n.van-icon-description:before {\\n  content: '\\\\e6a3';\\n}\\n.van-icon-delete:before {\\n  content: '\\\\e6a4';\\n}\\n.van-icon-diamond:before {\\n  content: '\\\\e6a5';\\n}\\n.van-icon-delete-o:before {\\n  content: '\\\\e6a6';\\n}\\n.van-icon-cross:before {\\n  content: '\\\\e6a7';\\n}\\n.van-icon-edit:before {\\n  content: '\\\\e6a8';\\n}\\n.van-icon-ellipsis:before {\\n  content: '\\\\e6a9';\\n}\\n.van-icon-down:before {\\n  content: '\\\\e6aa';\\n}\\n.van-icon-discount:before {\\n  content: '\\\\e6ab';\\n}\\n.van-icon-ecard-pay:before {\\n  content: '\\\\e6ac';\\n}\\n.van-icon-envelop-o:before {\\n  content: '\\\\e6ae';\\n}\\n.van-icon-shield-o:before {\\n  content: '\\\\e74b';\\n}\\n.van-icon-guide-o:before {\\n  content: '\\\\e74c';\\n}\\n.van-icon-cash-o:before {\\n  content: '\\\\e74d';\\n}\\n.van-icon-qq:before {\\n  content: '\\\\e74e';\\n}\\n.van-icon-wechat-moments:before {\\n  content: '\\\\e74f';\\n}\\n.van-icon-weibo:before {\\n  content: '\\\\e750';\\n}\\n.van-icon-link-o:before {\\n  content: '\\\\e751';\\n}\\n.van-icon-miniprogram-o:before {\\n  content: '\\\\e752';\\n}\\n/* stylelint-disable selector-pseudo-element-colon-notation */\\n/* stylelint-disable font-family-no-missing-generic-family-keyword */\\n@font-face {\\n  font-weight: normal;\\n  font-family: 'vant-icon';\\n  font-style: normal;\\n  font-display: auto;\\n  src: url('data:font/woff2;charset=utf-8;base64, ') format('woff2'), url('//at.alicdn.com/t/font_2553510_iv4v8nulyz.woff?t=1649083952952') format('woff'), url('//at.alicdn.com/t/font_2553510_iv4v8nulyz.ttf?t=1649083952952') format('truetype');\\n}\\n.van-icon__image {\\n  display: block;\\n  width: 1em;\\n  height: 1em;\\n  object-fit: contain;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/icon/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/info/index.less":
/*!**********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/info/index.less ***!
  \**********************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".van-info {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  box-sizing: border-box;\\n  min-width: 16px;\\n  padding: 0 3px;\\n  color: #fff;\\n  font-weight: 500;\\n  font-size: 12px;\\n  font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;\\n  line-height: 1.2;\\n  text-align: center;\\n  background-color: #ee0a24;\\n  border: 1px solid #fff;\\n  border-radius: 16px;\\n  -webkit-transform: translate(50%, -50%);\\n          transform: translate(50%, -50%);\\n  -webkit-transform-origin: 100%;\\n          transform-origin: 100%;\\n}\\n.van-info--dot {\\n  width: 8px;\\n  min-width: 0;\\n  height: 8px;\\n  background-color: #ee0a24;\\n  border-radius: 100%;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/info/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/loading/index.less":
/*!*************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/loading/index.less ***!
  \*************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".van-loading {\\n  position: relative;\\n  color: #c8c9cc;\\n  font-size: 0;\\n  vertical-align: middle;\\n}\\n.van-loading__spinner {\\n  position: relative;\\n  display: inline-block;\\n  width: 30px;\\n  max-width: 100%;\\n  height: 30px;\\n  max-height: 100%;\\n  vertical-align: middle;\\n  -webkit-animation: van-rotate 0.8s linear infinite;\\n          animation: van-rotate 0.8s linear infinite;\\n}\\n.van-loading__spinner--spinner {\\n  -webkit-animation-timing-function: steps(12);\\n          animation-timing-function: steps(12);\\n}\\n.van-loading__spinner--spinner i {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-loading__spinner--spinner i::before {\\n  display: block;\\n  width: 2px;\\n  height: 25%;\\n  margin: 0 auto;\\n  background-color: currentColor;\\n  border-radius: 40%;\\n  content: ' ';\\n}\\n.van-loading__spinner--circular {\\n  -webkit-animation-duration: 2s;\\n          animation-duration: 2s;\\n}\\n.van-loading__circular {\\n  display: block;\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-loading__circular circle {\\n  -webkit-animation: van-circular 1.5s ease-in-out infinite;\\n          animation: van-circular 1.5s ease-in-out infinite;\\n  stroke: currentColor;\\n  stroke-width: 3;\\n  stroke-linecap: round;\\n}\\n.van-loading__text {\\n  display: inline-block;\\n  margin-left: 8px;\\n  color: #969799;\\n  font-size: 14px;\\n  vertical-align: middle;\\n}\\n.van-loading--vertical {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n}\\n.van-loading--vertical .van-loading__text {\\n  margin: 8px 0 0;\\n}\\n@-webkit-keyframes van-circular {\\n  0% {\\n    stroke-dasharray: 1, 200;\\n    stroke-dashoffset: 0;\\n  }\\n  50% {\\n    stroke-dasharray: 90, 150;\\n    stroke-dashoffset: -40;\\n  }\\n  100% {\\n    stroke-dasharray: 90, 150;\\n    stroke-dashoffset: -120;\\n  }\\n}\\n@keyframes van-circular {\\n  0% {\\n    stroke-dasharray: 1, 200;\\n    stroke-dashoffset: 0;\\n  }\\n  50% {\\n    stroke-dasharray: 90, 150;\\n    stroke-dashoffset: -40;\\n  }\\n  100% {\\n    stroke-dasharray: 90, 150;\\n    stroke-dashoffset: -120;\\n  }\\n}\\n.van-loading__spinner--spinner i:nth-of-type(1) {\\n  -webkit-transform: rotate(30deg);\\n          transform: rotate(30deg);\\n  opacity: 1;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(2) {\\n  -webkit-transform: rotate(60deg);\\n          transform: rotate(60deg);\\n  opacity: 0.9375;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(3) {\\n  -webkit-transform: rotate(90deg);\\n          transform: rotate(90deg);\\n  opacity: 0.875;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(4) {\\n  -webkit-transform: rotate(120deg);\\n          transform: rotate(120deg);\\n  opacity: 0.8125;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(5) {\\n  -webkit-transform: rotate(150deg);\\n          transform: rotate(150deg);\\n  opacity: 0.75;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(6) {\\n  -webkit-transform: rotate(180deg);\\n          transform: rotate(180deg);\\n  opacity: 0.6875;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(7) {\\n  -webkit-transform: rotate(210deg);\\n          transform: rotate(210deg);\\n  opacity: 0.625;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(8) {\\n  -webkit-transform: rotate(240deg);\\n          transform: rotate(240deg);\\n  opacity: 0.5625;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(9) {\\n  -webkit-transform: rotate(270deg);\\n          transform: rotate(270deg);\\n  opacity: 0.5;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(10) {\\n  -webkit-transform: rotate(300deg);\\n          transform: rotate(300deg);\\n  opacity: 0.4375;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(11) {\\n  -webkit-transform: rotate(330deg);\\n          transform: rotate(330deg);\\n  opacity: 0.375;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(12) {\\n  -webkit-transform: rotate(360deg);\\n          transform: rotate(360deg);\\n  opacity: 0.3125;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/loading/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/overlay/index.less":
/*!*************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/overlay/index.less ***!
  \*************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".van-overlay {\\n  position: fixed;\\n  top: 0;\\n  left: 0;\\n  z-index: 1;\\n  width: 100%;\\n  height: 100%;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/overlay/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/popup/index.less":
/*!***********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/popup/index.less ***!
  \***********************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".van-overflow-hidden {\\n  overflow: hidden !important;\\n}\\n.van-popup {\\n  position: fixed;\\n  max-height: 100%;\\n  overflow-y: auto;\\n  background-color: #fff;\\n  -webkit-transition: -webkit-transform 0.3s;\\n  transition: -webkit-transform 0.3s;\\n  transition: transform 0.3s;\\n  transition: transform 0.3s, -webkit-transform 0.3s;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-popup--center {\\n  top: 50%;\\n  left: 50%;\\n  -webkit-transform: translate3d(-50%, -50%, 0);\\n          transform: translate3d(-50%, -50%, 0);\\n}\\n.van-popup--center.van-popup--round {\\n  border-radius: 16px;\\n}\\n.van-popup--top {\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n}\\n.van-popup--top.van-popup--round {\\n  border-radius: 0 0 16px 16px;\\n}\\n.van-popup--right {\\n  top: 50%;\\n  right: 0;\\n  -webkit-transform: translate3d(0, -50%, 0);\\n          transform: translate3d(0, -50%, 0);\\n}\\n.van-popup--right.van-popup--round {\\n  border-radius: 16px 0 0 16px;\\n}\\n.van-popup--bottom {\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n}\\n.van-popup--bottom.van-popup--round {\\n  border-radius: 16px 16px 0 0;\\n}\\n.van-popup--left {\\n  top: 50%;\\n  left: 0;\\n  -webkit-transform: translate3d(0, -50%, 0);\\n          transform: translate3d(0, -50%, 0);\\n}\\n.van-popup--left.van-popup--round {\\n  border-radius: 0 16px 16px 0;\\n}\\n.van-popup--safe-area-inset-bottom {\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n}\\n.van-popup-slide-top-enter-active,\\n.van-popup-slide-left-enter-active,\\n.van-popup-slide-right-enter-active,\\n.van-popup-slide-bottom-enter-active {\\n  -webkit-transition-timing-function: ease-out;\\n          transition-timing-function: ease-out;\\n}\\n.van-popup-slide-top-leave-active,\\n.van-popup-slide-left-leave-active,\\n.van-popup-slide-right-leave-active,\\n.van-popup-slide-bottom-leave-active {\\n  -webkit-transition-timing-function: ease-in;\\n          transition-timing-function: ease-in;\\n}\\n.van-popup-slide-top-enter,\\n.van-popup-slide-top-leave-active {\\n  -webkit-transform: translate3d(0, -100%, 0);\\n          transform: translate3d(0, -100%, 0);\\n}\\n.van-popup-slide-right-enter,\\n.van-popup-slide-right-leave-active {\\n  -webkit-transform: translate3d(100%, -50%, 0);\\n          transform: translate3d(100%, -50%, 0);\\n}\\n.van-popup-slide-bottom-enter,\\n.van-popup-slide-bottom-leave-active {\\n  -webkit-transform: translate3d(0, 100%, 0);\\n          transform: translate3d(0, 100%, 0);\\n}\\n.van-popup-slide-left-enter,\\n.van-popup-slide-left-leave-active {\\n  -webkit-transform: translate3d(-100%, -50%, 0);\\n          transform: translate3d(-100%, -50%, 0);\\n}\\n.van-popup__close-icon {\\n  position: absolute;\\n  z-index: 1;\\n  color: #c8c9cc;\\n  font-size: 22px;\\n  cursor: pointer;\\n}\\n.van-popup__close-icon:active {\\n  color: #969799;\\n}\\n.van-popup__close-icon--top-left {\\n  top: 16px;\\n  left: 16px;\\n}\\n.van-popup__close-icon--top-right {\\n  top: 16px;\\n  right: 16px;\\n}\\n.van-popup__close-icon--bottom-left {\\n  bottom: 16px;\\n  left: 16px;\\n}\\n.van-popup__close-icon--bottom-right {\\n  right: 16px;\\n  bottom: 16px;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/popup/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/style/base.less":
/*!**********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/es/style/base.less ***!
  \**********************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"/**\\n * Entry of basic styles\\n */\\nhtml {\\n  -webkit-tap-highlight-color: transparent;\\n}\\nbody {\\n  margin: 0;\\n  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;\\n}\\na {\\n  text-decoration: none;\\n}\\ninput,\\nbutton,\\ntextarea {\\n  color: inherit;\\n  font: inherit;\\n}\\na:focus,\\ninput:focus,\\nbutton:focus,\\ntextarea:focus,\\n[class*='van-']:focus {\\n  outline: none;\\n}\\nol,\\nul {\\n  margin: 0;\\n  padding: 0;\\n  list-style: none;\\n}\\n.van-ellipsis {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n}\\n.van-multi-ellipsis--l2 {\\n  display: -webkit-box;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  -webkit-line-clamp: 2;\\n  /* autoprefixer: ignore next */\\n  -webkit-box-orient: vertical;\\n}\\n.van-multi-ellipsis--l3 {\\n  display: -webkit-box;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  -webkit-line-clamp: 3;\\n  /* autoprefixer: ignore next */\\n  -webkit-box-orient: vertical;\\n}\\n.van-clearfix::after {\\n  display: table;\\n  clear: both;\\n  content: '';\\n}\\n[class*='van-hairline']::after {\\n  position: absolute;\\n  box-sizing: border-box;\\n  content: ' ';\\n  pointer-events: none;\\n  top: -50%;\\n  right: -50%;\\n  bottom: -50%;\\n  left: -50%;\\n  border: 0 solid #ebedf0;\\n  -webkit-transform: scale(0.5);\\n          transform: scale(0.5);\\n}\\n.van-hairline,\\n.van-hairline--top,\\n.van-hairline--left,\\n.van-hairline--right,\\n.van-hairline--bottom,\\n.van-hairline--surround,\\n.van-hairline--top-bottom {\\n  position: relative;\\n}\\n.van-hairline--top::after {\\n  border-top-width: 1px;\\n}\\n.van-hairline--left::after {\\n  border-left-width: 1px;\\n}\\n.van-hairline--right::after {\\n  border-right-width: 1px;\\n}\\n.van-hairline--bottom::after {\\n  border-bottom-width: 1px;\\n}\\n.van-hairline--top-bottom::after,\\n.van-hairline-unset--top-bottom::after {\\n  border-width: 1px 0;\\n}\\n.van-hairline--surround::after {\\n  border-width: 1px;\\n}\\n@-webkit-keyframes van-slide-up-enter {\\n  from {\\n    -webkit-transform: translate3d(0, 100%, 0);\\n            transform: translate3d(0, 100%, 0);\\n  }\\n}\\n@keyframes van-slide-up-enter {\\n  from {\\n    -webkit-transform: translate3d(0, 100%, 0);\\n            transform: translate3d(0, 100%, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-up-leave {\\n  to {\\n    -webkit-transform: translate3d(0, 100%, 0);\\n            transform: translate3d(0, 100%, 0);\\n  }\\n}\\n@keyframes van-slide-up-leave {\\n  to {\\n    -webkit-transform: translate3d(0, 100%, 0);\\n            transform: translate3d(0, 100%, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-down-enter {\\n  from {\\n    -webkit-transform: translate3d(0, -100%, 0);\\n            transform: translate3d(0, -100%, 0);\\n  }\\n}\\n@keyframes van-slide-down-enter {\\n  from {\\n    -webkit-transform: translate3d(0, -100%, 0);\\n            transform: translate3d(0, -100%, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-down-leave {\\n  to {\\n    -webkit-transform: translate3d(0, -100%, 0);\\n            transform: translate3d(0, -100%, 0);\\n  }\\n}\\n@keyframes van-slide-down-leave {\\n  to {\\n    -webkit-transform: translate3d(0, -100%, 0);\\n            transform: translate3d(0, -100%, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-left-enter {\\n  from {\\n    -webkit-transform: translate3d(-100%, 0, 0);\\n            transform: translate3d(-100%, 0, 0);\\n  }\\n}\\n@keyframes van-slide-left-enter {\\n  from {\\n    -webkit-transform: translate3d(-100%, 0, 0);\\n            transform: translate3d(-100%, 0, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-left-leave {\\n  to {\\n    -webkit-transform: translate3d(-100%, 0, 0);\\n            transform: translate3d(-100%, 0, 0);\\n  }\\n}\\n@keyframes van-slide-left-leave {\\n  to {\\n    -webkit-transform: translate3d(-100%, 0, 0);\\n            transform: translate3d(-100%, 0, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-right-enter {\\n  from {\\n    -webkit-transform: translate3d(100%, 0, 0);\\n            transform: translate3d(100%, 0, 0);\\n  }\\n}\\n@keyframes van-slide-right-enter {\\n  from {\\n    -webkit-transform: translate3d(100%, 0, 0);\\n            transform: translate3d(100%, 0, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-right-leave {\\n  to {\\n    -webkit-transform: translate3d(100%, 0, 0);\\n            transform: translate3d(100%, 0, 0);\\n  }\\n}\\n@keyframes van-slide-right-leave {\\n  to {\\n    -webkit-transform: translate3d(100%, 0, 0);\\n            transform: translate3d(100%, 0, 0);\\n  }\\n}\\n@-webkit-keyframes van-fade-in {\\n  from {\\n    opacity: 0;\\n  }\\n  to {\\n    opacity: 1;\\n  }\\n}\\n@keyframes van-fade-in {\\n  from {\\n    opacity: 0;\\n  }\\n  to {\\n    opacity: 1;\\n  }\\n}\\n@-webkit-keyframes van-fade-out {\\n  from {\\n    opacity: 1;\\n  }\\n  to {\\n    opacity: 0;\\n  }\\n}\\n@keyframes van-fade-out {\\n  from {\\n    opacity: 1;\\n  }\\n  to {\\n    opacity: 0;\\n  }\\n}\\n@-webkit-keyframes van-rotate {\\n  from {\\n    -webkit-transform: rotate(0deg);\\n            transform: rotate(0deg);\\n  }\\n  to {\\n    -webkit-transform: rotate(360deg);\\n            transform: rotate(360deg);\\n  }\\n}\\n@keyframes van-rotate {\\n  from {\\n    -webkit-transform: rotate(0deg);\\n            transform: rotate(0deg);\\n  }\\n  to {\\n    -webkit-transform: rotate(360deg);\\n            transform: rotate(360deg);\\n  }\\n}\\n.van-fade-enter-active {\\n  -webkit-animation: 0.3s van-fade-in both ease-out;\\n          animation: 0.3s van-fade-in both ease-out;\\n}\\n.van-fade-leave-active {\\n  -webkit-animation: 0.3s van-fade-out both ease-in;\\n          animation: 0.3s van-fade-out both ease-in;\\n}\\n.van-slide-up-enter-active {\\n  -webkit-animation: van-slide-up-enter 0.3s both ease-out;\\n          animation: van-slide-up-enter 0.3s both ease-out;\\n}\\n.van-slide-up-leave-active {\\n  -webkit-animation: van-slide-up-leave 0.3s both ease-in;\\n          animation: van-slide-up-leave 0.3s both ease-in;\\n}\\n.van-slide-down-enter-active {\\n  -webkit-animation: van-slide-down-enter 0.3s both ease-out;\\n          animation: van-slide-down-enter 0.3s both ease-out;\\n}\\n.van-slide-down-leave-active {\\n  -webkit-animation: van-slide-down-leave 0.3s both ease-in;\\n          animation: van-slide-down-leave 0.3s both ease-in;\\n}\\n.van-slide-left-enter-active {\\n  -webkit-animation: van-slide-left-enter 0.3s both ease-out;\\n          animation: van-slide-left-enter 0.3s both ease-out;\\n}\\n.van-slide-left-leave-active {\\n  -webkit-animation: van-slide-left-leave 0.3s both ease-in;\\n          animation: van-slide-left-leave 0.3s both ease-in;\\n}\\n.van-slide-right-enter-active {\\n  -webkit-animation: van-slide-right-enter 0.3s both ease-out;\\n          animation: van-slide-right-enter 0.3s both ease-out;\\n}\\n.van-slide-right-leave-active {\\n  -webkit-animation: van-slide-right-leave 0.3s both ease-in;\\n          animation: van-slide-right-leave 0.3s both ease-in;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/style/base.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/lib/index.less":
/*!******************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3!./node_modules/vant/lib/index.less ***!
  \******************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"/**\\n * Entry of basic styles\\n */\\nhtml {\\n  -webkit-tap-highlight-color: transparent;\\n}\\nbody {\\n  margin: 0;\\n  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;\\n}\\na {\\n  text-decoration: none;\\n}\\ninput,\\nbutton,\\ntextarea {\\n  color: inherit;\\n  font: inherit;\\n}\\na:focus,\\ninput:focus,\\nbutton:focus,\\ntextarea:focus,\\n[class*='van-']:focus {\\n  outline: none;\\n}\\nol,\\nul {\\n  margin: 0;\\n  padding: 0;\\n  list-style: none;\\n}\\n.van-ellipsis {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n}\\n.van-multi-ellipsis--l2 {\\n  display: -webkit-box;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  -webkit-line-clamp: 2;\\n  /* autoprefixer: ignore next */\\n  -webkit-box-orient: vertical;\\n}\\n.van-multi-ellipsis--l3 {\\n  display: -webkit-box;\\n  overflow: hidden;\\n  text-overflow: ellipsis;\\n  -webkit-line-clamp: 3;\\n  /* autoprefixer: ignore next */\\n  -webkit-box-orient: vertical;\\n}\\n.van-clearfix::after {\\n  display: table;\\n  clear: both;\\n  content: '';\\n}\\n[class*='van-hairline']::after {\\n  position: absolute;\\n  box-sizing: border-box;\\n  content: ' ';\\n  pointer-events: none;\\n  top: -50%;\\n  right: -50%;\\n  bottom: -50%;\\n  left: -50%;\\n  border: 0 solid #ebedf0;\\n  -webkit-transform: scale(0.5);\\n          transform: scale(0.5);\\n}\\n.van-hairline,\\n.van-hairline--top,\\n.van-hairline--left,\\n.van-hairline--right,\\n.van-hairline--bottom,\\n.van-hairline--surround,\\n.van-hairline--top-bottom {\\n  position: relative;\\n}\\n.van-hairline--top::after {\\n  border-top-width: 1px;\\n}\\n.van-hairline--left::after {\\n  border-left-width: 1px;\\n}\\n.van-hairline--right::after {\\n  border-right-width: 1px;\\n}\\n.van-hairline--bottom::after {\\n  border-bottom-width: 1px;\\n}\\n.van-hairline--top-bottom::after,\\n.van-hairline-unset--top-bottom::after {\\n  border-width: 1px 0;\\n}\\n.van-hairline--surround::after {\\n  border-width: 1px;\\n}\\n@-webkit-keyframes van-slide-up-enter {\\n  from {\\n    -webkit-transform: translate3d(0, 100%, 0);\\n            transform: translate3d(0, 100%, 0);\\n  }\\n}\\n@keyframes van-slide-up-enter {\\n  from {\\n    -webkit-transform: translate3d(0, 100%, 0);\\n            transform: translate3d(0, 100%, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-up-leave {\\n  to {\\n    -webkit-transform: translate3d(0, 100%, 0);\\n            transform: translate3d(0, 100%, 0);\\n  }\\n}\\n@keyframes van-slide-up-leave {\\n  to {\\n    -webkit-transform: translate3d(0, 100%, 0);\\n            transform: translate3d(0, 100%, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-down-enter {\\n  from {\\n    -webkit-transform: translate3d(0, -100%, 0);\\n            transform: translate3d(0, -100%, 0);\\n  }\\n}\\n@keyframes van-slide-down-enter {\\n  from {\\n    -webkit-transform: translate3d(0, -100%, 0);\\n            transform: translate3d(0, -100%, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-down-leave {\\n  to {\\n    -webkit-transform: translate3d(0, -100%, 0);\\n            transform: translate3d(0, -100%, 0);\\n  }\\n}\\n@keyframes van-slide-down-leave {\\n  to {\\n    -webkit-transform: translate3d(0, -100%, 0);\\n            transform: translate3d(0, -100%, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-left-enter {\\n  from {\\n    -webkit-transform: translate3d(-100%, 0, 0);\\n            transform: translate3d(-100%, 0, 0);\\n  }\\n}\\n@keyframes van-slide-left-enter {\\n  from {\\n    -webkit-transform: translate3d(-100%, 0, 0);\\n            transform: translate3d(-100%, 0, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-left-leave {\\n  to {\\n    -webkit-transform: translate3d(-100%, 0, 0);\\n            transform: translate3d(-100%, 0, 0);\\n  }\\n}\\n@keyframes van-slide-left-leave {\\n  to {\\n    -webkit-transform: translate3d(-100%, 0, 0);\\n            transform: translate3d(-100%, 0, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-right-enter {\\n  from {\\n    -webkit-transform: translate3d(100%, 0, 0);\\n            transform: translate3d(100%, 0, 0);\\n  }\\n}\\n@keyframes van-slide-right-enter {\\n  from {\\n    -webkit-transform: translate3d(100%, 0, 0);\\n            transform: translate3d(100%, 0, 0);\\n  }\\n}\\n@-webkit-keyframes van-slide-right-leave {\\n  to {\\n    -webkit-transform: translate3d(100%, 0, 0);\\n            transform: translate3d(100%, 0, 0);\\n  }\\n}\\n@keyframes van-slide-right-leave {\\n  to {\\n    -webkit-transform: translate3d(100%, 0, 0);\\n            transform: translate3d(100%, 0, 0);\\n  }\\n}\\n@-webkit-keyframes van-fade-in {\\n  from {\\n    opacity: 0;\\n  }\\n  to {\\n    opacity: 1;\\n  }\\n}\\n@keyframes van-fade-in {\\n  from {\\n    opacity: 0;\\n  }\\n  to {\\n    opacity: 1;\\n  }\\n}\\n@-webkit-keyframes van-fade-out {\\n  from {\\n    opacity: 1;\\n  }\\n  to {\\n    opacity: 0;\\n  }\\n}\\n@keyframes van-fade-out {\\n  from {\\n    opacity: 1;\\n  }\\n  to {\\n    opacity: 0;\\n  }\\n}\\n@-webkit-keyframes van-rotate {\\n  from {\\n    -webkit-transform: rotate(0deg);\\n            transform: rotate(0deg);\\n  }\\n  to {\\n    -webkit-transform: rotate(360deg);\\n            transform: rotate(360deg);\\n  }\\n}\\n@keyframes van-rotate {\\n  from {\\n    -webkit-transform: rotate(0deg);\\n            transform: rotate(0deg);\\n  }\\n  to {\\n    -webkit-transform: rotate(360deg);\\n            transform: rotate(360deg);\\n  }\\n}\\n.van-fade-enter-active {\\n  -webkit-animation: 0.3s van-fade-in both ease-out;\\n          animation: 0.3s van-fade-in both ease-out;\\n}\\n.van-fade-leave-active {\\n  -webkit-animation: 0.3s van-fade-out both ease-in;\\n          animation: 0.3s van-fade-out both ease-in;\\n}\\n.van-slide-up-enter-active {\\n  -webkit-animation: van-slide-up-enter 0.3s both ease-out;\\n          animation: van-slide-up-enter 0.3s both ease-out;\\n}\\n.van-slide-up-leave-active {\\n  -webkit-animation: van-slide-up-leave 0.3s both ease-in;\\n          animation: van-slide-up-leave 0.3s both ease-in;\\n}\\n.van-slide-down-enter-active {\\n  -webkit-animation: van-slide-down-enter 0.3s both ease-out;\\n          animation: van-slide-down-enter 0.3s both ease-out;\\n}\\n.van-slide-down-leave-active {\\n  -webkit-animation: van-slide-down-leave 0.3s both ease-in;\\n          animation: van-slide-down-leave 0.3s both ease-in;\\n}\\n.van-slide-left-enter-active {\\n  -webkit-animation: van-slide-left-enter 0.3s both ease-out;\\n          animation: van-slide-left-enter 0.3s both ease-out;\\n}\\n.van-slide-left-leave-active {\\n  -webkit-animation: van-slide-left-leave 0.3s both ease-in;\\n          animation: van-slide-left-leave 0.3s both ease-in;\\n}\\n.van-slide-right-enter-active {\\n  -webkit-animation: van-slide-right-enter 0.3s both ease-out;\\n          animation: van-slide-right-enter 0.3s both ease-out;\\n}\\n.van-slide-right-leave-active {\\n  -webkit-animation: van-slide-right-leave 0.3s both ease-in;\\n          animation: van-slide-right-leave 0.3s both ease-in;\\n}\\n.van-overlay {\\n  position: fixed;\\n  top: 0;\\n  left: 0;\\n  z-index: 1;\\n  width: 100%;\\n  height: 100%;\\n  background-color: rgba(0, 0, 0, 0.7);\\n}\\n.van-info {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  box-sizing: border-box;\\n  min-width: 16px;\\n  padding: 0 3px;\\n  color: #fff;\\n  font-weight: 500;\\n  font-size: 12px;\\n  font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;\\n  line-height: 1.2;\\n  text-align: center;\\n  background-color: #ee0a24;\\n  border: 1px solid #fff;\\n  border-radius: 16px;\\n  -webkit-transform: translate(50%, -50%);\\n          transform: translate(50%, -50%);\\n  -webkit-transform-origin: 100%;\\n          transform-origin: 100%;\\n}\\n.van-info--dot {\\n  width: 8px;\\n  min-width: 0;\\n  height: 8px;\\n  background-color: #ee0a24;\\n  border-radius: 100%;\\n}\\n.van-sidebar-item {\\n  position: relative;\\n  display: block;\\n  box-sizing: border-box;\\n  padding: 20px 12px;\\n  overflow: hidden;\\n  color: #323233;\\n  font-size: 14px;\\n  line-height: 20px;\\n  background-color: #f7f8fa;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-sidebar-item:active {\\n  background-color: #f2f3f5;\\n}\\n.van-sidebar-item__text {\\n  position: relative;\\n  display: inline-block;\\n  word-break: break-all;\\n}\\n.van-sidebar-item:not(:last-child)::after {\\n  border-bottom-width: 1px;\\n}\\n.van-sidebar-item--select {\\n  color: #323233;\\n  font-weight: 500;\\n}\\n.van-sidebar-item--select,\\n.van-sidebar-item--select:active {\\n  background-color: #fff;\\n}\\n.van-sidebar-item--select::before {\\n  position: absolute;\\n  top: 50%;\\n  left: 0;\\n  width: 4px;\\n  height: 16px;\\n  background-color: #ee0a24;\\n  -webkit-transform: translateY(-50%);\\n          transform: translateY(-50%);\\n  content: '';\\n}\\n.van-sidebar-item--disabled {\\n  color: #c8c9cc;\\n  cursor: not-allowed;\\n}\\n.van-sidebar-item--disabled:active {\\n  background-color: #f7f8fa;\\n}\\n/* stylelint-disable selector-pseudo-element-colon-notation */\\n/* stylelint-disable font-family-no-missing-generic-family-keyword */\\n.van-icon {\\n  position: relative;\\n  display: inline-block;\\n  font: normal normal normal 14px/1 'vant-icon';\\n  font-size: inherit;\\n  text-rendering: auto;\\n  -webkit-font-smoothing: antialiased;\\n}\\n.van-icon:before {\\n  display: inline-block;\\n}\\n.van-icon-exchange:before {\\n  content: '\\\\e6af';\\n}\\n.van-icon-eye:before {\\n  content: '\\\\e6b0';\\n}\\n.van-icon-enlarge:before {\\n  content: '\\\\e6b1';\\n}\\n.van-icon-expand-o:before {\\n  content: '\\\\e6b2';\\n}\\n.van-icon-eye-o:before {\\n  content: '\\\\e6b3';\\n}\\n.van-icon-expand:before {\\n  content: '\\\\e6b4';\\n}\\n.van-icon-filter-o:before {\\n  content: '\\\\e6b5';\\n}\\n.van-icon-fire:before {\\n  content: '\\\\e6b6';\\n}\\n.van-icon-fail:before {\\n  content: '\\\\e6b7';\\n}\\n.van-icon-failure:before {\\n  content: '\\\\e6b8';\\n}\\n.van-icon-fire-o:before {\\n  content: '\\\\e6b9';\\n}\\n.van-icon-flag-o:before {\\n  content: '\\\\e6ba';\\n}\\n.van-icon-font:before {\\n  content: '\\\\e6bb';\\n}\\n.van-icon-font-o:before {\\n  content: '\\\\e6bc';\\n}\\n.van-icon-gem-o:before {\\n  content: '\\\\e6bd';\\n}\\n.van-icon-flower-o:before {\\n  content: '\\\\e6be';\\n}\\n.van-icon-gem:before {\\n  content: '\\\\e6bf';\\n}\\n.van-icon-gift-card:before {\\n  content: '\\\\e6c0';\\n}\\n.van-icon-friends:before {\\n  content: '\\\\e6c1';\\n}\\n.van-icon-friends-o:before {\\n  content: '\\\\e6c2';\\n}\\n.van-icon-gold-coin:before {\\n  content: '\\\\e6c3';\\n}\\n.van-icon-gold-coin-o:before {\\n  content: '\\\\e6c4';\\n}\\n.van-icon-good-job-o:before {\\n  content: '\\\\e6c5';\\n}\\n.van-icon-gift:before {\\n  content: '\\\\e6c6';\\n}\\n.van-icon-gift-o:before {\\n  content: '\\\\e6c7';\\n}\\n.van-icon-gift-card-o:before {\\n  content: '\\\\e6c8';\\n}\\n.van-icon-good-job:before {\\n  content: '\\\\e6c9';\\n}\\n.van-icon-home-o:before {\\n  content: '\\\\e6ca';\\n}\\n.van-icon-goods-collect:before {\\n  content: '\\\\e6cb';\\n}\\n.van-icon-graphic:before {\\n  content: '\\\\e6cc';\\n}\\n.van-icon-goods-collect-o:before {\\n  content: '\\\\e6cd';\\n}\\n.van-icon-hot-o:before {\\n  content: '\\\\e6ce';\\n}\\n.van-icon-info:before {\\n  content: '\\\\e6cf';\\n}\\n.van-icon-hotel-o:before {\\n  content: '\\\\e6d0';\\n}\\n.van-icon-info-o:before {\\n  content: '\\\\e6d1';\\n}\\n.van-icon-hot-sale-o:before {\\n  content: '\\\\e6d2';\\n}\\n.van-icon-hot:before {\\n  content: '\\\\e6d3';\\n}\\n.van-icon-like:before {\\n  content: '\\\\e6d4';\\n}\\n.van-icon-idcard:before {\\n  content: '\\\\e6d5';\\n}\\n.van-icon-invitation:before {\\n  content: '\\\\e6d6';\\n}\\n.van-icon-like-o:before {\\n  content: '\\\\e6d7';\\n}\\n.van-icon-hot-sale:before {\\n  content: '\\\\e6d8';\\n}\\n.van-icon-location-o:before {\\n  content: '\\\\e6d9';\\n}\\n.van-icon-location:before {\\n  content: '\\\\e6da';\\n}\\n.van-icon-label:before {\\n  content: '\\\\e6db';\\n}\\n.van-icon-lock:before {\\n  content: '\\\\e6dc';\\n}\\n.van-icon-label-o:before {\\n  content: '\\\\e6dd';\\n}\\n.van-icon-map-marked:before {\\n  content: '\\\\e6de';\\n}\\n.van-icon-logistics:before {\\n  content: '\\\\e6df';\\n}\\n.van-icon-manager:before {\\n  content: '\\\\e6e0';\\n}\\n.van-icon-more:before {\\n  content: '\\\\e6e1';\\n}\\n.van-icon-live:before {\\n  content: '\\\\e6e2';\\n}\\n.van-icon-manager-o:before {\\n  content: '\\\\e6e3';\\n}\\n.van-icon-medal:before {\\n  content: '\\\\e6e4';\\n}\\n.van-icon-more-o:before {\\n  content: '\\\\e6e5';\\n}\\n.van-icon-music-o:before {\\n  content: '\\\\e6e6';\\n}\\n.van-icon-music:before {\\n  content: '\\\\e6e7';\\n}\\n.van-icon-new-arrival-o:before {\\n  content: '\\\\e6e8';\\n}\\n.van-icon-medal-o:before {\\n  content: '\\\\e6e9';\\n}\\n.van-icon-new-o:before {\\n  content: '\\\\e6ea';\\n}\\n.van-icon-free-postage:before {\\n  content: '\\\\e6eb';\\n}\\n.van-icon-newspaper-o:before {\\n  content: '\\\\e6ec';\\n}\\n.van-icon-new-arrival:before {\\n  content: '\\\\e6ed';\\n}\\n.van-icon-minus:before {\\n  content: '\\\\e6ee';\\n}\\n.van-icon-orders-o:before {\\n  content: '\\\\e6ef';\\n}\\n.van-icon-new:before {\\n  content: '\\\\e6f0';\\n}\\n.van-icon-paid:before {\\n  content: '\\\\e6f1';\\n}\\n.van-icon-notes-o:before {\\n  content: '\\\\e6f2';\\n}\\n.van-icon-other-pay:before {\\n  content: '\\\\e6f3';\\n}\\n.van-icon-pause-circle:before {\\n  content: '\\\\e6f4';\\n}\\n.van-icon-pause:before {\\n  content: '\\\\e6f5';\\n}\\n.van-icon-pause-circle-o:before {\\n  content: '\\\\e6f6';\\n}\\n.van-icon-peer-pay:before {\\n  content: '\\\\e6f7';\\n}\\n.van-icon-pending-payment:before {\\n  content: '\\\\e6f8';\\n}\\n.van-icon-passed:before {\\n  content: '\\\\e6f9';\\n}\\n.van-icon-plus:before {\\n  content: '\\\\e6fa';\\n}\\n.van-icon-phone-circle-o:before {\\n  content: '\\\\e6fb';\\n}\\n.van-icon-phone-o:before {\\n  content: '\\\\e6fc';\\n}\\n.van-icon-printer:before {\\n  content: '\\\\e6fd';\\n}\\n.van-icon-photo-fail:before {\\n  content: '\\\\e6fe';\\n}\\n.van-icon-phone:before {\\n  content: '\\\\e6ff';\\n}\\n.van-icon-photo-o:before {\\n  content: '\\\\e700';\\n}\\n.van-icon-play-circle:before {\\n  content: '\\\\e701';\\n}\\n.van-icon-play:before {\\n  content: '\\\\e702';\\n}\\n.van-icon-phone-circle:before {\\n  content: '\\\\e703';\\n}\\n.van-icon-point-gift-o:before {\\n  content: '\\\\e704';\\n}\\n.van-icon-point-gift:before {\\n  content: '\\\\e705';\\n}\\n.van-icon-play-circle-o:before {\\n  content: '\\\\e706';\\n}\\n.van-icon-shrink:before {\\n  content: '\\\\e707';\\n}\\n.van-icon-photo:before {\\n  content: '\\\\e708';\\n}\\n.van-icon-qr:before {\\n  content: '\\\\e709';\\n}\\n.van-icon-qr-invalid:before {\\n  content: '\\\\e70a';\\n}\\n.van-icon-question-o:before {\\n  content: '\\\\e70b';\\n}\\n.van-icon-revoke:before {\\n  content: '\\\\e70c';\\n}\\n.van-icon-replay:before {\\n  content: '\\\\e70d';\\n}\\n.van-icon-service:before {\\n  content: '\\\\e70e';\\n}\\n.van-icon-question:before {\\n  content: '\\\\e70f';\\n}\\n.van-icon-search:before {\\n  content: '\\\\e710';\\n}\\n.van-icon-refund-o:before {\\n  content: '\\\\e711';\\n}\\n.van-icon-service-o:before {\\n  content: '\\\\e712';\\n}\\n.van-icon-scan:before {\\n  content: '\\\\e713';\\n}\\n.van-icon-share:before {\\n  content: '\\\\e714';\\n}\\n.van-icon-send-gift-o:before {\\n  content: '\\\\e715';\\n}\\n.van-icon-share-o:before {\\n  content: '\\\\e716';\\n}\\n.van-icon-setting:before {\\n  content: '\\\\e717';\\n}\\n.van-icon-points:before {\\n  content: '\\\\e718';\\n}\\n.van-icon-photograph:before {\\n  content: '\\\\e719';\\n}\\n.van-icon-shop:before {\\n  content: '\\\\e71a';\\n}\\n.van-icon-shop-o:before {\\n  content: '\\\\e71b';\\n}\\n.van-icon-shop-collect-o:before {\\n  content: '\\\\e71c';\\n}\\n.van-icon-shop-collect:before {\\n  content: '\\\\e71d';\\n}\\n.van-icon-smile:before {\\n  content: '\\\\e71e';\\n}\\n.van-icon-shopping-cart-o:before {\\n  content: '\\\\e71f';\\n}\\n.van-icon-sign:before {\\n  content: '\\\\e720';\\n}\\n.van-icon-sort:before {\\n  content: '\\\\e721';\\n}\\n.van-icon-star-o:before {\\n  content: '\\\\e722';\\n}\\n.van-icon-smile-comment-o:before {\\n  content: '\\\\e723';\\n}\\n.van-icon-stop:before {\\n  content: '\\\\e724';\\n}\\n.van-icon-stop-circle-o:before {\\n  content: '\\\\e725';\\n}\\n.van-icon-smile-o:before {\\n  content: '\\\\e726';\\n}\\n.van-icon-star:before {\\n  content: '\\\\e727';\\n}\\n.van-icon-success:before {\\n  content: '\\\\e728';\\n}\\n.van-icon-stop-circle:before {\\n  content: '\\\\e729';\\n}\\n.van-icon-records:before {\\n  content: '\\\\e72a';\\n}\\n.van-icon-shopping-cart:before {\\n  content: '\\\\e72b';\\n}\\n.van-icon-tosend:before {\\n  content: '\\\\e72c';\\n}\\n.van-icon-todo-list:before {\\n  content: '\\\\e72d';\\n}\\n.van-icon-thumb-circle-o:before {\\n  content: '\\\\e72e';\\n}\\n.van-icon-thumb-circle:before {\\n  content: '\\\\e72f';\\n}\\n.van-icon-umbrella-circle:before {\\n  content: '\\\\e730';\\n}\\n.van-icon-underway:before {\\n  content: '\\\\e731';\\n}\\n.van-icon-upgrade:before {\\n  content: '\\\\e732';\\n}\\n.van-icon-todo-list-o:before {\\n  content: '\\\\e733';\\n}\\n.van-icon-tv-o:before {\\n  content: '\\\\e734';\\n}\\n.van-icon-underway-o:before {\\n  content: '\\\\e735';\\n}\\n.van-icon-user-o:before {\\n  content: '\\\\e736';\\n}\\n.van-icon-vip-card-o:before {\\n  content: '\\\\e737';\\n}\\n.van-icon-vip-card:before {\\n  content: '\\\\e738';\\n}\\n.van-icon-send-gift:before {\\n  content: '\\\\e739';\\n}\\n.van-icon-wap-home:before {\\n  content: '\\\\e73a';\\n}\\n.van-icon-wap-nav:before {\\n  content: '\\\\e73b';\\n}\\n.van-icon-volume-o:before {\\n  content: '\\\\e73c';\\n}\\n.van-icon-video:before {\\n  content: '\\\\e73d';\\n}\\n.van-icon-wap-home-o:before {\\n  content: '\\\\e73e';\\n}\\n.van-icon-volume:before {\\n  content: '\\\\e73f';\\n}\\n.van-icon-warning:before {\\n  content: '\\\\e740';\\n}\\n.van-icon-weapp-nav:before {\\n  content: '\\\\e741';\\n}\\n.van-icon-wechat-pay:before {\\n  content: '\\\\e742';\\n}\\n.van-icon-warning-o:before {\\n  content: '\\\\e743';\\n}\\n.van-icon-wechat:before {\\n  content: '\\\\e744';\\n}\\n.van-icon-setting-o:before {\\n  content: '\\\\e745';\\n}\\n.van-icon-youzan-shield:before {\\n  content: '\\\\e746';\\n}\\n.van-icon-warn-o:before {\\n  content: '\\\\e747';\\n}\\n.van-icon-smile-comment:before {\\n  content: '\\\\e748';\\n}\\n.van-icon-user-circle-o:before {\\n  content: '\\\\e749';\\n}\\n.van-icon-video-o:before {\\n  content: '\\\\e74a';\\n}\\n.van-icon-add-square:before {\\n  content: '\\\\e65c';\\n}\\n.van-icon-add:before {\\n  content: '\\\\e65d';\\n}\\n.van-icon-arrow-down:before {\\n  content: '\\\\e65e';\\n}\\n.van-icon-arrow-up:before {\\n  content: '\\\\e65f';\\n}\\n.van-icon-arrow:before {\\n  content: '\\\\e660';\\n}\\n.van-icon-after-sale:before {\\n  content: '\\\\e661';\\n}\\n.van-icon-add-o:before {\\n  content: '\\\\e662';\\n}\\n.van-icon-alipay:before {\\n  content: '\\\\e663';\\n}\\n.van-icon-ascending:before {\\n  content: '\\\\e664';\\n}\\n.van-icon-apps-o:before {\\n  content: '\\\\e665';\\n}\\n.van-icon-aim:before {\\n  content: '\\\\e666';\\n}\\n.van-icon-award:before {\\n  content: '\\\\e667';\\n}\\n.van-icon-arrow-left:before {\\n  content: '\\\\e668';\\n}\\n.van-icon-award-o:before {\\n  content: '\\\\e669';\\n}\\n.van-icon-audio:before {\\n  content: '\\\\e66a';\\n}\\n.van-icon-bag-o:before {\\n  content: '\\\\e66b';\\n}\\n.van-icon-balance-list:before {\\n  content: '\\\\e66c';\\n}\\n.van-icon-back-top:before {\\n  content: '\\\\e66d';\\n}\\n.van-icon-bag:before {\\n  content: '\\\\e66e';\\n}\\n.van-icon-balance-pay:before {\\n  content: '\\\\e66f';\\n}\\n.van-icon-balance-o:before {\\n  content: '\\\\e670';\\n}\\n.van-icon-bar-chart-o:before {\\n  content: '\\\\e671';\\n}\\n.van-icon-bars:before {\\n  content: '\\\\e672';\\n}\\n.van-icon-balance-list-o:before {\\n  content: '\\\\e673';\\n}\\n.van-icon-birthday-cake-o:before {\\n  content: '\\\\e674';\\n}\\n.van-icon-bookmark:before {\\n  content: '\\\\e675';\\n}\\n.van-icon-bill:before {\\n  content: '\\\\e676';\\n}\\n.van-icon-bell:before {\\n  content: '\\\\e677';\\n}\\n.van-icon-browsing-history-o:before {\\n  content: '\\\\e678';\\n}\\n.van-icon-browsing-history:before {\\n  content: '\\\\e679';\\n}\\n.van-icon-bookmark-o:before {\\n  content: '\\\\e67a';\\n}\\n.van-icon-bulb-o:before {\\n  content: '\\\\e67b';\\n}\\n.van-icon-bullhorn-o:before {\\n  content: '\\\\e67c';\\n}\\n.van-icon-bill-o:before {\\n  content: '\\\\e67d';\\n}\\n.van-icon-calendar-o:before {\\n  content: '\\\\e67e';\\n}\\n.van-icon-brush-o:before {\\n  content: '\\\\e67f';\\n}\\n.van-icon-card:before {\\n  content: '\\\\e680';\\n}\\n.van-icon-cart-o:before {\\n  content: '\\\\e681';\\n}\\n.van-icon-cart-circle:before {\\n  content: '\\\\e682';\\n}\\n.van-icon-cart-circle-o:before {\\n  content: '\\\\e683';\\n}\\n.van-icon-cart:before {\\n  content: '\\\\e684';\\n}\\n.van-icon-cash-on-deliver:before {\\n  content: '\\\\e685';\\n}\\n.van-icon-cash-back-record:before {\\n  content: '\\\\e686';\\n}\\n.van-icon-cashier-o:before {\\n  content: '\\\\e687';\\n}\\n.van-icon-chart-trending-o:before {\\n  content: '\\\\e688';\\n}\\n.van-icon-certificate:before {\\n  content: '\\\\e689';\\n}\\n.van-icon-chat:before {\\n  content: '\\\\e68a';\\n}\\n.van-icon-clear:before {\\n  content: '\\\\e68b';\\n}\\n.van-icon-chat-o:before {\\n  content: '\\\\e68c';\\n}\\n.van-icon-checked:before {\\n  content: '\\\\e68d';\\n}\\n.van-icon-clock:before {\\n  content: '\\\\e68e';\\n}\\n.van-icon-clock-o:before {\\n  content: '\\\\e68f';\\n}\\n.van-icon-close:before {\\n  content: '\\\\e690';\\n}\\n.van-icon-closed-eye:before {\\n  content: '\\\\e691';\\n}\\n.van-icon-circle:before {\\n  content: '\\\\e692';\\n}\\n.van-icon-cluster-o:before {\\n  content: '\\\\e693';\\n}\\n.van-icon-column:before {\\n  content: '\\\\e694';\\n}\\n.van-icon-comment-circle-o:before {\\n  content: '\\\\e695';\\n}\\n.van-icon-cluster:before {\\n  content: '\\\\e696';\\n}\\n.van-icon-comment:before {\\n  content: '\\\\e697';\\n}\\n.van-icon-comment-o:before {\\n  content: '\\\\e698';\\n}\\n.van-icon-comment-circle:before {\\n  content: '\\\\e699';\\n}\\n.van-icon-completed:before {\\n  content: '\\\\e69a';\\n}\\n.van-icon-credit-pay:before {\\n  content: '\\\\e69b';\\n}\\n.van-icon-coupon:before {\\n  content: '\\\\e69c';\\n}\\n.van-icon-debit-pay:before {\\n  content: '\\\\e69d';\\n}\\n.van-icon-coupon-o:before {\\n  content: '\\\\e69e';\\n}\\n.van-icon-contact:before {\\n  content: '\\\\e69f';\\n}\\n.van-icon-descending:before {\\n  content: '\\\\e6a0';\\n}\\n.van-icon-desktop-o:before {\\n  content: '\\\\e6a1';\\n}\\n.van-icon-diamond-o:before {\\n  content: '\\\\e6a2';\\n}\\n.van-icon-description:before {\\n  content: '\\\\e6a3';\\n}\\n.van-icon-delete:before {\\n  content: '\\\\e6a4';\\n}\\n.van-icon-diamond:before {\\n  content: '\\\\e6a5';\\n}\\n.van-icon-delete-o:before {\\n  content: '\\\\e6a6';\\n}\\n.van-icon-cross:before {\\n  content: '\\\\e6a7';\\n}\\n.van-icon-edit:before {\\n  content: '\\\\e6a8';\\n}\\n.van-icon-ellipsis:before {\\n  content: '\\\\e6a9';\\n}\\n.van-icon-down:before {\\n  content: '\\\\e6aa';\\n}\\n.van-icon-discount:before {\\n  content: '\\\\e6ab';\\n}\\n.van-icon-ecard-pay:before {\\n  content: '\\\\e6ac';\\n}\\n.van-icon-envelop-o:before {\\n  content: '\\\\e6ae';\\n}\\n.van-icon-shield-o:before {\\n  content: '\\\\e74b';\\n}\\n.van-icon-guide-o:before {\\n  content: '\\\\e74c';\\n}\\n.van-icon-cash-o:before {\\n  content: '\\\\e74d';\\n}\\n.van-icon-qq:before {\\n  content: '\\\\e74e';\\n}\\n.van-icon-wechat-moments:before {\\n  content: '\\\\e74f';\\n}\\n.van-icon-weibo:before {\\n  content: '\\\\e750';\\n}\\n.van-icon-link-o:before {\\n  content: '\\\\e751';\\n}\\n.van-icon-miniprogram-o:before {\\n  content: '\\\\e752';\\n}\\n/* stylelint-disable selector-pseudo-element-colon-notation */\\n/* stylelint-disable font-family-no-missing-generic-family-keyword */\\n@font-face {\\n  font-weight: normal;\\n  font-family: 'vant-icon';\\n  font-style: normal;\\n  font-display: auto;\\n  src: url('data:font/woff2;charset=utf-8;base64, ') format('woff2'), url('//at.alicdn.com/t/font_2553510_iv4v8nulyz.woff?t=1649083952952') format('woff'), url('//at.alicdn.com/t/font_2553510_iv4v8nulyz.ttf?t=1649083952952') format('truetype');\\n}\\n.van-icon__image {\\n  display: block;\\n  width: 1em;\\n  height: 1em;\\n  object-fit: contain;\\n}\\n.van-tabbar-item {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  color: #646566;\\n  font-size: 12px;\\n  line-height: 1;\\n  cursor: pointer;\\n}\\n.van-tabbar-item__icon {\\n  position: relative;\\n  margin-bottom: 4px;\\n  font-size: 22px;\\n}\\n.van-tabbar-item__icon .van-icon {\\n  display: block;\\n}\\n.van-tabbar-item__icon img {\\n  display: block;\\n  height: 20px;\\n}\\n.van-tabbar-item--active {\\n  color: #1989fa;\\n  background-color: #fff;\\n}\\n.van-tabbar-item .van-info {\\n  margin-top: 4px;\\n}\\n.van-step {\\n  position: relative;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  color: #969799;\\n  font-size: 14px;\\n}\\n.van-step__circle {\\n  display: block;\\n  width: 5px;\\n  height: 5px;\\n  background-color: #969799;\\n  border-radius: 50%;\\n}\\n.van-step__line {\\n  position: absolute;\\n  background-color: #ebedf0;\\n  -webkit-transition: background-color 0.3s;\\n  transition: background-color 0.3s;\\n}\\n.van-step--horizontal {\\n  float: left;\\n}\\n.van-step--horizontal:first-child .van-step__title {\\n  margin-left: 0;\\n  -webkit-transform: none;\\n          transform: none;\\n}\\n.van-step--horizontal:last-child {\\n  position: absolute;\\n  right: 1px;\\n  width: auto;\\n}\\n.van-step--horizontal:last-child .van-step__title {\\n  margin-left: 0;\\n  -webkit-transform: none;\\n          transform: none;\\n}\\n.van-step--horizontal:last-child .van-step__circle-container {\\n  right: -9px;\\n  left: auto;\\n}\\n.van-step--horizontal .van-step__circle-container {\\n  position: absolute;\\n  top: 30px;\\n  left: -8px;\\n  z-index: 1;\\n  padding: 0 8px;\\n  background-color: #fff;\\n  -webkit-transform: translateY(-50%);\\n          transform: translateY(-50%);\\n}\\n.van-step--horizontal .van-step__title {\\n  display: inline-block;\\n  margin-left: 3px;\\n  font-size: 12px;\\n  -webkit-transform: translateX(-50%);\\n          transform: translateX(-50%);\\n}\\n@media (max-width: 321px) {\\n  .van-step--horizontal .van-step__title {\\n    font-size: 11px;\\n  }\\n}\\n.van-step--horizontal .van-step__line {\\n  top: 30px;\\n  left: 0;\\n  width: 100%;\\n  height: 1px;\\n}\\n.van-step--horizontal .van-step__icon {\\n  display: block;\\n  font-size: 12px;\\n}\\n.van-step--horizontal .van-step--process {\\n  color: #323233;\\n}\\n.van-step--vertical {\\n  display: block;\\n  float: none;\\n  padding: 10px 10px 10px 0;\\n  line-height: 18px;\\n}\\n.van-step--vertical:not(:last-child)::after {\\n  border-bottom-width: 1px;\\n}\\n.van-step--vertical .van-step__circle-container {\\n  position: absolute;\\n  top: 19px;\\n  left: -15px;\\n  z-index: 1;\\n  font-size: 12px;\\n  line-height: 1;\\n  -webkit-transform: translate(-50%, -50%);\\n          transform: translate(-50%, -50%);\\n}\\n.van-step--vertical .van-step__line {\\n  top: 16px;\\n  left: -15px;\\n  width: 1px;\\n  height: 100%;\\n}\\n.van-step:last-child .van-step__line {\\n  width: 0;\\n}\\n.van-step--finish {\\n  color: #323233;\\n}\\n.van-step--finish .van-step__circle,\\n.van-step--finish .van-step__line {\\n  background-color: #07c160;\\n}\\n.van-step__icon,\\n.van-step__title {\\n  -webkit-transition: color 0.3s;\\n  transition: color 0.3s;\\n}\\n.van-step__icon--active,\\n.van-step__title--active,\\n.van-step__icon--finish,\\n.van-step__title--finish {\\n  color: #07c160;\\n}\\n.van-rate {\\n  display: -webkit-inline-box;\\n  display: -webkit-inline-flex;\\n  display: inline-flex;\\n  -webkit-flex-wrap: wrap;\\n          flex-wrap: wrap;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-rate__item {\\n  position: relative;\\n}\\n.van-rate__item:not(:last-child) {\\n  padding-right: 4px;\\n}\\n.van-rate__icon {\\n  display: block;\\n  width: 1em;\\n  color: #c8c9cc;\\n  font-size: 20px;\\n}\\n.van-rate__icon--half {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 0.5em;\\n  overflow: hidden;\\n}\\n.van-rate__icon--full {\\n  color: #ee0a24;\\n}\\n.van-rate__icon--disabled {\\n  color: #c8c9cc;\\n}\\n.van-rate--disabled {\\n  cursor: not-allowed;\\n}\\n.van-rate--readonly {\\n  cursor: default;\\n}\\n.van-notice-bar {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  height: 40px;\\n  padding: 0 16px;\\n  color: #ed6a0c;\\n  font-size: 14px;\\n  line-height: 24px;\\n  background-color: #fffbe8;\\n}\\n.van-notice-bar__left-icon,\\n.van-notice-bar__right-icon {\\n  min-width: 24px;\\n  font-size: 16px;\\n}\\n.van-notice-bar__right-icon {\\n  text-align: right;\\n  cursor: pointer;\\n}\\n.van-notice-bar__wrap {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  height: 100%;\\n  overflow: hidden;\\n}\\n.van-notice-bar__content {\\n  position: absolute;\\n  white-space: nowrap;\\n  -webkit-transition-timing-function: linear;\\n          transition-timing-function: linear;\\n}\\n.van-notice-bar__content.van-ellipsis {\\n  max-width: 100%;\\n}\\n.van-notice-bar--wrapable {\\n  height: auto;\\n  padding: 8px 16px;\\n}\\n.van-notice-bar--wrapable .van-notice-bar__wrap {\\n  height: auto;\\n}\\n.van-notice-bar--wrapable .van-notice-bar__content {\\n  position: relative;\\n  white-space: normal;\\n  word-wrap: break-word;\\n}\\n.van-nav-bar {\\n  position: relative;\\n  z-index: 1;\\n  line-height: 22px;\\n  text-align: center;\\n  background-color: #fff;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-nav-bar--fixed {\\n  position: fixed;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n}\\n.van-nav-bar--safe-area-inset-top {\\n  padding-top: constant(safe-area-inset-top);\\n  padding-top: env(safe-area-inset-top);\\n}\\n.van-nav-bar .van-icon {\\n  color: #1989fa;\\n}\\n.van-nav-bar__content {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  height: 46px;\\n}\\n.van-nav-bar__arrow {\\n  margin-right: 4px;\\n  font-size: 16px;\\n}\\n.van-nav-bar__title {\\n  max-width: 60%;\\n  margin: 0 auto;\\n  color: #323233;\\n  font-weight: 500;\\n  font-size: 16px;\\n}\\n.van-nav-bar__left,\\n.van-nav-bar__right {\\n  position: absolute;\\n  top: 0;\\n  bottom: 0;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  padding: 0 16px;\\n  font-size: 14px;\\n  cursor: pointer;\\n}\\n.van-nav-bar__left:active,\\n.van-nav-bar__right:active {\\n  opacity: 0.7;\\n}\\n.van-nav-bar__left {\\n  left: 0;\\n}\\n.van-nav-bar__right {\\n  right: 0;\\n}\\n.van-nav-bar__text {\\n  color: #1989fa;\\n}\\n.van-grid-item {\\n  position: relative;\\n  box-sizing: border-box;\\n}\\n.van-grid-item--square {\\n  height: 0;\\n}\\n.van-grid-item__icon {\\n  font-size: 28px;\\n}\\n.van-grid-item__icon-wrapper {\\n  position: relative;\\n}\\n.van-grid-item__text {\\n  color: #646566;\\n  font-size: 12px;\\n  line-height: 1.5;\\n  word-break: break-all;\\n}\\n.van-grid-item__icon + .van-grid-item__text {\\n  margin-top: 8px;\\n}\\n.van-grid-item__content {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  box-sizing: border-box;\\n  height: 100%;\\n  padding: 16px 8px;\\n  background-color: #fff;\\n}\\n.van-grid-item__content::after {\\n  z-index: 1;\\n  border-width: 0 1px 1px 0;\\n}\\n.van-grid-item__content--square {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n}\\n.van-grid-item__content--center {\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n}\\n.van-grid-item__content--horizontal {\\n  -webkit-box-orient: horizontal;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: row;\\n          flex-direction: row;\\n}\\n.van-grid-item__content--horizontal .van-grid-item__icon + .van-grid-item__text {\\n  margin-top: 0;\\n  margin-left: 8px;\\n}\\n.van-grid-item__content--surround::after {\\n  border-width: 1px;\\n}\\n.van-grid-item__content--clickable {\\n  cursor: pointer;\\n}\\n.van-grid-item__content--clickable:active {\\n  background-color: #f2f3f5;\\n}\\n.van-goods-action-icon {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  min-width: 48px;\\n  height: 100%;\\n  color: #646566;\\n  font-size: 10px;\\n  line-height: 1;\\n  text-align: center;\\n  background-color: #fff;\\n  cursor: pointer;\\n}\\n.van-goods-action-icon:active {\\n  background-color: #f2f3f5;\\n}\\n.van-goods-action-icon__icon {\\n  position: relative;\\n  width: 1em;\\n  margin: 0 auto 5px;\\n  color: #323233;\\n  font-size: 18px;\\n}\\n.van-checkbox {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  overflow: hidden;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-checkbox--disabled {\\n  cursor: not-allowed;\\n}\\n.van-checkbox--label-disabled {\\n  cursor: default;\\n}\\n.van-checkbox--horizontal {\\n  margin-right: 12px;\\n}\\n.van-checkbox__icon {\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  height: 1em;\\n  font-size: 20px;\\n  line-height: 1em;\\n  cursor: pointer;\\n}\\n.van-checkbox__icon .van-icon {\\n  display: block;\\n  box-sizing: border-box;\\n  width: 1.25em;\\n  height: 1.25em;\\n  color: transparent;\\n  font-size: 0.8em;\\n  line-height: 1.25;\\n  text-align: center;\\n  border: 1px solid #c8c9cc;\\n  -webkit-transition-duration: 0.2s;\\n          transition-duration: 0.2s;\\n  -webkit-transition-property: color, border-color, background-color;\\n  transition-property: color, border-color, background-color;\\n}\\n.van-checkbox__icon--round .van-icon {\\n  border-radius: 100%;\\n}\\n.van-checkbox__icon--checked .van-icon {\\n  color: #fff;\\n  background-color: #1989fa;\\n  border-color: #1989fa;\\n}\\n.van-checkbox__icon--disabled {\\n  cursor: not-allowed;\\n}\\n.van-checkbox__icon--disabled .van-icon {\\n  background-color: #ebedf0;\\n  border-color: #c8c9cc;\\n}\\n.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon {\\n  color: #c8c9cc;\\n}\\n.van-checkbox__label {\\n  margin-left: 8px;\\n  color: #323233;\\n  line-height: 20px;\\n}\\n.van-checkbox__label--left {\\n  margin: 0 8px 0 0;\\n}\\n.van-checkbox__label--disabled {\\n  color: #c8c9cc;\\n}\\n.van-coupon {\\n  margin: 0 12px 12px;\\n  overflow: hidden;\\n  background-color: #fff;\\n  border-radius: 8px;\\n  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);\\n}\\n.van-coupon:active {\\n  background-color: #f2f3f5;\\n}\\n.van-coupon__content {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  box-sizing: border-box;\\n  min-height: 84px;\\n  padding: 14px 0;\\n  color: #323233;\\n}\\n.van-coupon__head {\\n  position: relative;\\n  min-width: 96px;\\n  padding: 0 8px;\\n  color: #ee0a24;\\n  text-align: center;\\n}\\n.van-coupon__amount,\\n.van-coupon__condition,\\n.van-coupon__name,\\n.van-coupon__valid {\\n  overflow: hidden;\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n}\\n.van-coupon__amount {\\n  margin-bottom: 6px;\\n  font-weight: 500;\\n  font-size: 30px;\\n  overflow: hidden;\\n  white-space: nowrap;\\n  text-overflow: ellipsis;\\n}\\n.van-coupon__amount span {\\n  font-weight: normal;\\n  font-size: 40%;\\n}\\n.van-coupon__amount span:not(:empty) {\\n  margin-left: 2px;\\n}\\n.van-coupon__condition {\\n  font-size: 12px;\\n  line-height: 16px;\\n  white-space: pre-wrap;\\n}\\n.van-coupon__body {\\n  position: relative;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  border-radius: 0 8px 8px 0;\\n}\\n.van-coupon__name {\\n  margin-bottom: 10px;\\n  font-weight: bold;\\n  font-size: 14px;\\n  line-height: 20px;\\n}\\n.van-coupon__valid {\\n  font-size: 12px;\\n}\\n.van-coupon__corner {\\n  position: absolute;\\n  top: 0;\\n  right: 16px;\\n  bottom: 0;\\n}\\n.van-coupon__description {\\n  padding: 8px 16px;\\n  font-size: 12px;\\n  border-top: 1px dashed #ebedf0;\\n}\\n.van-coupon--disabled:active {\\n  background-color: #fff;\\n}\\n.van-coupon--disabled .van-coupon-item__content {\\n  height: 74px;\\n}\\n.van-coupon--disabled .van-coupon__head {\\n  color: inherit;\\n}\\n.van-image {\\n  position: relative;\\n  display: inline-block;\\n}\\n.van-image--round {\\n  overflow: hidden;\\n  border-radius: 50%;\\n}\\n.van-image--round img {\\n  border-radius: inherit;\\n}\\n.van-image__img,\\n.van-image__error,\\n.van-image__loading {\\n  display: block;\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-image__error,\\n.van-image__loading {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  color: #969799;\\n  font-size: 14px;\\n  background-color: #f7f8fa;\\n}\\n.van-image__loading-icon {\\n  color: #dcdee0;\\n  font-size: 32px;\\n}\\n.van-image__error-icon {\\n  color: #dcdee0;\\n  font-size: 32px;\\n}\\n.van-radio {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  overflow: hidden;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-radio--disabled {\\n  cursor: not-allowed;\\n}\\n.van-radio--label-disabled {\\n  cursor: default;\\n}\\n.van-radio--horizontal {\\n  margin-right: 12px;\\n}\\n.van-radio__icon {\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  height: 1em;\\n  font-size: 20px;\\n  line-height: 1em;\\n  cursor: pointer;\\n}\\n.van-radio__icon .van-icon {\\n  display: block;\\n  box-sizing: border-box;\\n  width: 1.25em;\\n  height: 1.25em;\\n  color: transparent;\\n  font-size: 0.8em;\\n  line-height: 1.25;\\n  text-align: center;\\n  border: 1px solid #c8c9cc;\\n  -webkit-transition-duration: 0.2s;\\n          transition-duration: 0.2s;\\n  -webkit-transition-property: color, border-color, background-color;\\n  transition-property: color, border-color, background-color;\\n}\\n.van-radio__icon--round .van-icon {\\n  border-radius: 100%;\\n}\\n.van-radio__icon--checked .van-icon {\\n  color: #fff;\\n  background-color: #1989fa;\\n  border-color: #1989fa;\\n}\\n.van-radio__icon--disabled {\\n  cursor: not-allowed;\\n}\\n.van-radio__icon--disabled .van-icon {\\n  background-color: #ebedf0;\\n  border-color: #c8c9cc;\\n}\\n.van-radio__icon--disabled.van-radio__icon--checked .van-icon {\\n  color: #c8c9cc;\\n}\\n.van-radio__label {\\n  margin-left: 8px;\\n  color: #323233;\\n  line-height: 20px;\\n}\\n.van-radio__label--left {\\n  margin: 0 8px 0 0;\\n}\\n.van-radio__label--disabled {\\n  color: #c8c9cc;\\n}\\n.van-tag {\\n  position: relative;\\n  display: -webkit-inline-box;\\n  display: -webkit-inline-flex;\\n  display: inline-flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  padding: 0 4px;\\n  color: #fff;\\n  font-size: 12px;\\n  line-height: 16px;\\n  border-radius: 2px;\\n}\\n.van-tag--default {\\n  background-color: #969799;\\n}\\n.van-tag--default.van-tag--plain {\\n  color: #969799;\\n}\\n.van-tag--danger {\\n  background-color: #ee0a24;\\n}\\n.van-tag--danger.van-tag--plain {\\n  color: #ee0a24;\\n}\\n.van-tag--primary {\\n  background-color: #1989fa;\\n}\\n.van-tag--primary.van-tag--plain {\\n  color: #1989fa;\\n}\\n.van-tag--success {\\n  background-color: #07c160;\\n}\\n.van-tag--success.van-tag--plain {\\n  color: #07c160;\\n}\\n.van-tag--warning {\\n  background-color: #ff976a;\\n}\\n.van-tag--warning.van-tag--plain {\\n  color: #ff976a;\\n}\\n.van-tag--plain {\\n  background-color: #fff;\\n  border-color: currentColor;\\n}\\n.van-tag--plain::before {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  border: 1px solid;\\n  border-color: inherit;\\n  border-radius: inherit;\\n  content: '';\\n  pointer-events: none;\\n}\\n.van-tag--medium {\\n  padding: 2px 6px;\\n}\\n.van-tag--large {\\n  padding: 4px 8px;\\n  font-size: 14px;\\n  border-radius: 4px;\\n}\\n.van-tag--mark {\\n  border-radius: 0 999px 999px 0;\\n}\\n.van-tag--mark::after {\\n  display: block;\\n  width: 2px;\\n  content: '';\\n}\\n.van-tag--round {\\n  border-radius: 999px;\\n}\\n.van-tag__close {\\n  margin-left: 2px;\\n  cursor: pointer;\\n}\\n.van-card {\\n  position: relative;\\n  box-sizing: border-box;\\n  padding: 8px 16px;\\n  color: #323233;\\n  font-size: 12px;\\n  background-color: #fafafa;\\n}\\n.van-card:not(:first-child) {\\n  margin-top: 8px;\\n}\\n.van-card__header {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n}\\n.van-card__thumb {\\n  position: relative;\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  width: 88px;\\n  height: 88px;\\n  margin-right: 8px;\\n}\\n.van-card__thumb img {\\n  border-radius: 8px;\\n}\\n.van-card__content {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-pack: justify;\\n  -webkit-justify-content: space-between;\\n          justify-content: space-between;\\n  min-width: 0;\\n  /* hack for flex box ellipsis */\\n  min-height: 88px;\\n}\\n.van-card__content--centered {\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n}\\n.van-card__title,\\n.van-card__desc {\\n  word-wrap: break-word;\\n}\\n.van-card__title {\\n  max-height: 32px;\\n  font-weight: 500;\\n  line-height: 16px;\\n}\\n.van-card__desc {\\n  max-height: 20px;\\n  color: #646566;\\n  line-height: 20px;\\n}\\n.van-card__bottom {\\n  line-height: 20px;\\n}\\n.van-card__price {\\n  display: inline-block;\\n  color: #323233;\\n  font-weight: 500;\\n  font-size: 12px;\\n}\\n.van-card__price-integer {\\n  font-size: 16px;\\n  font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;\\n}\\n.van-card__price-decimal {\\n  font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;\\n}\\n.van-card__origin-price {\\n  display: inline-block;\\n  margin-left: 5px;\\n  color: #969799;\\n  font-size: 10px;\\n  text-decoration: line-through;\\n}\\n.van-card__num {\\n  float: right;\\n  color: #969799;\\n}\\n.van-card__tag {\\n  position: absolute;\\n  top: 2px;\\n  left: 0;\\n}\\n.van-card__footer {\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  text-align: right;\\n}\\n.van-card__footer .van-button {\\n  margin-left: 5px;\\n}\\n.van-cell {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  box-sizing: border-box;\\n  width: 100%;\\n  padding: 10px 16px;\\n  overflow: hidden;\\n  color: #323233;\\n  font-size: 14px;\\n  line-height: 24px;\\n  background-color: #fff;\\n}\\n.van-cell::after {\\n  position: absolute;\\n  box-sizing: border-box;\\n  content: ' ';\\n  pointer-events: none;\\n  right: 16px;\\n  bottom: 0;\\n  left: 16px;\\n  border-bottom: 1px solid #ebedf0;\\n  -webkit-transform: scaleY(0.5);\\n          transform: scaleY(0.5);\\n}\\n.van-cell:last-child::after,\\n.van-cell--borderless::after {\\n  display: none;\\n}\\n.van-cell__label {\\n  margin-top: 4px;\\n  color: #969799;\\n  font-size: 12px;\\n  line-height: 18px;\\n}\\n.van-cell__title,\\n.van-cell__value {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n}\\n.van-cell__value {\\n  position: relative;\\n  overflow: hidden;\\n  color: #969799;\\n  text-align: right;\\n  vertical-align: middle;\\n  word-wrap: break-word;\\n}\\n.van-cell__value--alone {\\n  color: #323233;\\n  text-align: left;\\n}\\n.van-cell__left-icon,\\n.van-cell__right-icon {\\n  height: 24px;\\n  font-size: 16px;\\n  line-height: 24px;\\n}\\n.van-cell__left-icon {\\n  margin-right: 4px;\\n}\\n.van-cell__right-icon {\\n  margin-left: 4px;\\n  color: #969799;\\n}\\n.van-cell--clickable {\\n  cursor: pointer;\\n}\\n.van-cell--clickable:active {\\n  background-color: #f2f3f5;\\n}\\n.van-cell--required {\\n  overflow: visible;\\n}\\n.van-cell--required::before {\\n  position: absolute;\\n  left: 8px;\\n  color: #ee0a24;\\n  font-size: 14px;\\n  content: '*';\\n}\\n.van-cell--center {\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n}\\n.van-cell--large {\\n  padding-top: 12px;\\n  padding-bottom: 12px;\\n}\\n.van-cell--large .van-cell__title {\\n  font-size: 16px;\\n}\\n.van-cell--large .van-cell__label {\\n  font-size: 14px;\\n}\\n.van-coupon-cell__value--selected {\\n  color: #323233;\\n}\\n.van-contact-card {\\n  padding: 16px;\\n}\\n.van-contact-card__value {\\n  margin-left: 5px;\\n  line-height: 20px;\\n}\\n.van-contact-card--add .van-contact-card__value {\\n  line-height: 40px;\\n}\\n.van-contact-card--add .van-cell__left-icon {\\n  color: #1989fa;\\n  font-size: 40px;\\n}\\n.van-contact-card::before {\\n  position: absolute;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  height: 2px;\\n  background: -webkit-repeating-linear-gradient(135deg, #ff6c6c 0, #ff6c6c 20%, transparent 0, transparent 25%, #1989fa 0, #1989fa 45%, transparent 0, transparent 50%);\\n  background: repeating-linear-gradient(-45deg, #ff6c6c 0, #ff6c6c 20%, transparent 0, transparent 25%, #1989fa 0, #1989fa 45%, transparent 0, transparent 50%);\\n  background-size: 80px;\\n  content: '';\\n}\\n.van-collapse-item {\\n  position: relative;\\n}\\n.van-collapse-item--border::after {\\n  position: absolute;\\n  box-sizing: border-box;\\n  content: ' ';\\n  pointer-events: none;\\n  top: 0;\\n  right: 16px;\\n  left: 16px;\\n  border-top: 1px solid #ebedf0;\\n  -webkit-transform: scaleY(0.5);\\n          transform: scaleY(0.5);\\n}\\n.van-collapse-item__title .van-cell__right-icon::before {\\n  -webkit-transform: rotate(90deg) translateZ(0);\\n          transform: rotate(90deg) translateZ(0);\\n  -webkit-transition: -webkit-transform 0.3s;\\n  transition: -webkit-transform 0.3s;\\n  transition: transform 0.3s;\\n  transition: transform 0.3s, -webkit-transform 0.3s;\\n}\\n.van-collapse-item__title::after {\\n  right: 16px;\\n  display: none;\\n}\\n.van-collapse-item__title--expanded .van-cell__right-icon::before {\\n  -webkit-transform: rotate(-90deg);\\n          transform: rotate(-90deg);\\n}\\n.van-collapse-item__title--expanded::after {\\n  display: block;\\n}\\n.van-collapse-item__title--borderless::after {\\n  display: none;\\n}\\n.van-collapse-item__title--disabled {\\n  cursor: not-allowed;\\n}\\n.van-collapse-item__title--disabled,\\n.van-collapse-item__title--disabled .van-cell__right-icon {\\n  color: #c8c9cc;\\n}\\n.van-collapse-item__title--disabled:active {\\n  background-color: #fff;\\n}\\n.van-collapse-item__wrapper {\\n  overflow: hidden;\\n  -webkit-transition: height 0.3s ease-in-out;\\n  transition: height 0.3s ease-in-out;\\n  will-change: height;\\n}\\n.van-collapse-item__content {\\n  padding: 12px 16px;\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 1.5;\\n  background-color: #fff;\\n}\\n.van-field__label {\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  box-sizing: border-box;\\n  width: 6.2em;\\n  margin-right: 12px;\\n  color: #646566;\\n  text-align: left;\\n  word-wrap: break-word;\\n}\\n.van-field__label--center {\\n  text-align: center;\\n}\\n.van-field__label--right {\\n  text-align: right;\\n}\\n.van-field--disabled .van-field__label {\\n  color: #c8c9cc;\\n}\\n.van-field__value {\\n  overflow: visible;\\n}\\n.van-field__body {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n}\\n.van-field__control {\\n  display: block;\\n  box-sizing: border-box;\\n  width: 100%;\\n  min-width: 0;\\n  margin: 0;\\n  padding: 0;\\n  color: #323233;\\n  line-height: inherit;\\n  text-align: left;\\n  background-color: transparent;\\n  border: 0;\\n  resize: none;\\n}\\n.van-field__control::-webkit-input-placeholder {\\n  color: #c8c9cc;\\n}\\n.van-field__control::placeholder {\\n  color: #c8c9cc;\\n}\\n.van-field__control:disabled {\\n  color: #c8c9cc;\\n  cursor: not-allowed;\\n  opacity: 1;\\n  -webkit-text-fill-color: #c8c9cc;\\n}\\n.van-field__control:read-only {\\n  cursor: default;\\n}\\n.van-field__control--center {\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  text-align: center;\\n}\\n.van-field__control--right {\\n  -webkit-box-pack: end;\\n  -webkit-justify-content: flex-end;\\n          justify-content: flex-end;\\n  text-align: right;\\n}\\n.van-field__control--custom {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  min-height: 24px;\\n}\\n.van-field__control[type='date'],\\n.van-field__control[type='time'],\\n.van-field__control[type='datetime-local'] {\\n  min-height: 24px;\\n}\\n.van-field__control[type='search'] {\\n  -webkit-appearance: none;\\n}\\n.van-field__clear,\\n.van-field__icon,\\n.van-field__button,\\n.van-field__right-icon {\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n}\\n.van-field__clear,\\n.van-field__right-icon {\\n  margin-right: -8px;\\n  padding: 0 8px;\\n  line-height: inherit;\\n}\\n.van-field__clear {\\n  color: #c8c9cc;\\n  font-size: 16px;\\n  cursor: pointer;\\n}\\n.van-field__left-icon .van-icon,\\n.van-field__right-icon .van-icon {\\n  display: block;\\n  font-size: 16px;\\n  line-height: inherit;\\n}\\n.van-field__left-icon {\\n  margin-right: 4px;\\n}\\n.van-field__right-icon {\\n  color: #969799;\\n}\\n.van-field__button {\\n  padding-left: 8px;\\n}\\n.van-field__error-message {\\n  color: #ee0a24;\\n  font-size: 12px;\\n  text-align: left;\\n}\\n.van-field__error-message--center {\\n  text-align: center;\\n}\\n.van-field__error-message--right {\\n  text-align: right;\\n}\\n.van-field__word-limit {\\n  margin-top: 4px;\\n  color: #646566;\\n  font-size: 12px;\\n  line-height: 16px;\\n  text-align: right;\\n}\\n.van-field--error .van-field__control::-webkit-input-placeholder {\\n  color: #ee0a24;\\n  -webkit-text-fill-color: currentColor;\\n}\\n.van-field--error .van-field__control,\\n.van-field--error .van-field__control::placeholder {\\n  color: #ee0a24;\\n  -webkit-text-fill-color: currentColor;\\n}\\n.van-field--min-height .van-field__control {\\n  min-height: 60px;\\n}\\n.van-search {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  box-sizing: border-box;\\n  padding: 5px 8px;\\n  background-color: #fff;\\n}\\n.van-search__content {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  padding-left: 12px;\\n  background-color: #f7f8fa;\\n  border-radius: 2px;\\n}\\n.van-search__content--round {\\n  border-radius: 999px;\\n}\\n.van-search__label {\\n  padding: 0 5px;\\n  color: #323233;\\n  font-size: 14px;\\n  line-height: 24px;\\n}\\n.van-search .van-cell {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  padding: 5px 8px 5px 0;\\n  background-color: transparent;\\n}\\n.van-search .van-cell .van-field__left-icon {\\n  color: #969799;\\n}\\n.van-search--show-action {\\n  padding-right: 0;\\n}\\n.van-search input::-webkit-search-decoration,\\n.van-search input::-webkit-search-cancel-button,\\n.van-search input::-webkit-search-results-button,\\n.van-search input::-webkit-search-results-decoration {\\n  display: none;\\n}\\n.van-search__action {\\n  padding: 0 12px 0 7px;\\n  color: #323233;\\n  font-size: 14px;\\n  line-height: 24px;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-search__action:active {\\n  background-color: #f2f3f5;\\n}\\n.van-overflow-hidden {\\n  overflow: hidden !important;\\n}\\n.van-popup {\\n  position: fixed;\\n  max-height: 100%;\\n  overflow-y: auto;\\n  background-color: #fff;\\n  -webkit-transition: -webkit-transform 0.3s;\\n  transition: -webkit-transform 0.3s;\\n  transition: transform 0.3s;\\n  transition: transform 0.3s, -webkit-transform 0.3s;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-popup--center {\\n  top: 50%;\\n  left: 50%;\\n  -webkit-transform: translate3d(-50%, -50%, 0);\\n          transform: translate3d(-50%, -50%, 0);\\n}\\n.van-popup--center.van-popup--round {\\n  border-radius: 16px;\\n}\\n.van-popup--top {\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n}\\n.van-popup--top.van-popup--round {\\n  border-radius: 0 0 16px 16px;\\n}\\n.van-popup--right {\\n  top: 50%;\\n  right: 0;\\n  -webkit-transform: translate3d(0, -50%, 0);\\n          transform: translate3d(0, -50%, 0);\\n}\\n.van-popup--right.van-popup--round {\\n  border-radius: 16px 0 0 16px;\\n}\\n.van-popup--bottom {\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n}\\n.van-popup--bottom.van-popup--round {\\n  border-radius: 16px 16px 0 0;\\n}\\n.van-popup--left {\\n  top: 50%;\\n  left: 0;\\n  -webkit-transform: translate3d(0, -50%, 0);\\n          transform: translate3d(0, -50%, 0);\\n}\\n.van-popup--left.van-popup--round {\\n  border-radius: 0 16px 16px 0;\\n}\\n.van-popup--safe-area-inset-bottom {\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n}\\n.van-popup-slide-top-enter-active,\\n.van-popup-slide-left-enter-active,\\n.van-popup-slide-right-enter-active,\\n.van-popup-slide-bottom-enter-active {\\n  -webkit-transition-timing-function: ease-out;\\n          transition-timing-function: ease-out;\\n}\\n.van-popup-slide-top-leave-active,\\n.van-popup-slide-left-leave-active,\\n.van-popup-slide-right-leave-active,\\n.van-popup-slide-bottom-leave-active {\\n  -webkit-transition-timing-function: ease-in;\\n          transition-timing-function: ease-in;\\n}\\n.van-popup-slide-top-enter,\\n.van-popup-slide-top-leave-active {\\n  -webkit-transform: translate3d(0, -100%, 0);\\n          transform: translate3d(0, -100%, 0);\\n}\\n.van-popup-slide-right-enter,\\n.van-popup-slide-right-leave-active {\\n  -webkit-transform: translate3d(100%, -50%, 0);\\n          transform: translate3d(100%, -50%, 0);\\n}\\n.van-popup-slide-bottom-enter,\\n.van-popup-slide-bottom-leave-active {\\n  -webkit-transform: translate3d(0, 100%, 0);\\n          transform: translate3d(0, 100%, 0);\\n}\\n.van-popup-slide-left-enter,\\n.van-popup-slide-left-leave-active {\\n  -webkit-transform: translate3d(-100%, -50%, 0);\\n          transform: translate3d(-100%, -50%, 0);\\n}\\n.van-popup__close-icon {\\n  position: absolute;\\n  z-index: 1;\\n  color: #c8c9cc;\\n  font-size: 22px;\\n  cursor: pointer;\\n}\\n.van-popup__close-icon:active {\\n  color: #969799;\\n}\\n.van-popup__close-icon--top-left {\\n  top: 16px;\\n  left: 16px;\\n}\\n.van-popup__close-icon--top-right {\\n  top: 16px;\\n  right: 16px;\\n}\\n.van-popup__close-icon--bottom-left {\\n  bottom: 16px;\\n  left: 16px;\\n}\\n.van-popup__close-icon--bottom-right {\\n  right: 16px;\\n  bottom: 16px;\\n}\\n.van-share-sheet__header {\\n  padding: 12px 16px 4px;\\n  text-align: center;\\n}\\n.van-share-sheet__title {\\n  margin-top: 8px;\\n  color: #323233;\\n  font-weight: normal;\\n  font-size: 14px;\\n  line-height: 20px;\\n}\\n.van-share-sheet__description {\\n  display: block;\\n  margin-top: 8px;\\n  color: #969799;\\n  font-size: 12px;\\n  line-height: 16px;\\n}\\n.van-share-sheet__options {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  padding: 16px 0 16px 8px;\\n  overflow-x: auto;\\n  overflow-y: visible;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-share-sheet__options--border::before {\\n  position: absolute;\\n  box-sizing: border-box;\\n  content: ' ';\\n  pointer-events: none;\\n  top: 0;\\n  right: 0;\\n  left: 16px;\\n  border-top: 1px solid #ebedf0;\\n  -webkit-transform: scaleY(0.5);\\n          transform: scaleY(0.5);\\n}\\n.van-share-sheet__options::-webkit-scrollbar {\\n  height: 0;\\n}\\n.van-share-sheet__option {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-share-sheet__option:active {\\n  opacity: 0.7;\\n}\\n.van-share-sheet__icon {\\n  width: 48px;\\n  height: 48px;\\n  margin: 0 16px;\\n}\\n.van-share-sheet__name {\\n  margin-top: 8px;\\n  padding: 0 4px;\\n  color: #646566;\\n  font-size: 12px;\\n}\\n.van-share-sheet__option-description {\\n  padding: 0 4px;\\n  color: #c8c9cc;\\n  font-size: 12px;\\n}\\n.van-share-sheet__cancel {\\n  display: block;\\n  width: 100%;\\n  padding: 0;\\n  font-size: 16px;\\n  line-height: 48px;\\n  text-align: center;\\n  background: #fff;\\n  border: none;\\n  cursor: pointer;\\n}\\n.van-share-sheet__cancel::before {\\n  display: block;\\n  height: 8px;\\n  background-color: #f7f8fa;\\n  content: ' ';\\n}\\n.van-share-sheet__cancel:active {\\n  background-color: #f2f3f5;\\n}\\n.van-popover {\\n  position: absolute;\\n  overflow: visible;\\n  background-color: transparent;\\n  -webkit-transition: opacity 0.15s, -webkit-transform 0.15s;\\n  transition: opacity 0.15s, -webkit-transform 0.15s;\\n  transition: opacity 0.15s, transform 0.15s;\\n  transition: opacity 0.15s, transform 0.15s, -webkit-transform 0.15s;\\n}\\n.van-popover__wrapper {\\n  display: inline-block;\\n}\\n.van-popover__arrow {\\n  position: absolute;\\n  width: 0;\\n  height: 0;\\n  border-color: transparent;\\n  border-style: solid;\\n  border-width: 6px;\\n}\\n.van-popover__content {\\n  overflow: hidden;\\n  border-radius: 8px;\\n}\\n.van-popover__action {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  box-sizing: border-box;\\n  width: 128px;\\n  height: 44px;\\n  padding: 0 16px;\\n  font-size: 14px;\\n  line-height: 20px;\\n  cursor: pointer;\\n}\\n.van-popover__action:last-child .van-popover__action-text::after {\\n  display: none;\\n}\\n.van-popover__action-text {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  height: 100%;\\n}\\n.van-popover__action-icon {\\n  margin-right: 8px;\\n  font-size: 20px;\\n}\\n.van-popover__action--with-icon .van-popover__action-text {\\n  -webkit-box-pack: start;\\n  -webkit-justify-content: flex-start;\\n          justify-content: flex-start;\\n}\\n.van-popover[data-popper-placement^='top'] .van-popover__arrow {\\n  bottom: 0;\\n  border-top-color: currentColor;\\n  border-bottom-width: 0;\\n  -webkit-transform: translate(-50%, 100%);\\n          transform: translate(-50%, 100%);\\n}\\n.van-popover[data-popper-placement='top'] {\\n  -webkit-transform-origin: 50% 100%;\\n          transform-origin: 50% 100%;\\n}\\n.van-popover[data-popper-placement='top'] .van-popover__arrow {\\n  left: 50%;\\n}\\n.van-popover[data-popper-placement='top-start'] {\\n  -webkit-transform-origin: 0 100%;\\n          transform-origin: 0 100%;\\n}\\n.van-popover[data-popper-placement='top-start'] .van-popover__arrow {\\n  left: 16px;\\n}\\n.van-popover[data-popper-placement='top-end'] {\\n  -webkit-transform-origin: 100% 100%;\\n          transform-origin: 100% 100%;\\n}\\n.van-popover[data-popper-placement='top-end'] .van-popover__arrow {\\n  right: 16px;\\n}\\n.van-popover[data-popper-placement^='left'] .van-popover__arrow {\\n  right: 0;\\n  border-right-width: 0;\\n  border-left-color: currentColor;\\n  -webkit-transform: translate(100%, -50%);\\n          transform: translate(100%, -50%);\\n}\\n.van-popover[data-popper-placement='left'] {\\n  -webkit-transform-origin: 100% 50%;\\n          transform-origin: 100% 50%;\\n}\\n.van-popover[data-popper-placement='left'] .van-popover__arrow {\\n  top: 50%;\\n}\\n.van-popover[data-popper-placement='left-start'] {\\n  -webkit-transform-origin: 100% 0;\\n          transform-origin: 100% 0;\\n}\\n.van-popover[data-popper-placement='left-start'] .van-popover__arrow {\\n  top: 16px;\\n}\\n.van-popover[data-popper-placement='left-end'] {\\n  -webkit-transform-origin: 100% 100%;\\n          transform-origin: 100% 100%;\\n}\\n.van-popover[data-popper-placement='left-end'] .van-popover__arrow {\\n  bottom: 16px;\\n}\\n.van-popover[data-popper-placement^='right'] .van-popover__arrow {\\n  left: 0;\\n  border-right-color: currentColor;\\n  border-left-width: 0;\\n  -webkit-transform: translate(-100%, -50%);\\n          transform: translate(-100%, -50%);\\n}\\n.van-popover[data-popper-placement='right'] {\\n  -webkit-transform-origin: 0 50%;\\n          transform-origin: 0 50%;\\n}\\n.van-popover[data-popper-placement='right'] .van-popover__arrow {\\n  top: 50%;\\n}\\n.van-popover[data-popper-placement='right-start'] {\\n  -webkit-transform-origin: 0 0;\\n          transform-origin: 0 0;\\n}\\n.van-popover[data-popper-placement='right-start'] .van-popover__arrow {\\n  top: 16px;\\n}\\n.van-popover[data-popper-placement='right-end'] {\\n  -webkit-transform-origin: 0 100%;\\n          transform-origin: 0 100%;\\n}\\n.van-popover[data-popper-placement='right-end'] .van-popover__arrow {\\n  bottom: 16px;\\n}\\n.van-popover[data-popper-placement^='bottom'] .van-popover__arrow {\\n  top: 0;\\n  border-top-width: 0;\\n  border-bottom-color: currentColor;\\n  -webkit-transform: translate(-50%, -100%);\\n          transform: translate(-50%, -100%);\\n}\\n.van-popover[data-popper-placement='bottom'] {\\n  -webkit-transform-origin: 50% 0;\\n          transform-origin: 50% 0;\\n}\\n.van-popover[data-popper-placement='bottom'] .van-popover__arrow {\\n  left: 50%;\\n}\\n.van-popover[data-popper-placement='bottom-start'] {\\n  -webkit-transform-origin: 0 0;\\n          transform-origin: 0 0;\\n}\\n.van-popover[data-popper-placement='bottom-start'] .van-popover__arrow {\\n  left: 16px;\\n}\\n.van-popover[data-popper-placement='bottom-end'] {\\n  -webkit-transform-origin: 100% 0;\\n          transform-origin: 100% 0;\\n}\\n.van-popover[data-popper-placement='bottom-end'] .van-popover__arrow {\\n  right: 16px;\\n}\\n.van-popover--light {\\n  color: #323233;\\n}\\n.van-popover--light .van-popover__content {\\n  background-color: #fff;\\n  box-shadow: 0 2px 12px rgba(50, 50, 51, 0.12);\\n}\\n.van-popover--light .van-popover__arrow {\\n  color: #fff;\\n}\\n.van-popover--light .van-popover__action:active {\\n  background-color: #f2f3f5;\\n}\\n.van-popover--light .van-popover__action--disabled {\\n  color: #c8c9cc;\\n  cursor: not-allowed;\\n}\\n.van-popover--light .van-popover__action--disabled:active {\\n  background-color: transparent;\\n}\\n.van-popover--dark {\\n  color: #fff;\\n}\\n.van-popover--dark .van-popover__content {\\n  background-color: #4a4a4a;\\n}\\n.van-popover--dark .van-popover__arrow {\\n  color: #4a4a4a;\\n}\\n.van-popover--dark .van-popover__action:active {\\n  background-color: rgba(0, 0, 0, 0.2);\\n}\\n.van-popover--dark .van-popover__action--disabled {\\n  color: #969799;\\n}\\n.van-popover--dark .van-popover__action--disabled:active {\\n  background-color: transparent;\\n}\\n.van-popover--dark .van-popover__action-text::after {\\n  border-color: #646566;\\n}\\n.van-popover-zoom-enter,\\n.van-popover-zoom-leave-active {\\n  -webkit-transform: scale(0.8);\\n          transform: scale(0.8);\\n  opacity: 0;\\n}\\n.van-popover-zoom-enter-active {\\n  -webkit-transition-timing-function: ease-out;\\n          transition-timing-function: ease-out;\\n}\\n.van-popover-zoom-leave-active {\\n  -webkit-transition-timing-function: ease-in;\\n          transition-timing-function: ease-in;\\n}\\n.van-notify {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  box-sizing: border-box;\\n  padding: 8px 16px;\\n  color: #fff;\\n  font-size: 14px;\\n  line-height: 20px;\\n  white-space: pre-wrap;\\n  text-align: center;\\n  word-wrap: break-word;\\n}\\n.van-notify--primary {\\n  background-color: #1989fa;\\n}\\n.van-notify--success {\\n  background-color: #07c160;\\n}\\n.van-notify--danger {\\n  background-color: #ee0a24;\\n}\\n.van-notify--warning {\\n  background-color: #ff976a;\\n}\\n.van-dropdown-item {\\n  position: fixed;\\n  right: 0;\\n  left: 0;\\n  z-index: 10;\\n  overflow: hidden;\\n}\\n.van-dropdown-item__icon {\\n  display: block;\\n  line-height: inherit;\\n}\\n.van-dropdown-item__option {\\n  text-align: left;\\n}\\n.van-dropdown-item__option--active {\\n  color: #ee0a24;\\n}\\n.van-dropdown-item__option--active .van-dropdown-item__icon {\\n  color: #ee0a24;\\n}\\n.van-dropdown-item--up {\\n  top: 0;\\n}\\n.van-dropdown-item--down {\\n  bottom: 0;\\n}\\n.van-dropdown-item__content {\\n  position: absolute;\\n  max-height: 80%;\\n}\\n.van-loading {\\n  position: relative;\\n  color: #c8c9cc;\\n  font-size: 0;\\n  vertical-align: middle;\\n}\\n.van-loading__spinner {\\n  position: relative;\\n  display: inline-block;\\n  width: 30px;\\n  max-width: 100%;\\n  height: 30px;\\n  max-height: 100%;\\n  vertical-align: middle;\\n  -webkit-animation: van-rotate 0.8s linear infinite;\\n          animation: van-rotate 0.8s linear infinite;\\n}\\n.van-loading__spinner--spinner {\\n  -webkit-animation-timing-function: steps(12);\\n          animation-timing-function: steps(12);\\n}\\n.van-loading__spinner--spinner i {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-loading__spinner--spinner i::before {\\n  display: block;\\n  width: 2px;\\n  height: 25%;\\n  margin: 0 auto;\\n  background-color: currentColor;\\n  border-radius: 40%;\\n  content: ' ';\\n}\\n.van-loading__spinner--circular {\\n  -webkit-animation-duration: 2s;\\n          animation-duration: 2s;\\n}\\n.van-loading__circular {\\n  display: block;\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-loading__circular circle {\\n  -webkit-animation: van-circular 1.5s ease-in-out infinite;\\n          animation: van-circular 1.5s ease-in-out infinite;\\n  stroke: currentColor;\\n  stroke-width: 3;\\n  stroke-linecap: round;\\n}\\n.van-loading__text {\\n  display: inline-block;\\n  margin-left: 8px;\\n  color: #969799;\\n  font-size: 14px;\\n  vertical-align: middle;\\n}\\n.van-loading--vertical {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n}\\n.van-loading--vertical .van-loading__text {\\n  margin: 8px 0 0;\\n}\\n@-webkit-keyframes van-circular {\\n  0% {\\n    stroke-dasharray: 1, 200;\\n    stroke-dashoffset: 0;\\n  }\\n  50% {\\n    stroke-dasharray: 90, 150;\\n    stroke-dashoffset: -40;\\n  }\\n  100% {\\n    stroke-dasharray: 90, 150;\\n    stroke-dashoffset: -120;\\n  }\\n}\\n@keyframes van-circular {\\n  0% {\\n    stroke-dasharray: 1, 200;\\n    stroke-dashoffset: 0;\\n  }\\n  50% {\\n    stroke-dasharray: 90, 150;\\n    stroke-dashoffset: -40;\\n  }\\n  100% {\\n    stroke-dasharray: 90, 150;\\n    stroke-dashoffset: -120;\\n  }\\n}\\n.van-loading__spinner--spinner i:nth-of-type(1) {\\n  -webkit-transform: rotate(30deg);\\n          transform: rotate(30deg);\\n  opacity: 1;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(2) {\\n  -webkit-transform: rotate(60deg);\\n          transform: rotate(60deg);\\n  opacity: 0.9375;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(3) {\\n  -webkit-transform: rotate(90deg);\\n          transform: rotate(90deg);\\n  opacity: 0.875;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(4) {\\n  -webkit-transform: rotate(120deg);\\n          transform: rotate(120deg);\\n  opacity: 0.8125;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(5) {\\n  -webkit-transform: rotate(150deg);\\n          transform: rotate(150deg);\\n  opacity: 0.75;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(6) {\\n  -webkit-transform: rotate(180deg);\\n          transform: rotate(180deg);\\n  opacity: 0.6875;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(7) {\\n  -webkit-transform: rotate(210deg);\\n          transform: rotate(210deg);\\n  opacity: 0.625;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(8) {\\n  -webkit-transform: rotate(240deg);\\n          transform: rotate(240deg);\\n  opacity: 0.5625;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(9) {\\n  -webkit-transform: rotate(270deg);\\n          transform: rotate(270deg);\\n  opacity: 0.5;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(10) {\\n  -webkit-transform: rotate(300deg);\\n          transform: rotate(300deg);\\n  opacity: 0.4375;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(11) {\\n  -webkit-transform: rotate(330deg);\\n          transform: rotate(330deg);\\n  opacity: 0.375;\\n}\\n.van-loading__spinner--spinner i:nth-of-type(12) {\\n  -webkit-transform: rotate(360deg);\\n          transform: rotate(360deg);\\n  opacity: 0.3125;\\n}\\n.van-pull-refresh {\\n  overflow: hidden;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-pull-refresh__track {\\n  position: relative;\\n  height: 100%;\\n  -webkit-transition-property: -webkit-transform;\\n  transition-property: -webkit-transform;\\n  transition-property: transform;\\n  transition-property: transform, -webkit-transform;\\n}\\n.van-pull-refresh__head {\\n  position: absolute;\\n  left: 0;\\n  width: 100%;\\n  height: 50px;\\n  overflow: hidden;\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 50px;\\n  text-align: center;\\n  -webkit-transform: translateY(-100%);\\n          transform: translateY(-100%);\\n}\\n.van-number-keyboard {\\n  position: fixed;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 100;\\n  width: 100%;\\n  padding-bottom: 22px;\\n  background-color: #f2f3f5;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-number-keyboard--with-title {\\n  border-radius: 20px 20px 0 0;\\n}\\n.van-number-keyboard__header {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  box-sizing: content-box;\\n  height: 34px;\\n  padding-top: 6px;\\n  color: #646566;\\n  font-size: 16px;\\n}\\n.van-number-keyboard__title {\\n  display: inline-block;\\n  font-weight: normal;\\n}\\n.van-number-keyboard__title-left {\\n  position: absolute;\\n  left: 0;\\n}\\n.van-number-keyboard__body {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  padding: 6px 0 0 6px;\\n}\\n.van-number-keyboard__keys {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 3;\\n  -webkit-flex: 3;\\n          flex: 3;\\n  -webkit-flex-wrap: wrap;\\n          flex-wrap: wrap;\\n}\\n.van-number-keyboard__close {\\n  position: absolute;\\n  right: 0;\\n  height: 100%;\\n  padding: 0 16px;\\n  color: #576b95;\\n  font-size: 14px;\\n  background-color: transparent;\\n  border: none;\\n  cursor: pointer;\\n}\\n.van-number-keyboard__close:active {\\n  opacity: 0.7;\\n}\\n.van-number-keyboard__sidebar {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n}\\n.van-number-keyboard--unfit {\\n  padding-bottom: 0;\\n}\\n.van-key {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  height: 48px;\\n  font-size: 28px;\\n  line-height: 1.5;\\n  background-color: #fff;\\n  border-radius: 8px;\\n  cursor: pointer;\\n}\\n.van-key--large {\\n  position: absolute;\\n  top: 0;\\n  right: 6px;\\n  bottom: 6px;\\n  left: 0;\\n  height: auto;\\n}\\n.van-key--blue,\\n.van-key--delete {\\n  font-size: 16px;\\n}\\n.van-key--active {\\n  background-color: #ebedf0;\\n}\\n.van-key--blue {\\n  color: #fff;\\n  background-color: #1989fa;\\n}\\n.van-key--blue.van-key--active {\\n  background-color: #0570db;\\n}\\n.van-key__wrapper {\\n  position: relative;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-flex-basis: 33%;\\n          flex-basis: 33%;\\n  box-sizing: border-box;\\n  padding: 0 6px 6px 0;\\n}\\n.van-key__wrapper--wider {\\n  -webkit-flex-basis: 66%;\\n          flex-basis: 66%;\\n}\\n.van-key__delete-icon {\\n  width: 32px;\\n  height: 22px;\\n}\\n.van-key__collapse-icon {\\n  width: 30px;\\n  height: 24px;\\n}\\n.van-key__loading-icon {\\n  color: #fff;\\n}\\n.van-list__loading,\\n.van-list__finished-text,\\n.van-list__error-text {\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 50px;\\n  text-align: center;\\n}\\n.van-list__placeholder {\\n  height: 0;\\n  pointer-events: none;\\n}\\n.van-switch {\\n  position: relative;\\n  display: inline-block;\\n  box-sizing: content-box;\\n  width: 2em;\\n  height: 1em;\\n  font-size: 30px;\\n  background-color: #fff;\\n  border: 1px solid rgba(0, 0, 0, 0.1);\\n  border-radius: 1em;\\n  cursor: pointer;\\n  -webkit-transition: background-color 0.3s;\\n  transition: background-color 0.3s;\\n}\\n.van-switch__node {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 1em;\\n  height: 1em;\\n  font-size: inherit;\\n  background-color: #fff;\\n  border-radius: 100%;\\n  box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 3px 0 rgba(0, 0, 0, 0.05);\\n  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);\\n  transition: -webkit-transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);\\n  transition: transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);\\n  transition: transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05), -webkit-transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);\\n}\\n.van-switch__loading {\\n  top: 25%;\\n  left: 25%;\\n  width: 50%;\\n  height: 50%;\\n  line-height: 1;\\n}\\n.van-switch--on {\\n  background-color: #1989fa;\\n}\\n.van-switch--on .van-switch__node {\\n  -webkit-transform: translateX(1em);\\n          transform: translateX(1em);\\n}\\n.van-switch--on .van-switch__loading {\\n  color: #1989fa;\\n}\\n.van-switch--disabled {\\n  cursor: not-allowed;\\n  opacity: 0.5;\\n}\\n.van-switch--loading {\\n  cursor: default;\\n}\\n.van-switch-cell {\\n  padding-top: 9px;\\n  padding-bottom: 9px;\\n}\\n.van-switch-cell--large {\\n  padding-top: 11px;\\n  padding-bottom: 11px;\\n}\\n.van-switch-cell .van-switch {\\n  float: right;\\n}\\n.van-button {\\n  position: relative;\\n  display: inline-block;\\n  box-sizing: border-box;\\n  height: 44px;\\n  margin: 0;\\n  padding: 0;\\n  font-size: 16px;\\n  line-height: 1.2;\\n  text-align: center;\\n  border-radius: 2px;\\n  cursor: pointer;\\n  -webkit-transition: opacity 0.2s;\\n  transition: opacity 0.2s;\\n  -webkit-appearance: none;\\n}\\n.van-button::before {\\n  position: absolute;\\n  top: 50%;\\n  left: 50%;\\n  width: 100%;\\n  height: 100%;\\n  background-color: #000;\\n  border: inherit;\\n  border-color: #000;\\n  border-radius: inherit;\\n  /* inherit parent's border radius */\\n  -webkit-transform: translate(-50%, -50%);\\n          transform: translate(-50%, -50%);\\n  opacity: 0;\\n  content: ' ';\\n}\\n.van-button:active::before {\\n  opacity: 0.1;\\n}\\n.van-button--loading::before,\\n.van-button--disabled::before {\\n  display: none;\\n}\\n.van-button--default {\\n  color: #323233;\\n  background-color: #fff;\\n  border: 1px solid #ebedf0;\\n}\\n.van-button--primary {\\n  color: #fff;\\n  background-color: #07c160;\\n  border: 1px solid #07c160;\\n}\\n.van-button--info {\\n  color: #fff;\\n  background-color: #1989fa;\\n  border: 1px solid #1989fa;\\n}\\n.van-button--danger {\\n  color: #fff;\\n  background-color: #ee0a24;\\n  border: 1px solid #ee0a24;\\n}\\n.van-button--warning {\\n  color: #fff;\\n  background-color: #ff976a;\\n  border: 1px solid #ff976a;\\n}\\n.van-button--plain {\\n  background-color: #fff;\\n}\\n.van-button--plain.van-button--primary {\\n  color: #07c160;\\n}\\n.van-button--plain.van-button--info {\\n  color: #1989fa;\\n}\\n.van-button--plain.van-button--danger {\\n  color: #ee0a24;\\n}\\n.van-button--plain.van-button--warning {\\n  color: #ff976a;\\n}\\n.van-button--large {\\n  width: 100%;\\n  height: 50px;\\n}\\n.van-button--normal {\\n  padding: 0 15px;\\n  font-size: 14px;\\n}\\n.van-button--small {\\n  height: 32px;\\n  padding: 0 8px;\\n  font-size: 12px;\\n}\\n.van-button__loading {\\n  color: inherit;\\n  font-size: inherit;\\n}\\n.van-button--mini {\\n  height: 24px;\\n  padding: 0 4px;\\n  font-size: 10px;\\n}\\n.van-button--mini + .van-button--mini {\\n  margin-left: 4px;\\n}\\n.van-button--block {\\n  display: block;\\n  width: 100%;\\n}\\n.van-button--disabled {\\n  cursor: not-allowed;\\n  opacity: 0.5;\\n}\\n.van-button--loading {\\n  cursor: default;\\n}\\n.van-button--round {\\n  border-radius: 999px;\\n}\\n.van-button--square {\\n  border-radius: 0;\\n}\\n.van-button__content {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  height: 100%;\\n}\\n.van-button__content::before {\\n  content: ' ';\\n}\\n.van-button__icon {\\n  font-size: 1.2em;\\n  line-height: inherit;\\n}\\n.van-button__icon + .van-button__text,\\n.van-button__loading + .van-button__text,\\n.van-button__text + .van-button__icon,\\n.van-button__text + .van-button__loading {\\n  margin-left: 4px;\\n}\\n.van-button--hairline {\\n  border-width: 0;\\n}\\n.van-button--hairline::after {\\n  border-color: inherit;\\n  border-radius: 4px;\\n}\\n.van-button--hairline.van-button--round::after {\\n  border-radius: 999px;\\n}\\n.van-button--hairline.van-button--square::after {\\n  border-radius: 0;\\n}\\n.van-submit-bar {\\n  position: fixed;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 100;\\n  width: 100%;\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n  background-color: #fff;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-submit-bar__tip {\\n  padding: 8px 12px;\\n  color: #f56723;\\n  font-size: 12px;\\n  line-height: 1.5;\\n  background-color: #fff7cc;\\n}\\n.van-submit-bar__tip-icon {\\n  min-width: 18px;\\n  font-size: 12px;\\n  vertical-align: middle;\\n}\\n.van-submit-bar__tip-text {\\n  vertical-align: middle;\\n}\\n.van-submit-bar__bar {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: end;\\n  -webkit-justify-content: flex-end;\\n          justify-content: flex-end;\\n  height: 50px;\\n  padding: 0 16px;\\n  font-size: 14px;\\n}\\n.van-submit-bar__text {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  padding-right: 12px;\\n  color: #323233;\\n  text-align: right;\\n}\\n.van-submit-bar__text span {\\n  display: inline-block;\\n}\\n.van-submit-bar__suffix-label {\\n  margin-left: 5px;\\n  font-weight: 500;\\n}\\n.van-submit-bar__price {\\n  color: #ee0a24;\\n  font-weight: 500;\\n  font-size: 12px;\\n}\\n.van-submit-bar__price--integer {\\n  font-size: 20px;\\n  font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;\\n}\\n.van-submit-bar__button {\\n  width: 110px;\\n  height: 40px;\\n  font-weight: 500;\\n  border: none;\\n}\\n.van-submit-bar__button--danger {\\n  background: -webkit-linear-gradient(left, #ff6034, #ee0a24);\\n  background: linear-gradient(to right, #ff6034, #ee0a24);\\n}\\n.van-submit-bar--unfit {\\n  padding-bottom: 0;\\n}\\n.van-goods-action-button {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  height: 40px;\\n  font-weight: 500;\\n  font-size: 14px;\\n  border: none;\\n  border-radius: 0;\\n}\\n.van-goods-action-button--first {\\n  margin-left: 5px;\\n  border-top-left-radius: 999px;\\n  border-bottom-left-radius: 999px;\\n}\\n.van-goods-action-button--last {\\n  margin-right: 5px;\\n  border-top-right-radius: 999px;\\n  border-bottom-right-radius: 999px;\\n}\\n.van-goods-action-button--warning {\\n  background: -webkit-linear-gradient(left, #ffd01e, #ff8917);\\n  background: linear-gradient(to right, #ffd01e, #ff8917);\\n}\\n.van-goods-action-button--danger {\\n  background: -webkit-linear-gradient(left, #ff6034, #ee0a24);\\n  background: linear-gradient(to right, #ff6034, #ee0a24);\\n}\\n@media (max-width: 321px) {\\n  .van-goods-action-button {\\n    font-size: 13px;\\n  }\\n}\\n.van-toast {\\n  position: fixed;\\n  top: 50%;\\n  left: 50%;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  box-sizing: content-box;\\n  width: 88px;\\n  max-width: 70%;\\n  min-height: 88px;\\n  padding: 16px;\\n  color: #fff;\\n  font-size: 14px;\\n  line-height: 20px;\\n  white-space: pre-wrap;\\n  text-align: center;\\n  word-break: break-all;\\n  background-color: rgba(0, 0, 0, 0.7);\\n  border-radius: 8px;\\n  -webkit-transform: translate3d(-50%, -50%, 0);\\n          transform: translate3d(-50%, -50%, 0);\\n}\\n.van-toast--unclickable {\\n  overflow: hidden;\\n}\\n.van-toast--unclickable * {\\n  pointer-events: none;\\n}\\n.van-toast--text,\\n.van-toast--html {\\n  width: -webkit-fit-content;\\n  width: fit-content;\\n  min-width: 96px;\\n  min-height: 0;\\n  padding: 8px 12px;\\n}\\n.van-toast--text .van-toast__text,\\n.van-toast--html .van-toast__text {\\n  margin-top: 0;\\n}\\n.van-toast--top {\\n  top: 20%;\\n}\\n.van-toast--bottom {\\n  top: auto;\\n  bottom: 20%;\\n}\\n.van-toast__icon {\\n  font-size: 36px;\\n}\\n.van-toast__loading {\\n  padding: 4px;\\n  color: #fff;\\n}\\n.van-toast__text {\\n  margin-top: 8px;\\n}\\n.van-calendar {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  height: 100%;\\n  background-color: #fff;\\n}\\n.van-calendar__popup.van-popup--top,\\n.van-calendar__popup.van-popup--bottom {\\n  height: 80%;\\n}\\n.van-calendar__popup.van-popup--left,\\n.van-calendar__popup.van-popup--right {\\n  height: 100%;\\n}\\n.van-calendar__popup .van-popup__close-icon {\\n  top: 11px;\\n}\\n.van-calendar__header {\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);\\n}\\n.van-calendar__month-title,\\n.van-calendar__header-title,\\n.van-calendar__header-subtitle {\\n  height: 44px;\\n  font-weight: 500;\\n  line-height: 44px;\\n  text-align: center;\\n}\\n.van-calendar__header-title {\\n  font-size: 16px;\\n}\\n.van-calendar__header-subtitle {\\n  font-size: 14px;\\n}\\n.van-calendar__month-title {\\n  font-size: 14px;\\n}\\n.van-calendar__weekdays {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n}\\n.van-calendar__weekday {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  font-size: 12px;\\n  line-height: 30px;\\n  text-align: center;\\n}\\n.van-calendar__body {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  overflow: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-calendar__days {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-flex-wrap: wrap;\\n          flex-wrap: wrap;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-calendar__month-mark {\\n  position: absolute;\\n  top: 50%;\\n  left: 50%;\\n  z-index: 0;\\n  color: rgba(242, 243, 245, 0.8);\\n  font-size: 160px;\\n  -webkit-transform: translate(-50%, -50%);\\n          transform: translate(-50%, -50%);\\n  pointer-events: none;\\n}\\n.van-calendar__day,\\n.van-calendar__selected-day {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  text-align: center;\\n}\\n.van-calendar__day {\\n  position: relative;\\n  width: 14.285%;\\n  height: 64px;\\n  font-size: 16px;\\n  cursor: pointer;\\n}\\n.van-calendar__day--end,\\n.van-calendar__day--start,\\n.van-calendar__day--start-end,\\n.van-calendar__day--multiple-middle,\\n.van-calendar__day--multiple-selected {\\n  color: #fff;\\n  background-color: #ee0a24;\\n}\\n.van-calendar__day--start {\\n  border-radius: 4px 0 0 4px;\\n}\\n.van-calendar__day--end {\\n  border-radius: 0 4px 4px 0;\\n}\\n.van-calendar__day--start-end,\\n.van-calendar__day--multiple-selected {\\n  border-radius: 4px;\\n}\\n.van-calendar__day--middle {\\n  color: #ee0a24;\\n}\\n.van-calendar__day--middle::after {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  background-color: currentColor;\\n  opacity: 0.1;\\n  content: '';\\n}\\n.van-calendar__day--disabled {\\n  color: #c8c9cc;\\n  cursor: default;\\n}\\n.van-calendar__top-info,\\n.van-calendar__bottom-info {\\n  position: absolute;\\n  right: 0;\\n  left: 0;\\n  font-size: 10px;\\n  line-height: 14px;\\n}\\n@media (max-width: 350px) {\\n  .van-calendar__top-info,\\n  .van-calendar__bottom-info {\\n    font-size: 9px;\\n  }\\n}\\n.van-calendar__top-info {\\n  top: 6px;\\n}\\n.van-calendar__bottom-info {\\n  bottom: 6px;\\n}\\n.van-calendar__selected-day {\\n  width: 54px;\\n  height: 54px;\\n  color: #fff;\\n  background-color: #ee0a24;\\n  border-radius: 4px;\\n}\\n.van-calendar__footer {\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  padding: 0 16px;\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n}\\n.van-calendar__footer--unfit {\\n  padding-bottom: 0;\\n}\\n.van-calendar__confirm {\\n  height: 36px;\\n  margin: 7px 0;\\n}\\n.van-picker {\\n  position: relative;\\n  background-color: #fff;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-picker__toolbar {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: justify;\\n  -webkit-justify-content: space-between;\\n          justify-content: space-between;\\n  height: 44px;\\n}\\n.van-picker__cancel,\\n.van-picker__confirm {\\n  height: 100%;\\n  padding: 0 16px;\\n  font-size: 14px;\\n  background-color: transparent;\\n  border: none;\\n  cursor: pointer;\\n}\\n.van-picker__cancel:active,\\n.van-picker__confirm:active {\\n  opacity: 0.7;\\n}\\n.van-picker__confirm {\\n  color: #576b95;\\n}\\n.van-picker__cancel {\\n  color: #969799;\\n}\\n.van-picker__title {\\n  max-width: 50%;\\n  font-weight: 500;\\n  font-size: 16px;\\n  line-height: 20px;\\n  text-align: center;\\n}\\n.van-picker__columns {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  cursor: grab;\\n}\\n.van-picker__loading {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 3;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  color: #1989fa;\\n  background-color: rgba(255, 255, 255, 0.9);\\n}\\n.van-picker__frame {\\n  position: absolute;\\n  top: 50%;\\n  right: 16px;\\n  left: 16px;\\n  z-index: 2;\\n  -webkit-transform: translateY(-50%);\\n          transform: translateY(-50%);\\n  pointer-events: none;\\n}\\n.van-picker__mask {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  z-index: 1;\\n  width: 100%;\\n  height: 100%;\\n  background-image: -webkit-linear-gradient(top, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4)), -webkit-linear-gradient(bottom, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4));\\n  background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4)), linear-gradient(0deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4));\\n  background-repeat: no-repeat;\\n  background-position: top, bottom;\\n  -webkit-transform: translateZ(0);\\n          transform: translateZ(0);\\n  pointer-events: none;\\n}\\n.van-picker-column {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  overflow: hidden;\\n  font-size: 16px;\\n}\\n.van-picker-column__wrapper {\\n  -webkit-transition-timing-function: cubic-bezier(0.23, 1, 0.68, 1);\\n          transition-timing-function: cubic-bezier(0.23, 1, 0.68, 1);\\n}\\n.van-picker-column__item {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  padding: 0 4px;\\n  color: #000;\\n}\\n.van-picker-column__item--disabled {\\n  cursor: not-allowed;\\n  opacity: 0.3;\\n}\\n.van-action-sheet {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  max-height: 80%;\\n  overflow: hidden;\\n  color: #323233;\\n}\\n.van-action-sheet__content {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1 auto;\\n          flex: 1 auto;\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-action-sheet__item,\\n.van-action-sheet__cancel {\\n  display: block;\\n  width: 100%;\\n  padding: 14px 16px;\\n  font-size: 16px;\\n  background-color: #fff;\\n  border: none;\\n  cursor: pointer;\\n}\\n.van-action-sheet__item:active,\\n.van-action-sheet__cancel:active {\\n  background-color: #f2f3f5;\\n}\\n.van-action-sheet__item {\\n  line-height: 22px;\\n}\\n.van-action-sheet__item--loading,\\n.van-action-sheet__item--disabled {\\n  color: #c8c9cc;\\n}\\n.van-action-sheet__item--loading:active,\\n.van-action-sheet__item--disabled:active {\\n  background-color: #fff;\\n}\\n.van-action-sheet__item--disabled {\\n  cursor: not-allowed;\\n}\\n.van-action-sheet__item--loading {\\n  cursor: default;\\n}\\n.van-action-sheet__cancel {\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  box-sizing: border-box;\\n  color: #646566;\\n}\\n.van-action-sheet__subname {\\n  margin-top: 8px;\\n  color: #969799;\\n  font-size: 12px;\\n  line-height: 18px;\\n}\\n.van-action-sheet__gap {\\n  display: block;\\n  height: 8px;\\n  background-color: #f7f8fa;\\n}\\n.van-action-sheet__header {\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  font-weight: 500;\\n  font-size: 16px;\\n  line-height: 48px;\\n  text-align: center;\\n}\\n.van-action-sheet__description {\\n  position: relative;\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  padding: 20px 16px;\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 20px;\\n  text-align: center;\\n}\\n.van-action-sheet__description::after {\\n  position: absolute;\\n  box-sizing: border-box;\\n  content: ' ';\\n  pointer-events: none;\\n  right: 16px;\\n  bottom: 0;\\n  left: 16px;\\n  border-bottom: 1px solid #ebedf0;\\n  -webkit-transform: scaleY(0.5);\\n          transform: scaleY(0.5);\\n}\\n.van-action-sheet__loading-icon .van-loading__spinner {\\n  width: 22px;\\n  height: 22px;\\n}\\n.van-action-sheet__close {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  z-index: 1;\\n  padding: 0 16px;\\n  color: #c8c9cc;\\n  font-size: 22px;\\n  line-height: inherit;\\n}\\n.van-action-sheet__close:active {\\n  color: #969799;\\n}\\n.van-goods-action {\\n  position: fixed;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  box-sizing: content-box;\\n  height: 50px;\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n  background-color: #fff;\\n}\\n.van-goods-action--unfit {\\n  padding-bottom: 0;\\n}\\n.van-dialog {\\n  position: fixed;\\n  top: 45%;\\n  left: 50%;\\n  width: 320px;\\n  overflow: hidden;\\n  font-size: 16px;\\n  background-color: #fff;\\n  border-radius: 16px;\\n  -webkit-transform: translate3d(-50%, -50%, 0);\\n          transform: translate3d(-50%, -50%, 0);\\n  -webkit-backface-visibility: hidden;\\n          backface-visibility: hidden;\\n  -webkit-transition: 0.3s;\\n  transition: 0.3s;\\n  -webkit-transition-property: opacity, -webkit-transform;\\n  transition-property: opacity, -webkit-transform;\\n  transition-property: transform, opacity;\\n  transition-property: transform, opacity, -webkit-transform;\\n}\\n@media (max-width: 321px) {\\n  .van-dialog {\\n    width: 90%;\\n  }\\n}\\n.van-dialog__header {\\n  padding-top: 26px;\\n  font-weight: 500;\\n  line-height: 24px;\\n  text-align: center;\\n}\\n.van-dialog__header--isolated {\\n  padding: 24px 0;\\n}\\n.van-dialog__content--isolated {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  min-height: 104px;\\n}\\n.van-dialog__message {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  max-height: 60vh;\\n  padding: 26px 24px;\\n  overflow-y: auto;\\n  font-size: 14px;\\n  line-height: 20px;\\n  white-space: pre-wrap;\\n  text-align: center;\\n  word-wrap: break-word;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-dialog__message--has-title {\\n  padding-top: 8px;\\n  color: #646566;\\n}\\n.van-dialog__message--left {\\n  text-align: left;\\n}\\n.van-dialog__message--right {\\n  text-align: right;\\n}\\n.van-dialog__footer {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  overflow: hidden;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-dialog__confirm,\\n.van-dialog__cancel {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  height: 48px;\\n  margin: 0;\\n  border: 0;\\n}\\n.van-dialog__confirm,\\n.van-dialog__confirm:active {\\n  color: #ee0a24;\\n}\\n.van-dialog--round-button .van-dialog__footer {\\n  position: relative;\\n  height: auto;\\n  padding: 8px 24px 16px;\\n}\\n.van-dialog--round-button .van-dialog__message {\\n  padding-bottom: 16px;\\n  color: #323233;\\n}\\n.van-dialog--round-button .van-dialog__confirm,\\n.van-dialog--round-button .van-dialog__cancel {\\n  height: 36px;\\n}\\n.van-dialog--round-button .van-dialog__confirm {\\n  color: #fff;\\n}\\n.van-dialog-bounce-enter {\\n  -webkit-transform: translate3d(-50%, -50%, 0) scale(0.7);\\n          transform: translate3d(-50%, -50%, 0) scale(0.7);\\n  opacity: 0;\\n}\\n.van-dialog-bounce-leave-active {\\n  -webkit-transform: translate3d(-50%, -50%, 0) scale(0.9);\\n          transform: translate3d(-50%, -50%, 0) scale(0.9);\\n  opacity: 0;\\n}\\n.van-contact-edit {\\n  padding: 16px;\\n}\\n.van-contact-edit__fields {\\n  overflow: hidden;\\n  border-radius: 4px;\\n}\\n.van-contact-edit__fields .van-field__label {\\n  width: 4.1em;\\n}\\n.van-contact-edit__switch-cell {\\n  margin-top: 10px;\\n  padding-top: 9px;\\n  padding-bottom: 9px;\\n  border-radius: 4px;\\n}\\n.van-contact-edit__buttons {\\n  padding: 32px 0;\\n}\\n.van-contact-edit .van-button {\\n  margin-bottom: 12px;\\n  font-size: 16px;\\n}\\n.van-address-edit {\\n  padding: 12px;\\n}\\n.van-address-edit__fields {\\n  overflow: hidden;\\n  border-radius: 8px;\\n}\\n.van-address-edit__fields .van-field__label {\\n  width: 4.1em;\\n}\\n.van-address-edit__default {\\n  margin-top: 12px;\\n  overflow: hidden;\\n  border-radius: 8px;\\n}\\n.van-address-edit__buttons {\\n  padding: 32px 4px;\\n}\\n.van-address-edit__buttons .van-button {\\n  margin-bottom: 12px;\\n}\\n.van-address-edit-detail {\\n  padding: 0;\\n}\\n.van-address-edit-detail__search-item {\\n  background-color: #f2f3f5;\\n}\\n.van-address-edit-detail__keyword {\\n  color: #ee0a24;\\n}\\n.van-address-edit-detail__finish {\\n  color: #1989fa;\\n  font-size: 12px;\\n}\\n.van-radio-group--horizontal {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-flex-wrap: wrap;\\n          flex-wrap: wrap;\\n}\\n.van-contact-list {\\n  box-sizing: border-box;\\n  height: 100%;\\n  padding-bottom: 80px;\\n}\\n.van-contact-list__item {\\n  padding: 16px;\\n}\\n.van-contact-list__item-value {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  padding-right: 32px;\\n  padding-left: 8px;\\n}\\n.van-contact-list__item-tag {\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  margin-left: 8px;\\n  padding-top: 0;\\n  padding-bottom: 0;\\n  line-height: 1.4em;\\n}\\n.van-contact-list__group {\\n  box-sizing: border-box;\\n  height: 100%;\\n  overflow-y: scroll;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-contact-list__edit {\\n  font-size: 16px;\\n}\\n.van-contact-list__bottom {\\n  position: fixed;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 999;\\n  padding: 0 16px;\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n  background-color: #fff;\\n}\\n.van-contact-list__add {\\n  height: 40px;\\n  margin: 5px 0;\\n}\\n.van-address-list {\\n  box-sizing: border-box;\\n  height: 100%;\\n  padding: 12px 12px 80px;\\n}\\n.van-address-list__bottom {\\n  position: fixed;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 999;\\n  box-sizing: border-box;\\n  width: 100%;\\n  padding: 0 16px;\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n  background-color: #fff;\\n}\\n.van-address-list__add {\\n  height: 40px;\\n  margin: 5px 0;\\n}\\n.van-address-list__disabled-text {\\n  padding: 20px 0 16px;\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 20px;\\n}\\n.van-address-item {\\n  padding: 12px;\\n  background-color: #fff;\\n  border-radius: 8px;\\n}\\n.van-address-item:not(:last-child) {\\n  margin-bottom: 12px;\\n}\\n.van-address-item__value {\\n  padding-right: 44px;\\n}\\n.van-address-item__name {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  margin-bottom: 8px;\\n  font-size: 16px;\\n  line-height: 22px;\\n}\\n.van-address-item__tag {\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  margin-left: 8px;\\n  padding-top: 0;\\n  padding-bottom: 0;\\n  line-height: 1.4em;\\n}\\n.van-address-item__address {\\n  color: #323233;\\n  font-size: 13px;\\n  line-height: 18px;\\n}\\n.van-address-item--disabled .van-address-item__name,\\n.van-address-item--disabled .van-address-item__address {\\n  color: #c8c9cc;\\n}\\n.van-address-item__edit {\\n  position: absolute;\\n  top: 50%;\\n  right: 16px;\\n  color: #969799;\\n  font-size: 20px;\\n  -webkit-transform: translate(0, -50%);\\n          transform: translate(0, -50%);\\n}\\n.van-address-item .van-cell {\\n  padding: 0;\\n}\\n.van-address-item .van-radio__label {\\n  margin-left: 12px;\\n}\\n.van-address-item .van-radio__icon--checked .van-icon {\\n  background-color: #ee0a24;\\n  border-color: #ee0a24;\\n}\\n.van-badge {\\n  display: inline-block;\\n  box-sizing: border-box;\\n  min-width: 16px;\\n  padding: 0 3px;\\n  color: #fff;\\n  font-weight: 500;\\n  font-size: 12px;\\n  font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;\\n  line-height: 1.2;\\n  text-align: center;\\n  background-color: #ee0a24;\\n  border: 1px solid #fff;\\n  border-radius: 999px;\\n}\\n.van-badge--fixed {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  -webkit-transform: translate(50%, -50%);\\n          transform: translate(50%, -50%);\\n  -webkit-transform-origin: 100%;\\n          transform-origin: 100%;\\n}\\n.van-badge--dot {\\n  width: 8px;\\n  min-width: 0;\\n  height: 8px;\\n  background-color: #ee0a24;\\n  border-radius: 100%;\\n}\\n.van-badge__wrapper {\\n  position: relative;\\n  display: inline-block;\\n}\\n.van-tab__pane,\\n.van-tab__pane-wrapper {\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  box-sizing: border-box;\\n  width: 100%;\\n}\\n.van-tab__pane-wrapper--inactive {\\n  height: 0;\\n  overflow: visible;\\n}\\n.van-sticky--fixed {\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  z-index: 99;\\n}\\n.van-tab {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  box-sizing: border-box;\\n  padding: 0 4px;\\n  color: #646566;\\n  font-size: 14px;\\n  line-height: 20px;\\n  cursor: pointer;\\n}\\n.van-tab--active {\\n  color: #323233;\\n  font-weight: 500;\\n}\\n.van-tab--disabled {\\n  color: #c8c9cc;\\n  cursor: not-allowed;\\n}\\n.van-tab__text--ellipsis {\\n  display: -webkit-box;\\n  overflow: hidden;\\n  -webkit-line-clamp: 1;\\n  -webkit-box-orient: vertical;\\n}\\n.van-tab__text-wrapper {\\n  position: relative;\\n}\\n.van-tabs {\\n  position: relative;\\n}\\n.van-tabs__wrap {\\n  overflow: hidden;\\n}\\n.van-tabs__wrap--page-top {\\n  position: fixed;\\n}\\n.van-tabs__wrap--content-bottom {\\n  top: auto;\\n  bottom: 0;\\n}\\n.van-tabs__wrap--scrollable .van-tab {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1 0 auto;\\n          flex: 1 0 auto;\\n  padding: 0 12px;\\n}\\n.van-tabs__wrap--scrollable .van-tabs__nav {\\n  overflow-x: auto;\\n  overflow-y: hidden;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-tabs__wrap--scrollable .van-tabs__nav::-webkit-scrollbar {\\n  display: none;\\n}\\n.van-tabs__nav {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  background-color: #fff;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-tabs__nav--line {\\n  box-sizing: content-box;\\n  height: 100%;\\n  padding-bottom: 15px;\\n  /* 15px padding to hide scrollbar in mobile safari */\\n}\\n.van-tabs__nav--line.van-tabs__nav--complete {\\n  padding-right: 8px;\\n  padding-left: 8px;\\n}\\n.van-tabs__nav--card {\\n  box-sizing: border-box;\\n  height: 30px;\\n  margin: 0 16px;\\n  border: 1px solid #ee0a24;\\n  border-radius: 2px;\\n}\\n.van-tabs__nav--card .van-tab {\\n  color: #ee0a24;\\n  border-right: 1px solid #ee0a24;\\n}\\n.van-tabs__nav--card .van-tab:last-child {\\n  border-right: none;\\n}\\n.van-tabs__nav--card .van-tab.van-tab--active {\\n  color: #fff;\\n  background-color: #ee0a24;\\n}\\n.van-tabs__nav--card .van-tab--disabled {\\n  color: #c8c9cc;\\n}\\n.van-tabs__line {\\n  position: absolute;\\n  bottom: 15px;\\n  left: 0;\\n  z-index: 1;\\n  width: 40px;\\n  height: 3px;\\n  background-color: #1677FF;\\n  border-radius: 3px;\\n}\\n.van-tabs__track {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  width: 100%;\\n  height: 100%;\\n  will-change: left;\\n}\\n.van-tabs__content--animated {\\n  overflow: hidden;\\n}\\n.van-tabs--line .van-tabs__wrap {\\n  height: 44px;\\n}\\n.van-tabs--card > .van-tabs__wrap {\\n  height: 30px;\\n}\\n.van-coupon-list {\\n  position: relative;\\n  height: 100%;\\n  background-color: #f7f8fa;\\n}\\n.van-coupon-list__field {\\n  padding: 5px 0 5px 16px;\\n}\\n.van-coupon-list__field .van-field__body {\\n  height: 34px;\\n  padding-left: 12px;\\n  line-height: 34px;\\n  background: #f7f8fa;\\n  border-radius: 17px;\\n}\\n.van-coupon-list__field .van-field__body::-webkit-input-placeholder {\\n  color: #c8c9cc;\\n}\\n.van-coupon-list__field .van-field__body::placeholder {\\n  color: #c8c9cc;\\n}\\n.van-coupon-list__field .van-field__clear {\\n  margin-right: 0;\\n}\\n.van-coupon-list__exchange-bar {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  background-color: #fff;\\n}\\n.van-coupon-list__exchange {\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  height: 32px;\\n  font-size: 16px;\\n  line-height: 30px;\\n  border: 0;\\n}\\n.van-coupon-list .van-tabs__wrap {\\n  box-shadow: 0 6px 12px -12px #969799;\\n}\\n.van-coupon-list__list {\\n  box-sizing: border-box;\\n  padding: 16px 0 24px;\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-coupon-list__list--with-bottom {\\n  padding-bottom: 66px;\\n}\\n.van-coupon-list__bottom {\\n  position: absolute;\\n  bottom: 0;\\n  left: 0;\\n  z-index: 999;\\n  box-sizing: border-box;\\n  width: 100%;\\n  padding: 5px 16px;\\n  font-weight: 500;\\n  background-color: #fff;\\n}\\n.van-coupon-list__close {\\n  height: 40px;\\n}\\n.van-coupon-list__empty {\\n  padding-top: 60px;\\n  text-align: center;\\n}\\n.van-coupon-list__empty p {\\n  margin: 16px 0;\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 20px;\\n}\\n.van-coupon-list__empty img {\\n  width: 200px;\\n  height: 200px;\\n}\\n.van-cascader__header {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: justify;\\n  -webkit-justify-content: space-between;\\n          justify-content: space-between;\\n  height: 48px;\\n  padding: 0 16px;\\n}\\n.van-cascader__title {\\n  font-weight: 500;\\n  font-size: 16px;\\n  line-height: 20px;\\n}\\n.van-cascader__close-icon {\\n  color: #c8c9cc;\\n  font-size: 22px;\\n}\\n.van-cascader__close-icon:active {\\n  color: #969799;\\n}\\n.van-cascader__tabs .van-tab {\\n  -webkit-box-flex: 0;\\n  -webkit-flex: none;\\n          flex: none;\\n  padding: 0 10px;\\n}\\n.van-cascader__tabs.van-tabs--line .van-tabs__wrap {\\n  height: 48px;\\n}\\n.van-cascader__tabs .van-tabs__nav--complete {\\n  padding-right: 6px;\\n  padding-left: 6px;\\n}\\n.van-cascader__tab {\\n  color: #323233;\\n  font-weight: 500;\\n}\\n.van-cascader__tab--unselected {\\n  color: #969799;\\n  font-weight: normal;\\n}\\n.van-cascader__option {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: justify;\\n  -webkit-justify-content: space-between;\\n          justify-content: space-between;\\n  padding: 10px 16px;\\n  font-size: 14px;\\n  line-height: 20px;\\n}\\n.van-cascader__option:active {\\n  background-color: #f2f3f5;\\n}\\n.van-cascader__option--selected {\\n  color: #ee0a24;\\n  font-weight: 500;\\n}\\n.van-cascader__selected-icon {\\n  font-size: 18px;\\n}\\n.van-cascader__options {\\n  box-sizing: border-box;\\n  height: 384px;\\n  padding-top: 6px;\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-cell-group {\\n  background-color: #fff;\\n}\\n.van-cell-group--inset {\\n  margin: 0 16px;\\n  overflow: hidden;\\n  border-radius: 8px;\\n}\\n.van-cell-group__title {\\n  padding: 16px 16px 8px;\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 16px;\\n}\\n.van-cell-group__title--inset {\\n  padding: 16px 16px 8px 32px;\\n}\\n.van-panel {\\n  background: #fff;\\n}\\n.van-panel__header-value {\\n  color: #ee0a24;\\n}\\n.van-panel__footer {\\n  padding: 8px 16px;\\n}\\n.van-checkbox-group--horizontal {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-flex-wrap: wrap;\\n          flex-wrap: wrap;\\n}\\n.van-circle {\\n  position: relative;\\n  display: inline-block;\\n  width: 100px;\\n  height: 100px;\\n  text-align: center;\\n}\\n.van-circle svg {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-circle__layer {\\n  stroke: #fff;\\n}\\n.van-circle__hover {\\n  fill: none;\\n  stroke: #1989fa;\\n  stroke-linecap: round;\\n}\\n.van-circle__text {\\n  position: absolute;\\n  top: 50%;\\n  left: 0;\\n  box-sizing: border-box;\\n  width: 100%;\\n  padding: 0 4px;\\n  color: #323233;\\n  font-weight: 500;\\n  font-size: 14px;\\n  line-height: 20px;\\n  -webkit-transform: translateY(-50%);\\n          transform: translateY(-50%);\\n}\\n.van-col {\\n  float: left;\\n  box-sizing: border-box;\\n  min-height: 1px;\\n}\\n.van-col--1 {\\n  width: 4.16666667%;\\n}\\n.van-col--offset-1 {\\n  margin-left: 4.16666667%;\\n}\\n.van-col--2 {\\n  width: 8.33333333%;\\n}\\n.van-col--offset-2 {\\n  margin-left: 8.33333333%;\\n}\\n.van-col--3 {\\n  width: 12.5%;\\n}\\n.van-col--offset-3 {\\n  margin-left: 12.5%;\\n}\\n.van-col--4 {\\n  width: 16.66666667%;\\n}\\n.van-col--offset-4 {\\n  margin-left: 16.66666667%;\\n}\\n.van-col--5 {\\n  width: 20.83333333%;\\n}\\n.van-col--offset-5 {\\n  margin-left: 20.83333333%;\\n}\\n.van-col--6 {\\n  width: 25%;\\n}\\n.van-col--offset-6 {\\n  margin-left: 25%;\\n}\\n.van-col--7 {\\n  width: 29.16666667%;\\n}\\n.van-col--offset-7 {\\n  margin-left: 29.16666667%;\\n}\\n.van-col--8 {\\n  width: 33.33333333%;\\n}\\n.van-col--offset-8 {\\n  margin-left: 33.33333333%;\\n}\\n.van-col--9 {\\n  width: 37.5%;\\n}\\n.van-col--offset-9 {\\n  margin-left: 37.5%;\\n}\\n.van-col--10 {\\n  width: 41.66666667%;\\n}\\n.van-col--offset-10 {\\n  margin-left: 41.66666667%;\\n}\\n.van-col--11 {\\n  width: 45.83333333%;\\n}\\n.van-col--offset-11 {\\n  margin-left: 45.83333333%;\\n}\\n.van-col--12 {\\n  width: 50%;\\n}\\n.van-col--offset-12 {\\n  margin-left: 50%;\\n}\\n.van-col--13 {\\n  width: 54.16666667%;\\n}\\n.van-col--offset-13 {\\n  margin-left: 54.16666667%;\\n}\\n.van-col--14 {\\n  width: 58.33333333%;\\n}\\n.van-col--offset-14 {\\n  margin-left: 58.33333333%;\\n}\\n.van-col--15 {\\n  width: 62.5%;\\n}\\n.van-col--offset-15 {\\n  margin-left: 62.5%;\\n}\\n.van-col--16 {\\n  width: 66.66666667%;\\n}\\n.van-col--offset-16 {\\n  margin-left: 66.66666667%;\\n}\\n.van-col--17 {\\n  width: 70.83333333%;\\n}\\n.van-col--offset-17 {\\n  margin-left: 70.83333333%;\\n}\\n.van-col--18 {\\n  width: 75%;\\n}\\n.van-col--offset-18 {\\n  margin-left: 75%;\\n}\\n.van-col--19 {\\n  width: 79.16666667%;\\n}\\n.van-col--offset-19 {\\n  margin-left: 79.16666667%;\\n}\\n.van-col--20 {\\n  width: 83.33333333%;\\n}\\n.van-col--offset-20 {\\n  margin-left: 83.33333333%;\\n}\\n.van-col--21 {\\n  width: 87.5%;\\n}\\n.van-col--offset-21 {\\n  margin-left: 87.5%;\\n}\\n.van-col--22 {\\n  width: 91.66666667%;\\n}\\n.van-col--offset-22 {\\n  margin-left: 91.66666667%;\\n}\\n.van-col--23 {\\n  width: 95.83333333%;\\n}\\n.van-col--offset-23 {\\n  margin-left: 95.83333333%;\\n}\\n.van-col--24 {\\n  width: 100%;\\n}\\n.van-col--offset-24 {\\n  margin-left: 100%;\\n}\\n.van-count-down {\\n  color: #323233;\\n  font-size: 14px;\\n  line-height: 20px;\\n}\\n.van-divider {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  margin: 16px 0;\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 24px;\\n  border-color: #ebedf0;\\n  border-style: solid;\\n  border-width: 0;\\n}\\n.van-divider::before,\\n.van-divider::after {\\n  display: block;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  box-sizing: border-box;\\n  height: 1px;\\n  border-color: inherit;\\n  border-style: inherit;\\n  border-width: 1px 0 0;\\n}\\n.van-divider::before {\\n  content: '';\\n}\\n.van-divider--hairline::before,\\n.van-divider--hairline::after {\\n  -webkit-transform: scaleY(0.5);\\n          transform: scaleY(0.5);\\n}\\n.van-divider--dashed {\\n  border-style: dashed;\\n}\\n.van-divider--content-center::before,\\n.van-divider--content-left::before,\\n.van-divider--content-right::before {\\n  margin-right: 16px;\\n}\\n.van-divider--content-center::after,\\n.van-divider--content-left::after,\\n.van-divider--content-right::after {\\n  margin-left: 16px;\\n  content: '';\\n}\\n.van-divider--content-left::before {\\n  max-width: 10%;\\n}\\n.van-divider--content-right::after {\\n  max-width: 10%;\\n}\\n.van-dropdown-menu {\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-dropdown-menu__bar {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  height: 48px;\\n  background-color: #fff;\\n  box-shadow: 0 2px 12px rgba(100, 101, 102, 0.12);\\n}\\n.van-dropdown-menu__bar--opened {\\n  z-index: 11;\\n}\\n.van-dropdown-menu__item {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  min-width: 0;\\n  cursor: pointer;\\n}\\n.van-dropdown-menu__item:active {\\n  opacity: 0.7;\\n}\\n.van-dropdown-menu__item--disabled:active {\\n  opacity: 1;\\n}\\n.van-dropdown-menu__item--disabled .van-dropdown-menu__title {\\n  color: #969799;\\n}\\n.van-dropdown-menu__title {\\n  position: relative;\\n  box-sizing: border-box;\\n  max-width: 100%;\\n  padding: 0 8px;\\n  color: #323233;\\n  font-size: 15px;\\n  line-height: 22px;\\n}\\n.van-dropdown-menu__title::after {\\n  position: absolute;\\n  top: 50%;\\n  right: -4px;\\n  margin-top: -5px;\\n  border: 3px solid;\\n  border-color: transparent transparent #dcdee0 #dcdee0;\\n  -webkit-transform: rotate(-45deg);\\n          transform: rotate(-45deg);\\n  opacity: 0.8;\\n  content: '';\\n}\\n.van-dropdown-menu__title--active {\\n  color: #ee0a24;\\n}\\n.van-dropdown-menu__title--active::after {\\n  border-color: transparent transparent currentColor currentColor;\\n}\\n.van-dropdown-menu__title--down::after {\\n  margin-top: -1px;\\n  -webkit-transform: rotate(135deg);\\n          transform: rotate(135deg);\\n}\\n.van-empty {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  box-sizing: border-box;\\n  padding: 32px 0;\\n}\\n.van-empty__image {\\n  width: 160px;\\n  height: 160px;\\n}\\n.van-empty__image img {\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-empty__description {\\n  margin-top: 16px;\\n  padding: 0 60px;\\n  color: #969799;\\n  font-size: 14px;\\n  line-height: 20px;\\n}\\n.van-empty__bottom {\\n  margin-top: 24px;\\n}\\n.van-grid {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-flex-wrap: wrap;\\n          flex-wrap: wrap;\\n}\\n.van-swipe {\\n  position: relative;\\n  overflow: hidden;\\n  -webkit-transform: translateZ(0);\\n          transform: translateZ(0);\\n  cursor: grab;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-swipe__track {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  height: 100%;\\n}\\n.van-swipe__track--vertical {\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n}\\n.van-swipe__indicators {\\n  position: absolute;\\n  bottom: 12px;\\n  left: 50%;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-transform: translateX(-50%);\\n          transform: translateX(-50%);\\n}\\n.van-swipe__indicators--vertical {\\n  top: 50%;\\n  bottom: auto;\\n  left: 12px;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-transform: translateY(-50%);\\n          transform: translateY(-50%);\\n}\\n.van-swipe__indicators--vertical .van-swipe__indicator:not(:last-child) {\\n  margin-bottom: 6px;\\n}\\n.van-swipe__indicator {\\n  width: 6px;\\n  height: 6px;\\n  background-color: #ebedf0;\\n  border-radius: 100%;\\n  opacity: 0.3;\\n  -webkit-transition: opacity 0.2s, background-color 0.2s;\\n  transition: opacity 0.2s, background-color 0.2s;\\n}\\n.van-swipe__indicator:not(:last-child) {\\n  margin-right: 6px;\\n}\\n.van-swipe__indicator--active {\\n  background-color: #1989fa;\\n  opacity: 1;\\n}\\n.van-swipe-item {\\n  position: relative;\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-image-preview {\\n  position: fixed;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n}\\n.van-image-preview__swipe {\\n  height: 100%;\\n}\\n.van-image-preview__swipe-item {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  overflow: hidden;\\n}\\n.van-image-preview__cover {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n}\\n.van-image-preview__image {\\n  width: 100%;\\n  -webkit-transition-property: -webkit-transform;\\n  transition-property: -webkit-transform;\\n  transition-property: transform;\\n  transition-property: transform, -webkit-transform;\\n}\\n.van-image-preview__image--vertical {\\n  width: auto;\\n  height: 100%;\\n}\\n.van-image-preview__image img {\\n  -webkit-user-drag: none;\\n}\\n.van-image-preview__image .van-image__error {\\n  top: 30%;\\n  height: 40%;\\n}\\n.van-image-preview__image .van-image__error-icon {\\n  font-size: 36px;\\n}\\n.van-image-preview__image .van-image__loading {\\n  background-color: transparent;\\n}\\n.van-image-preview__index {\\n  position: absolute;\\n  top: 16px;\\n  left: 50%;\\n  color: #fff;\\n  font-size: 14px;\\n  line-height: 20px;\\n  text-shadow: 0 1px 1px #323233;\\n  -webkit-transform: translate(-50%, 0);\\n          transform: translate(-50%, 0);\\n}\\n.van-image-preview__overlay {\\n  background-color: rgba(0, 0, 0, 0.9);\\n}\\n.van-image-preview__close-icon {\\n  position: absolute;\\n  z-index: 1;\\n  color: #c8c9cc;\\n  font-size: 22px;\\n  cursor: pointer;\\n}\\n.van-image-preview__close-icon:active {\\n  color: #969799;\\n}\\n.van-image-preview__close-icon--top-left {\\n  top: 16px;\\n  left: 16px;\\n}\\n.van-image-preview__close-icon--top-right {\\n  top: 16px;\\n  right: 16px;\\n}\\n.van-image-preview__close-icon--bottom-left {\\n  bottom: 16px;\\n  left: 16px;\\n}\\n.van-image-preview__close-icon--bottom-right {\\n  right: 16px;\\n  bottom: 16px;\\n}\\n.van-uploader {\\n  position: relative;\\n  display: inline-block;\\n}\\n.van-uploader__wrapper {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-flex-wrap: wrap;\\n          flex-wrap: wrap;\\n}\\n.van-uploader__wrapper--disabled {\\n  opacity: 0.5;\\n}\\n.van-uploader__input {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  overflow: hidden;\\n  cursor: pointer;\\n  opacity: 0;\\n}\\n.van-uploader__input-wrapper {\\n  position: relative;\\n}\\n.van-uploader__input:disabled {\\n  cursor: not-allowed;\\n}\\n.van-uploader__upload {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  box-sizing: border-box;\\n  width: 80px;\\n  height: 80px;\\n  margin: 0 8px 8px 0;\\n  background-color: #f7f8fa;\\n}\\n.van-uploader__upload:active {\\n  background-color: #f2f3f5;\\n}\\n.van-uploader__upload--readonly:active {\\n  background-color: #f7f8fa;\\n}\\n.van-uploader__upload-icon {\\n  color: #dcdee0;\\n  font-size: 24px;\\n}\\n.van-uploader__upload-text {\\n  margin-top: 8px;\\n  color: #969799;\\n  font-size: 12px;\\n}\\n.van-uploader__preview {\\n  position: relative;\\n  margin: 0 8px 8px 0;\\n  cursor: pointer;\\n}\\n.van-uploader__preview-image {\\n  display: block;\\n  width: 80px;\\n  height: 80px;\\n  overflow: hidden;\\n}\\n.van-uploader__preview-delete {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  width: 14px;\\n  height: 14px;\\n  background-color: rgba(0, 0, 0, 0.7);\\n  border-radius: 0 0 0 12px;\\n}\\n.van-uploader__preview-delete-icon {\\n  position: absolute;\\n  top: -2px;\\n  right: -2px;\\n  color: #fff;\\n  font-size: 16px;\\n  -webkit-transform: scale(0.5);\\n          transform: scale(0.5);\\n}\\n.van-uploader__preview-cover {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n}\\n.van-uploader__mask {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  bottom: 0;\\n  left: 0;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  color: #fff;\\n  background-color: rgba(50, 50, 51, 0.88);\\n}\\n.van-uploader__mask-icon {\\n  font-size: 22px;\\n}\\n.van-uploader__mask-message {\\n  margin-top: 6px;\\n  padding: 0 4px;\\n  font-size: 12px;\\n  line-height: 14px;\\n}\\n.van-uploader__loading {\\n  width: 22px;\\n  height: 22px;\\n  color: #fff;\\n}\\n.van-uploader__file {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  width: 80px;\\n  height: 80px;\\n  background-color: #f7f8fa;\\n}\\n.van-uploader__file-icon {\\n  color: #646566;\\n  font-size: 20px;\\n}\\n.van-uploader__file-name {\\n  box-sizing: border-box;\\n  width: 100%;\\n  margin-top: 8px;\\n  padding: 0 4px;\\n  color: #646566;\\n  font-size: 12px;\\n  text-align: center;\\n}\\n.van-index-anchor {\\n  z-index: 1;\\n  box-sizing: border-box;\\n  padding: 0 16px;\\n  color: #323233;\\n  font-weight: 500;\\n  font-size: 14px;\\n  line-height: 32px;\\n  background-color: transparent;\\n}\\n.van-index-anchor--sticky {\\n  position: fixed;\\n  top: 0;\\n  right: 0;\\n  left: 0;\\n  color: #ee0a24;\\n  background-color: #fff;\\n}\\n.van-index-bar__sidebar {\\n  position: fixed;\\n  top: 50%;\\n  right: 0;\\n  z-index: 2;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  text-align: center;\\n  -webkit-transform: translateY(-50%);\\n          transform: translateY(-50%);\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-index-bar__index {\\n  padding: 0 8px 0 16px;\\n  font-weight: 500;\\n  font-size: 10px;\\n  line-height: 14px;\\n}\\n.van-index-bar__index--active {\\n  color: #ee0a24;\\n}\\n.van-pagination {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  font-size: 14px;\\n}\\n.van-pagination__item,\\n.van-pagination__page-desc {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n}\\n.van-pagination__item {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  box-sizing: border-box;\\n  min-width: 36px;\\n  height: 40px;\\n  color: #1989fa;\\n  background-color: #fff;\\n  cursor: pointer;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-pagination__item:active {\\n  color: #fff;\\n  background-color: #1989fa;\\n}\\n.van-pagination__item::after {\\n  border-width: 1px 0 1px 1px;\\n}\\n.van-pagination__item:last-child::after {\\n  border-right-width: 1px;\\n}\\n.van-pagination__item--active {\\n  color: #fff;\\n  background-color: #1989fa;\\n}\\n.van-pagination__prev,\\n.van-pagination__next {\\n  padding: 0 4px;\\n  cursor: pointer;\\n}\\n.van-pagination__item--disabled,\\n.van-pagination__item--disabled:active {\\n  color: #646566;\\n  background-color: #f7f8fa;\\n  cursor: not-allowed;\\n  opacity: 0.5;\\n}\\n.van-pagination__page {\\n  -webkit-box-flex: 0;\\n  -webkit-flex-grow: 0;\\n          flex-grow: 0;\\n}\\n.van-pagination__page-desc {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  height: 40px;\\n  color: #646566;\\n}\\n.van-pagination--simple .van-pagination__prev::after,\\n.van-pagination--simple .van-pagination__next::after {\\n  border-width: 1px;\\n}\\n.van-password-input {\\n  position: relative;\\n  margin: 0 16px;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-password-input__info,\\n.van-password-input__error-info {\\n  margin-top: 16px;\\n  font-size: 14px;\\n  text-align: center;\\n}\\n.van-password-input__info {\\n  color: #969799;\\n}\\n.van-password-input__error-info {\\n  color: #ee0a24;\\n}\\n.van-password-input__security {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  width: 100%;\\n  height: 50px;\\n  cursor: pointer;\\n}\\n.van-password-input__security::after {\\n  border-radius: 6px;\\n}\\n.van-password-input__security li {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  height: 100%;\\n  font-size: 20px;\\n  line-height: 1.2;\\n  background-color: #fff;\\n}\\n.van-password-input__security i {\\n  position: absolute;\\n  top: 50%;\\n  left: 50%;\\n  width: 10px;\\n  height: 10px;\\n  background-color: #000;\\n  border-radius: 100%;\\n  -webkit-transform: translate(-50%, -50%);\\n          transform: translate(-50%, -50%);\\n  visibility: hidden;\\n}\\n.van-password-input__cursor {\\n  position: absolute;\\n  top: 50%;\\n  left: 50%;\\n  width: 1px;\\n  height: 40%;\\n  background-color: #323233;\\n  -webkit-transform: translate(-50%, -50%);\\n          transform: translate(-50%, -50%);\\n  -webkit-animation: 1s van-cursor-flicker infinite;\\n          animation: 1s van-cursor-flicker infinite;\\n}\\n@-webkit-keyframes van-cursor-flicker {\\n  from {\\n    opacity: 0;\\n  }\\n  50% {\\n    opacity: 1;\\n  }\\n  100% {\\n    opacity: 0;\\n  }\\n}\\n@keyframes van-cursor-flicker {\\n  from {\\n    opacity: 0;\\n  }\\n  50% {\\n    opacity: 1;\\n  }\\n  100% {\\n    opacity: 0;\\n  }\\n}\\n.van-progress {\\n  position: relative;\\n  height: 4px;\\n  background: #ebedf0;\\n  border-radius: 4px;\\n}\\n.van-progress__portion {\\n  position: absolute;\\n  left: 0;\\n  height: 100%;\\n  background: #1989fa;\\n  border-radius: inherit;\\n}\\n.van-progress__pivot {\\n  position: absolute;\\n  top: 50%;\\n  box-sizing: border-box;\\n  min-width: 3.6em;\\n  padding: 0 5px;\\n  color: #fff;\\n  font-size: 10px;\\n  line-height: 1.6;\\n  text-align: center;\\n  word-break: keep-all;\\n  background-color: #1989fa;\\n  border-radius: 1em;\\n  -webkit-transform: translate(0, -50%);\\n          transform: translate(0, -50%);\\n}\\n.van-row::after {\\n  display: table;\\n  clear: both;\\n  content: '';\\n}\\n.van-row--flex {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-flex-wrap: wrap;\\n          flex-wrap: wrap;\\n}\\n.van-row--flex::after {\\n  display: none;\\n}\\n.van-row--justify-center {\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n}\\n.van-row--justify-end {\\n  -webkit-box-pack: end;\\n  -webkit-justify-content: flex-end;\\n          justify-content: flex-end;\\n}\\n.van-row--justify-space-between {\\n  -webkit-box-pack: justify;\\n  -webkit-justify-content: space-between;\\n          justify-content: space-between;\\n}\\n.van-row--justify-space-around {\\n  -webkit-justify-content: space-around;\\n          justify-content: space-around;\\n}\\n.van-row--align-center {\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n}\\n.van-row--align-bottom {\\n  -webkit-box-align: end;\\n  -webkit-align-items: flex-end;\\n          align-items: flex-end;\\n}\\n.van-sidebar {\\n  width: 80px;\\n  overflow-y: auto;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-tree-select {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  font-size: 14px;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-tree-select__nav {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1;\\n          flex: 1;\\n  overflow-y: auto;\\n  background-color: #f7f8fa;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-tree-select__nav-item {\\n  padding: 14px 12px;\\n}\\n.van-tree-select__content {\\n  -webkit-box-flex: 2;\\n  -webkit-flex: 2;\\n          flex: 2;\\n  overflow-y: auto;\\n  background-color: #fff;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-tree-select__item {\\n  position: relative;\\n  padding: 0 32px 0 16px;\\n  font-weight: 500;\\n  line-height: 48px;\\n  cursor: pointer;\\n}\\n.van-tree-select__item--active {\\n  color: #ee0a24;\\n}\\n.van-tree-select__item--disabled {\\n  color: #c8c9cc;\\n  cursor: not-allowed;\\n}\\n.van-tree-select__selected {\\n  position: absolute;\\n  top: 50%;\\n  right: 16px;\\n  margin-top: -8px;\\n  font-size: 16px;\\n}\\n.van-skeleton {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  padding: 0 16px;\\n}\\n.van-skeleton__avatar {\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  width: 32px;\\n  height: 32px;\\n  margin-right: 16px;\\n  background-color: #f2f3f5;\\n}\\n.van-skeleton__avatar--round {\\n  border-radius: 999px;\\n}\\n.van-skeleton__content {\\n  width: 100%;\\n}\\n.van-skeleton__avatar + .van-skeleton__content {\\n  padding-top: 8px;\\n}\\n.van-skeleton__row,\\n.van-skeleton__title {\\n  height: 16px;\\n  background-color: #f2f3f5;\\n}\\n.van-skeleton__title {\\n  width: 40%;\\n  margin: 0;\\n}\\n.van-skeleton__row:not(:first-child) {\\n  margin-top: 12px;\\n}\\n.van-skeleton__title + .van-skeleton__row {\\n  margin-top: 20px;\\n}\\n.van-skeleton--animate {\\n  -webkit-animation: van-skeleton-blink 1.2s ease-in-out infinite;\\n          animation: van-skeleton-blink 1.2s ease-in-out infinite;\\n}\\n.van-skeleton--round .van-skeleton__row,\\n.van-skeleton--round .van-skeleton__title {\\n  border-radius: 999px;\\n}\\n@-webkit-keyframes van-skeleton-blink {\\n  50% {\\n    opacity: 0.6;\\n  }\\n}\\n@keyframes van-skeleton-blink {\\n  50% {\\n    opacity: 0.6;\\n  }\\n}\\n.van-stepper {\\n  font-size: 0;\\n  -webkit-user-select: none;\\n          user-select: none;\\n}\\n.van-stepper__minus,\\n.van-stepper__plus {\\n  position: relative;\\n  box-sizing: border-box;\\n  width: 28px;\\n  height: 28px;\\n  margin: 0;\\n  padding: 0;\\n  color: #323233;\\n  vertical-align: middle;\\n  background-color: #f2f3f5;\\n  border: 0;\\n  cursor: pointer;\\n}\\n.van-stepper__minus::before,\\n.van-stepper__plus::before {\\n  width: 50%;\\n  height: 1px;\\n}\\n.van-stepper__minus::after,\\n.van-stepper__plus::after {\\n  width: 1px;\\n  height: 50%;\\n}\\n.van-stepper__minus::before,\\n.van-stepper__plus::before,\\n.van-stepper__minus::after,\\n.van-stepper__plus::after {\\n  position: absolute;\\n  top: 50%;\\n  left: 50%;\\n  background-color: currentColor;\\n  -webkit-transform: translate(-50%, -50%);\\n          transform: translate(-50%, -50%);\\n  content: '';\\n}\\n.van-stepper__minus:active,\\n.van-stepper__plus:active {\\n  background-color: #e8e8e8;\\n}\\n.van-stepper__minus--disabled,\\n.van-stepper__plus--disabled {\\n  color: #c8c9cc;\\n  background-color: #f7f8fa;\\n  cursor: not-allowed;\\n}\\n.van-stepper__minus--disabled:active,\\n.van-stepper__plus--disabled:active {\\n  background-color: #f7f8fa;\\n}\\n.van-stepper__minus {\\n  border-radius: 4px 0 0 4px;\\n}\\n.van-stepper__minus::after {\\n  display: none;\\n}\\n.van-stepper__plus {\\n  border-radius: 0 4px 4px 0;\\n}\\n.van-stepper__input {\\n  box-sizing: border-box;\\n  width: 32px;\\n  height: 28px;\\n  margin: 0 2px;\\n  padding: 0;\\n  color: #323233;\\n  font-size: 14px;\\n  line-height: normal;\\n  text-align: center;\\n  vertical-align: middle;\\n  background-color: #f2f3f5;\\n  border: 0;\\n  border-width: 1px 0;\\n  border-radius: 0;\\n  -webkit-appearance: none;\\n}\\n.van-stepper__input:disabled {\\n  color: #c8c9cc;\\n  background-color: #f2f3f5;\\n  -webkit-text-fill-color: #c8c9cc;\\n  opacity: 1;\\n}\\n.van-stepper__input:read-only {\\n  cursor: default;\\n}\\n.van-stepper--round .van-stepper__input {\\n  background-color: transparent;\\n}\\n.van-stepper--round .van-stepper__plus,\\n.van-stepper--round .van-stepper__minus {\\n  border-radius: 100%;\\n}\\n.van-stepper--round .van-stepper__plus:active,\\n.van-stepper--round .van-stepper__minus:active {\\n  opacity: 0.7;\\n}\\n.van-stepper--round .van-stepper__plus--disabled,\\n.van-stepper--round .van-stepper__minus--disabled,\\n.van-stepper--round .van-stepper__plus--disabled:active,\\n.van-stepper--round .van-stepper__minus--disabled:active {\\n  opacity: 0.3;\\n}\\n.van-stepper--round .van-stepper__plus {\\n  color: #fff;\\n  background-color: #ee0a24;\\n}\\n.van-stepper--round .van-stepper__minus {\\n  color: #ee0a24;\\n  background-color: #fff;\\n  border: 1px solid #ee0a24;\\n}\\n.van-sku {\\n  /* sku row */\\n}\\n.van-sku-container {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-align: stretch;\\n  -webkit-align-items: stretch;\\n          align-items: stretch;\\n  min-height: 50%;\\n  max-height: 80%;\\n  overflow-y: visible;\\n  font-size: 14px;\\n  background: #fff;\\n}\\n.van-sku-body {\\n  -webkit-box-flex: 1;\\n  -webkit-flex: 1 1 auto;\\n          flex: 1 1 auto;\\n  min-height: 44px;\\n  overflow-y: scroll;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-sku-body::-webkit-scrollbar {\\n  display: none;\\n}\\n.van-sku-header {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  margin: 0 16px;\\n}\\n.van-sku-header__img-wrap {\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  width: 96px;\\n  height: 96px;\\n  margin: 12px 12px 12px 0;\\n  overflow: hidden;\\n  border-radius: 4px;\\n}\\n.van-sku-header__goods-info {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  -webkit-box-pack: end;\\n  -webkit-justify-content: flex-end;\\n          justify-content: flex-end;\\n  padding: 12px 20px 12px 0;\\n}\\n.van-sku-header-item {\\n  margin-top: 8px;\\n  color: #969799;\\n  font-size: 12px;\\n  line-height: 16px;\\n}\\n.van-sku__price-symbol {\\n  font-size: 16px;\\n  vertical-align: bottom;\\n}\\n.van-sku__price-num {\\n  font-weight: 500;\\n  font-size: 22px;\\n  vertical-align: bottom;\\n  word-wrap: break-word;\\n}\\n.van-sku__goods-price {\\n  margin-left: -2px;\\n  color: #ee0a24;\\n}\\n.van-sku__price-tag {\\n  position: relative;\\n  display: inline-block;\\n  margin-left: 8px;\\n  padding: 0 5px;\\n  overflow: hidden;\\n  color: #ee0a24;\\n  font-size: 12px;\\n  line-height: 16px;\\n  border-radius: 8px;\\n}\\n.van-sku__price-tag::before {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  background: currentColor;\\n  opacity: 0.1;\\n  content: '';\\n}\\n.van-sku-group-container {\\n  padding-top: 12px;\\n}\\n.van-sku-group-container--hide-soldout .van-sku-row__item--disabled {\\n  display: none;\\n}\\n.van-sku-row {\\n  margin: 0 16px 12px;\\n}\\n.van-sku-row:last-child {\\n  margin-bottom: 0;\\n}\\n.van-sku-row__item,\\n.van-sku-row__image-item {\\n  position: relative;\\n  overflow: hidden;\\n  color: #323233;\\n  border-radius: 4px;\\n  cursor: pointer;\\n}\\n.van-sku-row__item::before,\\n.van-sku-row__image-item::before {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 100%;\\n  background: #f7f8fa;\\n  content: '';\\n}\\n.van-sku-row__item--active,\\n.van-sku-row__image-item--active {\\n  color: #ee0a24;\\n}\\n.van-sku-row__item--active::before,\\n.van-sku-row__image-item--active::before {\\n  background: currentColor;\\n  opacity: 0.1;\\n}\\n.van-sku-row__item {\\n  display: -webkit-inline-box;\\n  display: -webkit-inline-flex;\\n  display: inline-flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  min-width: 40px;\\n  margin: 0 12px 12px 0;\\n  font-size: 13px;\\n  line-height: 16px;\\n  vertical-align: middle;\\n}\\n.van-sku-row__item-img {\\n  z-index: 1;\\n  width: 24px;\\n  height: 24px;\\n  margin: 4px 0 4px 4px;\\n  object-fit: cover;\\n  border-radius: 2px;\\n}\\n.van-sku-row__item-name {\\n  z-index: 1;\\n  padding: 8px;\\n}\\n.van-sku-row__item--disabled {\\n  color: #c8c9cc;\\n  background: #f2f3f5;\\n  cursor: not-allowed;\\n}\\n.van-sku-row__item--disabled .van-sku-row__item-img {\\n  opacity: 0.3;\\n}\\n.van-sku-row__image {\\n  margin-right: 0;\\n}\\n.van-sku-row__image-item {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-orient: vertical;\\n  -webkit-box-direction: normal;\\n  -webkit-flex-direction: column;\\n          flex-direction: column;\\n  width: 110px;\\n  margin: 0 4px 4px 0;\\n  border: 1px solid transparent;\\n}\\n.van-sku-row__image-item:last-child {\\n  margin-right: 0;\\n}\\n.van-sku-row__image-item-img {\\n  width: 100%;\\n  height: 110px;\\n}\\n.van-sku-row__image-item-img-icon {\\n  position: absolute;\\n  top: 0;\\n  right: 0;\\n  z-index: 3;\\n  width: 18px;\\n  height: 18px;\\n  color: #fff;\\n  line-height: 18px;\\n  text-align: center;\\n  background-color: rgba(0, 0, 0, 0.4);\\n  border-bottom-left-radius: 4px;\\n}\\n.van-sku-row__image-item-name {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-align: center;\\n  -webkit-align-items: center;\\n          align-items: center;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  box-sizing: border-box;\\n  height: 40px;\\n  padding: 4px;\\n  font-size: 12px;\\n  line-height: 16px;\\n}\\n.van-sku-row__image-item-name span {\\n  word-wrap: break-word;\\n}\\n.van-sku-row__image-item--active {\\n  border-color: currentColor;\\n}\\n.van-sku-row__image-item--disabled {\\n  color: #c8c9cc;\\n  cursor: not-allowed;\\n}\\n.van-sku-row__image-item--disabled::before {\\n  z-index: 2;\\n  background: #f2f3f5;\\n  opacity: 0.4;\\n}\\n.van-sku-row__title {\\n  padding-bottom: 12px;\\n}\\n.van-sku-row__title-multiple {\\n  color: #969799;\\n}\\n.van-sku-row__scroller {\\n  margin: 0 -16px;\\n  overflow-x: scroll;\\n  overflow-y: hidden;\\n  -webkit-overflow-scrolling: touch;\\n}\\n.van-sku-row__scroller::-webkit-scrollbar {\\n  display: none;\\n}\\n.van-sku-row__row {\\n  display: -webkit-inline-box;\\n  display: -webkit-inline-flex;\\n  display: inline-flex;\\n  margin-bottom: 4px;\\n  padding: 0 16px;\\n}\\n.van-sku-row__indicator {\\n  width: 40px;\\n  height: 4px;\\n  background: #ebedf0;\\n  border-radius: 2px;\\n}\\n.van-sku-row__indicator-wrapper {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-box-pack: center;\\n  -webkit-justify-content: center;\\n          justify-content: center;\\n  padding-bottom: 16px;\\n}\\n.van-sku-row__indicator-slider {\\n  width: 50%;\\n  height: 100%;\\n  background-color: #ee0a24;\\n  border-radius: 2px;\\n}\\n.van-sku-stepper-stock {\\n  padding: 12px 16px;\\n  overflow: hidden;\\n  line-height: 30px;\\n}\\n.van-sku__stepper {\\n  float: right;\\n  padding-left: 4px;\\n}\\n.van-sku__stepper-title {\\n  float: left;\\n}\\n.van-sku__stepper-quota {\\n  float: right;\\n  color: #ee0a24;\\n  font-size: 12px;\\n}\\n.van-sku__stock {\\n  display: inline-block;\\n  margin-right: 8px;\\n  color: #969799;\\n  font-size: 12px;\\n}\\n.van-sku__stock-num--highlight {\\n  color: #ee0a24;\\n}\\n.van-sku-messages {\\n  padding-bottom: 32px;\\n}\\n.van-sku-messages__image-cell .van-cell__title {\\n  max-width: 6.2em;\\n  margin-right: 12px;\\n  color: #646566;\\n  text-align: left;\\n  word-wrap: break-word;\\n}\\n.van-sku-messages__image-cell .van-cell__value {\\n  overflow: visible;\\n  text-align: left;\\n}\\n.van-sku-messages__image-cell-label {\\n  color: #969799;\\n  font-size: 12px;\\n  line-height: 18px;\\n}\\n.van-sku-messages__cell-block {\\n  position: relative;\\n}\\n.van-sku-messages__cell-block::after {\\n  position: absolute;\\n  box-sizing: border-box;\\n  content: ' ';\\n  pointer-events: none;\\n  right: 16px;\\n  bottom: 0;\\n  left: 16px;\\n  border-bottom: 1px solid #ebedf0;\\n  -webkit-transform: scaleY(0.5);\\n          transform: scaleY(0.5);\\n}\\n.van-sku-messages__cell-block:last-child::after {\\n  display: none;\\n}\\n.van-sku-messages__extra-message {\\n  margin-top: -2px;\\n  padding: 0 16px 12px;\\n  color: #969799;\\n  font-size: 12px;\\n  line-height: 18px;\\n}\\n.van-sku-actions {\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  -webkit-flex-shrink: 0;\\n          flex-shrink: 0;\\n  padding: 8px 16px;\\n}\\n.van-sku-actions .van-button {\\n  height: 40px;\\n  font-weight: 500;\\n  font-size: 14px;\\n  border: none;\\n  border-radius: 0;\\n}\\n.van-sku-actions .van-button:first-of-type {\\n  border-top-left-radius: 20px;\\n  border-bottom-left-radius: 20px;\\n}\\n.van-sku-actions .van-button:last-of-type {\\n  border-top-right-radius: 20px;\\n  border-bottom-right-radius: 20px;\\n}\\n.van-sku-actions .van-button--warning {\\n  background: -webkit-linear-gradient(left, #ffd01e, #ff8917);\\n  background: linear-gradient(to right, #ffd01e, #ff8917);\\n}\\n.van-sku-actions .van-button--danger {\\n  background: -webkit-linear-gradient(left, #ff6034, #ee0a24);\\n  background: linear-gradient(to right, #ff6034, #ee0a24);\\n}\\n.van-slider {\\n  position: relative;\\n  width: 100%;\\n  height: 2px;\\n  background-color: #ebedf0;\\n  border-radius: 999px;\\n  cursor: pointer;\\n}\\n.van-slider::before {\\n  position: absolute;\\n  top: -8px;\\n  right: 0;\\n  bottom: -8px;\\n  left: 0;\\n  content: '';\\n}\\n.van-slider__bar {\\n  position: relative;\\n  width: 100%;\\n  height: 100%;\\n  background-color: #1989fa;\\n  border-radius: inherit;\\n  -webkit-transition: all 0.2s;\\n  transition: all 0.2s;\\n}\\n.van-slider__button {\\n  width: 24px;\\n  height: 24px;\\n  background-color: #fff;\\n  border-radius: 50%;\\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);\\n}\\n.van-slider__button-wrapper,\\n.van-slider__button-wrapper-right {\\n  position: absolute;\\n  top: 50%;\\n  right: 0;\\n  -webkit-transform: translate3d(50%, -50%, 0);\\n          transform: translate3d(50%, -50%, 0);\\n  cursor: grab;\\n}\\n.van-slider__button-wrapper-left {\\n  position: absolute;\\n  top: 50%;\\n  left: 0;\\n  -webkit-transform: translate3d(-50%, -50%, 0);\\n          transform: translate3d(-50%, -50%, 0);\\n  cursor: grab;\\n}\\n.van-slider--disabled {\\n  cursor: not-allowed;\\n  opacity: 0.5;\\n}\\n.van-slider--disabled .van-slider__button-wrapper,\\n.van-slider--disabled .van-slider__button-wrapper-left,\\n.van-slider--disabled .van-slider__button-wrapper-right {\\n  cursor: not-allowed;\\n}\\n.van-slider--vertical {\\n  display: inline-block;\\n  width: 2px;\\n  height: 100%;\\n}\\n.van-slider--vertical .van-slider__button-wrapper,\\n.van-slider--vertical .van-slider__button-wrapper-right {\\n  top: auto;\\n  right: 50%;\\n  bottom: 0;\\n  -webkit-transform: translate3d(50%, 50%, 0);\\n          transform: translate3d(50%, 50%, 0);\\n}\\n.van-slider--vertical .van-slider__button-wrapper-left {\\n  top: 0;\\n  right: 50%;\\n  left: auto;\\n  -webkit-transform: translate3d(50%, -50%, 0);\\n          transform: translate3d(50%, -50%, 0);\\n}\\n.van-slider--vertical::before {\\n  top: 0;\\n  right: -8px;\\n  bottom: 0;\\n  left: -8px;\\n}\\n.van-steps {\\n  overflow: hidden;\\n  background-color: #fff;\\n}\\n.van-steps--horizontal {\\n  padding: 10px 10px 0;\\n}\\n.van-steps--horizontal .van-steps__items {\\n  position: relative;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  margin: 0 0 10px;\\n  padding-bottom: 22px;\\n}\\n.van-steps--vertical {\\n  padding: 0 0 0 32px;\\n}\\n.van-swipe-cell {\\n  position: relative;\\n  overflow: hidden;\\n  cursor: grab;\\n}\\n.van-swipe-cell__wrapper {\\n  -webkit-transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1);\\n          transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1);\\n  -webkit-transition-property: -webkit-transform;\\n  transition-property: -webkit-transform;\\n  transition-property: transform;\\n  transition-property: transform, -webkit-transform;\\n}\\n.van-swipe-cell__left,\\n.van-swipe-cell__right {\\n  position: absolute;\\n  top: 0;\\n  height: 100%;\\n}\\n.van-swipe-cell__left {\\n  left: 0;\\n  -webkit-transform: translate3d(-100%, 0, 0);\\n          transform: translate3d(-100%, 0, 0);\\n}\\n.van-swipe-cell__right {\\n  right: 0;\\n  -webkit-transform: translate3d(100%, 0, 0);\\n          transform: translate3d(100%, 0, 0);\\n}\\n.van-tabbar {\\n  z-index: 1;\\n  display: -webkit-box;\\n  display: -webkit-flex;\\n  display: flex;\\n  box-sizing: content-box;\\n  width: 100%;\\n  height: 50px;\\n  padding-bottom: constant(safe-area-inset-bottom);\\n  padding-bottom: env(safe-area-inset-bottom);\\n  background-color: #fff;\\n}\\n.van-tabbar--fixed {\\n  position: fixed;\\n  bottom: 0;\\n  left: 0;\\n}\\n.van-tabbar--unfit {\\n  padding-bottom: 0;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/vant/lib/index.less?./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-3-1!./node_modules/postcss-loader/src??ref--11-oneOf-3-2!./node_modules/less-loader/dist/cjs.js??ref--11-oneOf-3-3");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/normalize.css/normalize.css":
/*!**************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!./node_modules/postcss-loader/src??ref--7-oneOf-3-2!./node_modules/normalize.css/normalize.css ***!
  \**************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\\n\\n/* Document\\n   ========================================================================== */\\n\\n/**\\n * 1. Correct the line height in all browsers.\\n * 2. Prevent adjustments of font size after orientation changes in iOS.\\n */\\n\\nhtml {\\n  line-height: 1.15; /* 1 */\\n  -webkit-text-size-adjust: 100%; /* 2 */\\n}\\n\\n/* Sections\\n   ========================================================================== */\\n\\n/**\\n * Remove the margin in all browsers.\\n */\\n\\nbody {\\n  margin: 0;\\n}\\n\\n/**\\n * Render the `main` element consistently in IE.\\n */\\n\\nmain {\\n  display: block;\\n}\\n\\n/**\\n * Correct the font size and margin on `h1` elements within `section` and\\n * `article` contexts in Chrome, Firefox, and Safari.\\n */\\n\\nh1 {\\n  font-size: 2em;\\n  margin: 0.67em 0;\\n}\\n\\n/* Grouping content\\n   ========================================================================== */\\n\\n/**\\n * 1. Add the correct box sizing in Firefox.\\n * 2. Show the overflow in Edge and IE.\\n */\\n\\nhr {\\n  box-sizing: content-box; /* 1 */\\n  height: 0; /* 1 */\\n  overflow: visible; /* 2 */\\n}\\n\\n/**\\n * 1. Correct the inheritance and scaling of font size in all browsers.\\n * 2. Correct the odd `em` font sizing in all browsers.\\n */\\n\\npre {\\n  font-family: monospace, monospace; /* 1 */\\n  font-size: 1em; /* 2 */\\n}\\n\\n/* Text-level semantics\\n   ========================================================================== */\\n\\n/**\\n * Remove the gray background on active links in IE 10.\\n */\\n\\na {\\n  background-color: transparent;\\n}\\n\\n/**\\n * 1. Remove the bottom border in Chrome 57-\\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\\n */\\n\\nabbr[title] {\\n  border-bottom: none; /* 1 */\\n  text-decoration: underline; /* 2 */\\n  -webkit-text-decoration: underline dotted;\\n          text-decoration: underline dotted; /* 2 */\\n}\\n\\n/**\\n * Add the correct font weight in Chrome, Edge, and Safari.\\n */\\n\\nb,\\nstrong {\\n  font-weight: bolder;\\n}\\n\\n/**\\n * 1. Correct the inheritance and scaling of font size in all browsers.\\n * 2. Correct the odd `em` font sizing in all browsers.\\n */\\n\\ncode,\\nkbd,\\nsamp {\\n  font-family: monospace, monospace; /* 1 */\\n  font-size: 1em; /* 2 */\\n}\\n\\n/**\\n * Add the correct font size in all browsers.\\n */\\n\\nsmall {\\n  font-size: 80%;\\n}\\n\\n/**\\n * Prevent `sub` and `sup` elements from affecting the line height in\\n * all browsers.\\n */\\n\\nsub,\\nsup {\\n  font-size: 75%;\\n  line-height: 0;\\n  position: relative;\\n  vertical-align: baseline;\\n}\\n\\nsub {\\n  bottom: -0.25em;\\n}\\n\\nsup {\\n  top: -0.5em;\\n}\\n\\n/* Embedded content\\n   ========================================================================== */\\n\\n/**\\n * Remove the border on images inside links in IE 10.\\n */\\n\\nimg {\\n  border-style: none;\\n}\\n\\n/* Forms\\n   ========================================================================== */\\n\\n/**\\n * 1. Change the font styles in all browsers.\\n * 2. Remove the margin in Firefox and Safari.\\n */\\n\\nbutton,\\ninput,\\noptgroup,\\nselect,\\ntextarea {\\n  font-family: inherit; /* 1 */\\n  font-size: 100%; /* 1 */\\n  line-height: 1.15; /* 1 */\\n  margin: 0; /* 2 */\\n}\\n\\n/**\\n * Show the overflow in IE.\\n * 1. Show the overflow in Edge.\\n */\\n\\nbutton,\\ninput { /* 1 */\\n  overflow: visible;\\n}\\n\\n/**\\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\\n * 1. Remove the inheritance of text transform in Firefox.\\n */\\n\\nbutton,\\nselect { /* 1 */\\n  text-transform: none;\\n}\\n\\n/**\\n * Correct the inability to style clickable types in iOS and Safari.\\n */\\n\\nbutton,\\n[type=\\\"button\\\"],\\n[type=\\\"reset\\\"],\\n[type=\\\"submit\\\"] {\\n  -webkit-appearance: button;\\n}\\n\\n/**\\n * Remove the inner border and padding in Firefox.\\n */\\n\\nbutton::-moz-focus-inner,\\n[type=\\\"button\\\"]::-moz-focus-inner,\\n[type=\\\"reset\\\"]::-moz-focus-inner,\\n[type=\\\"submit\\\"]::-moz-focus-inner {\\n  border-style: none;\\n  padding: 0;\\n}\\n\\n/**\\n * Restore the focus styles unset by the previous rule.\\n */\\n\\nbutton:-moz-focusring,\\n[type=\\\"button\\\"]:-moz-focusring,\\n[type=\\\"reset\\\"]:-moz-focusring,\\n[type=\\\"submit\\\"]:-moz-focusring {\\n  outline: 1px dotted ButtonText;\\n}\\n\\n/**\\n * Correct the padding in Firefox.\\n */\\n\\nfieldset {\\n  padding: 0.35em 0.75em 0.625em;\\n}\\n\\n/**\\n * 1. Correct the text wrapping in Edge and IE.\\n * 2. Correct the color inheritance from `fieldset` elements in IE.\\n * 3. Remove the padding so developers are not caught out when they zero out\\n *    `fieldset` elements in all browsers.\\n */\\n\\nlegend {\\n  box-sizing: border-box; /* 1 */\\n  color: inherit; /* 2 */\\n  display: table; /* 1 */\\n  max-width: 100%; /* 1 */\\n  padding: 0; /* 3 */\\n  white-space: normal; /* 1 */\\n}\\n\\n/**\\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\\n */\\n\\nprogress {\\n  vertical-align: baseline;\\n}\\n\\n/**\\n * Remove the default vertical scrollbar in IE 10+.\\n */\\n\\ntextarea {\\n  overflow: auto;\\n}\\n\\n/**\\n * 1. Add the correct box sizing in IE 10.\\n * 2. Remove the padding in IE 10.\\n */\\n\\n[type=\\\"checkbox\\\"],\\n[type=\\\"radio\\\"] {\\n  box-sizing: border-box; /* 1 */\\n  padding: 0; /* 2 */\\n}\\n\\n/**\\n * Correct the cursor style of increment and decrement buttons in Chrome.\\n */\\n\\n[type=\\\"number\\\"]::-webkit-inner-spin-button,\\n[type=\\\"number\\\"]::-webkit-outer-spin-button {\\n  height: auto;\\n}\\n\\n/**\\n * 1. Correct the odd appearance in Chrome and Safari.\\n * 2. Correct the outline style in Safari.\\n */\\n\\n[type=\\\"search\\\"] {\\n  -webkit-appearance: textfield; /* 1 */\\n  outline-offset: -2px; /* 2 */\\n}\\n\\n/**\\n * Remove the inner padding in Chrome and Safari on macOS.\\n */\\n\\n[type=\\\"search\\\"]::-webkit-search-decoration {\\n  -webkit-appearance: none;\\n}\\n\\n/**\\n * 1. Correct the inability to style clickable types in iOS and Safari.\\n * 2. Change font properties to `inherit` in Safari.\\n */\\n\\n::-webkit-file-upload-button {\\n  -webkit-appearance: button; /* 1 */\\n  font: inherit; /* 2 */\\n}\\n\\n/* Interactive\\n   ========================================================================== */\\n\\n/*\\n * Add the correct display in Edge, IE 10+, and Firefox.\\n */\\n\\ndetails {\\n  display: block;\\n}\\n\\n/*\\n * Add the correct display in all browsers.\\n */\\n\\nsummary {\\n  display: list-item;\\n}\\n\\n/* Misc\\n   ========================================================================== */\\n\\n/**\\n * Add the correct display in IE 10+.\\n */\\n\\ntemplate {\\n  display: none;\\n}\\n\\n/**\\n * Add the correct display in IE 10.\\n */\\n\\n[hidden] {\\n  display: none;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./node_modules/normalize.css/normalize.css?./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-3-1!./node_modules/postcss-loader/src??ref--7-oneOf-3-2");

/***/ }),

/***/ "./node_modules/css-loader/dist/runtime/api.js":
/*!*****************************************************!*\
  !*** ./node_modules/css-loader/dist/runtime/api.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\n/*\n  MIT License http://www.opensource.org/licenses/mit-license.php\n  Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n  var list = []; // return the list of modules as css string\n\n  list.toString = function toString() {\n    return this.map(function (item) {\n      var content = cssWithMappingToString(item, useSourceMap);\n\n      if (item[2]) {\n        return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n      }\n\n      return content;\n    }).join('');\n  }; // import a list of modules into the list\n  // eslint-disable-next-line func-names\n\n\n  list.i = function (modules, mediaQuery, dedupe) {\n    if (typeof modules === 'string') {\n      // eslint-disable-next-line no-param-reassign\n      modules = [[null, modules, '']];\n    }\n\n    var alreadyImportedModules = {};\n\n    if (dedupe) {\n      for (var i = 0; i < this.length; i++) {\n        // eslint-disable-next-line prefer-destructuring\n        var id = this[i][0];\n\n        if (id != null) {\n          alreadyImportedModules[id] = true;\n        }\n      }\n    }\n\n    for (var _i = 0; _i < modules.length; _i++) {\n      var item = [].concat(modules[_i]);\n\n      if (dedupe && alreadyImportedModules[item[0]]) {\n        // eslint-disable-next-line no-continue\n        continue;\n      }\n\n      if (mediaQuery) {\n        if (!item[2]) {\n          item[2] = mediaQuery;\n        } else {\n          item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n        }\n      }\n\n      list.push(item);\n    }\n  };\n\n  return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n  var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n  var cssMapping = item[3];\n\n  if (!cssMapping) {\n    return content;\n  }\n\n  if (useSourceMap && typeof btoa === 'function') {\n    var sourceMapping = toComment(cssMapping);\n    var sourceURLs = cssMapping.sources.map(function (source) {\n      return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || '').concat(source, \" */\");\n    });\n    return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n  }\n\n  return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n  // eslint-disable-next-line no-undef\n  var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n  var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n  return \"/*# \".concat(data, \" */\");\n}\n\n//# sourceURL=webpack:///./node_modules/css-loader/dist/runtime/api.js?");

/***/ }),

/***/ "./node_modules/ieee754/index.js":
/*!***************************************!*\
  !*** ./node_modules/ieee754/index.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n  var e, m\n  var eLen = (nBytes * 8) - mLen - 1\n  var eMax = (1 << eLen) - 1\n  var eBias = eMax >> 1\n  var nBits = -7\n  var i = isLE ? (nBytes - 1) : 0\n  var d = isLE ? -1 : 1\n  var s = buffer[offset + i]\n\n  i += d\n\n  e = s & ((1 << (-nBits)) - 1)\n  s >>= (-nBits)\n  nBits += eLen\n  for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n  m = e & ((1 << (-nBits)) - 1)\n  e >>= (-nBits)\n  nBits += mLen\n  for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n  if (e === 0) {\n    e = 1 - eBias\n  } else if (e === eMax) {\n    return m ? NaN : ((s ? -1 : 1) * Infinity)\n  } else {\n    m = m + Math.pow(2, mLen)\n    e = e - eBias\n  }\n  return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n  var e, m, c\n  var eLen = (nBytes * 8) - mLen - 1\n  var eMax = (1 << eLen) - 1\n  var eBias = eMax >> 1\n  var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n  var i = isLE ? 0 : (nBytes - 1)\n  var d = isLE ? 1 : -1\n  var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n  value = Math.abs(value)\n\n  if (isNaN(value) || value === Infinity) {\n    m = isNaN(value) ? 1 : 0\n    e = eMax\n  } else {\n    e = Math.floor(Math.log(value) / Math.LN2)\n    if (value * (c = Math.pow(2, -e)) < 1) {\n      e--\n      c *= 2\n    }\n    if (e + eBias >= 1) {\n      value += rt / c\n    } else {\n      value += rt * Math.pow(2, 1 - eBias)\n    }\n    if (value * c >= 2) {\n      e++\n      c /= 2\n    }\n\n    if (e + eBias >= eMax) {\n      m = 0\n      e = eMax\n    } else if (e + eBias >= 1) {\n      m = ((value * c) - 1) * Math.pow(2, mLen)\n      e = e + eBias\n    } else {\n      m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n      e = 0\n    }\n  }\n\n  for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n  e = (e << mLen) | m\n  eLen += mLen\n  for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n  buffer[offset + i - d] |= s * 128\n}\n\n\n//# sourceURL=webpack:///./node_modules/ieee754/index.js?");

/***/ }),

/***/ "./node_modules/isarray/index.js":
/*!***************************************!*\
  !*** ./node_modules/isarray/index.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n  return toString.call(arr) == '[object Array]';\n};\n\n\n//# sourceURL=webpack:///./node_modules/isarray/index.js?");

/***/ }),

/***/ "./node_modules/node-libs-browser/mock/process.js":
/*!********************************************************!*\
  !*** ./node_modules/node-libs-browser/mock/process.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("exports.nextTick = function nextTick(fn) {\n    var args = Array.prototype.slice.call(arguments);\n    args.shift();\n    setTimeout(function () {\n        fn.apply(null, args);\n    }, 0);\n};\n\nexports.platform = exports.arch = \nexports.execPath = exports.title = 'browser';\nexports.pid = 1;\nexports.browser = true;\nexports.env = {};\nexports.argv = [];\n\nexports.binding = function (name) {\n\tthrow new Error('No such module. (Possibly not yet loaded)')\n};\n\n(function () {\n    var cwd = '/';\n    var path;\n    exports.cwd = function () { return cwd };\n    exports.chdir = function (dir) {\n        if (!path) path = __webpack_require__(/*! path */ \"./node_modules/path-browserify/index.js\");\n        cwd = path.resolve(dir, cwd);\n    };\n})();\n\nexports.exit = exports.kill = \nexports.umask = exports.dlopen = \nexports.uptime = exports.memoryUsage = \nexports.uvCounters = function() {};\nexports.features = {};\n\n\n//# sourceURL=webpack:///./node_modules/node-libs-browser/mock/process.js?");

/***/ }),

/***/ "./node_modules/normalize.css/normalize.css":
/*!**************************************************!*\
  !*** ./node_modules/normalize.css/normalize.css ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../css-loader/dist/cjs.js??ref--7-oneOf-3-1!../postcss-loader/src??ref--7-oneOf-3-2!./normalize.css */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/normalize.css/normalize.css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"b6a5a750\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/normalize.css/normalize.css?");

/***/ }),

/***/ "./node_modules/path-browserify/index.js":
/*!***********************************************!*\
  !*** ./node_modules/path-browserify/index.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("/* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n  // if the path tries to go above the root, `up` ends up > 0\n  var up = 0;\n  for (var i = parts.length - 1; i >= 0; i--) {\n    var last = parts[i];\n    if (last === '.') {\n      parts.splice(i, 1);\n    } else if (last === '..') {\n      parts.splice(i, 1);\n      up++;\n    } else if (up) {\n      parts.splice(i, 1);\n      up--;\n    }\n  }\n\n  // if the path is allowed to go above the root, restore leading ..s\n  if (allowAboveRoot) {\n    for (; up--; up) {\n      parts.unshift('..');\n    }\n  }\n\n  return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n  var resolvedPath = '',\n      resolvedAbsolute = false;\n\n  for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n    var path = (i >= 0) ? arguments[i] : process.cwd();\n\n    // Skip empty and invalid entries\n    if (typeof path !== 'string') {\n      throw new TypeError('Arguments to path.resolve must be strings');\n    } else if (!path) {\n      continue;\n    }\n\n    resolvedPath = path + '/' + resolvedPath;\n    resolvedAbsolute = path.charAt(0) === '/';\n  }\n\n  // At this point the path should be resolved to a full absolute path, but\n  // handle relative paths to be safe (might happen when process.cwd() fails)\n\n  // Normalize the path\n  resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n    return !!p;\n  }), !resolvedAbsolute).join('/');\n\n  return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n  var isAbsolute = exports.isAbsolute(path),\n      trailingSlash = substr(path, -1) === '/';\n\n  // Normalize the path\n  path = normalizeArray(filter(path.split('/'), function(p) {\n    return !!p;\n  }), !isAbsolute).join('/');\n\n  if (!path && !isAbsolute) {\n    path = '.';\n  }\n  if (path && trailingSlash) {\n    path += '/';\n  }\n\n  return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n  return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n  var paths = Array.prototype.slice.call(arguments, 0);\n  return exports.normalize(filter(paths, function(p, index) {\n    if (typeof p !== 'string') {\n      throw new TypeError('Arguments to path.join must be strings');\n    }\n    return p;\n  }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n  from = exports.resolve(from).substr(1);\n  to = exports.resolve(to).substr(1);\n\n  function trim(arr) {\n    var start = 0;\n    for (; start < arr.length; start++) {\n      if (arr[start] !== '') break;\n    }\n\n    var end = arr.length - 1;\n    for (; end >= 0; end--) {\n      if (arr[end] !== '') break;\n    }\n\n    if (start > end) return [];\n    return arr.slice(start, end - start + 1);\n  }\n\n  var fromParts = trim(from.split('/'));\n  var toParts = trim(to.split('/'));\n\n  var length = Math.min(fromParts.length, toParts.length);\n  var samePartsLength = length;\n  for (var i = 0; i < length; i++) {\n    if (fromParts[i] !== toParts[i]) {\n      samePartsLength = i;\n      break;\n    }\n  }\n\n  var outputParts = [];\n  for (var i = samePartsLength; i < fromParts.length; i++) {\n    outputParts.push('..');\n  }\n\n  outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n  return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n  if (typeof path !== 'string') path = path + '';\n  if (path.length === 0) return '.';\n  var code = path.charCodeAt(0);\n  var hasRoot = code === 47 /*/*/;\n  var end = -1;\n  var matchedSlash = true;\n  for (var i = path.length - 1; i >= 1; --i) {\n    code = path.charCodeAt(i);\n    if (code === 47 /*/*/) {\n        if (!matchedSlash) {\n          end = i;\n          break;\n        }\n      } else {\n      // We saw the first non-path separator\n      matchedSlash = false;\n    }\n  }\n\n  if (end === -1) return hasRoot ? '/' : '.';\n  if (hasRoot && end === 1) {\n    // return '//';\n    // Backwards-compat fix:\n    return '/';\n  }\n  return path.slice(0, end);\n};\n\nfunction basename(path) {\n  if (typeof path !== 'string') path = path + '';\n\n  var start = 0;\n  var end = -1;\n  var matchedSlash = true;\n  var i;\n\n  for (i = path.length - 1; i >= 0; --i) {\n    if (path.charCodeAt(i) === 47 /*/*/) {\n        // If we reached a path separator that was not part of a set of path\n        // separators at the end of the string, stop now\n        if (!matchedSlash) {\n          start = i + 1;\n          break;\n        }\n      } else if (end === -1) {\n      // We saw the first non-path separator, mark this as the end of our\n      // path component\n      matchedSlash = false;\n      end = i + 1;\n    }\n  }\n\n  if (end === -1) return '';\n  return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n  var f = basename(path);\n  if (ext && f.substr(-1 * ext.length) === ext) {\n    f = f.substr(0, f.length - ext.length);\n  }\n  return f;\n};\n\nexports.extname = function (path) {\n  if (typeof path !== 'string') path = path + '';\n  var startDot = -1;\n  var startPart = 0;\n  var end = -1;\n  var matchedSlash = true;\n  // Track the state of characters (if any) we see before our first dot and\n  // after any path separator we find\n  var preDotState = 0;\n  for (var i = path.length - 1; i >= 0; --i) {\n    var code = path.charCodeAt(i);\n    if (code === 47 /*/*/) {\n        // If we reached a path separator that was not part of a set of path\n        // separators at the end of the string, stop now\n        if (!matchedSlash) {\n          startPart = i + 1;\n          break;\n        }\n        continue;\n      }\n    if (end === -1) {\n      // We saw the first non-path separator, mark this as the end of our\n      // extension\n      matchedSlash = false;\n      end = i + 1;\n    }\n    if (code === 46 /*.*/) {\n        // If this is our first dot, mark it as the start of our extension\n        if (startDot === -1)\n          startDot = i;\n        else if (preDotState !== 1)\n          preDotState = 1;\n    } else if (startDot !== -1) {\n      // We saw a non-dot and non-path separator before our dot, so we should\n      // have a good chance at having a non-empty extension\n      preDotState = -1;\n    }\n  }\n\n  if (startDot === -1 || end === -1 ||\n      // We saw a non-dot character immediately before the dot\n      preDotState === 0 ||\n      // The (right-most) trimmed path component is exactly '..'\n      preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n    return '';\n  }\n  return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n    if (xs.filter) return xs.filter(f);\n    var res = [];\n    for (var i = 0; i < xs.length; i++) {\n        if (f(xs[i], i, xs)) res.push(xs[i]);\n    }\n    return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n    ? function (str, start, len) { return str.substr(start, len) }\n    : function (str, start, len) {\n        if (start < 0) start = str.length + start;\n        return str.substr(start, len);\n    }\n;\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ \"./node_modules/node-libs-browser/mock/process.js\")))\n\n//# sourceURL=webpack:///./node_modules/path-browserify/index.js?");

/***/ }),

/***/ "./node_modules/qs/lib/formats.js":
/*!****************************************!*\
  !*** ./node_modules/qs/lib/formats.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nmodule.exports = {\n    'default': 'RFC3986',\n    formatters: {\n        RFC1738: function (value) {\n            return replace.call(value, percentTwenties, '+');\n        },\n        RFC3986: function (value) {\n            return String(value);\n        }\n    },\n    RFC1738: 'RFC1738',\n    RFC3986: 'RFC3986'\n};\n\n\n//# sourceURL=webpack:///./node_modules/qs/lib/formats.js?");

/***/ }),

/***/ "./node_modules/qs/lib/index.js":
/*!**************************************!*\
  !*** ./node_modules/qs/lib/index.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nvar stringify = __webpack_require__(/*! ./stringify */ \"./node_modules/qs/lib/stringify.js\");\nvar parse = __webpack_require__(/*! ./parse */ \"./node_modules/qs/lib/parse.js\");\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nmodule.exports = {\n    formats: formats,\n    parse: parse,\n    stringify: stringify\n};\n\n\n//# sourceURL=webpack:///./node_modules/qs/lib/index.js?");

/***/ }),

/***/ "./node_modules/qs/lib/parse.js":
/*!**************************************!*\
  !*** ./node_modules/qs/lib/parse.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\n\nvar has = Object.prototype.hasOwnProperty;\n\nvar defaults = {\n    allowDots: false,\n    allowPrototypes: false,\n    arrayLimit: 20,\n    decoder: utils.decode,\n    delimiter: '&',\n    depth: 5,\n    parameterLimit: 1000,\n    plainObjects: false,\n    strictNullHandling: false\n};\n\nvar parseValues = function parseQueryStringValues(str, options) {\n    var obj = {};\n    var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n    var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n    var parts = cleanStr.split(options.delimiter, limit);\n\n    for (var i = 0; i < parts.length; ++i) {\n        var part = parts[i];\n\n        var bracketEqualsPos = part.indexOf(']=');\n        var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n        var key, val;\n        if (pos === -1) {\n            key = options.decoder(part, defaults.decoder);\n            val = options.strictNullHandling ? null : '';\n        } else {\n            key = options.decoder(part.slice(0, pos), defaults.decoder);\n            val = options.decoder(part.slice(pos + 1), defaults.decoder);\n        }\n        if (has.call(obj, key)) {\n            obj[key] = [].concat(obj[key]).concat(val);\n        } else {\n            obj[key] = val;\n        }\n    }\n\n    return obj;\n};\n\nvar parseObject = function (chain, val, options) {\n    var leaf = val;\n\n    for (var i = chain.length - 1; i >= 0; --i) {\n        var obj;\n        var root = chain[i];\n\n        if (root === '[]' && options.parseArrays) {\n            obj = [].concat(leaf);\n        } else {\n            obj = options.plainObjects ? Object.create(null) : {};\n            var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n            var index = parseInt(cleanRoot, 10);\n            if (!options.parseArrays && cleanRoot === '') {\n                obj = { 0: leaf };\n            } else if (\n                !isNaN(index)\n                && root !== cleanRoot\n                && String(index) === cleanRoot\n                && index >= 0\n                && (options.parseArrays && index <= options.arrayLimit)\n            ) {\n                obj = [];\n                obj[index] = leaf;\n            } else if (cleanRoot !== '__proto__') {\n                obj[cleanRoot] = leaf;\n            }\n        }\n\n        leaf = obj;\n    }\n\n    return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options) {\n    if (!givenKey) {\n        return;\n    }\n\n    // Transform dot notation to bracket notation\n    var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n    // The regex chunks\n\n    var brackets = /(\\[[^[\\]]*])/;\n    var child = /(\\[[^[\\]]*])/g;\n\n    // Get the parent\n\n    var segment = brackets.exec(key);\n    var parent = segment ? key.slice(0, segment.index) : key;\n\n    // Stash the parent if it exists\n\n    var keys = [];\n    if (parent) {\n        // If we aren't using plain objects, optionally prefix keys\n        // that would overwrite object prototype properties\n        if (!options.plainObjects && has.call(Object.prototype, parent)) {\n            if (!options.allowPrototypes) {\n                return;\n            }\n        }\n\n        keys.push(parent);\n    }\n\n    // Loop through children appending to the array until we hit depth\n\n    var i = 0;\n    while ((segment = child.exec(key)) !== null && i < options.depth) {\n        i += 1;\n        if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n            if (!options.allowPrototypes) {\n                return;\n            }\n        }\n        keys.push(segment[1]);\n    }\n\n    // If there's a remainder, just add whatever is left\n\n    if (segment) {\n        keys.push('[' + key.slice(segment.index) + ']');\n    }\n\n    return parseObject(keys, val, options);\n};\n\nmodule.exports = function (str, opts) {\n    var options = opts ? utils.assign({}, opts) : {};\n\n    if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') {\n        throw new TypeError('Decoder has to be a function.');\n    }\n\n    options.ignoreQueryPrefix = options.ignoreQueryPrefix === true;\n    options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter;\n    options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth;\n    options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit;\n    options.parseArrays = options.parseArrays !== false;\n    options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder;\n    options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots;\n    options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects;\n    options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes;\n    options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit;\n    options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;\n\n    if (str === '' || str === null || typeof str === 'undefined') {\n        return options.plainObjects ? Object.create(null) : {};\n    }\n\n    var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n    var obj = options.plainObjects ? Object.create(null) : {};\n\n    // Iterate over the keys and setup the new object\n\n    var keys = Object.keys(tempObj);\n    for (var i = 0; i < keys.length; ++i) {\n        var key = keys[i];\n        var newObj = parseKeys(key, tempObj[key], options);\n        obj = utils.merge(obj, newObj, options);\n    }\n\n    return utils.compact(obj);\n};\n\n\n//# sourceURL=webpack:///./node_modules/qs/lib/parse.js?");

/***/ }),

/***/ "./node_modules/qs/lib/stringify.js":
/*!******************************************!*\
  !*** ./node_modules/qs/lib/stringify.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nvar arrayPrefixGenerators = {\n    brackets: function brackets(prefix) {\n        return prefix + '[]';\n    },\n    indices: function indices(prefix, key) {\n        return prefix + '[' + key + ']';\n    },\n    repeat: function repeat(prefix) {\n        return prefix;\n    }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n    push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaults = {\n    delimiter: '&',\n    encode: true,\n    encoder: utils.encode,\n    encodeValuesOnly: false,\n    serializeDate: function serializeDate(date) {\n        return toISO.call(date);\n    },\n    skipNulls: false,\n    strictNullHandling: false\n};\n\nvar stringify = function stringify(\n    object,\n    prefix,\n    generateArrayPrefix,\n    strictNullHandling,\n    skipNulls,\n    encoder,\n    filter,\n    sort,\n    allowDots,\n    serializeDate,\n    formatter,\n    encodeValuesOnly\n) {\n    var obj = object;\n    if (typeof filter === 'function') {\n        obj = filter(prefix, obj);\n    } else if (obj instanceof Date) {\n        obj = serializeDate(obj);\n    }\n\n    if (obj === null) {\n        if (strictNullHandling) {\n            return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix;\n        }\n\n        obj = '';\n    }\n\n    if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {\n        if (encoder) {\n            var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder);\n            return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder))];\n        }\n        return [formatter(prefix) + '=' + formatter(String(obj))];\n    }\n\n    var values = [];\n\n    if (typeof obj === 'undefined') {\n        return values;\n    }\n\n    var objKeys;\n    if (isArray(filter)) {\n        objKeys = filter;\n    } else {\n        var keys = Object.keys(obj);\n        objKeys = sort ? keys.sort(sort) : keys;\n    }\n\n    for (var i = 0; i < objKeys.length; ++i) {\n        var key = objKeys[i];\n\n        if (skipNulls && obj[key] === null) {\n            continue;\n        }\n\n        if (isArray(obj)) {\n            pushToArray(values, stringify(\n                obj[key],\n                generateArrayPrefix(prefix, key),\n                generateArrayPrefix,\n                strictNullHandling,\n                skipNulls,\n                encoder,\n                filter,\n                sort,\n                allowDots,\n                serializeDate,\n                formatter,\n                encodeValuesOnly\n            ));\n        } else {\n            pushToArray(values, stringify(\n                obj[key],\n                prefix + (allowDots ? '.' + key : '[' + key + ']'),\n                generateArrayPrefix,\n                strictNullHandling,\n                skipNulls,\n                encoder,\n                filter,\n                sort,\n                allowDots,\n                serializeDate,\n                formatter,\n                encodeValuesOnly\n            ));\n        }\n    }\n\n    return values;\n};\n\nmodule.exports = function (object, opts) {\n    var obj = object;\n    var options = opts ? utils.assign({}, opts) : {};\n\n    if (options.encoder !== null && typeof options.encoder !== 'undefined' && typeof options.encoder !== 'function') {\n        throw new TypeError('Encoder has to be a function.');\n    }\n\n    var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter;\n    var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;\n    var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls;\n    var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode;\n    var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder;\n    var sort = typeof options.sort === 'function' ? options.sort : null;\n    var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;\n    var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate;\n    var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly;\n    if (typeof options.format === 'undefined') {\n        options.format = formats['default'];\n    } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) {\n        throw new TypeError('Unknown format option provided.');\n    }\n    var formatter = formats.formatters[options.format];\n    var objKeys;\n    var filter;\n\n    if (typeof options.filter === 'function') {\n        filter = options.filter;\n        obj = filter('', obj);\n    } else if (isArray(options.filter)) {\n        filter = options.filter;\n        objKeys = filter;\n    }\n\n    var keys = [];\n\n    if (typeof obj !== 'object' || obj === null) {\n        return '';\n    }\n\n    var arrayFormat;\n    if (options.arrayFormat in arrayPrefixGenerators) {\n        arrayFormat = options.arrayFormat;\n    } else if ('indices' in options) {\n        arrayFormat = options.indices ? 'indices' : 'repeat';\n    } else {\n        arrayFormat = 'indices';\n    }\n\n    var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n\n    if (!objKeys) {\n        objKeys = Object.keys(obj);\n    }\n\n    if (sort) {\n        objKeys.sort(sort);\n    }\n\n    for (var i = 0; i < objKeys.length; ++i) {\n        var key = objKeys[i];\n\n        if (skipNulls && obj[key] === null) {\n            continue;\n        }\n        pushToArray(keys, stringify(\n            obj[key],\n            key,\n            generateArrayPrefix,\n            strictNullHandling,\n            skipNulls,\n            encode ? encoder : null,\n            filter,\n            sort,\n            allowDots,\n            serializeDate,\n            formatter,\n            encodeValuesOnly\n        ));\n    }\n\n    var joined = keys.join(delimiter);\n    var prefix = options.addQueryPrefix === true ? '?' : '';\n\n    return joined.length > 0 ? prefix + joined : '';\n};\n\n\n//# sourceURL=webpack:///./node_modules/qs/lib/stringify.js?");

/***/ }),

/***/ "./node_modules/qs/lib/utils.js":
/*!**************************************!*\
  !*** ./node_modules/qs/lib/utils.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nvar has = Object.prototype.hasOwnProperty;\n\nvar hexTable = (function () {\n    var array = [];\n    for (var i = 0; i < 256; ++i) {\n        array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n    }\n\n    return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n    var obj;\n\n    while (queue.length) {\n        var item = queue.pop();\n        obj = item.obj[item.prop];\n\n        if (Array.isArray(obj)) {\n            var compacted = [];\n\n            for (var j = 0; j < obj.length; ++j) {\n                if (typeof obj[j] !== 'undefined') {\n                    compacted.push(obj[j]);\n                }\n            }\n\n            item.obj[item.prop] = compacted;\n        }\n    }\n\n    return obj;\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n    var obj = options && options.plainObjects ? Object.create(null) : {};\n    for (var i = 0; i < source.length; ++i) {\n        if (typeof source[i] !== 'undefined') {\n            obj[i] = source[i];\n        }\n    }\n\n    return obj;\n};\n\nvar merge = function merge(target, source, options) {\n    if (!source) {\n        return target;\n    }\n\n    if (typeof source !== 'object') {\n        if (Array.isArray(target)) {\n            target.push(source);\n        } else if (target && typeof target === 'object') {\n            if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n                target[source] = true;\n            }\n        } else {\n            return [target, source];\n        }\n\n        return target;\n    }\n\n    if (!target || typeof target !== 'object') {\n        return [target].concat(source);\n    }\n\n    var mergeTarget = target;\n    if (Array.isArray(target) && !Array.isArray(source)) {\n        mergeTarget = arrayToObject(target, options);\n    }\n\n    if (Array.isArray(target) && Array.isArray(source)) {\n        source.forEach(function (item, i) {\n            if (has.call(target, i)) {\n                var targetItem = target[i];\n                if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n                    target[i] = merge(targetItem, item, options);\n                } else {\n                    target.push(item);\n                }\n            } else {\n                target[i] = item;\n            }\n        });\n        return target;\n    }\n\n    return Object.keys(source).reduce(function (acc, key) {\n        var value = source[key];\n\n        if (has.call(acc, key)) {\n            acc[key] = merge(acc[key], value, options);\n        } else {\n            acc[key] = value;\n        }\n        return acc;\n    }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n    return Object.keys(source).reduce(function (acc, key) {\n        acc[key] = source[key];\n        return acc;\n    }, target);\n};\n\nvar decode = function (str) {\n    try {\n        return decodeURIComponent(str.replace(/\\+/g, ' '));\n    } catch (e) {\n        return str;\n    }\n};\n\nvar encode = function encode(str) {\n    // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n    // It has been adapted here for stricter adherence to RFC 3986\n    if (str.length === 0) {\n        return str;\n    }\n\n    var string = typeof str === 'string' ? str : String(str);\n\n    var out = '';\n    for (var i = 0; i < string.length; ++i) {\n        var c = string.charCodeAt(i);\n\n        if (\n            c === 0x2D // -\n            || c === 0x2E // .\n            || c === 0x5F // _\n            || c === 0x7E // ~\n            || (c >= 0x30 && c <= 0x39) // 0-9\n            || (c >= 0x41 && c <= 0x5A) // a-z\n            || (c >= 0x61 && c <= 0x7A) // A-Z\n        ) {\n            out += string.charAt(i);\n            continue;\n        }\n\n        if (c < 0x80) {\n            out = out + hexTable[c];\n            continue;\n        }\n\n        if (c < 0x800) {\n            out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n            continue;\n        }\n\n        if (c < 0xD800 || c >= 0xE000) {\n            out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n            continue;\n        }\n\n        i += 1;\n        c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n        /* eslint operator-linebreak: [2, \"before\"] */\n        out += hexTable[0xF0 | (c >> 18)]\n            + hexTable[0x80 | ((c >> 12) & 0x3F)]\n            + hexTable[0x80 | ((c >> 6) & 0x3F)]\n            + hexTable[0x80 | (c & 0x3F)];\n    }\n\n    return out;\n};\n\nvar compact = function compact(value) {\n    var queue = [{ obj: { o: value }, prop: 'o' }];\n    var refs = [];\n\n    for (var i = 0; i < queue.length; ++i) {\n        var item = queue[i];\n        var obj = item.obj[item.prop];\n\n        var keys = Object.keys(obj);\n        for (var j = 0; j < keys.length; ++j) {\n            var key = keys[j];\n            var val = obj[key];\n            if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n                queue.push({ obj: obj, prop: key });\n                refs.push(val);\n            }\n        }\n    }\n\n    return compactQueue(queue);\n};\n\nvar isRegExp = function isRegExp(obj) {\n    return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n    if (obj === null || typeof obj === 'undefined') {\n        return false;\n    }\n\n    return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nmodule.exports = {\n    arrayToObject: arrayToObject,\n    assign: assign,\n    compact: compact,\n    decode: decode,\n    encode: encode,\n    isBuffer: isBuffer,\n    isRegExp: isRegExp,\n    merge: merge\n};\n\n\n//# sourceURL=webpack:///./node_modules/qs/lib/utils.js?");

/***/ }),

/***/ "./node_modules/tim-js-sdk/tim-js-friendship.js":
/*!******************************************************!*\
  !*** ./node_modules/tim-js-sdk/tim-js-friendship.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("/* WEBPACK VAR INJECTION */(function(global) {!function(e,t){ true?module.exports=t():undefined}(this,(function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){a(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function d(e,t,n){return(d=l()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var s=new(Function.bind.apply(e,o));return n&&c(s,n.prototype),s}).apply(null,arguments)}function p(e){var t=\"function\"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return d(e,arguments,u(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),c(o,e)})(e)}function g(e,t){if(null==e)return{};var n,o,s=function(e,t){if(null==e)return{};var n,o,s={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function _(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function h(e,t){if(t&&(\"object\"==typeof t||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return _(e)}function f(e){var t=l();return function(){var n,o=u(e);if(t){var s=u(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return h(this,n)}}function m(e,t){return M(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var o,s,r=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(u){i=!0,s=u}finally{try{a||null==n.return||n.return()}finally{if(i)throw s}}return r}(e,t)||I(e,t)||T()}function v(e){return function(e){if(Array.isArray(e))return C(e)}(e)||y(e)||I(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function M(e){if(Array.isArray(e))return e}function y(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}function I(e,t){if(e){if(\"string\"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function T(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function D(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=I(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var o=0,s=function(){};return{s:s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:s}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw r}}}}var E={SDK_READY:\"sdkStateReady\",SDK_NOT_READY:\"sdkStateNotReady\",SDK_DESTROY:\"sdkDestroy\",MESSAGE_RECEIVED:\"onMessageReceived\",MESSAGE_MODIFIED:\"onMessageModified\",MESSAGE_REVOKED:\"onMessageRevoked\",MESSAGE_READ_BY_PEER:\"onMessageReadByPeer\",MESSAGE_READ_RECEIPT_RECEIVED:\"onMessageReadReceiptReceived\",MESSAGE_EXTENSIONS_UPDATED:\"onMessageExtensionsUpdated\",MESSAGE_EXTENSIONS_DELETED:\"onMessageExtensionsDeleted\",CONVERSATION_LIST_UPDATED:\"onConversationListUpdated\",TOTAL_UNREAD_MESSAGE_COUNT_UPDATED:\"onTotalUnreadMessageCountUpdated\",CONVERSATION_GROUP_LIST_UPDATED:\"onConversationGroupListUpdated\",CONVERSATION_IN_GROUP_UPDATED:\"onConversationInGroupUpdated\",GROUP_LIST_UPDATED:\"onGroupListUpdated\",GROUP_SYSTEM_NOTICE_RECEIVED:\"receiveGroupSystemNotice\",GROUP_ATTRIBUTES_UPDATED:\"groupAttributesUpdated\",GROUP_COUNTER_UPDATED:\"onGroupCounterUpdated\",TOPIC_CREATED:\"onTopicCreated\",TOPIC_DELETED:\"onTopicDeleted\",TOPIC_UPDATED:\"onTopicUpdated\",PROFILE_UPDATED:\"onProfileUpdated\",USER_STATUS_UPDATED:\"onUserStatusUpdated\",BLACKLIST_UPDATED:\"blacklistUpdated\",FRIEND_LIST_UPDATED:\"onFriendListUpdated\",FRIEND_GROUP_LIST_UPDATED:\"onFriendGroupListUpdated\",FRIEND_APPLICATION_LIST_UPDATED:\"onFriendApplicationListUpdated\",KICKED_OUT:\"kickedOut\",ERROR:\"error\",NET_STATE_CHANGE:\"netStateChange\",SDK_RELOAD:\"sdkReload\"},k={MSG_TEXT:\"TIMTextElem\",MSG_IMAGE:\"TIMImageElem\",MSG_SOUND:\"TIMSoundElem\",MSG_AUDIO:\"TIMSoundElem\",MSG_FILE:\"TIMFileElem\",MSG_FACE:\"TIMFaceElem\",MSG_VIDEO:\"TIMVideoFileElem\",MSG_GEO:\"TIMLocationElem\",MSG_LOCATION:\"TIMLocationElem\",MSG_GRP_TIP:\"TIMGroupTipElem\",MSG_GRP_SYS_NOTICE:\"TIMGroupSystemNoticeElem\",MSG_CUSTOM:\"TIMCustomElem\",MSG_MERGER:\"TIMRelayElem\",MSG_PRIORITY_HIGH:\"High\",MSG_PRIORITY_NORMAL:\"Normal\",MSG_PRIORITY_LOW:\"Low\",MSG_PRIORITY_LOWEST:\"Lowest\",CONV_C2C:\"C2C\",CONV_GROUP:\"GROUP\",CONV_TOPIC:\"TOPIC\",CONV_SYSTEM:\"@TIM#SYSTEM\",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:\"Private\",GRP_WORK:\"Private\",GRP_PUBLIC:\"Public\",GRP_CHATROOM:\"ChatRoom\",GRP_MEETING:\"ChatRoom\",GRP_AVCHATROOM:\"AVChatRoom\",GRP_COMMUNITY:\"Community\",GRP_MBR_ROLE_OWNER:\"Owner\",GRP_MBR_ROLE_ADMIN:\"Admin\",GRP_MBR_ROLE_MEMBER:\"Member\",GRP_MBR_ROLE_CUSTOM:\"Custom\",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:\"AcceptAndNotify\",MSG_REMIND_ACPT_NOT_NOTE:\"AcceptNotNotify\",MSG_REMIND_DISCARD:\"Discard\",GENDER_UNKNOWN:\"Gender_Type_Unknown\",GENDER_FEMALE:\"Gender_Type_Female\",GENDER_MALE:\"Gender_Type_Male\",KICKED_OUT_MULT_ACCOUNT:\"multipleAccount\",KICKED_OUT_MULT_DEVICE:\"multipleDevice\",KICKED_OUT_USERSIG_EXPIRED:\"userSigExpired\",KICKED_OUT_REST_API:\"REST_API_Kick\",ALLOW_TYPE_ALLOW_ANY:\"AllowType_Type_AllowAny\",ALLOW_TYPE_NEED_CONFIRM:\"AllowType_Type_NeedConfirm\",ALLOW_TYPE_DENY_ANY:\"AllowType_Type_DenyAny\",FORBID_TYPE_NONE:\"AdminForbid_Type_None\",FORBID_TYPE_SEND_OUT:\"AdminForbid_Type_SendOut\",JOIN_OPTIONS_FREE_ACCESS:\"FreeAccess\",JOIN_OPTIONS_NEED_PERMISSION:\"NeedPermission\",JOIN_OPTIONS_DISABLE_APPLY:\"DisableApply\",JOIN_STATUS_SUCCESS:\"JoinedSuccess\",JOIN_STATUS_ALREADY_IN_GROUP:\"AlreadyInGroup\",JOIN_STATUS_WAIT_APPROVAL:\"WaitAdminApproval\",INVITE_OPTIONS_DISABLE_INVITE:\"DisableInvite\",INVITE_OPTIONS_NEED_PERMISSION:\"NeedPermission\",INVITE_OPTIONS_FREE_ACCESS:\"FreeAccess\",GRP_PROFILE_OWNER_ID:\"ownerID\",GRP_PROFILE_CREATE_TIME:\"createTime\",GRP_PROFILE_LAST_INFO_TIME:\"lastInfoTime\",GRP_PROFILE_MEMBER_NUM:\"memberNum\",GRP_PROFILE_MAX_MEMBER_NUM:\"maxMemberNum\",GRP_PROFILE_JOIN_OPTION:\"joinOption\",GRP_PROFILE_INVITE_OPTION:\"inviteOption\",GRP_PROFILE_INTRODUCTION:\"introduction\",GRP_PROFILE_NOTIFICATION:\"notification\",GRP_PROFILE_MUTE_ALL_MBRS:\"muteAllMembers\",SNS_ADD_TYPE_SINGLE:\"Add_Type_Single\",SNS_ADD_TYPE_BOTH:\"Add_Type_Both\",SNS_DELETE_TYPE_SINGLE:\"Delete_Type_Single\",SNS_DELETE_TYPE_BOTH:\"Delete_Type_Both\",SNS_APPLICATION_TYPE_BOTH:\"Pendency_Type_Both\",SNS_APPLICATION_SENT_TO_ME:\"Pendency_Type_ComeIn\",SNS_APPLICATION_SENT_BY_ME:\"Pendency_Type_SendOut\",SNS_APPLICATION_AGREE:\"Response_Action_Agree\",SNS_APPLICATION_AGREE_AND_ADD:\"Response_Action_AgreeAndAdd\",SNS_CHECK_TYPE_BOTH:\"CheckResult_Type_Both\",SNS_CHECK_TYPE_SINGLE:\"CheckResult_Type_Single\",SNS_TYPE_NO_RELATION:\"CheckResult_Type_NoRelation\",SNS_TYPE_A_WITH_B:\"CheckResult_Type_AWithB\",SNS_TYPE_B_WITH_A:\"CheckResult_Type_BWithA\",SNS_TYPE_BOTH_WAY:\"CheckResult_Type_BothWay\",NET_STATE_CONNECTED:\"connected\",NET_STATE_CONNECTING:\"connecting\",NET_STATE_DISCONNECTED:\"disconnected\",MSG_AT_ALL:\"__kImSDK_MesssageAtALL__\",READ_ALL_C2C_MSG:\"readAllC2CMessage\",READ_ALL_GROUP_MSG:\"readAllGroupMessage\",READ_ALL_MSG:\"readAllMessage\",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3},S=function(){function e(){o(this,e),this.cache=[],this.options=null}return r(e,[{key:\"use\",value:function(e){if(\"function\"!=typeof e)throw\"middleware must be a function\";return this.cache.push(e),this}},{key:\"next\",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:\"run\",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this.high=t,this.low=n}return r(e,[{key:\"equal\",value:function(e){return null!==e&&(this.low===e.low&&this.high===e.high)}},{key:\"toString\",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t=\"0\"+t,n--;return e+t}}]),e}(),A={TEST:{CHINA:{DEFAULT:\"wss://wss-dev.tim.qq.com\"},OVERSEA:{DEFAULT:\"wss://wss-dev.tim.qq.com\"},SINGAPORE:{DEFAULT:\"wss://wsssgp-dev.im.qcloud.com\"},KOREA:{DEFAULT:\"wss://wsskr-dev.im.qcloud.com\"},GERMANY:{DEFAULT:\"wss://wssger-dev.im.qcloud.com\"},IND:{DEFAULT:\"wss://wssind-dev.im.qcloud.com\"},JPN:{DEFAULT:\"wss://wssjpn-dev.im.qcloud.com\"},USA:{DEFAULT:\"wss://wssusa-dev.im.qcloud.com\"}},PRODUCTION:{CHINA:{DEFAULT:\"wss://wss.im.qcloud.com\",BACKUP:\"wss://wss.tim.qq.com\",STAT:\"https://events.im.qcloud.com\",ANYCAST:\"wss://162.14.13.203\"},OVERSEA:{DEFAULT:\"wss://wss.im.qcloud.com\",BACKUP:\"wss://wss.my-imcloud.com\",STAT:\"https://api.my-imcloud.com\"},SINGAPORE:{DEFAULT:\"wss://wsssgp.im.qcloud.com\",BACKUP:\"wss://wsssgp.my-imcloud.com\",STAT:\"https://apisgp.my-imcloud.com\"},KOREA:{DEFAULT:\"wss://wsskr.im.qcloud.com\",BACKUP:\"wss://wsskr.my-imcloud.com\",STAT:\"https://apikr.my-imcloud.com\"},GERMANY:{DEFAULT:\"wss://wssger.im.qcloud.com\",BACKUP:\"wss://wssger.my-imcloud.com\",STAT:\"https://apiger.my-imcloud.com\"},IND:{DEFAULT:\"wss://wssind.my-imcloud.com\",BACKUP:\"wss://wssind.im.qcloud.com\",STAT:\"https://apiind.my-imcloud.com\"},JPN:{DEFAULT:\"wss://wssjpn.im.qcloud.com\",BACKUP:\"wss://wssjpn.my-imcloud.com\",STAT:\"https://apijpn.my-imcloud.com\"},USA:{DEFAULT:\"wss://wssusa.im.qcloud.com\",BACKUP:\"wss://wssusa.my-imcloud.com\",STAT:\"https://apiusa.my-imcloud.com\"}}},N={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15},R=\"1.7.3\",O=537048168,G=\"CHINA\",U=\"OVERSEA\",P=\"SINGAPORE\",b=\"KOREA\",w=\"GERMANY\",F=\"IND\",q=\"JPN\",x=\"USA\",V={HOST:{CURRENT:{DEFAULT:\"wss://wss.im.qcloud.com\",STAT:\"https://events.im.qcloud.com\"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G;this.CURRENT=A.PRODUCTION[e]}},NAME:{OPEN_IM:\"openim\",OPEN_IM_MSG_EXT:\"openim_msg_ext_http_svc\",GROUP:\"group_open_http_svc\",GROUP_AVCHATROOM:\"group_open_avchatroom_http_svc\",GROUP_COMMUNITY:\"million_group_open_http_svc\",GROUP_ATTR:\"group_open_attr_http_svc\",FRIEND:\"sns\",PROFILE:\"profile\",RECENT_CONTACT:\"recentcontact\",PIC:\"openpic\",BIG_GROUP_NO_AUTH:\"group_open_http_noauth_svc\",BIG_GROUP_LONG_POLLING:\"group_open_long_polling_http_svc\",BIG_GROUP_LONG_POLLING_NO_AUTH:\"group_open_long_polling_http_noauth_svc\",IM_OPEN_STAT:\"imopenstat\",WEB_IM:\"webim\",IM_COS_SIGN:\"im_cos_sign_svr\",CUSTOM_UPLOAD:\"im_cos_msg\",HEARTBEAT:\"heartbeat\",IM_OPEN_PUSH:\"im_open_push\",IM_OPEN_STATUS:\"im_open_status\",IM_LONG_MESSAGE:\"im_long_msg\",IM_CONFIG_MANAGER:\"im_sdk_config_mgr\",STAT_SERVICE:\"StatSvc\",OVERLOAD_PUSH:\"OverLoadPush\",IM_MSG_AUDIT_MGR:\"im_msg_audit_mgr\",TUIROOM_SVR:\"tui_room_svr\",IM_OPEN_TRANSLATE:\"im_open_translate\"},CMD:{LOGIN:\"wslogin\",LOGOUT_LONG_POLL:\"longpollinglogout\",LOGOUT:\"wslogout\",HELLO:\"wshello\",STAT_BACKGROUND:\"ws_stat_background\",STAT_FOREGROUND:\"ws_stat_foreground\",SET_TOKEN:\"ws_stat_settoken\",PORTRAIT_GET:\"portrait_get_all\",PORTRAIT_SET:\"portrait_set\",GET_LONG_POLL_ID:\"getlongpollingid\",LONG_POLL:\"longpolling\",AVCHATROOM_LONG_POLL:\"get_msg\",ADD_FRIEND:\"friend_add\",UPDATE_FRIEND:\"friend_update\",GET_FRIEND_LIST:\"friend_get\",GET_FRIEND_PROFILE:\"friend_get_specified\",DELETE_FRIEND:\"friend_delete\",CHECK_FRIEND:\"friend_check\",GET_FRIEND_GROUP_LIST:\"group_get\",RESPOND_FRIEND_APPLICATION:\"friend_response\",GET_FRIEND_APPLICATION_LIST:\"pendency_get\",DELETE_FRIEND_APPLICATION:\"pendency_delete\",REPORT_FRIEND_APPLICATION:\"pendency_report\",GET_GROUP_APPLICATION:\"get_pendency\",CREATE_FRIEND_GROUP:\"group_add\",DELETE_FRIEND_GROUP:\"group_delete\",UPDATE_FRIEND_GROUP:\"group_update\",GET_BLACKLIST:\"black_list_get\",ADD_BLACKLIST:\"black_list_add\",DELETE_BLACKLIST:\"black_list_delete\",CREATE_GROUP:\"create_group\",GET_JOINED_GROUPS:\"get_joined_group_list\",SET_GROUP_ATTRIBUTES:\"set_group_attr\",MODIFY_GROUP_ATTRIBUTES:\"modify_group_attr\",DELETE_GROUP_ATTRIBUTES:\"delete_group_attr\",CLEAR_GROUP_ATTRIBUTES:\"clear_group_attr\",GET_GROUP_ATTRIBUTES:\"get_group_attr\",SEND_MESSAGE:\"sendmsg\",REVOKE_C2C_MESSAGE:\"msgwithdraw\",DELETE_C2C_MESSAGE:\"delete_c2c_msg_ramble\",MODIFY_C2C_MESSAGE:\"modify_c2c_msg\",MODIFY_C2C_MESSAGE_EXTENSIONS:\"set_key_values\",GET_C2C_MESSAGE_EXTENSIONS:\"get_key_values\",SEND_GROUP_MESSAGE:\"send_group_msg\",REVOKE_GROUP_MESSAGE:\"group_msg_recall\",DELETE_GROUP_MESSAGE:\"delete_group_ramble_msg_by_seq\",MODIFY_GROUP_MESSAGE:\"modify_group_msg\",MODIFY_GROUP_MESSAGE_EXTENSIONS:\"group_set_key_values\",GET_GROUP_MESSAGE_EXTENSIONS:\"group_get_key_values\",GET_GROUP_INFO:\"get_group_self_member_info\",GET_GROUP_MEMBER_INFO:\"get_specified_group_member_info\",GET_GROUP_MEMBER_LIST:\"get_group_member_info\",GET_AVCHATROOM_MEMBER_LIST:\"get_members\",MARK_AVCHATROOM_MEMBER_INFO:\"modify_user_info\",QUIT_GROUP:\"quit_group\",CHANGE_GROUP_OWNER:\"change_group_owner\",DESTROY_GROUP:\"destroy_group\",ADD_GROUP_MEMBER:\"add_group_member\",DELETE_GROUP_MEMBER:\"delete_group_member\",BAN_AVCHATROOM_MEMBER:\"ban_group_member\",SEARCH_GROUP_BY_ID:\"get_group_public_info\",APPLY_JOIN_GROUP:\"apply_join_group\",HANDLE_APPLY_JOIN_GROUP:\"handle_apply_join_group\",HANDLE_INVITE_JOIN_GROUP:\"handle_invite_join_permission_group\",HANDLE_GROUP_INVITATION:\"handle_invite_join_group\",MODIFY_GROUP_INFO:\"modify_group_base_info\",MODIFY_GROUP_MEMBER_INFO:\"modify_group_member_info\",DELETE_GROUP_SYSTEM_MESSAGE:\"deletemsg\",DELETE_GROUP_AT_TIPS:\"deletemsg\",GET_GROUP_NOTIFY:\"get_group_notify\",GET_CONVERSATION_LIST:\"get\",PAGING_GET_CONVERSATION_LIST:\"page_get\",DELETE_CONVERSATION:\"batch_delete\",CLEAR_HISTORY_MESSAGE:\"clear_msg\",PIN_CONVERSATION:\"top\",SET_CONVERSATION_CUSTOM_DATA:\"mark_contact\",MARK_CONVERSATION:\"mark_contact\",CREATE_CONVERSATION_GROUP:\"create_contact_group\",DELETE_CONVERSATION_GROUP:\"del_contact_group\",UPDATE_CONVERSATION_GROUP:\"update_contact_group\",GET_CONVERSATION_GROUP_LIST:\"get_contact_group\",GET_MESSAGES:\"getmsg\",GET_C2C_ROAM_MESSAGES:\"getroammsg\",SET_C2C_PEER_MUTE_NOTIFICATIONS:\"set_c2c_peer_mute_notifications\",GET_C2C_PEER_MUTE_NOTIFICATIONS:\"get_c2c_peer_mute_notifications\",GET_GROUP_ROAM_MESSAGES:\"group_msg_get\",GET_READ_RECEIPT:\"get_group_msg_receipt\",GET_READ_RECEIPT_DETAIL:\"get_group_msg_receipt_detail\",SEND_READ_RECEIPT:\"group_msg_receipt\",SEND_C2C_READ_RECEIPT:\"c2c_msg_read_receipt\",SET_C2C_MESSAGE_READ:\"msgreaded\",GET_PEER_READ_TIME:\"get_peer_read_time\",SET_GROUP_MESSAGE_READ:\"msg_read_report\",FILE_READ_AND_WRITE_AUTHKEY:\"authkey\",FILE_UPLOAD:\"pic_up\",COS_SIGN:\"cos\",COS_PRE_SIG:\"pre_sig\",VIDEO_COVER:\"video_cover\",TIM_WEB_REPORT_V2:\"tim_web_report_v2\",BIG_DATA_HALLWAY_AUTH_KEY:\"authkey\",GET_ONLINE_MEMBER_NUM:\"get_online_member_num\",ALIVE:\"alive\",MESSAGE_PUSH:\"msg_push\",MULTI_MESSAGE_PUSH:\"multi_msg_push_ws\",MESSAGE_PUSH_ACK:\"ws_msg_push_ack\",STATUS_FORCE_OFFLINE:\"stat_forceoffline\",DOWNLOAD_MERGER_MESSAGE:\"get_relay_json_msg\",UPLOAD_MERGER_MESSAGE:\"save_relay_json_msg\",FETCH_CLOUD_CONTROL_CONFIG:\"fetch_config\",PUSHED_CLOUD_CONTROL_CONFIG:\"push_configv2\",FETCH_COMMERCIAL_CONFIG:\"fetch_imsdk_purchase_bitsv2\",PUSHED_COMMERCIAL_CONFIG:\"push_imsdk_purchase_bitsv2\",KICK_OTHER:\"KickOther\",OVERLOAD_NOTIFY:\"notify2\",SET_ALL_MESSAGE_READ:\"read_all_unread_msg\",CREATE_TOPIC:\"create_topic\",DELETE_TOPIC:\"destroy_topic\",UPDATE_TOPIC_PROFILE:\"modify_topic\",GET_TOPIC_LIST:\"get_topic\",SET_SELF_STATUS:\"ws_set_custom_status\",GET_USER_STATUS:\"ws_get_user_status\",SUBSCRIBE_USER_STATUS:\"ws_status_subscribe\",UNSUBSCRIBE_USER_STATUS:\"ws_status_unsubscribe\",GET_RPOFANITY_LIST:\"get_local_words\",TRANSLATE_TEXT:\"ws_batch_trans_text\",UPDATE_GROUP_COUNTER:\"update_group_counter\",GET_GROUP_COUNTER:\"get_group_counter\"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:\"v4\",group_open_http_svc:\"v4\",sns:\"v4\",profile:\"v4\",recentcontact:\"v4\",openpic:\"v4\",group_open_http_noauth_svc:\"v4\",group_open_long_polling_http_svc:\"v4\",group_open_long_polling_http_noauth_svc:\"v4\",imopenstat:\"v4\",im_cos_sign_svr:\"v4\",im_cos_msg:\"v4\",webim:\"v4\",im_open_push:\"v4\",im_open_status:\"v4\"}},B={SEARCH_MSG:new L(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new L(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new L(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new L(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new L(0,Math.pow(2,4)).toString(),AVCHATROOM_MBR_LIST:new L(0,Math.pow(2,6)).toString(),USER_STATUS:new L(0,Math.pow(2,7)).toString(),CONV_MARK:new L(0,Math.pow(2,9)).toString(),CONV_GROUP:new L(0,Math.pow(2,10)).toString(),AVCHATROOM_BAN_MBR:new L(0,Math.pow(2,11)).toString(),MSG_EXT:new L(0,Math.pow(2,13)).toString(),GRP_COUNTER:new L(0,Math.pow(2,15)).toString()},H=\"c2c_text_message\",K=\"c2c_custom_message\",W=\"group_text_message\",Y=\"group_custom_message\",j=\"user_profile\",J=\"sns\",z=\"group_profile\",X=\"group_member_profile\";V.HOST.setCurrent(G);var Q=\"undefined\"!=typeof wx&&\"function\"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Z=\"undefined\"!=typeof qq&&\"function\"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),$=\"undefined\"!=typeof tt&&\"function\"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),ee=\"undefined\"!=typeof swan&&\"function\"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),te=\"undefined\"!=typeof my&&\"function\"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),ne=\"undefined\"!=typeof jd&&\"function\"==typeof jd.getSystemInfoSync,oe=\"undefined\"!=typeof uni&&\"undefined\"==typeof window&&\"function\"==typeof uni.requireNativePlugin,se=\"undefined\"!=typeof uni,re=Q||Z||$||ee||te||oe||ne,ae=(\"undefined\"!=typeof uni||\"undefined\"!=typeof window)&&!re,ie=Z?qq:$?tt:ee?swan:te?my:Q?wx:oe?uni:ne?jd:{},ue=ae&&window&&window.navigator&&window.navigator.userAgent||\"\",ce=/(micromessenger|webbrowser)/i.test(ue),le=/AppleWebKit\\/([\\d.]+)/i.exec(ue);le&&parseFloat(le.pop());var de,pe,ge=(de=\"WEB\",ce?de=\"WEB\":Z?de=\"QQ_MP\":$?de=\"TT_MP\":ee?de=\"BAIDU_MP\":te?de=\"ALI_MP\":Q?de=\"WX_MP\":oe&&(de=\"UNI_NATIVE_APP\"),N[de]),_e=/iPad/i.test(ue),he=/iPhone/i.test(ue)&&!_e,fe=/iPod/i.test(ue),me=he||_e||fe,ve=(pe=ue.match(/OS (\\d+)_/i))&&pe[1]?pe[1]:null,Me=/Android/i.test(ue),ye=function(){var e=ue.match(/Android (\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+\".\"+e[2]):t||null}();!function(){var e=ue.match(/Chrome\\/(\\d+)/);e&&e[1]&&parseFloat(e[1])}();var Ie=/MSIE/.test(ue)||ue.indexOf(\"Trident\")>-1&&ue.indexOf(\"rv:11.0\")>-1,Ce=function(){var e=/MSIE\\s(\\d+)\\.\\d/.exec(ue),t=e&&parseFloat(e[1]);return!t&&/Trident\\/7.0/i.test(ue)&&/rv:11.0/.test(ue)&&(t=11),t}();!function(){var e=ue.match(/TBS\\/(\\d+)/i);if(e&&e[1])e[1]}();var Te,De,Ee=/Windows/i.test(ue),ke=/MAC OS X/i.test(ue),Se=ae&&\"undefined\"!=typeof Worker&&!Ie,Le=Me||me,Ae=ae&&void 0!==window.tencent_cloud_im_csig_flutter_for_web_25F_cy;Te=\"undefined\"!=typeof console?console:\"undefined\"!=typeof global&&global.console?global.console:\"undefined\"!=typeof window&&window.console?window.console:{};for(var Ne=function(){},Re=[\"assert\",\"clear\",\"count\",\"debug\",\"dir\",\"dirxml\",\"error\",\"group\",\"groupCollapsed\",\"groupEnd\",\"info\",\"log\",\"profile\",\"profileEnd\",\"table\",\"time\",\"timeEnd\",\"timeStamp\",\"trace\",\"warn\"],Oe=Re.length;Oe--;)De=Re[Oe],console[De]||(Te[De]=Ne);var Ge=Te,Ue=0,Pe=function(){return(new Date).getTime()+Ue},be=function(){Ue=0},we=function(){return Math.floor(Pe()/1e3)},Fe=0;function qe(){return zt()?\"%c TIM %c\":\"TIM\"}function xe(){var e,t=((e=new Date).setTime(Pe()),e);return t.toLocaleTimeString(\"en-US\",{hour12:!1})+\".\"+function(e){var t;switch(e.toString().length){case 1:t=\"00\"+e;break;case 2:t=\"0\"+e;break;default:t=e}return t}(t.getMilliseconds())}var Ve={arguments2String:function(e){var t=\"\";if(1===e.length)t=e[0];else for(var n=0,o=e.length;n<o;n++)pt(e[n])?_t(e[n])?t+=vt(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=\" \";return t},_exec:function(e,t){zt()?Ge[e](qe(),\"background:#0abf5b; padding:1px; border-radius:3px; color: #fff\",\"background:transparent\",xe(),t):Ge[e](\"\".concat(qe(),\" \").concat(xe(),\" \").concat(t))},d:function(){if(Fe<=-1){var e=this.arguments2String(arguments);this._exec(\"debug\",e)}},l:function(){if(Fe<=0){var e=this.arguments2String(arguments);this._exec(\"log\",e)}},log:function(){if(Fe<=0){var e=this.arguments2String(arguments);this._exec(\"log\",e)}},i:function(){if(Fe<=1){var e=this.arguments2String(arguments);this._exec(\"info\",e)}},w:function(){if(Fe<=2){var e=this.arguments2String(arguments);this._exec(\"warn\",e)}},e:function(){if(Fe<=3){var e=this.arguments2String(arguments);this._exec(\"error\",e)}},setLevel:function(e){e<4&&this._exec(\"log\",\"set level from \"+Fe+\" to \"+e),Fe=e},getLevel:function(){return Fe}},Be={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},He={NICK:\"Tag_Profile_IM_Nick\",GENDER:\"Tag_Profile_IM_Gender\",BIRTHDAY:\"Tag_Profile_IM_BirthDay\",LOCATION:\"Tag_Profile_IM_Location\",SELFSIGNATURE:\"Tag_Profile_IM_SelfSignature\",ALLOWTYPE:\"Tag_Profile_IM_AllowType\",LANGUAGE:\"Tag_Profile_IM_Language\",AVATAR:\"Tag_Profile_IM_Image\",MESSAGESETTINGS:\"Tag_Profile_IM_MsgSettings\",ADMINFORBIDTYPE:\"Tag_Profile_IM_AdminForbidType\",LEVEL:\"Tag_Profile_IM_Level\",ROLE:\"Tag_Profile_IM_Role\"},Ke=\"Tag_SNS_IM_Group\",We=\"Tag_SNS_IM_Remark\",Ye=\"Tag_SNS_IM_AddSource\",je=\"Tag_SNS_IM_AddWording\",Je=\"Tag_SNS_IM_AddTime\",ze={UNKNOWN:\"Gender_Type_Unknown\",FEMALE:\"Gender_Type_Female\",MALE:\"Gender_Type_Male\"},Xe={NONE:\"AdminForbid_Type_None\",SEND_OUT:\"AdminForbid_Type_SendOut\"},Qe={NEED_CONFIRM:\"AllowType_Type_NeedConfirm\",ALLOW_ANY:\"AllowType_Type_AllowAny\",DENY_ANY:\"AllowType_Type_DenyAny\"},Ze=\"JoinedSuccess\",$e=\"WaitAdminApproval\",et=\"@TGS#_\",nt=\"@TOPIC#_\",ot=[\"url\"],st=function(e){return\"map\"===ht(e)},rt=function(e){return\"file\"===ht(e)},at=function(e){return null!==e&&(\"number\"==typeof e&&!isNaN(e-0)||\"object\"===n(e)&&e.constructor===Number)},it=function(e){return\"string\"==typeof e},ut=function(e){return null!==e&&\"object\"===n(e)},ct=function(e){if(\"object\"!==n(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return t===o},lt=function(e){return\"function\"==typeof Array.isArray?Array.isArray(e):\"array\"===ht(e)},dt=function(e){return void 0===e},pt=function(e){return lt(e)||ut(e)},gt=function(e){return\"function\"==typeof e},_t=function(e){return e instanceof Error},ht=function(e){return Object.prototype.toString.call(e).match(/^\\[object (.*)\\]$/)[1].toLowerCase()},ft=function(e){if(\"string\"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)};Date.now||(Date.now=function(){return(new Date).getTime()});var mt=function e(t,n,o,s){if(!pt(t)||!pt(n))return 0;for(var r,a=0,i=Object.keys(n),u=0,c=i.length;u<c;u++)if(r=i[u],!(dt(n[r])||o&&o.includes(r)))if(pt(t[r])&&pt(n[r]))a+=e(t[r],n[r],o,s);else{if(s&&s.includes(n[r]))continue;t[r]!==n[r]&&(t[r]=n[r],a+=1)}return a},vt=function(e){return JSON.stringify(e,[\"message\",\"code\"])},Mt=function(e){if(0===e.length)return 0;for(var t=0,n=0,o=\"undefined\"!=typeof document&&void 0!==document.characterSet?document.characterSet:\"UTF-8\";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===o?3:2;return n},yt=function(e){var t=e||99999999;return Math.round(Math.random()*t)},It=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\",Ct=It.length,Tt=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},Dt={},Et=function(e){return-1===e.indexOf(\"http://\")||-1===e.indexOf(\"https://\")?\"https://\"+e:e.replace(/https|http/,\"https\")},kt=function e(t){if(0===Object.getOwnPropertyNames(t).length)return Object.create(null);var o=Array.isArray(t)?[]:Object.create(null),s=\"\";for(var r in t)null!==t[r]?void 0!==t[r]?(s=n(t[r]),[\"string\",\"number\",\"function\",\"boolean\"].indexOf(s)>=0?o[r]=t[r]:o[r]=e(t[r])):o[r]=void 0:o[r]=null;return o};function St(e,t){if(!lt(e)||!lt(t))return!1;var n=!1;return t.forEach((function(t){var o=t.key,s=t.value,r=e.find((function(e){return e.key===o}));r?r.value!==s&&(r.value=s,n=!0):(e.push({key:o,value:s}),n=!0)})),n}var Lt=function(e){return e===k.GRP_AVCHATROOM},At=function(e){var t=e.type,n=e.groupID;return t===k.GRP_COMMUNITY||\"\".concat(n).startsWith(et)&&!\"\".concat(n).includes(nt)},Nt=function(e){return\"\".concat(e).startsWith(et)&&\"\".concat(e).includes(nt)},Rt=function(e){return it(e)&&e.slice(0,3)===k.CONV_C2C},Ot=function(e){return it(e)&&e.slice(0,5)===k.CONV_GROUP},Gt=function(e){return it(e)&&e===k.CONV_SYSTEM};function Ut(e,t){var n={};return Object.keys(e).forEach((function(o){n[o]=t(e[o],o)})),n}function Pt(e){return re?new Promise((function(t,n){ie.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):Ie&&9===Ce?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var o=new Image;o.onload=function(){t({width:this.width,height:this.height}),o=null},o.onerror=function(){t({width:0,height:0}),o=null},o.src=e}))}function bt(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return\"\".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function wt(){var e=\"unknown\";if(ke&&(e=\"mac\"),Ee&&(e=\"windows\"),me&&(e=\"ios\"),Me&&(e=\"android\"),re)try{var t=ie.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(n){}return e}function Ft(e,t){e=e.split(\".\"),t=t.split(\".\");for(var n=Math.max(e.length,t.length);e.length<n;)e.push(\"0\");for(;t.length<n;)t.push(\"0\");for(var o=0;o<n;o++){var s=parseInt(e[o]),r=parseInt(t[o]);if(s>r)return 1;if(s<r)return-1}return 0}function qt(e){var t=e.originUrl,n=void 0===t?void 0:t,o=e.originWidth,s=e.originHeight,r=e.min,a=void 0===r?198:r,i=parseInt(o),u=parseInt(s),c={url:void 0,width:0,height:0};if((i<=u?i:u)<=a)c.url=n,c.width=i,c.height=u;else{u<=i?(c.width=Math.ceil(i*a/u),c.height=a):(c.width=a,c.height=Math.ceil(u*a/i));var l=n&&n.indexOf(\"?\")>-1?\"\".concat(n,\"&\"):\"\".concat(n,\"?\");c.url=\"\".concat(l,198===a?\"imageView2/3/w/198/h/198\":\"imageView2/3/w/720/h/720\")}return dt(n)?(c.url,g(c,ot)):c}function xt(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Vt(e){var t=e.servcmd;return t.slice(t.indexOf(\".\")+1)}function Bt(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function Ht(e,t){return e.includes(t)}function Kt(e,t){return e.includes(t)}function Wt(e){return e.split(nt)[0]}var Yt=function(e,t,n){if(dt(t))return\"\";switch(e){case k.MSG_TEXT:return t.text;case k.MSG_IMAGE:return n?\"[Image]\":\"[图片]\";case k.MSG_LOCATION:return n?\"[Location]\":\"[位置]\";case k.MSG_AUDIO:return n?\"[Voice]\":\"[语音]\";case k.MSG_VIDEO:return n?\"[Video]\":\"[视频]\";case k.MSG_FILE:return n?\"[File]\":\"[文件]\";case k.MSG_CUSTOM:return n?\"[Custom Messages]\":\"[自定义消息]\";case k.MSG_GRP_TIP:return n?\"[Group Notification]\":\"[群提示消息]\";case k.MSG_GRP_SYS_NOTICE:return n?\"[Group System Message]\":\"[群系统通知]\";case k.MSG_FACE:return n?\"[Animated Sticker]\":\"[动画表情]\";case k.MSG_MERGER:return n?\"[Chat Record]\":\"[聊天记录]\";default:return\"\"}};function jt(e){return e===k.MSG_TEXT||e===k.MSG_CUSTOM||e===k.MSG_LOCATION||e===k.MSG_FACE}function Jt(e){var t=[];if(!it(e))return t;var n=e.length;if(0===n)return t;for(var o=n-1;o>=0;o--)\"1\"===e[o]&&t.push(Math.pow(2,n-o-1));return t}function zt(){return!Ie&&!re}function Xt(e){return\"the length of userIDList cannot exceed \".concat(e)}function Qt(e,t){if(e){var n=e;return t&&(e.startsWith(\"http://\")?n=e.replace(/^http:\\/\\/[^/]+/,t):e.startsWith(\"https://\")&&(n=e.replace(/^https:\\/\\/[^/]+/,t))),n}}var Zt=Object.prototype.hasOwnProperty;function $t(e){if(null==e)return!0;if(\"boolean\"==typeof e)return!1;if(\"number\"==typeof e)return 0===e;if(\"string\"==typeof e)return 0===e.length;if(\"function\"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return\"\"===e.message;if(ct(e)){for(var t in e)if(Zt.call(e,t))return!1;return!0}return!(!st(e)&&(n=e,\"set\"!==ht(n))&&!rt(e))&&0===e.size;var n}function en(e,t,n){if(void 0===t)return!0;var o=!0;if(ct(t))Object.keys(t).forEach((function(s){var r=1===e.length?e[0][s]:void 0;o=!!tn(r,t[s],n,s)&&o}));else if(lt(t))for(var s=0;s<t.length;s++)o=!!tn(e[s],t[s],n,t[s].name)&&o;if(o)return o;throw new Error(\"Params validate failed.\")}function tn(e,t,n,o){if(void 0===t)return!0;var s=!0;if(t.required&&$t(e)&&(Ve.e(\"[\".concat(n,'] Missing required params: \"').concat(o,'\".')),s=!1),!$t(e)){var r=ht(e),a=t.type.toLowerCase();r!==a&&(\"asyncfunction\"===r&&\"function\"===a||(Ve.e(\"[\".concat(n,'] Invalid params: type check failed for \"').concat(o,'\".Expected ').concat(t.type,\".\")),s=!1))}return t.validator&&!t.validator(e)&&(Ve.e(\"[\".concat(n,\"] Invalid params: custom validator check failed for params.\")),s=!1),s}var nn,on={UNSEND:\"unSend\",SUCCESS:\"success\",FAIL:\"fail\"},sn={NOT_START:\"notStart\",PENDING:\"pending\",RESOLVED:\"resolved\",REJECTED:\"rejected\"},rn=function(e){if(!e)return!1;if(Rt(e)||Ot(e)||Gt(e))return!0;var t=On(\"InvalidConversationID\",e);return t&&Ve.w(t),!1},an=function(e){\"\"!==e.desc&&\"\"!==On(\"API_REFER\")&&Ve.w(\"[\".concat(e.api,\"] | \").concat(e.param,\" | \").concat(e.desc,\", \").concat(On(\"API_REFER\")).concat(e.api))},un=function(){return On(\"StringRequiredLog\")},cn=function(e){return On(\"NonEmptyStringRequiredLog\",e)},ln=function(){return On(\"NumberRequiredLog\")},dn=function(){return On(\"UndefinedNotAllowedLog\")},pn=function(){return On(\"FileRequiredLog\")},gn=function(){return On(\"FunctionRequiredLog\")},_n=function(){return On(\"ArrayRequiredLog\")},hn=function(){return On(\"NonEmptyArrayLog\")},fn=function(){return On(\"CallbackMissingLog\")},mn=function(){return On(\"PositiveIntegerRequiredLog\")},vn=function(e,t){return On(\"StringNotLongerThanLog\",e,t)},Mn=function(e,t){return On(\"NumberLessThanLog\",e,t)},yn=function(e){return On(\"KeyValueStringRequiredLog\",e)},In=function(){return On(\"PlainObjectRequiredLog\")},Cn=function(){return On(\"NonEmptyContentRequiredLog\")},Tn=function(){return On(\"FileNotSelectedLog\")},Dn=function(){return On(\"MessageInstanceRequiredLog\")},En=function(){return On(\"NonAnonymousFunctionLog\")},kn=function(){return On(\"MessageExtensionNotAvailableLog\")},Sn={type:\"String\",required:!0},Ln={type:\"Array\",required:!0},An={type:\"Object\",required:!0},Nn={type:\"Boolean\",required:!0},Rn={type:\"number\",required:!0},On=null,Gn={hookGetAPITips:function(e){On=e},login:{userID:Sn,userSig:Sn},addToBlacklist:{userIDList:Ln},removeFromBlacklist:{userIDList:Ln},on:[{name:\"eventName\",type:\"String\",validator:function(e){return\"string\"==typeof e&&0!==e.length||(an({api:\"on\",param:\"eventName\",desc:cn(\"eventName\")}),!1)}},{name:\"handler\",type:\"Function\",validator:function(e){return\"function\"!=typeof e?(an({api:\"on\",param:\"handler\",desc:gn()}),!1):(\"\"===e.name&&an({api:\"on\",param:\"handler\",desc:En()}),!0)}}],once:[{name:\"eventName\",type:\"String\",validator:function(e){return\"string\"==typeof e&&0!==e.length||(an({api:\"once\",param:\"eventName\",desc:cn(\"eventName\")}),!1)}},{name:\"handler\",type:\"Function\",validator:function(e){return\"function\"!=typeof e?(an({api:\"once\",param:\"handler\",desc:gn()}),!1):(\"\"===e.name&&an({api:\"once\",param:\"handler\",desc:En()}),!0)}}],off:[{name:\"eventName\",type:\"String\",validator:function(e){return\"string\"==typeof e&&0!==e.length||(an({api:\"off\",param:\"eventName\",desc:cn(\"eventName\")}),!1)}},{name:\"handler\",type:\"Function\",validator:function(e){return\"function\"!=typeof e?(an({api:\"off\",param:\"handler\",desc:gn()}),!1):(\"\"===e.name&&an({api:\"off\",param:\"handler\",desc:En()}),!0)}}],sendMessage:[t({name:\"message\"},An)],setMessageExtensions:[t(t({name:\"message\"},An),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(an({api:\"setMessageExtensions\",param:\"message\",desc:kn()}),!1)}}),t({name:\"extensions\"},Ln)],getMessageExtensions:[t(t({name:\"message\"},An),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(an({api:\"getMessageExtensions\",param:\"message\",desc:kn()}),!1)}})],deleteMessageExtensions:[t(t({name:\"message\"},An),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(an({api:\"deleteMessageExtensions\",param:\"message\",desc:kn()}),!1)}})],getMessageList:{conversationID:t(t({},Sn),{},{validator:function(e){return rn(e)}}),nextReqMessageID:{type:\"String\"},count:{type:\"Number\",validator:function(e){return!(!dt(e)&&!/^[1-9][0-9]*$/.test(e))||(an({api:\"getMessageList\",param:\"count\",desc:mn()}),!1)}}},getMessageListHopping:{conversationID:t(t({},Sn),{},{validator:function(e){return rn(e)}}),sequence:{type:\"Number\"},time:{type:\"Number\"},direction:{type:\"Number\",validator:function(e){return!(!dt(e)&&0!==e&&1!==e)||(an({api:\"getMessageListHopping\",param:\"direction\",desc:On(\"0Or1RequiredLog\")}),!1)}},count:{type:\"Number\",validator:function(e){return!(!dt(e)&&!/^[1-9][0-9]*$/.test(e))||(an({api:\"getMessageListHopping\",param:\"count\",desc:mn}),!1)}}},setMessageRead:{conversationID:t(t({},Sn),{},{validator:function(e){return rn(e)}})},setAllMessageRead:{scope:{type:\"String\",required:!1,validator:function(e){return!e||-1!==[k.READ_ALL_C2C_MSG,k.READ_ALL_GROUP_MSG,k.READ_ALL_MSG].indexOf(e)||(an({api:\"setAllMessageRead\",param:\"scope\",desc:\"TIM.TYPES.READ_ALL_C2C_MSG or TIM.TYPES.READ_ALL_GROUP_MSG or TIM.TYPES.READ_ALL_MSG required\"}),!1)}}},getConversationProfile:[t(t({name:\"conversationID\"},Sn),{},{validator:function(e){return rn(e)}})],clearHistoryMessage:[t(t({name:\"conversationID\"},Sn),{},{validator:function(e){return rn(e)}})],pinConversation:{conversationID:t(t({},Sn),{},{validator:function(e){return rn(e)}}),isPinned:t({},Nn)},setConversationCustomData:{conversationIDList:t({},Ln),customData:{type:\"String\",validator:function(e){return it(e)?!(e.length>256)||(an({api:\"setConversationCustomData\",param:\"customData\",desc:vn(\"customData\",256)}),!1):(an({api:\"setConversationCustomData\",param:\"customData\",desc:un()}),!1)}}},markConversation:{conversationIDList:t({},Ln),markType:{type:\"number\",validator:function(e){return at(e)?e<=0?(an({api:\"markConversation\",param:\"markType\",desc:(t=\"markType\",n=0,On(\"NumberGreaterThanLog\",t,n))}),!1):!(e>=Math.pow(2,64))||(an({api:\"markConversation\",param:\"markType\",desc:Mn(\"markType\",\"Math.pow(2,64)\")}),!1):(an({api:\"markConversation\",param:\"markType\",desc:ln()}),!1);var t,n}},enableMark:t({},Nn)},createConversationGroup:{conversationIDList:t({},Ln),groupName:t(t({},Sn),{},{validator:function(e){return!!e&&(!(e.length>32)||(an({api:\"createConversationGroup\",param:\"groupName\",desc:vn(\"groupName\",32)}),!1))}})},deleteConversationGroup:[t({name:\"groupName\"},Sn)],renameConversationGroup:{oldName:t({},Sn),newName:t(t({},Sn),{},{validator:function(e){return!!e&&(!(e.length>32)||(an({api:\"renameConversationGroup\",param:\"newName\",desc:vn(\"newName\",32)}),!1))}})},addConversationsToGroup:{conversationIDList:t({},Ln),groupName:t({},Sn)},deleteConversationsFromGroup:{conversationIDList:t({},Ln),groupName:t({},Sn)},getGroupList:{groupProfileFilter:{type:\"Array\"}},getGroupProfile:{groupID:Sn,groupCustomFieldFilter:{type:\"Array\"},memberCustomFieldFilter:{type:\"Array\"}},getGroupProfileAdvance:{groupIDList:Ln},createGroup:{name:Sn},joinGroup:{groupID:Sn,type:{type:\"String\"},applyMessage:{type:\"String\"}},quitGroup:[t({name:\"groupID\"},Sn)],handleApplication:{message:An,handleAction:Sn,handleMessage:{type:\"String\"}},changeGroupOwner:{groupID:Sn,newOwnerID:Sn},updateGroupProfile:{groupID:Sn,muteAllMembers:{type:\"Boolean\"}},dismissGroup:[t({name:\"groupID\"},Sn)],searchGroupByID:[t({name:\"groupID\"},Sn)],initGroupAttributes:{groupID:Sn,groupAttributes:t(t({},An),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!it(e[n]))return an({api:\"initGroupAttributes\",param:\"groupAttributes\",desc:yn(\"value\")}),t=!1})),t}})},setGroupAttributes:{groupID:Sn,groupAttributes:t(t({},An),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!it(e[n]))return an({api:\"setGroupAttributes\",param:\"groupAttributes\",desc:yn(\"value\")}),t=!1})),t}})},deleteGroupAttributes:{groupID:Sn,keyList:{type:\"Array\",validator:function(e){if(dt(e)||!lt(e))return an({api:\"deleteGroupAttributes\",param:\"keyList\",desc:_n()}),!1;if(!$t(e)){var t=!0;return e.forEach((function(e){if(!it(e))return an({api:\"deleteGroupAttributes\",param:\"keyList\",desc:On(\"StringArrayRequiredLog\")}),t=!1})),t}return!0}}},getGroupAttributes:{groupID:Sn,keyList:{type:\"Array\",validator:function(e){if(dt(e)||!lt(e))return an({api:\"getGroupAttributes\",param:\"keyList\",desc:_n()}),!1;if(!$t(e)){var t=!0;return e.forEach((function(e){if(!it(e))return an({api:\"getGroupAttributes\",param:\"keyList\",desc:yn(\"key\")}),t=!1})),t}return!0}}},setGroupCounters:{groupID:Sn,counters:An},increaseGroupCounter:{groupID:Sn,key:Sn,value:Rn},decreaseGroupCounter:{groupID:Sn,key:Sn,value:Rn},getGroupCounters:{groupID:Sn},getGroupMemberList:{groupID:Sn,count:{type:\"Number\"}},getGroupMemberProfile:{groupID:Sn,userIDList:Ln,memberCustomFieldFilter:{type:\"Array\"}},addGroupMember:{groupID:Sn,userIDList:Ln},setGroupMemberRole:{groupID:Sn,userID:Sn,role:Sn},setGroupMemberMuteTime:{groupID:Sn,userID:Sn,muteTime:{type:\"Number\",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:Sn,userID:{type:\"String\"},nameCard:{type:\"String\",validator:function(e){return it(e)?(e.length,!0):(an({api:\"setGroupMemberNameCard\",param:\"nameCard\",desc:un()}),!1)}}},setGroupMemberCustomField:{groupID:Sn,userID:{type:\"String\"},memberCustomField:Ln},deleteGroupMember:{groupID:Sn},markGroupMemberList:{groupID:Sn,markType:{type:\"number\",validator:function(e){return at(e)?!(e<1e3)||(an({api:\"markGroupMemberList\",param:\"markType\",desc:(t=\"markType\",n=1e3,On(\"NumberGreaterOrEqualLog\",t,n))}),!1):(an({api:\"markGroupMemberList\",param:\"markType\",desc:ln()}),!1);var t,n}},userIDList:t({},Ln),enableMark:t({},Nn)},createTextMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){return ct(e)?it(e.text)?0!==e.text.length||(an({api:\"createTextMessage\",param:\"payload.text\",desc:Cn()}),!1):(an({api:\"createTextMessage\",param:\"payload.text\",desc:un()}),!1):(an({api:\"createTextMessage\",param:\"payload\",desc:In()}),!1)}})},createTextAtMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){return ct(e)?it(e.text)?0===e.text.length?(an({api:\"createTextAtMessage\",param:\"payload.text\",desc:Cn()}),!1):!(e.atUserList&&!lt(e.atUserList))||(an({api:\"createTextAtMessage\",param:\"payload.atUserList\",desc:_n()}),!1):(an({api:\"createTextAtMessage\",param:\"payload.text\",desc:un()}),!1):(an({api:\"createTextAtMessage\",param:\"payload\",desc:In()}),!1)}})},createCustomMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){return ct(e)?e.data&&!it(e.data)?(an({api:\"createCustomMessage\",param:\"payload.data\",desc:un()}),!1):e.description&&!it(e.description)?(an({api:\"createCustomMessage\",param:\"payload.description\",desc:un()}),!1):!(e.extension&&!it(e.extension))||(an({api:\"createCustomMessage\",param:\"payload.extension\",desc:un()}),!1):(an({api:\"createCustomMessage\",param:\"payload\",desc:In()}),!1)}})},createImageMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){if(!ct(e))return an({api:\"createImageMessage\",param:\"payload\",desc:In()}),!1;if(dt(e.file))return an({api:\"createImageMessage\",param:\"payload.file\",desc:dn()}),!1;if(ae){if(!(e.file instanceof HTMLInputElement||rt(e.file)))return ct(e.file)&&\"undefined\"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(an({api:\"createImageMessage\",param:\"payload.file\",desc:Tn()}),!1):(an({api:\"createImageMessage\",param:\"payload.file\",desc:pn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return an({api:\"createImageMessage\",param:\"payload.file\",desc:Tn()}),!1}return!0},onProgress:{type:\"Function\",required:!1,validator:function(e){return dt(e)&&an({api:\"createImageMessage\",param:\"onProgress\",desc:fn()}),!0}}})},createAudioMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){return!!ct(e)||(an({api:\"createAudioMessage\",param:\"payload\",desc:In()}),!1)}}),onProgress:{type:\"Function\",required:!1,validator:function(e){return dt(e)&&an({api:\"createAudioMessage\",param:\"onProgress\",desc:fn()}),!0}}},createVideoMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){if(!ct(e))return an({api:\"createVideoMessage\",param:\"payload\",desc:In()}),!1;if(dt(e.file))return an({api:\"createVideoMessage\",param:\"payload.file\",desc:dn()}),!1;if(ae){if(!(e.file instanceof HTMLInputElement||rt(e.file)))return ct(e.file)&&\"undefined\"!=typeof uni?!!rt(e.file.tempFile)||(an({api:\"createVideoMessage\",param:\"payload.file\",desc:Tn()}),!1):(an({api:\"createVideoMessage\",param:\"payload.file\",desc:pn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return an({api:\"createVideoMessage\",param:\"payload.file\",desc:Tn()}),!1}return!0}}),onProgress:{type:\"Function\",required:!1,validator:function(e){return dt(e)&&an({api:\"createVideoMessage\",param:\"onProgress\",desc:fn()}),!0}}},createFaceMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){return ct(e)?at(e.index)?!!it(e.data)||(an({api:\"createFaceMessage\",param:\"payload.data\",desc:un()}),!1):(an({api:\"createFaceMessage\",param:\"payload.index\",desc:ln()}),!1):(an({api:\"createFaceMessage\",param:\"payload\",desc:In()}),!1)}})},createFileMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){if(!ct(e))return an({api:\"createFileMessage\",param:\"payload\",desc:In()}),!1;if(dt(e.file))return an({api:\"createFileMessage\",param:\"payload.file\",desc:dn()}),!1;if(ae){if(!(e.file instanceof HTMLInputElement||rt(e.file)))return ct(e.file)&&\"undefined\"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(an({api:\"createFileMessage\",param:\"payload.file\",desc:Tn()}),!1):(an({api:\"createFileMessage\",param:\"payload.file\",desc:pn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return an({api:\"createFileMessage\",param:\"payload.file\",desc:Tn()}),!1}return!0}}),onProgress:{type:\"Function\",required:!1,validator:function(e){return dt(e)&&an({api:\"createFileMessage\",param:\"onProgress\",desc:fn()}),!0}}},createLocationMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){return ct(e)?it(e.description)?at(e.longitude)?!!at(e.latitude)||(an({api:\"createLocationMessage\",param:\"payload.latitude\",desc:ln()}),!1):(an({api:\"createLocationMessage\",param:\"payload.longitude\",desc:ln()}),!1):(an({api:\"createLocationMessage\",param:\"payload.description\",desc:un()}),!1):(an({api:\"createLocationMessage\",param:\"payload\",desc:In()}),!1)}})},createMergerMessage:{to:Sn,conversationType:Sn,payload:t(t({},An),{},{validator:function(e){if($t(e.messageList))return an({api:\"createMergerMessage\",param:\"payload.messageList\",desc:hn()}),!1;if($t(e.compatibleText))return an({api:\"createMergerMessage\",param:\"payload.compatibleText\",desc:cn(\"compatibleText\")}),!1;var t=!1;return e.messageList.forEach((function(e){e.status===on.FAIL&&(t=!0)})),!t||(an({api:\"createMergerMessage\",param:\"payload.messageList\",desc:On(\"MergeFailedMessageLog\")}),!1)}})},revokeMessage:[t(t({name:\"message\"},An),{},{validator:function(e){return $t(e)?(an({api:\"revokeMessage\",param:\"message\",desc:Dn()}),!1):e.conversationType===k.CONV_SYSTEM?(an({api:\"revokeMessage\",param:\"message\",desc:On(\"MessageCanBeRevokedDesc\")}),!1):!0!==e.isRevoked||(an({api:\"revokeMessage\",param:\"message\",desc:On(\"MessageRevokedLog\")}),!1)}})],deleteMessage:[t(t({name:\"messageList\"},Ln),{},{validator:function(e){return!$t(e)||(an({api:\"deleteMessage\",param:\"messageList\",desc:hn()}),!1)}})],translateText:{sourceTextList:Ln,sourceLanguage:Sn,targetLanguage:Sn},modifyMessage:[t(t({name:\"message\"},An),{},{validator:function(e){return $t(e)?(an({api:\"modifyMessage\",param:\"message\",desc:Dn()}),!1):e.conversationType===k.CONV_SYSTEM?(an({api:\"modifyMessage\",param:\"message\",desc:On(\"MessageCanBeModifiedLog\")}),!1):!0!==e._onlineOnlyFlag||(an({api:\"modifyMessage\",param:\"message\",desc:On(\"OnlineMessageNotSupportLog\")}),!1)}})],getUserProfile:{userIDList:{type:\"Array\",validator:function(e){return lt(e)?(0===e.length&&an({api:\"getUserProfile\",param:\"userIDList\",desc:hn()}),!0):(an({api:\"getUserProfile\",param:\"userIDList\",desc:_n()}),!1)}}},updateMyProfile:{profileCustomField:{type:\"Array\",validator:function(e){return!!dt(e)||(!!lt(e)||(an({api:\"updateMyProfile\",param:\"profileCustomField\",desc:_n()}),!1))}}},setSelfStatus:{customStatus:{type:\"String\",validator:function(e){return!!it(e)||(an({api:\"setSelfStatus\",param:\"customStatus\",desc:un()}),!1)}}},getUserStatus:{userIDList:{type:\"Array\",validator:function(e){return lt(e)?0!==e.length||(an({api:\"getUserStatus\",param:\"userIDList\",desc:hn()}),!1):(an({api:\"getUserStatus\",param:\"userIDList\",desc:_n()}),!1)}}},subscribeUserStatus:{userIDList:{type:\"Array\",validator:function(e){return lt(e)?0!==e.length||(an({api:\"subscribeUserStatus\",param:\"userIDList\",desc:hn()}),!1):(an({api:\"subscribeUserStatus\",param:\"userIDList\",desc:_n()}),!1)}}},unsubscribeUserStatus:{userIDList:{type:\"Array\",validator:function(e){return!e||(!!lt(e)||(an({api:\"subscribeUserStatus\",param:\"userIDList\",desc:_n()}),!1))}}},addFriend:{to:Sn,source:{type:\"String\",required:!0,validator:function(e){return!!e&&(e.startsWith(\"AddSource_Type_\")?!(e.replace(\"AddSource_Type_\",\"\").length>8)||(an({api:\"addFriend\",param:\"source\",desc:vn(\"keyword\",8)}),!1):(an({api:\"addFriend\",param:\"source\",desc:On(\"SourcePrefixLog\")}),!1))}},remark:{type:\"String\",required:!1,validator:function(e){return!(it(e)&&e.length>96)||(an({api:\"addFriend\",param:\"remark\",desc:vn(\"remark\",96)}),!1)}}},deleteFriend:{userIDList:Ln},checkFriend:{userIDList:Ln},getFriendProfile:{userIDList:Ln},updateFriend:{userID:Sn,remark:{type:\"String\",required:!1,validator:function(e){return!(it(e)&&e.length>96)||(an({api:\"updateFriend\",param:\"remark\",desc:vn(\"remark\",96)}),!1)}},friendCustomField:{type:\"Array\",required:!1,validator:function(e){if(e){if(!lt(e))return an({api:\"updateFriend\",param:\"friendCustomField\",desc:_n()}),!1;var t=!0;return e.forEach((function(e){return it(e.key)&&-1!==e.key.indexOf(\"Tag_SNS_Custom\")?it(e.value)?e.key.replace(\"Tag_SNS_Custom_\",\"\").length>8?(an({api:\"updateFriend\",param:\"friendCustomField\",desc:vn(\"keyword\",8)}),t=!1):void 0:(an({api:\"updateFriend\",param:\"friendCustomField\",desc:yn(\"value\")}),t=!1):(an({api:\"updateFriend\",param:\"friendCustomField\",desc:On(\"FriendCustomFieldPrefixLog\")}),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:Sn},refuseFriendApplication:{userID:Sn},deleteFriendApplication:{userID:Sn},createFriendGroup:{name:Sn},deleteFriendGroup:{name:Sn},addToFriendGroup:{name:Sn,userIDList:Ln},removeFromFriendGroup:{name:Sn,userIDList:Ln},renameFriendGroup:{oldName:Sn,newName:Sn},sendMessageReadReceipt:[{name:\"messageList\",type:\"Array\",validator:function(e){return lt(e)?0!==e.length||(an({api:\"sendMessageReadReceipt\",param:\"messageList\",desc:hn()}),!1):(an({api:\"sendMessageReadReceipt\",param:\"messageList\",desc:_n()}),!1)}}],getMessageReadReceiptList:[{name:\"messageList\",type:\"Array\",validator:function(e){return lt(e)?0!==e.length||(an({api:\"getMessageReadReceiptList\",param:\"messageList\",desc:hn()}),!1):(an({api:\"getMessageReadReceiptList\",param:\"messageList\",desc:_n()}),!1)}}],createTopicInCommunity:{groupID:Sn,topicName:Sn},deleteTopicFromCommunity:{groupID:Sn,topicIDList:{type:\"Array\",validator:function(e){return!e||(!!lt(e)||(an({api:\"deleteTopicFromCommunity\",param:\"topicIDList\",desc:_n()}),!1))}}},updateTopicProfile:{groupID:Sn,topicID:Sn},getTopicList:{groupID:Sn,topicIDList:{type:\"Array\",validator:function(e){return!e||(!!lt(e)||(an({api:\"getTopicList\",param:\"topicIDList\",desc:_n()}),!1))}}}},Un={login:1,logout:1,on:1,once:1,off:1,setLogLevel:1,registerPlugin:1,destroy:1,createTextMessage:1,createTextAtMessage:1,createImageMessage:1,createAudioMessage:1,createVideoMessage:1,createCustomMessage:1,createFaceMessage:1,createFileMessage:1,createLocationMessage:1,createMergerMessage:1,downloadMergerMessage:1,createForwardMessage:1,sendMessage:1,resendMessage:1,revokeMessage:1,deleteMessage:1,translateText:1,modifyMessage:1,sendMessageReadReceipt:1,getGroupMessageReadMemberList:1,getMessageReadReceiptList:1,setMessageExtensions:1,getMessageExtensions:1,deleteMessageExtensions:1,getMessageList:1,findMessage:1,getMessageListHopping:1,setMessageRead:1,setAllMessageRead:1,getConversationList:1,getConversationProfile:1,deleteConversation:1,pinConversation:1,getTotalUnreadMessageCount:1,setConversationCustomData:1,markConversation:1,createConversationGroup:1,getConversationGroupList:1,deleteConversationGroup:1,renameConversationGroup:1,addConversationsToGroup:1,deleteConversationsFromGroup:1,clearHistoryMessage:1,getGroupList:1,getGroupProfile:1,createGroup:1,joinGroup:1,updateGroupProfile:1,quitGroup:1,dismissGroup:1,changeGroupOwner:1,searchGroupByID:1,setMessageRemindType:1,getGroupApplicationList:1,handleGroupApplication:1,initGroupAttributes:1,setGroupAttributes:1,deleteGroupAttributes:1,getGroupAttributes:1,setGroupCounters:1,increaseGroupCounter:1,decreaseGroupCounter:1,getGroupCounters:1,getJoinedCommunityList:1,createTopicInCommunity:1,deleteTopicFromCommunity:1,updateTopicProfile:1,getTopicList:1,getGroupMemberProfile:1,getGroupMemberList:1,addGroupMember:1,deleteGroupMember:1,setGroupMemberNameCard:1,setGroupMemberMuteTime:1,setGroupMemberRole:1,setGroupMemberCustomField:1,getGroupOnlineMemberCount:1,markGroupMemberList:1,getMyProfile:1,getUserProfile:1,updateMyProfile:1,setSelfStatus:1,getUserStatus:1,subscribeUserStatus:1,unsubscribeUserStatus:1,getBlacklist:1,addToBlacklist:1,removeFromBlacklist:1,getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,updateFriend:1,getFriendProfile:1,getFriendApplicationList:1,refuseFriendApplication:1,deleteFriendApplication:1,acceptFriendApplication:1,setFriendApplicationRead:1,getFriendGroupList:1,createFriendGroup:1,renameFriendGroup:1,deleteFriendGroup:1,addToFriendGroup:1,removeFromFriendGroup:1,callExperimentalAPI:1},Pn=1,bn=2,wn=3,Fn=4,qn=6,xn=7,Vn=8,Bn=9,Hn=10,Kn=11,Wn=12,Yn=13,jn=14,Jn=15,zn=16,Xn=17,Qn=18,Zn=19,$n=20,eo=21,to=22,no=23,oo=24,so=25,ro=26,ao=27,io=28,uo=29,co=30,lo=31,po=32,go=function(){function e(t){o(this,e),this._m=t,this._n=\"\"}return r(e,[{key:\"isLoggedIn\",value:function(){return this._m.getModule(Wn).isLoggedIn()}},{key:\"isOversea\",value:function(){return this._m.getModule(Wn).isOversea()}},{key:\"isPrivateNetWork\",value:function(){return this._m.getModule(Wn).isPrivateNetWork()}},{key:\"getFileDownloadProxy\",value:function(){return this._m.getModule(Wn).getFileDownloadProxy()}},{key:\"getMyUserID\",value:function(){return this._m.getModule(Wn).getUserID()}},{key:\"getMyTinyID\",value:function(){return this._m.getModule(Wn).getTinyID()}},{key:\"getSDKAppID\",value:function(){return this._m.getModule(Wn).getSDKAppID()}},{key:\"isIntl\",value:function(){return this._m.getModule(Wn).isIntl()}},{key:\"isDevMode\",value:function(){return this._m.getModule(Wn).isDevMode()}},{key:\"getModule\",value:function(e){return this._m.getModule(e)}},{key:\"getPlatform\",value:function(){return ge}},{key:\"getNetworkType\",value:function(){return this._m.getModule(Jn).getNetworkType()}},{key:\"probeNetwork\",value:function(e){return this._m.getModule(Jn).probe(e)}},{key:\"getCloudConfig\",value:function(e){return this._m.getModule(no).getCloudConfig(e)}},{key:\"emitOuterEvent\",value:function(e,t){this._m.getOuterEmitterInstance().emit(e,t)}},{key:\"emitInnerEvent\",value:function(e,t){this._m.getInnerEmitterInstance().emit(e,t)}},{key:\"getInnerEmitterInstance\",value:function(){return this._m.getInnerEmitterInstance()}},{key:\"generateTjgID\",value:function(e){return this._m.getModule(Wn).getTinyID()+\"-\"+e.random}},{key:\"filterModifiedMessage\",value:function(e){if(!$t(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(E.MESSAGE_MODIFIED,t)}}},{key:\"filterUnmodifiedMessage\",value:function(e){return $t(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:\"request\",value:function(e){return this._m.getModule($n).request(e)}},{key:\"canIUse\",value:function(e){return this._m.getModule(ao).canIUse(e)}},{key:\"getErrorMessage\",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:\"outputWarning\",value:function(e,t,n){var o=this.getErrorMessage(e,t,n);o&&Ve.w(o)}}]),e}(),_o=\"wslogin\",ho=\"wslogout\",fo=\"wshello\",mo=\"KickOther\",vo=\"getmsg\",Mo=\"authkey\",yo=\"sendmsg\",Io=\"send_group_msg\",Co=\"portrait_get_all\",To=\"portrait_set\",Do=\"black_list_get\",Eo=\"black_list_add\",ko=\"black_list_delete\",So=\"friend_get\",Lo=\"friend_get_specified\",Ao=\"friend_check\",No=\"friend_delete\",Ro=\"friend_add\",Oo=\"friend_update\",Go=\"friend_response\",Uo=\"pendency_get\",Po=\"pendency_delete\",bo=\"pendency_report\",wo=\"group_get\",Fo=\"group_add\",qo=\"group_delete\",xo=\"group_update\",Vo=\"msgwithdraw\",Bo=\"msgreaded\",Ho=\"set_c2c_peer_mute_notifications\",Ko=\"get_c2c_peer_mute_notifications\",Wo=\"getroammsg\",Yo=\"get_peer_read_time\",jo=\"delete_c2c_msg_ramble\",Jo=\"modify_c2c_msg\",zo=\"set_key_values\",Xo=\"get_key_values\",Qo=\"page_get\",Zo=\"get\",$o=\"batch_delete\",es=\"clear_msg\",ts=\"top\",ns=\"deletemsg\",os=\"set_conv_custom_data\",ss=\"mark_contact\",rs=\"create_contact_group\",as=\"del_contact_group\",is=\"update_contact_group\",us=\"add_conv_to_group\",cs=\"del_conv_from_group\",ls=\"get_contact_group\",ds=\"get_joined_group_list\",ps=\"get_group_self_member_info\",gs=\"create_group\",_s=\"destroy_group\",hs=\"modify_group_base_info\",fs=\"apply_join_group\",ms=\"apply_join_group_noauth\",vs=\"quit_group\",Ms=\"get_group_public_info\",ys=\"change_group_owner\",Is=\"handle_apply_join_group\",Cs=\"handle_invite_join_permission_group\",Ts=\"handle_invite_join_group\",Ds=\"group_msg_recall\",Es=\"msg_read_report\",ks=\"read_all_unread_msg\",Ss=\"group_msg_get\",Ls=\"get_group_msg_receipt\",As=\"group_msg_receipt\",Ns=\"c2c_msg_read_receipt\",Rs=\"get_group_msg_receipt_detail\",Os=\"get_pendency\",Gs=\"deletemsg\",Us=\"get_msg\",Ps=\"get_msg_noauth\",bs=\"get_online_member_num\",ws=\"delete_group_ramble_msg_by_seq\",Fs=\"modify_group_msg\",qs=\"set_group_attr\",xs=\"modify_group_attr\",Vs=\"delete_group_attr\",Bs=\"clear_group_attr\",Hs=\"get_group_attr\",Ks=\"group_set_key_values\",Ws=\"group_get_key_values\",Ys=\"get_group_notify\",js=\"update_group_counter\",Js=\"get_group_counter\",zs=\"get_group_member_info\",Xs=\"get_members\",Qs=\"get_specified_group_member_info\",Zs=\"add_group_member\",$s=\"delete_group_member\",er=\"ban_group_member\",tr=\"modify_group_member_info\",nr=\"modify_user_info\",or=\"cos\",sr=\"pre_sig\",rr=\"video_cover\",ar=\"tim_web_report_v2\",ir=\"alive\",ur=\"msg_push\",cr=\"multi_msg_push_ws\",lr=\"ws_msg_push_ack\",dr=\"stat_forceoffline\",pr=\"save_relay_json_msg\",gr=\"get_relay_json_msg\",_r=\"fetch_config\",hr=\"push_configv2\",fr=\"fetch_imsdk_purchase_bitsv2\",mr=\"push_imsdk_purchase_bitsv2\",vr=\"notify2\",Mr=\"create_topic\",yr=\"destroy_topic\",Ir=\"modify_topic\",Cr=\"get_topic\",Tr=\"ws_set_custom_status\",Dr=\"ws_get_user_status\",Er=\"ws_status_subscribe\",kr=\"ws_status_unsubscribe\",Sr=\"ws_stat_background\",Lr=\"ws_stat_foreground\",Ar=\"ws_stat_settoken\",Nr=\"get_local_words\",Rr=\"ws_batch_trans_text\",Or={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM:2101,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,READ_RECEIPT_MESSAGE_LIST_EMPTY:2114,MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL:2115,CANNOT_DELETE_GROUP_SYSTEM_NOTICE:2116,TRANSLATE_TEXT_FAIL:2117,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_MODIFY_CONFLICT:2480,MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM:2481,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,INVALID_CONVERSATION_ID:2503,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_FIND_GROUP:2603,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_WORK:2622,MEMBER_NOT_IN_GROUP:2623,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,BAN_DURATION_INVALID:2686,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,CANNOT_ADD_SELF_TO_BLACKLIST:2742,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NO_NETWORK:2805,UNCAUGHT_ERROR:2903,INVALID_OPERATION:2905,INVALID_TRTC_CMD:2995,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,KICKED_OUT_REST_API:3006,ILLEGAL_TOPIC_ID:3021,CANNOT_USE_COMMERCIAL_ABILITY:3122,PROFANITY_FOUND:3123,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},Gr=\"networkRTT\",Ur=\"messageE2EDelay\",Pr=\"sendMessageC2C\",br=\"sendMessageGroup\",wr=\"sendMessageGroupAV\",Fr=\"sendMessageRichMedia\",qr=\"cosUpload\",xr=\"messageReceivedGroup\",Vr=\"messageReceivedGroupAVPush\",Br=\"messageReceivedGroupAVPull\",Hr=(a(nn={},Gr,2),a(nn,Ur,3),a(nn,Pr,4),a(nn,br,5),a(nn,wr,6),a(nn,Fr,7),a(nn,xr,8),a(nn,Vr,9),a(nn,Br,10),a(nn,qr,11),nn),Kr={info:4,warning:5,error:6},Wr={wifi:1,\"2g\":2,\"3g\":3,\"4g\":4,\"5g\":5,unknown:6,none:7,online:8},Yr={login:4},jr=function(){function e(t){o(this,e),this._n=\"SSOLogData\",this.eventType=Yr[t]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message=\"\",this.moreMessage=\"\",this.extension=t,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=Pe()}return r(e,[{key:\"updateTimeStamp\",value:function(){this.timestamp=Pe()}},{key:\"start\",value:function(e){return this._startts=e,this}},{key:\"end\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=Pe();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage(\"startts:\".concat(this._startts,\" endts:\").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:\"setError\",value:function(e,t,n){if(!(e instanceof Error))return Ve.w(\"\".concat(this._n,\".setError value not instanceof Error, please check!\")),this;if(this._sentFlag)return this;if(this.setNetworkType(n),t)e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message);else{var o=Or.NO_NETWORK;this.setCode(o)}return this.setLevel(\"error\"),this}},{key:\"setCode\",value:function(e){return dt(e)||this._sentFlag||(\"ECONNABORTED\"===e&&(this.code=103),at(e)?this.code=e:Ve.w(\"\".concat(this._n,\".setCode value not a number, please check!\"),e,n(e))),this}},{key:\"setMessage\",value:function(e){return dt(e)||this._sentFlag||(at(e)&&(this.message=e.toString()),it(e)&&(this.message=e)),this}},{key:\"setCostTime\",value:function(e){return this.costTime=e,this}},{key:\"setLevel\",value:function(e){return dt(e)||this._sentFlag||(this.level=Kr[e]),this}},{key:\"setMoreMessage\",value:function(e){return $t(this.moreMessage)?this.moreMessage=\"\".concat(e):this.moreMessage+=\" \".concat(e),this}},{key:\"setNetworkType\",value:function(e){if(dt(e))Ve.w(\"\".concat(this._n,\".setNetworkType value is undefined, please check!\"));else{var t=Wr[e.toLowerCase()];dt(t)||(this.networkType=t)}return this}},{key:\"getStartTs\",value:function(){return this._startts}},{key:\"setUIPlatform\",value:function(e){this.uiPlatform=e}}],[{key:\"bindEventStatModule\",value:function(t){e.prototype._eventStatModule=t}}]),e}(),Jr=function(){function e(t){o(this,e),this.type=k.MSG_TEXT,this.content={text:t.text||\"\"}}return r(e,[{key:\"setText\",value:function(e){this.content.text=e}},{key:\"sendable\",value:function(){return 0!==this.content.text.length}}]),e}(),zr=function(){function e(t,n){o(this,e),this._imageMemoryURL=\"\",this._fileDownloadProxy=n,re?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=k.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||Be.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._autoFixUrl()}return r(e,[{key:\"_initImageInfoModel\",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=yt(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||\"\",this.url=Qt(t.url||e._imageMemoryURL,e._fileDownloadProxy)},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:\"initImageInfoArray\",value:function(e){for(var t=0,n=null,o=null;t<=2;)o=dt(e)||dt(e[t])?{type:0,size:0,width:0,height:0,url:\"\"}:e[t],(n=new this._ImageInfoModel(o)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:\"updateImageInfoArray\",value:function(e){for(var t,n=this.content.imageInfoArray.length,o=0;o<n;o++)t=this.content.imageInfoArray[o],e[o].size&&(t.size=e[o].size),e[o].url&&t.setImageUrl(e[o].url),e[o].width&&(t.width=e[o].width),e[o].height&&(t.height=e[o].height)}},{key:\"_autoFixUrl\",value:function(){for(var e=this.content.imageInfoArray.length,t=\"\",n=\"\",o=[\"http\",\"https\"],s=null,r=0;r<e;r++)this.content.imageInfoArray[r].url&&\"\"!==(s=this.content.imageInfoArray[r]).imageUrl&&(n=s.imageUrl.slice(0,s.imageUrl.indexOf(\"://\")+1),t=s.imageUrl.slice(s.imageUrl.indexOf(\"://\")+1),o.indexOf(n)<0&&(n=\"https:\"),this.content.imageInfoArray[r].setImageUrl([n,t].join(\"\")))}},{key:\"updatePercent\",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:\"updateImageFormat\",value:function(e){this.content.imageFormat=Be[e.toUpperCase()]||Be.UNKNOWN}},{key:\"createImageDataASURLInWeb\",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:\"createImageDataASURLInWXMiniApp\",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:\"replaceImageInfo\",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:\"addImageInfo\",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:\"updateAccessSideImageInfoArray\",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,o=void 0===n?0:n,s=t.height,r=void 0===s?0:s;0!==o&&0!==r&&(xt(e),Object.assign(e[2],qt({originWidth:o,originHeight:r,min:720})))}},{key:\"sendable\",value:function(){return 0!==this.content.imageInfoArray.length&&(\"\"!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size)}}]),e}(),Xr=function(){function e(t){o(this,e),this.type=k.MSG_FACE,this.content=t||null}return r(e,[{key:\"sendable\",value:function(){return null!==this.content}}]),e}(),Qr=function(){function e(t,n){o(this,e),this.type=k.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:Qt(t.url,n),remoteAudioUrl:t.url||\"\",uuid:t.uuid}}return r(e,[{key:\"updatePercent\",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:\"updateAudioUrl\",value:function(e){this.content.remoteAudioUrl=e}},{key:\"sendable\",value:function(){return\"\"!==this.content.remoteAudioUrl}}]),e}(),Zr={from:!0,groupID:!0,groupName:!0,to:!0},$r=function(){function e(t){o(this,e),this.type=k.MSG_GRP_TIP,this.content={},this._initContent(t)}return r(e,[{key:\"_initContent\",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case\"remarkInfo\":break;case\"groupProfile\":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case\"operatorInfo\":break;case\"memberInfoList\":case\"msgMemberInfo\":t._updateMemberList(e[n]);break;case\"memberExtraInfo\":case\"onlineMemberInfo\":break;case\"memberNum\":t.content[n]=e[n],t.content.memberCount=e[n];break;case\"newGroupProfile\":t.content.newGroupProfile={},t._initNewGroupProfile(e[n]);break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:\"_initGroupProfile\",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var o=t[n];Zr[o]&&(this.content.groupProfile[o]=e[o])}}},{key:\"_updateMemberList\",value:function(e){$t(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}},{key:\"_initNewGroupProfile\",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var o=t[n];\"muteAllMembers\"!==o?this.content.newGroupProfile[o]=e[o]:this.content.newGroupProfile[o]=1===e[o]}}}]),e}(),ea={from:!0,groupID:!0,groupName:!0,to:!0},ta=function(){function e(t){o(this,e),this.type=k.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return r(e,[{key:\"_initContent\",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case\"memberInfoList\":break;case\"remarkInfo\":t.content.handleMessage=e[n];break;case\"groupProfile\":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:\"_initGroupProfile\",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var o=t[n];ea[o]&&(\"groupName\"===o?this.content.groupProfile.name=e[o]:this.content.groupProfile[o]=e[o])}}}]),e}(),na=function(){function e(t,n){o(this,e),this.type=k.MSG_FILE,this._percent=0;var s=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:Qt(t.url,n)||\"\",uuid:t.uuid,fileName:s.name||\"\",fileSize:s.size||0}}return r(e,[{key:\"_getFileInfo\",value:function(e){if(!dt(e.fileName)&&!dt(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(oe){if(t.path&&-1!==t.path.indexOf(\".\")){var n=t.path.slice(t.path.lastIndexOf(\".\")+1).toLowerCase();t.type=n,t.name||(t.name=\"\".concat(yt(999999),\".\").concat(n))}t.name||(t.type=\"\",t.name=t.path.slice(t.path.lastIndexOf(\"/\")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:\"updatePercent\",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:\"updateFileUrl\",value:function(e){this.content.fileUrl=e}},{key:\"sendable\",value:function(){return\"\"!==this.content.fileUrl&&(\"\"!==this.content.fileName&&0!==this.content.fileSize)}}]),e}(),oa=function(){function e(t){o(this,e),this.type=k.MSG_CUSTOM,this.content={data:t.data||\"\",description:t.description||\"\",extension:t.extension||\"\"}}return r(e,[{key:\"setData\",value:function(e){return this.content.data=e,this}},{key:\"setDescription\",value:function(e){return this.content.description=e,this}},{key:\"setExtension\",value:function(e){return this.content.extension=e,this}},{key:\"sendable\",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),sa=function(){function e(t,n){o(this,e),this.type=k.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||\"\",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:Qt(t.videoUrl,n),videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:Qt(t.thumbUrl,n),snapshotUrl:Qt(t.thumbUrl,n)}}return r(e,[{key:\"updatePercent\",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:\"updateVideoUrl\",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:\"updateSnapshotInfo\",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,o=e.snapshotHeight;$t(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),$t(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),$t(o)||(this.content.thumbHeight=this.content.snapshotHeight=Number(o))}},{key:\"sendable\",value:function(){return\"\"!==this.content.remoteVideoUrl}}]),e}(),ra=function(){function e(t){o(this,e),this.type=k.MSG_LOCATION;var n=t.description,s=t.longitude,r=t.latitude;this.content={description:n,longitude:s,latitude:r}}return r(e,[{key:\"sendable\",value:function(){return!0}}]),e}(),aa=function(){function e(t,n){if(o(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||\"\",this.clientTime=t.clientTime||void 0,t.ID)this.ID=t.ID||\"\",this.nick=t.nick||\"\",this.avatar=t.avatar||\"\",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(k.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(k.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||\"\",this.avatar=t.avatar||\"\",this.messageBody=[];var s=t.elements[0].type,r=t.elements[0].content;this._patchRichMediaPayload(s,r),this._updateRichMediaDownloadUrl(s,r,n),s===k.MSG_MERGER?this.messageBody.push({type:s,payload:new ia(r).content}):this.messageBody.push({type:s,payload:r}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to),this.ID=\"\".concat(t.tinyID,\"-\").concat(t.clientTime,\"-\").concat(t.random)}}return r(e,[{key:\"_patchRichMediaPayload\",value:function(e,t){e===k.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===k.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===k.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===k.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}},{key:\"_updateRichMediaDownloadUrl\",value:function(e,t,n){n&&(e===k.MSG_IMAGE?t.imageInfoArray.forEach((function(e){e.url=Qt(e.url,n)})):e===k.MSG_VIDEO?(t.videoUrl=Qt(t.videoUrl,n),t.snapshotUrl=Qt(t.thumbUrl,n),t.snapshotHeight=t.thumbHeight,t.snapshotWidth=t.thumbWidth):e===k.MSG_AUDIO?t.url=Qt(t.url,n):e===k.MSG_FILE&&(t.fileUrl=Qt(t.fileUrl,n)))}}]),e}(),ia=function(){function e(t,n){if(o(this,e),this.type=k.MSG_MERGER,this.content={downloadKey:\"\",pbDownloadKey:\"\",messageList:[],title:\"\",abstractList:[],compatibleText:\"\",version:0,layersOverLimit:!1},t.downloadKey){var s=t.downloadKey,r=t.pbDownloadKey,a=t.title,i=t.abstractList,u=t.compatibleText,c=t.version;this.content.downloadKey=s,this.content.pbDownloadKey=r,this.content.title=a,this.content.abstractList=i,this.content.compatibleText=u,this.content.version=c||0}else if($t(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var l=t.messageList,d=t.title,p=t.abstractList,g=t.compatibleText,_=t.version,h=[];l.forEach((function(e){if(!$t(e)){var t=new aa(e,n);h.push(t)}})),this.content.messageList=h,this.content.title=d,this.content.abstractList=p,this.content.compatibleText=g,this.content.version=_||0}}return r(e,[{key:\"sendable\",value:function(){return!$t(this.content.messageList)||!$t(this.content.downloadKey)}}]),e}(),ua={1:k.MSG_PRIORITY_HIGH,2:k.MSG_PRIORITY_NORMAL,3:k.MSG_PRIORITY_LOW,4:k.MSG_PRIORITY_LOWEST},ca=function(){function e(t){o(this,e),this.ID=\"\",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||k.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:yt(),this.priority=this._computePriority(t.priority),this.nick=t.nick||\"\",this.avatar=t.avatar||\"\",this.isPeerRead=!1,this.nameCard=\"\",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow=\"\",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||\"JSON\",this.isResend=!1,this.isRead=!1,this.status=t.status||on.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||\"\",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||we()||0,this.senderTinyID=t.senderTinyID||t.tinyID||\"\",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0,isPeerRead:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.version=t.messageVersion||0,this.isBroadcastMessage=t.isBroadcastMessage||!1,this._receiverList=t.receiverList||void 0,this.isSupportExtension=!0===t.isSupportExtension||1===t.isSupportExtension,this.revoker=t.revokerInfo&&t.revokerInfo.revoker||null,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t),this.initC2CReadReceiptInfo(t.readReceiptSentByPeer)}return r(e,[{key:\"elements\",get:function(){return this._elements}},{key:\"getElements\",value:function(){return this._elements}},{key:\"extractGroupInfo\",value:function(e){if(null!==e){it(e.nick)&&(this.nick=e.nick),it(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;ct(t)&&it(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:\"handleGroupAtInfo\",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==k.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(k.MSG_AT_ALL))})),lt(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(k.MSG_AT_ALL)}))}},{key:\"getGroupAtInfoList\",value:function(){return this._groupAtInfoList}},{key:\"_initProxy\",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:\"reInitialize\",value:function(e){e&&(this.status=this.from?on.SUCCESS:on.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:\"isSendable\",value:function(){return 0!==this._elements.length&&(\"function\"==typeof this._elements[0].sendable&&this._elements[0].sendable())}},{key:\"_initTo\",value:function(e){this.conversationType===k.CONV_GROUP&&(this.to=e.groupID)}},{key:\"_initSequence\",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return!1;if(void 0===Dt[e]){var t=new Date,n=\"3\".concat(t.getHours()).slice(-2),o=\"0\".concat(t.getMinutes()).slice(-2),s=\"0\".concat(t.getSeconds()).slice(-2);Dt[e]=parseInt([n,o,s,\"0001\"].join(\"\")),n=null,o=null,s=null,Ve.l(\"autoIncrementIndex start index:\".concat(Dt[e]))}return Dt[e]++}(e)),0===this.sequence&&this.conversationType===k.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:\"generateMessageID\",value:function(){this.from===k.CONV_SYSTEM&&(this.senderTinyID=\"144115198244471703\"),this.ID=\"\".concat(this.senderTinyID,\"-\").concat(this.clientTime,\"-\").concat(this.random)}},{key:\"_initFlow\",value:function(e){\"\"!==e&&(e===this.from?(this.flow=\"out\",this.isRead=!0):this.flow=\"in\")}},{key:\"_concatConversationID\",value:function(e){var t=this.to,n=\"\",o=this.conversationType;o!==k.CONV_SYSTEM?(n=o===k.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID=n?\"\".concat(o).concat(n):null):this.conversationID=k.CONV_SYSTEM}},{key:\"isElement\",value:function(e){return e instanceof Jr||e instanceof zr||e instanceof Xr||e instanceof Qr||e instanceof na||e instanceof sa||e instanceof $r||e instanceof ta||e instanceof oa||e instanceof ra||e instanceof ia}},{key:\"setElement\",value:function(e,t){var n=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var o=function(e){if(e.type&&e.content)switch(e.type){case k.MSG_TEXT:n.setTextElement(e.content);break;case k.MSG_IMAGE:n.setImageElement(e.content,t);break;case k.MSG_AUDIO:n.setAudioElement(e.content,t);break;case k.MSG_FILE:n.setFileElement(e.content,t);break;case k.MSG_VIDEO:n.setVideoElement(e.content,t);break;case k.MSG_CUSTOM:n.setCustomElement(e.content);break;case k.MSG_LOCATION:n.setLocationElement(e.content);break;case k.MSG_GRP_TIP:n.setGroupTipElement(e.content);break;case k.MSG_GRP_SYS_NOTICE:n.setGroupSystemNoticeElement(e.content);break;case k.MSG_FACE:n.setFaceElement(e.content);break;case k.MSG_MERGER:n.setMergerElement(e.content,t)}};if(lt(e))for(var s=0;s<e.length;s++)o(e[s]);else o(e);this._initProxy()}},{key:\"clearElement\",value:function(){this._elements.length=0}},{key:\"setTextElement\",value:function(e){var t=\"string\"==typeof e?e:e.text,n=new Jr({text:t});this._elements.push(n)}},{key:\"setImageElement\",value:function(e,t){var n=new zr(e,t);this._elements.push(n)}},{key:\"setAudioElement\",value:function(e,t){var n=new Qr(e,t);this._elements.push(n)}},{key:\"setFileElement\",value:function(e,t){var n=new na(e,t);this._elements.push(n)}},{key:\"setVideoElement\",value:function(e,t){var n=new sa(e,t);this._elements.push(n)}},{key:\"setLocationElement\",value:function(e){var t=new ra(e);this._elements.push(t)}},{key:\"setCustomElement\",value:function(e){var t=new oa(e);this._elements.push(t)}},{key:\"setGroupTipElement\",value:function(e){var t={},n=e.operationType;if($t(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==k.GRP_TIP_MBR_JOIN&&n!==k.GRP_TIP_MBR_KICKED_OUT&&n!==k.GRP_TIP_MBR_SET_ADMIN&&n!==k.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]),!$t(e.memberExtraInfo)){var o=e.memberExtraInfo.reason;e.msgMemberInfo.forEach((function(e){e.reason=o}))}var s=t,r=s.nick,a=s.avatar;it(r)&&(this.nick=r),it(a)&&(this.avatar=a);var i=new $r(e);this._elements.push(i)}},{key:\"setGroupSystemNoticeElement\",value:function(e){var t=new ta(e);this._elements.push(t)}},{key:\"setFaceElement\",value:function(e){var t=new Xr(e);this._elements.push(t)}},{key:\"setMergerElement\",value:function(e,t){var n=new ia(e,t);this._elements.push(n)}},{key:\"setIsRead\",value:function(e){this.isRead=e}},{key:\"setRelayFlag\",value:function(e){this._relayFlag=e}},{key:\"getRelayFlag\",value:function(){return this._relayFlag}},{key:\"_computePriority\",value:function(e){if(dt(e))return k.MSG_PRIORITY_NORMAL;if(it(e)&&-1!==Object.values(ua).indexOf(e))return e;if(at(e)){var t=\"\"+e;if(-1!==Object.keys(ua).indexOf(t))return ua[t]}return k.MSG_PRIORITY_NORMAL}},{key:\"setNickAndAvatar\",value:function(e){var t=e.nick,n=e.avatar;it(t)&&(this.nick=t),it(n)&&(this.avatar=n)}},{key:\"setNameCard\",value:function(e){it(e)&&(this.nameCard=e)}},{key:\"initC2CReadReceiptInfo\",value:function(e){this.conversationType===k.CONV_C2C&&!0===this.needReadReceipt&&(this.readReceiptInfo.isPeerRead=1===e)}}]),e}(),la=function(e){return{code:0,data:e||{}}},da=function(e){i(n,e);var t=f(n);function n(e){var s;o(this,n),s=t.call(this);var r=e.code,a=e.message,i=e.data;return s.code=r,s.message=a||s._getErrorMessage(s.code),s.data=i||{},s}return r(n)}(p(Error)),pa=null,ga=function(e){pa=e},_a=function(e){return Promise.resolve(la(e))},ha=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof da)return t&&null!==pa&&pa.emit(E.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new da({code:Or.UNCAUGHT_ERROR});return t&&null!==pa&&pa.emit(E.ERROR,n),Promise.reject(n)}if(!dt(e)&&!dt(e.code)){var o=new da(e);return t&&null!==pa&&pa.emit(E.ERROR,o),Promise.reject(o)}},fa=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"C2CModule\",t._messageFromUnreadDBMap=new Map,t._signalingFromUnreadDBList=[],t}return r(s,[{key:\"onNewC2CMessage\",value:function(e){var t=e.dataList,n=e.isInstantMessage,o=e.C2CRemainingUnreadList,s=e.C2CPairUnreadList;Ve.d(\"\".concat(this._n,\".onNewC2CMessage count:\").concat(t.length,\" isInstantMessage:\").concat(n));var r=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:o,C2CPairUnreadList:s,isInstantMessage:n}),a=r.conversationOptionsList,i=r.messageList,u=r.isUnreadC2CMessage;(this.filterModifiedMessage(i),a.length>0)&&this.getModule(Kn).onNewMessage({conversationOptionsList:a,isInstantMessage:n,isUnreadC2CMessage:u});var c=this.filterUnmodifiedMessage(i);n&&c.length>0&&this.emitOuterEvent(E.MESSAGE_RECEIVED,c),i.length=0}},{key:\"_newC2CMessageStoredAndSummary\",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList,s=e.isInstantMessage,r=null,a=[],i=[],u={},c=this.getModule(zn),l=this.getModule(ro),d=!1,p=this.getModule(Kn),g=this.getFileDownloadProxy(),_=0,h=t.length;_<h;_++)if(this._isSignaling(t[_]))this._signalingFromUnreadDBList.push(t[_].eventArray[0].c2CNotifyMsgArray[0]);else{var f=t[_];f.currentUser=this.getMyUserID(),f.conversationType=k.CONV_C2C,f.isSystemMessage=!!f.isSystemMessage,(dt(f.nick)||dt(f.avatar))&&(d=!0,Ve.d(\"\".concat(this._n,\"._newC2CMessageStoredAndSummary nick or avatar missing!\"))),r=new ca(f),f.elements=c.parseElements(f.elements,f.from),r.setElement(f.elements,g),r.setNickAndAvatar({nick:f.nick,avatar:f.avatar});var m=r.conversationID;if(s){if(1===this._messageFromUnreadDBMap.get(r.ID))continue;var v=!1;if(r.from!==this.getMyUserID()){var M=p.getLatestMessageSentByPeer(m);if(M){var y=M.nick,I=M.avatar;d?r.setNickAndAvatar({nick:y,avatar:I}):y===r.nick&&I===r.avatar||(v=!0)}}else{var C=p.getLatestMessageSentByMe(m);if(C){var T=C.nick,D=C.avatar;T===r.nick&&D===r.avatar||p.modifyMessageSentByMe({conversationID:m,latestNick:r.nick,latestAvatar:r.avatar})}}var E=1===t[_].isModified;if(p.isMessageSentByCurrentInstance(r)?r.isModified=E:E=!1,0===f.msgLifeTime)r._onlineOnlyFlag=!0,p.isMessageSentByCurrentInstance(r)||i.push(r);else{if(!p.pushIntoMessageList(i,r,E))continue;v&&(p.modifyMessageSentByPeer({conversationID:m,latestNick:r.nick,latestAvatar:r.avatar}),p.updateUserProfileSpecifiedKey({conversationID:m,nick:r.nick,avatar:r.avatar}))}s&&r.clientTime>0&&l.addMessageDelay(r.clientTime)}else this._messageFromUnreadDBMap.set(r.ID,1);if(0!==f.msgLifeTime){if(!1===r._onlineOnlyFlag){var S=p.getLastMessageTime(m);if(at(S)&&r.time<S)continue;if(dt(u[m])){var L=0;\"in\"===r.flow&&(r._isExcludedFromUnreadCount||(L=1)),u[m]=a.push({conversationID:m,unreadCount:L,type:r.conversationType,subType:r.conversationSubType,lastMessage:r._isExcludedFromLastMessage?\"\":r})-1}else{var A=u[m];a[A].type=r.conversationType,a[A].subType=r.conversationSubType,a[A].lastMessage=r._isExcludedFromLastMessage?\"\":r,\"in\"===r.flow&&(r._isExcludedFromUnreadCount||a[A].unreadCount++)}}}else r._onlineOnlyFlag=!0}this._handleSignalingFromUnreadDB();var N=!1;if(lt(o))for(var R=function(e,t){if(o[e].unreadCount>0){N=!0;var n=a.find((function(t){return t.conversationID===\"C2C\".concat(o[e].from)}));n?n.unreadCount=o[e].unreadCount:a.push({conversationID:\"C2C\".concat(o[e].from),unreadCount:o[e].unreadCount,type:k.CONV_C2C})}},O=0,G=o.length;O<G;O++)R(O);if(lt(n))for(var U=function(e,t){a.find((function(t){return t.conversationID===\"C2C\".concat(n[e].from)}))||a.push({conversationID:\"C2C\".concat(n[e].from),type:k.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},P=0,b=n.length;P<b;P++)U(P);return{conversationOptionsList:a,messageList:i,isUnreadC2CMessage:N}}},{key:\"_isSignaling\",value:function(e){var t=e.eventArray;return!(!lt(t)||10!==t[0].event)}},{key:\"_handleSignalingFromUnreadDB\",value:function(){var e=this._signalingFromUnreadDBList.length;if(Ve.l(\"\".concat(this._n,\"._handleSignalingFromUnreadDB signalingCount:\").concat(e)),0!==e){var t=[];this._signalingFromUnreadDBList.forEach((function(e){e.hasOwnProperty(\"c2cMessageRevokedNotify\")&&t.push(e)})),this.onC2CMessageRevoked({dataList:t}),this._signalingFromUnreadDBList.length=0,t.length=0}}},{key:\"onC2CMessageRevoked\",value:function(e){var t=this,n=this.getModule(Kn),o=[],s=null,r=!0;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var a=e.c2cMessageRevokedNotify.revokedInfos;dt(a)||a.forEach((function(e){var a=t.getMyUserID()===e.from?\"\".concat(k.CONV_C2C).concat(e.to):\"\".concat(k.CONV_C2C).concat(e.from);s=n.revoke(a,e.sequence,e.random);var i=e.revokerInfo&&e.revokerInfo.revoker;if(s)s.revoker||(s.revoker=i,o.push(s));else{var u={conversationID:a,sequence:e.sequence,time:e.time,revoker:i};n.isLastMessageRevoked(u)&&(o.push(u),r=!1)}}))}})),0!==o.length&&(n.onMessageRevoked(o),!0===r&&(Ve.l(\"\".concat(this._n,\".onC2CMessageRevoked count:\").concat(o.length)),this.emitOuterEvent(E.MESSAGE_REVOKED,o)))}},{key:\"onC2CMessageReadReceipt\",value:function(e){var t=this;e.dataList.forEach((function(e){if(!$t(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var o=e.peerReadTime;Ve.d(\"\".concat(t._n,\"._onC2CMessageReadReceipt to:\").concat(n,\" peerReadTime:\").concat(o));var s=\"\".concat(k.CONV_C2C).concat(n),r=t.getModule(Kn);r.recordPeerReadTime(s,o),r.updateMessageIsPeerReadProperty(s,o)}))}}))}},{key:\"onC2CMessageReadNotice\",value:function(e){var t=this;e.dataList.forEach((function(e){if(!$t(e.c2cMessageReadNotice)){var n=t.getModule(Kn);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var o=e.from,s=e.peerReadTime;Ve.d(\"\".concat(t._n,\".onC2CMessageReadNotice from:\").concat(o,\" lastReadTime:\").concat(s));var r=\"\".concat(k.CONV_C2C).concat(o);n.updateIsReadAfterReadReport({conversationID:r,lastMessageTime:s}),n.updateUnreadCount(r)}))}}))}},{key:\"onC2CMessageModified\",value:function(e){Ve.d(\"\".concat(this._n,\".onC2CMessageModified options:\"),JSON.stringify(e));var n=this.getModule(Kn);e.dataList.forEach((function(e){n.onMessageModified(t(t({},e),{},{conversationType:k.CONV_C2C}))}))}},{key:\"onReadReceiptList\",value:function(e){Ve.d(\"\".concat(this._n,\".onReadReceiptList options:\"),JSON.stringify(e));var t=e.dataList,n=t.userID,o=t.readReceiptList;this.getModule(Kn).updateReadReceiptInfo({userID:n,readReceiptList:o})}},{key:\"sendMessage\",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:\"_createC2CMessagePack\",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var o=\"\";it(e.cloudCustomData)&&e.cloudCustomData.length>0&&(o=e.cloudCustomData);var s=[];if(ct(t)&&ct(t.messageControlInfo)){var r=t.messageControlInfo,a=r.excludedFromUnreadCount,i=r.excludedFromLastMessage,u=r.excludedFromContentModeration;!0===a&&s.push(\"NoUnread\"),!0===i&&s.push(\"NoLastMsg\"),!0===u&&s.push(\"NoMsgCheck\")}var c=this.isOnlineMessage(e,t)?0:void 0;return{protocolName:yo,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:o,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:c,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||\"\",desc:n.description||\"\",ext:n.extension||\"\",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||\"\"}}:void 0,messageControlInfo:0!==c?s:void 0,clientTime:e.clientTime,needReadReceipt:!0===e.needReadReceipt?1:0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:\"_isVoipPush\",value:function(e){var t=void 0;return dt(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:\"isOnlineMessage\",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:\"revokeMessage\",value:function(e){return this.request({protocolName:Vo,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:\"deleteMessage\",value:function(e){var t=e.to,n=e.keyList;return Ve.l(\"\".concat(this._n,\".deleteMessage toAccount:\").concat(t,\" count:\").concat(n.length)),this.request({protocolName:jo,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:\"modifyRemoteMessage\",value:function(e){var t=e.from,n=e.to,o=e.version,s=void 0===o?0:o,r=e.sequence,a=e.random,i=e.time,u=e.payload,c=e.type,l=e.cloudCustomData,d=void 0;return jt(c)&&(d=[]).push({type:c,content:u}),this.request({protocolName:Jo,requestData:{from:t,to:n,version:s,sequence:r,random:a,time:i,elements:d,cloudCustomData:l}})}},{key:\"setMessageRead\",value:function(e){var t=this,n=e.conversationID,o=e.lastMessageTime,s=\"\".concat(this._n,\".setMessageRead\");Ve.l(\"\".concat(s,\" conversationID:\").concat(n,\" lastMessageTime:\").concat(o)),at(o)||this.outputWarning(\"DoNotModifyLastTime\");var r=new jr(\"setC2CMessageRead\");return r.setMessage(\"conversationID:\".concat(n,\" lastMessageTime:\").concat(o)),this.request({protocolName:Bo,requestData:{C2CMsgReaded:{cookie:\"\",C2CMsgReadedItem:[{toAccount:n.replace(\"C2C\",\"\"),lastMessageTime:o,receipt:1}]}}}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(s,\" ok\"));var e=t.getModule(Kn);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:o}),e.updateUnreadCount(n),la()})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.l(\"\".concat(s,\" failed. error:\"),e),ha(e)}))}},{key:\"getRoamingMessage\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRoamingMessage\"),o=e.peerAccount,s=e.conversationID,r=e.count,a=e.lastMessageTime,i=e.messageKey,u=\"peerAccount:\".concat(o,\" count:\").concat(r||15,\" lastMessageTime:\").concat(a||0,\" messageKey:\").concat(i);Ve.l(\"\".concat(n,\" \").concat(u));var c=new jr(\"getC2CRoamingMessages\");return this.request({protocolName:Wo,requestData:{peerAccount:o,count:r||15,lastMessageTime:a||0,messageKey:i}}).then((function(e){var o=e.data,r=o.complete,a=o.messageList,i=o.messageKey,l=o.lastMessageTime;dt(a)?Ve.l(\"\".concat(n,\" ok. complete:\").concat(r,\" but messageList is undefined!\")):Ve.l(\"\".concat(n,\" ok. complete:\").concat(r,\" count:\").concat(a.length)),c.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(u,\" complete:\").concat(r,\" length:\").concat(a.length)).end();var d=t.getModule(Kn);1===r&&d.setCompleted(s);var p=d.onRoamingMessage(a,s);d.modifyMessageList(s),d.updateIsRead(s),d.updateRoamingMessageKeyAndTime(s,i,l);var g=d.getPeerReadTime(s);if(Ve.l(\"\".concat(n,\" update isPeerRead property. conversationID:\").concat(s,\" peerReadTime:\").concat(g)),g)d.updateMessageIsPeerReadProperty(s,g);else{var _=s.replace(k.CONV_C2C,\"\");t.getRemotePeerReadTime([_]).then((function(){d.updateMessageIsPeerReadProperty(s,d.getPeerReadTime(s))}))}var h=\"\";if(p.length>0)h=p[0].ID;else{var f=d.getLocalOldestMessage(s);f&&(h=f.ID)}return Ve.l(\"\".concat(n,\" nextReqID:\").concat(h,\" stored message count:\").concat(p.length)),{nextReqID:h,storedMessageList:p}})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];c.setMessage(u).setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"getRoamingMessagesHopping\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRoamingMessagesHopping\"),o=e.peerAccount,s=e.time,r=void 0===s?0:s,a=e.count,i=e.direction,u=\"\".concat(k.CONV_C2C).concat(o),c=\"peerAccount:\".concat(o,\" count:\").concat(a,\" time:\").concat(r,\" direction:\").concat(i);Ve.l(\"\".concat(n,\" \").concat(c));var l=new jr(\"getC2CRoamingMessagesHopping\");return this.request({protocolName:Wo,requestData:{peerAccount:o,count:a+1,lastMessageTime:r,direction:i}}).then((function(e){var o=e.data,s=o.complete,r=o.messageList,a=void 0===r?[]:r,d=o.lastMessageTime;Ve.l(\"\".concat(n,\" ok. complete:\").concat(s,\" count:\").concat(a.length)),l.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(c,\" complete:\").concat(s,\" length:\").concat(a.length)).end(),1!==s&&(1===i?a.pop():a.shift());var p=t.getModule(Kn).onRoamingMessage(a,u,!1);t._modifyMessageList(u,p);var g=t._computeResult({complete:s,lastMessageTime:d,resultList:p});return la(g)})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];l.setMessage(c).setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_computeResult\",value:function(e){var t=e.complete,n=void 0===t?0:t,o=e.lastMessageTime,s=e.resultList,r={messageList:v(void 0===s?[]:s),isCompleted:!1,nextMessageTime:\"\"};return 1===n?(r.isCompleted=!0,r):(r.nextMessageTime=o,r)}},{key:\"_modifyMessageList\",value:function(e,t){var n=this.getModule(Kn).getLocalConversation(e);if(n)for(var o=n.userProfile.nick,s=n.userProfile.avatar,r=this.getModule(Fn).getNickAndAvatarByUserID(this.getMyUserID()),a=r.nick,i=r.avatar,u=t.length-1;u>=0;u--){var c=t[u];\"in\"===c.flow&&(c.nick!==o&&c.setNickAndAvatar({nick:o}),c.avatar!==s&&c.setNickAndAvatar({avatar:s})),\"out\"===c.flow&&(c.nick!==a&&c.setNickAndAvatar({nick:a}),c.avatar!==i&&c.setNickAndAvatar({avatar:i}))}}},{key:\"getRemotePeerReadTime\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRemotePeerReadTime\");if($t(e))return Ve.w(\"\".concat(n,\" userIDList is empty!\")),Promise.resolve();var o=new jr(\"getPeerReadTime\");return Ve.l(\"\".concat(n,\" userIDList:\").concat(e)),this.request({protocolName:Yo,requestData:{userIDList:e}}).then((function(s){var r=s.data.peerReadTimeList;Ve.l(\"\".concat(n,\" ok. peerReadTimeList:\").concat(r));for(var a=\"\",i=t.getModule(Kn),u=0;u<e.length;u++)a+=\"\".concat(e[u],\"-\").concat(r[u],\" \"),r[u]>0&&i.recordPeerReadTime(\"C2C\".concat(e[u]),r[u]);o.setNetworkType(t.getNetworkType()).setMessage(a).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e)}))}},{key:\"sendReadReceipt\",value:function(e){var t=this,n=e[0].conversationID.replace(k.CONV_C2C,\"\"),o=new jr(\"sendC2CReadReceipt\");o.setMessage(\"peerAccount:\".concat(n));var s=this.getMyUserID(),r=e.filter((function(e){return e.from!==s&&!0===e.needReadReceipt})).map((function(e){return{fromAccount:e.from,toAccount:e.to,sequence:e.sequence,random:e.random,time:e.time,clientTime:e.clientTime}}));if(0===r.length)return ha({code:Or.READ_RECEIPT_MESSAGE_LIST_EMPTY});var a=\"\".concat(this._n,\".sendReadReceipt\");return Ve.l(\"\".concat(a,\". peerAccount:\").concat(n,\" messageInfoList length:\").concat(r.length)),this.request({protocolName:Ns,requestData:{peerAccount:n,messageInfoList:r}}).then((function(e){return o.end(),Ve.l(\"\".concat(a,\" ok\")),la()})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.w(\"\".concat(a,\" failed. error:\"),e),ha(e)}))}},{key:\"getReadReceiptList\",value:function(e){var t=\"\".concat(this._n,\".getReadReceiptList\"),n=this.getMyUserID(),o=e.filter((function(e){return e.from===n&&!0===e.needReadReceipt}));return Ve.l(\"\".concat(t,\" userID:\").concat(n,\" messageList length:\").concat(o.length)),_a({messageList:o})}},{key:\"getMessageExtensions\",value:function(e,t){return Ve.l(\"\".concat(this._n,\".getMessageExtensions startSequence:\").concat(t)),this.request({protocolName:Xo,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),startSequence:t}})}},{key:\"modifyMessageExtensions\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ve.l(\"\".concat(this._n,\".modifyMessageExtensions operateType:\").concat(n)),this.request({protocolName:zo,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),extensionList:t,operateType:n}})}},{key:\"_getMessageKey\",value:function(e){var t=e.clientSequence,n=e.random,o=e.time;return\"\".concat(t,\"_\").concat(n,\"_\").concat(o)}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._messageFromUnreadDBMap.clear(),this._signalingFromUnreadDBList.length=0}}]),s}(go),ma=function(){function e(){o(this,e),this.list=new Map,this._n=\"MessageListHandler\",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map}return r(e,[{key:\"getLocalOldestMessageByConversationID\",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:\"pushIn\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,o=!0;this.list.has(n)||this.list.set(n,new Map);var s=this._getUniqueIDOfMessage(e),r=this.list.get(n).has(s);if(r){var a=this.list.get(n).get(s);if(!t||!0===a.isModified)return o=!1}return this.list.get(n).set(s,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),o}},{key:\"unshift\",value:function(e,t){var n;if(lt(e)?e.length>0&&(n=e[0].conversationID,this._unshiftMultipleMessages(e,t)):(n=e.conversationID,this._unshiftSingleMessage(e,t)),n&&n.startsWith(k.CONV_C2C)){var o=Array.from(this.list.get(n).values()),s=o.length;if(0===s)return;for(var r=s-1;r>=0;r--)if(\"out\"===o[r].flow){this._setLatestMessageSentByMe(n,o[r]);break}for(var a=s-1;a>=0;a--)if(\"in\"===o[a].flow){this._setLatestMessageSentByPeer(n,o[a]);break}}}},{key:\"_unshiftSingleMessage\",value:function(e,t){var n=e.conversationID,o=this._getUniqueIDOfMessage(e);if(!this.list.has(n))return this.list.set(n,new Map),this.list.get(n).set(o,e),void t.push(e);var s=this.list.get(n),r=Array.from(s);s.has(o)||(r.unshift([o,e]),this.list.set(n,new Map(r)),t.push(e))}},{key:\"_unshiftMultipleMessages\",value:function(e,t){for(var n=e.length,o=[],s=e[0].conversationID,r=this.list.get(s),a=this.list.has(s)?Array.from(r):[],i=0;i<n;i++){var u=this._getUniqueIDOfMessage(e[i]);r&&r.has(u)||(o.push([u,e[i]]),t.push(e[i]))}this.list.set(s,new Map(o.concat(a)))}},{key:\"remove\",value:function(e){var t=e.conversationID,n=this._getUniqueIDOfMessage(e);this.list.has(t)&&this.list.get(t).delete(n)}},{key:\"revoke\",value:function(e,t,n){if(Ve.d(\"revoke message\",e,t,n),this.list.has(e)){var o,s=D(this.list.get(e));try{for(s.s();!(o=s.n()).done;){var r=m(o.value,2)[1];if(r.sequence===t&&(dt(n)||r.random===n))return r.isRevoked||(r.isRevoked=!0),r}}catch(a){s.e(a)}finally{s.f()}}return null}},{key:\"removeByConversationID\",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:\"findMessage\",value:function(e){var t,n=null,o=D(this.list);try{for(o.s();!(t=o.n()).done;)for(var s=v(m(t.value,2)[1].values()),r=s.length,a=0;a<r;a++)if(s[a].ID===e){n=s[a];break}}catch(i){o.e(i)}finally{o.f()}return n}},{key:\"updateMessageIsPeerReadProperty\",value:function(e,t){var n=[];if(this.list.has(e)){var o,s=D(this.list.get(e));try{for(s.s();!(o=s.n()).done;){var r=m(o.value,2)[1];r.time<=t&&!r.isPeerRead&&\"out\"===r.flow&&(r.isPeerRead=!0,n.push(r))}}catch(a){s.e(a)}finally{s.f()}Ve.l(\"\".concat(this._n,\".updateMessageIsPeerReadProperty conversationID:\").concat(e,\" peerReadTime:\").concat(t,\" count:\").concat(n.length))}return n}},{key:\"updateMessageIsModifiedProperty\",value:function(e){var t=e.conversationID;if(this.list.has(t)){var n=this._getUniqueIDOfMessage(e),o=this.list.get(t).get(n);o&&(o.isModified=!0)}}},{key:\"hasLocalMessageList\",value:function(e){return this.list.has(e)}},{key:\"getLocalMessageList\",value:function(e){return this.hasLocalMessageList(e)?v(this.list.get(e).values()):[]}},{key:\"hasLocalMessage\",value:function(e,t){for(var n=!1,o=this.getLocalMessageList(e),s=o.length,r=0;r<s;r++)o[r].ID===t&&(n=!0);return n}},{key:\"getLocalMessage\",value:function(e,t){for(var n=null,o=this.getLocalMessageList(e),s=o.length,r=0;r<s;r++)if(o[r].ID===t){n=o[r];break}return n}},{key:\"getLocalLastMessage\",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:\"getLocalOldestMessage\",value:function(e){return this.getLocalMessageList(e)[0]}},{key:\"_setLatestMessageSentByPeer\",value:function(e,t){e.startsWith(k.CONV_C2C)&&\"in\"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:\"_setLatestMessageSentByMe\",value:function(e,t){e.startsWith(k.CONV_C2C)&&\"out\"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:\"getLatestMessageSentByPeer\",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:\"getLatestMessageSentByMe\",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:\"modifyMessageSentByPeer\",value:function(e){var t=e.conversationID,n=e.latestNick,o=e.latestAvatar,s=this.list.get(t);if(!$t(s)){var r=Array.from(s.values()),a=r.length;if(0!==a){for(var i=null,u=0,c=!1,l=a-1;l>=0;l--)\"in\"===r[l].flow&&((i=r[l]).nick!==n&&(i.setNickAndAvatar({nick:n}),c=!0),i.avatar!==o&&(i.setNickAndAvatar({avatar:o}),c=!0),c&&(u+=1));Ve.l(\"\".concat(this._n,\".modifyMessageSentByPeer conversationID:\").concat(t,\" count:\").concat(u))}}}},{key:\"modifyMessageSentByMe\",value:function(e){var t=e.conversationID,n=e.latestNick,o=e.latestAvatar,s=this.list.get(t);if(!$t(s)){var r=Array.from(s.values()),a=r.length;if(0!==a){for(var i=null,u=0,c=!1,l=a-1;l>=0;l--)\"out\"===r[l].flow&&((i=r[l]).nick!==n&&(i.setNickAndAvatar({nick:n}),c=!0),i.avatar!==o&&(i.setNickAndAvatar({avatar:o}),c=!0),c&&(u+=1));Ve.l(\"\".concat(this._n,\".modifyMessageSentByMe conversationID:\").concat(t,\" count:\").concat(u))}}}},{key:\"getTopicConversationIDList\",value:function(e){return v(this.list.keys()).filter((function(t){return t.startsWith(\"\".concat(k.CONV_GROUP).concat(e))}))}},{key:\"traversal\",value:function(){if(0!==this.list.size&&-1===Ve.getLevel()){console.group(\"conversationID-messageCount\");var e,t=D(this.list);try{for(t.s();!(e=t.n()).done;){var n=m(e.value,2),o=n[0],s=n[1];console.log(\"\".concat(o,\"-\").concat(s.size))}}catch(r){t.e(r)}finally{t.f()}console.groupEnd()}}},{key:\"onMessageModified\",value:function(e,t){if(!this.list.has(e))return{isUpdated:!1,message:null};var n=this._getUniqueIDOfMessage(t),o=this.list.get(e).has(n);if(Ve.d(\"\".concat(this._n,\".onMessageModified conversationID:\").concat(e,\" uniqueID:\").concat(n,\" has:\").concat(o)),o){var s=this.list.get(e).get(n),r=t.messageVersion,a=t.elements,i=t.cloudCustomData;return s.version<r?(s.version=r,s._elements=JSON.parse(JSON.stringify(a)),s.payload=JSON.parse(JSON.stringify(a[0].content)),s.type=a[0].type,s.cloudCustomData=i,s.isModified=!0,{isUpdated:!0,message:s}):{isUpdated:!1,message:s}}return{isUpdated:!1,message:null}}},{key:\"_getUniqueIDOfMessage\",value:function(e){var t=e.from,n=e.to,o=e.random,s=e.sequence,r=e.time;return\"\".concat(t,\"-\").concat(n,\"-\").concat(o,\"-\").concat(s,\"-\").concat(r)}},{key:\"reset\",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear()}}]),e}(),va=\"_a2KeyAndTinyIDUpdated\",Ma=\"_cloudConfigUpdated\",ya=\"_profileUpdated\";function Ia(e){this.mixin(e)}Ia.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var Ca=[\"jpg\",\"jpeg\",\"gif\",\"png\",\"bmp\",\"image\",\"webp\"],Ta=[\"mp4\",\"quicktime\",\"mov\"],Da=1,Ea=2,ka=3,Sa=255,La=function(){function e(t){var n=this;o(this,e),$t(t)||(this.userID=t.userID||\"\",this.nick=t.nick||\"\",this.gender=t.gender||\"\",this.birthday=t.birthday||0,this.location=t.location||\"\",this.selfSignature=t.selfSignature||\"\",this.allowType=t.allowType||k.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||\"\",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||k.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],$t(t.profileCustomField)||t.profileCustomField.forEach((function(e){n.profileCustomField.push({key:e.key,value:e.value})})))}return r(e,[{key:\"validate\",value:function(e){var t=!0,n=\"\";if($t(e))return{valid:!1,tips:\"empty options\"};if(e.profileCustomField)for(var o=e.profileCustomField.length,s=null,r=0;r<o;r++){if(s=e.profileCustomField[r],!it(s.key)||-1===s.key.indexOf(\"Tag_Profile_Custom\"))return{valid:!1,tips:\"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom\"};if(!it(s.value))return{valid:!1,tips:\"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String\"}}for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(\"profileCustomField\"===a)continue;if($t(e[a])&&!it(e[a])&&!at(e[a])){n=\"key:\"+a+\", invalid value:\"+e[a],t=!1;continue}switch(a){case\"nick\":it(e[a])||(n=\"nick must be a string\",t=!1),Mt(e[a])>500&&(n=\"nick name limited: must less than or equal to \".concat(500,\" bytes, current size: \").concat(Mt(e[a]),\" bytes\"),t=!1);break;case\"gender\":Tt(ze,e.gender)||(n=\"key:gender, invalid value:\"+e.gender,t=!1);break;case\"birthday\":at(e.birthday)||(n=\"birthday must be a number\",t=!1);break;case\"location\":it(e.location)||(n=\"location must be a string\",t=!1);break;case\"selfSignature\":it(e.selfSignature)||(n=\"selfSignature must be a string\",t=!1);break;case\"allowType\":Tt(Qe,e.allowType)||(n=\"key:allowType, invalid value:\"+e.allowType,t=!1);break;case\"language\":at(e.language)||(n=\"language must be a number\",t=!1);break;case\"avatar\":it(e.avatar)||(n=\"avatar must be a string\",t=!1);break;case\"messageSettings\":0!==e.messageSettings&&1!==e.messageSettings&&(n=\"messageSettings must be 0 or 1\",t=!1);break;case\"adminForbidType\":Tt(Xe,e.adminForbidType)||(n=\"key:adminForbidType, invalid value:\"+e.adminForbidType,t=!1);break;case\"level\":at(e.level)||(n=\"level must be a number\",t=!1);break;case\"role\":at(e.role)||(n=\"role must be a number\",t=!1);break;default:n=\"unknown key:\"+a+\"  \"+e[a],t=!1}}return{valid:t,tips:n}}}]),e}(),Aa=r((function e(t){o(this,e),this.value=t,this.next=null})),Na=function(){function e(t){o(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map}return r(e,[{key:\"set\",value:function(e){var t=new Aa(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:\"has\",value:function(e){return this.map.has(e)}},{key:\"delete\",value:function(e){this.has(e)&&this.map.delete(e)}},{key:\"tail\",value:function(){return this.pTail}},{key:\"size\",value:function(){return this.map.size}},{key:\"data\",value:function(){return Array.from(this.map.keys())}},{key:\"reset\",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),Ra=[\"groupID\",\"name\",\"avatar\",\"type\",\"introduction\",\"notification\",\"ownerID\",\"selfInfo\",\"createTime\",\"infoSequence\",\"lastInfoTime\",\"lastMessage\",\"nextMessageSeq\",\"memberNum\",\"maxMemberNum\",\"memberList\",\"joinOption\",\"groupCustomField\",\"muteAllMembers\",\"isSupportTopic\",\"inviteOption\",\"_lastRevokedTime\"],Oa=function(){function e(t){o(this,e),this.groupID=\"\",this.name=\"\",this.avatar=\"\",this.type=\"\",this.introduction=\"\",this.notification=\"\",this.ownerID=\"\",this.createTime=\"\",this.infoSequence=\"\",this.lastInfoTime=\"\",this.selfInfo={messageRemindType:\"\",joinTime:\"\",nameCard:\"\",role:\"\",userID:\"\",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:\"\",lastSequence:\"\",fromAccount:\"\",messageForShow:\"\"},this.nextMessageSeq=\"\",this.memberNum=\"\",this.memberCount=\"\",this.maxMemberNum=\"\",this.maxMemberCount=\"\",this.joinOption=\"\",this.inviteOption=\"\",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._lastRevokedTime=0,this._initGroup(t)}return r(e,[{key:\"memberNum\",get:function(){return this.memberCount},set:function(e){}},{key:\"maxMemberNum\",get:function(){return this.maxMemberCount},set:function(e){}},{key:\"_initGroup\",value:function(e){for(var t in e)Ra.indexOf(t)<0||(\"selfInfo\"!==t?(\"memberNum\"===t&&(this.memberCount=e[t]),\"maxMemberNum\"===t&&(this.maxMemberCount=e[t]),\"isSupportTopic\"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}},{key:\"updateGroup\",value:function(e){var t=this;e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0);var n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),dt(n.muteAllMembers)||(\"On\"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&St(this.groupCustomField,n.groupCustomField),dt(n.memberNum)||(this.memberCount=n.memberNum),dt(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),dt(n.isSupportTopic)||(this.isSupportTopic=at(n.isSupportTopic)?1===n.isSupportTopic:n.isSupportTopic),mt(this,n,[\"members\",\"errorCode\",\"lastMsgTime\",\"groupCustomField\",\"memberNum\",\"maxMemberNum\",\"isSupportTopic\"]),lt(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&mt(t.selfInfo,e,[\"sequence\"])}))}},{key:\"updateSelfInfo\",value:function(e){var n={nameCard:e.nameCard,joinTime:e.joinTime,role:e.role,messageRemindType:e.messageRemindType,readedSequence:e.readedSequence,excludedUnreadSequenceList:e.excludedUnreadSequenceList};mt(this.selfInfo,t({},n),[],[\"\",null,void 0,0,NaN])}},{key:\"setSelfNameCard\",value:function(e){this.selfInfo.nameCard=e}}]),e}(),Ga=function(e,n){return dt(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:\"\",payload:null,type:\"\",isRevoked:!1,cloudCustomData:\"\",onlineOnlyFlag:!1,nick:\"\",nameCard:\"\",version:0,isPeerRead:!1,revoker:null}:e instanceof ca?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||\"\",messageForShow:Yt(e.type,e.payload,n),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||\"\",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||\"\",nameCard:e.nameCard||\"\",version:e.version||0,isPeerRead:e.isPeerRead||!1,revoker:e.revoker||null}:t(t({},e),{},{messageForShow:Yt(e.type,e.payload,n)})},Ua=function(){function e(t,n){o(this,e),this.conversationID=t.conversationID||\"\",this.unreadCount=t.unreadCount||0,this.type=t.type||\"\",this.lastMessage=Ga(t.lastMessage,n),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark=\"\",this.isPinned=t.isPinned||!1,this.messageRemindType=\"\",this.markList=t.markList||[],this.customData=t.customData||\"\",this.conversationGroupList=t.conversationGroupList||[],this._initProfile(t)}return r(e,[{key:\"toAccount\",get:function(){return this.conversationID.startsWith(k.CONV_C2C)?this.conversationID.replace(k.CONV_C2C,\"\"):this.conversationID.startsWith(k.CONV_GROUP)?this.conversationID.replace(k.CONV_GROUP,\"\"):\"\"}},{key:\"subType\",get:function(){return this.groupProfile?this.groupProfile.type:\"\"}},{key:\"_initProfile\",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case\"userProfile\":t.userProfile=e.userProfile;break;case\"groupProfile\":t.groupProfile=e.groupProfile}})),dt(this.userProfile)&&this.type===k.CONV_C2C?this.userProfile=new La({userID:e.conversationID.replace(\"C2C\",\"\")}):dt(this.groupProfile)&&this.type===k.CONV_GROUP&&(this.groupProfile=new Oa({groupID:e.conversationID.replace(\"GROUP\",\"\")}))}},{key:\"updateUnreadCount\",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,o=e.isUnreadC2CMessage;dt(t)||(Lt(this.subType)?this.unreadCount=0:n&&this.type===k.CONV_GROUP||n&&this.type===k.CONV_TOPIC||o&&this.type===k.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:\"updateLastMessage\",value:function(e){this.lastMessage=Ga(e)}},{key:\"updateGroupAtInfoList\",value:function(e){if(!this._isNeedMergeGroupAtInfo(e)){var t,n=(M(t=e.groupAtType)||y(t)||I(t)||T()).slice(0);-1!==n.indexOf(k.CONV_AT_ME)&&-1!==n.indexOf(k.CONV_AT_ALL)&&(n=[k.CONV_AT_ALL_AT_ME]);var o={from:e.from,groupID:e.groupID,topicID:e.topicID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(o)}}},{key:\"_isNeedMergeGroupAtInfo\",value:function(e){var t=e.groupID,n=e.sequence;if(!At({groupID:t}))return!1;var o=!1;return this.groupAtInfoList.forEach((function(t){t.messageSequence===n&&(t.atTypeArray.indexOf(k.CONV_AT_ME)>-1&&e.groupAtType.indexOf(k.CONV_AT_ALL)>-1&&(t.atTypeArray=[k.CONV_AT_ALL_AT_ME]),t.atTypeArray.indexOf(k.CONV_AT_ALL)>-1&&e.groupAtType.indexOf(k.CONV_AT_ME)>-1&&(t.atTypeArray=[k.CONV_AT_ALL_AT_ME],t.__random=e.__random,t.__sequence=e.__sequence),o=!0)})),o}},{key:\"clearGroupAtInfoList\",value:function(){this.groupAtInfoList.length=0}},{key:\"reduceUnreadCount\",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:\"isLastMessageRevoked\",value:function(e){var t=e.sequence,n=e.time;return this.type===k.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===k.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:\"setLastMessageRevoked\",value:function(e){this.lastMessage.isRevoked=e}},{key:\"setLastMessageRevoker\",value:function(e){this.lastMessage.revoker=e}}]),e}(),Pa=function(){function e(t){o(this,e),this._conversationModule=t,this._n=\"MessageRemindHandler\",this._updateSequence=0}return r(e,[{key:\"getC2CMessageRemindType\",value:function(){var e=this,t=\"\".concat(this._n,\".getC2CMessageRemindType\");return this._conversationModule.request({protocolName:Ko,updateSequence:this._updateSequence}).then((function(n){Ve.l(\"\".concat(t,\" ok\"));var o=n.data,s=o.updateSequence,r=o.muteFlagList;e._updateSequence=s,e._patchC2CMessageRemindType(r)})).catch((function(e){Ve.e(\"\".concat(t,\" failed. error:\"),e)}))}},{key:\"_patchC2CMessageRemindType\",value:function(e){var t=this,n=0,o=\"\";lt(e)&&e.length>0&&e.forEach((function(e){var s=e.userID,r=e.muteFlag;0===r?o=k.MSG_REMIND_ACPT_AND_NOTE:1===r?o=k.MSG_REMIND_DISCARD:2===r&&(o=k.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:s,isC2CConversation:!0,messageRemindType:o})&&(n+=1)})),Ve.l(\"\".concat(this._n,\"._patchC2CMessageRemindType count:\").concat(n))}},{key:\"set\",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):lt(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:\"_setGroupMessageRemindType\",value:function(e){var t=this,n=\"\".concat(this._n,\"._setGroupMessageRemindType\"),o=e.groupID,s=e.messageRemindType,r=\"groupID:\".concat(o,\" messageRemindType:\").concat(s),a=new jr(\"setMessageRemindType\");return a.setMessage(r),this._getModule(Bn).modifyGroupMemberInfo({groupID:o,messageRemindType:s,userID:this._conversationModule.getMyUserID()}).then((function(){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok. \").concat(r));var o=t.onGroupMessageRemindTypeUpdated(e);return t._conversationModule.emitTotalUnreadMessageCountUpdate(),la(o)})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"onGroupMessageRemindTypeUpdated\",value:function(e){var t=e.groupID,n=e.messageRemindType,o=this._getModule(xn).getLocalGroupProfile(t);if(o&&(o.selfInfo.messageRemindType=n),Nt(t)){var s=t,r=Wt(s),a=this._getModule(Hn).getLocalTopic(r,s);return a&&(a.updateSelfInfo({messageRemindType:n}),this._conversationModule.emitOuterEvent(E.TOPIC_UPDATED,{groupID:r,topic:a})),{topic:a}}return this._conversationModule.patchMessageRemindType({ID:t,isC2CConversation:!1,messageRemindType:n})&&this._emitConversationUpdate(),{group:o}}},{key:\"_setC2CMessageRemindType\",value:function(e){var t=this,n=\"\".concat(this._n,\"._setC2CMessageRemindType\"),o=e.userIDList,s=e.messageRemindType,r=o.slice(0,30),a=0;s===k.MSG_REMIND_DISCARD?a=1:s===k.MSG_REMIND_ACPT_NOT_NOTE&&(a=2);var i=\"userIDList:\".concat(r,\" messageRemindType:\").concat(s),u=new jr(\"setMessageRemindType\");return u.setMessage(i),this._conversationModule.request({protocolName:Ho,requestData:{userIDList:r,muteFlag:a}}).then((function(e){u.setNetworkType(t._conversationModule.getNetworkType()).end();var o=e.data,a=o.updateSequence,i=o.errorList;t._updateSequence=a;var c=[],l=[];lt(i)&&i.forEach((function(e){c.push(e.userID),l.push({userID:e.userID,code:e.errorCode})}));var d=r.filter((function(e){return-1===c.indexOf(e)}));Ve.l(\"\".concat(n,\" ok. successUserIDList:\").concat(d,\" failureUserIDList:\").concat(JSON.stringify(l)));var p=0;return d.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:s})&&(p+=1)})),p>=1&&t._emitConversationUpdate(),r.length=c.length=0,t._conversationModule.emitTotalUnreadMessageCountUpdate(),_a({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:l})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_getModule\",value:function(e){return this._conversationModule.getModule(e)}},{key:\"_emitConversationUpdate\",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:\"setUpdateSequence\",value:function(e){this._updateSequence=e}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._updateSequence=0}}]),e}(),ba=function(){function e(t){o(this,e),this._conversationModule=t,this._n=\"ConvGroupHandler\",this._convGroupMap=new Map,this._startIndex=0,this._pagingStatus=sn.NOT_START}return r(e,[{key:\"setConvCustomData\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setConvCustomData\"),o=e.conversationIDList,s=e.customData;Ve.l(\"\".concat(n,\" options:\"),e);var r=new jr(\"setConvCustomData\");r.setMessage(JSON.stringify(e));var a={fromAccount:this._getMyUserID(),itemList:[]},i=[],u=[];return o.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(u,e),!0;if(!Rt(e)&&!Ot(e))return t._onConversationIDInvalid(u,e),!0;var n={operationType:2,contactItem:void 0,customMark:s};Rt(e)?n.contactItem={type:1,toAccount:e.replace(k.CONV_C2C,\"\")}:Ot(e)&&(n.contactItem={type:2,groupID:e.replace(k.CONV_GROUP,\"\")}),a.itemList.push(n)})),u.length===o.length?_a({successConversationIDList:i,failureConversationIDList:u}):this._conversationModule.request({protocolName:os,requestData:a}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var o=e.data.resultItem;if(lt(o)){var a,c,l=!1;o.forEach((function(e){a=t._concatConversationID(e.contactItem),0===e.resultCode?(i.push(a),(c=t._getLocalConversation(a))&&c.customData!==s&&(c.customData=s,l=!0)):u.push({conversationID:a,code:e.resultCode,message:e.resultInfo})})),!0===l&&t._emitConversationUpdate()}return la({successConversationIDList:i,failureConversationIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"markConversation\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_MARK))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"markConversation\"),o=e.conversationIDList,s=e.markType,r=e.enableMark;Ve.l(\"\".concat(n,\" options:\"),e);var a=new jr(\"markConversation\");a.setMessage(JSON.stringify(e));var i=void 0,u=void 0,c=this._getFlagBit(s);!0===r?u=[c]:i=[c];var l={fromAccount:this._getMyUserID(),itemList:[]},d=[],p=[];return o.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(p,e),!0;if(!Rt(e)&&!Ot(e))return t._onConversationIDInvalid(p,e),!0;var n={operationType:1,contactItem:void 0,clearMark:i,setMark:u};Rt(e)?n.contactItem={type:1,toAccount:e.replace(k.CONV_C2C,\"\")}:Ot(e)&&(n.contactItem={type:2,groupID:e.replace(k.CONV_GROUP,\"\")}),l.itemList.push(n)})),p.length===o.length?_a({successConversationIDList:d,failureConversationIDList:p}):this._conversationModule.request({protocolName:ss,requestData:l}).then((function(e){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var o=e.data.resultItem;if(lt(o)){var i,u,c=!1;o.forEach((function(e){if(i=t._concatConversationID(e.contactItem),0===e.resultCode){if(d.push(i),u=t._getLocalConversation(i)){var n=u.markList.indexOf(s);!0===r?-1===n&&(u.markList.push(s),c=!0):-1!==n&&(u.markList.splice(n,1),c=!0)}}else p.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===c&&t._emitConversationUpdate()}return la({successConversationIDList:d,failureConversationIDList:p})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"getLocalConvGroupList\",value:function(){var e=this;return Ve.l(\"\".concat(this._n,\".getLocalConvGroupList pagingStatus:\").concat(this._pagingStatus)),this._pagingStatus===sn.REJECTED?this.getRemoteConvGroupList().then((function(){return la(v(e._convGroupMap.values()))})):_a(v(this._convGroupMap.values()))}},{key:\"getRemoteConvGroupList\",value:function(){var e=this,t=\"\".concat(this._n,\".getRemoteConvGroupList\");return this._pagingStatus=sn.PENDING,this._conversationModule.request({protocolName:ls,requestData:{fromAccount:this._getMyUserID(),startIndex:this._startIndex,startTime:we()}}).then((function(n){var o,s,r=n.data,a=r.completeFlag,i=r.contactItem,u=r.nextStartIndex,c=void 0===u?0:u,l=r.groupItem;(e._startIndex=c,Ve.l(\"\".concat(t,\" completeFlag:\").concat(a,\" nextStartIndex:\").concat(c)),lt(l)&&l.forEach((function(t){var n=t.convGroupID,o=t.groupName;e._convGroupMap.set(n,o)})),lt(i))&&i.forEach((function(t){var n=t.standardMark,r=t.customData,a=t.convGroupIDList;if(o=e._concatConversationID(t),(s=e._getLocalConversation(o))&&(s.markList=Jt(n),s.customData=r||\"\",lt(a))){var i=[];a.forEach((function(t){e._convGroupMap.has(t)&&i.push(e._convGroupMap.get(t))})),s.conversationGroupList=[].concat(i),i.length=0}}));if(0===a)return e.getRemoteConvGroupList();1===a&&(e._pagingStatus=sn.RESOLVED,e._emitConversationUpdate(),e._emitConvGroupListUpdate())})).catch((function(n){e._pagingStatus=sn.REJECTED,Ve.w(\"\".concat(t,\" failed. error:\"),n)}))}},{key:\"createConvGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"createConvGroup\");Ve.l(\"\".concat(n,\" options:\"),e);var o=new jr(\"createConvGroup\");o.setMessage(JSON.stringify(e));var s=e.groupName,r=e.conversationIDList,a={fromAccount:this._getMyUserID(),itemList:[{groupName:s,contactItem:[]}]},i=[],u=[];return r.forEach((function(e){return t._hasLocalConversation(e)?Rt(e)||Ot(e)?void(Rt(e)?a.itemList[0].contactItem.push({type:1,toAccount:e.replace(k.CONV_C2C,\"\")}):Ot(e)&&a.itemList[0].contactItem.push({type:2,groupID:e.replace(k.CONV_GROUP,\"\")})):(t._onConversationIDInvalid(u,e),!0):(t._onConversationNotFound(u,e),!0)})),u.length===r.length?_a({successConversationIDList:i,failureConversationIDList:u}):this._conversationModule.request({protocolName:rs,requestData:a}).then((function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var r=e.data.groupResultItem[0],a=r.groupItem,c=r.resultItem;if(ct(a)&&(t._convGroupMap.set(a.convGroupID,a.groupName),t._emitConvGroupListUpdate()),lt(c)){var l,d,p=!1;c.forEach((function(e){l=t._concatConversationID(e.contactItem),0===e.resultCode?(i.push(l),(d=t._getLocalConversation(l))&&-1===d.conversationGroupList.indexOf(s)&&(d.conversationGroupList.push(s),p=!0)):u.push({conversationID:l,code:e.resultCode,message:e.resultInfo})})),!0===p&&(t._emitConversationUpdate(),t._emitConvGroupListUpdate())}return la({successConversationIDList:i,failureConversationIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"deleteConvGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"deleteConvGroup\");Ve.l(\"\".concat(n,\" groupName:\").concat(e));var o=new jr(\"deleteConvGroup\");return o.setMessage(e),this._conversationModule.request({protocolName:as,requestData:{fromAccount:this._getMyUserID(),groupName:[e]}}).then((function(s){o.setNetworkType(t._conversationModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var r=s.data.groupItem;if(lt(r)){var a=!1;r.forEach((function(e){t._convGroupMap.has(e.convGroupID)&&(t._convGroupMap.delete(e.convGroupID),a=!0)})),!0===a&&t._emitConvGroupListUpdate()}t._eraseFromConversationGroupList([e])})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"renameConvGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"renameConvGroup\");Ve.l(\"\".concat(n,\" options:\"),e);var o=new jr(\"renameConvGroup\");o.setMessage(JSON.stringify(e));var s=e.oldName,r=e.newName;return this._conversationModule.request({protocolName:is,requestData:{fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:1,oldName:s,newName:r}}}).then((function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var a=e.data.updateGroupResult.convGroupID;t._convGroupMap.set(a,r),t._emitConvGroupListUpdate();var i,u,c=t._conversationModule.getLocalConversationList(),l=!1;c.forEach((function(e){i=e.conversationGroupList,-1!==(u=i.indexOf(s))&&(i.splice(u,1,r),l=!0)})),!0===l&&t._emitConversationUpdate()})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"addConvsToGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"addConvsToGroup\");Ve.l(\"\".concat(n,\" options:\"),e);var o=new jr(\"addConvsToGroup\");o.setMessage(JSON.stringify(e));var s=e.conversationIDList,r=e.groupName,a={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:r,updateItem:[]}},i=[],u=[];return s.forEach((function(e){return t._hasLocalConversation(e)?Rt(e)||Ot(e)?void(Rt(e)?a.updateGroup.updateItem.push({operationType:1,contactItem:{type:1,toAccount:e.replace(k.CONV_C2C,\"\")}}):Ot(e)&&a.updateGroup.updateItem.push({operationType:1,contactItem:{type:2,groupID:e.replace(k.CONV_GROUP,\"\")}})):(t._onConversationIDInvalid(u,e),!0):(t._onConversationNotFound(u,e),!0)})),u.length===s.length?_a({successConversationIDList:i,failureConversationIDList:u}):this._conversationModule.request({protocolName:us,requestData:a}).then((function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var s=e.data.updateGroupResult.contactResultItem;if(lt(s)){var a,c,l=!1;s.forEach((function(e){a=t._concatConversationID(e.contactItem),0===e.resultCode?(c=t._getLocalConversation(a))&&-1===c.conversationGroupList.indexOf(r)&&(c.conversationGroupList.push(r),i.push(a),l=!0):u.push({conversationID:a,code:e.resultCode,message:e.resultInfo})})),!0===l&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(r))}return la({successConversationIDList:i,failureConversationIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"deleteConvsFromGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"deleteConvsFromGroup\");Ve.l(\"\".concat(n,\" options:\"),e);var o=new jr(\"deleteConvsFromGroup\");o.setMessage(JSON.stringify(e));var s=e.conversationIDList,r=e.groupName,a={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:r,updateItem:[]}},i=[],u=[];return s.forEach((function(e){return t._hasLocalConversation(e)?Rt(e)||Ot(e)?void(Rt(e)?a.updateGroup.updateItem.push({operationType:2,contactItem:{type:1,toAccount:e.replace(k.CONV_C2C,\"\")}}):Ot(e)&&a.updateGroup.updateItem.push({operationType:2,contactItem:{type:2,groupID:e.replace(k.CONV_GROUP,\"\")}})):(t._onConversationIDInvalid(u,e),!0):(t._onConversationNotFound(u,e),!0)})),u.length===s.length?_a({successConversationIDList:i,failureConversationIDList:u}):this._conversationModule.request({protocolName:cs,requestData:a}).then((function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var s=e.data.updateGroupResult.contactResultItem;if(lt(s)){var a,c,l=!1;s.forEach((function(e){if(a=t._concatConversationID(e.contactItem),0===e.resultCode){if(c=t._getLocalConversation(a)){var n=c.conversationGroupList.indexOf(r);-1!==n&&(c.conversationGroupList.splice(n,1),i.push(a),l=!0)}}else u.push({conversationID:a,code:e.resultCode,message:e.resultInfo})})),!0===l&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(r))}return la({successConversationIDList:i,failureConversationIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"onConvMarkUpdated\",value:function(e){var t=this;if(!$t(e)){var n,o;Ve.d(\"\".concat(this._n,\".onConvMarkUpdated markItemList:\"),e);var s=!1;e.forEach((function(e){var r=e.recentContactItem,a=e.optType,i=e.standardMark,u=e.customMark;if(n=t._concatConversationID(r),o=t._getLocalConversation(n))if(1===a){var c=Jt(i);!0!==function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!1;return!0}(o.markList,c)&&(o.markList=c,s=!0)}else 2===a&&o.customData!==u&&void 0!==u&&(o.customData=u,s=!0)})),!0===s&&this._emitConversationUpdate()}}},{key:\"onConvGroupCreated\",value:function(e){var t=this;Ve.d(\"\".concat(this._n,\".onConvGroupCreated resultList:\"),e);var n=!1,o=!1;lt(e)&&(e.forEach((function(e){var s=e.msgGroupItem,r=s.groupID,a=s.groupName;t._convGroupMap.get(r)!==a&&(t._convGroupMap.set(r,a),o=!0);var i,u,c=e.msgRecentContactItem;lt(c)&&c.forEach((function(e){i=t._concatConversationID(e),(u=t._getLocalConversation(i))&&-1===u.conversationGroupList.indexOf(a)&&(u.conversationGroupList.push(a),n=!0)}))})),!0===n&&this._emitConversationUpdate(),!0===o&&this._emitConvGroupListUpdate())}},{key:\"onConvGroupDeleted\",value:function(e){var t=this;Ve.d(\"\".concat(this._n,\".onConvGroupDeleted groupItemList:\"),e);var n=[];if(lt(e)){var o=!1;e.forEach((function(e){var s=e.groupID,r=e.groupName;t._convGroupMap.has(s)&&(t._convGroupMap.delete(s),o=!0,n.push(r))})),!0===o&&this._emitConvGroupListUpdate()}this._eraseFromConversationGroupList(n)}},{key:\"_eraseFromConversationGroupList\",value:function(e){$t(e)||(this._conversationModule.getLocalConversationList().forEach((function(t){t.conversationGroupList=t.conversationGroupList.filter((function(t){return!e.includes(t)}))})),this._emitConversationUpdate())}},{key:\"onConvGroupNameUpdated\",value:function(e){Ve.d(\"\".concat(this._n,\".onConvGroupNameUpdated options:\"),e);var t=e.groupID,n=e.groupName,o=e.oldGroupName;if(this._convGroupMap.get(t)!==n){this._convGroupMap.set(t,n),this._emitConvGroupListUpdate();var s,r,a=this._conversationModule.getLocalConversationList(),i=!1;a.forEach((function(e){s=e.conversationGroupList,-1!==(r=s.indexOf(o))&&(s.splice(r,1,n),i=!0)})),!0===i&&this._emitConversationUpdate()}}},{key:\"onConvInGroupUpdated\",value:function(e){var t=this;Ve.d(\"\".concat(this._n,\".onConvInGroupUpdated options:\"),e);var n=e.oldGroupName,o=e.recentContactUpdateGroupItem;if(lt(o)){var s,r,a,i=!1;o.forEach((function(e){var o=e.contactOptType,u=e.recentContactItem;s=t._concatConversationID(u),(r=t._getLocalConversation(s))&&(a=r.conversationGroupList.indexOf(n),1===o?-1===a&&(r.conversationGroupList.push(n),i=!0):2===o&&-1!==a&&(r.conversationGroupList.splice(a,1),i=!0))})),!0===i&&(this._emitConversationUpdate(),this._emitConvInGroupUpdate(n))}}},{key:\"onConvAddedToOrDeletedFromGroup\",value:function(e){var t=this;Ve.d(\"\".concat(this._n,\".onConvAddedToOrDeletedFromGroup options:\"),e);var n=e.msgRecentContactItem,o=e.msgRecentContactUpdateContactItem,s=this._concatConversationID(n),r=this._getLocalConversation(s);if(r&&lt(o)){var a,i=!1;o.forEach((function(e){var n=e.groupOptType,o=e.recentContactGroupItem.groupName;a=r.conversationGroupList.indexOf(o),1===n?-1===a&&(r.conversationGroupList.push(o),i=!0):2===n&&-1!==a&&(r.conversationGroupList.splice(a,1),i=!0),!0===i&&t._emitConvInGroupUpdate(o)})),!0===i&&this._emitConversationUpdate()}}},{key:\"onConvGroupListSynced\",value:function(e){var t=this;lt(e)&&0!==e.length&&(Ve.l(\"\".concat(this._n,\".onConvGroupListSynced groupItemList:\"),e),e.forEach((function(e){t._convGroupMap.set(e.convGroupID,e.groupName)})))}},{key:\"getConvGroupListByID\",value:function(e){var t=this;if(!$t(e)){var n=[];return e.forEach((function(e){t._convGroupMap.has(e)&&n.push(t._convGroupMap.get(e))})),n}}},{key:\"_onConversationNotFound\",value:function(e,t){e.push({conversationID:t,code:Or.CONVERSATION_NOT_FOUND,message:this._conversationModule.getErrorMessage(Or.CONVERSATION_NOT_FOUND)})}},{key:\"_onConversationIDInvalid\",value:function(e,t){e.push({conversationID:t,code:Or.INVALID_CONVERSATION_ID,message:this._conversationModule.getErrorMessage(Or.INVALID_CONVERSATION_ID)})}},{key:\"_getFlagBit\",value:function(e){for(var t=e.toString(2),n=t.length,o=n-1;o>=0;o--)if(\"1\"===t[o])return n-o-1}},{key:\"_concatConversationID\",value:function(e){var t,n=e.type,o=e.to,s=e.groupID,r=e.userID;return 1===n?dt(r)?dt(o)||(t=\"\".concat(k.CONV_C2C).concat(o)):t=\"\".concat(k.CONV_C2C).concat(r):2===n&&(t=\"\".concat(k.CONV_GROUP).concat(s)),t}},{key:\"_getMyUserID\",value:function(){return this._conversationModule.getMyUserID()}},{key:\"_insertConversationGroup\",value:function(e,t){var n=this._getLocalConversation(e);if(n){var o=n.conversationGroupList;-1===o.indexOf(t)&&o.push(t)}}},{key:\"_getLocalConversation\",value:function(e){return this._conversationModule.getLocalConversation(e)}},{key:\"_hasLocalConversation\",value:function(e){return this._conversationModule.hasLocalConversation(e)}},{key:\"_emitConversationUpdate\",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:\"_emitConvGroupListUpdate\",value:function(){this._conversationModule.emitOuterEvent(E.CONVERSATION_GROUP_LIST_UPDATED,v(this._convGroupMap.values()))}},{key:\"_emitConvInGroupUpdate\",value:function(e){var t={groupName:e,conversationList:[]},n=this._conversationModule.getLocalConversationList();t.conversationList=n.filter((function(t){return t.conversationGroupList.includes(e)})),this._conversationModule.emitOuterEvent(E.CONVERSATION_IN_GROUP_UPDATED,t)}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._convGroupMap.clear(),this._startIndex=0,this._pagingStatus=sn.NOT_START}}]),e}(),wa=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"ConversationModule\",Ia.mixin(_(t)),t._messageListHandler=new ma,t._messageRemindHandler=new Pa(_(t)),t._convGroupHandler=new ba(_(t)),t.singlyLinkedList=new Na(100),t._pagingStatus=sn.NOT_START,t._pagingTimeStamp=0,t._pagingStartIndex=0,t._pagingPinnedTimeStamp=0,t._pagingPinnedStartIndex=0,t._pagingConvIDMap=new Map,t._convIDFromUnreadDBMap=new Map,t._conversationMap=new Map,t._tmpGroupList=[],t._tmpGroupAtTipsList=[],t._peerReadTimeMap=new Map,t._completedMap=new Map,t._roamingMessageKeyAndTimeMap=new Map,t._roamingMessageSequenceMap=new Map,t._remoteGroupReadSequenceMap=new Map,t._convTotalUnreadCount=0,t._pagingGetCostList=[],t._initListeners(),t}return r(s,[{key:\"_initListeners\",value:function(){var e=this.getInnerEmitterInstance();e.on(va,this._initLocalConversationList,this),e.on(ya,this._onProfileUpdated,this)}},{key:\"onCheckTimer\",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:\"_initLocalConversationList\",value:function(){var e=this,t=new jr(\"_initLocalConversationList\");Ve.l(\"\".concat(this._n,\".\").concat(\"_initLocalConversationList\"));var n=\"\",o=this._getStorageConversationList(),s=this.isIntl();if(o){for(var r=o.length,a=0;a<r;a++){var i=o[a];if(i){if(i.conversationID===\"\".concat(k.CONV_C2C,\"@TLS#ERROR\")||i.conversationID===\"\".concat(k.CONV_C2C,\"@TLS#NOT_FOUND\"))continue;if(i.groupProfile){var u=i.groupProfile.type;if(Lt(u))continue}}this._conversationMap.set(o[a].conversationID,new Ua(o[a],s))}this.emitConversationUpdate(!0,!1),n=\"count:\".concat(r)}else n=\"count:0\";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(qn)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this.syncConversationList()}},{key:\"onMessageSent\",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:\"onNewMessage\",value:function(e){this._onSendOrReceiveMessage(e)}},{key:\"_onSendOrReceiveMessage\",value:function(e){var t=this,n=e.conversationOptionsList,o=e.isInstantMessage,s=void 0===o||o,r=e.isUnreadC2CMessage,a=void 0!==r&&r,i=e.updateUnreadCount,u=void 0===i||i;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:s,isUnreadC2CMessage:a,isFromGetConversations:!1,updateUnreadCount:u}),s||(this._convIDFromUnreadDBMap=new Map([].concat(v(this._convIDFromUnreadDBMap),v(n.map((function(e){return[e.conversationID,1]}))))),this._diffAndDeleteConversation()),this._setStorageConversationList(),n.filter((function(e){return e.type===k.CONV_TOPIC})).length>0||this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:\"updateConversationGroupProfile\",value:function(e){var t=this;if(!lt(e)||0!==e.length)if(0!==this._conversationMap.size){var n=!1;e.forEach((function(e){var o=\"GROUP\".concat(e.groupID);if(t._conversationMap.has(o)){n=!0;var s=t._conversationMap.get(o);s.groupProfile=JSON.parse(JSON.stringify(e)),s.lastMessage.lastSequence<e.nextMessageSeq&&(s.lastMessage.lastSequence=e.nextMessageSeq-1),s.subType||(s.subType=e.type)}})),n&&this.emitConversationUpdate(!0,!1)}else this._tmpGroupList=e}},{key:\"_updateConversationUserProfile\",value:function(e){var t=this;e.data.forEach((function(e){var n=\"C2C\".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:\"onMessageRevoked\",value:function(e){var t=this;if(0!==e.length){var n=null,o=!1,s=[];e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&(n.type===k.CONV_TOPIC?s.push(e):(n.reduceUnreadCount()&&(o=!0),n.isLastMessageRevoked({sequence:e.sequence,time:e.time})&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),o=!0)))})),this.getModule(Hn).onMessageRevoked(s),o&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())}}},{key:\"isLastMessageRevoked\",value:function(e){var t=!1,n=e.conversationID,o=e.sequence,s=e.time,r=this._conversationMap.get(n);r&&(t=r.type===k.CONV_TOPIC?this.getModule(Hn).isLastMessageRevoked({topicID:n.replace(k.CONV_GROUP,\"\"),sequence:o}):r.isLastMessageRevoked({sequence:o,time:s}));return Ve.l(\"\".concat(this._n,\".isLastMessageRevoked options:\").concat(JSON.stringify(e),\" ret:\").concat(t)),t}},{key:\"onMessageDeleted\",value:function(e){var t=this;if(0!==e.length){var n=null;e.forEach((function(e){(n=t._messageListHandler.getLocalMessage(e.conversationID,e.ID))&&(n.isDeleted=!0),e!==n&&(e.isDeleted=!0)}));for(var o=e[0].conversationID,s=this._messageListHandler.getLocalMessageList(o),r={},a=s.length-1;a>=0;a--)if(!s[a].isDeleted){r=s[a];break}var i=this._conversationMap.get(o);if(i){var u=!1;i.lastMessage.lastSequence===r.sequence&&i.lastMessage.lastTime===r.time||($t(r)&&(r=void 0),i.updateLastMessage(r),i.type!==k.CONV_TOPIC&&(u=!0),Ve.l(\"\".concat(this._n,\".onMessageDeleted. update conversationID:\").concat(o,\" with lastMessage:\"),i.lastMessage)),o.startsWith(k.CONV_C2C)&&this.updateUnreadCount(o),u&&this.emitConversationUpdate(!0,!1)}}}},{key:\"onMessageModified\",value:function(e){var t=e.conversationType,n=e.from,o=e.to,s=e.time,r=e.sequence,a=e.elements,i=e.cloudCustomData,u=e.messageVersion,c=this.getMyUserID(),l=\"\".concat(t).concat(o);o===c&&t===k.CONV_C2C&&(l=\"\".concat(t).concat(n));var d=this._messageListHandler.onMessageModified(l,e),p=d.isUpdated,g=d.message;!0===p&&this.emitOuterEvent(E.MESSAGE_MODIFIED,[g]);var _=this._isTopicConversation(l);if(Ve.l(\"\".concat(this._n,\".onMessageModified isUpdated:\").concat(p,\" isTopicMessage:\").concat(_,\" from:\").concat(n,\" to:\").concat(o)),_){this.getModule(Hn).onMessageModified(e)}else{var h=this._conversationMap.get(l);if(h){var f=h.lastMessage;Ve.d(\"\".concat(this._n.onMessageModified,\" lastMessage:\"),JSON.stringify(f),\"options:\",JSON.stringify(e)),f&&f.lastTime===s&&f.lastSequence===r&&f.version!==u&&(f.type=a[0].type,f.payload=a[0].content,f.messageForShow=Yt(f.type,f.payload,this.isIntl()),f.cloudCustomData=i,f.version=u,this.emitConversationUpdate(!0,!1))}}return g}},{key:\"onNewGroupAtTips\",value:function(e){var n=this,o=e.dataList,s=null;o.forEach((function(e){e.groupAtTips?s=e.groupAtTips:e.elements?s=t(t({},e.elements),{},{sync:!0}):e.groupAtType&&(s=t(t({},e),{},{sync:!0})),s.__random=e.random,s.__sequence=e.clientSequence,n._tmpGroupAtTipsList.push(s)})),Ve.d(\"\".concat(this._n,\".onNewGroupAtTips isReady:\").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:\"_handleGroupAtTipsList\",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var o=n.groupID,s=n.from,r=n.topicID,a=void 0===r?void 0:r,i=n.sync,u=void 0!==i&&i;if(s!==e.getMyUserID())if(dt(a)){var c=e._conversationMap.get(\"\".concat(k.CONV_GROUP).concat(o));c&&(c.updateGroupAtInfoList(n),t=!0)}else{var l=e._conversationMap.get(\"\".concat(k.CONV_GROUP).concat(a));if(l){l.updateGroupAtInfoList(n);var d=e.getModule(Hn),p=l.groupAtInfoList;d.onConversationProxy({topicID:a,groupAtInfoList:p})}if($t(l)&&u)e.updateTopicConversation([{conversationID:\"\".concat(k.CONV_GROUP).concat(a),type:k.CONV_TOPIC}]),e._conversationMap.get(\"\".concat(k.CONV_GROUP).concat(a)).updateGroupAtInfoList(n)}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:\"_getC2CPeerReadTime\",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==k.CONV_C2C||n.push(e.conversationID.replace(k.CONV_C2C,\"\"))})),n.length>0){Ve.d(\"\".concat(this._n,\"._getC2CPeerReadTime userIDList:\").concat(n));var o=this.getModule(qn);o&&o.getRemotePeerReadTime(n)}}},{key:\"_getStorageConversationList\",value:function(){return this.getModule(Yn).getItem(\"conversationMap\")}},{key:\"_setStorageConversationList\",value:function(){var e=this.getLocalConversationList().filter((function(e){return e.type===k.CONV_C2C||e.type===k.CONV_GROUP&&e.lastMessage.type!==k.MSG_GRP_TIP})).slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(Yn).setItem(\"conversationMap\",e)}},{key:\"emitConversationUpdate\",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversationList();if(t){var o=this.getModule(xn);o&&o.updateGroupLastMessage(n)}e&&this.emitOuterEvent(E.CONVERSATION_LIST_UPDATED)}},{key:\"getLocalConversationList\",value:function(){return v(this._conversationMap.values()).filter((function(e){return e.type!==k.CONV_TOPIC}))}},{key:\"getLocalConversation\",value:function(e){return this._conversationMap.get(e)}},{key:\"hasLocalConversation\",value:function(e){return this._conversationMap.has(e)}},{key:\"getLocalOldestMessage\",value:function(e){return this._messageListHandler.getLocalOldestMessage(e)}},{key:\"syncConversationList\",value:function(){var e=this,t=new jr(\"syncConversationList\");return this._pagingStatus===sn.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){var o=function(e){if(lt(e)&&0!==e.length){var t=0;return e.forEach((function(e){t+=e})),(t/e.length).toFixed(0)}}(e._pagingGetCostList);return Ve.l(\"\".concat(e._n,\".\").concat(\"syncConversationList\",\". sum \").concat(function(e){if(lt(e)&&0!==e.length){var t=0;return e.forEach((function(e){t+=e})),t.toFixed(0)}}(e._pagingGetCostList),\" ms, average \").concat(o,\" ms\")),e._pagingGetCostList.length=0,e._pagingStatus=sn.RESOLVED,e._diffAndDeleteConversation(),e.emitConversationUpdate(!0,!1),e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setMoreMessage(o).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=sn.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var o=m(e,2),s=o[0],r=o[1];t.setError(n,s,r).end()})),ha(n)}))}},{key:\"_diffAndDeleteConversation\",value:function(){var e=this;if(this._isSyncCompleted()){var t=[];this._conversationMap.forEach((function(n,o){!e._pagingConvIDMap.has(o)&&e._convIDFromUnreadDBMap.has(o)&&(e._conversationMap.delete(o),t.push(o))})),Ve.l(\"\".concat(this._n,\"._diffAndDeleteConversation list:\").concat(t))}}},{key:\"_patchConversationProperties\",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),o=this._messageRemindHandler.getC2CMessageRemindType(),s=this.getModule(xn).getGroupList();Promise.all([n,o,s]).then((function(){var n=Date.now()-t;Ve.l(\"\".concat(e._n,\"._patchConversationProperties ok. cost \").concat(n,\" ms\")),e.emitConversationUpdate(!0,!1),e.emitTotalUnreadMessageCountUpdate()}))}},{key:\"_pagingGetConversationList\",value:function(){var e=this,t=\"\".concat(this._n,\"._pagingGetConversationList\");Ve.l(\"\".concat(t,\" timeStamp:\").concat(this._pagingTimeStamp,\" startIndex:\").concat(this._pagingStartIndex)+\" pinnedTimeStamp:\".concat(this._pagingPinnedTimeStamp,\" pinnedStartIndex:\").concat(this._pagingPinnedStartIndex));var n=Date.now();return this._pagingStatus=sn.PENDING,this.request({protocolName:Qo,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingPinnedStartIndex,orderType:1}}).then((function(o){var s=o.data,r=s.completeFlag,a=s.conversations,i=void 0===a?[]:a,u=s.timeStamp,c=s.startIndex,l=s.pinnedTimeStamp,d=s.pinnedStartIndex,p=s.groupItem,g=Date.now()-n;if(e._pagingGetCostList.push(g),Ve.l(\"\".concat(t,\" ok. completeFlag:\").concat(r,\" count:\").concat(i.length,\" cost \").concat(g,\" ms\")),e._convGroupHandler.onConvGroupListSynced(p),i.length>0){var _=e._getConversationOptions(i);e._pagingConvIDMap=new Map([].concat(v(e._pagingConvIDMap),v(_.map((function(e){return[e.conversationID,1]}))))),e._updateLocalConversationList({conversationOptionsList:_,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return _a();e.triggerReady()}return e._pagingTimeStamp=u,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=l,e._pagingPinnedStartIndex=d,1!==r?e._pagingGetConversationList():(e._handleGroupAtTipsList(),e._convGroupHandler.getRemoteConvGroupList(),_a())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(Ve.w(\"\".concat(t,\" failed. error:\"),n),e.triggerReady())),n}))}},{key:\"_updateLocalConversationList\",value:function(e){var t,n=e.isFromGetConversations,o=e.isInstantMessage,s=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(v(t.toBeUpdatedConversationList),v(this._conversationMap)))),n||(this._updateUserOrGroupProfile(t.newConversationList),o&&this.emitTotalUnreadMessageCountUpdate()),Ve.d(\"\".concat(this._n,\"._updateLocalConversationList cost \").concat(Date.now()-s,\" ms\"))}},{key:\"_getTmpConversationListMapping\",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,o=e.isInstantMessage,s=e.isUnreadC2CMessage,r=void 0!==s&&s,a=e.updateUnreadCount,i=[],u=[],c=this.getModule(xn),l=this.getModule(Vn),d=this.isIntl(),p=0,g=t.length;p<g;p++){var _=new Ua(t[p],d),h=_.conversationID;if(h!==\"\".concat(k.CONV_C2C,\"@TLS#ERROR\")&&h!==\"\".concat(k.CONV_C2C,\"@TLS#NOT_FOUND\"))if(this._conversationMap.has(h)){var f=this._conversationMap.get(h),m=[\"unreadCount\",\"allowType\",\"adminForbidType\",\"payload\",\"isPinned\"];!1===o&&m.push(\"lastMessage\");var v=t[p].lastMessage,M=!dt(v);M||t[p].type===k.CONV_TOPIC||this._onLastMessageNotExist(t[p]),dt(o)&&M&&null===f.lastMessage.payload&&(f.lastMessage.payload=v.payload),$t(f.lastMessage.revoker)||(f.lastMessage.revoker=null),mt(f,_,m,[null,void 0,\"\",0,NaN]),!0===a&&f.updateUnreadCount({nextUnreadCount:_.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:r}),o&&M&&(v.payload&&(f.lastMessage.payload=v.payload),f.type===k.CONV_GROUP&&(f.lastMessage.nameCard=v.nameCard,f.lastMessage.nick=v.nick)),M&&f.lastMessage.cloudCustomData!==v.cloudCustomData&&(f.lastMessage.cloudCustomData=v.cloudCustomData||\"\"),this._conversationMap.delete(h),i.push([h,f])}else{if(_.type===k.CONV_GROUP&&c){var y=_.groupProfile.groupID,I=c.getLocalGroupProfile(y);I&&(_.groupProfile=I,!0===a&&_.updateUnreadCount({nextUnreadCount:0}))}else if(_.type===k.CONV_C2C){var C=h.replace(k.CONV_C2C,\"\");l&&l.isMyFriend(C)&&(_.remark=l.getFriendRemark(C))}u.push(_),i.push([h,_])}}var T=this.getModule(Hn);return i.forEach((function(e){if(e[1].type===k.CONV_TOPIC){var t=e[1],n=t.conversationID,o=t.unreadCount,s=t.groupAtInfoList;T.onConversationProxy({topicID:n.replace(k.CONV_GROUP,\"\"),unreadCount:o,groupAtInfoList:$t(s)?void 0:s})}})),{toBeUpdatedConversationList:i,newConversationList:u}}},{key:\"_onLastMessageNotExist\",value:function(e){new jr(\"lastMessageNotExist\").setMessage(\"\".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:\"_sortConversationList\",value:function(e){var t=[],n=[],o=[],s=[];return e.forEach((function(e){!0===e[1].isPinned?$t(e[1].lastMessage.lastTime)?n.push(e):t.push(e):$t(e[1].lastMessage.lastTime)?s.push(e):o.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n).concat(o.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime}))).concat(s)}},{key:\"_sortConversationListAndEmitEvent\",value:function(){this._conversationMap=new Map(this._sortConversationList(v(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:\"_updateUserOrGroupProfile\",value:function(e){var t=this;if(0!==e.length){var n=[],o=[],s=this.getModule(Fn),r=this.getModule(xn);e.forEach((function(e){if(e.type===k.CONV_C2C)n.push(e.toAccount);else if(e.type===k.CONV_GROUP){var t=e.toAccount;r.hasLocalGroup(t)?e.groupProfile=r.getLocalGroupProfile(t):o.push(t)}})),Ve.l(\"\".concat(this._n,\"._updateUserOrGroupProfile c2cUserIDList:\").concat(n,\" groupIDList:\").concat(o)),n.length>0&&s.getUserProfile({userIDList:n}).then((function(e){var n=e.data;lt(n)?n.forEach((function(e){t._doUpdateUserProfile(\"C2C\".concat(e.userID),e)})):t._doUpdateUserProfile(\"C2C\".concat(n.userID),n)})),o.length>0&&r.getGroupProfileAdvance({groupIDList:o,responseFilter:{groupBaseInfoFilter:[\"Type\",\"Name\",\"FaceUrl\"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n=\"GROUP\".concat(e.groupID);if(t._conversationMap.has(n)){var o=t._conversationMap.get(n);mt(o.groupProfile,e,[],[null,void 0,\"\",0,NaN]),!o.subType&&e.type&&(o.subType=e.type)}}))}))}}},{key:\"_doUpdateUserProfile\",value:function(e,t){this.hasLocalConversation(e)&&(this.getLocalConversation(e).userProfile=t)}},{key:\"_getConversationOptions\",value:function(e){var n=this,o=[],s=e.filter((function(e){var t=e.type,n=e.userID;return 1===t&&\"@TLS#NOT_FOUND\"!==n&&\"@TLS#ERROR\"!==n||2===t})),r=this.getMyUserID(),a=s.map((function(e){if(dt(e.lastMsg)&&(e.lastMsg={elements:[]}),1===e.type){var s={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return o.push(s),{conversationID:\"C2C\".concat(e.userID),type:\"C2C\",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?n._amendLayersOverLimitProperty(e.lastMsg.elements[0].content):null,cloudCustomData:e.lastMsg.cloudCustomData||\"\",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:\"\",nameCard:\"\",version:0,isPeerRead:e.lastC2CMsgFromAccount===r&&e.time<=e.c2cPeerReadTime,revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null},userProfile:new La(s),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:\"\",customData:e.customMark||\"\",markList:Jt(e.standardMark),conversationGroupList:n._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}return{conversationID:\"GROUP\".concat(e.groupID),type:\"GROUP\",lastMessage:t(t({lastTime:e.time,lastSequence:e.sequence,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},n._patchTypeAndPayload(e)),{},{cloudCustomData:e.lastMsg.cloudCustomData||\"\",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||\"\",nameCard:e.senderNameCard||\"\",revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null}),groupProfile:new Oa({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:\"\",version:0,customData:e.customMark||\"\",markList:Jt(e.standardMark),conversationGroupList:n._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}));o.length>0&&this.getModule(Fn).onConversationsProfileUpdated(o);return a}},{key:\"_patchTypeAndPayload\",value:function(e){var n=e.lastMsg,o=n.event,s=void 0===o?void 0:o,r=n.elements,a=void 0===r?[]:r,i=n.groupTips,u=void 0===i?{}:i;if(!dt(s)&&!$t(u)){var c=new ca(u);c.setElement({type:k.MSG_GRP_TIP,content:t(t({},u.elements),{},{groupProfile:u.groupProfile})});var l=JSON.parse(JSON.stringify(c.payload));return c=null,{type:k.MSG_GRP_TIP,payload:l}}return{type:a[0]?a[0].type:null,payload:a[0]?this._amendLayersOverLimitProperty(a[0].content):null}}},{key:\"_amendLayersOverLimitProperty\",value:function(e){var t=e.layersOverLimit;return 0===t?e.layersOverLimit=!1:1===t&&(e.layersOverLimit=!0),e}},{key:\"getLocalMessageList\",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:\"deleteLocalMessage\",value:function(e){e instanceof ca&&this._messageListHandler.remove(e)}},{key:\"onConversationDeleted\",value:function(e){if(lt(e)){var t=e.map((function(e){var t=e.type,n=e.userID,o=e.groupID;return 1===t?\"\".concat(k.CONV_C2C).concat(n):2===t?\"\".concat(k.CONV_GROUP).concat(o):void 0}));Ve.l(\"\".concat(this._n,\".onConversationDeleted conversationIDList:\").concat(t)),this.deleteLocalConversationList(t)}}},{key:\"onConversationPinned\",value:function(e){var t=this;if(lt(e)){var n=!1;e.forEach((function(e){var o,s=e.type,r=e.userID,a=e.groupID;1===s?o=t.getLocalConversation(\"\".concat(k.CONV_C2C).concat(r)):2===s&&(o=t.getLocalConversation(\"\".concat(k.CONV_GROUP).concat(a))),o&&(Ve.l(\"\".concat(t._n,\".onConversationPinned conversationID:\").concat(o.conversationID,\" isPinned:\").concat(o.isPinned)),o.isPinned||(o.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:\"onConversationUnpinned\",value:function(e){var t=this;if(lt(e)){var n=!1;e.forEach((function(e){var o,s=e.type,r=e.userID,a=e.groupID;1===s?o=t.getLocalConversation(\"\".concat(k.CONV_C2C).concat(r)):2===s&&(o=t.getLocalConversation(\"\".concat(k.CONV_GROUP).concat(a))),o&&(Ve.l(\"\".concat(t._n,\".onConversationUnpinned conversationID:\").concat(o.conversationID,\" isPinned:\").concat(o.isPinned)),o.isPinned&&(o.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:\"getMessageList\",value:function(e){var t=this,n=e.conversationID,o=e.nextReqMessageID,s=e.count,r=\"\".concat(this._n,\".getMessageList\"),a=this.getLocalConversation(n),i=\"\";if(a&&a.groupProfile&&(i=a.groupProfile.type),Lt(i))return Ve.l(\"\".concat(r,\" not available in avchatroom. conversationID:\").concat(n)),_a({messageList:[],nextReqMessageID:\"\",isCompleted:!0});(dt(s)||s>15)&&(s=15),!o&&this._isNotInCommunity(n)&&(this._messageListHandler.removeByConversationID(n),this._completedMap.delete(n),this._roamingMessageSequenceMap.delete(n));var u=this._computeRemainingCount({conversationID:n,nextReqMessageID:o}),c=this._completedMap.has(n);if(Ve.l(\"\".concat(r,\" conversationID:\").concat(n,\" nextReqMessageID:\").concat(o)+\" remainingCount:\".concat(u,\" count:\").concat(s,\" isCompleted:\").concat(c)),this._needGetHistory({conversationID:n,remainingCount:u,count:s}))return this.getHistoryMessages({conversationID:n,nextReqMessageID:o,count:20}).then((function(e){var o=e.nextReqID,s=e.storedMessageList,a=t._completedMap.has(n),i=s;u>0&&(i=t._messageListHandler.getLocalMessageList(n).slice(0,s.length+u));var c={nextReqMessageID:a?\"\":o,messageList:i,isCompleted:a};return Ve.l(\"\".concat(r,\" ret.nextReqMessageID:\").concat(c.nextReqMessageID,\" ret.isCompleted:\").concat(c.isCompleted,\" ret.length:\").concat(i.length)),la(c)}));this.modifyMessageList(n);var l=this._getMessageListFromMemory({conversationID:n,nextReqMessageID:o,count:s});return _a(l)}},{key:\"_getMessageListFromMemory\",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,o=e.count,s=\"\".concat(this._n,\"._getMessageListFromMemory\"),r=this._messageListHandler.getLocalMessageList(t),a=r.length,i=0,u={isCompleted:!1,nextReqMessageID:\"\",messageList:[]};return n?(i=r.findIndex((function(e){return e.ID===n})))>o?(u.messageList=r.slice(i-o,i),u.nextReqMessageID=r[i-o].ID):(u.messageList=r.slice(0,i),u.isCompleted=!0):a>o?(i=a-o,u.messageList=r.slice(i,a),u.nextReqMessageID=r[i].ID):(u.messageList=r.slice(0,a),u.isCompleted=!0),Ve.l(\"\".concat(s,\" conversationID:\").concat(t)+\" ret.nextReqMessageID:\".concat(u.nextReqMessageID,\" ret.isCompleted:\").concat(u.isCompleted,\" ret.length:\").concat(u.messageList.length)),u}},{key:\"getMessageListHopping\",value:function(e){var t=e.conversationID,n=e.sequence,o=e.time,s=e.count,r=e.direction,a=void 0===r?0:r;if((dt(s)||s>15)&&(s=15),t.startsWith(k.CONV_C2C)){var i=this.getModule(qn),u=t.replace(k.CONV_C2C,\"\");return i.getRoamingMessagesHopping({peerAccount:u,time:o,count:s,direction:a})}if(t.startsWith(k.CONV_GROUP)){var c=this.getModule(xn),l=t.replace(k.CONV_GROUP,\"\");return c.getRoamingMessagesHopping({groupID:l,sequence:n,count:s,direction:a})}}},{key:\"_computeRemainingCount\",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,o=this._messageListHandler.getLocalMessageList(t),s=o.length;if(!n)return s;var r=0;return Rt(t)?r=o.findIndex((function(e){return e.ID===n})):Ot(t)&&(r=-1!==n.indexOf(\"-\")?o.findIndex((function(e){return e.ID===n})):o.findIndex((function(e){return e.sequence===n}))),-1===r&&(r=0),r}},{key:\"_getMessageListSize\",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:\"_needGetHistory\",value:function(e){var t=e.conversationID,n=e.remainingCount,o=e.count,s=this.getLocalConversation(t),r=\"\";return s&&s.groupProfile&&(r=s.groupProfile.type),!Gt(t)&&!Lt(r)&&(!(Ot(t)&&this._isPagingGetGroupListCompleted()&&this._getLocalGroupCount()<=4e3&&!this._hasLocalGroup(t)&&!this._isTopicConversation(t))&&(n<=o&&!this._completedMap.has(t)))}},{key:\"_isTopicConversation\",value:function(e){var t=e.replace(k.CONV_GROUP,\"\");return Nt(t)}},{key:\"getHistoryMessages\",value:function(e){var t=e.conversationID,n=e.count;if(t===k.CONV_SYSTEM)return _a();var o=15;n>20&&(o=20);var s=null;if(Rt(t)){var r=this._roamingMessageKeyAndTimeMap.has(t);return(s=this.getModule(qn))?s.getRoamingMessage({conversationID:t,peerAccount:t.replace(k.CONV_C2C,\"\"),count:o,lastMessageTime:r?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:r?this._roamingMessageKeyAndTimeMap.get(t).messageKey:\"\"}):ha({code:Or.CANNOT_FIND_MODULE})}if(Ot(t)){if(!(s=this.getModule(xn)))return ha({code:Or.CANNOT_FIND_MODULE});var a=null;this._conversationMap.has(t)&&(a=this._conversationMap.get(t).lastMessage);var i=0;a&&(i=a.lastSequence);var u=this._roamingMessageSequenceMap.get(t);return s.getRoamingMessage({conversationID:t,groupID:t.replace(k.CONV_GROUP,\"\"),count:o,sequence:u||i})}return _a()}},{key:\"patchConversationLastMessage\",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,o=n.messageForShow,s=n.payload;if($t(o)||$t(s)){var r=this._messageListHandler.getLocalMessageList(e);if(0===r.length)return;var a=r[r.length-1];Ve.l(\"\".concat(this._n,\".patchConversationLastMessage conversationID:\").concat(e,\" payload:\"),a.payload),t.updateLastMessage(a)}}}},{key:\"onRoamingMessage\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=n.startsWith(k.CONV_C2C)?k.CONV_C2C:k.CONV_GROUP,r=null,a=[],i=[],u=0,c=e.length,l=null,d=s===k.CONV_GROUP,p=this.getModule(zn),g=this.getFileDownloadProxy(),_=function(){u=d?e.length-1:0,c=d?0:e.length},h=function(){d?--u:++u},f=function(){return d?u>=c:u<c};for(_();f();h())if(d&&1===e[u].sequence&&o&&this.setCompleted(n),1!==e[u].isPlaceMessage)if((r=new ca(e[u])).to=e[u].to,s!==k.CONV_GROUP||dt(e[u].topicID)||(r.to=e[u].topicID),r.isSystemMessage=!!e[u].isSystemMessage,r.conversationType=s,4===e[u].event?l={type:k.MSG_GRP_TIP,content:t(t({},e[u].elements),{},{groupProfile:e[u].groupProfile})}:(e[u].elements=p.parseElements(e[u].elements,e[u].from),l=e[u].elements),d||r.setNickAndAvatar({nick:e[u].nick,avatar:e[u].avatar}),$t(l)){var m=new jr(\"emptyMessageBody\");m.setMessage(\"from:\".concat(r.from,\" to:\").concat(r.to,\" sequence:\").concat(r.sequence,\" event:\").concat(e[u].event)),m.setNetworkType(this.getNetworkType()).setLevel(\"warning\").end()}else r.setElement(l,g),r.reInitialize(this.getMyUserID()),a.push(r);return _=h=f=null,o?(this._messageListHandler.unshift(a,i),a=null,i):(i=null,a)}},{key:\"findMessage\",value:function(e){return this._messageListHandler.findMessage(e)}},{key:\"_isNotInCommunity\",value:function(e){var t=!1;if(e.startsWith(k.CONV_GROUP)&&this._isTopicConversation(e)){var n=Wt(e.replace(k.CONV_GROUP,\"\"));this.getModule(xn).hasLocalGroup(n)||(t=!0)}return t}},{key:\"deleteTopicRoamingMessageInfo\",value:function(e){var t=this;At({groupID:e})&&this._messageListHandler.getTopicConversationIDList(e).forEach((function(e){t._messageListHandler.removeByConversationID(e),t._completedMap.delete(e),t._roamingMessageSequenceMap.delete(e)}))}},{key:\"deleteGroupRomaingMessageInfo\",value:function(e){var t=\"\".concat(k.CONV_GROUP).concat(e);this._messageListHandler.removeByConversationID(t),this._completedMap.delete(t),this._roamingMessageSequenceMap.delete(t)}},{key:\"setMessageRead\",value:function(e){var t=e.conversationID,n=this.getLocalConversation(t);if(Ve.l(\"\".concat(this._n,\".setMessageRead conversationID:\").concat(t,\" unreadCount:\").concat(n?n.unreadCount:0)),!n)return _a();if(n.type!==k.CONV_GROUP&&n.type!==k.CONV_TOPIC||$t(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return _a();if(n.type===k.CONV_GROUP&&!this._hasLocalGroup(t))return 0!==n.unreadCount&&(n.unreadCount=0,this.emitConversationUpdate(!0,!1)),_a();var o=this._messageListHandler.getLocalLastMessage(t),s=n.lastMessage.lastTime;o&&s<o.time&&(s=o.time);var r=n.lastMessage.lastSequence;if(o&&r<o.sequence&&(r=o.sequence),n.type===k.CONV_TOPIC&&dt(o)){var a=this.getModule(Hn),i=t.replace(k.CONV_GROUP,\"\"),u=Wt(i),c=a.getLocalTopic(u,i);c&&(r=c.nextMessageSeq-1)}var l=null;switch(n.type){case k.CONV_C2C:return(l=this.getModule(qn))?l.setMessageRead({conversationID:t,lastMessageTime:s}):ha({code:Or.CANNOT_FIND_MODULE});case k.CONV_GROUP:case k.CONV_TOPIC:return(l=this.getModule(xn))?l.setMessageRead({conversationID:t,lastMessageSeq:r}):ha({code:Or.CANNOT_FIND_MODULE});case k.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),_a();default:return _a()}}},{key:\"setAllMessageRead\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=\"setAllMessageRead\",o=\"\".concat(this._n,\".\").concat(n);t.scope||(t.scope=k.READ_ALL_MSG),Ve.l(\"\".concat(o,\" options:\"),t);var s=this._createSetAllMessageReadPack(t);if(0===s.readAllC2CMessage&&0===s.groupMessageReadInfoList.length)return _a();var r=new jr(n);return this.request({protocolName:ks,requestData:s}).then((function(n){var o=n.data,s=e._handleAllMessageRead(o);return r.setMessage(\"scope:\".concat(t.scope,\" failureGroups:\").concat(JSON.stringify(s))).setNetworkType(e.getNetworkType()).end(),_a()})).catch((function(t){return e.probeNetwork().then((function(e){var n=m(e,2),o=n[0],s=n[1];r.setError(t,o,s).end()})),Ve.w(\"\".concat(o,\" failed. error:\"),t),ha({code:t&&t.code?t.code:Or.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:void 0})}))}},{key:\"setConversationCustomData\",value:function(e){return this._convGroupHandler.setConvCustomData(e)}},{key:\"markConversation\",value:function(e){return this._convGroupHandler.markConversation(e)}},{key:\"getConversationGroupList\",value:function(){return this._convGroupHandler.getLocalConvGroupList()}},{key:\"createConversationGroup\",value:function(e){return this._convGroupHandler.createConvGroup(e)}},{key:\"deleteConversationGroup\",value:function(e){return this._convGroupHandler.deleteConvGroup(e)}},{key:\"renameConversationGroup\",value:function(e){return this._convGroupHandler.renameConvGroup(e)}},{key:\"addConversationsToGroup\",value:function(e){return this._convGroupHandler.addConvsToGroup(e)}},{key:\"deleteConversationsFromGroup\",value:function(e){return this._convGroupHandler.deleteConvsFromGroup(e)}},{key:\"onConversationMarkUpdated\",value:function(e){this._convGroupHandler.onConvMarkUpdated(e)}},{key:\"onConversationGroupCreated\",value:function(e){this._convGroupHandler.onConvGroupCreated(e)}},{key:\"onConversationGroupDeleted\",value:function(e){this._convGroupHandler.onConvGroupDeleted(e)}},{key:\"onConversationGroupNameUpdated\",value:function(e){this._convGroupHandler.onConvGroupNameUpdated(e)}},{key:\"onConversationInGroupUpdated\",value:function(e){this._convGroupHandler.onConvInGroupUpdated(e)}},{key:\"onConversationAddedToOrDeletedFromGroup\",value:function(e){this._convGroupHandler.onConvAddedToOrDeletedFromGroup(e)}},{key:\"_getConversationLastMessageSequence\",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:\"_getConversationLastMessageTime\",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:\"_createSetAllMessageReadPack\",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},o=e.scope,s=D(this._conversationMap);try{for(s.s();!(t=s.n()).done;){var r=m(t.value,2)[1];if(r.unreadCount>0)if(r.type===k.CONV_C2C&&0===n.readAllC2CMessage){if(o===k.READ_ALL_MSG)n.readAllC2CMessage=1;else if(o===k.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(r.type===k.CONV_GROUP&&(o===k.READ_ALL_GROUP_MSG||o===k.READ_ALL_MSG)){var a=this._getConversationLastMessageSequence(r);n.groupMessageReadInfoList.push({groupID:r.groupProfile.groupID,messageSequence:a})}}}catch(i){s.e(i)}finally{s.f()}return n}},{key:\"onPushedAllMessageRead\",value:function(e){this._handleAllMessageRead(e)}},{key:\"_handleAllMessageRead\",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,o=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate()),o}},{key:\"_parseGroupReadInfo\",value:function(e){var t=[];if(e&&e.length)for(var n=0,o=e.length;n<o;n++){var s=e[n],r=s.groupID,a=s.sequence,i=s.retCode,u=s.lastMessageSeq;dt(i)?this._remoteGroupReadSequenceMap.set(r,u):(this._remoteGroupReadSequenceMap.set(r,a),0!==i&&t.push(\"\".concat(r,\"-\").concat(a,\"-\").concat(i)))}return t}},{key:\"_updateAllConversationUnreadCount\",value:function(e){var t,n=e.readAllC2CMessage,o=0,s=D(this._conversationMap);try{for(s.s();!(t=s.n()).done;){var r=m(t.value,2),a=r[0],i=r[1];if(i.unreadCount>=1){if(1===n&&i.type===k.CONV_C2C){var u=this._getConversationLastMessageTime(i);this.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:u})}else if(i.type===k.CONV_GROUP){var c=a.replace(k.CONV_GROUP,\"\");if(this._remoteGroupReadSequenceMap.has(c)){var l=this._remoteGroupReadSequenceMap.get(c),d=this._getConversationLastMessageSequence(i);this.updateIsReadAfterReadReport({conversationID:a,remoteReadSequence:l}),d>=l&&this._remoteGroupReadSequenceMap.delete(c)}}this.updateUnreadCount(a,!1)&&(o+=1)}}}catch(p){s.e(p)}finally{s.f()}return o}},{key:\"isRemoteRead\",value:function(e){var t=e.conversationID,n=e.sequence,o=t.replace(k.CONV_GROUP,\"\"),s=!1;if(this._remoteGroupReadSequenceMap.has(o)){var r=this._remoteGroupReadSequenceMap.get(o);n<=r&&(s=!0,Ve.l(\"\".concat(this._n,\".isRemoteRead conversationID:\").concat(t,\" messageSequence:\").concat(n,\" remoteReadSequence:\").concat(r))),n>=r+10&&this._remoteGroupReadSequenceMap.delete(o)}return s}},{key:\"updateIsReadAfterReadReport\",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,o=e.lastMessageTime,s=this._messageListHandler.getLocalMessageList(t);if(0!==s.length)for(var r,a=s.length-1;a>=0;a--)if(r=s[a],!(o&&r.time>o||n&&r.sequence>n)){if(\"in\"===r.flow&&r.isRead)break;r.setIsRead(!0)}}},{key:\"updateUnreadCount\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,o=this.getLocalConversation(e),s=this._messageListHandler.getLocalMessageList(e);if(o){var r=o.unreadCount,a=s.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;if(r!==a&&(o.unreadCount=a,n=!0,Ve.l(\"\".concat(this._n,\".updateUnreadCount from \").concat(r,\" to \").concat(a,\", conversationID:\").concat(e)),!0===t&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())),n&&o.type===k.CONV_TOPIC){var i=o.unreadCount,u=this.getModule(Hn),c=e.replace(k.CONV_GROUP,\"\");u.onConversationProxy({topicID:c,unreadCount:i})}return n}}},{key:\"clearGroupAtInfoList\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversation(e);if(n&&n.groupAtInfoList.length>0){if(n.clearGroupAtInfoList(),Ve.l(\"\".concat(this._n,\".clearGroupAtInfoList conversationID:\").concat(e)),n.type===k.CONV_TOPIC){var o=n.groupAtInfoList,s=this.getModule(Hn),r=e.replace(k.CONV_GROUP,\"\");s.onConversationProxy({topicID:r,groupAtInfoList:o})}!0===t&&this.emitConversationUpdate(!0,!1)}}},{key:\"updateReadReceiptInfo\",value:function(e){var t=this,n=e.userID,o=void 0===n?void 0:n,s=e.groupID,r=void 0===s?void 0:s,a=e.readReceiptList;if(!$t(a)){var i=[];if(dt(o)){if(!dt(r)){var u=\"\".concat(k.CONV_GROUP).concat(r);a.forEach((function(e){var n=e.tinyID,o=e.clientTime,s=e.random,a=e.readCount,c=e.unreadCount,l=\"\".concat(n,\"-\").concat(o,\"-\").concat(s),d=t._messageListHandler.getLocalMessage(u,l),p={groupID:r,messageID:l,readCount:0,unreadCount:0};d&&(at(a)&&(d.readReceiptInfo.readCount=a,p.readCount=a),at(c)&&(d.readReceiptInfo.unreadCount=c,p.unreadCount=c),i.push(p))}))}}else{var c=\"\".concat(k.CONV_C2C).concat(o);a.forEach((function(e){var n=e.tinyID,s=e.clientTime,r=e.random,a=\"\".concat(n,\"-\").concat(s,\"-\").concat(r),u=t._messageListHandler.getLocalMessage(c,a);if(u){u.readReceiptInfo.isPeerRead=!0;var l={userID:o,messageID:a,isPeerRead:!0};i.push(l)}}))}i.length>0&&this.emitOuterEvent(E.MESSAGE_READ_RECEIPT_RECEIVED,i)}}},{key:\"recomputeGroupUnreadCount\",value:function(e){var t=e.conversationID,n=e.count,o=this.getLocalConversation(t);if(o){var s=o.unreadCount,r=s-n;r<0&&(r=0),o.unreadCount=r,Ve.l(\"\".concat(this._n,\".recomputeGroupUnreadCount from \").concat(s,\" to \").concat(r,\", conversationID:\").concat(t))}}},{key:\"updateIsRead\",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!Gt(t.type)){for(var o=[],s=0,r=n.length;s<r;s++)\"in\"!==n[s].flow?\"out\"!==n[s].flow||n[s].isRead||n[s].setIsRead(!0):o.push(n[s]);var a=0;if(t.type===k.CONV_C2C){var i=o.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;a=o.length-t.unreadCount-i}else a=o.length-t.unreadCount;for(var u=0;u<a&&!o[u].isRead;u++)o[u].setIsRead(!0)}}},{key:\"deleteGroupAtTips\",value:function(e){var t=this,n=\"\".concat(this._n,\".deleteGroupAtTips\");Ve.l(\"\".concat(n));var o=this._conversationMap.get(e);if(!o)return Promise.resolve();var s=o.groupAtInfoList;if(0===s.length)return Promise.resolve();var r=void 0;e.startsWith(k.CONV_GROUP)&&(r=e.replace(k.CONV_GROUP,\"\"));var a=v(s);if((At({groupID:r})||Nt(r))&&0===(a=s.filter((function(e){return!e.atTypeArray.includes(k.CONV_AT_ALL)}))).length)return this.clearGroupAtInfoList(e,!1),Promise.resolve();var i=this.getMyUserID();return this.request({protocolName:ns,requestData:{messageListToDelete:a.map((function(e){return{from:e.from,to:i,messageSeq:e.__sequence,messageRandom:e.__random,groupID:dt(e.topicID)?e.groupID:e.topicID}}))}}).then((function(){return Ve.l(\"\".concat(n,\" ok. count:\").concat(s.length)),t.clearGroupAtInfoList(e,!1),Promise.resolve()})).catch((function(e){return Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"appendToMessageList\",value:function(e){this._messageListHandler.pushIn(e)}},{key:\"setMessageRandom\",value:function(e){this.singlyLinkedList.set(e.random)}},{key:\"deleteMessageRandom\",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:\"pushIntoMessageList\",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:\"_isMessageFromCurrentInstance\",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:\"revoke\",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:\"getPeerReadTime\",value:function(e){return this._peerReadTimeMap.get(e)}},{key:\"recordPeerReadTime\",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:\"updateMessageIsPeerReadProperty\",value:function(e,t){if(e.startsWith(k.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);if(n.length>0&&this.emitOuterEvent(E.MESSAGE_READ_BY_PEER,n),this._conversationMap.has(e)){var o=this._conversationMap.get(e).lastMessage;$t(o)||o.fromAccount===this.getMyUserID()&&o.lastTime<=t&&!o.isPeerRead&&(o.isPeerRead=!0,this.emitConversationUpdate(!0,!1))}}}},{key:\"updateMessageIsModifiedProperty\",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:\"setCompleted\",value:function(e){Ve.l(\"\".concat(this._n,\".setCompleted. conversationID:\").concat(e)),this._completedMap.set(e,!0)}},{key:\"updateRoamingMessageKeyAndTime\",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:\"updateRoamingMessageSequence\",value:function(e,t){this._roamingMessageSequenceMap.set(e,t)}},{key:\"getConversationList\",value:function(e){var t=this,n=\"getConversationList\",o=\"\".concat(this._n,\".\").concat(n),s=\"pagingStatus:\".concat(this._pagingStatus,\", local conversation count:\").concat(this._conversationMap.size,\", options:\").concat(e);if(Ve.l(\"\".concat(o,\". \").concat(s)),this._pagingStatus===sn.REJECTED){var r=new jr(n);return r.setMessage(s),this.syncConversationList().then((function(){r.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return la({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}if(0===this._conversationMap.size){var a=new jr(n);return a.setMessage(s),this.syncConversationList().then((function(){a.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return la({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}var i=this._getConversationList(e);return Ve.l(\"\".concat(o,\". returned conversation count:\").concat(i.length)),_a({conversationList:i,isSyncCompleted:this._isSyncCompleted()})}},{key:\"_getConversationList\",value:function(e){if(dt(e))return this.getLocalConversationList();if(lt(e))return 0===e.length?[]:this.getLocalConversationList().filter((function(t){return e.includes(t.conversationID)}));if(ct(e)){var t=e.type,n=e.markType,o=e.groupName;return this.getLocalConversationList().filter((function(e){return(t!==k.CONV_C2C&&t!==k.CONV_GROUP||e.type===t)&&(!it(o)||e.conversationGroupList.includes(o))&&(!at(n)||e.markList.includes(n))}))}return[]}},{key:\"_handleC2CPeerReadTime\",value:function(){var e,t=D(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=m(e.value,2),o=n[0],s=n[1];s.type===k.CONV_C2C&&(Ve.d(\"\".concat(this._n,\"._handleC2CPeerReadTime conversationID:\").concat(o,\" peerReadTime:\").concat(s.peerReadTime)),this.recordPeerReadTime(o,s.peerReadTime))}}catch(r){t.e(r)}finally{t.f()}}},{key:\"_isPagingGetGroupListCompleted\",value:function(){return this.getModule(xn).isPagingGetCompleted()}},{key:\"_getLocalGroupCount\",value:function(){return this.getModule(xn).getLocalGroupList().length}},{key:\"_hasLocalGroup\",value:function(e){return this.getModule(xn).hasLocalGroup(e.replace(k.CONV_GROUP,\"\"))}},{key:\"getConversationProfile\",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new Ua({conversationID:e,type:e.slice(0,3)===k.CONV_C2C?k.CONV_C2C:k.CONV_GROUP},this.isIntl()))._isInfoCompleted||t.type===k.CONV_SYSTEM)return _a({conversation:t});if(Ot(e)&&!this._hasLocalGroup(e))return _a({conversation:t});var o=\"\".concat(this._n,\".\").concat(\"getConversationProfile\"),s=new jr(\"getConversationProfile\");return Ve.l(\"\".concat(o,\". conversationID:\").concat(e,\" remark:\").concat(t.remark,\" lastMessage:\"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(r){s.setNetworkType(n.getNetworkType()).setMessage(\"conversationID:\".concat(e,\" unreadCount:\").concat(r.data.conversation.unreadCount)).end();var a=n.getModule(Vn);if(a&&t.type===k.CONV_C2C){var i=e.replace(k.CONV_C2C,\"\");if(a.isMyFriend(i)){var u=a.getFriendRemark(i);t.remark!==u&&(t.remark=u,Ve.l(\"\".concat(o,\". conversationID:\").concat(e,\" patch remark:\").concat(t.remark)))}}return Ve.l(\"\".concat(o,\" ok. conversationID:\").concat(e)),r})).catch((function(t){return n.probeNetwork().then((function(n){var o=m(n,2),r=o[0],a=o[1];s.setError(t,r,a).setMessage(\"conversationID:\".concat(e)).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),t),ha(t)}))}},{key:\"_updateUserOrGroupProfileCompletely\",value:function(e){var t=this;return e.type===k.CONV_C2C?this.getModule(Fn).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var o=n.data;return 0===o.length?ha(new da({code:Or.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=o[0],e._isInfoCompleted=!0,t._unshiftConversation(e),_a({conversation:e}))})):this.getModule(xn).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),_a({conversation:e})}))}},{key:\"_unshiftConversation\",value:function(e){e instanceof Ua&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(v(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:\"_onProfileUpdated\",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var o=t._conversationMap.get(\"\".concat(k.CONV_C2C).concat(n));o&&(o.userProfile=e)}}))}},{key:\"_isSyncCompleted\",value:function(){return this._pagingStatus===sn.RESOLVED}},{key:\"_errorLog\",value:function(e,t,n,o){var s=new Error(\"Params validate failed.\"),r=\"\".concat(this.getErrorMessage(\"API_REFER\")).concat(e);throw Ve.w(\"[\".concat(e,\"] | \").concat(t,\" | \").concat(this.getErrorMessage(n,o),\", \").concat(r)),Ve.e(\"[\".concat(e,\"] Invalid \").concat(t,\": type check failed for \").concat(t,\".\")),s}},{key:\"_isValidConversationID\",value:function(e){return Rt(e)||Ot(e)||Gt(e)}},{key:\"deleteConversation\",value:function(e){var t=this,n=\"deleteConversation\";return it(e)||ut(e)||this._errorLog(n,\"options\",\"StringOrObjectRequiredLog\"),it(e)?(this._isValidConversationID(e)||this._errorLog(n,\"options\",\"InvalidConversationID\",e),Ve.l(\"\".concat(this._n,\".\").concat(n,\" conversationID:\").concat(e)),this.deleteConversationList({conversationIDList:[e],flag:1})):(lt(e.conversationIDList)||this._errorLog(n,\"conversationIDList\",\"ArrayRequiredLog\"),0===e.conversationIDList.length&&this._errorLog(n,\"conversationIDList\",\"NonEmptyArrayLog\"),e.conversationIDList.forEach((function(e){t._isValidConversationID(e)||t._errorLog(n,\"conversationIDList\",\"InvalidConversationID\",e)})),\"clearHistoryMessage\"in e&&\"boolean\"!=typeof e.clearHistoryMessage&&this._errorLog(n,\"clearHistoryMessage\",\"BooleanRequiredLog\"),e.conversationIDList.length>100&&(e.conversationIDList=e.conversationIDList.slice(0,100)),this.deleteConversationList(e))}},{key:\"deleteConversationList\",value:function(e){var t=this,n=e.conversationIDList,o=void 0===n?[]:n,s=e.clearHistoryMessage,r=void 0===s||s,a=e.flag,i=void 0===a?0:a,u=\"\".concat(this._n,\".\").concat(\"deleteConversationList\");Ve.l(\"\".concat(u,\" conversationIDList.length:\").concat(o.length,\" clearHistoryMessage:\").concat(r));var c=new jr(\"deleteConversationList\");return c.setMessage(\"conversationIDList:\".concat(o)),Promise.all([this.rmLocalOnlyConversationList(o),this.rmLocalAndRemoteConversationList(o,r)]).then((function(e){c.setNetworkType(t.getNetworkType()).end();var n=[].concat(v(e[0]),v(e[1]));return 0===n.length?ha(new da({code:Or.CONVERSATION_NOT_FOUND})):(Ve.l(\"\".concat(u,\" ok\")),_a(1===i?{conversationID:n[0]}:{conversationIDList:n}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),Ve.e(\"\".concat(u,\" failed. error:\"),e),ha(e)}))}},{key:\"rmLocalOnlyConversationList\",value:function(e){var t=this;return e.filter((function(e){if(!t._conversationMap.has(e))return!1;var n=t.getLocalConversation(e).type;return n!==k.CONV_GROUP||t._hasLocalGroup(e)?n===k.CONV_SYSTEM&&(t.getModule(xn).deleteGroupSystemNotice({messageList:t._messageListHandler.getLocalMessageList(e)}),t.deleteLocalConversation(e),!0):(t.deleteLocalConversation(e),!0)}))}},{key:\"rmLocalAndRemoteConversationList\",value:function(e,t){var n=this,o={fromAccount:this.getMyUserID(),conversationList:[],clearHistoryMessage:t?1:0};return e.forEach((function(e){if(n._conversationMap.has(e)){var t=n.getLocalConversation(e).type;t===k.CONV_C2C?o.conversationList.push({toAccount:e.replace(t,\"\"),type:1}):t===k.CONV_GROUP&&n._hasLocalGroup(e)&&o.conversationList.push({toGroupID:e.replace(t,\"\"),type:2})}})),0===o.conversationList.length?[]:this.request({protocolName:$o,requestData:o}).then((function(e){var t=[];return e.data.resultList.length>0&&e.data.resultList.map((function(e){if(0===e.code){var n=1===e.type?\"\".concat(k.CONV_C2C).concat(e.to):\"\".concat(k.CONV_GROUP).concat(e.groupID);t.push(n)}})),n.deleteLocalConversationList(t),t}))}},{key:\"clearHistoryMessage\",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0,toGroupID:void 0};if(!this._conversationMap.has(e))return ha({code:Or.CONVERSATION_NOT_FOUND});var o=this._conversationMap.get(e).type;if(o===k.CONV_C2C)n.type=1,n.toAccount=e.replace(k.CONV_C2C,\"\");else{if(o!==k.CONV_GROUP)return o===k.CONV_SYSTEM?(this.getModule(xn).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),_a({conversationID:e})):ha({code:Or.CONVERSATION_UN_RECORDED_TYPE});n.type=2,n.toGroupID=e.replace(k.CONV_GROUP,\"\")}var s=\"\".concat(this._n,\".\").concat(\"clearHistoryMessage\"),r=new jr(\"clearHistoryMessage\");return r.setMessage(\"conversationID:\".concat(e)),Ve.l(\"\".concat(s,\". conversationID:\").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:es,requestData:n})})).then((function(){r.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(s,\" ok\")),t._messageListHandler.removeByConversationID(e),t.setCompleted(e);var n=t.getLocalConversation(e);return n&&(n.updateLastMessage(),t._sortConversationListAndEmitEvent()),_a({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.e(\"\".concat(s,\" failed. error:\"),e),ha(e)}))}},{key:\"pinConversation\",value:function(e){var t=this,n=e.conversationID,o=e.isPinned;if(!this._conversationMap.has(n))return ha({code:Or.CONVERSATION_NOT_FOUND});var s=this.getLocalConversation(n);if(s.isPinned===o)return _a({conversationID:n});var r=\"\".concat(this._n,\".\").concat(\"pinConversation\"),a=new jr(\"pinConversation\");a.setMessage(\"conversationID:\".concat(n,\" isPinned:\").concat(o)),Ve.l(\"\".concat(r,\". conversationID:\").concat(n,\" isPinned:\").concat(o));var i=null;return Rt(n)?i={type:1,toAccount:n.replace(k.CONV_C2C,\"\")}:Ot(n)&&(i={type:2,groupID:n.replace(k.CONV_GROUP,\"\")}),this.request({protocolName:ts,requestData:{fromAccount:this.getMyUserID(),operationType:!0===o?1:2,itemList:[i]}}).then((function(){return a.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(r,\" ok\")),s.isPinned!==o&&(s.isPinned=o,t._sortConversationListAndEmitEvent()),la({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(r,\" failed. error:\"),e),ha(e)}))}},{key:\"setMessageRemindType\",value:function(e){return this._messageRemindHandler.set(e)}},{key:\"patchMessageRemindType\",value:function(e){var t=e.ID,n=e.isC2CConversation,o=e.messageRemindType,s=!1,r=this.getLocalConversation(n?\"\".concat(k.CONV_C2C).concat(t):\"\".concat(k.CONV_GROUP).concat(t));return r&&r.messageRemindType!==o&&(r.messageRemindType=o,s=!0),Ve.d(\"\".concat(this._n,\".patchMessageRemindType options:\"),e,\"ret:\".concat(s)),s}},{key:\"onC2CMessageRemindTypeSynced\",value:function(e){var t=this,n=\"\".concat(this._n,\".onC2CMessageRemindTypeSynced\");Ve.d(n,e),e.dataList.forEach((function(e){if(!$t(e.muteNotificationsSync)){var o,s=e.muteNotificationsSync,r=s.to,a=s.updateSequence,i=s.muteFlag;t._messageRemindHandler.setUpdateSequence(a),0===i?o=k.MSG_REMIND_ACPT_AND_NOTE:1===i?o=k.MSG_REMIND_DISCARD:2===i&&(o=k.MSG_REMIND_ACPT_NOT_NOTE);var u=0;t.patchMessageRemindType({ID:r,isC2CConversation:!0,messageRemindType:o})&&(u+=1),Ve.l(\"\".concat(n,\" updateCount:\").concat(u)),u>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:\"onGroupMessageRemindTypeSynced\",value:function(e){Ve.d(\"\".concat(this._n,\".onGroupMessageRemindTypeSynced options:\"),e),this._messageRemindHandler.onGroupMessageRemindTypeUpdated(e)}},{key:\"deleteLocalConversation\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._conversationMap.has(e);if(Ve.d(\"\".concat(this._n,\".deleteLocalConversation conversationID:\").concat(e,\" has:\").concat(n)),n&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.has(e)&&this._roamingMessageKeyAndTimeMap.delete(e),this._roamingMessageSequenceMap.has(e)&&this._roamingMessageSequenceMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),t)){var o=!this._isTopicConversation(e);this.emitConversationUpdate(o,!1)}}},{key:\"deleteLocalConversationList\",value:function(e){var t=this,n=0,o=!1;e.forEach((function(e){t._conversationMap.has(e)&&(n+=t._conversationMap.get(e).unreadCount||0,t.deleteLocalConversation(e,!1),o=!0)})),Ve.l(\"\".concat(this._n,\".deleteLocalConversationList conversationIDList.length:\").concat(e.length,\" isConvIDExisted:\").concat(o)),o&&(this.emitConversationUpdate(!0,!1),n>0&&this.emitTotalUnreadMessageCountUpdate())}},{key:\"isMessageSentByCurrentInstance\",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:\"modifyMessageList\",value:function(e){if(e.startsWith(k.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var o=this.getModule(Fn).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:o.nick,latestAvatar:o.avatar}),Ve.l(\"\".concat(this._n,\".modifyMessageList conversationID:\").concat(e,\" cost \").concat(Date.now()-n,\" ms\"))}}},{key:\"updateUserProfileSpecifiedKey\",value:function(e){Ve.l(\"\".concat(this._n,\".updateUserProfileSpecifiedKey options:\"),e);var t=e.conversationID,n=e.nick,o=e.avatar;if(this._conversationMap.has(t)){var s=this._conversationMap.get(t).userProfile;it(n)&&s.nick!==n&&(s.nick=n),it(o)&&s.avatar!==o&&(s.avatar=o),this.emitConversationUpdate(!0,!1)}}},{key:\"_onMyProfileModified\",value:function(e){var n=this,o=this.getLocalConversationList(),s=Date.now();o.forEach((function(o){n.modifyMessageSentByMe(t({conversationID:o.conversationID},e))})),Ve.l(\"\".concat(this._n,\"._onMyProfileModified. modify all messages sent by me, cost \").concat(Date.now()-s,\" ms\"))}},{key:\"modifyMessageSentByMe\",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:\"getLatestMessageSentByMe\",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:\"modifyMessageSentByPeer\",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:\"getLatestMessageSentByPeer\",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:\"pushIntoNoticeResult\",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:\"getLocalLastMessage\",value:function(e){return this._messageListHandler.getLocalLastMessage(e)}},{key:\"checkAndPatchRemark\",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(Vn);if(!t)return e;var n=v(this._conversationMap.values()).filter((function(e){return e.type===k.CONV_C2C}));if(0===n.length)return e;var o=0;return n.forEach((function(e){var n=e.conversationID.replace(k.CONV_C2C,\"\");if(t.isMyFriend(n)){var s=t.getFriendRemark(n);e.remark!==s&&(e.remark=s,o+=1)}})),Ve.l(\"\".concat(this._n,\".checkAndPatchRemark. c2c conversation count:\").concat(n.length,\", patched count:\").concat(o)),e}},{key:\"updateTopicConversation\",value:function(e){this._updateLocalConversationList({conversationOptionsList:e,isFromGetConversations:!0})}},{key:\"sendReadReceipt\",value:function(e){var t=e[0],n=null;return t.conversationType===k.CONV_C2C?n=this._m.getModule(qn):t.conversationType===k.CONV_GROUP&&(n=this._m.getModule(xn)),n?n.sendReadReceipt(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"getReadReceiptList\",value:function(e){var t=e[0],n=null;return t.conversationType===k.CONV_C2C?n=this._m.getModule(qn):t.conversationType===k.CONV_GROUP&&(n=this._m.getModule(xn)),n?n.getReadReceiptList(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"getLastMessageTime\",value:function(e){var t=this.getLocalConversation(e);return t?t.lastMessage.lastTime:0}},{key:\"getTotalUnreadMessageCount\",value:function(){var e=this.getLocalConversationList(),t=0;return e.forEach((function(e){e.type!==k.CONV_SYSTEM&&(\"\"!==e.messageRemindType&&e.messageRemindType!==k.MSG_REMIND_ACPT_AND_NOTE||(t+=e.unreadCount))})),t}},{key:\"emitTotalUnreadMessageCountUpdate\",value:function(){var e=this.getTotalUnreadMessageCount();this._convTotalUnreadCount!==e&&(Ve.l(\"\".concat(this._n,\".emitTotalUnreadMessageCountUpdate from \").concat(this._convTotalUnreadCount,\" to \").concat(e)),this._convTotalUnreadCount=e,this.emitOuterEvent(E.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED))}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._pagingStatus=sn.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this._roamingMessageSequenceMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this._convTotalUnreadCount=0,this._pagingGetCostList.length=0,this.resetReady()}}]),s}(go),Fa=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"GroupTipsHandler\",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map}return r(e,[{key:\"onCheckTimer\",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:\"_checkCachedGroupTips\",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var o=e._checkCountMap.get(n),s=e._groupModule.hasLocalGroup(n);Ve.l(\"\".concat(e._n,\"._checkCachedGroupTips groupID:\").concat(n,\" hasLocalGroup:\").concat(s,\" checkCount:\").concat(o)),s?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):o>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(o++,e._checkCountMap.set(n,o))}))}},{key:\"onNewGroupTips\",value:function(e){Ve.d(\"\".concat(this._n,\".onReceiveGroupTips count:\").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,o=t.result,s=t.AVChatRoomMessageList;(s.length>0&&this._groupModule.onAVChatRoomMessage(s),n.length>0)&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Kn).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}));o.length>0&&(this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,o),this.handleMessageList(o))}},{key:\"newGroupTipsStoredAndSummary\",value:function(e){for(var n=this,o=e.event,s=e.dataList,r=null,a=[],i=[],u={},c=[],l=function(e,l){var d=kt(s[e]);if(6===o){if(n._groupModule.isGroupAttributesUpdatedNotice(d))return\"continue\";if(n._groupModule.isGroupCountersNotice(d))return\"continue\"}var p=d.groupProfile,g=p.groupID,_=p.communityType,h=void 0===_?0:_,f=p.topicID,m=void 0===f?void 0:f,v=p.invisible,M=void 0,y=n._groupModule.isMessageFromTopic(h,m);if(y){M=k.CONV_TOPIC,d.to=m;var I=n._groupModule.getModule(Hn);I.hasLocalTopic(g,m)||n._getTopicPendingMap.has(m)||(n._getTopicPendingMap.set(m,1),I.getTopicList({groupID:g,topicIDList:[m]}).finally((function(){n._getTopicPendingMap.delete(m)})))}var C=n._groupModule.hasLocalGroup(g);if(!C&&n._groupModule.isUnjoinedAVChatRoom(g))return\"continue\";if(!C&&!y)return n._cacheGroupTipsAndProbe({groupID:g,event:o,item:d}),\"continue\";if(n._groupModule.isMessageFromOrToAVChatroom(g))return d.event=o,c.push(d),\"continue\";if(d.currentUser=n._groupModule.getMyUserID(),d.conversationType=k.CONV_GROUP,(r=new ca(d)).setElement({type:k.MSG_GRP_TIP,content:t(t({},d.elements),{},{groupProfile:d.groupProfile})}),r.isSystemMessage=!1,1===v)return n._qualityStat(r),\"continue\";var T=n._groupModule.getModule(Kn),D=r,E=D.conversationID,S=D.sequence;if(6===o)r._onlineOnlyFlag=!0,i.push(r);else if(!T.pushIntoNoticeResult(i,r))return\"continue\";if(n._groupModule.isMessageFromCommunityOfTopic(h,m))return\"continue\";if(6===o&&T.getLocalConversation(E))return\"continue\";6!==o&&n._qualityStat(r);var L=T.isRemoteRead({conversationID:E,sequence:S});if(dt(u[E])){var A=0;\"in\"===r.flow&&(r._isExcludedFromUnreadCount||r._onlineOnlyFlag||L||(A=1)),u[E]=a.push({conversationID:E,unreadCount:A,type:dt(M)?r.conversationType:M,subType:r.conversationSubType,lastMessage:r._isExcludedFromLastMessage?\"\":r})-1}else{var N=u[E];a[N].type=r.conversationType,a[N].subType=r.conversationSubType,a[N].lastMessage=r._isExcludedFromLastMessage?\"\":r,\"in\"===r.flow&&(r._isExcludedFromUnreadCount||r._onlineOnlyFlag||L||a[N].unreadCount++)}},d=0,p=s.length;d<p;d++)l(d);return{eventDataList:a,result:i,AVChatRoomMessageList:c}}},{key:\"_qualityStat\",value:function(e){this._groupModule.getModule(ro).addMessageSequence({key:xr,message:e})}},{key:\"handleMessageList\",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;case 8:t._onTopicProfileUpdated(e);break;default:Ve.w(\"\".concat(t._n,\".handleMessageList unknown operationType:\").concat(e.payload.operationType))}}))}},{key:\"_onNewMemberComeIn\",value:function(e){var t=e.payload,n=t.memberNum,o=t.groupProfile.groupID,s=this._groupModule.getLocalGroupProfile(o);s&&at(n)&&s.memberCount!==n&&(s.memberCount=n,this._updateConversationGroupProfile(s))}},{key:\"_onMemberQuit\",value:function(e){var t=e.payload,n=t.memberNum,o=t.groupProfile.groupID,s=this._groupModule.getLocalGroupProfile(o);s&&at(n)&&s.memberCount!==n&&(s.memberCount=n,this._updateConversationGroupProfile(s)),this._groupModule.getModule(Bn).deleteLocalGroupMembers(o,e.payload.userIDList)}},{key:\"_onMemberKickedOut\",value:function(e){var t=e.payload,n=t.memberNum,o=t.groupProfile.groupID,s=this._groupModule.getLocalGroupProfile(o);s&&at(n)&&s.memberCount!==n&&(s.memberCount=n,this._updateConversationGroupProfile(s)),this._groupModule.getModule(Bn).deleteLocalGroupMembers(o,e.payload.userIDList)}},{key:\"_updateConversationGroupProfile\",value:function(e){this._groupModule.getModule(Kn).updateConversationGroupProfile([e])}},{key:\"_onMemberSetAdmin\",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,o=this._groupModule.getModule(Bn);n.forEach((function(e){var n=o.getLocalGroupMemberInfo(t,e);n&&n.updateRole(k.GRP_MBR_ROLE_ADMIN)}))}},{key:\"_onMemberCancelledAdmin\",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,o=this._groupModule.getModule(Bn);n.forEach((function(e){var n=o.getLocalGroupMemberInfo(t,e);n&&n.updateRole(k.GRP_MBR_ROLE_MEMBER)}))}},{key:\"_onGroupProfileModified\",value:function(e){var t=this,n=e.payload,o=n.newGroupProfile,s=n.groupProfile.groupID,r=this._groupModule.getLocalGroupProfile(s);Object.keys(o).forEach((function(e){switch(e){case\"ownerID\":t._ownerChanged(r,o);break;case\"groupName\":r.name=o[e];break;default:r[e]=o[e]}}));var a=!r.isSupportTopic;this._groupModule.emitGroupListUpdate(!0,a)}},{key:\"_ownerChanged\",value:function(e,t){var n=e.groupID,o=this._groupModule.getLocalGroupProfile(n),s=this._groupModule.getMyUserID();if(s===t.ownerID){o.updateGroup({selfInfo:{role:k.GRP_MBR_ROLE_OWNER}});var r=this._groupModule.getModule(Bn),a=r.getLocalGroupMemberInfo(n,s),i=this._groupModule.getLocalGroupProfile(n).ownerID,u=r.getLocalGroupMemberInfo(n,i);a&&a.updateRole(k.GRP_MBR_ROLE_OWNER),u&&u.updateRole(k.GRP_MBR_ROLE_MEMBER)}}},{key:\"_onMemberInfoModified\",value:function(e){var t=e.to,n=e.payload,o=n.groupProfile,s=n.memberList,r=o.groupID;Nt(t)&&this._updateTopicMuteTime(e);var a=this._groupModule.getModule(Bn);s.forEach((function(e){var t=a.getLocalGroupMemberInfo(r,e.userID);t&&at(e.muteTime)&&t.updateMuteUntil(e.muteTime)}))}},{key:\"_updateTopicMuteTime\",value:function(e){var t=e.to,n=e.payload,o=n.groupProfile,s=n.memberList,r=void 0===s?[]:s,a=this._groupModule.getModule(Hn),i=o.groupID,u=a.getLocalTopic(i,t);if(u){for(var c=!1,l=0;l<r.length;l++){var d=r[l];if(d.userID===this._groupModule.getMyUserID()&&d.muteTime>=0){u.updateSelfInfo({muteTime:d.muteTime}),c=!0;break}}c&&this._groupModule.emitOuterEvent(E.TOPIC_UPDATED,{groupID:i,topic:u})}}},{key:\"_onTopicProfileUpdated\",value:function(e){var n=e.payload,o=n.groupProfile.groupID,s=n.newTopicInfo;this._groupModule.getModule(Hn).onTopicProfileUpdated(t({groupID:o,topicID:e.to},s))}},{key:\"_cacheGroupTips\",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:\"_deleteCachedGroupTips\",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:\"_notifyCachedGroupTips\",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),Ve.l(\"\".concat(this._n,\"._notifyCachedGroupTips groupID:\").concat(e,\" count:\").concat(n.length))}},{key:\"_cacheGroupTipsAndProbe\",value:function(e){var t=this,n=e.groupID,o=e.event,s=e.item;this._cacheGroupTips(n,{event:o,dataList:[s]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===k.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Ve.l(\"\".concat(this._n,\"._cacheGroupTipsAndProbe groupID:\").concat(n))}},{key:\"reset\",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear()}}]),e}(),qa=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"CommonGroupHandler\",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map,this._isPagingGetCompleted=!1,t.getInnerEmitterInstance().once(va,this._initGroupList,this)}return r(e,[{key:\"onCheckTimer\",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:\"_checkCachedGroupMessage\",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var o=e._checkCountMap.get(n),s=e._groupModule.hasLocalGroup(n);Ve.l(\"\".concat(e._n,\"._checkCachedGroupMessage groupID:\").concat(n,\" hasLocalGroup:\").concat(s,\" checkCount:\").concat(o)),s?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):o>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(o++,e._checkCountMap.set(n,o))}))}},{key:\"_initGroupList\",value:function(){var e=this;Ve.l(\"\".concat(this._n,\"._initGroupList\"));var t=new jr(\"getGroupListInStorage\"),n=this._groupModule.getStorageGroupList();if(lt(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var o=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage(\"group count:\".concat(o)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage(\"group count:0\").end();Ve.l(\"\".concat(this._n,\"._initGroupList ok\"))}},{key:\"handleUpdateGroupLastMessage\",value:function(e){var n=\"\".concat(this._n,\".handleUpdateGroupLastMessage\");if(Ve.l(\"\".concat(n,\" conversation count:\").concat(e.length,\", local group count:\").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var o,s,r,a=!1,i=0,u=e.length;i<u;i++)(o=e[i]).type===k.CONV_GROUP&&(s=o.conversationID.split(/^GROUP/)[1],(r=this._groupModule.getLocalGroupProfile(s))&&(r.lastMessage=t({},o.lastMessage),a=!0));a&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:\"onNewGroupMessage\",value:function(e){Ve.d(\"\".concat(this._n,\".onNewGroupMessage count:\").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,o=t.messageList,s=t.AVChatRoomMessageList;(s.length>0&&this._groupModule.onAVChatRoomMessage(s),this._groupModule.filterModifiedMessage(o),n.length>0)&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Kn).onNewMessage({conversationOptionsList:n,isInstantMessage:e.isInstantMessage||!0,updateUnreadCount:e.updateUnreadCount||!0}));var r=this._groupModule.filterUnmodifiedMessage(o);r.length>0&&this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,r),o.length=0}},{key:\"_newGroupMessageStoredAndSummary\",value:function(e){var t=this,n=e.dataList,o=e.event,s=e.isInstantMessage,r=null,a=[],i=[],u=[],c={},l=this._groupModule.getModule(zn),d=this._groupModule.getFileDownloadProxy(),p=n.length;p>1&&n.sort((function(e,t){return e.sequence-t.sequence}));for(var g=function(e){var p=kt(n[e]),g=p.groupProfile,_=g.groupID,h=g.communityType,f=void 0===h?0:h,m=g.topicID,v=void 0===m?void 0:m,M=g.invisible,y=void 0,I=t._groupModule.isMessageFromTopic(f,v);if(I){y=k.CONV_TOPIC,p.to=v;var C=t._groupModule.getModule(Hn);C.hasLocalTopic(_,v)||t._getTopicPendingMap.has(v)||(t._getTopicPendingMap.set(v,1),C.getTopicList({groupID:_,topicIDList:[v]}).finally((function(){t._getTopicPendingMap.delete(v)})))}var T=t._groupModule.hasLocalGroup(_);if(!T&&t._groupModule.isUnjoinedAVChatRoom(_))return\"continue\";if(!T&&!I)return t._cacheGroupMessageAndProbe({groupID:_,event:o,item:p}),\"continue\";if(t._groupModule.isMessageFromOrToAVChatroom(_))return p.event=o,u.push(p),\"continue\";if(p.currentUser=t._groupModule.getMyUserID(),p.conversationType=k.CONV_GROUP,p.isSystemMessage=!!p.isSystemMessage,r=new ca(p),p.elements=l.parseElements(p.elements,p.from),r.setElement(p.elements,d),1===M)return t._qualityStat(s,r),\"continue\";var D=1===n[e].isModified,E=t._groupModule.getModule(Kn);if(E.isMessageSentByCurrentInstance(r)?r.isModified=D:D=!1,1===p.onlineOnlyFlag)r._onlineOnlyFlag=!0,E.isMessageSentByCurrentInstance(r)||i.push(r);else{if(t._groupModule.isMessageFromCommunityOfTopic(f,v))return i.push(r),\"continue\";if(!E.pushIntoMessageList(i,r,D))return\"continue\";t._qualityStat(s,r);var S=r,L=S.conversationID,A=S.sequence,N=E.isRemoteRead({conversationID:L,sequence:A});if(dt(c[L])){var R=0;\"in\"===r.flow&&(r._isExcludedFromUnreadCount||N||(R=1)),c[L]=a.push({conversationID:L,unreadCount:R,type:dt(y)?r.conversationType:y,subType:r.conversationSubType,lastMessage:r._isExcludedFromLastMessage?\"\":r})-1}else{var O=c[L];a[O].type=dt(y)?r.conversationType:y,a[O].subType=r.conversationSubType,a[O].lastMessage=r._isExcludedFromLastMessage?\"\":r,\"in\"===r.flow&&(r._isExcludedFromUnreadCount||N||a[O].unreadCount++)}}},_=0;_<p;_++)g(_);return{conversationOptionsList:a,messageList:i,AVChatRoomMessageList:u}}},{key:\"_qualityStat\",value:function(e,t){var n=this._groupModule.getModule(ro);n.addMessageSequence({key:xr,message:t}),e&&t.clientTime>0&&n.addMessageDelay(t.clientTime)}},{key:\"onGroupMessageRevoked\",value:function(e){var t=this._groupModule.getModule(Kn),n=[],o=null,s=!0;e.dataList.forEach((function(e){var r=e.elements.revokedInfos;dt(r)||r.forEach((function(e){var r=$t(e.topicID)?\"GROUP\".concat(e.groupID):\"GROUP\".concat(e.topicID);o=t.revoke(r,e.sequence,e.random);var a=e.revokerInfo&&e.revokerInfo.revoker;if(o)o.revoker=a,n.push(o);else{var i={conversationID:r,to:e.topicID||\"\",sequence:e.sequence,time:e.time,revoker:a};t.isLastMessageRevoked(i)&&(n.push(i),s=!1)}}))})),0!==n.length&&(t.onMessageRevoked(n),!0===s&&(Ve.l(\"\".concat(this._n,\".onGroupMessageRevoked count:\").concat(n.length)),this._groupModule.emitOuterEvent(E.MESSAGE_REVOKED,n)))}},{key:\"_groupListTreeShaking\",value:function(e){for(var t=new Map(v(this._groupModule.getGroupMap())),n=0,o=e.length;n<o;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)}));this._groupModule.getGroupMap().forEach((function(e,n){e.isSupportTopic&&t.delete(n)}));for(var s=v(t.keys()),r=0,a=s.length;r<a;r++)this._groupModule.deleteGroup(s[r])}},{key:\"getGroupList\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getGroupList\"),o=new jr(\"getGroupList\");Ve.l(\"\".concat(n));var s={introduction:\"Introduction\",notification:\"Notification\",createTime:\"CreateTime\",ownerID:\"Owner_Account\",lastInfoTime:\"LastInfoTime\",memberNum:\"MemberNum\",maxMemberNum:\"MaxMemberNum\",joinOption:\"ApplyJoinOption\",inviteOption:\"InviteJoinOption\",muteAllMembers:\"ShutUpAllMember\"},r=[\"Type\",\"Name\",\"FaceUrl\",\"NextMsgSeq\",\"LastMsgTime\",\"AtInfoList\",\"LastRecallTime\"],a=[];e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){s[e]&&r.push(s[e])}));var i=(e||{}).isGroupWithTopicOnly,u=void 0!==i&&i;return this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:r,groupList:a,isGroupWithTopicOnly:u}).then((function(){Ve.l(\"\".concat(n,\" ok. count:\").concat(a.length,\" isGroupWithTopicOnly:\").concat(u)),u||t._groupListTreeShaking(a),t._groupModule.updateGroupMap(a);var e=t._groupModule.getLocalGroupList().length;o.setNetworkType(t._groupModule.getNetworkType()).setMessage(\"remote count:\".concat(a.length,\", after tree shaking, local count:\").concat(e,\", isGroupWithTopicOnly:\").concat(u)).end(),t.tempConversationList&&(t.handleUpdateGroupLastMessage(t.tempConversationList),t.tempConversationList=null),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),t._groupModule.emitGroupListUpdate(!0,!u);var s=t._groupModule.getLocalGroupList();if(u){var r=s.filter((function(e){return!0===e.isSupportTopic}));return la({groupList:r})}return t._isPagingGetCompleted=!0,la({groupList:s})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"isPagingGetCompleted\",value:function(){return this._isPagingGetCompleted}},{key:\"_pagingGetGroupList\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"_pagingGetGroupList\"),o=e.isCommunityRelay,s=void 0!==o&&o,r=e.isGroupWithTopicOnly,a=void 0!==r&&r,i=e.limit,u=e.offset,c=e.groupBaseInfoFilter,l=e.groupList;if(a)return this._pagingGetGroupListWithTopic({limit:i,offset:u,groupBaseInfoFilter:c,groupList:l});var d=new jr(\"_pagingGetGroupList\");return this._groupModule.request({protocolName:ds,requestData:{type:s?k.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:i,offset:u,responseFilter:{groupBaseInfoFilter:c,selfInfoFilter:[\"Role\",\"JoinTime\",\"MsgFlag\",\"MsgSeq\"]}}}).then((function(e){var o=e.data,r=o.groups,a=void 0===r?[]:r,p=o.totalCount;l.push.apply(l,v(a)),t._handleGroupAtInfoWithoutTopic(s,a);var g=u+i,_=!(p>g),h=\"offset:\".concat(u,\" totalCount:\").concat(p,\" isCompleted:\").concat(_,\" \")+\"currentCount:\".concat(l.length,\" isCommunityRelay:\").concat(s);return d.setNetworkType(t._groupModule.getNetworkType()).setMessage(\"\".concat(h)).end(),s||_?!s&&_?(Ve.l(\"\".concat(n,\" start to get community list\")),u=0,t._pagingGetGroupList({limit:i,offset:u,groupBaseInfoFilter:c,groupList:l,isCommunityRelay:!0})):s&&!_?(u=g,t._pagingGetGroupList({limit:i,offset:u,groupBaseInfoFilter:c,groupList:l,isCommunityRelay:!0})):(Ve.l(\"\".concat(n,\" ok. totalCount:\").concat(l.length)),la({groupList:l})):(u=g,t._pagingGetGroupList({limit:i,offset:u,groupBaseInfoFilter:c,groupList:l}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];d.setMessage(\"isCommunityRelay:\".concat(s)).setError(e,o,r).end()})),s?(11e3===e.code&&(d=null,Ve.l(\"\".concat(n,\" ok. community unavailable\"))),_a({groupList:l})):ha(e)}))}},{key:\"_pagingGetGroupListWithTopic\",value:function(e){var t=this,n=\"\".concat(this._n,\"._pagingGetGroupListWithTopic\"),o=e.limit,s=e.offset,r=e.groupBaseInfoFilter,a=e.groupList,i=new jr(\"pagingGetGroupListWithTopic\");return this._groupModule.request({protocolName:ds,requestData:{type:k.GRP_COMMUNITY,memberAccount:this._groupModule.getMyUserID(),limit:o,offset:s,responseFilter:{groupBaseInfoFilter:r,selfInfoFilter:[\"Role\",\"JoinTime\",\"MsgFlag\",\"MsgSeq\"]},isSupportTopic:1}}).then((function(e){var u=e.data,c=u.groups,l=void 0===c?[]:c,d=u.totalCount;a.push.apply(a,v(l));var p=s+o,g=!(d>p),_=\"offset:\".concat(s,\" totalCount:\").concat(d,\" isCompleted:\").concat(g,\" \")+\"currentCount:\".concat(a.length);return i.setNetworkType(t._groupModule.getNetworkType()).setMessage(\"\".concat(_)).end(),g?(Ve.l(\"\".concat(n,\" ok. totalCount:\").concat(a.length)),la({groupList:a})):(s=p,t._pagingGetGroupListWithTopic({limit:o,offset:s,groupBaseInfoFilter:r,groupList:a}))})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),ha(e)}))}},{key:\"_cacheGroupMessage\",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:\"_deleteCachedGroupMessage\",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:\"_notifyCachedGroupMessage\",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),Ve.l(\"\".concat(this._n,\"._notifyCachedGroupMessage groupID:\").concat(e,\" count:\").concat(n.length))}},{key:\"_cacheGroupMessageAndProbe\",value:function(e){var t=this,n=e.groupID,o=e.event,s=e.item;this._cacheGroupMessage(n,{event:o,dataList:[s]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===k.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Ve.l(\"\".concat(this._n,\"._cacheGroupMessageAndProbe groupID:\").concat(n))}},{key:\"_handleGroupAtInfoWithoutTopic\",value:function(e,n){var o=this;e&&0!==n.length&&n.forEach((function(e){var n=e.groupID,s=e.groupAtInfoList,r=[];dt(s)||(s.forEach((function(e){r.push(t(t({},e),{},{groupID:n}))})),o._groupModule.getModule(Kn).onNewGroupAtTips({dataList:r}))}))}},{key:\"reset\",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear(),this._isPagingGetCompleted=!1,this._groupModule.getInnerEmitterInstance().once(va,this._initGroupList,this)}}]),e}(),xa=1,Va=2,Ba=3,Ha=4,Ka=5,Wa=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"GroupAttributesHandler\",this._groupAttributesMap=new Map,this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(Ma,this._onCloudConfigUpdated,this)}return r(e,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this._groupModule.getCloudConfig(\"grp_attr_cache_time\");dt(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:\"updateLocalMainSequenceOnReconnected\",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:\"isGroupAttributesUpdatedNotice\",value:function(e){var t=e.to,n=e.elements.newGroupProfile,o=!dt(n)&&!$t(n.groupAttributeOption);return o&&this._onGroupAttributesUpdated({groupID:t,groupAttributeOption:n.groupAttributeOption}),o}},{key:\"_onGroupAttributesUpdated\",value:function(e){var t=this,n=e.groupID,o=e.groupAttributeOption,s=o.mainSequence,r=o.isWithChangedAttributeInfo,a=o.groupAttributeList,i=void 0===a?[]:a,u=o.operationType;if(Ve.l(\"\".concat(this._n,\".onGroupAttributesUpdated. \")+\"groupID:\".concat(n,\" isWithChangedAttributeInfo:\").concat(r,\" operationType:\").concat(u)),!dt(u)){this._groupAttributesCopy=this._getCachedAttributes({groupID:n});var c=s-this._getLocalGroupAttributes(n).localMainSequence;if(0!==c){if(1===r&&1===c)return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:s,groupAttributeList:i,operationType:u}),void this._emitGroupAttributesUpdated(n);if(this._hasLocalGroupAttributes(n)){var l=this._getLocalGroupAttributes(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:l}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}}},{key:\"initGroupAttributesCache\",value:function(e){var t=e.groupID,n=e.avChatRoomKey,o=void 0===n?void 0:n;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:o}),Ve.l(\"\".concat(this._n,\".initGroupAttributesCache groupID:\").concat(t,\" avChatRoomKey:\").concat(o))}},{key:\"initGroupAttributes\",value:function(e){var t=this,n=e.groupID,o=e.groupAttributes,s=this._getLocalGroupAttributes(n),r=s.remoteMainSequence,a=s.avChatRoomKey,i=new jr(\"initGroupAttributes\");return i.setMessage(\"groupID:\".concat(n,\" avChatRoomKey:\").concat(a,\" mainSequence:\").concat(r)),this._groupModule.request({protocolName:qs,requestData:{groupID:n,avChatRoomKey:a,mainSequence:r,groupAttributeList:this._transformGroupAttributes(o)}}).then((function(e){Ve.l(\"\".concat(t._n,\".\").concat(\"initGroupAttributes\",\" ok. groupID:\").concat(n));var s=e.data,r=s.mainSequence,a=v(s.groupAttributeList);return a.forEach((function(e){e.value=o[e.key]})),t._groupAttributesCopy=t._getCachedAttributes({groupID:n}),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:a,operationType:xa}),t._emitGroupAttributesUpdated(n),i.setNetworkType(t._groupModule.getNetworkType()).end(),la({groupAttributes:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),ha(e)}))}},{key:\"setGroupAttributes\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setGroupAttributes\"),o=e.groupID,s=e.groupAttributes,r=this._getLocalGroupAttributes(o),a=r.remoteMainSequence,i=r.avChatRoomKey,u=r.attributes,c=this._transformGroupAttributes(s);c.forEach((function(e){var t=e.key;e.sequence=0,u.has(t)&&(e.sequence=u.get(t).sequence)}));var l=new jr(\"setGroupAttributes\");return l.setMessage(\"groupID:\".concat(o,\" groupAttributes:\").concat(JSON.stringify(s))),Ve.l(\"\".concat(n,\". groupID:\").concat(o,\" mainSequence:\").concat(a)),this._groupModule.request({protocolName:xs,requestData:{groupID:o,avChatRoomKey:i,mainSequence:a,groupAttributeList:c}}).then((function(e){Ve.l(\"\".concat(n,\" ok.\"));var r=e.data,a=r.mainSequence,i=v(r.groupAttributeList);return i.forEach((function(e){e.value=s[e.key]})),t._groupAttributesCopy=t._getCachedAttributes({groupID:o}),t._refreshCachedGroupAttributes({groupID:o,remoteMainSequence:a,groupAttributeList:i,operationType:Va}),t._emitGroupAttributesUpdated(o),l.setNetworkType(t._groupModule.getNetworkType()).end(),la({groupAttributes:s})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];l.setError(e,o,s).end()})),ha(e)}))}},{key:\"deleteGroupAttributes\",value:function(e){var t=this,n=e.groupID,o=e.keyList,s=void 0===o?[]:o,r=this._getLocalGroupAttributes(n),a=r.remoteMainSequence,i=r.avChatRoomKey,u=r.attributes,c=v(u.keys()),l=Bs,d=Ba,p={groupID:n,avChatRoomKey:i,mainSequence:a},g=[];s.length>0&&(c=[],l=Vs,d=Ha,s.forEach((function(e){var t=0;u.has(e)&&(t=u.get(e).sequence,c.push(e)),g.push({key:e,sequence:t})})),p.groupAttributeList=g);var _=new jr(\"deleteGroupAttributes\");return _.setMessage(\"groupID:\".concat(n,\" mainSequence:\").concat(a,\" keyList:\").concat(s,\" protocolName:\").concat(l)),this._groupModule.request({protocolName:l,requestData:p}).then((function(e){Ve.l(\"\".concat(t._n,\".\").concat(\"deleteGroupAttributes\",\" ok. groupID:\").concat(n));var o=e.data.mainSequence;return t._groupAttributesCopy=t._getCachedAttributes({groupID:n}),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:g,operationType:d}),t._emitGroupAttributesUpdated(n),_.setNetworkType(t._groupModule.getNetworkType()).end(),la({keyList:c})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];_.setError(e,o,s).end()})),ha(e)}))}},{key:\"getGroupAttributes\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getGroupAttributes\"),o=e.groupID,s=this._getLocalGroupAttributes(o),r=s.avChatRoomKey,a=s.lastUpdateTime,i=s.localMainSequence,u=s.remoteMainSequence,c=new jr(\"getGroupAttributes\");if(c.setMessage(\"groupID:\".concat(o,\" localMainSequence:\").concat(i,\" remoteMainSequence:\").concat(u,\" keyList:\").concat(e.keyList)),Date.now()-a>=this.CACHE_EXPIRE_TIME||i<u)return this._getGroupAttributes({groupID:o,avChatRoomKey:r}).then((function(s){c.setMoreMessage(\"get attributes from remote. count:\".concat(s.length)).setNetworkType(t._groupModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" from remote. groupID:\").concat(o));var r=t._getCachedAttributes(e);return la({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),ha(e)}));c.setMoreMessage(\"get attributes from cache\").setNetworkType(this._groupModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" from cache. groupID:\").concat(o));var l=this._getCachedAttributes(e);return _a({groupAttributes:l})}},{key:\"_getGroupAttributes\",value:function(e){var n=this,o=0;return dt(e.avChatRoomKey)||(o=1),this._groupModule.request({protocolName:Hs,requestData:t(t({},e),{},{groupType:o})}).then((function(t){Ve.l(\"\".concat(n._n,\"._getGroupAttributes ok. groupID:\").concat(e.groupID));var o=t.data,s=o.mainSequence,r=o.groupAttributeList,a=v(r);return dt(s)||n._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:s,groupAttributeList:a,operationType:Ka}),r})).catch((function(e){return ha(e)}))}},{key:\"_refreshCachedGroupAttributes\",value:function(e){var t=e.groupID,n=e.remoteMainSequence,o=e.groupAttributeList,s=e.operationType;if(this._hasLocalGroupAttributes(t)){var r=this._getLocalGroupAttributes(t),a=r.localMainSequence;if(s===Ka||n-a==1)r.remoteMainSequence=n,r.localMainSequence=n,r.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:r,groupAttributeList:o,operationType:s});else{if(a===n)return;r.remoteMainSequence=n}this._groupAttributesMap.set(t,r);var i=\"operationType:\".concat(s,\" localMainSequence:\").concat(a,\" remoteMainSequence:\").concat(n);Ve.l(\"\".concat(this._n,\"._refreshCachedGroupAttributes. \").concat(i))}}},{key:\"_getCachedAttributes\",value:function(e){var t=e.groupID,n=e.keyList,o=void 0===n?[]:n,s={};if(this._hasLocalGroupAttributes(t)){var r=this._getLocalGroupAttributes(t).attributes;if(o.length>0)o.forEach((function(e){r.has(e)&&(s[e]=r.get(e).value)}));else{var a,i=D(r.keys());try{for(i.s();!(a=i.n()).done;){var u=a.value;s[u]=r.get(u).value}}catch(c){i.e(c)}finally{i.f()}}}return s}},{key:\"_updateCachedAttributes\",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,o=e.operationType;o!==Ba?o!==Ha?(o===xa&&t.attributes.clear(),n.forEach((function(e){var n=e.key,o=e.value,s=e.sequence;t.attributes.set(n,{value:o,sequence:s})}))):n.forEach((function(e){t.attributes.delete(e.key)})):t.attributes.clear()}},{key:\"_hasLocalGroupAttributes\",value:function(e){return this._groupAttributesMap.has(e)}},{key:\"_getLocalGroupAttributes\",value:function(e){return this._hasLocalGroupAttributes(e)||this.initGroupAttributesCache({groupID:e}),this._groupAttributesMap.get(e)}},{key:\"_transformGroupAttributes\",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:\"_emitGroupAttributesUpdated\",value:function(e){var t=this._getCachedAttributes({groupID:e}),n=this._computeAttrChangedInfo(t),o=n.updatedKeyList,s=n.deletedKeyList;Ve.l(\"\".concat(this._n,\"._emitGroupAttributesUpdated update:\").concat(o.length,\", delete:\").concat(s.length)),0===o.length&&0===s.length||this._groupModule.emitOuterEvent(E.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t,updatedKeyList:o,deletedKeyList:s})}},{key:\"_computeAttrChangedInfo\",value:function(e){var t=this,n=[],o=[];return Object.keys(e).forEach((function(o){e[o]!==t._groupAttributesCopy[o]&&n.push(o)})),Object.keys(this._groupAttributesCopy).forEach((function(t){dt(e[t])&&o.push(t)})),this._groupAttributesCopy={},{updatedKeyList:n,deletedKeyList:o}}},{key:\"deleteLocalGroupAttributes\",value:function(e){this._hasLocalGroupAttributes(e)&&this._groupAttributesMap.delete(e)}},{key:\"reset\",value:function(){this._groupAttributesMap.clear(),this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4}}]),e}(),Ya=\"Set\",ja=\"Increase\",Ja=\"Decrease\",za=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"GroupCountersHandler\",this._groupCountersMap=new Map,this.EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(Ma,this._onCloudConfigUpdated,this)}return r(e,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this._groupModule.getCloudConfig(\"grp_counter_expire_time\");dt(e)||(this.EXPIRE_TIME=Number(e))}},{key:\"isGroupCountersNotice\",value:function(e){var t=e.to,n=e.elements.groupCounterInfo,o=!1;return $t(n)||(this._onGroupCountersUpdated({groupID:t,groupCounterInfo:n}),o=!0),o}},{key:\"_onGroupCountersUpdated\",value:function(e){var t=this,n=e.groupID;e.groupCounterInfo.forEach((function(e){var o=e.type,s=e.groupCounterSeq,r=e.counterList,a=void 0===r?[]:r;0!==o&&2!==o||(t._updateLocalGroupCounters({groupID:n,groupCounterSeq:s,counterList:a}),a.forEach((function(e){t._groupModule.emitOuterEvent(E.GROUP_COUNTER_UPDATED,{groupID:n,key:e.key,value:e.value})}))),1===o&&t._deleteLocalGroupCounters({groupID:n,groupCounterSeq:s,counterList:a})})),Ve.l(\"\".concat(this._n,\"._onGroupCountersUpdated groupID:\").concat(n))}},{key:\"initGroupCountersCache\",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupCountersMap.set(t,{lastUpdateTime:0,groupCounterSeq:0,counters:new Map,avChatRoomKey:n}),Ve.l(\"\".concat(this._n,\".initGroupCountersCache groupID:\").concat(t,\" avChatRoomKey:\").concat(n))}},{key:\"setGroupCounters\",value:function(e){var t=this;if(!this._groupModule.canIUse(B.GRP_COUNTER))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".setGroupCounters\"),o=e.groupID,s=e.counters,r=this._convertObjectToList(s),a=this._getLocalGroupCounters(o).avChatRoomKey,i=\"groupID:\".concat(o,\" count:\").concat(r.length),u=new jr(\"setGroupCounters\");return u.setMessage(\"\".concat(i)),Ve.l(\"\".concat(n,\". \").concat(i)),this._updateGroupCounters({groupID:o,counterList:r,avChatRoomKey:a,mode:Ya}).then((function(e){return u.end(),Ve.l(\"\".concat(n,\" ok.\")),la({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"increaseGroupCounter\",value:function(e){var t=this;if(!this._groupModule.canIUse(B.GRP_COUNTER))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".increaseGroupCounters\"),o=e.groupID,s=e.key,r=e.value,a=this._getLocalGroupCounters(o).avChatRoomKey,i=\"groupID:\".concat(o,\" key:\").concat(s,\" value:\").concat(r),u=new jr(\"increaseGroupCounter\");u.setMessage(\"\".concat(i)),Ve.l(\"\".concat(n,\". \").concat(i));var c=[{key:s,value:r}];return this._updateGroupCounters({groupID:o,counterList:c,avChatRoomKey:a,mode:ja}).then((function(e){return u.end(),Ve.l(\"\".concat(n,\" ok.\")),la({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"decreaseGroupCounter\",value:function(e){var t=this;if(!this._groupModule.canIUse(B.GRP_COUNTER))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".decreaseGroupCounter\"),o=e.groupID,s=e.key,r=e.value,a=this._getLocalGroupCounters(o).avChatRoomKey,i=\"groupID:\".concat(o,\" key:\").concat(s,\" value:\").concat(r),u=new jr(\"decreaseGroupCounter\");u.setMessage(\"\".concat(i)),Ve.l(\"\".concat(n,\". \").concat(i));var c=[{key:s,value:r}];return this._updateGroupCounters({groupID:o,counterList:c,avChatRoomKey:a,mode:Ja}).then((function(e){return u.end(),Ve.l(\"\".concat(n,\" ok.\")),la({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"getGroupCounters\",value:function(e){var t=this;if(!this._groupModule.canIUse(B.GRP_COUNTER))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".getGroupCounters\"),o=e.groupID,s=e.keyList,r=void 0===s?[]:s,a=this._getLocalGroupCounters(o),i=a.avChatRoomKey,u=a.lastUpdateTime,c=new jr(\"getGroupCounters\");if(c.setMessage(\"groupID:\".concat(o)),Date.now()-u>=this.EXPIRE_TIME)return this._getRemoteGroupCounters({groupID:o,avChatRoomKey:i}).then((function(e){c.setMoreMessage(\"from remote. count:\".concat(e.length)).end(),Ve.l(\"\".concat(n,\" from remote. groupID:\").concat(o));var s=t._getLocalCounters(o,r);return la({counters:s})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),ha(e)}));c.setMoreMessage(\"from cache\").end(),Ve.l(\"\".concat(n,\" from cache. groupID:\").concat(o));var l=this._getLocalCounters(o,r);return _a({counters:l})}},{key:\"_getRemoteGroupCounters\",value:function(e){var n=this;return this._groupModule.request({protocolName:Js,requestData:t({},e)}).then((function(t){var o=t.data,s=o.counterList,r=void 0===s?[]:s,a=o.groupCounterSeq;return n._updateLocalGroupCounters({groupID:e.groupID,counterList:r,groupCounterSeq:a}),Ve.l(\"\".concat(n._n,\"._getRemoteGroupCounters ok. groupID:\").concat(e.groupID)),r})).catch((function(e){return ha(e)}))}},{key:\"_convertObjectToList\",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:\"_updateGroupCounters\",value:function(e){var n=\"\".concat(this._n,\"._updateGroupCounters\"),o=e.groupID,s=e.avChatRoomKey,r=e.mode;return Ve.l(\"\".concat(n,\". groupID:\").concat(o,\" avChatRoomKey:\").concat(s,\" mode:\").concat(r)),this._groupModule.request({protocolName:js,requestData:t({},e)}).then((function(e){Ve.l(\"\".concat(n,\" ok.\"));var t=e.data.counterList,o={};return(void 0===t?[]:t).forEach((function(e){var t=e.key,n=e.value;o[t]=n})),o})).catch((function(e){return ha(e)}))}},{key:\"_hasLocalGroupCounters\",value:function(e){return this._groupCountersMap.has(e)}},{key:\"_getLocalGroupCounters\",value:function(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}},{key:\"_updateLocalGroupCounters\",value:function(e){var t=e.groupID,n=e.counterList,o=void 0===n?[]:n,s=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var r=this._getLocalGroupCounters(t),a=r.counters,i=r.avChatRoomKey,u=r.groupCounterSeq;if(s>0&&s<u)return;o.forEach((function(e){var t=e.key,n=e.value;a.set(t,n)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:s,counters:a,avChatRoomKey:i})}}},{key:\"_deleteLocalGroupCounters\",value:function(e){var t=e.groupID,n=e.counterList,o=void 0===n?[]:n,s=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var r=this._getLocalGroupCounters(t),a=r.counters,i=r.avChatRoomKey;o.forEach((function(e){a.delete(e.key)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:s,counters:a,avChatRoomKey:i})}}},{key:\"_getLocalCounters\",value:function(e,t){var n={};if(!this._hasLocalGroupCounters(e))return n;var o=this._getLocalGroupCounters(e).counters;if(t.length>0)t.forEach((function(e){o.has(e)&&(n[e]=o.get(e))}));else{var s,r=D(o.keys());try{for(r.s();!(s=r.n()).done;){var a=s.value;n[a]=o.get(a)}}catch(i){r.e(i)}finally{r.f()}}return n}},{key:\"reset\",value:function(){this._groupCountersMap.clear(),this.EXPIRE_TIME=3e4}}]),e}(),Xa=function(){function e(t){o(this,e);var n=t.manager,s=t.groupID,r=t.onInit,a=t.onSuccess,i=t.onFail;this._n=\"Polling\",this._manager=n,this._groupModule=n._groupModule,this._onInit=r,this._onSuccess=a,this._onFail=i,this._groupID=s,this._timeoutID=-1,this._isRunning=!1,this._protocolName=Us}return r(e,[{key:\"start\",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=Ps),Ve.l(\"\".concat(this._n,\".start pollingInterval:\").concat(this._manager.getPollingInterval(),\" isLoggedIn:\").concat(e)),this._isRunning=!0,this._request()}},{key:\"isRunning\",value:function(){return this._isRunning}},{key:\"_request\",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:\"stop\",value:function(){Ve.l(\"\".concat(this._n,\".stop\")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}},{key:\"getPollingTimerID\",value:function(){return this._timeoutID}}]),e}(),Qa={3:!0,4:!0,5:!0,6:!0,17:!0},Za=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"AVChatRoomHandler\",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new Na(200),this.messageIDLinkedList=new Na(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map,this.DEFAULT_POLLING_SIMPLIFIED_MSG=0}return r(e,[{key:\"hasJoinedAVChatRoom\",value:function(){return this._joinedGroupMap.size>0}},{key:\"checkJoinedAVChatRoomByID\",value:function(e){return this._joinedGroupMap.has(e)}},{key:\"getJoinedAVChatRoom\",value:function(){return this._joinedGroupMap.size>0?v(this._joinedGroupMap.keys()):null}},{key:\"_updateRequestData\",value:function(e){var n=this._pollingRequestInfoMap.get(e);return e===v(this._pollingInstanceMap.keys())[0]?t(t({},n),{},{startBroadcastSeq:this._startBroadcastSeq,simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG}):t(t({},n),{},{simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG})}},{key:\"_handleSuccess\",value:function(e,t){var n=t.data,o=n.key,s=n.nextSeq,r=n.rspMsgList,a=n.errorCode,i=n.nextBroadcastSeq,u=n.broadcastMessageList;if(0!==a){var c=this._pollingRequestInfoMap.get(e),l=new jr(\"longPollingAVError\"),d=c?\"\".concat(c.key,\"-\").concat(c.startSeq):\"requestInfo is undefined\";l.setMessage(\"\".concat(e,\"-\").concat(d,\"-\").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;it(o)&&at(s)&&this._pollingRequestInfoMap.set(e,{key:o,startSeq:s}),at(i)&&i>this._startBroadcastSeq&&(this._startBroadcastSeq=i),lt(r)&&r.length>0?(r.forEach((function(e){e.to=e.groupID})),this.onMessage(r)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(u)}}},{key:\"_handleFailure\",value:function(e,t){}},{key:\"onMessage\",value:function(e){if(lt(e)&&0!==e.length){0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL);var t=null,n=[],o=this._getModule(Kn),s=this._getModule(ro),r=e.length;r>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var a=this._getModule(Wn),i=0;i<r;i++){var u=this.restoreMessageFromSimplified(e[i]);if(Qa[u.event]){if(6===u.event){if(this._groupModule.isGroupAttributesUpdatedNotice(u))continue;if(this._groupModule.isGroupCountersNotice(u))continue}this.receivedMessageCount+=1,t=this.packMessage(u,u.event);var c=1===u.isModified,l=1===u.isHistoryMessage;if((a.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var d=t.conversationID;if(this.receivedMessageCount%50==0?this._getModule(to).detectFirstRound(d,this.sequencesLinkedList.data()):this.receivedMessageCount%80==0&&this._getModule(to).detectSecondRound(d,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var p=this.sequencesLinkedList.tail().value,g=t.sequence-p;g>1&&g<=20?this._getModule(to).onMessageMaybeLost(d,p+1,g-1):g<-1&&g>=-20&&this._getModule(to).onMessageMaybeLost(d,t.sequence+1,Math.abs(g)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var _=!1;if(this._isMessageSentByCurrentInstance(t)?c&&(_=!0,t.isModified=c,o.updateMessageIsModifiedProperty(t)):_=!0,_){if(t.conversationType===k.CONV_SYSTEM&&5===t.payload.operationType&&this._onGroupDismissed(t.payload.groupProfile.groupID),!l&&t.conversationType!==k.CONV_SYSTEM){var h=t.conversationID.replace(k.CONV_GROUP,\"\");this._pollingInstanceMap.has(h)?this._groupModule.isLoggedIn()&&s.addMessageSequence({key:Br,message:t}):(t.type!==k.MSG_GRP_TIP&&t.clientTime>0&&s.addMessageDelay(t.clientTime),s.addMessageSequence({key:Vr,message:t}))}n.push(t)}}}else Ve.w(\"\".concat(this._n,\".onMessage unknown event:\").concat(u.event))}if(0!==n.length){this._groupModule.filterModifiedMessage(n);var f=this.packConversationOption(n);if(f.length>0)this._getModule(Kn).onNewMessage({conversationOptionsList:f,isInstantMessage:!0});Ve.d(\"\".concat(this._n,\".onMessage count:\").concat(n.length)),this._checkMessageStacked(n);var m=this._groupModule.filterUnmodifiedMessage(n);m.length>0&&this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,m),n.length=0}}}},{key:\"isBroadcastOrNormal\",value:function(e){return 3===e||17===e}},{key:\"isGroupTip\",value:function(e){return 4===e||6===e}},{key:\"isGroupSystemNotice\",value:function(e){return 5===e}},{key:\"restoreGroupTipElements\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.groupJoinType||(e.groupJoinType=1);var t=e.operatorInfo,n=void 0===t?{}:t,o=e.operatorID,s=e.userIDList,r=void 0===s?[]:s,a=n.userID,i=void 0===a?o:a,u=n.avatar,c=void 0===u?\"\":u,l=n.nick,d=void 0===l?\"\":l;e.operatorInfo={userID:i,avatar:c,nick:d};var p=r.map((function(e){return{userID:e}}));return e.memberInfoList=e.memberInfoList||p,e}},{key:\"restoreMessageFromSimplified\",value:function(e){var n=e.event;if(this.isBroadcastOrNormal(n)&&(e.cloudCustomData=e.cloudCustomData||\"\",e.elements=e.elements.map((function(e){if(e.type===k.MSG_CUSTOM){var n=e.content,o=void 0===n?{}:n;e.content=t({data:\"\",description:\"\",extension:\"\"},o)}return e}))),(this.isGroupTip(n)||this.isGroupSystemNotice(n))&&(e.from=e.from||\"@TIM#SYSTEM\"),this.isGroupTip(n)){e.elements=this.restoreGroupTipElements(e.elements);var o=e.elements,s=void 0===o?{}:o,r=s.operationType,i=s.operatorInfo;if(1===r){var u=[{userID:(void 0===i?{}:i).userID}];s.memberInfoList=s.memberInfoList||u}}if(this.isGroupSystemNotice(n)){var c=e.elements,l=c.memberInfoList,d=c.operatorInfo;l||(l=void 0===d?{}:d),e.elements.memberInfoList=t({userID:e.elements.operatorID,avatar:\"\",nick:\"\"},l),e.elements=t({authentication:\"\",remarkInfo:\"\",messageKey:1e3*e.time},e.elements);var p=Object.keys(e.elements).filter((function(e){return\"operatorInfo\"!==e})).reduce((function(n,o){return t(t({},n),{},a({},o,e.elements[o]))}),{});e.elements=p}return e}},{key:\"_onGroupDismissed\",value:function(e){Ve.l(\"\".concat(this._n,\"._onGroupDismissed groupID:\").concat(e)),this._groupModule.deleteLocalGroupAndConversation(e),this.reset(e)}},{key:\"_checkMessageStacked\",value:function(e){var t=\"MessageStacked\",n=e.length;n>=100&&(this._groupModule.outputWarning(t,n),this._reportMessageStackedCount<5&&(new jr(t).setNetworkType(this._groupModule.getNetworkType()).setMessage(\"count:\".concat(n,\" groupID:\").concat(v(this._joinedGroupMap.keys()))).setLevel(\"warning\").end(),this._reportMessageStackedCount+=1))}},{key:\"_isMessageSentByCurrentInstance\",value:function(e){return!!this._getModule(Kn).isMessageSentByCurrentInstance(e)}},{key:\"packMessage\",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?k.CONV_SYSTEM:k.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new ca(e),o=this.packElements(e,t);return n.setElement(o,this._groupModule.getFileDownloadProxy()),n}},{key:\"packElements\",value:function(e,n){return 4===n||6===n?(this._updateMemberCountByGroupTips(e),{type:k.MSG_GRP_TIP,content:t(t({},e.elements),{},{groupProfile:e.groupProfile})}):5===n?{type:k.MSG_GRP_SYS_NOTICE,content:t(t({},e.elements),{},{groupProfile:t(t({},e.groupProfile),{},{groupID:e.groupID})})}:this._getModule(zn).parseElements(e.elements,e.from)}},{key:\"packConversationOption\",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var o=e[n],s=o.conversationID;if(t.has(s)){var r=t.get(s);r.lastMessage=o,\"in\"===o.flow&&r.unreadCount++}else t.set(s,{conversationID:o.conversationID,unreadCount:\"out\"===o.flow?0:1,type:o.conversationType,subType:o.conversationSubType,lastMessage:o})}return v(t.values())}},{key:\"_updateMemberCountByGroupTips\",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,o=void 0===n?void 0:n;if(!$t(o)){var s=o.onlineMemberNum,r=void 0===s?0:s,a=o.expireTime,i=void 0===a?this.DEFAULT_EXPIRE_TIME:a,u=this._onlineMemberCountMap.get(t)||{},c=Date.now();$t(u)?Object.assign(u,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:c,memberCount:r,expireTime:i}):(u.latestUpdateTime=c,u.memberCount=r),Ve.d(\"\".concat(this._n,\"._updateMemberCountByGroupTips info:\"),u),this._onlineMemberCountMap.set(t,u)}}},{key:\"_onBroadcastMessage\",value:function(e){if(!$t(e)){for(var t=[],n=e.length,o=null,s=0;s<n;s++){var r=this.restoreMessageFromSimplified(e[s]);Qa[r.event]?((o=this.packMessage(r,r.event)).isBroadcastMessage=!0,this._broadcastMessageIDMap.has(o.ID)||(t.push(o),this._broadcastMessageIDMap.set(o.ID,1))):Ve.w(\"\".concat(this._n,\"._onBroadcastMessage unknown event:\").concat(r.event))}t.length>0&&this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,t)}}},{key:\"start\",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new Xa({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),Ve.l(\"\".concat(this._n,\".start groupID:\").concat(e))}}},{key:\"handleJoinResult\",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,o=e.group,s=o.groupID;return t._joinedGroupMap.set(s,o),t._groupModule.updateGroupMap([o]),t._groupModule.deleteUnjoinedAVChatRoom(s),t._groupModule.emitGroupListUpdate(!0,!1),dt(n)?_a({status:Ze,group:o}):Promise.resolve()}))}},{key:\"startRunLoop\",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,o=e.group,s=e.startSeq,r=void 0===s?0:s,a=o.groupID;return t._pollingRequestInfoMap.set(a,{key:n,startSeq:r}),t.start(a),t._groupModule.isLoggedIn()?_a({status:Ze,group:o}):_a({status:Ze})}))}},{key:\"_preCheck\",value:function(){if(this._getModule(Wn).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=m(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(!(n.selfInfo.role===k.GRP_MBR_ROLE_OWNER||n.ownerID===this._groupModule.getMyUserID()))return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:\"joinWithoutAuth\",value:function(e){var t=this,n=e.groupID,o=\"\".concat(this._n,\".\").concat(\"joinWithoutAuth\"),s=new jr(\"joinWithoutAuth\");return this._groupModule.request({protocolName:ms,requestData:e}).then((function(e){var r=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=m(e,2);t[0];var o=t[1];s.setNetworkType(o).setMessage(\"groupID:\".concat(n,\" longPollingKey:\").concat(r)).end(!0)})),dt(r))return ha({code:Or.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN});Ve.l(\"\".concat(o,\" ok. groupID:\").concat(n)),t._getModule(Kn).setCompleted(\"\".concat(k.CONV_GROUP).concat(n));var a=new Oa({groupID:n});return t.startRunLoop({group:a,longPollingKey:r}),la({status:Ze})})).catch((function(e){return Ve.e(\"\".concat(o,\" failed. groupID:\").concat(n,\" error:\"),e),t._groupModule.probeNetwork().then((function(t){var o=m(t,2),r=o[0],a=o[1];s.setError(e,r,a).setMessage(\"groupID:\".concat(n)).end(!0)})),ha(e)})).finally((function(){t._groupModule.getModule(jn).reportAtOnce()}))}},{key:\"getGroupOnlineMemberCount\",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return $t(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return la({memberCount:e.memberCount})})).catch((function(e){return ha(e)}))):_a({memberCount:t.memberCount})}},{key:\"_getGroupOnlineMemberCount\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"_getGroupOnlineMemberCount\");return this._groupModule.request({protocolName:bs,requestData:{groupID:e}}).then((function(o){var s=t._onlineMemberCountMap.get(e)||{},r=o.data,a=r.onlineMemberNum,i=void 0===a?0:a,u=r.expireTime,c=void 0===u?t.DEFAULT_EXPIRE_TIME:u;Ve.l(\"\".concat(n,\" ok. groupID:\").concat(e,\" memberCount:\").concat(i,\" expireTime:\").concat(c));var l=Date.now();return $t(s)&&(s.lastReqTime=l),t._onlineMemberCountMap.set(e,Object.assign(s,{lastSyncTime:l,latestUpdateTime:l,memberCount:i,expireTime:c})),{memberCount:i}})).catch((function(o){return Ve.w(\"\".concat(n,\" failed. error:\"),o),new jr(\"_getGroupOnlineMemberCount\").setCode(o.code).setMessage(\"groupID:\".concat(e,\" error:\").concat(JSON.stringify(o))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(o)}))}},{key:\"_getModule\",value:function(e){return this._groupModule.getModule(e)}},{key:\"setPollingInterval\",value:function(e){dt(e)||(at(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10))}},{key:\"setPollingIntervalPlus\",value:function(e){dt(e)||(at(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10))}},{key:\"setPollingNoMessageCount\",value:function(e){dt(e)||(at(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10))}},{key:\"setPollingSimplifiedMessage\",value:function(e){dt(e)||\"0\"!==e&&\"1\"!==e||(this.DEFAULT_POLLING_SIMPLIFIED_MSG=parseInt(e,10))}},{key:\"getPollingInterval\",value:function(){return this._pollingInterval}},{key:\"onAVChatRoomMemberBanned\",value:function(e){var t=e.payload.groupProfile.groupID;Ve.l(\"\".concat(this._n,\".onAVChatRoomMemberBanned groupID:\").concat(t)),this._groupModule.deleteLocalGroupAndConversation(t),this.reset(t)}},{key:\"restartPolling\",value:function(){Ve.l(\"\".concat(this._n,\".restartPolling count:\").concat(this._pollingInstanceMap.size));var e,t=D(this._pollingInstanceMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.stop(),n.start()}}catch(o){t.e(o)}finally{t.f()}}},{key:\"getPollingTimerID\",value:function(e){if(!this._pollingInstanceMap.has(e))return-1;var t=this._pollingInstanceMap.get(e).getPollingTimerID();return Ve.l(\"\".concat(this._n,\".getPollingTimerID groupID:\").concat(e,\" timerID:\").concat(t)),t}},{key:\"reset\",value:function(e){if(e){Ve.l(\"\".concat(this._n,\".reset groupID:\").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{Ve.l(\"\".concat(this._n,\".reset all\"));var n,o=D(this._pollingInstanceMap.values());try{for(o.s();!(n=o.n()).done;){n.value.stop()}}catch(s){o.e(s)}finally{o.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0}}]),e}(),$a=1,ei=15,ti=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"GroupSystemNoticeHandler\",this.pendencyMap=new Map}return r(e,[{key:\"onNewGroupSystemNotice\",value:function(e){var t=e.dataList,n=e.isSyncingEnded,o=e.isInstantMessage;Ve.d(\"\".concat(this._n,\".onReceiveSystemNotice count:\").concat(t.length));var s=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:o}),r=s.eventDataList,a=s.result;r.length>0&&(this._groupModule.getModule(Kn).onNewMessage({conversationOptionsList:r,isInstantMessage:o}),this._onReceivedGroupSystemNotice({result:a,isInstantMessage:o}));o?a.length>0&&this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,a):!0===n&&this._clearGroupSystemNotice()}},{key:\"newSystemNoticeStoredAndSummary\",value:function(e){var n=e.notifiesList,o=e.isInstantMessage,s=null,r=n.length,a=0,i=[],u={conversationID:k.CONV_SYSTEM,unreadCount:0,type:k.CONV_SYSTEM,subType:null,lastMessage:null};for(a=0;a<r;a++){var c=n[a],l=c.groupProfile,d=l.communityType,p=void 0===d?0:d,g=l.topicID,_=void 0===g?void 0:g,h=c.elements,f=h.topicIDList,m=void 0===f?void 0:f,v=h.operationType;if(!(2!==p||$t(_)&&$t(m))){if([17,18,20].includes(v)){this._handleTopicSystemNotice(c);continue}$t(_)||(c.to=_)}if(c.elements.operationType!==ei)c.currentUser=this._groupModule.getMyUserID(),c.conversationType=k.CONV_SYSTEM,c.conversationID=k.CONV_SYSTEM,(s=new ca(c)).setElement({type:k.MSG_GRP_SYS_NOTICE,content:t(t({},c.elements),{},{groupProfile:t({},c.groupProfile)})}),s.isSystemMessage=!0,(1===s.sequence&&1===s.random||2===s.sequence&&2===s.random)&&(s.sequence=yt(),s.random=yt(),s.generateMessageID(),Ve.l(\"\".concat(this._n,\".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:\").concat(s.ID))),this._groupModule.getModule(Kn).pushIntoNoticeResult(i,s)&&(o?u.unreadCount++:s.setIsRead(!0),u.subType=s.conversationSubType)}return u.lastMessage=i[i.length-1],{eventDataList:i.length>0?[u]:[],result:i}}},{key:\"_clearGroupSystemNotice\",value:function(){var e=this;this._getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set(\"\".concat(t.from,\"_\").concat(t.groupID,\"_\").concat(t.to),t)}));var n=e._groupModule.getModule(Kn).getLocalMessageList(k.CONV_SYSTEM),o=[];n.forEach((function(t){var n=t.payload,s=n.operatorID,r=n.operationType,a=n.groupProfile;if(r===$a){var i=\"\".concat(s,\"_\").concat(a.groupID,\"_\").concat(a.to),u=e.pendencyMap.get(i);u&&at(u.handled)&&0!==u.handled&&o.push(t)}})),e.deleteGroupSystemNotice({messageList:o})}))}},{key:\"deleteGroupSystemNotice\",value:function(e){var t=this,n=\"\".concat(this._n,\".deleteGroupSystemNotice\");return lt(e.messageList)&&0!==e.messageList.length?(Ve.l(\"\".concat(n,\" \")+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:Gs,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:k.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Ve.l(\"\".concat(n,\" ok\"));var o=t._groupModule.getModule(Kn);return e.messageList.forEach((function(e){o.deleteLocalMessage(e)})),la()})).catch((function(e){return Ve.e(\"\".concat(n,\" error:\"),e),ha(e)}))):_a()}},{key:\"_getPendencyList\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,o=void 0===n?void 0:n,s=t.startTime,r=void 0===s?0:s,a=t.limit,i=void 0===a?20:a;return this._groupModule.request({protocolName:Os,requestData:{type:o,startTime:r,limit:i,handleAccount:this._groupModule.getMyUserID()}}).then((function(t){var n=t.data.pendencyList;return 0!==t.data.nextStartTime?e._getPendencyList({startTime:t.data.nextStartTime}).then((function(e){return[].concat(v(n),v(e))})):n}))}},{key:\"getGroupApplicationList\",value:function(){var e=this;return this._getPendencyList().then((function(t){return e._getPendencyList({type:k.GRP_COMMUNITY}).then((function(n){return t.push.apply(t,v(n)),e._handlePendencyResult(t)})).catch((function(n){return e._handlePendencyResult(t)}))}))}},{key:\"_handlePendencyResult\",value:function(e){var t=this,n=[];return e.forEach((function(e){t.pendencyMap.set(\"\".concat(e.from,\"_\").concat(e.groupID,\"_\").concat(e.to),e),0===e.handled&&n.push({applicant:e.from,applicantNick:e.fromUserNickName,groupName:e.groupName,groupID:e.groupID,authentication:e.authentication,messageKey:e.time,applicationType:e.applicationType,userID:e.userID})})),_a({applicationList:n})}},{key:\"_onReceivedGroupSystemNotice\",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e);break;case 11:case 12:case 15:break;case 20:t._onMessageRemindTypeSynced(e);break;case 21:t._groupModule.onAVChatRoomMemberBanned(e)}}))}},{key:\"_onApplyGroupRequestAgreed\",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;if(n){t._groupModule.updateGroupMap([n]);var o=!n.isSupportTopic;t._groupModule.emitGroupListUpdate(!0,o)}}))}},{key:\"_onMemberKicked\",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:\"_onGroupDismissed\",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:\"_onInviteGroup\",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:\"_onQuitGroup\",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:\"_onSetManager\",value:function(e){var t=e.payload.groupProfile,n=t.to,o=t.groupID,s=this._groupModule.getModule(Bn).getLocalGroupMemberInfo(o,n);s&&s.updateRole(k.GRP_MBR_ROLE_ADMIN)}},{key:\"_onDeleteManager\",value:function(e){var t=e.payload.groupProfile,n=t.to,o=t.groupID,s=this._groupModule.getModule(Bn).getLocalGroupMemberInfo(o,n);s&&s.updateRole(k.GRP_MBR_ROLE_MEMBER)}},{key:\"_onMessageRemindTypeSynced\",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.messageRemindType;this._groupModule.getModule(Kn).onGroupMessageRemindTypeSynced({groupID:t,messageRemindType:n})}},{key:\"_handleTopicSystemNotice\",value:function(e){var t=e.groupProfile,n=t.groupID,o=t.topicID,s=e.elements,r=s.operationType,a=s.topicIDList,i=s.messageRemindType,u=this._groupModule.getModule(Hn);17===r?u.onTopicCreated({groupID:n,topicID:o}):18===r?u.onTopicDeleted({groupID:n,topicIDList:a}):20===r&&u.onTopicMessageRemindTypeUpdated({groupID:n,topicID:o,messageRemindType:i})}},{key:\"reset\",value:function(){this.pendencyMap.clear()}}]),e}(),ni=[\"relayFlag\"],oi=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"GroupModule\",t._commonGroupHandler=null,t._AVChatRoomHandler=null,t._groupSystemNoticeHandler=null,t._commonGroupHandler=new qa(_(t)),t._groupAttributesHandler=new Wa(_(t)),t._groupCountersHandler=new za(_(t)),t._AVChatRoomHandler=new Za(_(t)),t._groupTipsHandler=new Fa(_(t)),t._groupSystemNoticeHandler=new ti(_(t)),t.groupMap=new Map,t._unjoinedAVChatRoomList=new Map,t._receiptDetailCompleteMap=new Map,t.getInnerEmitterInstance().on(Ma,t._onCloudConfigUpdated,_(t)),t}return r(s,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"polling_interval\"),t=this.getCloudConfig(\"polling_interval_plus\"),n=this.getCloudConfig(\"polling_no_msg_count\"),o=this.getCloudConfig(\"polling_simplified_msg\");this._AVChatRoomHandler&&(Ve.l(\"\".concat(this._n,\"._onCloudConfigUpdated pollingInterval:\").concat(e)+\" pollingIntervalPlus:\".concat(t,\" pollingNoMessageCount:\").concat(n)+\" pollingSimplifiedMessage:\".concat(o)),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(n),this._AVChatRoomHandler.setPollingSimplifiedMessage(o))}},{key:\"onCheckTimer\",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:\"guardForAVChatRoom\",value:function(e){var t=this;if(e.conversationType===k.CONV_GROUP){var n=Nt(e.to)?Wt(e.to):e.to;return this.hasLocalGroup(n)?_a():this.getGroupProfile({groupID:n}).then((function(o){var s=o.data.group.type;if(Ve.l(\"\".concat(t._n,\".guardForAVChatRoom. groupID:\").concat(n,\" type:\").concat(s)),s===k.GRP_AVCHATROOM){var r=Or.MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM;return ha(new da({code:r,message:t.getErrorMessage(r,e.from,n),data:{message:e}}))}return _a()}))}return _a()}},{key:\"checkJoinedAVChatRoomByID\",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:\"onNewGroupMessage\",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:\"updateNextMessageSeq\",value:function(e){var t=this;if(lt(e)){var n=this.getModule(Hn);e.forEach((function(e){var o=e.conversationID.replace(k.CONV_GROUP,\"\");Nt(o)&&n.updateLastMessage(o,e.lastMessage),t.groupMap.has(o)&&(t.groupMap.get(o).nextMessageSeq=e.lastMessage.sequence+1)}))}}},{key:\"onNewGroupTips\",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:\"onGroupMessageRevoked\",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:\"onNewGroupSystemNotice\",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:\"onGroupMessageReadNotice\",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!dt(n)){var o=t.getModule(Kn);n.forEach((function(e){var n=e.groupID,s=e.topicID,r=void 0===s?void 0:s,a=e.lastMessageSeq;Ve.d(\"\".concat(t._n,\".onGroupMessageReadNotice groupID:\").concat(n,\" lastMessageSeq:\").concat(a));var i=\"\".concat(k.CONV_GROUP).concat(n),u=!0;$t(r)||(i=\"\".concat(k.CONV_GROUP).concat(r),u=!1),o.updateIsReadAfterReadReport({conversationID:i,lastMessageSeq:a}),o.updateUnreadCount(i,u),o.clearGroupAtInfoList(i,u)}))}}))}},{key:\"onReadReceiptList\",value:function(e){var t=this;Ve.d(\"\".concat(this._n,\".onReadReceiptList options:\"),JSON.stringify(e)),e.dataList.forEach((function(e){var n=e.groupProfile,o=e.elements,s=n.groupID,r=t.getModule(Kn),a=o.readReceiptList;r.updateReadReceiptInfo({groupID:s,readReceiptList:a})}))}},{key:\"onGroupMessageModified\",value:function(e){Ve.d(\"\".concat(this._n,\".onGroupMessageModified options:\"),JSON.stringify(e));var n=this.getModule(Kn);e.dataList.forEach((function(e){n.onMessageModified(t(t({},e),{},{conversationType:k.CONV_GROUP,to:e.topicID?e.topicID:e.groupID}))}))}},{key:\"deleteGroupSystemNotice\",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:\"initGroupMap\",value:function(e){this.groupMap.set(e.groupID,new Oa(e))}},{key:\"deleteGroup\",value:function(e){this.groupMap.delete(e)}},{key:\"updateGroupMap\",value:function(e){var t,n=this,o=this.getModule(Kn);e.forEach((function(e){t=e.groupID,n.groupMap.has(t)?n.groupMap.get(t).updateGroup(e):(n.groupMap.set(t,new Oa(e)),o.deleteGroupRomaingMessageInfo(t))}));var s,r=this.getMyUserID(),a=D(this.groupMap);try{for(a.s();!(s=a.n()).done;){var i=m(s.value,2)[1];i.selfInfo.userID=r,\"Owner\"===i.selfInfo.role&&(i.ownerID=r)}}catch(u){a.e(u)}finally{a.f()}this._setStorageGroupList()}},{key:\"getStorageGroupList\",value:function(){return this.getModule(Yn).getItem(\"groupMap\")}},{key:\"_setStorageGroupList\",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!Lt(t)})).filter((function(e){return!e.isSupportTopic})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(Yn).setItem(\"groupMap\",e)}},{key:\"getGroupMap\",value:function(){return this.groupMap}},{key:\"getLocalGroupList\",value:function(){return v(this.groupMap.values())}},{key:\"getLocalGroupProfile\",value:function(e){return this.groupMap.get(e)}},{key:\"sortLocalGroupList\",value:function(){var e=v(this.groupMap).filter((function(e){var t=m(e,2);return t[0],!$t(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(v(e))}},{key:\"updateGroupLastMessage\",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:\"emitGroupListUpdate\",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent(E.GROUP_LIST_UPDATED),t){var o=JSON.parse(JSON.stringify(n)),s=this.getModule(Kn);s.updateConversationGroupProfile(o)}}},{key:\"patchGroupMessageRemindType\",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Kn),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),Ve.l(\"\".concat(this._n,\".patchGroupMessageRemindType count:\").concat(n))}},{key:\"recomputeUnreadCount\",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Kn);e.forEach((function(e){var n=e.groupID,o=e.selfInfo,s=o.excludedUnreadSequenceList,r=o.readedSequence;if(lt(s)){var a=0;s.forEach((function(t){t>=r&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&t.recomputeGroupUnreadCount({conversationID:\"\".concat(k.CONV_GROUP).concat(n),count:a})}}))}},{key:\"getMyNameCardByGroupID\",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:\"\"}},{key:\"isPagingGetCompleted\",value:function(){return!!this._commonGroupHandler&&this._commonGroupHandler.isPagingGetCompleted()}},{key:\"getGroupList\",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):_a()}},{key:\"getGroupProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getGroupProfile\"),o=new jr(\"getGroupProfile\"),s=e.groupID,r=e.groupCustomFieldFilter;Ve.l(\"\".concat(n,\" groupID:\").concat(s));var a={groupIDList:[s],responseFilter:{groupBaseInfoFilter:[\"Type\",\"Name\",\"Introduction\",\"Notification\",\"FaceUrl\",\"Owner_Account\",\"CreateTime\",\"InfoSeq\",\"LastInfoTime\",\"LastMsgTime\",\"MemberNum\",\"MaxMemberNum\",\"ApplyJoinOption\",\"NextMsgSeq\",\"ShutUpAllMember\",\"InviteJoinOption\"],groupCustomFieldFilter:r,memberInfoFilter:[\"Role\",\"JoinTime\",\"MsgSeq\",\"MsgFlag\",\"NameCard\"]}};return this.getGroupProfileAdvance(a).then((function(e){var r,a=e.data,i=a.successGroupList,u=a.failureGroupList;if(Ve.l(\"\".concat(n,\" ok\")),u.length>0)return ha(u[0]);(Lt(i[0].type)&&!t.hasLocalGroup(s)?r=new Oa(i[0]):(t.updateGroupMap(i),r=t.getLocalGroupProfile(s)),r.isSupportTopic)||t.getModule(Kn).updateConversationGroupProfile([r]);return o.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(s,\" type:\").concat(r.type,\" muteAllMembers:\").concat(r.muteAllMembers,\" ownerID:\").concat(r.ownerID)).end(),la({group:r})})).catch((function(s){return t.probeNetwork().then((function(t){var n=m(t,2),r=n[0],a=n[1];o.setError(s,r,a).setMessage(\"groupID:\".concat(e.groupID)).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),s),ha(s)}))}},{key:\"getGroupProfileAdvance\",value:function(e){var n=\"\".concat(this._n,\".getGroupProfileAdvance\"),o=e.groupIDList;lt(o)&&o.length>50&&(this.outputWarning(\"GetGroupProfileLimit\"),o.length=50);var s=[],r=[];o.forEach((function(e){At({groupID:e})?r.push(e):s.push(e)}));var a=[];if(s.length>0){var i=this._getGroupProfileAdvance(t(t({},e),{},{groupIDList:s}));a.push(i)}if(r.length>0){var u=this._getGroupProfileAdvance(t(t({},e),{},{groupIDList:r,relayFlag:s.length>0}));a.push(u)}return Promise.all(a).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,v(e.successGroupList)),n.push.apply(n,v(e.failureGroupList))})),la({successGroupList:t,failureGroupList:n})})).catch((function(e){return Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_getGroupProfileAdvance\",value:function(e){var t=this,n=e.relayFlag,o=void 0!==n&&n,s=g(e,ni);return this.request({protocolName:ps,requestData:s}).then((function(e){Ve.l(\"\".concat(t._n,\"._getGroupProfileAdvance ok.\"));var n=e.data.groups;return{successGroupList:n.filter((function(e){return dt(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new da({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return o&&At({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:ha(t)}))}},{key:\"createGroup\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"createGroup\"),s=e.type,r=e.groupID;if(e.name&&!1===this._filterProfanity(\"name\",e))return ha({code:Or.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return ha({code:Or.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return ha({code:Or.PROFANITY_FOUND});if(![\"Public\",\"Private\",\"ChatRoom\",\"AVChatRoom\",\"Community\"].includes(s))return ha({code:Or.ILLEGAL_GROUP_TYPE});if(!At({type:s})){if(!$t(r)&&At({groupID:r}))return ha({code:Or.ILLEGAL_GROUP_ID});e.isSupportTopic=void 0}if(Lt(s)&&!dt(e.memberList)&&e.memberList.length>0&&(e.memberList=void 0),this._canIUseJoinOption(s)||dt(e.joinOption)||(e.joinOption=void 0),At({type:s})){if(!$t(r)&&!At({groupID:r}))return ha({code:Or.ILLEGAL_GROUP_ID});e.isSupportTopic=!0===e.isSupportTopic?1:0}var a=new jr(\"createGroup\");Ve.l(\"\".concat(o,\" options:\"),e);var i=null,u=[];return this.request({protocolName:gs,requestData:t(t({},e),{},{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(s){var r=s.data,c=r.groupID,l=r.overLimitUserIDList,d=void 0===l?[]:l;if(i=c,u=d,a.setNetworkType(n.getNetworkType()).setMessage(\"groupType:\".concat(e.type,\" groupID:\").concat(c,\" overLimitUserIDList=\").concat(d)).end(),Ve.l(\"\".concat(o,\" ok groupID:\").concat(c,\" overLimitUserIDList:\"),d),e.type===k.GRP_AVCHATROOM)return n.getGroupProfile({groupID:c});if(e.type===k.GRP_COMMUNITY&&1===e.isSupportTopic)return n.getGroupProfile({groupID:c});$t(e.memberList)||$t(d)||(e.memberList=e.memberList.filter((function(e){return-1===d.indexOf(e.userID)}))),n.updateGroupMap([t(t({},e),{},{groupID:c})]);var p=n.getModule(bn),g=p.createCustomMessage({to:c,conversationType:k.CONV_GROUP,payload:{data:\"group_create\",extension:n.isIntl()?\"\".concat(n.getMyUserID(),\" created a group\"):\"\".concat(n.getMyUserID(),\"创建群组\")}});return p.sendMessageInstance(g),n.emitGroupListUpdate(),n.getGroupProfile({groupID:c})})).then((function(e){var t=e.data.group,n=t.selfInfo,o=n.nameCard,s=n.joinTime;return t.updateSelfInfo({nameCard:o,joinTime:s,messageRemindType:k.MSG_REMIND_ACPT_AND_NOTE,role:k.GRP_MBR_ROLE_OWNER}),la({group:t,overLimitUserIDList:u})})).catch((function(s){if(a.setMessage(\"groupType:\".concat(e.type)),n.probeNetwork().then((function(e){var t=m(e,2),n=t[0],o=t[1];a.setError(s,n,o).end()})),10010===s.code||10007===s.code){n.updateGroupMap([t(t({},e),{},{groupID:i})]);var r=n.getLocalGroupProfile(i);return Ve.l(\"\".concat(o,\" success, but failed to get group profile.\")),la({group:r,overLimitUserIDList:u})}return Ve.e(\"\".concat(o,\" failed. error:\"),s),ha(s)}))}},{key:\"dismissGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"dismissGroup\");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===k.GRP_WORK)return ha(new da({code:Or.CANNOT_DISMISS_WORK}));var o=new jr(\"dismissGroup\");return o.setMessage(\"groupID:\".concat(e)),Ve.l(\"\".concat(n,\" groupID:\").concat(e)),this.request({protocolName:_s,requestData:{groupID:e}}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),la({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"updateGroupProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"updateGroupProfile\");if(this.hasLocalGroup(e.groupID)){var o=this.getLocalGroupProfile(e.groupID).type;this._canIUseJoinOption(o)||dt(e.joinOption)||(Ve.w(\"\".concat(n,\" joinOption is unavailable for Work/Meeting/AVChatRoom\")),e.joinOption=void 0)}if(dt(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers=\"On\":e.muteAllMembers=\"Off\"),e.name&&!1===this._filterProfanity(\"name\",e))return ha({code:Or.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return ha({code:Or.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return ha({code:Or.PROFANITY_FOUND});var s=new jr(\"updateGroupProfile\");return s.setMessage(JSON.stringify(e)),Ve.l(\"\".concat(n,\" groupID:\").concat(e.groupID)),this.request({protocolName:hs,requestData:e}).then((function(){(s.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\")),t.hasLocalGroup(e.groupID))&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList());return la({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];s.setError(e,o,r).end()})),Ve.l(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_filterProfanity\",value:function(e,t){var n=this.getModule(uo);if(!n)return!0;var o=n.filterText(t[e],z),s=o.isAllowedToSend,r=o.modifiedText;return!0===s&&(t[e]=r,!0)}},{key:\"joinGroup\",value:function(e){var t=this,n=e.groupID,o=e.type,s=\"\".concat(this._n,\".joinGroup\");if(o===k.GRP_WORK)return ha({code:Or.CANNOT_JOIN_WORK});if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return _a({status:k.JOIN_STATUS_ALREADY_IN_GROUP});var r=new jr(\"applyJoinGroup\");return this.getGroupProfile({groupID:n}).then((function(){return r.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(n,\" joinedStatus:\").concat(k.JOIN_STATUS_ALREADY_IN_GROUP)).end(),_a({status:k.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(o){return r.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(n,\" unjoined\")).end(),Ve.w(\"\".concat(s,\" \").concat(n,\" was unjoined, now join!\")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return Ve.l(\"\".concat(s,\" groupID:\").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:\"applyJoinGroup\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"applyJoinGroup\"),s=e.groupID;if(!$t(e.applyMessage)&&!1===this._filterProfanity(\"applyMessage\",e))return ha({code:Or.PROFANITY_FOUND});var r=new jr(\"applyJoinGroup\"),a=t({},e),i=this.canIUse(B.AVCHATROOM_HISTORY_MSG);return i&&(a.historyMessageFlag=1),this.getModule(Kn).deleteTopicRoamingMessageInfo(s),this.request({protocolName:fs,requestData:a}).then((function(e){var t=e.data,a=t.joinedStatus,u=t.longPollingKey,c=t.startSeq,l=t.avChatRoomFlag,d=t.avChatRoomKey,p=t.messageList,g=\"groupID:\".concat(s,\" joinedStatus:\").concat(a,\" longPollingKey:\").concat(u,\" startSeq:\").concat(c)+\" avChatRoomFlag:\".concat(l,\" canGetAVChatRoomHistoryMessage:\").concat(i,\",\")+\" history message count:\".concat($t(p)?0:p.length);switch(r.setNetworkType(n.getNetworkType()).setMessage(\"\".concat(g)).end(),Ve.l(\"\".concat(o,\" ok. \").concat(g)),a){case $e:return la({status:$e});case Ze:return n.getGroupProfile({groupID:s}).then((function(e){var t=e.data.group;return n._handleJoinResult({group:t,avChatRoomFlag:l,longPollingKey:u,startSeq:c,avChatRoomKey:d,messageList:p})})).catch((function(){var e=new Oa({groupID:s});return n._handleJoinResult({group:e,avChatRoomFlag:l,longPollingKey:u,startSeq:c,avChatRoomKey:d,messageList:p})}));default:var _=new da({code:Or.JOIN_GROUP_FAIL});return Ve.e(\"\".concat(o,\" failed. error:\"),_),ha(_)}})).catch((function(e){return r.setMessage(\"groupID:\".concat(s)),n.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}},{key:\"_handleJoinResult\",value:function(e){var t,n=this,o=e.group,s=e.avChatRoomFlag,r=e.longPollingKey,a=e.startSeq,i=e.avChatRoomKey,u=e.messageList,c=o.groupID;return 1===s?(this.getModule(Kn).setCompleted(\"\".concat(k.CONV_GROUP).concat(c)),this._groupAttributesHandler.initGroupAttributesCache({groupID:c,avChatRoomKey:i}),this._groupCountersHandler.initGroupCountersCache({groupID:c,avChatRoomKey:i}),(t=dt(r)?this._AVChatRoomHandler.handleJoinResult({group:o}):this._AVChatRoomHandler.startRunLoop({group:o,longPollingKey:r,startSeq:a})).then((function(){n._onAVChatRoomHistoryMessage(u)})),t):(this.emitGroupListUpdate(!0,!1),la({status:Ze,group:o}))}},{key:\"quitGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"quitGroup\");Ve.l(\"\".concat(n,\" groupID:\").concat(e));var o=this.checkJoinedAVChatRoomByID(e);if(!o&&!this.hasLocalGroup(e))return ha({code:Or.MEMBER_NOT_IN_GROUP});if(o&&!this.isLoggedIn())return Ve.l(\"\".concat(n,\" anonymously ok. groupID:\").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),_a({groupID:e});var s=new jr(\"quitGroup\");return s.setMessage(\"groupID:\".concat(e)),this.request({protocolName:vs,requestData:{groupID:e}}).then((function(){return s.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\")),t.deleteLocalGroupAndConversation(e),o&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),la({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];s.setError(e,o,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"searchGroupByID\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"searchGroupByID\"),o={groupIDList:[e]},s=new jr(\"searchGroupByID\");return s.setMessage(\"groupID:\".concat(e)),Ve.l(\"\".concat(n,\" groupID:\").concat(e)),this.request({protocolName:Ms,requestData:o}).then((function(e){var o=e.data.groupProfile;if(0!==o[0].errorCode)throw new da({code:o[0].errorCode,message:o[0].errorInfo});return s.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\")),la({group:new Oa(o[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];s.setError(e,o,r).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"changeGroupOwner\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"changeGroupOwner\");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===k.GRP_AVCHATROOM)return ha({code:Or.CANNOT_CHANGE_OWNER_IN_AVCHATROOM});if(e.newOwnerID===this.getMyUserID())return ha({code:Or.CANNOT_CHANGE_OWNER_TO_SELF});var o=new jr(\"changeGroupOwner\");return o.setMessage(\"groupID:\".concat(e.groupID,\" newOwnerID:\").concat(e.newOwnerID)),Ve.l(\"\".concat(n,\" groupID:\").concat(e.groupID)),this.request({protocolName:ys,requestData:e}).then((function(){o.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var s=e.groupID,r=e.newOwnerID;t.groupMap.get(s).ownerID=r;var a=t.getModule(Bn).getLocalGroupMemberList(s);if(a instanceof Map){var i=a.get(t.getMyUserID());dt(i)||(i.updateRole(\"Member\"),t.groupMap.get(s).selfInfo.role=\"Member\");var u=a.get(r);dt(u)||u.updateRole(\"Owner\")}return t.emitGroupListUpdate(!0,!1),la({group:t.groupMap.get(s)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"getGroupApplicationList\",value:function(){return this._groupSystemNoticeHandler.getGroupApplicationList()}},{key:\"handleGroupApplication\",value:function(e){var t,n,o,s,r,a=this,i=\"\".concat(this._n,\".\").concat(\"handleGroupApplication\"),u=e.handleAction,c=e.handleMessage,l=e.message,d=e.application;l?(t=l.payload.operatorID,n=l.payload.groupProfile.groupID,o=l.payload.authentication,s=l.payload.messageKey):d&&(t=d.applicant,n=d.groupID,o=d.authentication,s=d.messageKey);var p=Is;d&&2===d.applicationType&&(p=Cs,r=d.userID);var g=new jr(\"handleGroupApplication\");return g.setMessage(\"groupID:\".concat(n)),Ve.l(\"\".concat(i,\" groupID:\").concat(n)),this.request({protocolName:p,requestData:{handleAction:u,handleMessage:c,applicant:t,invitee:r,groupID:n,authentication:o,messageKey:s}}).then((function(){return g.setNetworkType(a.getNetworkType()).end(),Ve.l(\"\".concat(i,\" ok\")),l&&a._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),la({group:a.getLocalGroupProfile(n)})})).catch((function(e){return a.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];g.setError(e,o,s).end()})),Ve.e(\"\".concat(i,\" failed. error\"),e),ha(e)}))}},{key:\"handleGroupInvitation\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"handleGroupInvitation\"),s=e.message.payload,r=s.groupProfile.groupID,a=s.authentication,i=s.messageKey,u=s.operatorID,c=e.handleAction,l=new jr(\"handleGroupInvitation\");return l.setMessage(\"groupID:\".concat(r,\" inviter:\").concat(u,\" handleAction:\").concat(c)),Ve.l(\"\".concat(o,\" groupID:\").concat(r,\" inviter:\").concat(u,\" handleAction:\").concat(c)),this.request({protocolName:Ts,requestData:t(t({},e),{},{inviter:u,groupID:r,authentication:a,messageKey:i})}).then((function(){return l.setNetworkType(n.getNetworkType()).end(),Ve.l(\"\".concat(o,\" ok\")),n._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),la({group:n.getLocalGroupProfile(r)})})).catch((function(e){return n.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];l.setError(e,o,s).end()})),Ve.e(\"\".concat(o,\" failed. error\"),e),ha(e)}))}},{key:\"getGroupOnlineMemberCount\",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):_a({memberCount:0}):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"hasLocalGroup\",value:function(e){return this.groupMap.has(e)}},{key:\"deleteLocalGroupAndConversation\",value:function(e){var t=this.checkJoinedAVChatRoomByID(e);(Ve.l(\"\".concat(this._n,\".deleteLocalGroupAndConversation isJoinedAVChatRoom:\").concat(t)),t)&&this.getModule(Kn).deleteLocalConversation(\"\".concat(k.CONV_GROUP).concat(e));if(At({groupID:e})){var n=this.getLocalGroupProfile(e);if(n&&!0===n.isSupportTopic)this.getModule(Hn).deleteTopicListInCommunity(e)}this._deleteLocalGroup(e),this.emitGroupListUpdate(!0,!1)}},{key:\"_deleteLocalGroup\",value:function(e){this.groupMap.delete(e),this.getModule(Bn).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:\"sendMessage\",value:function(e,t){if(lt(e._receiverList)&&e._receiverList.length>0&&!this.canIUse(B.MSG_TO_SPECIFIED_GRP_MBR))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:\"createGroupMessagePack\",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var o=\"\";it(e.cloudCustomData)&&e.cloudCustomData.length>0&&(o=e.cloudCustomData);var s=[];if(ct(t)&&ct(t.messageControlInfo)){var r=t.messageControlInfo,a=r.excludedFromUnreadCount,i=r.excludedFromLastMessage,u=r.excludedFromContentModeration;!0===a&&s.push(\"NoUnread\"),!0===i&&s.push(\"NoLastMsg\"),!0===u&&s.push(\"NoMsgCheck\")}var c=void 0;lt(e._receiverList)&&e._receiverList.length>0&&(c=e._receiverList,e._receiverList.length>50&&(c=e._receiverList.slice(0,50),this.outputWarning(\"ReceiverListLimit\")));var l=this.isOnlineMessage(e,t)?1:0,d=e.getGroupAtInfoList(),p={fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:o,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==k.MSG_TEXT||$t(d)?void 0:d,onlineOnlyFlag:l,clientTime:e.clientTime,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||\"\",desc:n.description||\"\",ext:n.extension||\"\",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||\"\"}}:void 0,messageControlInfo:0===l?s:void 0,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1,receiverList:c,isSupportExtension:!0===e.isSupportExtension?1:0};return Nt(e.to)&&(p.groupID=Wt(e.to),p.topicID=e.to),{protocolName:Io,tjgID:this.generateTjgID(e),requestData:p}}},{key:\"_isVoipPush\",value:function(e){var t=void 0;return dt(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:\"revokeMessage\",value:function(e){var t={groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]};return Nt(e.to)&&(t.groupID=Wt(e.to),t.topicID=e.to),this.request({protocolName:Ds,requestData:t})}},{key:\"deleteMessage\",value:function(e){var t=e.to,n=e.keyList;Ve.l(\"\".concat(this._n,\".deleteMessage groupID:\").concat(t,\" count:\").concat(n.length));var o={groupID:t,deleter:this.getMyUserID(),keyList:n};return Nt(t)&&(o.groupID=Wt(t),o.topicID=t),this.request({protocolName:ws,requestData:o})}},{key:\"modifyRemoteMessage\",value:function(e){var t=e.to,n=e.sequence,o=e.payload,s=e.type,r=e.version,a=void 0===r?0:r,i=e.cloudCustomData,u=t,c=void 0;Nt(t)&&(u=Wt(t),c=t);var l=void 0;return jt(s)&&(l=[]).push({type:s,content:o}),this.request({protocolName:Fs,requestData:{groupID:u,topicID:c,sequence:n,version:a,elements:l,cloudCustomData:i}})}},{key:\"getRoamingMessage\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRoamingMessage\"),o=e.conversationID,s=e.groupID,r=e.sequence,a=new jr(\"getGroupRoamingMessages\"),i=0,u=void 0;return Nt(s)&&(s=Wt(u=s)),this._computeLastSequence({groupID:s,topicID:u,sequence:r}).then((function(e){return i=e,Ve.l(\"\".concat(n,\" groupID:\").concat(s,\" startSequence:\").concat(i)),t.request({protocolName:Ss,requestData:{groupID:s,count:21,sequence:i,topicID:u}})})).then((function(e){var r=e.data,c=r.messageList,l=r.complete,d=r.invisibleSequenceList,p=void 0===d?[]:d;dt(c)?Ve.l(\"\".concat(n,\" ok. complete:\").concat(l,\" but messageList is undefined!\")):Ve.l(\"\".concat(n,\" ok. complete:\").concat(l,\" count:\").concat(c.length));var g=t._getMinSequence(p,c)-1;a.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(s,\" topicID:\").concat(u,\" startSequence:\").concat(i,\" complete:\").concat(l,\" nextSequence:\").concat(g)).end();var _=t.getModule(Kn),h=[];return $t(c)||(_.updateRoamingMessageSequence(o,g),h=_.onRoamingMessage(c,o),_.updateIsRead(o),_.patchConversationLastMessage(o)),(2===l||g<=1)&&(_.setCompleted(o),g=\"\"),Ve.l(\"\".concat(n,\" nextReqID:\").concat(g,\", stored message count:\").concat(h.length,\", invisible sequence count:\").concat(p.length)),{nextReqID:g+\"\",storedMessageList:h}})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];a.setError(e,o,r).setMessage(\"groupID:\".concat(s,\" topicID:\").concat(u,\" startSequence:\").concat(i)).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_getGroupIDOfMessage\",value:function(e){return e.conversationID.replace(k.CONV_GROUP,\"\")}},{key:\"_getMinSequence\",value:function(e,t){var n=0;$t(t)||(n=t[t.length-1].sequence);var o=0;$t(e)||(o=e[e.length-1]);return Ve.l(\"\".concat(this._n,\"._getMinSequence minVisibleSequence:\").concat(n,\" minInvisibleSequence:\").concat(o)),o>0&&o<n?o:n}},{key:\"getReadReceiptList\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getReadReceiptList\"),o=this._getGroupIDOfMessage(e[0]),s=this.getMyUserID(),r=e.filter((function(e){return e.from===s&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(Ve.l(\"\".concat(n,\" groupID:\").concat(o,\" sequenceList:\").concat(JSON.stringify(r))),0===r.length)return _a({messageList:e});var a=new jr(\"getReadReceiptList\");return a.setMessage(\"groupID:\".concat(o)),this.request({protocolName:Ls,requestData:{groupID:o,sequenceList:r}}).then((function(t){a.end(),Ve.l(\"\".concat(n,\" ok\"));var o=t.data.readReceiptList;return lt(o)&&o.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),la({messageList:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"sendReadReceipt\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"sendReadReceipt\"),o=this._getGroupIDOfMessage(e[0]),s=new jr(\"sendReadReceipt\");s.setMessage(\"groupID:\".concat(o));var r=this.getMyUserID(),a=e.filter((function(e){return e.from!==r&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));return 0===a.length?ha({code:Or.READ_RECEIPT_MESSAGE_LIST_EMPTY}):(Ve.l(\"\".concat(n,\". sequenceList:\").concat(JSON.stringify(a))),this.request({protocolName:As,requestData:{groupID:o,sequenceList:a}}).then((function(e){return s.end(),Ve.l(\"\".concat(n,\" ok\")),la()})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];s.setError(e,o,r).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)})))}},{key:\"getReadReceiptDetail\",value:function(e){var t=this,n=e.message,o=e.filter,s=e.cursor,r=e.count,a=this._getGroupIDOfMessage(n),i=n.ID,u=n.sequence,c=\"\".concat(this._n,\".\").concat(\"getReadReceiptDetail\"),l=this._receiptDetailCompleteMap.get(i)||!1,d=0!==o&&1!==o?0:o,p=it(s)?s:\"\",g=!at(r)||r<=0||r>=100?100:r,_=\"groupID:\".concat(a,\" sequence:\").concat(u,\" cursor:\").concat(p,\" filter:\").concat(d,\" completeFlag:\").concat(l);Ve.l(\"\".concat(c,\" \").concat(_));var h={cursor:\"\",isCompleted:!1,messageID:i,unreadUserIDList:[],readUserIDList:[]},f=new jr(\"getReadReceiptDetail\");return f.setMessage(_),this.request({protocolName:Rs,requestData:{groupID:a,sequence:u,flag:d,cursor:p,count:g}}).then((function(e){f.end();var n=e.data,o=n.cursor,s=n.isCompleted,r=n.unreadUserIDList,a=n.readUserIDList;return h.cursor=o,1===s&&(h.isCompleted=!0,t._receiptDetailCompleteMap.set(i,!0)),0===d?h.readUserIDList=a.map((function(e){return e.userID})):1===d&&(h.unreadUserIDList=r.map((function(e){return e.userID}))),Ve.l(\"\".concat(c,\" ok\")),la(h)})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];f.setError(e,o,s).end()})),Ve.w(\"\".concat(c,\" failed. error:\"),e),ha(e)}))}},{key:\"getRoamingMessagesHopping\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRoamingMessagesHopping\"),o=new jr(\"getGroupRoamingMessagesHopping\"),s=e.groupID,r=e.count,a=e.sequence,i=e.direction,u=a;1===i&&(u=a+r-1);var c=void 0;Nt(s)&&(s=Wt(c=s));var l=\"\".concat(c?\"topicID:\".concat(c):\"groupID:\".concat(s),\" sequence:\").concat(a,\" direction:\").concat(i);return Ve.l(\"\".concat(n,\" \").concat(l)),this.request({protocolName:Ss,requestData:{groupID:s,topicID:c,count:r,sequence:u}}).then((function(s){var r=s.data,u=r.messageList,c=r.complete,d=\"complete:\".concat(c,\" count:\").concat(u?u.length:0);if(Ve.l(\"\".concat(n,\" ok. \").concat(d)),o.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(l,\" \").concat(d)).end(),2===c||$t(u)){var p=t._computeResult();return la(p)}var g=\"\".concat(k.CONV_GROUP).concat(e.groupID),_=t.getModule(Kn).onRoamingMessage(u,g,!1),h=t._computeResult({direction:i,sequence:a,remoteMessageList:u,processedMessageList:_});return la(h)})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),i=n[0],u=n[1];o.setError(e,i,u).setMessage(\"groupID:\".concat(s,\" sequence:\").concat(a,\" count:\").concat(r)).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_computeResult\",value:function(e){var t={messageList:[],isCompleted:!1,nextMessageSeq:\"\"};if(dt(e))return t.isCompleted=!0,t;var n=e.direction,o=e.sequence,s=e.remoteMessageList,r=void 0===s?[]:s,a=e.processedMessageList,i=void 0===a?[]:a,u=r.length;return 1===n?(t.nextMessageSeq=r[0].sequence+1,i.forEach((function(e){e.sequence>=o&&t.messageList.push(e)})),0===t.messageList.length&&r[0].sequence<o&&(t.isCompleted=!0,t.nextMessageSeq=\"\"),t):(t.nextMessageSeq=r[u-1].sequence-1,t.messageList=v(i),0===t.nextMessageSeq&&(t.isCompleted=!0,t.nextMessageSeq=\"\"),t)}},{key:\"setMessageRead\",value:function(e){var t=this,n=e.conversationID,o=e.lastMessageSeq,s=\"\".concat(this._n,\".setMessageRead\");Ve.l(\"\".concat(s,\" conversationID:\").concat(n,\" lastMessageSeq:\").concat(o)),at(o)||this.outputWarning(\"DoNotModifyLastSeq\");var r=new jr(\"setGroupMessageRead\");r.setMessage(\"\".concat(n,\"-\").concat(o));var a=n.replace(k.CONV_GROUP,\"\"),i=void 0;return Nt(a)&&(a=Wt(i=a)),this.request({protocolName:Es,requestData:{groupID:a,topicID:i,messageReadSeq:o}}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(s,\" ok.\"));var e=t.getModule(Kn);e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:o});var u=!0;if(!dt(i)){u=!1;var c=t.getModule(Hn).getLocalTopic(a,i);c&&c.updateSelfInfo({readedSequence:o})}return e.updateUnreadCount(n,u),la()})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.l(\"\".concat(s,\" failed. error:\"),e),ha(e)}))}},{key:\"_computeLastSequence\",value:function(e){var t=e.groupID,n=e.topicID,o=void 0===n?void 0:n,s=e.sequence;return s>0?Promise.resolve(s):dt(o)||this.hasLocalGroup(t)?dt(o)?this.getGroupLastSequence(t):this.getTopicLastSequence({groupID:t,topicID:o}):Promise.resolve(0)}},{key:\"getGroupLastSequence\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getGroupLastSequence\"),o=new jr(\"getGroupLastSequence\"),s=0,r=\"\";if(this.hasLocalGroup(e)){var a=this.getLocalGroupProfile(e),i=a.lastMessage;if(i.lastSequence>0&&!1===i.onlineOnlyFlag)return s=i.lastSequence,r=\"got lastSequence:\".concat(s,\" from local group profile[lastMessage.lastSequence]. groupID:\").concat(e),Ve.l(\"\".concat(n,\" \").concat(r)),o.setNetworkType(this.getNetworkType()).setMessage(\"\".concat(r)).end(),Promise.resolve(s);if(a.nextMessageSeq>1)return s=a.nextMessageSeq-1,r=\"got lastSequence:\".concat(s,\" from local group profile[nextMessageSeq]. groupID:\").concat(e),Ve.l(\"\".concat(n,\" \").concat(r)),o.setNetworkType(this.getNetworkType()).setMessage(\"\".concat(r)).end(),Promise.resolve(s)}var u=\"GROUP\".concat(e),c=this.getModule(Kn).getLocalConversation(u);if(c&&c.lastMessage.lastSequence&&!1===c.lastMessage.onlineOnlyFlag)return s=c.lastMessage.lastSequence,r=\"got lastSequence:\".concat(s,\" from local conversation profile[lastMessage.lastSequence]. groupID:\").concat(e),Ve.l(\"\".concat(n,\" \").concat(r)),o.setNetworkType(this.getNetworkType()).setMessage(\"\".concat(r)).end(),Promise.resolve(s);var l={groupIDList:[e],responseFilter:{groupBaseInfoFilter:[\"NextMsgSeq\"]}};return this.getGroupProfileAdvance(l).then((function(a){var i=a.data.successGroupList;return $t(i)?Ve.l(\"\".concat(n,\" successGroupList is empty. groupID:\").concat(e)):(s=i[0].nextMessageSeq-1,r=\"got lastSequence:\".concat(s,\" from getGroupProfileAdvance. groupID:\").concat(e),Ve.l(\"\".concat(n,\" \").concat(r))),o.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(r)).end(),s})).catch((function(s){return t.probeNetwork().then((function(t){var n=m(t,2),r=n[0],a=n[1];o.setError(s,r,a).setMessage(\"get lastSequence failed from getGroupProfileAdvance. groupID:\".concat(e)).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),s),ha(s)}))}},{key:\"getTopicLastSequence\",value:function(e){var t=this,n=e.groupID,o=e.topicID,s=\"\".concat(this._n,\".\").concat(\"getTopicLastSequence\"),r=new jr(\"getTopicLastSequence\"),a=0,i=\"\",u=this.getModule(Hn);return u.hasLocalTopic(n,o)?(a=u.getLocalTopic(n,o).nextMessageSeq-1,i=\"get lastSequence:\".concat(a,\" from local topic info[nextMessageSeq]. topicID:\").concat(o),Ve.l(\"\".concat(s,\" \").concat(i)),r.setNetworkType(this.getNetworkType()).setMessage(\"\".concat(i)).end(),Promise.resolve(a)):u.getTopicList({groupID:n,topicIDList:[o]}).then((function(e){var n=e.data.successTopicList;return $t(n)?Ve.l(\"\".concat(s,\" successTopicList is empty. topicID:\").concat(o)):(a=n[0].nextMessageSeq-1,i=\"get lastSequence:\".concat(a,\" from getTopicList. topicID:\").concat(o),Ve.l(\"\".concat(s,\" \").concat(i))),r.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(i)).end(),a})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),s=n[0],a=n[1];r.setError(e,s,a).setMessage(\"get lastSequence failed from getTopicList. topicID:\".concat(o)).end()})),Ve.w(\"\".concat(s,\" failed. error:\"),e),ha(e)}))}},{key:\"isMessageFromOrToAVChatroom\",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:\"hasJoinedAVChatRoom\",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:\"getJoinedAVChatRoom\",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:\"isOnlineMessage\",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:\"_canIUseOnlineOnlyFlag\",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==k.CONV_GROUP}},{key:\"_onAVChatRoomHistoryMessage\",value:function(e){if(!$t(e)){Ve.l(\"\".concat(this._n,\"._onAVChatRoomHistoryMessage count:\").concat(e.length));var n=[];e.forEach((function(e){n.push(t(t({},e),{},{isHistoryMessage:1}))})),this.onAVChatRoomMessage(n)}}},{key:\"onAVChatRoomMessage\",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:\"onAVChatRoomMemberBanned\",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onAVChatRoomMemberBanned(e)}},{key:\"getGroupSimplifiedInfo\",value:function(e){var t=this,n=new jr(\"getGroupSimplifiedInfo\"),o={groupIDList:[e],responseFilter:{groupBaseInfoFilter:[\"Type\",\"Name\"]}};return this.getGroupProfileAdvance(o).then((function(o){var s=o.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(e,\" type:\").concat(s[0].type)).end(),s[0]})).catch((function(o){t.probeNetwork().then((function(t){var s=m(t,2),r=s[0],a=s[1];n.setError(o,r,a).setMessage(\"groupID:\".concat(e)).end()}))}))}},{key:\"setUnjoinedAVChatRoom\",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:\"deleteUnjoinedAVChatRoom\",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:\"isUnjoinedAVChatRoom\",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:\"isGroupAttributesUpdatedNotice\",value:function(e){return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e)}},{key:\"updateLocalMainSequenceOnReconnected\",value:function(){this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:\"initGroupAttributes\",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:\"setGroupAttributes\",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:\"deleteGroupAttributes\",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:\"getGroupAttributes\",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:\"isMessageFromTopic\",value:function(e,t){return 2===e&&!$t(t)}},{key:\"isMessageFromCommunityOfTopic\",value:function(e,t){return 2===e&&$t(t)}},{key:\"getMessageExtensions\",value:function(e,t){return Ve.l(\"\".concat(this._n,\".getMessageExtensions startSequence:\").concat(t)),this.request({protocolName:Ws,requestData:{groupID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:\"modifyMessageExtensions\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ve.l(\"\".concat(this._n,\".modifyMessageExtensions operateType:\").concat(n)),this.request({protocolName:Ks,requestData:{groupID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:\"getGroupNotify\",value:function(e){var n=this;if(this.hasLocalGroup(e)){var o=this.getLocalGroupProfile(e),s=o.type,r=o.isSupportTopic;if(!Lt(s)&&!r){var a=\"\".concat(this._n,\".getGroupNotify\"),i=this._getGroupLastRevokedTime(e),u=1e3*Pe();Ve.l(\"\".concat(a,\" groupID:\").concat(e,\" type:\").concat(s,\" beginTime:\").concat(i,\" endTime:\").concat(u)),this.request({protocolName:Ys,requestData:{type:At({type:s,groupID:e})?k.GRP_COMMUNITY:void 0,groupID:e,beginTime:i,endTime:u}}).then((function(o){var s=o.data,r=s.nextRevokedTime,i=s.notifyList;Ve.l(\"\".concat(a,\" ok. groupID:\").concat(e,\" nextRevokedTime:\").concat(r));var u={dataList:[{elements:{revokedInfos:[]}}]};lt(i)&&i.forEach((function(n){u.dataList[0].elements.revokedInfos.push({groupID:e,sequence:n.sequence,random:n.random,revokerInfo:t({},n.revokerInfo)})})),n.onGroupMessageRevoked(u),0!==r?(n._setGroupLastRevokedTime(e,r),n.getGroupNotify(e)):n._setGroupLastRevokedTime(e,1e3*Pe())})).catch((function(e){Ve.e(\"\".concat(a,\" failed. error:\"),e)}))}}}},{key:\"_getGroupLastRevokedTime\",value:function(e){return this.hasLocalGroup(e)?this.getLocalGroupProfile(e)._lastRevokedTime:0}},{key:\"_setGroupLastRevokedTime\",value:function(e,t){this.hasLocalGroup(e)&&(this.getLocalGroupProfile(e)._lastRevokedTime=t)}},{key:\"isGroupCountersNotice\",value:function(e){return this._groupCountersHandler.isGroupCountersNotice(e)}},{key:\"setGroupCounters\",value:function(e){return this._groupCountersHandler.setGroupCounters(e)}},{key:\"increaseGroupCounter\",value:function(e){return this._groupCountersHandler.increaseGroupCounter(e)}},{key:\"decreaseGroupCounter\",value:function(e){return this._groupCountersHandler.decreaseGroupCounter(e)}},{key:\"getGroupCounters\",value:function(e){return this._groupCountersHandler.getGroupCounters(e)}},{key:\"restartPolling\",value:function(){this._AVChatRoomHandler&&this._AVChatRoomHandler.restartPolling()}},{key:\"getPollingTimerID\",value:function(e){if(!e)return-1;var t=this.getLocalGroupProfile(e);return t&&Lt(t.type)?this._AVChatRoomHandler.getPollingTimerID(e):-1}},{key:\"_canIUseJoinOption\",value:function(e){return function(e){return e===k.GRP_PUBLIC}(e)||At({type:e})}},{key:\"reset\",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._groupAttributesHandler.reset(),this._groupCountersHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),s}(go),si=function(){function e(t){o(this,e),this.userID=\"\",this.avatar=\"\",this.nick=\"\",this.role=\"\",this.joinTime=\"\",this.lastSendMsgTime=\"\",this.nameCard=\"\",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return r(e,[{key:\"_initMember\",value:function(e){this.updateMember(e)}},{key:\"updateMember\",value:function(e){var t=[null,void 0,\"\",0,NaN];e.memberCustomField&&St(this.memberCustomField,e.memberCustomField),mt(this,e,[\"memberCustomField\",\"marks\"],t)}},{key:\"updateRole\",value:function(e){[\"Owner\",\"Admin\",\"Member\"].indexOf(e)<0||(this.role=e)}},{key:\"updateMuteUntil\",value:function(e){dt(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:\"updateNameCard\",value:function(e){dt(e)||(this.nameCard=e)}},{key:\"updateMemberCustomField\",value:function(e){e&&St(this.memberCustomField,e)}}]),e}(),ri=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"GroupMemberModule\",t.groupMemberListMap=new Map,t.getInnerEmitterInstance().on(ya,t._onProfileUpdated,_(t)),t}return r(s,[{key:\"_onProfileUpdated\",value:function(e){for(var t=this,n=e.data,o=function(e){var o=n[e];t.groupMemberListMap.forEach((function(e){e.has(o.userID)&&e.get(o.userID).updateMember({nick:o.nick,avatar:o.avatar})}))},s=0;s<n.length;s++)o(s)}},{key:\"deleteGroupMemberList\",value:function(e){this.groupMemberListMap.delete(e)}},{key:\"getGroupMemberList\",value:function(e){var t=this,n=e.groupID,o=e.offset,s=void 0===o?0:o,r=e.count,a=void 0===r?15:r,i=e.filter,u=void 0===i?void 0:i,c=\"\".concat(this._n,\".\").concat(\"getGroupMemberList\"),l=this.getModule(xn),d=l.hasLocalGroup(n);if(Ve.l(\"\".concat(c,\" groupID:\").concat(n,\" offset:\").concat(s,\" count:\").concat(a,\" hasLocalGroup:\").concat(d)),!d)return _a({memberList:[],offset:0});if(l.getLocalGroupProfile(n).type===k.GRP_AVCHATROOM){if(this.canIUse(B.AVCHATROOM_MBR_LIST))return this._getAVChatRoomMemberList({groupID:n,offset:s,filter:u});this.outputWarning(\"LiveOnlineMember\")}var p=new jr(\"getGroupMemberList\"),g=0,_={groupID:n,limit:a>100?100:a};At({groupID:n})?_.next=\"\".concat(s):(_.offset=s,g=s+a);var h=[];return this.request({protocolName:zs,requestData:_}).then((function(e){var o=e.data,s=o.members,r=o.memberNum,a=o.next,i=void 0===a?void 0:a;if(dt(i)||(g=$t(i)?0:i),!lt(s)||0===s.length)return g=0,Promise.resolve([]);var u=t.getModule(xn);return u.hasLocalGroup(n)&&(u.getLocalGroupProfile(n).memberNum=r),h=t._updateLocalGroupMemberMap(n,s),t.getModule(Fn).getUserProfile({userIDList:s.map((function(e){return e.userID})),tagList:[He.NICK,He.AVATAR]})})).then((function(e){var o=e.data;if(!lt(o)||0===o.length)return _a({memberList:[],offset:g});var r=o.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,r),h.length<a&&(g=0),p.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(n,\" offset:\").concat(s,\" count:\").concat(a)).end(),Ve.l(\"\".concat(c,\" ok.\")),la({memberList:h,offset:g})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];p.setError(e,o,s).end()})),Ve.e(\"\".concat(c,\" failed. error:\"),e),ha(e)}))}},{key:\"_getAVChatRoomMemberList\",value:function(e){var t=this,n=e.groupID,o=e.offset,s=e.filter,r=\"\".concat(this._n,\".\").concat(\"_getAVChatRoomMemberList\"),a=new jr(\"_getAVChatRoomMemberList\");return a.setMessage(\"groupID:\".concat(n,\" offset:\").concat(o,\" filter:\").concat(s)),this.request({protocolName:Xs,requestData:{groupID:n,offset:o,filter:s}}).then((function(e){var o=e.data,s=o.memberList,i=void 0===s?[]:s,u=o.offset,c=void 0===u?0:u;a.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(r,\" ok. member count:\").concat(i.length,\", next request timestamp:\").concat(c));var l=t._updateLocalGroupMemberMap(n,i);return la({memberList:l,offset:c})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(r,\" failed. error:\"),e),ha(e)}))}},{key:\"getGroupMemberProfile\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"getGroupMemberProfile\"),s=new jr(\"getGroupMemberProfile\");s.setMessage(e.userIDList.length>5?\"userIDList.length:\".concat(e.userIDList.length):\"userIDList:\".concat(e.userIDList)),Ve.l(\"\".concat(o,\" groupID:\").concat(e.groupID,\" userIDList:\").concat(e.userIDList.join(\",\"))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var r=e.groupID,a=e.userIDList;return this._getGroupMemberProfileAdvance(t(t({},e),{},{userIDList:a})).then((function(e){var t=e.data.members;return lt(t)&&0!==t.length?(n._updateLocalGroupMemberMap(r,t),n.getModule(Fn).getUserProfile({userIDList:t.map((function(e){return e.userID})),tagList:[He.NICK,He.AVATAR]})):_a([])})).then((function(e){var t=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));n._updateLocalGroupMemberMap(r,t);var o=a.filter((function(e){return n.hasLocalGroupMember(r,e)})).map((function(e){return n.getLocalGroupMemberInfo(r,e)}));return s.setNetworkType(n.getNetworkType()).end(),la({memberList:o})}))}},{key:\"addGroupMember\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"addGroupMember\"),o=e.groupID,s=this.getModule(xn).getLocalGroupProfile(o),r=s.type,a=new jr(\"addGroupMember\");if(a.setMessage(\"groupID:\".concat(o,\" groupType:\").concat(r)),Lt(r)){var i=new da({code:Or.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return a.setError(i,!0,this.getNetworkType()).end(),ha(i)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Ve.l(\"\".concat(n,\" groupID:\").concat(o)),this.request({protocolName:Zs,requestData:e}).then((function(o){var r=o.data.members;Ve.l(\"\".concat(n,\" ok\"));var i=r.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),u=r.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),c=r.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),l=r.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),d=\"groupID:\".concat(e.groupID,\", \")+\"successUserIDList:\".concat(i,\", \")+\"failureUserIDList:\".concat(u,\", \")+\"existedUserIDList:\".concat(c,\", \")+\"overLimitUserIDList:\".concat(l);return a.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===i.length?la({successUserIDList:i,failureUserIDList:u,existedUserIDList:c,overLimitUserIDList:l}):(s.memberCount+=i.length,t._updateConversationGroupProfile(s),la({successUserIDList:i,failureUserIDList:u,existedUserIDList:c,overLimitUserIDList:l,group:s}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"deleteGroupMember\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteGroupMember\"),o=e.groupID,s=e.userIDList,r=this.getModule(xn).getLocalGroupProfile(o);if(dt(r))return ha({code:Or.CANNOT_FIND_GROUP});if(Lt(r.type))return this.canIUse(B.AVCHATROOM_BAN_MBR)?this._banAVChatRoomMember(e):ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var a=new jr(\"deleteGroupMember\"),i=\"groupID:\".concat(o,\" \").concat(s.length>5?\"userIDList.length:\".concat(s.length):\"userIDList:\".concat(s));return a.setMessage(i),Ve.l(\"\".concat(n,\" groupID:\").concat(o,\" userIDList:\"),s),this.request({protocolName:$s,requestData:e}).then((function(){return a.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\")),r.memberCount-=1,t._updateConversationGroupProfile(r),t.deleteLocalGroupMembers(o,s),la({group:r,userIDList:s})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_updateConversationGroupProfile\",value:function(e){this.getModule(Kn).updateConversationGroupProfile([e])}},{key:\"_banAVChatRoomMember\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteGroupMember\"),o=e.groupID,s=e.userIDList,r=\"groupID:\".concat(o,\" \").concat(s.length>5?\"userIDList.length:\".concat(s.length):\"userIDList:\".concat(s)),a=new jr(\"deleteGroupMember\");a.setMessage(r),Ve.l(\"\".concat(n,\" groupID:\").concat(o,\" userIDList:\"),s);var i=this.getModule(xn).getLocalGroupProfile(o);return dt(e.duration)||0===e.duration?ha({code:Or.BAN_DURATION_INVALID}):this.request({protocolName:er,requestData:e}).then((function(){return a.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\")),t.deleteLocalGroupMembers(o,s),la({group:i,userIDList:s})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"setGroupMemberMuteTime\",value:function(e){var t=this,n=e.groupID,o=e.userID,s=e.muteTime,r=\"\".concat(this._n,\".\").concat(\"setGroupMemberMuteTime\");if(o===this.getMyUserID())return ha(new da({code:Or.CANNOT_MUTE_SELF}));Ve.l(\"\".concat(r,\" groupID:\").concat(n,\" userID:\").concat(o));var a=new jr(\"setGroupMemberMuteTime\");return a.setMessage(\"groupID:\".concat(n,\" userID:\").concat(o,\" muteTime:\").concat(s)),this.modifyGroupMemberInfo({groupID:n,userID:o,muteTime:s}).then((function(e){a.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(r,\" ok\"));var o=t.getModule(xn);return la({group:o.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(r,\" failed. error:\"),e),ha(e)}))}},{key:\"setGroupMemberRole\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setGroupMemberRole\"),o=e.groupID,s=e.userID,r=e.role,a=this.getModule(xn).getLocalGroupProfile(o);if(a.selfInfo.role!==k.GRP_MBR_ROLE_OWNER)return ha({code:Or.NOT_OWNER});if([k.GRP_WORK,k.GRP_AVCHATROOM].includes(a.type))return ha({code:Or.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var i=[k.GRP_MBR_ROLE_ADMIN,k.GRP_MBR_ROLE_MEMBER];if(At({groupID:o})&&i.push(k.GRP_MBR_ROLE_CUSTOM),i.indexOf(r)<0)return ha({code:Or.INVALID_MEMBER_ROLE});if(s===this.getMyUserID())return ha({code:Or.CANNOT_SET_SELF_MEMBER_ROLE});var u=new jr(\"setGroupMemberRole\");return u.setMessage(\"groupID:\".concat(o,\" userID:\").concat(s,\" role:\").concat(r)),Ve.l(\"\".concat(n,\" groupID:\").concat(o,\" userID:\").concat(s)),this.modifyGroupMemberInfo({groupID:o,userID:s,role:r}).then((function(e){return u.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\")),la({group:a,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_filterProfanity\",value:function(e,t){var n=this.getModule(uo);if(!n)return!0;var o=n.filterText(t[e],X),s=o.isAllowedToSend,r=o.modifiedText;return!0===s&&(t[e]=r,!0)}},{key:\"setGroupMemberNameCard\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setGroupMemberNameCard\");if(e.nameCard&&!1===this._filterProfanity(\"nameCard\",e))return ha({code:Or.PROFANITY_FOUND});var o=e.groupID,s=e.userID,r=void 0===s?this.getMyUserID():s,a=e.nameCard;Ve.l(\"\".concat(n,\" groupID:\").concat(o,\" userID:\").concat(r));var i=new jr(\"setGroupMemberNameCard\");return i.setMessage(\"groupID:\".concat(o,\" userID:\").concat(r,\" nameCard:\").concat(a)),this.modifyGroupMemberInfo({groupID:o,userID:r,nameCard:a}).then((function(e){Ve.l(\"\".concat(n,\" ok\")),i.setNetworkType(t.getNetworkType()).end();var s=t.getModule(xn).getLocalGroupProfile(o);return r===t.getMyUserID()&&s&&s.setSelfNameCard(a),la({group:s,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"setGroupMemberCustomField\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setGroupMemberCustomField\"),o=e.groupID,s=e.userID,r=void 0===s?this.getMyUserID():s,a=e.memberCustomField;Ve.l(\"\".concat(n,\" groupID:\").concat(o,\" userID:\").concat(r));var i=new jr(\"setGroupMemberCustomField\");return i.setMessage(\"groupID:\".concat(o,\" userID:\").concat(r,\" memberCustomField:\").concat(JSON.stringify(a))),this.modifyGroupMemberInfo({groupID:o,userID:r,memberCustomField:a}).then((function(e){i.setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok\"));var s=t.getModule(xn).getLocalGroupProfile(o);return la({group:s,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"modifyGroupMemberInfo\",value:function(e){var n=this,o=e.groupID,s=e.userID,r=void 0;return Nt(o)&&(o=Wt(r=o)),this.request({protocolName:tr,requestData:t(t({},e),{},{groupID:o,topicID:r})}).then((function(){if(n.hasLocalGroupMember(o,s)){var t=n.getLocalGroupMemberInfo(o,s);return dt(e.muteTime)||t.updateMuteUntil(e.muteTime),dt(e.role)||t.updateRole(e.role),dt(e.nameCard)||t.updateNameCard(e.nameCard),dt(e.memberCustomField)||t.updateMemberCustomField(e.memberCustomField),t}return n.getGroupMemberProfile({groupID:o,userIDList:[s]}).then((function(e){return m(e.data.memberList,1)[0]}))}))}},{key:\"markGroupMemberList\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"markGroupMemberList\"),o=e.groupID,s=e.markType,r=e.enableMark,a=e.userIDList,i=void 0===a?[]:a,u=\"groupID:\".concat(o,\" markType:\").concat(s,\" enableMark:\").concat(r,\" userIDList count: \").concat(i.length);Ve.l(\"\".concat(n,\" \").concat(u));var c=2,l=[];!0===r&&(c=1);var d=v(i);i.length>500&&(d=i.slice(0,500),Ve.w(\"\".concat(n,\" \").concat(Xt(500)))),d.forEach((function(e){l.push({userID:e,markType:[s]})})),d=null;var p=new jr(\"markGroupMemberList\");return p.setMessage(\"\".concat(u)),this.request({protocolName:nr,requestData:{groupID:o,operationType:c,memberList:l}}).then((function(e){var o=e.data.memberList,s=void 0===o?[]:o,r=[],a=[];s.length===i.length?r.push.apply(r,v(i)):(s.forEach((function(e){r.push(e.userID)})),i.forEach((function(e){r.includes(e)||a.push(e)})));var u=\"success count:\".concat(r.length,\" fail count:\").concat(a.length);return p.setNetworkType(t.getNetworkType()).setMessage(u).end(),Ve.l(\"\".concat(n,\" ok. \").concat(u)),la({successUserIDList:r,failureUserIDList:a})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];p.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_getGroupMemberProfileAdvance\",value:function(e){return this.request({protocolName:Qs,requestData:t(t({},e),{},{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:[\"Role\",\"JoinTime\",\"NameCard\",\"ShutUpUntil\"]})})}},{key:\"_updateLocalGroupMemberMap\",value:function(e,t){var n=this;return lt(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new si(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:\"deleteLocalGroupMembers\",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:\"getLocalGroupMemberInfo\",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:\"setLocalGroupMember\",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:\"getLocalGroupMemberList\",value:function(e){return this.groupMemberListMap.get(e)}},{key:\"hasLocalGroupMember\",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:\"hasLocalGroupMemberMap\",value:function(e){return this.groupMemberListMap.has(e)}},{key:\"reset\",value:function(){this.groupMemberListMap.clear()}}]),s}(go),ai=[\"topicID\",\"topicName\",\"avatar\",\"introduction\",\"notification\",\"unreadCount\",\"muteAllMembers\",\"customData\",\"groupAtInfoList\",\"nextMessageSeq\",\"selfInfo\"],ii=function(e,t){return $t(e)?{lastTime:0,lastSequence:0,fromAccount:\"\",payload:null,type:\"\",messageForShow:\"\",nick:\"\",version:0,cloudCustomData:\"\",isRevoked:!1,revoker:null}:{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||\"\",payload:e.payload||null,type:e.type||\"\",messageForShow:Yt(e.type,e.payload,t),nick:e.nick||\"\",version:e.version||0,cloudCustomData:e.cloudCustomData||\"\",isRevoked:e.isRevoked||!1,revoker:e.revoker||null}},ui=function(){function e(t,n){o(this,e),this.topicID=\"\",this.topicName=\"\",this.avatar=\"\",this.introduction=\"\",this.notification=\"\",this.unreadCount=0,this.muteAllMembers=!1,this.customData=\"\",this.groupAtInfoList=[],this.nextMessageSeq=0,this.lastMessage=ii(t.lastMessage,n),this.selfInfo={muteTime:0,readedSequence:0,messageRemindType:\"\",excludedUnreadSequenceList:void 0},this._initTopic(t)}return r(e,[{key:\"_initTopic\",value:function(e){for(var t in e)ai.indexOf(t)<0||(\"selfInfo\"===t?this.updateSelfInfo(e[t]):this[t]=\"muteAllMembers\"===t?1===e[t]:e[t])}},{key:\"updateUnreadCount\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.unreadCount=e}},{key:\"updateNextMessageSeq\",value:function(e){this.nextMessageSeq=e}},{key:\"updateLastMessage\",value:function(e){this.lastMessage=ii(e)}},{key:\"updateGroupAtInfoList\",value:function(e){this.groupAtInfoList=JSON.parse(JSON.stringify(e))}},{key:\"updateTopic\",value:function(e){dt(e.selfInfo)||this.updateSelfInfo(e.selfInfo),dt(e.muteAllMembers)||(this.muteAllMembers=1===e.muteAllMembers),mt(this,e,[\"groupID\",\"lastMessageTime\",\"selfInfo\",\"muteAllMembers\",\"lastMsg\"])}},{key:\"updateSelfInfo\",value:function(e){return 0!==mt(this.selfInfo,e,[],[\"\"])}},{key:\"reduceUnreadCount\",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:\"isLastMessageRevoked\",value:function(e){return e.sequence===this.lastMessage.lastSequence}},{key:\"setLastMessageRevoked\",value:function(e){this.lastMessage.isRevoked=e}},{key:\"setLastMessageRevoker\",value:function(e){this.lastMessage.revoker=e}}]),e}(),ci=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"TopicModule\",t._topicMap=new Map,t._getTopicTimeMap=new Map,t.TOPIC_CACHE_TIME=300,t.TOPIC_LAST_ACTIVE_TIME=3600,t.getInnerEmitterInstance().on(Ma,t._onCloudConfigUpdated,_(t)),t}return r(s,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"topic_cache_time\"),t=this.getCloudConfig(\"topic_last_active_time\");dt(e)||(this.TOPIC_CACHE_TIME=Number(e)),dt(t)||(this.TOPIC_LAST_ACTIVE_TIME=Number(t))}},{key:\"onTopicCreated\",value:function(e){var t=e.groupID;this.resetGetTopicTime(t),this.emitOuterEvent(E.TOPIC_CREATED,e)}},{key:\"onTopicDeleted\",value:function(e){var t=this,n=e.groupID,o=e.topicIDList;(void 0===o?[]:o).forEach((function(e){t._deleteLocalTopic(n,e)})),this.emitOuterEvent(E.TOPIC_DELETED,e)}},{key:\"onTopicMessageRemindTypeUpdated\",value:function(e){var t=e.groupID,n=e.topicID,o=e.messageRemindType,s=this.getLocalTopic(t,n);if(s){var r=s.updateSelfInfo({messageRemindType:o});r&&this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:t,topic:s}),Ve.d(\"\".concat(this._n,\".onTopicMessageRemindTypeUpdated topicID:\").concat(n)+\" messageRemindType:\".concat(o,\" isTopicUpdated:\").concat(r))}}},{key:\"onTopicProfileUpdated\",value:function(e){var t=e.groupID,n=e.topicID,o=this.getLocalTopic(t,n);o&&(o.updateTopic(e),this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:t,topic:o}))}},{key:\"onConversationProxy\",value:function(e){var t=e.topicID,n=e.unreadCount,o=e.groupAtInfoList,s=Wt(t),r=this.getLocalTopic(s,t),a=!1;r&&(dt(n)||r.unreadCount===n||(r.updateUnreadCount(n),a=!0),dt(o)||(r.updateGroupAtInfoList(o),a=!0)),a&&this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:s,topic:r})}},{key:\"onMessageSent\",value:function(e){var t=e.groupID,n=e.topicID,o=e.lastMessage,s=this.getLocalTopic(t,n);s&&(s.nextMessageSeq+=1,s.updateLastMessage(o),this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:t,topic:s}))}},{key:\"onMessageModified\",value:function(e){var t=e.to,n=e.time,o=e.sequence,s=e.elements,r=e.cloudCustomData,a=e.messageVersion,i=Wt(t),u=this.getLocalTopic(i,t);if(u){var c=u.lastMessage;Ve.d(\"\".concat(this._n,\".onMessageModified topicID:\").concat(t,\" lastMessage:\"),JSON.stringify(c),\"options:\",JSON.stringify(e)),c&&(null===c.payload||c.lastTime===n&&c.lastSequence===o&&c.version!==a)&&(c.type=s[0].type,c.payload=s[0].content,c.messageForShow=Yt(c.type,c.payload,this.isIntl()),c.cloudCustomData=r,c.version=a,c.lastSequence=o,c.lastTime=n,this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:i,topic:u}))}}},{key:\"onMessageRevoked\",value:function(e){var t=this;if(0!==e.length){var n=null,o=null,s=!1;e.forEach((function(e){var r=e.to;o=Wt(r),(n=t.getLocalTopic(o,r))&&(n.reduceUnreadCount()&&(s=!0),n.isLastMessageRevoked(e)&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),s=!0))})),s&&this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:o,topic:n})}}},{key:\"isLastMessageRevoked\",value:function(e){var t=e.topicID,n=e.sequence,o=Wt(t),s=this.getLocalTopic(o,t),r=!1;return s&&(r=s.isLastMessageRevoked({sequence:n})),r}},{key:\"getJoinedCommunityList\",value:function(){return this.getModule(xn).getGroupList({isGroupWithTopicOnly:!0}).then((function(e){var t=e.data.groupList;return la({groupList:void 0===t?[]:t})})).catch((function(e){return ha(e)}))}},{key:\"createTopicInCommunity\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"createTopicInCommunity\"),s=e.topicID;if(!dt(s)&&!Nt(s))return ha({code:Or.ILLEGAL_TOPIC_ID});if(e.topicName&&!1===this._filterProfanity(\"topicName\",e))return ha({code:Or.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return ha({code:Or.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return ha({code:Or.PROFANITY_FOUND});var r=new jr(\"createTopicInCommunity\");return this.request({protocolName:Mr,requestData:t({},e)}).then((function(s){var a=s.data.topicID;return r.setMessage(\"topicID:\".concat(a)).setNetworkType(n.getNetworkType()).end(),Ve.l(\"\".concat(o,\" ok\")),n._updateTopicMap([t(t({},e),{},{topicID:a})]),la({topicID:a})})).catch((function(e){return n.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}},{key:\"deleteTopicFromCommunity\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteTopicFromCommunity\"),o=e.groupID,s=e.topicIDList,r=void 0===s?[]:s,a=new jr(\"deleteTopicFromCommunity\");return a.setMessage(\"groupID:\".concat(o,\" topicIDList:\").concat(r)),this.request({protocolName:yr,requestData:{groupID:o,topicIDList:r}}).then((function(e){var n=e.data.resultList,s=[],r=[];(void 0===n?[]:n).forEach((function(e){var t=e.topicID,n=e.errorCode,o=e.errorInfo;0===n?s.push({topicID:t}):r.push({topicID:t,code:n,message:o})}));var i=\"success count:\".concat(s.length,\", fail count:\").concat(r.length);return a.setMoreMessage(\"\".concat(i)).setNetworkType(t.getNetworkType()).end(),Ve.l(\"\".concat(i)),s.forEach((function(e){t._deleteLocalTopic(o,e.topicID)})),la({successTopicList:s,failureTopicList:r})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"updateTopicProfile\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"updateTopicProfile\");if(Ve.l(\"\".concat(o,\" options:\"),e),e.topicName&&!1===this._filterProfanity(\"topicName\",e))return ha({code:Or.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return ha({code:Or.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return ha({code:Or.PROFANITY_FOUND});var s=new jr(\"updateTopicProfile\");return s.setMessage(\"groupID:\".concat(e.groupID,\" topicID:\").concat(e.topicID)),dt(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?\"On\":\"Off\"),this.request({protocolName:Ir,requestData:t({},e)}).then((function(){return s.setNetworkType(n.getNetworkType()).end(),Ve.l(\"\".concat(o,\" ok\")),n._updateTopicMap([e]),la({topic:n.getLocalTopic(e.groupID,e.topicID)})})).catch((function(e){return n.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];s.setError(e,o,r).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}},{key:\"getTopicList\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"getTopicList\"),s=e.groupID,r=e.topicIDList,a=void 0===r?[]:r,i=0===a.length,u=new jr(\"getTopicList\");if(u.setMessage(\"groupID:\".concat(s)),this._getTopicTimeMap.has(s)){var c=this._getTopicTimeMap.get(s),l=c.isGetAll,d=c.time;if((l||!l&&!i)&&Date.now()-d<1e3*this.TOPIC_CACHE_TIME){var p=this._getLocalTopicList(s,a);if(i||p.length===a.length)return u.setNetworkType(this.getNetworkType()).setMoreMessage(\"from cache, topic count:\".concat(p.length)).end(),Ve.l(\"\".concat(o,\" groupID:\").concat(s,\" from cache, topic count:\").concat(p.length)),_a({successTopicList:p,failureTopicList:[]})}}return this.request({protocolName:Cr,requestData:{groupID:s,topicIDList:a}}).then((function(e){var r=e.data.topicInfoList,a=[],c=[],l=[];(void 0===r?[]:r).forEach((function(e){var n=e.topic,o=e.selfInfo,s=e.errorCode,r=e.errorInfo,i=n.topicID;0===s?(a.push(t(t({},n),{},{selfInfo:o})),c.push(i)):l.push({topicID:i,code:s,message:r})})),n._updateTopicMap(a),n._handleTopicAtInfo(a);var d=\"success count:\".concat(c.length,\", fail count:\").concat(l.length);u.setNetworkType(n.getNetworkType()).setMoreMessage(\"\".concat(d)).end(),Ve.l(\"\".concat(o,\" groupID:\").concat(s,\" from remote, \").concat(d));var p=[];return $t(c)||(n._getTopicTimeMap.set(s,{time:Date.now(),isGetAll:i}),p=n._getLocalTopicList(s,c)),la({successTopicList:p,failureTopicList:l})})).catch((function(e){return n.probeNetwork(e).then((function(t){var n=m(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}},{key:\"hasLocalTopic\",value:function(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t)}},{key:\"getLocalTopic\",value:function(e,t){var n=null;return this._topicMap.has(e)&&(n=this._topicMap.get(e).get(t)),n}},{key:\"_getLocalTopicList\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this._topicMap.get(e),o=[];return n&&(o=v(n.values())),0===t.length?o:o.filter((function(e){return t.includes(e.topicID)}))}},{key:\"_deleteLocalTopic\",value:function(e,t){this._topicMap.has(e)&&(this._topicMap.get(e).delete(t),Ve.l(\"\".concat(this._n,\"._deleteLocalTopic groupID:\").concat(e,\" topicID:\").concat(t)))}},{key:\"_updateTopicMap\",value:function(e){var t=this,n=[];(e.forEach((function(e){var o=e.groupID,s=e.topicID,r=null;t._topicMap.has(o)||t._topicMap.set(o,new Map),t._topicMap.get(o).has(s)?(r=t._topicMap.get(o).get(s)).updateTopic(e):(t._getTopicLastMessage(e),r=new ui(e,t.isIntl()),t._topicMap.get(o).set(s,r));var a=t._computeUnreadCount(r);r.updateUnreadCount(a),n.push({conversationID:\"\".concat(k.CONV_GROUP).concat(s),type:k.CONV_TOPIC,unreadCount:a})})),n.length>0)&&this.getModule(Kn).updateTopicConversation(n)}},{key:\"resetGetTopicTime\",value:function(e){var t=this;dt(e)?v(this._getTopicTimeMap.keys()).forEach((function(e){t._getTopicTimeMap.set(e,0)})):this._getTopicTimeMap.set(e,0)}},{key:\"getTopicListOnReconnected\",value:function(){var e=this,t=v(this._topicMap.keys()),n=[];t.forEach((function(t){var o=[];e._getLocalTopicList(t).forEach((function(t){var n=t.lastMessage.lastTime,s=void 0===n?0:n;Date.now()-1e3*s<1e3*e.TOPIC_LAST_ACTIVE_TIME&&o.push(t.topicID)})),o.length>0&&n.push({groupID:t,topicIDList:o})})),Ve.l(\"\".concat(this._n,\".getTopicListOnReconnected. active community count:\").concat(n.length)),this._relayGetTopicList(n)}},{key:\"_relayGetTopicList\",value:function(e){var t=this;if(0!==e.length){var n=e.shift(),o=n.topicIDList.length>5?\"topicIDList.length:\".concat(n.topicIDList.length):\"topicIDList:\".concat(n.topicIDList),s=new jr(\"relayGetTopicList\");s.setMessage(o),Ve.l(\"\".concat(this._n,\"._relayGetTopicList. \").concat(o)),this.getTopicList(n).then((function(){s.setNetworkType(t.getNetworkType()).end(),t._relayGetTopicList(e)})).catch((function(n){t.probeNetwork().then((function(e){var t=m(e,2),o=t[0],r=t[1];s.setError(n,o,r).end()})),t._relayGetTopicList(e)}))}}},{key:\"_handleTopicAtInfo\",value:function(e){var n=this;0!==e.length&&e.forEach((function(e){var o=e.groupID,s=e.topicID,r=e.groupAtInfoList,a=[];dt(r)||(r.forEach((function(e){a.push(t(t({},e),{},{groupID:o,topicID:s}))})),n.getModule(Kn).onNewGroupAtTips({dataList:a}))}))}},{key:\"_getTopicLastMessage\",value:function(e){if(!dt(e.lastMsg)){var t={time:e.lastMsg.time,sequence:e.lastMsg.sequence,from:e.lastMsg.from,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:\"\",nick:e.lastMsg.nick,version:e.lastMsg.messageVersion,cloudCustomData:e.lastMsg.cloudCustomData,isRevoked:2===e.lastMsg.isPlaceMessage,revoker:$t(e.lastMsg.revokerInfo)?null:e.lastMsg.revokerInfo.revoker};e.lastMessage=t}}},{key:\"deleteTopicListInCommunity\",value:function(e){var t=this,n=this._getLocalTopicList(e),o=this.getModule(Kn);n.forEach((function(n){var s=n.topicID;t._deleteLocalTopic(e,s),t._getTopicTimeMap.delete(e),o.deleteLocalConversation(\"\".concat(k.CONV_GROUP).concat(s))}))}},{key:\"_computeUnreadCount\",value:function(e){var t=e.selfInfo,n=t.excludedUnreadSequenceList,o=t.readedSequence,s=e.nextMessageSeq-e.selfInfo.readedSequence-1;if(lt(n)){var r=0;n.forEach((function(t){t>=o&&t<=e.nextMessageSeq-1&&(r+=1)})),r>=1&&(s-=r)}return s<0?0:s}},{key:\"_filterProfanity\",value:function(e,t){var n=this.getModule(uo);if(!n)return!0;var o=n.filterText(t[e],z),s=o.isAllowedToSend,r=o.modifiedText;return!0===s&&(t[e]=r,!0)}},{key:\"updateLastMessage\",value:function(e,t){var n=Wt(e),o=this.getLocalTopic(n,e);if(o){var s=t.sequence+1;o.updateNextMessageSeq(s),o.updateLastMessage(t),this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:n,topic:o})}}},{key:\"getMessageExtensions\",value:function(e,t){Ve.l(\"\".concat(this._n,\".getMessageExtensions startSequence:\").concat(t));var n=Wt(e.to);return this.request({protocolName:Ws,requestData:{groupID:n,topicID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:\"modifyMessageExtensions\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Ve.l(\"\".concat(this._n,\".modifyMessageExtensions operateType:\").concat(n));var o=Wt(e.to);return this.request({protocolName:Ks,requestData:{groupID:o,topicID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._topicMap.clear(),this._getTopicTimeMap.clear(),this.TOPIC_CACHE_TIME=300,this.TOPIC_LAST_ACTIVE_TIME=3600}}]),s}(go),li=function(){function e(t){o(this,e),this._userModule=t,this._n=\"ProfileHandler\",this.TAG=\"profile\",this.accountProfileMap=new Map,this.expirationTime=864e5}return r(e,[{key:\"setExpirationTime\",value:function(e){this.expirationTime=e}},{key:\"getUserProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getUserProfile\"),o=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),o.length>100&&(Ve.w(\"\".concat(n,\" \").concat(Xt(100))),o.length=100);for(var s,r=[],a=[],i=0,u=o.length;i<u;i++)s=o[i],this._userModule.isMyFriend(s)&&this._contains(s)?a.push(this._getProfileFromMap(s)):r.push(s);if(0===r.length)return _a(a);e.toAccount=r;var c=e.bFromGetMyProfile||!1,l=[];e.toAccount.forEach((function(e){l.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=l;var d=new jr(\"getUserProfile\");return d.setMessage(o.length>5?\"userIDList.length:\".concat(o.length):\"userIDList:\".concat(o)),this._userModule.request({protocolName:Co,requestData:e}).then((function(e){d.setNetworkType(t._userModule.getNetworkType()).end(),Ve.i(\"\".concat(n,\" ok\"));var o=t._handleResponse(e).concat(a);return la(c?o[0]:o)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];d.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"getMyProfile\",value:function(){var e=this._userModule.getMyAccount(),t=\"\".concat(this._n,\".getMyProfile\");if(Ve.l(\"\".concat(t,\" myAccount:\").concat(e)),this._fill(),this._contains(e)){var n=this._getProfileFromMap(e);return Ve.d(\"\".concat(t,\" from cache, myProfile:\").concat(JSON.stringify(n))),_a(n)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:\"_handleResponse\",value:function(e){var t=e.data.userProfileItem;if(!lt(t))return[];for(var n=[],o=Date.now(),s=0,r=t.length;s<r;s++){var a=t[s],i=a.to,u=a.profileItem;if(\"@TLS#NOT_FOUND\"!==i&&\"\"!==i){var c=this._update(i,this._getLatestProfileFromResponse(i,u)).latestProfile;n.push(c)}}return Ve.l(\"\".concat(this._n,\"._handleResponse cost \").concat(Date.now()-o,\" ms\")),n}},{key:\"_getLatestProfileFromResponse\",value:function(e,t){var n={userID:e,profileCustomField:[]};if(!$t(t))for(var o=0,s=t.length;o<s;o++)if(t[o].tag.indexOf(\"Tag_Profile_Custom\")>-1)n.profileCustomField.push({key:t[o].tag,value:t[o].value});else switch(t[o].tag){case He.NICK:n.nick=t[o].value;break;case He.GENDER:n.gender=t[o].value;break;case He.BIRTHDAY:n.birthday=t[o].value;break;case He.LOCATION:n.location=t[o].value;break;case He.SELFSIGNATURE:n.selfSignature=t[o].value;break;case He.ALLOWTYPE:n.allowType=t[o].value;break;case He.LANGUAGE:n.language=t[o].value;break;case He.AVATAR:n.avatar=t[o].value;break;case He.MESSAGESETTINGS:n.messageSettings=t[o].value;break;case He.ADMINFORBIDTYPE:n.adminForbidType=t[o].value;break;case He.LEVEL:n.level=t[o].value;break;case He.ROLE:n.role=t[o].value;break;default:Ve.w(\"\".concat(this._n,\"._getLatestProfileFromResponse unknown tag:\"),t[o].tag,t[o].value)}return n}},{key:\"updateMyProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"updateMyProfile\");if(e.nick&&!1===this._userModule.filterProfanity(\"nick\",e))return ha({code:Or.PROFANITY_FOUND});if(e.selfSignature&&!1===this._userModule.filterProfanity(\"selfSignature\",e))return ha({code:Or.PROFANITY_FOUND});var o=new jr(\"updateMyProfile\");o.setMessage(JSON.stringify(e));var s=(new La).validate(e);if(!s.valid)return o.setCode(Or.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage(\"info:\".concat(s.tips)).setNetworkType(this._userModule.getNetworkType()).end(),Ve.e(\"\".concat(n,\" info:\").concat(s.tips)),ha({code:Or.UPDATE_PROFILE_INVALID_PARAM});var r=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(\"profileCustomField\"===a?e.profileCustomField.forEach((function(e){r.push({tag:e.key,value:e.value})})):r.push({tag:He[a.toUpperCase()],value:e[a]}));if(0===r.length){var i=new da({code:Or.UPDATE_PROFILE_NO_KEY});return o.setError(i,!0,this._userModule.getNetworkType()).end(),Ve.e(\"\".concat(n,\" failed. error:\"),i),ha(i)}var u=this._userModule.getMyAccount();return this._userModule.request({protocolName:To,requestData:{fromAccount:u,profileItem:r}}).then((function(s){o.setNetworkType(t._userModule.getNetworkType()).end(),Ve.i(\"\".concat(n,\" ok\"));var r=t._update(u,e),a=r.isProfileUpdated,i=r.latestProfile;return!0===a&&t._userModule.emitOuterEvent(E.PROFILE_UPDATED,[i]),_a(i)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"onProfileModified\",value:function(e){var t=e.dataList;if(!$t(t)){var n,o=t.length;Ve.d(\"\".concat(this._n,\".onProfileModified count:\").concat(o,\" dataList:\"),e.dataList);for(var s=[],r=0;r<o;r++){n=t[r].userID;var a=this._update(n,this._getLatestProfileFromResponse(n,t[r].profileList)),i=a.isProfileUpdated,u=a.latestProfile;!0===i&&s.push(u)}s.length>0&&(this._userModule.emitInnerEvent(ya,s),this._userModule.emitOuterEvent(E.PROFILE_UPDATED,s))}}},{key:\"_fill\",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,o=e.length;n<o;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Ve.l(\"\".concat(this._n,\"._fill from cache, size:\").concat(this.accountProfileMap.size))}}},{key:\"_update\",value:function(e,t){var n,o=!1,s=Date.now();this._contains(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&!0===St(n.profileCustomField,t.profileCustomField)&&(n.lastUpdatedTime=s,o=!0),mt(n,t,[\"profileCustomField\"])>0&&(n.lastUpdatedTime=s,o=!0)):(n=new La(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=s,o=!0,this.accountProfileMap.set(e,n)));return this._flush(e===this._userModule.getMyAccount()),Ve.l(\"\".concat(this._n,\"._update account:\").concat(e,\" isProfileUpdated:\").concat(o)),{isProfileUpdated:o,latestProfile:n}}},{key:\"_flush\",value:function(e){var t=v(this.accountProfileMap.values()),n=this._userModule.getStorageModule();Ve.d(\"\".concat(this._n,\"._flush length:\").concat(t.length,\" flushAtOnce:\").concat(e)),n.setItem(this.TAG,t,e)}},{key:\"_contains\",value:function(e){return this.accountProfileMap.has(e)}},{key:\"_getProfileFromMap\",value:function(e){return this.accountProfileMap.get(e)}},{key:\"_getCachedProfiles\",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return $t(e)?[]:e}},{key:\"onConversationsProfileUpdated\",value:function(e){for(var t,n,o,s=[],r=0,a=e.length;r<a;r++)n=(t=e[r]).userID,this._userModule.isMyFriend(n)&&(this._contains(n)?(o=this._getProfileFromMap(n),mt(o,t)>0&&s.push(n)):s.push(t.userID));0!==s.length&&(Ve.i(\"\".concat(this._n,\".onConversationsProfileUpdated toAccountList:\").concat(s)),this.getUserProfile({userIDList:s}))}},{key:\"getNickAndAvatarByUserID\",value:function(e){if(this._contains(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:\"\",avatar:\"\"}}},{key:\"reset\",value:function(){this._flush(!0),this.accountProfileMap.clear()}}]),e}(),di=r((function e(t){o(this,e),$t||(this.userID=t.userID||\"\",this.timeStamp=t.timeStamp||0)})),pi=function(){function e(t){o(this,e),this._userModule=t,this._n=\"BlacklistHandler\",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return r(e,[{key:\"getLocalBlacklist\",value:function(){return v(this._blacklistMap.keys())}},{key:\"getBlacklist\",value:function(){var e=this,t=\"\".concat(this._n,\".getBlacklist\"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},o=new jr(\"getBlacklist\");return this._userModule.request({protocolName:Do,requestData:n}).then((function(n){var s=n.data,r=s.blackListItem,a=s.currentSequence,i=$t(r)?0:r.length;o.setNetworkType(e._userModule.getNetworkType()).setMessage(\"count:\".concat(i)).end(),Ve.i(\"\".concat(t,\" ok\")),e.currentSequence=a,e._handleResponse(r,!0),e._userModule.emitOuterEvent(E.BLACKLIST_UPDATED,v(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];o.setError(n,s,r).end()})),Ve.e(\"\".concat(t,\" failed. error:\"),n),ha(n)}))}},{key:\"addBlacklist\",value:function(e){var t=this,n=new jr(\"addToBlacklist\"),o=\"\".concat(this._n,\".addBlacklist\"),s=this._userModule.getMyAccount();if(1===e.userIDList.length&&e.userIDList[0]===s){var r=Or.CANNOT_ADD_SELF_TO_BLACKLIST,a=this._userModule.getErrorMessage(r);n.setCode(r).setMessage(a).setNetworkType(this._userModule.getNetworkType()).end();var i=new da({code:r});return Ve.e(\"\".concat(o,\" failed. error:\"),i),ha(i)}return e.userIDList.includes(s)&&(e.userIDList=e.userIDList.filter((function(e){return e!==s}))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Eo,requestData:e}).then((function(s){return n.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?\"userIDList.length:\".concat(e.userIDList.length):\"userIDList:\".concat(e.userIDList)).end(),Ve.i(\"\".concat(o,\" ok\")),t._handleResponse(s.resultItem,!0),la(v(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var o=m(t,2),s=o[0],r=o[1];n.setError(e,s,r).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}},{key:\"_handleResponse\",value:function(e,t){if(!$t(e))for(var n,o,s,r=0,a=e.length;r<a;r++)o=e[r].to,s=e[r].resultCode,(dt(s)||0===s)&&(t?((n=this._blacklistMap.has(o)?this._blacklistMap.get(o):new di).userID=o,!$t(e[r].addBlackTimeStamp)&&(n.timeStamp=e[r].addBlackTimeStamp),this._blacklistMap.set(o,n)):this._blacklistMap.has(o)&&(n=this._blacklistMap.get(o),this._blacklistMap.delete(o)));Ve.l(\"\".concat(this._n,\"._handleResponse total:\").concat(this._blacklistMap.size,\" bAdd:\").concat(t))}},{key:\"deleteBlacklist\",value:function(e){var t=this,n=\"\".concat(this._n,\".deleteBlacklist\"),o=new jr(\"removeFromBlacklist\");return e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:ko,requestData:e}).then((function(s){return o.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?\"userIDList.length:\".concat(e.userIDList.length):\"userIDList:\".concat(e.userIDList)).end(),Ve.i(\"\".concat(n,\" ok\")),t._handleResponse(s.data.resultItem,!1),la(v(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"onAccountDeleted\",value:function(e){for(var t,n=[],o=0,s=e.length;o<s;o++)t=e[o],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(Ve.l(\"\".concat(this._n,\".onAccountDeleted count:\").concat(n.length,\" userIDList:\"),n),this._userModule.emitOuterEvent(E.BLACKLIST_UPDATED,v(this._blacklistMap.keys())))}},{key:\"onAccountAdded\",value:function(e){for(var t,n=[],o=0,s=e.length;o<s;o++)t=e[o],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new di({userID:t})),n.push(t));n.length>0&&(Ve.l(\"\".concat(this._n,\".onAccountAdded count:\").concat(n.length,\" userIDList:\"),n),this._userModule.emitOuterEvent(E.BLACKLIST_UPDATED,v(this._blacklistMap.keys())))}},{key:\"reset\",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),gi=function(e){var t=String(e).replace(/[=]+$/,\"\"),n=\"\";if(t.length%4==1)return\"\";for(var o,s,r=0,a=0;s=t.charAt(a++);~s&&(o=r%4?64*o+s:s,r++%4)?n+=String.fromCharCode(255&o>>(-2*r&6)):0)s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\".indexOf(s);try{return decodeURIComponent(escape(n))}catch(i){return\"\"}},_i=function(){function e(t){o(this,e),this._userModule=t,this._n=\"UserStatusHandler\",this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100,this._userModule.getInnerEmitterInstance().on(Ma,this._onCloudConfigUpdated,this)}return r(e,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this._userModule.getCloudConfig(\"status_query_count\"),t=this._userModule.getCloudConfig(\"status_sub_count\"),n=this._userModule.getCloudConfig(\"status_unsub_count\");Ve.l(\"\".concat(this._n,\"._onCloudConfigUpdated statusQueryCount:\").concat(e,\" statusSubscribeCount:\").concat(t)+\" statusUnsubscribeCount:\".concat(n)),dt(e)||(this.MAX_QUERY_USER_COUNT=parseInt(e,10)),dt(e)||(this.MAX_SUBSCRIBE_USER_COUNT=parseInt(t,10)),dt(e)||(this.MAX_UNSUBSCRIBE_USER_COUNT=parseInt(n,10))}},{key:\"onUserStatusUpdated\",value:function(e){var t=e.dataList,n=this._userModule.getMyUserID(),o=this._userModule.getModule(Wn),s=t.map((function(e){var t=e.to,s=e.statusType,r=e.customStatus,a=gi(r);return t===n&&o.setCustomStatus(a),{userID:t,statusType:s,customStatus:a}}));this._userModule.emitOuterEvent(E.USER_STATUS_UPDATED,s)}},{key:\"setSelfStatus\",value:function(e){var t=this,n=\"\".concat(this._n,\".setSelfStatus\");if(!1===this._userModule.filterProfanity(\"customStatus\",e))return ha({code:Or.PROFANITY_FOUND});var o=new jr(\"setSelfStatus\"),s=e.customStatus;return this._userModule.request({protocolName:Tr,requestData:{customStatus:s}}).then((function(e){return o.setNetworkType(t._userModule.getNetworkType()).setMessage(\"customStatus:\".concat(s)).end(),Ve.l(\"\".concat(n,\" ok. customStatus:\").concat(s)),t._userModule.getModule(Wn).setCustomStatus(s),la({userID:t._userModule.getMyUserID(),statusType:1,customStatus:s})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(e,s,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"getUserStatus\",value:function(e){var t=this,n=\"\".concat(this._n,\".getUserStatus\"),o=e.userIDList,s=void 0===o?[]:o,r=this._userModule.getMyUserID(),a=v(s),i=void 0,u=a.indexOf(r);if(u>-1){a.splice(u,1);var c=this._userModule.getModule(Wn).getCustomStatus();i={userID:r,statusType:1,customStatus:c}}if(0===a.length)return _a({successUserList:[i],failureUserList:[]});if(!this._userModule.canIUse(B.USER_STATUS))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});a.length>this.MAX_QUERY_USER_COUNT&&(Ve.w(\"\".concat(n,\" \").concat(Xt(this.MAX_QUERY_USER_COUNT))),a=s.slice(0,this.MAX_QUERY_USER_COUNT));var l=new jr(\"getUserStatus\");return this._userModule.request({protocolName:Dr,requestData:{userIDList:a}}).then((function(e){var o=e.data,r=o.successUserList,a=void 0===r?[]:r,u=o.failureUserList,c=void 0===u?[]:u,d=a.map((function(e){var t=e.userID,n=e.statusType,o=e.customStatus;return{userID:t,statusType:n,customStatus:gi(o)}})),p=c.map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode,s=e.errorInfo;return{userID:$t(n)?t:n,code:o,message:s}}));dt(i)||d.unshift(i);var g=\"userID count:\".concat(s.length,\", success count:\").concat(d.length,\", fail count:\").concat(p.length);return l.setNetworkType(t._userModule.getNetworkType()).setMessage(\"\".concat(g)).end(),Ve.l(\"\".concat(n,\" ok. \").concat(g,\".\")),la({successUserList:d,failureUserList:p})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];l.setMessage(\"userID count:\".concat(s.length)).setError(e,o,r).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"subscribeUserStatus\",value:function(e){var t=this;if(!this._userModule.canIUse(B.USER_STATUS))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".subscribeUserStatus\"),o=e.userIDList,s=void 0===o?[]:o,r=v(s);r.length>this.MAX_SUBSCRIBE_USER_COUNT&&(Ve.w(\"\".concat(n,\" \").concat(Xt(this.MAX_SUBSCRIBE_USER_COUNT))),r=s.slice(0,this.MAX_SUBSCRIBE_USER_COUNT));var a=new jr(\"subscribeUserStatus\"),i=\"userID count:\".concat(s.length);return Ve.l(\"\".concat(n,\" \").concat(i)),this._userModule.request({protocolName:Er,requestData:{userIDList:r}}).then((function(e){var o=e.data.failureUserList,s=(void 0===o?[]:o).map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode,s=e.errorInfo;return{userID:$t(n)?t:n,code:o,message:s}}));return a.setNetworkType(t._userModule.getNetworkType()).setMessage(\"\".concat(i,\" fail count:\").concat(s.length)).end(),Ve.l(\"\".concat(n,\" ok. fail count:\").concat(s.length,\".\")),la({failureUserList:s})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setMessage(\"\".concat(i)).setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"unsubscribeUserStatus\",value:function(e){var t=this;if(!this._userModule.canIUse(B.USER_STATUS))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".unsubscribeUserStatus\"),o=(e||{}).userIDList,s=void 0===o?[]:o,r=v(s);s.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(Ve.w(\"\".concat(n,\" \").concat(Xt(this.MAX_UNSUBSCRIBE_USER_COUNT))),r=s.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT));var a=new jr(\"unsubscribeUserStatus\"),i=\"userID count:\".concat(s.length);Ve.l(\"\".concat(n,\" \").concat(i));var u={userIDList:r};return 0===r.length&&(u.userIDList=void 0,u.unsubscribeAll=1),this._userModule.request({protocolName:kr,requestData:u}).then((function(e){var o=e.data.failureUserList,s=(void 0===o?[]:o).map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode,s=e.errorInfo;return{userID:$t(n)?t:n,code:o,message:s}}));return a.setNetworkType(t._userModule.getNetworkType()).setMessage(\"\".concat(i,\" fail count:\").concat(s.length)).end(),Ve.l(\"\".concat(n,\" ok. fail count:\").concat(s.length,\".\")),la({failureUserList:s})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setMessage(\"\".concat(i)).setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"reset\",value:function(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100}}]),e}(),hi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"UserModule\",s._profileHandler=new li(_(s)),s._blacklistHandler=new pi(_(s)),s._userStatusHandler=new _i(_(s)),s.getInnerEmitterInstance().on(va,s.onContextUpdated,_(s)),s}return r(n,[{key:\"onContextUpdated\",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:\"onProfileModified\",value:function(e){this._profileHandler.onProfileModified(e)}},{key:\"onRelationChainModified\",value:function(e){var t=e.dataList;if(!$t(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,v(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var o=[];t.forEach((function(e){e.blackListAddAccount&&o.push.apply(o,v(e.blackListAddAccount))})),o.length>0&&this._blacklistHandler.onAccountAdded(o)}}},{key:\"onConversationsProfileUpdated\",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:\"getMyAccount\",value:function(){return this.getMyUserID()}},{key:\"getMyProfile\",value:function(){return this._profileHandler.getMyProfile()}},{key:\"getStorageModule\",value:function(){return this.getModule(Yn)}},{key:\"filterProfanity\",value:function(e,t){var n=this.getModule(uo);if(!n)return!0;var o=n.filterText(t[e],j),s=o.isAllowedToSend,r=o.modifiedText;return!0===s&&(t[e]=r,!0)}},{key:\"isMyFriend\",value:function(e){var t=this.getModule(Vn);return!!t&&t.isMyFriend(e)}},{key:\"getUserProfile\",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:\"updateMyProfile\",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:\"getNickAndAvatarByUserID\",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:\"getLocalBlacklist\",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return _a(e)}},{key:\"addBlacklist\",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:\"deleteBlacklist\",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:\"onUserStatusUpdated\",value:function(e){this._userStatusHandler.onUserStatusUpdated(e)}},{key:\"setSelfStatus\",value:function(e){return this._userStatusHandler.setSelfStatus(e)}},{key:\"getUserStatus\",value:function(e){return this._userStatusHandler.getUserStatus(e)}},{key:\"subscribeUserStatus\",value:function(e){return this._userStatusHandler.subscribeUserStatus(e)}},{key:\"unsubscribeUserStatus\",value:function(e){return this._userStatusHandler.unsubscribeUserStatus(e)}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._profileHandler.reset(),this._blacklistHandler.reset(),this._userStatusHandler.reset()}}]),n}(go),fi=function(){function e(t,n){o(this,e),this._m=t,this._isLoggedIn=!1,this._SDKAppID=n.SDKAppID,this._userID=n.userID||\"\",this._userSig=n.userSig||\"\",this._version=\"2.27.5\",this._a2Key=\"\",this._tinyID=\"\",this._customStatus=\"\",this._contentType=\"json\",this._unlimitedAVChatRoom=n.unlimitedAVChatRoom,this._scene=n.scene||\"\",this._oversea=n.oversea,this._instanceID=n.instanceID,this._statusInstanceID=0,this._isDevMode=n.devMode,this._proxyServer=n.proxyServer,this._fileUploadProxy=n.fileUploadProxy,this._fileDownloadProxy=n.fileDownloadProxy}return r(e,[{key:\"isLoggedIn\",value:function(){return this._isLoggedIn}},{key:\"isOversea\",value:function(){return this._oversea}},{key:\"isPrivateNetWork\",value:function(){return this._proxyServer}},{key:\"isDevMode\",value:function(){return this._isDevMode}},{key:\"isSingaporeSite\",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7||this._SDKAppID>=172e7&&this._SDKAppID<173e7}},{key:\"isKoreaSite\",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7||this._SDKAppID>=173e7&&this._SDKAppID<174e7}},{key:\"isGermanySite\",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7||this._SDKAppID>=174e7&&this._SDKAppID<175e7}},{key:\"isIndiaSite\",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7||this._SDKAppID>=175e7&&this._SDKAppID<176e7}},{key:\"isJapanSite\",value:function(){return this._SDKAppID>=6e7&&this._SDKAppID<7e7||this._SDKAppID>=176e7&&this._SDKAppID<177e7}},{key:\"isUSASite\",value:function(){return this._SDKAppID>=7e7&&this._SDKAppID<8e7||this._SDKAppID>=177e7&&this._SDKAppID<178e7}},{key:\"isIntl\",value:function(){return 0===(e=this._SDKAppID)||e>=2e7&&e<8e7||e>=172e7&&e<178e7;var e}},{key:\"isUnlimitedAVChatRoom\",value:function(){return this._unlimitedAVChatRoom}},{key:\"setUserID\",value:function(e){this._userID=e}},{key:\"getUserID\",value:function(){return this._userID}},{key:\"setUserSig\",value:function(e){this._userSig=e}},{key:\"getUserSig\",value:function(){return this._userSig}},{key:\"getSDKAppID\",value:function(){return this._SDKAppID}},{key:\"setTinyID\",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:\"getTinyID\",value:function(){return this._tinyID}},{key:\"setCustomStatus\",value:function(e){this._customStatus=e}},{key:\"getCustomStatus\",value:function(){return this._customStatus}},{key:\"getScene\",value:function(){return Ae?window.tencent_cloud_im_csig_flutter_for_web_25F_cy:this._isTUIKit()?\"tuikit\":this._scene}},{key:\"getInstanceID\",value:function(){return this._instanceID}},{key:\"getStatusInstanceID\",value:function(){return this._statusInstanceID}},{key:\"setStatusInstanceID\",value:function(e){this._statusInstanceID=e}},{key:\"getVersion\",value:function(){return this._version}},{key:\"getA2Key\",value:function(){return this._a2Key}},{key:\"setA2Key\",value:function(e){this._a2Key=e}},{key:\"getContentType\",value:function(){return this._contentType}},{key:\"getProxyServer\",value:function(){return this._proxyServer}},{key:\"getFileUploadProxy\",value:function(){return this._fileUploadProxy}},{key:\"getFileDownloadProxy\",value:function(){return this._fileDownloadProxy}},{key:\"_isTUIKit\",value:function(){var e=!1,t=!1,n=!1,o=!1,s=[];re&&(s=Object.keys(ie)),ae&&(s=se?Object.keys(uni):Object.keys(window));for(var r=0,a=s.length;r<a;r++)if(s[r].toLowerCase().includes(\"uikit\")){e=!0;break}if(s=null,re&&!gt(ie.createGamePortal)&&gt(getApp)&&!dt(getApp())){var i=getApp().globalData;ct(i)&&!0===i.isTUIKit&&(t=!0)}!0===this._m.getModule(Yn).getStorageSync(\"TIM_\".concat(this._SDKAppID,\"_isTUIKit\"))&&(n=!0);var u=null;if(Q&&!$&&\"undefined\"==typeof uni&&__wxConfig&&(u=__wxConfig.pages),Z&&\"undefined\"==typeof uni&&__qqConfig&&(u=__qqConfig.pages),lt(u)&&u.length>0){for(var c=0,l=u.length;c<l;c++)if(u[c].toLowerCase().includes(\"tui\")){o=!0;break}u=null}return e||t||n||o}},{key:\"reset\",value:function(){this._isLoggedIn=!1,this._userSig=\"\",this._a2Key=\"\",this._tinyID=\"\",this._customStatus=\"\",this._statusInstanceID=0}}]),e}(),mi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"SignModule\",s._helloInterval=120,s._lastLoginTs=0,s._lastWsHelloTs=0,s._isWebUniapp=0,Ia.mixin(_(s)),s}return r(n,[{key:\"onCheckTimer\",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:\"login\",value:function(e){var t=\"\";if(this.isLoggedIn()){var n=this.getMyUserID();return(t=this.getErrorMessage(\"RepeatLogin\",n))&&Ve.w(t),_a({actionStatus:\"OK\",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return this.outputWarning(\"LoggingIn\",e.userID),ha({code:Or.REPEAT_LOGIN});Ve.l(\"\".concat(this._n,\".login userID:\").concat(e.userID));var o=this._checkLoginInfo(e);if(0!==o.code)return ha(o);var s=this.getModule(Wn),r=e.userID,a=e.userSig;return s.setUserID(r),s.setUserSig(a),this.getModule($n).updateProtocolConfig(),this._login()}},{key:\"_login\",value:function(){var e=this,t=this.getModule(Wn),n=t.getScene(),o=0,s=new jr(\"login\");s.setMessage(\"\".concat(n)).setMoreMessage(\"identifier:\".concat(this.getMyUserID())),se?\"tuikit\"===n?s.setUIPlatform(4):s.setUIPlatform(3):re?\"tuikit\"===n?s.setUIPlatform(12):s.setUIPlatform(11):ae&&(Ae?\"flutter_web_uikit\"===n?s.setUIPlatform(21):s.setUIPlatform(20):this._isReactUIKit()?Le?s.setUIPlatform(25):s.setUIPlatform(24):Le?\"tuikit\"===n?s.setUIPlatform(17):s.setUIPlatform(16):\"tuikit\"===n?s.setUIPlatform(14):s.setUIPlatform(13));var r=this.getModule(io);if(r.canIUseOfflinePush()){this._isWebUniapp=r.getUniAppPlatform();var a=this._getStatusInstanceID();t.setStatusInstanceID(a),this.getModule($n).updateProtocolConfig(),o=r.getDeviceBrand()}var i=\"\".concat(this._n,\"._login\");return this._lastLoginTs=Date.now(),this.request({protocolName:_o,requestData:{deviceBrand:o,isWebUniapp:this._isWebUniapp}}).then((function(o){e._lastLoginTs=0;var r=Date.now(),a=null,u=o.data,c=u.a2Key,l=u.tinyID,d=u.helloInterval,p=u.instanceID,g=u.timeStamp,_=u.customStatus,h=void 0===_?\"\":_,f=u.purchaseBits;Ve.l(\"\".concat(i,\" ok. scene:\").concat(n,\" helloInterval:\").concat(d,\" instanceID:\").concat(p,\" timeStamp:\").concat(g));var m=1e3*g,v=r-s.getStartTs(),M=m+parseInt(v/2)-r,y=s.getStartTs()+M;if(s.start(y),function(e,t){Ue=t;var n=new Date;n.setTime(e),Ve.i(\"baseTime from server:\".concat(n,\" offset:\").concat(Ue))}(m,M),!l)throw a=new da({code:Or.NO_TINYID}),s.setError(a,!0,e.getNetworkType()).end(),a;if(!c)throw a=new da({code:Or.NO_A2KEY}),s.setError(a,!0,e.getNetworkType()).end(),a;var I=gi(h);(s.setNetworkType(e.getNetworkType()).setMoreMessage(\"helloInterval:\".concat(d,\" instanceID:\").concat(p,\" offset:\").concat(M,\" customStatus:\").concat(I)).end(),t.setA2Key(c),t.setTinyID(l),t.setStatusInstanceID(p),t.setCustomStatus(I),f)&&e.getModule(ao).onPushedConfig({errorCode:0,expiredTime:0,purchaseBits:f});e.getModule($n).updateProtocolConfig(),e.emitInnerEvent(va),e._helloInterval=d,e.triggerReady();var C=e.getModule(io);return C.canIUseOfflinePush()&&(uni.setStorageSync(\"timUniAppInstanceID\",p),C.init()),e._fetchCloudControlConfig(),e.getModule(uo).init(),o})).catch((function(t){return e.probeNetwork().then((function(e){var n=m(e,2),o=n[0],r=n[1];s.setError(t,o,r).end(!0)})),e._m.setNotReadyReason(Or.LOGIN_FAILED),Ve.e(\"\".concat(i,\" failed. error:\"),t),e._lastLoginTs=0,e._m.onLoginFailed(),ha(t)}))}},{key:\"logout\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return ha({code:Or.USER_NOT_LOGGED_IN});var n=new jr(\"logout\");n.setNetworkType(this.getNetworkType()).setMessage(\"identifier:\".concat(this.getMyUserID())).end(!0);var o=\"\".concat(this._n,\".logout\");return Ve.i(\"\".concat(o,\" type:\").concat(t)),0===t&&this._m.setNotReadyReason(Or.LOGGED_OUT),this.request({protocolName:ho,requestData:{type:t}}).then((function(){return e.resetReady(),_a({})})).catch((function(t){return Ve.e(\"\".concat(o,\" error:\"),t),e.resetReady(),_a({})}))}},{key:\"_fetchCloudControlConfig\",value:function(){this.getModule(no).fetchConfig()}},{key:\"_getStatusInstanceID\",value:function(){return uni.getStorageSync(\"timUniAppInstanceID\")}},{key:\"_hello\",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:fo,requestData:{isWebUniapp:this._isWebUniapp}}).catch((function(t){Ve.w(\"\".concat(e._n,\"._hello error:\"),t)}))}},{key:\"getLastWsHelloTs\",value:function(){return this._lastWsHelloTs}},{key:\"_checkLoginInfo\",value:function(e){var t=0;return $t(this.getModule(Wn).getSDKAppID())?t=Or.NO_SDKAPPID:$t(e.userID)?t=Or.NO_IDENTIFIER:$t(e.userSig)&&(t=Or.NO_USERSIG),{code:t}}},{key:\"_isReactUIKit\",value:function(){return ae&&void 0!==window.tencent_cloud_im_csig_react_uikit_23F_xa}},{key:\"onMultipleAccountKickedOut\",value:function(e){var t=this;new jr(\"kickedOut\").setNetworkType(this.getNetworkType()).setMessage(\"type:\".concat(k.KICKED_OUT_MULT_ACCOUNT,\" newInstanceInfo:\").concat(JSON.stringify(e))).end(!0),Ve.w(\"\".concat(this._n,\".onMultipleAccountKickedOut userID:\").concat(this.getMyUserID(),\" newInstanceInfo:\"),e),this.logout(1).then((function(){t.emitOuterEvent(E.KICKED_OUT,{type:k.KICKED_OUT_MULT_ACCOUNT}),t._m.setNotReadyReason(Or.KICKED_OUT_MULT_ACCOUNT),t._m.reset()}))}},{key:\"onMultipleDeviceKickedOut\",value:function(e){var t=this;new jr(\"kickedOut\").setNetworkType(this.getNetworkType()).setMessage(\"type:\".concat(k.KICKED_OUT_MULT_DEVICE,\" newInstanceInfo:\").concat(JSON.stringify(e))).end(!0),Ve.w(\"\".concat(this._n,\".onMultipleDeviceKickedOut userID:\").concat(this.getMyUserID(),\" newInstanceInfo:\"),e),this.logout(1).then((function(){t.emitOuterEvent(E.KICKED_OUT,{type:k.KICKED_OUT_MULT_DEVICE}),t._m.setNotReadyReason(Or.KICKED_OUT_MULT_DEVICE),t._m.reset()}))}},{key:\"onUserSigExpired\",value:function(){new jr(\"kickedOut\").setNetworkType(this.getNetworkType()).setMessage(k.KICKED_OUT_USERSIG_EXPIRED).end(!0),Ve.w(\"\".concat(this._n,\".onUserSigExpired: userSig expired\")),0!==this.getModule(Wn).getStatusInstanceID()&&(this.emitOuterEvent(E.KICKED_OUT,{type:k.KICKED_OUT_USERSIG_EXPIRED}),this._m.setNotReadyReason(Or.KICKED_OUT_USERSIG_EXPIRED),this._m.reset())}},{key:\"onRestApiKickedOut\",value:function(e){(new jr(\"kickedOut\").setNetworkType(this.getNetworkType()).setMessage(\"type:\".concat(k.KICKED_OUT_REST_API,\" newInstanceInfo:\").concat(JSON.stringify(e))).end(!0),Ve.w(\"\".concat(this._n,\".onRestApiKickedOut userID:\").concat(this.getMyUserID(),\" newInstanceInfo:\"),e),0!==this.getModule(Wn).getStatusInstanceID())&&(this.emitOuterEvent(E.KICKED_OUT,{type:k.KICKED_OUT_REST_API}),this._m.setNotReadyReason(Or.KICKED_OUT_REST_API),this._m.reset(),this.getModule(eo).onRestApiKickedOut())}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0,this._isWebUniapp=0}}]),n}(go);function vi(){return null}var Mi=function(){function e(t){o(this,e),this._m=t,this._n=\"StorageModule\",this._storageQueue=new Map,this._errorTolerantHandle()}return r(e,[{key:\"_errorTolerantHandle\",value:function(){re||!dt(window)&&this._canIUseCookies()||(this.getItem=vi,this.setItem=vi,this.removeItem=vi,this.clear=vi)}},{key:\"onCheckTimer\",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:\"_doFlush\",value:function(){try{var e,t=D(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=m(e.value,2),o=n[0],s=n[1];this._setStorageSync(this._getKey(o),s)}}catch(r){t.e(r)}finally{t.f()}this._storageQueue.clear()}catch(a){Ve.w(\"\".concat(this._n,\"._doFlush error:\"),a)}}},{key:\"_getPrefix\",value:function(){var e=this._m.getModule(Wn);return\"TIM_\".concat(e.getSDKAppID(),\"_\").concat(e.getUserID(),\"_\")}},{key:\"_getKey\",value:function(e){return\"\".concat(this._getPrefix()).concat(e)}},{key:\"getItem\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(o){return Ve.w(\"\".concat(this._n,\".getItem error:\"),o),{}}}},{key:\"setItem\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var s=o?this._getKey(e):e;this._setStorageSync(s,t)}else this._storageQueue.set(e,t)}},{key:\"clear\",value:function(){try{re?ie.clearStorageSync():this._canIUseCookies()&&localStorage.clear()}catch(e){Ve.w(\"\".concat(this._n,\".clear error:\"),e)}}},{key:\"removeItem\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(o){Ve.w(\"\".concat(this._n,\".removeItem error:\"),o)}}},{key:\"getSize\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"b\";try{var o={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(o,\"leftSize\",{enumerable:!0,get:function(){return o.limitSize-o.size}}),re&&(o.limitSize=1024*ie.getStorageInfoSync().limitSize),e)o.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(re){var s=ie.getStorageInfoSync(),r=s.keys;r.forEach((function(e){o.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(this._canIUseCookies())for(var a in localStorage)localStorage.hasOwnProperty(a)&&(o.size+=localStorage.getItem(a).length+a.length);return this._convertUnit(o)}catch(i){Ve.w(\"\".concat(this._n,\" error:\"),i)}}},{key:\"_convertUnit\",value:function(e){var t={},n=e.unit;for(var o in t.unit=n,e)\"number\"==typeof e[o]&&(\"kb\"===n.toLowerCase()?t[o]=Math.round(e[o]/1024):\"mb\"===n.toLowerCase()?t[o]=Math.round(e[o]/1024/1024):t[o]=e[o]);return t}},{key:\"_setStorageSync\",value:function(e,t){re?te?my.setStorageSync({key:e,data:t}):ie.setStorageSync(e,t):this._canIUseCookies()&&localStorage.setItem(e,JSON.stringify(t))}},{key:\"getStorageSync\",value:function(e){return re?te?my.getStorageSync({key:e}).data:ie.getStorageSync(e):this._canIUseCookies()?JSON.parse(localStorage.getItem(e)):{}}},{key:\"_removeStorageSync\",value:function(e){re?te?my.removeStorageSync({key:e}):ie.removeStorageSync(e):this._canIUseCookies()&&localStorage.removeItem(e)}},{key:\"_canIUseCookies\",value:function(){return navigator&&navigator.cookieEnabled&&localStorage}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._doFlush()}}]),e}(),yi=function(){function e(t){o(this,e),this._n=\"SSOLogBody\",this._report=[]}return r(e,[{key:\"pushIn\",value:function(e){Ve.d(\"\".concat(this._n,\".pushIn\"),this._report.length,e),this._report.push(e)}},{key:\"backfill\",value:function(e){var t;lt(e)&&0!==e.length&&(Ve.d(\"\".concat(this._n,\".backfill\"),this._report.length,e.length),(t=this._report).unshift.apply(t,v(e)))}},{key:\"getLogsNumInMemory\",value:function(){return this._report.length}},{key:\"isEmpty\",value:function(){return 0===this._report.length}},{key:\"_reset\",value:function(){this._report.length=0,this._report=[]}},{key:\"getLogsInMemory\",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),Ii=function(e){var t=e.getModule(Wn);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Pe()}},Ci=function(e){i(s,e);var n=f(s);function s(e){var t;o(this,s),(t=n.call(this,e))._n=\"EventStatModule\",t.TAG=\"im-ssolog-event\",t._reportBody=new yi,t.MIN_THRESHOLD=20,t.MAX_THRESHOLD=100,t.WAITING_TIME=6e4,t.REPORT_LEVEL=[4,5,6],t.REPORT_SDKAPPID_BLACKLIST=[],t.REPORT_TINYID_WHITELIST=[],t._lastReportTime=Date.now();var r=t.getInnerEmitterInstance();return r.on(va,t._onLoginSuccess,_(t)),r.on(Ma,t._onCloudConfigUpdated,_(t)),t}return r(s,[{key:\"reportAtOnce\",value:function(){Ve.d(\"\".concat(this._n,\".reportAtOnce\")),this._report()}},{key:\"_onLoginSuccess\",value:function(){var e=this,t=this.getModule(Yn),n=t.getItem(this.TAG,!1);!$t(n)&&gt(n.forEach)&&(Ve.l(\"\".concat(this._n,\"._onLoginSuccess get ssolog in storage, count:\").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"evt_rpt_threshold\"),t=this.getCloudConfig(\"evt_rpt_waiting\"),n=this.getCloudConfig(\"evt_rpt_level\"),o=this.getCloudConfig(\"evt_rpt_sdkappid_bl\"),s=this.getCloudConfig(\"evt_rpt_tinyid_wl\");dt(e)||(this.MIN_THRESHOLD=Number(e)),dt(t)||(this.WAITING_TIME=Number(t)),dt(n)||(this.REPORT_LEVEL=n.split(\",\").map((function(e){return Number(e)}))),dt(o)||(this.REPORT_SDKAPPID_BLACKLIST=o.split(\",\").map((function(e){return Number(e)}))),dt(s)||(this.REPORT_TINYID_WHITELIST=s.split(\",\"))}},{key:\"pushIn\",value:function(e){e instanceof jr&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:\"onCheckTimer\",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:\"_filterLogs\",value:function(e){var t=this,n=this.getModule(Wn),o=n.getSDKAppID(),s=n.getTinyID();return Ht(this.REPORT_SDKAPPID_BLACKLIST,o)&&!Kt(this.REPORT_TINYID_WHITELIST,s)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:\"_report\",value:function(){var e=this;if(!this._reportBody.isEmpty()){var n=this._reportBody.getLogsInMemory(),o=this._filterLogs(n);if(0!==o.length){var s={header:Ii(this),event:o};this.request({protocolName:ar,requestData:t({},s)}).then((function(){e._lastReportTime=Date.now()})).catch((function(t){Ve.w(\"\".concat(e._n,\".report failed. networkType:\").concat(e.getNetworkType(),\" error:\"),t),e._reportBody.backfill(n),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:\"_flushAtOnce\",value:function(){var e=this.getModule(Yn),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory(),o=\"\".concat(this._n,\"._flushAtOnce\");if($t(t))Ve.l(\"\".concat(o,\" count:\").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var s=n.concat(t);s.length>this.MAX_THRESHOLD&&(s=s.slice(0,this.MAX_THRESHOLD)),Ve.l(\"\".concat(o,\" count:\").concat(s.length)),e.setItem(this.TAG,s,!0,!1)}}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),s}(go),Ti=\"none\",Di=\"online\",Ei=[Or.OVER_FREQUENCY_LIMIT,Or.OPEN_SERVICE_OVERLOAD_ERROR],ki=function(){function e(t){o(this,e),this._m=t,this._networkType=\"\",this._n=\"NetMonitorModule\",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return r(e,[{key:\"start\",value:function(){var e=this;re?(ie.getNetworkType({success:function(t){e._networkType=t.networkType||t.subtype||\"\",t.networkType===Ti?Ve.w(\"\".concat(e._n,\".start no network, please check!\")):Ve.i(\"\".concat(e._n,\".start networkType:\").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),ie.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=Di,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener(\"online\",this._webOnlineCallback),window.addEventListener(\"offline\",this._webOfflineCallback)))}},{key:\"_onWebOnline\",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:Di})}},{key:\"_onWebOffline\",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:Ti})}},{key:\"_onNetworkStatusChange\",value:function(e){var t=e.isConnected,n=e.networkType,o=\"\".concat(this._n,\"._onNetworkStatusChange\"),s=!1;t?(Ve.i(\"\".concat(o,\" previous:\").concat(this._networkType,\" current:\").concat(n)),this._networkType!==n&&(s=!0,this._m.getModule(eo).reConnect(!0))):this._networkType!==n&&(s=!0,Ve.w(\"\".concat(o,\" no network, please check!\")),this._m.getModule(eo).offline());s&&(new jr(\"networkChange\").setMessage(\"isConnected:\".concat(t,\" previousNetworkType:\").concat(this._networkType,\" networkType:\").concat(n)).end(),this._networkType=n)}},{key:\"probe\",value:function(e){var t=this;if(!dt(e)&&Ei.includes(e.code))return Promise.resolve([!0,this._networkType]);var n=\"\".concat(this._n,\".probe\");return new Promise((function(e,o){re?ie.getNetworkType({success:function(o){t._networkType=o.networkType,o.networkType===Ti?(Ve.w(\"\".concat(n,\" no network, please check!\")),e([!1,o.networkType])):(Ve.i(\"\".concat(n,\" networkType:\").concat(o.networkType)),e([!0,o.networkType]))}}):t._networkType===Ti?e([!1,Ti]):e([!0,Di])}))}},{key:\"getNetworkType\",value:function(){return this._networkType}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),re?null!==this._mpNetworkStatusCallback&&(ie.offNetworkStatusChange&&(oe||$?ie.offNetworkStatusChange(this._mpNetworkStatusCallback):ie.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener(\"online\",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener(\"offline\",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}();var Si=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=Object.prototype.hasOwnProperty,n=\"~\";function o(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function r(e,t,o,r,a){if(\"function\"!=typeof o)throw new TypeError(\"The listener must be a function\");var i=new s(o,r||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],i]:e._events[u].push(i):(e._events[u]=i,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function i(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),i.prototype.eventNames=function(){var e,o,s=[];if(0===this._eventsCount)return s;for(o in e=this._events)t.call(e,o)&&s.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(e)):s},i.prototype.listeners=function(e){var t=n?n+e:e,o=this._events[t];if(!o)return[];if(o.fn)return[o.fn];for(var s=0,r=o.length,a=new Array(r);s<r;s++)a[s]=o[s].fn;return a},i.prototype.listenerCount=function(e){var t=n?n+e:e,o=this._events[t];return o?o.fn?1:o.length:0},i.prototype.emit=function(e,t,o,s,r,a){var i=n?n+e:e;if(!this._events[i])return!1;var u,c,l=this._events[i],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,o),!0;case 4:return l.fn.call(l.context,t,o,s),!0;case 5:return l.fn.call(l.context,t,o,s,r),!0;case 6:return l.fn.call(l.context,t,o,s,r,a),!0}for(c=1,u=new Array(d-1);c<d;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,g=l.length;for(c=0;c<g;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),d){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,o);break;case 4:l[c].fn.call(l[c].context,t,o,s);break;default:if(!u)for(p=1,u=new Array(d-1);p<d;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},i.prototype.on=function(e,t,n){return r(this,e,t,n,!1)},i.prototype.once=function(e,t,n){return r(this,e,t,n,!0)},i.prototype.removeListener=function(e,t,o,s){var r=n?n+e:e;if(!this._events[r])return this;if(!t)return a(this,r),this;var i=this._events[r];if(i.fn)i.fn!==t||s&&!i.once||o&&i.context!==o||a(this,r);else{for(var u=0,c=[],l=i.length;u<l;u++)(i[u].fn!==t||s&&!i[u].once||o&&i[u].context!==o)&&c.push(i[u]);c.length?this._events[r]=1===c.length?c[0]:c:a(this,r)}return this},i.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new o,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=n,i.EventEmitter=i,e.exports=i})),Li=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"BigDataChannelModule\",s.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},s._bdh_download_server=\"grouptalk.c2c.qq.com\",s._BDHBizID=10001,s._authKey=\"\",s._expireTime=0,s.getInnerEmitterInstance().on(va,s._getAuthKey,_(s)),s}return r(n,[{key:\"_getAuthKey\",value:function(){var e=this;this.isIntl()||this.request({protocolName:Mo}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:\"_isFromOlderVersion\",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:\"parseElements\",value:function(e,t){if(!lt(e)||!t)return[];for(var n=[],o=null,s=0;s<e.length;s++)o=e[s],this._needParse(o)?n.push(this._parseElement(o,t)):n.push(e[s]);return n}},{key:\"_needParse\",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==k.MSG_AUDIO&&e.type!==k.MSG_FILE&&e.type!==k.MSG_VIDEO)}},{key:\"_parseElement\",value:function(e,t){switch(e.type){case k.MSG_AUDIO:return this._parseAudioElement(e,t);case k.MSG_FILE:return this._parseFileElement(e,t);case k.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:\"_parseAudioElement\",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:\"_parseFileElement\",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:\"_parseVideoElement\",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:\"_genAudioUrl\",value:function(e,t){if(\"\"===this._authKey)return\"\";var n=this.getModule(Wn).getSDKAppID();return\"https://\".concat(this._bdh_download_server,\"/asn.com/stddownload_common_file?authkey=\").concat(this._authKey,\"&bid=\").concat(this._BDHBizID,\"&subbid=\").concat(n,\"&fileid=\").concat(e,\"&filetype=\").concat(this.FILETYPE.SOUND,\"&openid=\").concat(t,\"&ver=0\")}},{key:\"_genFileUrl\",value:function(e,t,n){if(\"\"===this._authKey)return\"\";n||(n=\"\".concat(Math.floor(1e5*Math.random()),\"-\").concat(Date.now()));var o=this.getModule(Wn).getSDKAppID();return\"https://\".concat(this._bdh_download_server,\"/asn.com/stddownload_common_file?authkey=\").concat(this._authKey,\"&bid=\").concat(this._BDHBizID,\"&subbid=\").concat(o,\"&fileid=\").concat(e,\"&filetype=\").concat(this.FILETYPE.FILE,\"&openid=\").concat(t,\"&ver=0&filename=\").concat(encodeURIComponent(n))}},{key:\"_genVideoUrl\",value:function(e,t){if(\"\"===this._authKey)return\"\";var n=this.getModule(Wn).getSDKAppID();return\"https://\".concat(this._bdh_download_server,\"/asn.com/stddownload_common_file?authkey=\").concat(this._authKey,\"&bid=\").concat(this._BDHBizID,\"&subbid=\").concat(n,\"&fileid=\").concat(e,\"&filetype=\").concat(this.FILETYPE.VIDEO,\"&openid=\").concat(t,\"&ver=0\")}},{key:\"reset\",value:function(){this._authKey=\"\",this.expireTime=0}}]),n}(go),Ai=[\"requestSnapshotUrl\"],Ni=function(e){i(s,e);var n=f(s);function s(e){var t;o(this,s),(t=n.call(this,e))._n=\"UploadModule\",t.TIMUploadPlugin=null,t.timUploadPlugin=null,t.COSSDK=null,t._cosUploadMethod=null,t.expiredTimeLimit=600,t.appid=0,t.bucketName=\"\",t.ciUrl=\"\",t.directory=\"\",t.downloadUrl=\"\",t.uploadUrl=\"\",t.region=\"ap-shanghai\",t.cos=null,t.cosOptions={secretId:\"\",secretKey:\"\",sessionToken:\"\",expiredTime:0},t.uploadFileType=\"\",t.duration=900,t.tryCount=0,t.UPLOAD_SIZE_LIMIT={AUDIO:20971520,FILE:104857600,IMAGE:20971520,VIDEO:104857600};var r=t.getInnerEmitterInstance();return r.on(va,t._init,_(t)),r.on(Ma,t._onCloudConfigUpdated,_(t)),t}return r(s,[{key:\"_init\",value:function(){var e=this.getModule(Qn);if(this.TIMUploadPlugin=e.getPlugin(\"tim-upload-plugin\"),this.TIMUploadPlugin)this._initUploaderMethod();else{var t=re?\"cos-wx-sdk\":\"cos-js-sdk\";this.COSSDK=e.getPlugin(t),this.COSSDK?(this._getAuthorizationKey(),this.outputWarning(\"CosReplacement\",t)):this.outputWarning(\"PluginUndetected\")}}},{key:\"_onCloudConfigUpdated\",value:function(){var e=\"\".concat(this._n,\"._onCloudConfigUpdated\"),t=this.getCloudConfig(\"upload_size_limit\");if(Ve.l(\"\".concat(e,\" uploadSizeLimit:\").concat(t)),!dt(t))try{var n=JSON.parse(t);this.UPLOAD_SIZE_LIMIT={AUDIO:n.a?1048576*parseInt(n.a):this.UPLOAD_SIZE_LIMIT.AUDIO,FILE:n.f?1048576*parseInt(n.f):this.UPLOAD_SIZE_LIMIT.FILE,IMAGE:n.i?1048576*parseInt(n.i):this.UPLOAD_SIZE_LIMIT.IMAGE,VIDEO:n.v?1048576*parseInt(n.v):this.UPLOAD_SIZE_LIMIT.VIDEO}}catch(o){Ve.e(\"\".concat(e,\" JSON parse error. uploadSizeLimit:\"),t)}}},{key:\"_getAuthorizationKey\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_getAuthorizationKey\"),n=new jr(\"_getAuthorizationKey\"),o=Math.ceil(Date.now()/1e3);this.request({protocolName:or,requestData:{duration:this.expiredTimeLimit}}).then((function(s){var r=s.data;Ve.l(\"\".concat(t,\" ok. data:\"),r);var a=r.expiredTime-o;n.setMessage(\"requestId:\".concat(r.requestId,\" requestTime:\").concat(o,\" expiredTime:\").concat(r.expiredTime,\" diff:\").concat(a,\"s\")).setNetworkType(e.getNetworkType()).end(),!re&&r.region&&(e.region=r.region),e.appid=r.appid,e.bucketName=r.bucketName,e.ciUrl=r.ciUrl,e.directory=r.directory,e.downloadUrl=r.downloadUrl,e.uploadUrl=r.uploadUrl,e.cosOptions={secretId:r.secretId,secretKey:r.secretKey,sessionToken:r.sessionToken,expiredTime:r.expiredTime},Ve.l(\"\".concat(t,\" ok. region:\").concat(e.region,\" bucketName:\").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(o){e.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];n.setError(o,s,r).end()})),Ve.w(\"\".concat(t,\" failed. error:\"),o)}))}},{key:\"_getCosPreSigUrl\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"_getCosPreSigUrl\"),o=Math.ceil(Date.now()/1e3),s=new jr(\"_getCosPreSigUrl\");return this.request({protocolName:sr,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var r=e.data||{},a=r.expiredTime-o;return Ve.l(\"\".concat(n,\" ok. data:\"),r),s.setMessage(\"requestId:\".concat(r.requestId,\" expiredTime:\").concat(r.expiredTime,\" diff:\").concat(a,\"s\")).setNetworkType(t.getNetworkType()).end(),r})).catch((function(o){return-1===o.code&&(o.code=Or.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=m(e,2),n=t[0],r=t[1];s.setError(o,n,r).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),o),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,ha({code:Or.COS_GET_SIG_FAIL}))}))}},{key:\"_initUploaderMethod\",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=re?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=re?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:\"onCheckTimer\",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:\"_getAuthorization\",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:\"upload\",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(ro);switch(e.type){case k.MSG_IMAGE:return t.addTotalCount(qr),this._uploadImage(e);case k.MSG_FILE:return t.addTotalCount(qr),this._uploadFile(e);case k.MSG_AUDIO:return t.addTotalCount(qr),this._uploadAudio(e);case k.MSG_VIDEO:return t.addTotalCount(qr),this._uploadVideo(e);default:return Promise.resolve()}}},{key:\"_uploadImage\",value:function(e){var n=this,o=this.getModule(bn),s=e.getElements()[0],r=o.getMessageOption(e.clientSequence);return this.doUploadImage({file:r.payload.file,to:r.to,onProgress:function(e){if(s.updatePercent(e),gt(r.onProgress))try{r.onProgress(e)}catch(t){return ha({code:Or.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(o){var r,a,i=o.location,u=o.fileType,c=o.fileSize,l=o.width,d=o.height,p=o.smallImageUrl,g=o.smallImageWidth,_=o.smallImageHeight,h=o.largeImageUrl,f=o.largeImageWidth,m=o.largeImageHeight,v=n.isPrivateNetWork()?i:Et(i);return s.updateImageFormat(u),p&&h?(r={url:p,width:g,height:_},a={url:h,width:f,height:m}):(r=qt({originUrl:v,originWidth:l,originHeight:d,min:198}),a=qt({originUrl:v,originWidth:l,originHeight:d,min:720})),s.updateImageInfoArray([{size:c,url:v,width:l,height:d},t({},a),t({},r)]),e}))}},{key:\"_uploadFile\",value:function(e){var t=this,n=this.getModule(bn),o=e.getElements()[0],s=n.getMessageOption(e.clientSequence);return this.doUploadFile({file:s.payload.file,to:s.to,onProgress:function(e){if(o.updatePercent(e),gt(s.onProgress))try{s.onProgress(e)}catch(t){return ha({code:Or.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var s=n.location,r=t.isPrivateNetWork()?s:Et(s);return o.updateFileUrl(r),e}))}},{key:\"_uploadAudio\",value:function(e){var t=this,n=this.getModule(bn),o=e.getElements()[0],s=n.getMessageOption(e.clientSequence);return this.doUploadAudio({file:s.payload.file,to:s.to,onProgress:function(e){if(o.updatePercent(e),gt(s.onProgress))try{s.onProgress(e)}catch(t){return ha({code:Or.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var s=n.location,r=t.isPrivateNetWork()?s:Et(s);return o.updateAudioUrl(r),e}))}},{key:\"_uploadVideo\",value:function(e){var t=this,n=this.getModule(bn),o=e.getElements()[0],s=n.getMessageOption(e.clientSequence);return this.doUploadVideo({file:s.payload.file,to:s.to,onProgress:function(e){if(o.updatePercent(e),gt(s.onProgress))try{s.onProgress(e)}catch(t){return ha({code:Or.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var s=n.location,r=n.snapshotInfo,a=t.isPrivateNetWork()?s:Et(s);return o.updateVideoUrl(a),$t(r)||o.updateSnapshotInfo(r),e}))}},{key:\"_checkSizeError\",value:function(e){return ha({code:Or[\"MESSAGE_\".concat(e,\"_SIZE_LIMIT\")],message:this.getErrorMessage(\"UploadSizeLimit\",e.toLowerCase(),\"\".concat(this.UPLOAD_SIZE_LIMIT[e]/1048576,\" MB\"))})}},{key:\"doUploadImage\",value:function(e){var t=this;if(!e.file)return ha({code:Or.MESSAGE_IMAGE_SELECT_FILE_FIRST});var n=this._checkImageType(e.file);if(!0!==n)return n;var o=this._checkImageSize(e.file);if(!0!==o)return o;var s=null;return this._setUploadFileType(Da),this.uploadByCOS(e).then((function(e){return s=e,t.isPrivateNetWork()?Pt(e.location):Pt(\"https://\".concat(e.location))})).then((function(e){return s.width=e.width,s.height=e.height,Promise.resolve(s)}))}},{key:\"_checkImageType\",value:function(e){var t=\"\";return t=re?e.url.slice(e.url.lastIndexOf(\".\")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(\".\")+1),Ca.indexOf(t.toLowerCase())>=0||ha({code:Or.MESSAGE_IMAGE_TYPES_LIMIT})}},{key:\"_checkImageSize\",value:function(e){var t=0;return 0===(t=re?e.size:e.files[0].size)?ha({code:Or.MESSAGE_FILE_IS_EMPTY}):t<this.UPLOAD_SIZE_LIMIT.IMAGE||this._checkSizeError(\"IMAGE\")}},{key:\"doUploadFile\",value:function(e){return e.file?e.file.files[0].size>this.UPLOAD_SIZE_LIMIT.FILE?this._checkSizeError(\"FILE\"):0===e.file.files[0].size?ha({code:Or.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(Sa),this.uploadByCOS(e)):ha({code:Or.MESSAGE_FILE_SELECT_FILE_FIRST})}},{key:\"doUploadVideo\",value:function(e){return e.file.videoFile.size>this.UPLOAD_SIZE_LIMIT.VIDEO?this._checkSizeError(\"VIDEO\"):0===e.file.videoFile.size?ha({code:Or.MESSAGE_FILE_IS_EMPTY}):-1===Ta.indexOf(e.file.videoFile.type)?ha({code:Or.MESSAGE_VIDEO_TYPES_LIMIT}):(this._setUploadFileType(Ea),re?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):ae?this.handleVideoUpload(e):void 0)}},{key:\"handleVideoUpload\",value:function(e){var t=this;return new Promise((function(n,o){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){o(new da({code:Or.MESSAGE_VIDEO_UPLOAD_FAIL}))}))}))}))}},{key:\"doUploadAudio\",value:function(e){return e.file?e.file.size>this.UPLOAD_SIZE_LIMIT.AUDIO?this._checkSizeError(\"AUDIO\"):0===e.file.size?ha({code:Or.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(ka),this.uploadByCOS(e)):ha({code:Or.MESSAGE_AUDIO_UPLOAD_FAIL})}},{key:\"uploadByCOS\",value:function(e){var t=this;if(!gt(this._cosUploadMethod))return this.outputWarning(\"PluginUndetected\"),ha({code:Or.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var n=new jr(\"upload\"),o=\"\".concat(this._n,\".uploadByCOS\"),s=Date.now(),r=this._getFile(e);return new Promise((function(a,i){var u=re?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),c=t;t._cosUploadMethod(u,(function(e,u){var l=Object.create(null);if(u){if(e||lt(u.files)&&u.files[0].error){var d=new da({code:Or.MESSAGE_FILE_UPLOAD_FAIL});return n.setError(d,!0,t.getNetworkType()).end(),Ve.l(\"\".concat(o,\" failed. error:\"),u.files[0].error),403===u.files[0].error.statusCode&&(Ve.w(\"\".concat(o,\" failed. cos AccessKeyId was invalid, regain auth key!\")),t._getAuthorizationKey()),void i(d)}l.fileName=r.name,l.fileSize=r.size,l.fileType=r.type.slice(r.type.indexOf(\"/\")+1).toLowerCase(),l.location=re?u.Location:u.files[0].data.Location;var p=Date.now()-s,g=c._formatFileSize(r.size),_=c._formatSpeed(1e3*r.size/p),h=\"size:\".concat(g,\" time:\").concat(p,\"ms speed:\").concat(_);Ve.l(\"\".concat(o,\" success. name:\").concat(r.name,\" \").concat(h)),a(l);var f=t.getModule(ro);return f.addCost(qr,p),f.addFileSize(qr,r.size),void n.setNetworkType(t.getNetworkType()).setMessage(h).end()}var m=new da({code:Or.MESSAGE_FILE_UPLOAD_FAIL});n.setError(m,!0,c.getNetworkType()).end(),Ve.w(\"\".concat(o,\" failed. error:\"),e),403===e.statusCode&&(Ve.w(\"\".concat(o,\" failed. cos AccessKeyId was invalid, regain auth key!\")),t._getAuthorizationKey()),i(m)}))}))}},{key:\"_uploadWithPreSigUrl\",value:function(e){var t=this,n=\"\".concat(this._n,\"._uploadWithPreSigUrl\"),o=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(s,r){var a=new jr(\"upload\"),i=e.requestSnapshotUrl,u=void 0===i?void 0:i,c=g(e,Ai),l=Date.now();t._cosUploadMethod(c,(function(e,i){if(e||403===i.statusCode)return a.setError(new da(e),!0,t.getNetworkType()).end(),Ve.l(\"\".concat(n,\" failed, error:\"),e),void r(new da({code:Or.MESSAGE_FILE_UPLOAD_FAIL}));var d=Object.create(null),p=i.data.location||\"\";t.isPrivateNetWork()||0!==p.indexOf(\"https://\")&&0!==p.indexOf(\"http://\")||(p=p.split(\"//\")[1]),d.fileName=o.name,d.fileSize=o.size,d.fileType=o.type.slice(o.type.indexOf(\"/\")+1).toLowerCase(),d.location=p;var g=Date.now()-l,_=t._formatFileSize(o.size),h=t._formatSpeed(1e3*o.size/g),f=\"size:\".concat(_,\",time:\").concat(g,\"ms,speed:\").concat(h,\" res:\").concat(JSON.stringify(i.data));Ve.l(\"\".concat(n,\" success name:\").concat(o.name,\",\").concat(f)),a.setNetworkType(t.getNetworkType()).setMessage(f).end();var m=t.getModule(ro);m.addCost(qr,g),m.addFileSize(qr,o.size);var v=[];if(c.thumbUrl&&c.largeUrl&&(v=[t._getSmallImageInfoByUrl(c.thumbUrl,d),t._getLargeImageInfoByUrl(c.largeUrl,d)]),u&&v.push(t._getSnapshotInfoByUrl(u,d)),v.length>0)return Promise.all(v).then((function(){s(d)}));s(d)}))}))}))}},{key:\"_getRawOrUploadProxyUrl\",value:function(e){var t=this.getModule(Wn).getFileUploadProxy(),n=e;return t&&(n=e.replace(/^https:\\/\\/[^/]+/,t)),n}},{key:\"_getFile\",value:function(e){var t;return lt(e.file.files)||(t=e.file.files,\"filelist\"===ht(t))?e.file.files[0]:e.file}},{key:\"_formatFileSize\",value:function(e){return e<1024?e+\"B\":e<1048576?Math.floor(e/1024)+\"KB\":Math.floor(e/1048576)+\"MB\"}},{key:\"_formatSpeed\",value:function(e){return e<=1048576?Bt(e/1024,1)+\"KB/s\":Bt(e/1048576,1)+\"MB/s\"}},{key:\"_createCosOptionsWeb\",value:function(e){var t=this._getFile(e),n=t.name,o=n.slice(n.lastIndexOf(\".\")),s=this._genFileName(\"\".concat(yt(999999)).concat(o));return{files:[{Bucket:\"\".concat(this.bucketName,\"-\").concat(this.appid),Region:this.region,Key:\"\".concat(this.directory,\"/\").concat(s),Body:t}],SliceSize:1048576,onProgress:function(t){if(\"function\"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ve.w(\"onProgress callback error:\",n)}},onFileFinish:function(e,t,n){}}}},{key:\"_createCosOptionsWXMiniApp\",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),o=t.url;return{Bucket:\"\".concat(this.bucketName,\"-\").concat(this.appid),Region:this.region,Key:\"\".concat(this.directory,\"/\").concat(n),FilePath:o,onProgress:function(t){if(Ve.l(JSON.stringify(t)),\"function\"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ve.w(\"onProgress callback error:\",n)}}}}},{key:\"_createCosOptionsPreSigUrl\",value:function(e){var t=this,n=\"\",o=\"\",s=0,r=this._getFile(e);if(re)n=this._genFileName(r.name),o=r.url,s=1;else{var a=r.name,i=a.slice(a.lastIndexOf(\".\"));n=this._genFileName(\"\".concat(yt(999999)).concat(i)),o=r,s=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:s,duration:this.duration}).then((function(s){var r=s.uploadUrl,a=s.downloadUrl,i=s.requestSnapshotUrl,u=void 0===i?void 0:i,c=s.thumbUrl,l=s.largeUrl;return{url:t._getRawOrUploadProxyUrl(r),fileType:t.uploadFileType,fileName:n,resources:o,downloadUrl:a,requestSnapshotUrl:u,thumbUrl:c,largeUrl:l,onProgress:function(t){if(\"function\"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ve.w(\"onProgress callback error:\",n),Ve.e(n)}}}}))}},{key:\"_genFileName\",value:function(e){return\"\".concat(bt(),\"-\").concat(e)}},{key:\"_setUploadFileType\",value:function(e){this.uploadFileType=e}},{key:\"_getSnapshotInfoByUrl\",value:function(e,t){var n=this,o=new jr(\"getSnapshotInfo\");return this.request({protocolName:rr,requestData:{platform:this.getPlatform(),coverName:this._genFileName(yt(99999)),requestSnapshotUrl:e}}).then((function(e){var n=(e.data||{}).snapshotUrl;return o.setMessage(\"snapshotUrl:\".concat(n)).end(),$t(n)?{}:Pt(n).then((function(e){t.snapshotInfo={snapshotUrl:n,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Ve.w(\"\".concat(n._n,\"._getSnapshotInfoByUrl failed. error:\"),e),o.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:\"_getSmallImageInfoByUrl\",value:function(e,t){return Pt(e).then((function(n){t.smallImageUrl=e,t.smallImageWidth=n.width,t.smallImageHeight=n.height}))}},{key:\"_getLargeImageInfoByUrl\",value:function(e,t){return Pt(e).then((function(n){t.largeImageUrl=e,t.largeImageWidth=n.width,t.largeImageHeight=n.height}))}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\"))}}]),s}(go),Ri=[\"downloadKey\",\"pbDownloadKey\",\"messageList\"],Oi=function(){function e(t){o(this,e),this._n=\"MergerMessageHandler\",this._messageModule=t}return r(e,[{key:\"uploadMergerMessage\",value:function(e,t){var n=this,o=\"\".concat(this._n,\".\").concat(\"uploadMergerMessage\");Ve.d(\"\".concat(o,\" message:\"),e,\"messageBytes:\".concat(t));var s=e.payload.messageList,r=s.length,a=new jr(\"uploadMergerMessage\");return this._messageModule.request({protocolName:pr,requestData:{messageList:s}}).then((function(e){Ve.d(\"\".concat(o,\" ok. response:\"),e.data);var s=e.data,i=s.pbDownloadKey,u=s.downloadKey,c={pbDownloadKey:i,downloadKey:u,messageNumber:r};return a.setNetworkType(n._messageModule.getNetworkType()).setMessage(\"\".concat(r,\"-\").concat(t,\"-\").concat(u)).end(),c})).catch((function(e){throw Ve.w(\"\".concat(o,\" failed. error:\"),e),n._messageModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),e}))}},{key:\"downloadMergerMessage\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"downloadMergerMessage\");Ve.d(\"\".concat(o,\" message:\"),e);var s=e.payload.downloadKey,r=this._messageModule.getFileDownloadProxy(),a=new jr(\"downloadMergerMessage\");return a.setMessage(\"downloadKey:\".concat(s)),this._messageModule.request({protocolName:gr,requestData:{downloadKey:s}}).then((function(s){if(Ve.d(\"\".concat(o,\" ok. response:\"),s.data),gt(e.clearElement)){var i=e.payload;i.downloadKey,i.pbDownloadKey,i.messageList;var u=g(i,Ri);e.clearElement(),e.setElement({type:e.type,content:t({messageList:s.data.messageList},u)},r)}else{var c=[];s.data.messageList.forEach((function(e){if(!$t(e)){var t=new aa(e,r);c.push(t)}})),e.payload.messageList=c,e.payload.downloadKey=\"\",e.payload.pbDownloadKey=\"\"}return a.setNetworkType(n._messageModule.getNetworkType()).end(),e})).catch((function(e){throw Ve.w(\"\".concat(o,\" failed. key:\").concat(s,\" error:\"),e),n._messageModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),e}))}},{key:\"createMergerMessagePack\",value:function(e,t,n){return e.conversationType===k.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:\"_createC2CMergerMessagePack\",value:function(e,t,n){var o=null;t&&(t.offlinePushInfo&&(o=t.offlinePushInfo),!0===t.onlineUserOnly&&(o?o.disablePush=!0:o={disablePush:!0}));var s=[];if(ct(t)&&ct(t.messageControlInfo)){var r=t.messageControlInfo,a=r.excludedFromUnreadCount,i=r.excludedFromLastMessage,u=r.excludedFromContentModeration;!0===a&&s.push(\"NoUnread\"),!0===i&&s.push(\"NoLastMsg\"),!0===u&&s.push(\"NoMsgCheck\")}var c=\"\";it(e.cloudCustomData)&&e.cloudCustomData.length>0&&(c=e.cloudCustomData);var l=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,g=e.payload,_=g.title,h=g.abstractList,f=g.compatibleText,m=this._messageModule.getModule(qn),v=m&&m.isOnlineMessage(e,t)?0:void 0;return{protocolName:yo,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:l,downloadKey:d,title:_,abstractList:h,compatibleText:f,messageNumber:p}}],cloudCustomData:c,clientTime:e.clientTime,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:v,offlinePushInfo:o?{pushFlag:!0===o.disablePush?1:0,title:o.title||\"\",desc:o.description||\"\",ext:o.extension||\"\",apnsInfo:{badgeMode:!0===o.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:o.androidOPPOChannelID||\"\"}}:void 0,messageControlInfo:0!==v?s:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:\"_createGroupMergerMessagePack\",value:function(e,t,n){var o=null;t&&t.offlinePushInfo&&(o=t.offlinePushInfo);var s=[];if(ct(t)&&ct(t.messageControlInfo)){var r=t.messageControlInfo,a=r.excludedFromUnreadCount,i=r.excludedFromLastMessage,u=r.excludedFromContentModeration;!0===a&&s.push(\"NoUnread\"),!0===i&&s.push(\"NoLastMsg\"),!0===u&&s.push(\"NoMsgCheck\")}var c=\"\";it(e.cloudCustomData)&&e.cloudCustomData.length>0&&(c=e.cloudCustomData);var l=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,g=e.payload,_=g.title,h=g.abstractList,f=g.compatibleText,m=this._messageModule.getModule(xn),v=m&&m.isOnlineMessage(e,t)?1:0;return{protocolName:Io,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:l,downloadKey:d,title:_,abstractList:h,compatibleText:f,messageNumber:p}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:c,onlineOnlyFlag:v,offlinePushInfo:o?{pushFlag:!0===o.disablePush?1:0,title:o.title||\"\",desc:o.description||\"\",ext:o.extension||\"\",apnsInfo:{badgeMode:!0===o.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:o.androidOPPOChannelID||\"\"}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||m.isMessageFromOrToAVChatroom(e.to)?0:1,messageControlInfo:0===v?s:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}}]),e}(),Gi={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},Ui=[Or.MESSAGE_ONPROGRESS_FUNCTION_ERROR,Or.MESSAGE_IMAGE_SELECT_FILE_FIRST,Or.MESSAGE_IMAGE_TYPES_LIMIT,Or.MESSAGE_FILE_IS_EMPTY,Or.MESSAGE_IMAGE_SIZE_LIMIT,Or.MESSAGE_FILE_SELECT_FILE_FIRST,Or.MESSAGE_FILE_SIZE_LIMIT,Or.MESSAGE_VIDEO_SIZE_LIMIT,Or.MESSAGE_VIDEO_TYPES_LIMIT,Or.MESSAGE_AUDIO_UPLOAD_FAIL,Or.MESSAGE_AUDIO_SIZE_LIMIT,Or.COS_UNDETECTED];function Pi(e){var t=!1;return Object.values(Gi).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}var bi=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"MessageModule\",t._messageOptionsMap=new Map,t._mergerMessageHandler=new Oi(_(t)),t}return r(s,[{key:\"createTextMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ca(e),o=\"string\"==typeof e.payload?e.payload:e.payload.text,s=new Jr({text:o}),r=this._getNickAndAvatarByUserID(t);return n.setElement(s),n.setNickAndAvatar(r),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:\"createImageMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ca(e);if(re){var o=e.payload.file;if(rt(o))return void this.outputWarning(\"FileUnsupportedInMP\",\"createImageMessage\");var s=o.tempFiles[0].path||o.tempFiles[0].tempFilePath,r={url:s,name:s.slice(s.lastIndexOf(\"/\")+1),size:o.tempFiles&&o.tempFiles[0].size||1,type:s.slice(s.lastIndexOf(\".\")+1).toLowerCase()};e.payload.file=r}else if(ae)if(rt(e.payload.file)){var a=e.payload.file;e.payload.file={files:[a]}}else if(ct(e.payload.file)&&\"undefined\"!=typeof uni){var i=e.payload.file.tempFiles[0];e.payload.file={files:[i]}}var u=new zr({imageFormat:Be.UNKNOWN,uuid:this._generateUUID(e.payload.file),file:e.payload.file}),c=this._getNickAndAvatarByUserID(t);return n.setElement(u),n.setNickAndAvatar(c),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:\"createAudioMessage\",value:function(e){var t=e.payload.file;if(re){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(\"/\")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(\".\")+1).toLowerCase()};e.payload.file=n}var o=this.getMyUserID();e.currentUser=o,e.senderTinyID=this.getMyTinyID();var s=new ca(e),r=new Qr({second:Math.floor(t.duration/1e3),size:t.fileSize||t.size,url:t.tempFilePath,uuid:this._generateUUID(e.payload.file)}),a=this._getNickAndAvatarByUserID(o);return s.setElement(r),s.setNickAndAvatar(a),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}},{key:\"createVideoMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl=\"\",e.payload.file.thumbSize=0;var n={};if(re){if(te)return void this.outputWarning(\"VideoUnsupportedInAlipay\");if(rt(e.payload.file))return void this.outputWarning(\"FileUnsupportedInMP\",\"createVideoMessage\");var o=e.payload.file;lt(o.tempFiles)&&(o=o.tempFiles[0]),n.url=o.tempFilePath,n.name=o.tempFilePath.slice(o.tempFilePath.lastIndexOf(\"/\")+1),n.size=o.size||1,n.second=o.duration||0,n.type=o.tempFilePath.slice(o.tempFilePath.lastIndexOf(\".\")+1).toLowerCase()}else if(ae){if(rt(e.payload.file)){var s=e.payload.file;e.payload.file.files=[s]}else if(ct(e.payload.file)&&\"undefined\"!=typeof uni){var r=e.payload.file.tempFile;e.payload.file.files=[r]}var a=e.payload.file;n.url=window.URL.createObjectURL(a.files[0]),n.name=a.files[0].name,n.size=a.files[0].size||1,n.second=a.files[0].duration||0,n.type=a.files[0].type.split(\"/\")[1]}e.payload.file.videoFile=n;var i=new ca(e),u=new sa({videoFormat:n.type,videoSecond:Bt(n.second,0),videoSize:n.size,remoteVideoUrl:\"\",videoUrl:n.url,videoUUID:this._generateUUID(e.payload.file.videoFile),thumbUUID:this._generateUUID(e.payload.file.videoFile),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(\".\")+1).toLowerCase()}),c=this._getNickAndAvatarByUserID(t);return i.setElement(u),i.setNickAndAvatar(c),i.setNameCard(this._getNameCardByGroupID(i)),this._messageOptionsMap.set(i.clientSequence,e),i}},{key:\"createCustomMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ca(e),o=new oa({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),s=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(s),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:\"createFaceMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ca(e),o=new Xr(e.payload),s=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(s),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:\"createMergerMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=this._getNickAndAvatarByUserID(t),o=new ca(e),s=new ia(e.payload);return o.setElement(s),o.setNickAndAvatar(n),o.setNameCard(this._getNameCardByGroupID(o)),o.setRelayFlag(!0),o}},{key:\"createForwardMessage\",value:function(e){var t=e.to,n=e.conversationType,o=e.priority,s=e.payload,r=e.needReadReceipt,a=e.receiverList,i=this.getMyUserID(),u=this._getNickAndAvatarByUserID(i);if(s.type===k.MSG_GRP_TIP)return ha({code:Or.MESSAGE_FORWARD_TYPE_INVALID});var c={to:t,conversationType:n,conversationID:\"\".concat(n).concat(t),priority:o,isPlaceMessage:0,status:on.UNSEND,currentUser:i,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||s.cloudCustomData||\"\",needReadReceipt:r,receiverList:a,isSupportExtension:e.isSupportExtension||!1},l=new ca(c);return l.setElement(s.getElements()[0]),l.setNickAndAvatar(u),l.setNameCard(this._getNameCardByGroupID(s)),l.setRelayFlag(!0),l}},{key:\"downloadMergerMessage\",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:\"createFileMessage\",value:function(e){if(re){if(!Q&&!Z&&!oe)return;var n=ie.getSystemInfoSync().SDKVersion;if(Q&&Ft(n,\"2.5.0\")<0)return void this.outputWarning(\"WXChooseMessageFile\");if(Z&&Ft(n,\"1.18.0\")<0)return void this.outputWarning(\"QQChooseMessageFile\")}if(ae||oe){if(rt(e.payload.file)){var o=e.payload.file;e.payload.file={files:[o]}}else if(ct(e.payload.file)&&\"undefined\"!=typeof uni){var s=e.payload.file,r=s.tempFiles,a=s.files,i=null;lt(r)?i=r[0]:lt(a)&&(i=a[0]),e.payload.file={files:[i]}}}else if(Q||Z){var u=e.payload.file.tempFiles,c=t(t({},u[0]),{},{url:u[0].path});e.payload.file={files:[c]}}var l=this.getMyUserID();e.currentUser=l,e.senderTinyID=this.getMyTinyID();var d=new ca(e),p=new na({uuid:this._generateUUID(e.payload.file),file:e.payload.file}),g=this._getNickAndAvatarByUserID(l);return d.setElement(p),d.setNickAndAvatar(g),d.setNameCard(this._getNameCardByGroupID(d)),this._messageOptionsMap.set(d.clientSequence,e),d}},{key:\"createLocationMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ca(e),o=new ra(e.payload),s=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(s),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:\"_onCannotFindModule\",value:function(){return ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"sendMessageInstance\",value:function(e,t){var n=this;if(!1===this.getModule(uo).filterMessage(e,t))return this._onSendMessageFailed(e,new da({code:Or.PROFANITY_FOUND}));var o,s=null;switch(e.conversationType){case k.CONV_C2C:if(!(s=this.getModule(qn)))return this._onCannotFindModule();break;case k.CONV_GROUP:if(!(s=this.getModule(xn)))return this._onCannotFindModule();if(At({groupID:e.to})){var r=s.getLocalGroupProfile(e.to);if(r&&r.isSupportTopic)return ha({code:Or.MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL})}break;default:return ha({code:Or.MESSAGE_SEND_INVALID_CONVERSATION_TYPE})}var a=this.getModule(Xn),i=this.getModule(xn);return a.upload(e).then((function(){n._getSendMessageSpecifiedKey(e)===Fr&&n.getModule(ro).addSuccessCount(qr);return i.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return ha({code:Or.MESSAGE_FILE_URL_IS_EMPTY});n._addSendMessageTotalCount(e),o=Date.now();var r=function(e){var t=\"utf-8\";ae&&document&&(t=document.charset.toLowerCase());var n,o,s=0;if(o=e.length,\"utf-8\"===t||\"utf8\"===t)for(var r=0;r<o;r++)(n=e.codePointAt(r))<=127?s+=1:n<=2047?s+=2:n<=65535?s+=3:(s+=4,r++);else if(\"utf-16\"===t||\"utf16\"===t)for(var a=0;a<o;a++)(n=e.codePointAt(a))<=65535?s+=2:(s+=4,a++);else s=e.replace(/[^\\x00-\\xff]/g,\"aa\").length;return s}(JSON.stringify(e));return e.type===k.MSG_MERGER&&r>11264?n._mergerMessageHandler.uploadMergerMessage(e,r).then((function(o){var s=n._mergerMessageHandler.createMergerMessagePack(e,t,o);return n.request(s)})):(n.getModule(Kn).setMessageRandom(e),e.conversationType===k.CONV_C2C||e.conversationType===k.CONV_GROUP?s.sendMessage(e,t):void 0)})).then((function(r){var a=r.data,i=a.time,u=a.sequence,c=a.readReceiptCode;at(c)&&0!==c&&(new jr(\"sendMessageWithReceipt\").setMessage(\"from:\".concat(e.from,\" to:\").concat(e.to,\" sequence:\").concat(u,\" readReceiptCode:\").concat(c)).end(),Ve.w(\"\".concat(n._n,\".sendMessageInstance readReceiptCode:\").concat(c,\" message:\").concat(n.getErrorMessage(c))));n._addSendMessageSuccessCount(e,o),n._messageOptionsMap.delete(e.clientSequence);var l=n.getModule(Kn);e.status=on.SUCCESS,e.time=i;var d=!1;if(e.conversationType===k.CONV_GROUP)e.sequence=u;else if(e.conversationType===k.CONV_C2C){var p=l.getLatestMessageSentByMe(e.conversationID);if(p){var g=p.nick,_=p.avatar;g===e.nick&&_===e.avatar||(d=!0)}}if(d&&l.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),s.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{l.appendToMessageList(e);var h=e;ct(t)&&ct(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,h=\"\"),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0));var f=e.conversationType;if(Nt(e.to))f=k.CONV_TOPIC,n.getModule(Hn).onMessageSent({groupID:Wt(e.to),topicID:e.to,lastMessage:h});l.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:f,subType:e.conversationSubType,lastMessage:h}]})}return e.getRelayFlag()||\"TIMImageElem\"!==e.type||xt(e.payload.imageInfoArray),la({message:e})}))})).catch((function(t){return n._onSendMessageFailed(e,t)}))}},{key:\"_onSendMessageFailed\",value:function(e,t){e.status=on.FAIL,this.getModule(Kn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new jr(\"sendMessage\");return n.setMessage(\"tjg_id:\".concat(this.generateTjgID(e),\" type:\").concat(e.type,\" from:\").concat(e.from,\" to:\").concat(e.to)),this.probeNetwork().then((function(e){var o=m(e,2),s=o[0],r=o[1];n.setError(t,s,r).end()})),Ve.e(\"\".concat(this._n,\"._onSendMessageFailed error:\"),t),ha(new da({code:t&&t.code?t.code:Or.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:\"_getSendMessageSpecifiedKey\",value:function(e){if([k.MSG_IMAGE,k.MSG_AUDIO,k.MSG_VIDEO,k.MSG_FILE].includes(e.type))return Fr;if(e.conversationType===k.CONV_C2C)return Pr;if(e.conversationType===k.CONV_GROUP){var t=this.getModule(xn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Lt(n)?wr:br}}},{key:\"_addSendMessageTotalCount\",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(ro).addTotalCount(t)}},{key:\"_addSendMessageSuccessCount\",value:function(e,t){var n=Math.abs(Date.now()-t),o=this._getSendMessageSpecifiedKey(e);if(o){var s=this.getModule(ro);s.addSuccessCount(o),s.addCost(o,n)}}},{key:\"_addSendMessageFailCountOnUser\",value:function(e,t){var n,o,s=t.code,r=void 0===s?-1:s,a=this.getModule(ro),i=this._getSendMessageSpecifiedKey(e);i===Fr&&(n=r,o=!1,Ui.includes(n)&&(o=!0),o)?a.addFailedCountOfUserSide(qr):Pi(r)&&i&&a.addFailedCountOfUserSide(i)}},{key:\"resendMessage\",value:function(e){return e.isResend=!0,e.status=on.UNSEND,this.sendMessageInstance(e)}},{key:\"revokeMessage\",value:function(e){var t=this,n=null;if(e.conversationType===k.CONV_C2C?n=this.getModule(qn):e.conversationType===k.CONV_GROUP&&(n=this.getModule(xn)),!n)return this._onCannotFindModule();var o=new jr(\"revokeMessage\");o.setMessage(\"tjg_id:\".concat(this.generateTjgID(e),\" type:\").concat(e.type,\" from:\").concat(e.from,\" to:\").concat(e.to));var s=\"\".concat(this._n,\".\").concat(\"revokeMessage\");return n.revokeMessage(e).then((function(n){var r=n.data.recallRetList;if(!$t(r)&&0!==r[0].retCode){var a=new da({code:r[0].retCode,data:{message:e}});return o.setCode(a.code).setMoreMessage(a.message).end(),ha(a)}return Ve.i(\"\".concat(s,\" ok. ID:\").concat(e.ID)),e.isRevoked=!0,o.end(),t.getModule(Kn).onMessageRevoked([e]),la({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];o.setError(n,s,r).end()}));var r=new da({code:n&&n.code?n.code:Or.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:void 0,data:{message:e}});return Ve.w(\"\".concat(s,\" failed. error:\"),n),ha(r)}))}},{key:\"deleteMessage\",value:function(e){var t=this,n=null,o=e[0],s=o.conversationID,r=\"\",a=[],i=[];if(o.conversationType===k.CONV_C2C)n=this.getModule(qn),r=s.replace(k.CONV_C2C,\"\"),e.forEach((function(e){e&&e.status===on.SUCCESS&&e.conversationID===s&&(e._onlineOnlyFlag||a.push(\"\".concat(e.sequence,\"_\").concat(e.random,\"_\").concat(e.time)),i.push(e))}));else if(o.conversationType===k.CONV_GROUP)n=this.getModule(xn),r=s.replace(k.CONV_GROUP,\"\"),e.forEach((function(e){e&&e.status===on.SUCCESS&&e.conversationID===s&&(e._onlineOnlyFlag||a.push(\"\".concat(e.sequence)),i.push(e))}));else if(o.conversationType===k.CONV_SYSTEM)return ha({code:Or.CANNOT_DELETE_GROUP_SYSTEM_NOTICE});if(!n)return this._onCannotFindModule();if(0===a.length)return this._onMessageDeleted(i);a.length>30&&(a=a.slice(0,30),i=i.slice(0,30));var u=new jr(\"deleteMessage\");u.setMessage(\"to:\".concat(r,\" count:\").concat(a.length));var c=\"\".concat(this._n,\".\").concat(\"deleteMessage\");return n.deleteMessage({to:r,keyList:a}).then((function(e){return u.end(),Ve.i(\"\".concat(c,\" ok\")),t._onMessageDeleted(i)})).catch((function(e){t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),Ve.w(\"\".concat(c,\" failed. error:\"),e);var n=new da({code:e&&e.code?e.code:Or.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:void 0});return ha(n)}))}},{key:\"_onMessageDeleted\",value:function(e){return this.getModule(Kn).onMessageDeleted(e),_a({messageList:e})}},{key:\"translateText\",value:function(e){var n=\"\".concat(this._n,\".\").concat(\"translateText\"),o=e.sourceTextList,s=e.sourceLanguage,r=e.targetLanguage,a=new jr(\"translateText\");return a.setMessage(\"sourceLanguage:\".concat(s,\" targetLanguage:\").concat(r)),this.request({protocolName:Rr,requestData:{sourceTextList:o,source:s||\"auto\",target:r,from:this.getMyTinyID(),SDKAppID:this.getSDKAppID()}}).then((function(e){var o=e.data,s=o.error,r=o.requestID,i=o.translatedTextList;if(0===s.code)return a.end(),Ve.i(\"\".concat(n,\" ok. requestID:\").concat(r)),la({translatedTextList:i});throw t(t({},s),{},{requestID:r})})).catch((function(e){return a.setCode(e.code).setMoreMessage(e.requestID).end(),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha({code:Or.TRANSLATE_TEXT_FAIL})}))}},{key:\"modifyRemoteMessage\",value:function(e){var t=this,n=null,o=e.conversationType,s=e.to;if(this.getModule(xn).isMessageFromOrToAVChatroom(s))return ha({code:Or.MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM,data:{message:e}});if(!1===this.getModule(uo).filterMessage(e))return ha({code:Or.PROFANITY_FOUND,data:{message:e}});o===k.CONV_C2C?n=this.getModule(qn):o===k.CONV_GROUP&&(n=this.getModule(xn));var r=new jr(\"modifyMessage\");r.setMessage(\"to:\".concat(s));var a=\"\".concat(this._n,\".modifyRemoteMessage\");return n.modifyRemoteMessage(e).then((function(n){r.end(),Ve.i(\"\".concat(a,\" ok\"));var o=t._onModifyRemoteMessageResp(e,n.data);return la({message:o})})).catch((function(n){if(r.setCode(n.code).setMoreMessage(n.message).end(),Ve.w(\"\".concat(a,\" failed. error:\"),n),20027===n.code){var o=t._onModifyRemoteMessageResp(e,n.data);return ha({code:Or.MESSAGE_MODIFY_CONFLICT,data:{message:o}})}return ha({code:n.code,message:n.message,data:{message:e}})}))}},{key:\"_onModifyRemoteMessageResp\",value:function(e,t){Ve.d(\"\".concat(this._n,\"._onModifyRemoteMessageResp options:\"),t);var n=e.conversationType,o=e.from,s=e.to,r=e.random,a=e.sequence,i=e.time,u=t.elements,c=t.messageVersion,l=t.cloudCustomData,d=void 0===l?\"\":l;return this.getModule(Kn).onMessageModified({conversationType:n,from:o,to:s,time:i,random:r,sequence:a,elements:u,cloudCustomData:d,messageVersion:c})}},{key:\"_generateUUID\",value:function(e){var t=this.getModule(Wn),n=\"\".concat(t.getSDKAppID(),\"-\").concat(t.getUserID(),\"-\").concat(function(){for(var e=\"\",t=32;t>0;--t)e+=It[Math.floor(Math.random()*Ct)];return e}()),o=e.name||e.value||e.url||e.tempFilePath,s=o&&o.slice(o.lastIndexOf(\".\")+1);return s&&(n=\"\".concat(n,\".\").concat(s)),n}},{key:\"getMessageOption\",value:function(e){return this._messageOptionsMap.get(e)}},{key:\"_getNickAndAvatarByUserID\",value:function(e){return this.getModule(Fn).getNickAndAvatarByUserID(e)}},{key:\"_getNameCardByGroupID\",value:function(e){if(e.conversationType===k.CONV_GROUP){var t=this.getModule(xn);if(t)return t.getMyNameCardByGroupID(e.to)}return\"\"}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._messageOptionsMap.clear()}}]),s}(go),wi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"MessageExtensionModule\",s.messageExtensionMap=new Map,s.globalSeqMap=new Map,s.getMessageExtensionsMap=new Map,s}return r(n,[{key:\"onMessageExtensionNotify\",value:function(e){var t=this,n=e.dataList,o=n.messageInfo,s=n.operateType,r=n.operateResultList,a=n.tinyID,i=n.globalSequence,u=o.clientTime,c=o.random,l=\"\".concat(a,\"-\").concat(u,\"-\").concat(c),d=[],p=[];Ve.l(\"\".concat(this._n,\".onMessageExtensionNotify messageID:\").concat(l,\" operateType:\").concat(s,\" globalSequence:\").concat(i)),this._updateGlobalSequence(l,i);var g=!1,_=!1;r.forEach((function(e){var n=e.extensions,o=void 0===n?[]:n,r=e.clearSequence;if(1===s)g=!0,o.forEach((function(e){d.push({key:e.key,value:e.value})})),t._updateLocalExtension(l,o);else if(2===s)_=!0,o.forEach((function(e){p.push(e.key)})),t._updateLocalExtension(l,o);else if(3===s){if(_=!0,t._hasLocalExtension(l))t._getLocalExtension(l).forEach((function(e,t){e.seq<=r&&!$t(e.value)&&p.push(t)}));t._clearLocalExtension(l,r)}})),g&&this.emitOuterEvent(E.MESSAGE_EXTENSIONS_UPDATED,{messageID:l,extensions:d}),_&&this.emitOuterEvent(E.MESSAGE_EXTENSIONS_DELETED,{messageID:l,keyList:p})}},{key:\"setMessageExtensions\",value:function(e,t){var n=this;if(!this.canIUse(B.MSG_EXT))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var o=\"\".concat(this._n,\".\").concat(\"setMessageExtensions\"),s=e.ID,r=e.conversationID,a=e.sequence,i=e.time,u=v(t);t.length>20&&(u=t.slice(0,20),Ve.w(\"\".concat(o,\". the length of extensions cannot exceed 20.\")));var c=\"conversationID:\".concat(r,\" messageID:\").concat(s,\" sequence:\").concat(a,\" time:\").concat(i,\" count:\").concat(u.length),l=new jr(\"setMessageExtensions\");return l.setMessage(c),Ve.l(\"\".concat(o,\" \").concat(c)),this._modifyMessageExtensions(e,u).then((function(e){var t=e.resultList,n=e.successCount,s=e.failureCount,r=\"success count:\".concat(n,\" fail count:\").concat(s);return l.setMoreMessage(r).end(),Ve.l(\"\".concat(o,\" ok. \").concat(r)),la({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];l.setError(e,o,s).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}},{key:\"getMessageExtensions\",value:function(e){var t=this;if(!this.canIUse(B.MSG_EXT))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"getMessageExtensions\"),o=e.ID,s=e.conversationID,r=e.sequence,a=e.time,i=\"conversationID:\".concat(s,\" messageID:\").concat(o,\" sequence:\").concat(r,\" time:\").concat(a),u=new jr(\"getMessageExtensions\");u.setMessage(i),Ve.l(\"\".concat(n,\" \").concat(i));var c=void 0;return this.getMessageExtensionsMap.has(o)&&(c=this._getGlobalSequence(o)),this._getMessageExtensions(e,c).then((function(e){return u.end(),Ve.l(\"\".concat(n,\" ok. total count:\").concat(e.length)),dt(c)&&e.length>0&&t.getMessageExtensionsMap.set(o,1),la({extensions:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"deleteMessageExtensions\",value:function(e,t){var n=this;if(!this.canIUse(B.MSG_EXT))return ha({code:Or.CANNOT_USE_COMMERCIAL_ABILITY});var o=\"\".concat(this._n,\".\").concat(\"deleteMessageExtensions\"),s=[],r=3;$t(t)||(r=2,t.forEach((function(e){s.push({key:e,value:\"\",seq:0})})));var a=e.ID,i=e.conversationID,u=e.sequence,c=e.time,l=\"conversationID:\".concat(i,\" messageID:\").concat(a,\" sequence:\").concat(u,\" time:\").concat(c,\" operateType:\").concat(r),d=new jr(\"deleteMessageExtensions\");return d.setMessage(l),Ve.l(\"\".concat(o,\" \").concat(l)),this._modifyMessageExtensions(e,s,r).then((function(e){var t=e.resultList,n=e.successCount,s=e.failureCount,a=\"\";return 2===r&&(a=\"success count:\".concat(n,\" fail count:\").concat(s)),d.setMoreMessage(\"\".concat(a)).end(),Ve.l(\"\".concat(o,\" ok. \").concat(a)),la({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];d.setError(e,o,s).end()})),Ve.e(\"\".concat(o,\" failed. error:\"),e),ha(e)}))}},{key:\"_modifyMessageExtensions\",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=Nt(e.to)?k.CONV_TOPIC:e.conversationType,r=void 0;3!==o&&(r=this._getRequestExtensions(e,t));var a=null;switch(s){case k.CONV_C2C:a=this.getModule(qn);break;case k.CONV_GROUP:a=this.getModule(xn);break;case k.CONV_TOPIC:a=this.getModule(Hn);break;default:return ha({code:Or.CANNOT_FIND_MODULE})}return a.modifyMessageExtensions(e,r,o).then((function(t){var o=t.data,s=o.extensions,r=o.seq,a=[],i=0,u=0,c=[];return(s=$t(s)?[]:s).forEach((function(e){var t=e.errorCode,n=e.extension,o=n.key,s=n.value,r=n.seq;a.push({code:t,key:o,value:s}),0===t?i++:u++,c.push({key:o,value:s,seq:r})})),n._updateGlobalSequence(e.ID,r),c.length>0&&(n._updateLocalExtension(e.ID,c),c=null),{resultList:a,successCount:i,failureCount:u}})).catch((function(e){return ha(e)}))}},{key:\"_getRequestExtensions\",value:function(e,t){var n=[];if(this._hasLocalExtension(e.ID)){var o=this._getLocalExtension(e.ID);return t.forEach((function(e){var t=e.key,s=e.value,r=0;o.has(t)&&(r=o.get(t).seq),n.push({key:t,value:s,seq:r})})),n}return t.forEach((function(e){var t=e.key,o=e.value;n.push({key:t,value:o,seq:0})})),n}},{key:\"_getMessageExtensions\",value:function(e,t){var n=this,o=\"\".concat(this._n,\"._getMessageExtensions\"),s=e.ID,r=e.to,a=null;switch(Nt(r)?k.CONV_TOPIC:e.conversationType){case k.CONV_C2C:a=this.getModule(qn);break;case k.CONV_GROUP:a=this.getModule(xn);break;case k.CONV_TOPIC:a=this.getModule(Hn);break;default:return ha({code:Or.CANNOT_FIND_MODULE})}return a.getMessageExtensions(e,t).then((function(t){var r=t.data,a=r.extensions,i=r.completeFlag,u=r.globalSequence,c=r.clearSequence;if(a=$t(a)?[]:a,Ve.l(\"\".concat(o,\" ok. completeFlag:\").concat(i,\" globalSequence:\").concat(u,\" clearSequence:\").concat(c,\" count:\").concat(a.length)),n._updateLocalExtension(s,a),n._clearLocalExtension(s,c),n._updateGlobalSequence(s,u),1!==i){var l=a.slice(-1)[0].seq+1;return n._getMessageExtensions(e,l)}return n._getLocalExtensions(s)})).catch((function(e){return ha(e)}))}},{key:\"_hasLocalExtension\",value:function(e){return this.messageExtensionMap.has(e)}},{key:\"_getLocalExtension\",value:function(e){return this.messageExtensionMap.get(e)}},{key:\"_updateLocalExtension\",value:function(e,t){this._hasLocalExtension(e)||this.messageExtensionMap.set(e,new Map);var n=this._getLocalExtension(e);t.forEach((function(e){var t=e.key,o=e.value,s=void 0===o?\"\":o,r=e.seq;n.set(t,{value:s,seq:r})}))}},{key:\"_clearLocalExtension\",value:function(e,t){if(!(t<=0)&&this._hasLocalExtension(e)){var n=this._getLocalExtension(e);n.forEach((function(e,o){e.seq<=t&&n.delete(o)}))}}},{key:\"_getLocalExtensions\",value:function(e){var t=[];this._hasLocalExtension(e)&&this._getLocalExtension(e).forEach((function(e,n){var o=e.value;$t(o)||t.push({key:n,value:o})}));return t}},{key:\"_getGlobalSequence\",value:function(e){return this.globalSeqMap.get(e)}},{key:\"_updateGlobalSequence\",value:function(e,t){this.globalSeqMap.set(e,t)}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this.messageExtensionMap.clear(),this.globalSeqMap.clear(),this.getMessageExtensionsMap.clear()}}]),n}(go),Fi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"ComboMessageModule\",s}return r(n,[{key:\"sendMessage\",value:function(e){var t=this,n=this._constructMessageInstance(e);if(null===n)return ha({code:Or.MESSAGE_SEND_FAIL});this._addSendMessageTotalCount(n);var o=Date.now();return this.getModule(Kn).setMessageRandom(n),this._sendComboMessage(n,e).then((function(e){var s=e.data,r=s.time,a=s.sequence,i=s.readReceiptCode;at(i)&&0!==i&&(new jr(\"sendMessageWithReceipt\").setMessage(\"from:\".concat(n.from,\" to:\").concat(n.to,\" sequence:\").concat(a,\" readReceiptCode:\").concat(i)).end(),Ve.w(\"\".concat(t._n,\".sendMessage readReceiptCode:\").concat(i,\" message:\").concat(t.getErrorMessage(i))));t._addSendMessageSuccessCount(n,o);var u=t.getModule(Kn);n.status=on.SUCCESS,n.time=r,n.conversationType===k.CONV_GROUP&&(n.sequence=a),u.appendToMessageList(n);var c=n;return!0===n._isExcludedFromLastMessage&&(c=\"\"),u.onMessageSent({conversationOptionsList:[{conversationID:n.conversationID,unreadCount:0,type:n.conversationType,subType:n.conversationSubType,lastMessage:c}]}),la({message:n})})).catch((function(e){return t._onSendMessageFailed(n,e)}))}},{key:\"_sendComboMessage\",value:function(e,t){var n=this._m.getModule($n),o=\"\";return e.conversationType===k.CONV_C2C&&(o=\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SEND_MESSAGE)),e.conversationType===k.CONV_GROUP&&(o=\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SEND_GROUP_MESSAGE)),n.sendComboMessage({servcmd:o,data:t})}},{key:\"_constructMessageInstance\",value:function(e){var t=\"\".concat(this._n,\"._constructMessageInstance\"),n=null;try{var o=this.getMyUserID(),s={};if(s.senderTinyID=this.getMyTinyID(),s.currentUser=o,s.from=e.From_Account||o,e.GroupId?(s.conversationID=\"\".concat(k.CONV_GROUP).concat(e.GroupId),s.conversationType=k.CONV_GROUP,s.to=e.GroupId):e.To_Account&&(s.conversationID=\"\".concat(k.CONV_C2C).concat(e.To_Account),s.conversationType=k.CONV_C2C,s.to=e.To_Account),s.time=e.MsgTimeStamp||0,s.random=e.Random||e.MsgRandom||0,s.priority=e.MsgPriority,it(e.CloudCustomData)&&e.CloudCustomData.length>0&&(s.cloudCustomData=e.CloudCustomData),lt(e.SendMsgControl)&&(s.messageControlInfo={},e.SendMsgControl.includes(\"NoUnread\")&&(s.messageControlInfo.excludedFromUnreadCount=1),e.SendMsgControl.includes(\"NoLastMsg\")&&(s.messageControlInfo.excludedFromLastMessage=1)),s.conversationType===k.CONV_GROUP&&lt(e.To_Account)&&e.To_Account.length>0){var r=e.To_Account;e.To_Account.length>50&&(r=e.To_Account.slice(0,50),Ve.w(\"\".concat(t,\" To_Account must be less than or equal to 50.\"))),s.receiverList=v(r),e.To_Account=v(r)}1!==e.IsNeedReadReceipt&&1!==e.NeedReadReceipt||(s.needReadReceipt=!0),1===e.SupportMessageExtension&&(s.isSupportExtension=!0),(n=new ca(s)).status=on.UNSEND,e.MsgClientTime=n.clientTime,n.conversationType===k.CONV_C2C&&(e.MsgSeq=n.sequence);for(var a,i=e.MsgBody.length,u=0;u<i;u++)\"TIMTextElem\"===(a=e.MsgBody[u]).MsgType?n.setTextElement(a.MsgContent.Text):\"TIMCustomElem\"===a.MsgType?n.setCustomElement({data:a.MsgContent.Data||\"\",description:a.MsgContent.Desc||\"\",extension:a.MsgContent.Ext||\"\"}):\"TIMFaceElem\"===a.MsgType&&n.setFaceElement({index:a.MsgContent.Index,data:a.MsgContent.Data});var c=n.getElements();n.payload=c[0].content,n.type=c[0].type}catch(l){n=null,Ve.e(\"\".concat(t,\" failed. error:\"),l)}return n}},{key:\"_onSendMessageFailed\",value:function(e,t){e.status=on.FAIL,this.getModule(Kn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new jr(\"sendMessage\");return n.setMessage(\"tjg_id:\".concat(this.generateTjgID(e),\" type:\").concat(e.type,\" from:\").concat(e.from,\" to:\").concat(e.to)),this.probeNetwork().then((function(e){var o=m(e,2),s=o[0],r=o[1];n.setError(t,s,r).end()})),Ve.e(\"\".concat(this._n,\"._onSendMessageFailed error:\"),t),ha(new da({code:t&&t.code?t.code:Or.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:\"_getSendMessageSpecifiedKey\",value:function(e){if(e.conversationType===k.CONV_C2C)return Pr;if(e.conversationType===k.CONV_GROUP){var t=this.getModule(xn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Lt(n)?wr:br}}},{key:\"_addSendMessageTotalCount\",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(ro).addTotalCount(t)}},{key:\"_addSendMessageSuccessCount\",value:function(e,t){var n=Math.abs(Date.now()-t),o=this._getSendMessageSpecifiedKey(e);if(o){var s=this.getModule(ro);s.addSuccessCount(o),s.addCost(o,n)}}},{key:\"_addSendMessageFailCountOnUser\",value:function(e,t){var n=t.code,o=void 0===n?-1:n,s=this.getModule(ro),r=this._getSendMessageSpecifiedKey(e);Pi(o)&&r&&s.addFailedCountOfUserSide(r)}}]),n}(go),qi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"PluginModule\",s.plugins={},s}return r(n,[{key:\"registerPlugin\",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new jr(\"registerPlugin\").setMessage(\"\".concat(Object.keys(e))).end()}},{key:\"getPlugin\",value:function(e){return this.plugins[e]}},{key:\"reset\",value:function(){}}]),n}(go),xi=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"SyncUnreadMessageModule\",t._cookie=\"\",t._onlineSyncFlag=!1,t.getInnerEmitterInstance().on(va,t._onLoginSuccess,_(t)),t}return r(s,[{key:\"_onLoginSuccess\",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:\"_startSync\",value:function(e){var n=this,o=e.cookie,s=e.syncFlag,r=e.isOnlineSync,a=\"\".concat(this._n,\"._startSync\");Ve.l(\"\".concat(a,\" cookie:\").concat(o,\" syncFlag:\").concat(s,\" isOnlineSync:\").concat(r)),this.request({protocolName:vo,requestData:{cookie:o,syncFlag:s,isOnlineSync:r}}).then((function(e){var o=e.data,s=o.cookie,r=o.syncFlag;n._cookie=s,$t(s)||(0===r||1===r?(n._dispatchUnreadMessage(t(t({},e.data),{},{isSyncingEnded:!1})),n._startSync({cookie:s,syncFlag:r,isOnlineSync:0})):2===r&&n._dispatchUnreadMessage(t(t({},e.data),{},{isSyncingEnded:!0})))})).catch((function(e){Ve.e(\"\".concat(a,\" failed. error:\"),e)}))}},{key:\"_dispatchUnreadMessage\",value:function(e){e.eventArray&&this.getModule($n).onMessage({head:{},body:{eventArray:e.eventArray,isInstantMessage:this._onlineSyncFlag,isSyncingEnded:e.isSyncingEnded}});this.getModule(qn).onNewC2CMessage({dataList:e.messageList,isInstantMessage:!!e.isSyncingEnded&&this._onlineSyncFlag,C2CRemainingUnreadList:e.C2CRemainingUnreadList,C2CPairUnreadList:e.C2CPairUnreadList})}},{key:\"startOnlineSync\",value:function(){Ve.l(\"\".concat(this._n,\".startOnlineSync\")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:\"startSyncOnReconnected\",value:function(){Ve.l(\"\".concat(this._n,\".startSyncOnReconnected.\")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._onlineSyncFlag=!1,this._cookie=\"\"}}]),s}(go),Vi={request:{toAccount:\"To_Account\",fromAccount:\"From_Account\",to:\"To_Account\",from:\"From_Account\",groupID:\"GroupId\",groupAtUserID:\"GroupAt_Account\",extension:\"Ext\",data:\"Data\",description:\"Desc\",elements:\"MsgBody\",sizeType:\"Type\",downloadFlag:\"Download_Flag\",thumbUUID:\"ThumbUUID\",videoUUID:\"VideoUUID\",remoteAudioUrl:\"Url\",remoteVideoUrl:\"VideoUrl\",videoUrl:\"\",imageUrl:\"URL\",fileUrl:\"Url\",uuid:\"UUID\",priority:\"MsgPriority\",receiverUserID:\"To_Account\",receiverGroupID:\"GroupId\",messageSender:\"SenderId\",messageReceiver:\"ReceiverId\",nick:\"From_AccountNick\",avatar:\"From_AccountHeadurl\",messageNumber:\"MsgNum\",pbDownloadKey:\"PbMsgKey\",downloadKey:\"JsonMsgKey\",applicationType:\"PendencyType\",userIDList:\"To_Account\",groupNameList:\"GroupName\",userID:\"To_Account\",groupAttributeList:\"GroupAttr\",mainSequence:\"AttrMainSeq\",avChatRoomKey:\"BytesKey\",attributeControl:\"AttrControl\",sequence:\"seq\",messageControlInfo:\"SendMsgControl\",updateSequence:\"UpdateSeq\",clientTime:\"MsgClientTime\",sequenceList:\"MsgSeqList\",topicID:\"TopicId\",customData:\"CustomString\",isSupportTopic:\"SupportTopic\",isWebUniapp:\"is_web_uniapp\",isSupportExtension:\"SupportMessageExtension\",messageSequence:\"MsgSeq\",messageKey:\"MsgKey\",startSequence:\"startSeq\",simplifiedMessage:\"DownsizeFlag\"},response:{MsgPriority:\"priority\",ThumbUUID:\"thumbUUID\",VideoUUID:\"videoUUID\",Download_Flag:\"downloadFlag\",GroupId:\"groupID\",Member_Account:\"userID\",MsgList:\"messageList\",SyncFlag:\"syncFlag\",To_Account:\"to\",From_Account:\"from\",MsgSeq:\"sequence\",MsgRandom:\"random\",MsgTime:\"time\",MsgTimeStamp:\"time\",MsgContent:\"content\",MsgBody:\"elements\",From_AccountNick:\"nick\",From_AccountHeadurl:\"avatar\",GroupWithdrawInfoArray:\"revokedInfos\",GroupReadInfoArray:\"groupMessageReadNotice\",LastReadMsgSeq:\"lastMessageSeq\",WithdrawC2cMsgNotify:\"c2cMessageRevokedNotify\",C2cWithdrawInfoArray:\"revokedInfos\",C2cReadedReceipt:\"c2cMessageReadReceipt\",ReadC2cMsgNotify:\"c2cMessageReadNotice\",LastReadTime:\"peerReadTime\",MsgRand:\"random\",MsgType:\"type\",MsgShow:\"messageShow\",NextMsgSeq:\"nextMessageSeq\",FaceUrl:\"avatar\",ProfileDataMod:\"profileModify\",Profile_Account:\"userID\",ValueBytes:\"value\",ValueNum:\"value\",NoticeSeq:\"noticeSequence\",NotifySeq:\"notifySequence\",MsgFrom_AccountExtraInfo:\"messageFromAccountExtraInformation\",Operator_Account:\"operatorID\",OpType:\"operationType\",ReportType:\"operationType\",UserId:\"userID\",User_Account:\"userID\",List_Account:\"userIDList\",MsgOperatorMemberExtraInfo:\"operatorInfo\",MsgMemberExtraInfo:\"memberInfoList\",ImageUrl:\"avatar\",NickName:\"nick\",MsgGroupNewInfo:\"newGroupProfile\",MsgAppDefinedData:\"groupCustomField\",Owner_Account:\"ownerID\",GroupFaceUrl:\"avatar\",GroupIntroduction:\"introduction\",GroupNotification:\"notification\",GroupApplyJoinOption:\"joinOption\",MsgKey:\"messageKey\",GroupInfo:\"groupProfile\",ShutupTime:\"muteTime\",Desc:\"description\",Ext:\"extension\",GroupAt_Account:\"groupAtUserID\",MsgNum:\"messageNumber\",PbMsgKey:\"pbDownloadKey\",JsonMsgKey:\"downloadKey\",MsgModifiedFlag:\"isModified\",PendencyItem:\"applicationItem\",PendencyType:\"applicationType\",AddTime:\"time\",AddSource:\"source\",AddWording:\"wording\",ProfileImImage:\"avatar\",PendencyAdd:\"friendApplicationAdded\",FrienPencydDel_Account:\"friendApplicationDeletedUserIDList\",Peer_Account:\"userID\",GroupAttr:\"groupAttributeList\",GroupAttrAry:\"groupAttributeList\",AttrMainSeq:\"mainSequence\",seq:\"sequence\",GroupAttrOption:\"groupAttributeOption\",BytesChangedKeys:\"changedKeyList\",GroupAttrInfo:\"groupAttributeList\",GroupAttrSeq:\"mainSequence\",PushChangedAttrValFlag:\"isWithChangedAttributeInfo\",SubKeySeq:\"sequence\",Val:\"value\",MsgGroupFromCardName:\"senderNameCard\",MsgGroupFromNickName:\"senderNick\",C2cNick:\"peerNick\",C2cImage:\"peerAvatar\",SendMsgControl:\"messageControlInfo\",NoLastMsg:\"excludedFromLastMessage\",NoUnread:\"excludedFromUnreadCount\",UpdateSeq:\"updateSequence\",MuteNotifications:\"muteFlag\",MsgClientTime:\"clientTime\",TinyId:\"tinyID\",GroupMsgReceiptList:\"readReceiptList\",ReadNum:\"readCount\",UnreadNum:\"unreadCount\",TopicId:\"topicID\",MillionGroupFlag:\"communityType\",SupportTopic:\"isSupportTopic\",MsgTopicNewInfo:\"newTopicInfo\",ShutupAll:\"muteAllMembers\",CustomString:\"customData\",TopicFaceUrl:\"avatar\",TopicIntroduction:\"introduction\",TopicNotification:\"notification\",TopicIdArray:\"topicIDList\",MsgVersion:\"messageVersion\",C2cMsgModNotifys:\"c2cMessageModified\",GroupMsgModNotifys:\"groupMessageModified\",ApplyJoinOption:\"joinOption\",MsgFlag:\"messageRemindType\",AtInfoList:\"groupAtInfoList\",AtFlagList:\"groupAtType\",AtMsgSeq:\"sequence\",BanDuration:\"duration\",BanDescription:\"reason\",NotVisible:\"invisible\",BytesTag:\"tag\",BytesValue:\"value\",RptBytesValue:\"value\",LatestSeq:\"globalSequence\",ClearSeq:\"clearSequence\",SupportMessageExtension:\"isSupportExtension\",ExtensionList:\"extensions\",GroupCounter:\"counterList\",Revoker_Account:\"revoker\",MsgExtensionNotify:\"messageExtensionNotify\",ExtensionC2cMsgInfo:\"messageInfo\",ExtensionGroupMsgInfo:\"messageInfo\",MsgOptType:\"operateType\",SetKVInfo:\"operateResultList\",DeleteKVInfo:\"operateResultList\",ClearKVInfo:\"operateResultList\",MsgKeyValue:\"extensions\",ClearMsgSeq:\"clearSequence\",MsgLastSeq:\"globalSequence\",InviteJoinOption:\"inviteOption\",MemberList_Account:\"inviteeList\",MsgMemberExtraInfoList:\"inviteeInfoList\",E:\"event\",GInf:\"groupProfile\",MCT:\"clientTime\",MR:\"random\",MP:\"priority\",MTS:\"time\",GId:\"groupID\",MS:\"sequence\",CCD:\"cloudCustomData\",F_Account:\"from\",F_Hd:\"avatar\",F_NN:\"nick\",GN:\"groupName\",GT:\"groupType\",IsSys:\"isSystemMessage\",OpInf:\"operatorInfo\",Img:\"avatar\",NN:\"nick\",OnlineInf:\"onlineMemberInfo\",ET:\"expireTime\",Num:\"onlineMemberNum\",Opt:\"operationType\",O_Account:\"operatorID\",RT:\"operationType\",UDF:\"userDefinedField\",L_Account:\"userIDList\"},ignoreKeyWord:[\"C2C\",\"ID\",\"USP\"]};function Bi(e,t){if(\"string\"!=typeof e&&!Array.isArray(e))throw new TypeError(\"Expected the input to be `string | string[]`\");t=Object.assign({pascalCase:!1},t);var n;return 0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join(\"-\"):e.trim()).length?\"\":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Hi(e)),e=e.replace(/^[_.\\- ]+/,\"\").toLowerCase().replace(/[_.\\- ]+(\\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\\d+(\\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}var Hi=function(e){for(var t=!1,n=!1,o=!1,s=0;s<e.length;s++){var r=e[s];t&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(e=e.slice(0,s)+\"-\"+e.slice(s),t=!1,o=n,n=!0,s++):n&&o&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(e=e.slice(0,s-1)+\"-\"+e.slice(s-1),o=n,n=!1,t=!0):(t=r.toLowerCase()===r&&r.toUpperCase()!==r,o=n,n=r.toUpperCase()===r&&r.toLowerCase()!==r)}return e};function Ki(e,t){var n=0;return function e(t,o){if(++n>100)return n--,t;if(lt(t)){var s=t.map((function(t){return ut(t)?e(t,o):t}));return n--,s}if(ut(t)){var r=(a=t,i=function(e,t){if(!ft(t))return!1;if((s=t)!==Bi(s))for(var n=0;n<Vi.ignoreKeyWord.length&&!t.includes(Vi.ignoreKeyWord[n]);n++);var s;return dt(o[t])?function(e){return\"OPPOChannelID\"===e?e:e[0].toUpperCase()+Bi(e).slice(1)}(t):o[t]},u=Object.create(null),Object.keys(a).forEach((function(e){var t=i(a[e],e);t&&(u[t]=a[e])})),u);return r=Ut(r,(function(t,n){return lt(t)||ut(t)?e(t,o):t})),n--,r}var a,i,u}(e,t)}function Wi(e,t){if(lt(e))return e.map((function(e){return ut(e)?Wi(e,t):e}));if(ut(e)){var n=(o=e,s=function(e,n){return dt(t[n])?Bi(n):t[n]},r={},Object.keys(o).forEach((function(e){r[s(o[e],e)]=o[e]})),r);return n=Ut(n,(function(e){return lt(e)||ut(e)?Wi(e,t):e}))}var o,s,r}var Yi=String.fromCharCode,ji=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return Yi(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?Yi(192|t>>>6,128|63&t):Yi(224|t>>>12,128|t>>>6&63,128|63&t)},Ji=function(e){for(var t=void 0===e?\"\":(\"\"+e).replace(/[\\x80-\\uD7ff\\uDC00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?/g,ji),n=0|t.length,o=new Uint8Array(n),s=0;s<n;s=s+1|0)o[s]=0|t.charCodeAt(s);return o},zi=function(e){for(var t=new Uint8Array(e),n=\"\",o=0,s=t.length;o<s;){var r=t[o],a=0,i=0;if(r<=127?(a=0,i=255&r):r<=223?(a=1,i=31&r):r<=239?(a=2,i=15&r):r<=244&&(a=3,i=7&r),s-o-a>0)for(var u=0;u<a;)i=i<<6|63&(r=t[o+u+1]),u+=1;else i=65533,a=s-o;n+=String.fromCodePoint(i),o+=a+1}return n},Xi=function(){function e(t){o(this,e),this._handler=t;var n=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=yt(),this._handler.getIsWorkerEnabled()){var s=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) {  if (event.data.cmd === \"start\") {    const url = event.data.url;    _socket = new WebSocket(url);    _socket.binaryType = \"arraybuffer\";    _socket.onopen = function() {      postMessage({ callback: \"onOpen\" });    };    _socket.onclose = function(e) {      postMessage({ callback: \"onOpen\", e: { code: e.code, reason: e.reason } });    };    _socket.onmessage = function(e) {      postMessage({ callback: \"onMessage\", data: e.data });    };    _socket.onerror = function(e) {      postMessage({ callback: \"onError\", e: { isTrusted: \"true\" } });    };  } else if (event.data.cmd === \"sendMessage\") {    if (_socket !== null) {      _socket.send(event.data.data);    }  } else if (event.data.cmd === \"stop\") {    if (_socket !== null) {      _socket.close(event.data.code);      _socket = null;    }  }};'],{type:\"application/javascript; charset=utf-8\"}));this._workerSocket=new Worker(s);var r=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,o=t.e;\"onOpen\"===n?r._onOpen():\"onClose\"===n?r._onClose(o):\"onError\"===n?r._onError(o):\"onMessage\"===n&&r._onMessage(e.data)},this._workerSocket.postMessage({cmd:\"start\",id:this._id,url:n})}else re?te?(ie.connectSocket({url:n,header:{\"content-type\":\"application/json\"}}),ie.onSocketClose(this._onClose.bind(this)),ie.onSocketOpen(this._onOpen.bind(this)),ie.onSocketMessage(this._onMessage.bind(this)),ie.onSocketError(this._onError.bind(this))):(this._socket=ie.connectSocket({url:n,header:{\"content-type\":\"application/json\"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):ae&&(this._socket=new WebSocket(n),this._socket.binaryType=\"arraybuffer\",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return r(e,[{key:\"getID\",value:function(){return this._id}},{key:\"_onOpen\",value:function(){this._handler.onOpen({id:this._id})}},{key:\"_onClose\",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:\"_onMessage\",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?zi(e.data):e.data})}},{key:\"_onError\",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:\"setIsWorkerEnabled\",value:function(e){this._isWorkerEnabled=!0}},{key:\"close\",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:\"stop\",code:e}),this._workerSocket.terminate(),this._workerSocket=null),te)return ie.offSocketClose(),ie.offSocketMessage(),ie.offSocketOpen(),ie.offSocketError(),void ie.closeSocket();this._socket&&(re?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):ae&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),ee?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:\"send\",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:\"sendMessage\",data:this._canIUseBinaryFrame?Ji(e.data).buffer:e.data});else{if(te)return void ie.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(re?this._socket.send({data:this._canIUseBinaryFrame?Ji(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):ae&&this._socket.send(this._canIUseBinaryFrame?Ji(e.data).buffer:e.data))}}}]),e}(),Qi=4e3,Zi=4001,$i=[\"keyMap\"],eu=[\"keyMap\"],tu=\"connected\",nu=\"connecting\",ou=\"disconnected\",su=function(){function e(t){o(this,e),this._channelModule=t,this._n=\"SocketHandler\",this._promiseMap=new Map,this._readyState=ou,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=yt(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url=\"\",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return r(e,[{key:\"_setWebsocketHost\",value:function(){var e=this._channelModule.getModule(Wn),t=G;this._channelModule.isOversea()&&(t=U),e.isSingaporeSite()?t=P:e.isKoreaSite()?t=b:e.isGermanySite()?t=w:e.isIndiaSite()?t=F:e.isJapanSite()?t=q:e.isUSASite()&&(t=x),V.HOST.setCurrent(t)}},{key:\"_initConnection\",value:function(){dt(V.HOST.CURRENT.BACKUP)||\"\"===this._url?this._url=V.HOST.CURRENT.DEFAULT:this._url===V.HOST.CURRENT.DEFAULT?this._url=V.HOST.CURRENT.BACKUP:this._url===V.HOST.CURRENT.BACKUP?this._url=this._canIUseAnyCast()?V.HOST.CURRENT.ANYCAST:V.HOST.CURRENT.DEFAULT:this._url===V.HOST.CURRENT.ANYCAST&&(V.HOST.CURRENT.ANYCAST=\"\",this._url=V.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(Wn).getProxyServer();$t(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:\"_canIUseAnyCast\",value:function(){return ae&&V.HOST.CURRENT.ANYCAST}},{key:\"onCheckTimer\",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:\"_checkPromiseMap\",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var o=t.reject,s=t.timestamp,r=15e3;-1!==n.indexOf(_o)&&(r=9e4),Date.now()-s>=r&&(Ve.l(\"\".concat(e._n,\"._checkPromiseMap request timeout, delete requestID:\").concat(n)),e._promiseMap.delete(n),o(new da({code:Or.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(n))}))}},{key:\"onOpen\",value:function(e){if(\"\"!==this._readyState){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;Ve.l(\"\".concat(this._n,\"._onOpen cost \").concat(n,\" ms. socketID:\").concat(t)),new jr(\"wsOnOpen\").setMessage(n).setCostTime(n).setMoreMessage(\"socketID:\".concat(t)).end(),e.id===this._socketID&&(this._readyState=tu,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}}},{key:\"onClose\",value:function(e){var t=new jr(\"wsOnClose\"),n=e.id,o=e.e,s=\"sourceSocketID:\".concat(n,\" currentSocketID:\").concat(this._socketID,\" code:\").concat(o.code,\" reason:\").concat(o.reason),r=0;0!==this._onOpenTs&&(r=Date.now()-this._onOpenTs),t.setMessage(r).setCostTime(r).setMoreMessage(s).setCode(o.code).end(),Ve.l(\"\".concat(this._n,\"._onClose \").concat(s,\" onlineTime:\").concat(r)),n===this._socketID&&(this._readyState=ou,r<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:\"onError\",value:function(e){var t=e.id,n=e.e,o=\"sourceSocketID:\".concat(t,\" currentSocketID:\").concat(this._socketID);new jr(\"wsOnError\").setMessage(n.errMsg||vt(n)).setMoreMessage(o).setLevel(\"error\").end(),Ve.w(\"\".concat(this._n,\"._onError\"),n,o),t===this._socketID&&(this._readyState=\"\",this._channelModule.onError())}},{key:\"onMessage\",value:function(e){var t;try{t=JSON.parse(e.data)}catch(c){new jr(\"jsonParseError\").setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),o=t.body;if(!this._isTRTCCommand(n)){var s=Vt(t.head);o=Wi(t.body,this._getResponseKeyMap(s))}if(Ve.d(\"\".concat(this._n,\".onMessage ret:\").concat(JSON.stringify(o),\" requestID:\").concat(n,\" has:\").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var r=this._promiseMap.get(n),a=r.resolve,i=r.reject,u=r.timestamp;return this._promiseMap.delete(n),this._calcRTT(u),void(o.errorCode&&0!==o.errorCode?(this._channelModule.onErrorCodeNotZero(o),i(new da({code:o.errorCode,message:o.errorInfo||\"\",data:n.includes(Jo)||n.includes(Fs)?{elements:o.elements,messageVersion:o.messageVersion,cloudCustomData:o.cloudCustomData}:void 0}))):a(la(o)))}this._channelModule.onMessage({head:t.head,body:o})}}},{key:\"_isTRTCCommand\",value:function(e){for(var t=this._channelModule.getModule(co).getCommandList(),n=!1,o=0;o<t.length;o++)if(e.startsWith(t[o])){n=!0;break}return n}},{key:\"_calcRTT\",value:function(e){var t=Date.now()-e;this._channelModule.getModule(ro).addRTT(t)}},{key:\"_connect\",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Xi(this),this._socketID=this._socket.getID(),this._readyState=nu,Ve.l(\"\".concat(this._n,\"._connect isWorkerEnabled:\").concat(this.getIsWorkerEnabled(),\" socketID:\").concat(this._socketID,\" url:\").concat(this.getURL())),new jr(\"wsConnect\").setMessage(\"socketID:\".concat(this._socketID,\" url:\").concat(this.getURL())).end()}},{key:\"getURL\",value:function(){this._channelModule.isDevMode()&&(this._canIUseBinaryFrame=!1);var e=wt();(te||Q&&\"windows\"===e||oe)&&(this._canIUseBinaryFrame=!1);var t=-1;\"ios\"===e?t=ve||-1:\"android\"===e&&(t=ye||-1);var n=this._channelModule.getModule(Wn),o=this._channelModule.getPlatform(),s=n.getSDKAppID(),r=n.getInstanceID(),a=\"sdkappid=\".concat(s,\"&instanceid=\").concat(r,\"&random=\").concat(this._getRandom(),\"&platform=\").concat(o,\"&host=\").concat(e,\"&version=\").concat(t);return this._canIUseBinaryFrame?\"\".concat(this._url,\"/binfo?\").concat(a):\"\".concat(this._url,\"/info?\").concat(a)}},{key:\"_closeConnection\",value:function(e){Ve.l(\"\".concat(this._n,\"._closeConnection socketID:\").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=ou)}},{key:\"_resend\",value:function(){var e=this;if(Ve.l(\"\".concat(this._n,\"._resend reConnectFlag:\").concat(this._reConnectFlag),\"promiseMap.size:\".concat(this._promiseMap.size,\" simpleRequestMap.size:\").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var o=t.uplinkData,s=t.resolve,r=t.reject;e._promiseMap.set(n,{resolve:s,reject:r,timestamp:Date.now(),uplinkData:o}),e._execute(n,o)})),this._simpleRequestMap.size>0){var t,n=D(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var o=m(t.value,2),s=o[0],r=o[1];this._execute(s,r)}}catch(a){n.e(a)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:\"send\",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=g(e,$i),o=this._getRequestIDFromHead(e.head),s=JSON.stringify(n);return new Promise((function(e,r){(t._promiseMap.set(o,{resolve:e,reject:r,timestamp:Date.now(),uplinkData:s}),Ve.d(\"\".concat(t._n,\".send uplinkData:\").concat(JSON.stringify(n),\" requestID:\").concat(o,\" readyState:\").concat(t._readyState)),t._readyState!==tu)?t._reConnect():(t._execute(o,s),t._channelModule.getModule(ro).addRequestCount())}))}},{key:\"simplySend\",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=g(e,eu),n=this._getRequestIDFromHead(e.head),o=JSON.stringify(t);this._readyState!==tu?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,o):Ve.l(\"\".concat(this._n,\".simplySend. simpleRequestMap is full, drop request!\")),this._reConnect()):this._execute(n,o)}},{key:\"_execute\",value:function(e,t){this._socket.send({data:t,fail:re?this._onSendFail.bind(this):void 0,requestID:e})}},{key:\"_onSendFail\",value:function(e){Ve.l(\"\".concat(this._n,\"._onSendFail requestID:\").concat(e))}},{key:\"_getSequence\",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=yt()),e}},{key:\"_getRequestIDFromHead\",value:function(e){return e.servcmd+e.seq}},{key:\"_getResponseKeyMap\",value:function(e){var n=this._channelModule.getKeyMap(e);return t(t({},Vi.response),n.response)}},{key:\"_reConnect\",value:function(){this._readyState!==tu&&this._readyState!==nu&&this.forcedReconnect()}},{key:\"forcedReconnect\",value:function(){var e=this,t=\"\".concat(this._n,\".forcedReconnect\");Ve.l(\"\".concat(t,\" count:\").concat(this._reConnectCount,\" readyState:\").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(Zi),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(n){var o=m(n,2),s=o[0];o[1],s?(Ve.w(\"\".concat(t,\" disconnected from wsserver but network is ok, continue...\")),e._closeConnection(Zi),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:\"getReconnectFlag\",value:function(){return this._reConnectFlag}},{key:\"_setNextPingTs\",value:function(){this._nextPingTs=Date.now()+1e4}},{key:\"getNextPingTs\",value:function(){return this._nextPingTs}},{key:\"isConnected\",value:function(){return this._readyState===tu}},{key:\"canIUseBinaryFrame\",value:function(){return this._canIUseBinaryFrame}},{key:\"setIsWorkerEnabled\",value:function(e){Ve.l(\"\".concat(this._n,\".setIsWorkerEnabled flag:\").concat(e)),this._isWorkerEnabled=e}},{key:\"getIsWorkerEnabled\",value:function(){return this._isWorkerEnabled&&Se}},{key:\"_getRandom\",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:\"_resetRandom\",value:function(){this._random=0}},{key:\"close\",value:function(){Ve.l(\"\".concat(this._n,\".close\")),this._closeConnection(Qi),this._promiseMap.clear(),this._startSequence=yt(),this._readyState=ou,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url=\"\",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),ru=function(e){i(n,e);var t=f(n);function n(e){var s;if(o(this,n),(s=t.call(this,e))._n=\"ChannelModule\",s._socketHandler=new su(_(s)),s._probing=!1,s._isAppShowing=!0,s._previousState=k.NET_STATE_CONNECTED,re&&\"function\"==typeof ie.onAppShow&&\"function\"==typeof ie.onAppHide){var r=s._onAppHide.bind(_(s)),a=s._onAppShow.bind(_(s));\"function\"==typeof ie.offAppHide&&ie.offAppHide(r),\"function\"==typeof ie.offAppShow&&ie.offAppShow(a),ie.onAppHide(r),ie.onAppShow(a)}return s._timerForNotLoggedIn=-1,s._timerForNotLoggedIn=setInterval(s.onCheckTimer.bind(_(s)),1e3),s._fatalErrorFlag=!1,s}return r(n,[{key:\"onCheckTimer\",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:\"onErrorCodeNotZero\",value:function(e){this.getModule($n).onErrorCodeNotZero(e)}},{key:\"onMessage\",value:function(e){this.getModule($n).onMessage(e)}},{key:\"send\",value:function(e){return this._socketHandler?this._previousState!==k.NET_STATE_CONNECTED&&e.head.servcmd.includes(ar)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:\"_sendLogViaHTTP\",value:function(e){var t=V.HOST.CURRENT.STAT;return new Promise((function(n,o){var s=\"\".concat(t,\"/v4/imopenstat/tim_web_report_v2?sdkappid=\").concat(e.head.sdkappid,\"&reqtime=\").concat(Date.now()),r=JSON.stringify(e.body),a=\"application/x-www-form-urlencoded;charset=UTF-8\";if(re)ie.request({url:s,data:r,method:\"POST\",timeout:3e3,header:{\"content-type\":a},success:function(){n()},fail:function(){o(new da({code:Or.NETWORK_ERROR}))}});else{var i=new XMLHttpRequest,u=setTimeout((function(){i.abort(),o(new da({code:Or.NETWORK_TIMEOUT}))}),3e3);i.onreadystatechange=function(){4===i.readyState&&(clearTimeout(u),200===i.status||304===i.status?n():o(new da({code:Or.NETWORK_ERROR})))},i.open(\"POST\",s,!0),i.setRequestHeader(\"Content-type\",a),i.send(r)}}))}},{key:\"simplySend\",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:\"onOpen\",value:function(){this._ping()}},{key:\"onClose\",value:function(){this._socketHandler&&(this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(k.NET_STATE_DISCONNECTED));this.reConnect()}},{key:\"onError\",value:function(){re&&!oe&&this.outputWarning(\"DomainNameInMP\"),this._emitNetStateChangeEvent(k.NET_STATE_DISCONNECTED)}},{key:\"getKeyMap\",value:function(e){return this.getModule($n).getKeyMap(e)}},{key:\"_onAppHide\",value:function(){this._isAppShowing=!1}},{key:\"_onAppShow\",value:function(){this._isAppShowing=!0}},{key:\"onRequestTimeout\",value:function(e){}},{key:\"onReconnected\",value:function(){Ve.l(\"\".concat(this._n,\".onReconnected\")),this._m.restartTimer(),this.getModule($n).onReconnected(),this._emitNetStateChangeEvent(k.NET_STATE_CONNECTED)}},{key:\"onReconnectFailed\",value:function(){Ve.l(\"\".concat(this._n,\".onReconnectFailed\")),this._emitNetStateChangeEvent(k.NET_STATE_DISCONNECTED)}},{key:\"setIsWorkerEnabled\",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:\"offline\",value:function(){this._emitNetStateChangeEvent(k.NET_STATE_DISCONNECTED)}},{key:\"reConnect\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n=\"forcedFlag:\".concat(e,\" fatalErrorFlag:\").concat(this._fatalErrorFlag,\" previousState:\").concat(this._previousState,\" reconnectFlag:\").concat(t);if(Ve.l(\"\".concat(this._n,\".reConnect \").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===k.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(k.NET_STATE_CONNECTING)}}},{key:\"_emitNetStateChangeEvent\",value:function(e){this._previousState!==e&&(Ve.l(\"\".concat(this._n,\"._emitNetStateChangeEvent from \").concat(this._previousState,\" to \").concat(e)),this._previousState=e,this.emitOuterEvent(E.NET_STATE_CHANGE,{state:e}))}},{key:\"_ping\",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule($n).getProtocolData({protocolName:ir});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(Ve.w(\"\".concat(e._n,\"._ping failed. error:\"),t),e._probing=!1,t&&60002===t.code)return new jr(\"error\").setMessage(\"code:\".concat(t.code,\" message:\").concat(t.message)).setNetworkType(e.getModule(Jn).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(k.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];Ve.l(\"\".concat(e._n,\"._ping failed. probe network, isAppShowing:\").concat(e._isAppShowing,\" online:\").concat(o,\" networkType:\").concat(s)),o?e.reConnect():e._emitNetStateChangeEvent(k.NET_STATE_DISCONNECTED)}))}))}}},{key:\"_checkNextPing\",value:function(){this._socketHandler&&(this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping())}},{key:\"dealloc\",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:\"onRestApiKickedOut\",value:function(){this._socketHandler&&(this._socketHandler.close(),this.reConnect(!0))}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._previousState=k.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),n}(go),au=[\"a2\",\"tinyid\"],iu=[\"a2\",\"tinyid\"],uu=function(){function e(t){o(this,e),this._n=\"ProtocolHandler\",this._sessionModule=t,this._configMap=new Map,this._fillConfigMap()}return r(e,[{key:\"_fillConfigMap\",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),n=this._sessionModule.genCosSpecifiedHead(),o=this._sessionModule.genSSOReportHead(),s=this._sessionModule.isIntl();this._configMap.set(_o,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.LOGIN)}),body:{state:\"Online\",isWebUniapp:0,deviceBrand:0},keyMap:{request:{deviceBrand:\"InstType\"},response:{InstId:\"instanceID\",HelloInterval:\"helloInterval\"}}}}(e)),this._configMap.set(ho,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:\"wslogout_type\"}}}}(e)),this._configMap.set(fo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.HELLO)}),body:{isWebUniapp:0},keyMap:{response:{NewInstInfo:\"newInstanceInfo\"}}}}(e)),this._configMap.set(mo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.STAT_SERVICE,\".\").concat(V.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(or,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_COS_SIGN,\".\").concat(V.CMD.COS_SIGN)}),body:{cmd:\"open_im_cos_svc\",subCmd:\"get_cos_token\",duration:300,version:2},keyMap:{request:{userSig:\"usersig\",subCmd:\"sub_cmd\",cmd:\"cmd\",duration:\"duration\",version:\"version\"},response:{expired_time:\"expiredTime\",bucket_name:\"bucketName\",session_token:\"sessionToken\",tmp_secret_id:\"secretId\",tmp_secret_key:\"secretKey\"}}}}(n)),this._configMap.set(sr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.CUSTOM_UPLOAD,\".\").concat(V.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:\"usersig\",fileType:\"file_type\",fileName:\"file_name\",uploadMethod:\"upload_method\"},response:{expired_time:\"expiredTime\",request_id:\"requestId\",head_url:\"headUrl\",upload_url:\"uploadUrl\",download_url:\"downloadUrl\",ci_url:\"ciUrl\",snapshot_url:\"requestSnapshotUrl\"}}}}(n)),this._configMap.set(rr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.CUSTOM_UPLOAD,\".\").concat(V.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:\"version\",platform:\"platform\",coverName:\"cover_name\",requestSnapshotUrl:\"snapshot_url\"},response:{error_code:\"errorCode\",error_msg:\"errorInfo\",download_url:\"snapshotUrl\"}}}}(n)),this._configMap.set(fr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_CONFIG_MANAGER,\".\").concat(V.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:\"uint32_sdkappid\"},response:{int32_error_code:\"errorCode\",str_error_message:\"errorMessage\",str_purchase_bits:\"purchaseBits\",uint32_expired_time:\"expiredTime\"}}}}(e)),this._configMap.set(mr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_CONFIG_MANAGER,\".\").concat(V.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:\"errorCode\",str_error_message:\"errorMessage\",str_purchase_bits:\"purchaseBits\",uint32_expired_time:\"expiredTime\"}}}}(e)),this._configMap.set(_r,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_CONFIG_MANAGER,\".\").concat(V.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:\"uint32_sdkappid\",version:\"uint64_version\"},response:{int32_error_code:\"errorCode\",str_error_message:\"errorMessage\",str_json_config:\"cloudControlConfig\",uint32_expired_time:\"expiredTime\",uint32_sdkappid:\"SDKAppID\",uint64_version:\"version\"}}}}(e)),this._configMap.set(hr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_CONFIG_MANAGER,\".\").concat(V.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:\"errorCode\",str_error_message:\"errorMessage\",str_json_config:\"cloudControlConfig\",uint32_expired_time:\"expiredTime\",uint32_sdkappid:\"SDKAppID\",uint64_version:\"version\"}}}}(e)),this._configMap.set(vr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OVERLOAD_PUSH,\".\").concat(V.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:\"overloadCommand\",DelaySecs:\"waitingTime\"}}}}(e)),this._configMap.set(vo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.GET_MESSAGES)}),body:{cookie:\"\",syncFlag:0,needAbstract:1,isOnlineSync:0,needSignaling:1},keyMap:{request:{fromAccount:\"From_Account\",toAccount:\"To_Account\",from:\"From_Account\",to:\"To_Account\",time:\"MsgTimeStamp\",sequence:\"MsgSeq\",random:\"MsgRandom\",elements:\"MsgBody\"},response:{MsgList:\"messageList\",SyncFlag:\"syncFlag\",To_Account:\"to\",From_Account:\"from\",ClientSeq:\"clientSequence\",MsgSeq:\"sequence\",NoticeSeq:\"noticeSequence\",NotifySeq:\"notifySequence\",MsgRandom:\"random\",MsgTimeStamp:\"time\",MsgContent:\"content\",ToGroupId:\"to\",MsgKey:\"messageKey\",GroupTips:\"groupTips\",MsgBody:\"elements\",MsgType:\"type\",C2CRemainingUnreadCount:\"C2CRemainingUnreadList\",C2CPairUnreadCount:\"C2CPairUnreadList\"}}}}(e)),s||(this._configMap.set(Mo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(Nr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_MSG_AUDIT_MGR,\".\").concat(V.CMD.GET_RPOFANITY_LIST)}),body:{version:0,deviceID:\"\",startIndex:void 0},keyMap:{request:{version:\"uint64_version\",deviceID:\"str_device_id\",startIndex:\"uint64_start_index\"},response:{msg_cmd_error_code:\"errorInfo\",str_err_msg:\"errorMessage\",uint32_code:\"errorCode\",msg_scene_ctl_config:\"filterConfig\",uint64_c2c_custom_msg_flag:\"c2c_custom_message\",uint64_c2c_text_msg_flag:\"c2c_text_message\",uint64_group_custom_msg_flag:\"group_custom_message\",uint64_group_text_msg_flag:\"group_text_message\",uint64_group_info_flag:\"group_profile\",uint64_group_member_info_flag:\"group_member_profile\",uint64_relation_chain_flag:\"sns\",uint64_user_info_flag:\"user_profile\",rpt_msg_dirty_word:\"lexicon\",str_dirty_word:\"profanity\",str_replaced_content:\"replacement\",uint64_filter_type:\"filterType\",uint64_id:\"id\",uint64_word_type:\"profanityType\",uint64_complete_flag:\"completeFlag\",uint64_next_start_index:\"nextStartIndex\",uint64_version:\"version\",uint64_expired_time:\"expiredTime\"}}}}(e))),this._configMap.set(yo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SEND_MESSAGE)}),body:{fromAccount:\"\",toAccount:\"\",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:\"\",avatar:\"\",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:\"\",desc:\"\",ext:\"\",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:\"\"}},messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,isSupportExtension:0},keyMap:{request:{fromAccount:\"From_Account\",toAccount:\"To_Account\",msgTimeStamp:\"MsgTimeStamp\",msgSeq:\"MsgSeq\",msgRandom:\"MsgRandom\",msgBody:\"MsgBody\",count:\"MaxCnt\",lastMessageTime:\"LastMsgTime\",messageKey:\"MsgKey\",peerAccount:\"Peer_Account\",data:\"Data\",description:\"Desc\",extension:\"Ext\",type:\"MsgType\",content:\"MsgContent\",sizeType:\"Type\",uuid:\"UUID\",url:\"\",imageUrl:\"URL\",fileUrl:\"Url\",remoteAudioUrl:\"Url\",remoteVideoUrl:\"VideoUrl\",thumbUUID:\"ThumbUUID\",videoUUID:\"VideoUUID\",videoUrl:\"\",downloadFlag:\"Download_Flag\",nick:\"From_AccountNick\",avatar:\"From_AccountHeadurl\",from:\"From_Account\",time:\"MsgTimeStamp\",messageRandom:\"MsgRandom\",messageSequence:\"MsgSeq\",elements:\"MsgBody\",clientSequence:\"ClientSeq\",payload:\"MsgContent\",messageList:\"MsgList\",messageNumber:\"MsgNum\",abstractList:\"AbstractList\",messageBody:\"MsgBody\",needReadReceipt:\"IsNeedReadReceipt\"}}}}(e)),this._configMap.set(Io,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:\"\",groupID:\"\",random:0,clientSequence:0,priority:\"\",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:\"\",desc:\"\",ext:\"\",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:\"\"}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,topicID:void 0,receiverList:void 0,isSupportExtension:0},keyMap:{request:{to:\"GroupId\",extension:\"Ext\",data:\"Data\",description:\"Desc\",random:\"Random\",sequence:\"ReqMsgSeq\",count:\"ReqMsgNumber\",type:\"MsgType\",priority:\"MsgPriority\",content:\"MsgContent\",elements:\"MsgBody\",sizeType:\"Type\",uuid:\"UUID\",url:\"\",imageUrl:\"URL\",fileUrl:\"Url\",remoteAudioUrl:\"Url\",remoteVideoUrl:\"VideoUrl\",thumbUUID:\"ThumbUUID\",videoUUID:\"VideoUUID\",videoUrl:\"\",downloadFlag:\"Download_Flag\",clientSequence:\"ClientSeq\",from:\"From_Account\",time:\"MsgTimeStamp\",messageRandom:\"MsgRandom\",messageSequence:\"MsgSeq\",payload:\"MsgContent\",messageList:\"MsgList\",messageNumber:\"MsgNum\",abstractList:\"AbstractList\",messageBody:\"MsgBody\",needReadReceipt:\"NeedReadReceipt\",receiverList:\"To_Account\"},response:{MsgTime:\"time\",MsgSeq:\"sequence\"}}}}(e)),this._configMap.set(Vo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:\"\",toAccount:\"\",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:\"MsgInfo\",msgTimeStamp:\"MsgTimeStamp\",msgSeq:\"MsgSeq\",msgRandom:\"MsgRandom\"}}}}(e)),this._configMap.set(Ds,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:\"\",msgSeqList:void 0,topicID:\"\"},keyMap:{request:{msgSeqList:\"MsgSeqList\",msgSeq:\"MsgSeq\"}}}}(e)),this._configMap.set(Wo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:\"\",count:15,lastMessageTime:0,messageKey:\"\",withRecalledMessage:1,direction:0},keyMap:{request:{messageKey:\"MsgKey\",peerAccount:\"Peer_Account\",count:\"MaxCnt\",lastMessageTime:\"LastMsgTime\",withRecalledMessage:\"WithRecalledMsg\",direction:\"GetDirection\"},response:{LastMsgTime:\"lastMessageTime\",IsNeedReadReceipt:\"needReadReceipt\",IsPeerRead:\"readReceiptSentByPeer\"}}}}(e)),this._configMap.set(Jo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.MODIFY_C2C_MESSAGE)}),body:{from:\"\",to:\"\",sequence:0,random:0,time:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:\"MsgSeq\",random:\"MsgRandom\",time:\"MsgTime\",version:\"MsgVersion\",type:\"MsgType\",content:\"MsgContent\"}}}}(e)),this._configMap.set(Ss,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:\"\",count:15,sequence:\"\",topicID:void 0},keyMap:{request:{sequence:\"ReqMsgSeq\",count:\"ReqMsgNumber\",withRecalledMessage:\"WithRecalledMsg\"},response:{Random:\"random\",MsgTime:\"time\",MsgSeq:\"sequence\",ReqMsgSeq:\"sequence\",RspMsgList:\"messageList\",IsPlaceMsg:\"isPlaceMessage\",IsSystemMsg:\"isSystemMessage\",ToGroupId:\"to\",EnumFrom_AccountType:\"fromAccountType\",EnumTo_AccountType:\"toAccountType\",GroupCode:\"groupCode\",MsgPriority:\"priority\",MsgBody:\"elements\",MsgType:\"type\",MsgContent:\"content\",IsFinished:\"complete\",Download_Flag:\"downloadFlag\",ClientSeq:\"clientSequence\",ThumbUUID:\"thumbUUID\",VideoUUID:\"videoUUID\",ToTopicId:\"topicID\",InvisibleMsgSeq:\"invisibleSequenceList\"}}}}(e)),this._configMap.set(Bo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:\"LastedMsgTime\"}}}}(e)),this._configMap.set(Ho,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:\"Peer_Account\",muteFlag:\"Mute_Notifications\"}}}}(e)),this._configMap.set(Ko,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:\"muteFlagList\"}}}}(e)),this._configMap.set(Es,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0,topicID:void 0},keyMap:{request:{messageReadSeq:\"MsgReadedSeq\"}}}}(e)),this._configMap.set(ks,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:\"C2CReadAllMsg\",groupMessageReadInfoList:\"GroupReadInfo\",messageSequence:\"MsgSeq\"},response:{C2CReadAllMsg:\"readAllC2CMessage\",GroupReadInfoArray:\"groupMessageReadInfoList\"}}}}(e)),this._configMap.set(jo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:\"\",to:\"\",keyList:void 0},keyMap:{request:{keyList:\"MsgKeyList\"}}}}(e)),this._configMap.set(ws,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:\"\",deleter:\"\",keyList:void 0,topicID:void 0},keyMap:{request:{deleter:\"Deleter_Account\",keyList:\"Seqs\"}}}}(e)),this._configMap.set(Rr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_TRANSLATE,\".\").concat(V.CMD.TRANSLATE_TEXT)}),body:{sourceTextList:void 0,SDKAppID:0,from:0,source:\"\",target:\"\"},keyMap:{request:{sourceTextList:\"SourceText\",SDKAppID:\"SdkAppId\",from:\"FromAccount\"},response:{TargetText:\"translatedTextList\",RequestId:\"requestID\",CmdErrorCode:\"error\",ErrorCode:\"code\",ErrorInfo:\"message\"}}}}(e)),this._configMap.set(Fs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.MODIFY_GROUP_MESSAGE)}),body:{groupID:\"\",topicID:void 0,sequence:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:\"MsgSeq\",version:\"MsgVersion\",type:\"MsgType\",content:\"MsgContent\"}}}}(e)),this._configMap.set(Ls,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_READ_RECEIPT)}),body:{groupID:\"\",sequenceList:void 0},keyMap:{request:{sequence:\"MsgSeq\"}}}}(e)),this._configMap.set(Ns,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SEND_C2C_READ_RECEIPT)}),body:{peerAccount:\"\",messageInfoList:void 0},keyMap:{request:{peerAccount:\"Peer_Account\",messageInfoList:\"C2CMsgInfo\",fromAccount:\"From_Account\",toAccount:\"To_Account\",sequence:\"MsgSeq\",random:\"MsgRandom\",time:\"MsgTime\",clientTime:\"MsgClientTime\"}}}}(e)),this._configMap.set(As,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SEND_READ_RECEIPT)}),body:{groupID:\"\",sequenceList:void 0},keyMap:{request:{sequenceList:\"MsgSeqList\",sequence:\"MsgSeq\"}}}}(e)),this._configMap.set(Rs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:\"\",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:\"MsgSeq\",count:\"Num\"},response:{ReadList:\"readUserIDList\",Read_Account:\"userID\",UnreadList:\"unreadUserIDList\",Unread_Account:\"userID\",IsFinish:\"isCompleted\"}}}}(e)),this._configMap.set(zo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM_MSG_EXT,\".\").concat(V.CMD.MODIFY_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(Xo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM_MSG_EXT,\".\").concat(V.CMD.GET_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,startSequence:void 0}}}(e)),this._configMap.set(Ks,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM_MSG_EXT,\".\").concat(V.CMD.MODIFY_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(Ws,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM_MSG_EXT,\".\").concat(V.CMD.GET_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,startSequence:void 0}}}(e)),this._configMap.set(Yo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:\"To_Account\"},response:{ReadTime:\"peerReadTimeList\"}}}}(e)),this._configMap.set(Zo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:\"conversations\",ToAccount:\"groupID\",To_Account:\"userID\",UnreadMsgCount:\"unreadCount\",MsgGroupReadedSeq:\"messageReadSeq\",C2cPeerReadTime:\"c2cPeerReadTime\"}}}}(e)),this._configMap.set(Qo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:\"MsgAssistFlags\",assistFlag:\"AssistFlags\",pinnedTimeStamp:\"TopTimeStamp\",pinnedStartIndex:\"TopStartIndex\"},response:{SessionItem:\"conversations\",ToAccount:\"groupID\",To_Account:\"userID\",UnreadMsgCount:\"unreadCount\",MsgGroupReadedSeq:\"messageReadSeq\",C2cPeerReadTime:\"c2cPeerReadTime\",LastMsgFlags:\"lastMessageFlag\",TopFlags:\"isPinned\",TopTimeStamp:\"pinnedTimeStamp\",TopStartIndex:\"pinnedStartIndex\",GroupId:\"convGroupID\"}}}}(e)),this._configMap.set($o,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.DELETE_CONVERSATION)}),body:{fromAccount:\"\",conversationList:void 0,clearHistoryMessage:void 0},keyMap:{request:{toGroupID:\"ToGroupid\",clearHistoryMessage:\"ClearRamble\",conversationList:\"ContactItem\"},response:{ResultItem:\"resultList\",ToGroupid:\"groupID\",ResultCode:\"code\",ResultInfo:\"info\"}}}}(e)),this._configMap.set(es,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.CLEAR_HISTORY_MESSAGE)}),body:{fromAccount:\"\",toAccount:void 0,type:1,toGroupID:void 0},keyMap:{request:{toGroupID:\"ToGroupid\"}}}}(e)),this._configMap.set(ts,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.PIN_CONVERSATION)}),body:{fromAccount:\"\",operationType:1,itemList:void 0},keyMap:{request:{itemList:\"RecentContactItem\"}}}}(e)),this._configMap.set(ns,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:\"DelMsgList\",messageSeq:\"MsgSeq\",messageRandom:\"MsgRandom\"}}}}(e)),this._configMap.set(os,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.MARK_CONVERSATION)}),body:{fromAccount:\"\",itemList:void 0},keyMap:{request:{itemList:\"MarkItem\",operationType:\"OptType\",groupID:\"ToGroupId\"},response:{ToGroupId:\"groupID\",OptType:\"operationType\"}}}}(e)),this._configMap.set(ss,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.MARK_CONVERSATION)}),body:{fromAccount:\"\",itemList:void 0},keyMap:{request:{itemList:\"MarkItem\",operationType:\"OptType\",groupID:\"ToGroupId\"},response:{ToGroupId:\"groupID\",OptType:\"operationType\"}}}}(e)),this._configMap.set(rs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.CREATE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",itemList:void 0},keyMap:{request:{itemList:\"GroupContactItem\",groupID:\"ToGroupId\"},response:{GroupId:\"convGroupID\",ToGroupId:\"groupID\",OptType:\"operationType\"}}}}(e)),this._configMap.set(as,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.DELETE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",groupName:void 0},keyMap:{request:{},response:{GroupId:\"convGroupID\"}}}}(e)),this._configMap.set(is,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",updateType:void 0,updateGroup:void 0},keyMap:{request:{oldName:\"OldGroupName\",newName:\"NewGroupName\",groupID:\"ToGroupId\",operationType:\"ContactOptType\",groupName:\"OldGroupName\",updateItem:\"ContactUpdateItem\"},response:{ContactOptType:\"operationType\",ToGroupId:\"groupID\",GroupId:\"convGroupID\"}}}}(e)),this._configMap.set(us,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",updateType:void 0,updateGroup:{groupName:void 0,updateGroupType:void 0,updateItem:void 0}},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(cs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",updateType:void 0,updateGroup:void 0},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(ls,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.GET_CONVERSATION_GROUP_LIST)}),body:{fromAccount:\"\",startTime:void 0,startIndex:void 0},keyMap:{request:{},response:{GroupId:\"convGroupID\",ToGroupId:\"groupID\",OptType:\"operationType\",CustomMark:\"customData\",ContactGroupId:\"convGroupIDList\"}}}}(e)),this._configMap.set(Co,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.PROFILE,\".\").concat(V.CMD.PORTRAIT_GET)}),body:{fromAccount:\"\",userItem:[]},keyMap:{request:{toAccount:\"To_Account\",standardSequence:\"StandardSequence\",customSequence:\"CustomSequence\"}}}}(e)),this._configMap.set(To,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.PROFILE,\".\").concat(V.CMD.PORTRAIT_SET)}),body:{fromAccount:\"\",profileItem:[{tag:He.NICK,value:\"\"},{tag:He.GENDER,value:\"\"},{tag:He.ALLOWTYPE,value:\"\"},{tag:He.AVATAR,value:\"\"}]},keyMap:{request:{toAccount:\"To_Account\",standardSequence:\"StandardSequence\",customSequence:\"CustomSequence\"}}}}(e)),this._configMap.set(Do,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.GET_BLACKLIST)}),body:{fromAccount:\"\",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:\"currentSequence\"}}}}(e)),this._configMap.set(Eo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.ADD_BLACKLIST)}),body:{fromAccount:\"\",toAccount:[]}}}(e)),this._configMap.set(ko,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.DELETE_BLACKLIST)}),body:{fromAccount:\"\",toAccount:[]}}}(e)),this._configMap.set(Tr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.SET_SELF_STATUS)}),body:{customStatus:\"\"},keyMap:{}}}(e)),this._configMap.set(Dr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.GET_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{UserStatusList:\"successUserList\",ErrorList:\"failureUserList\",To_Account:\"userID\",Invalid_Account:\"invalidUserID\",Status:\"statusType\"}}}}(e)),this._configMap.set(Er,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.SUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{ErrorList:\"failureUserList\",To_Account:\"userID\",Invalid_Account:\"invalidUserID\"}}}}(e)),this._configMap.set(kr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.UNSUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0,unsubscribeAll:void 0},keyMap:{response:{ErrorList:\"failureUserList\",To_Account:\"userID\",Invalid_Account:\"invalidUserID\"}}}}(e)),this._configMap.set(So,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.GET_FRIEND_LIST)}),body:{fromAccount:\"\",startIndex:0,standardSequence:0,customSequence:0},keyMap:{response:{FriendNum:\"friendCount\",UserDataItem:\"resultList\",ValueItem:\"tagValueList\"}}}}(e)),this._configMap.set(Ro,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.ADD_FRIEND)}),body:{fromAccount:\"\",addFriendItem:[],type:\"\"},keyMap:{request:{source:\"AddSource\",wording:\"AddWording\",type:\"AddType\"},response:{ResultItem:\"resultList\"}}}}(e)),this._configMap.set(Oo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.UPDATE_FRIEND)}),body:{fromAccount:\"\",updateItem:void 0},keyMap:{request:{snsItem:\"SnsItem\"},response:{ResultItem:\"resultList\"}}}}(e)),this._configMap.set(No,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.DELETE_FRIEND)}),body:{fromAccount:\"\",userIDList:[],type:\"\"},keyMap:{request:{type:\"DeleteType\"},response:{ResultItem:\"resultList\"}}}}(e)),this._configMap.set(Lo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.GET_FRIEND_PROFILE)}),body:{fromAccount:\"\",userIDList:void 0},keyMap:{response:{InfoItem:\"resultList\",SnsProfileItem:\"tagValueList\"}}}}(e)),this._configMap.set(Ao,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.CHECK_FRIEND)}),body:{fromAccount:\"\",userIDList:[],type:\"\"},keyMap:{request:{type:\"CheckType\"},response:{InfoItem:\"resultList\"}}}}(e)),this._configMap.set(Uo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.GET_FRIEND_APPLICATION_LIST)}),body:{fromAccount:\"\",applicationType:\"\",startTime:0,maxLimited:0,lastSequence:0},keyMap:{response:{PendencyItem:\"resultList\",AddSource:\"source\",AddTime:\"time\",AddWording:\"wording\",Image:\"avatar\",UnreadPendencyCount:\"unreadCount\",To_Account:\"userID\",PendencyType:\"type\"}}}}(e)),this._configMap.set(Go,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.RESPOND_FRIEND_APPLICATION)}),body:{fromAccount:\"\",responseFriendItem:[]},keyMap:{request:{tag:\"TagName\",action:\"ResponseAction\"},response:{ResultItem:\"resultList\"}}}}(e)),this._configMap.set(Po,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.DELETE_FRIEND_APPLICATION)}),body:{fromAccount:\"\",type:\"\",userIDList:void 0},keyMap:{request:{type:\"PendencyType\",userIDList:\"To_Account\"},response:{ResultItem:\"resultList\"}}}}(e)),this._configMap.set(bo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.REPORT_FRIEND_APPLICATION)}),body:{fromAccount:\"\",latestTimeStamp:\"\"},keyMap:{request:{latestTimeStamp:\"LatestPendencyTimeStamp\"}}}}(e)),this._configMap.set(Fo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.CREATE_FRIEND_GROUP)}),body:{fromAccount:\"\",groupName:void 0,userIDList:void 0},keyMap:{request:{groupName:\"GroupName\",userIDList:\"To_Account\"},response:{ResultItem:\"resultList\"}}}}(e)),this._configMap.set(qo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.DELETE_FRIEND_GROUP)}),body:{fromAccount:\"\",nameList:void 0},keyMap:{request:{nameList:\"GroupName\"}}}}(e)),this._configMap.set(wo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.GET_FRIEND_GROUP_LIST)}),body:{fromAccount:\"\",lastSequence:0,needFriend:\"Need_Friend_Type_Yes\"},keyMap:{response:{ResultItem:\"resultList\",GroupName:\"name\",FriendNumber:\"friendCount\",To_Account:\"userIDList\"}}}}(e)),this._configMap.set(xo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.UPDATE_FRIEND_GROUP)}),body:{fromAccount:\"\",oldName:\"\",newName:void 0,updateGroupItem:void 0},keyMap:{request:{oldName:\"GroupOldName\",newName:\"GroupNewName\"},response:{UpdateType:\"type\",ResultItem:\"resultList\"}}}}(e)),this._configMap.set(ds,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:\"\",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0},isSupportTopic:0},keyMap:{request:{memberAccount:\"Member_Account\"},response:{GroupIdList:\"groups\",NoUnreadSeqList:\"excludedUnreadSequenceList\",MsgSeq:\"readedSequence\",LastRecallTime:\"_lastRevokedTime\"}}}}(e)),this._configMap.set(ps,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:[\"Type\",\"Name\",\"Introduction\",\"Notification\",\"FaceUrl\",\"Owner_Account\",\"CreateTime\",\"InfoSeq\",\"LastInfoTime\",\"LastMsgTime\",\"MemberNum\",\"MaxMemberNum\",\"ApplyJoinOption\",\"NextMsgSeq\",\"ShutUpAllMember\"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:\"GroupIdList\",groupCustomField:\"AppDefinedData\",memberCustomField:\"AppMemberDefinedData\",groupCustomFieldFilter:\"AppDefinedDataFilter_Group\",memberCustomFieldFilter:\"AppDefinedDataFilter_GroupMember\"},response:{GroupIdList:\"groups\",AppDefinedData:\"groupCustomField\",AppMemberDefinedData:\"memberCustomField\",AppDefinedDataFilter_Group:\"groupCustomFieldFilter\",AppDefinedDataFilter_GroupMember:\"memberCustomFieldFilter\",InfoSeq:\"infoSequence\",MemberList:\"members\",GroupInfo:\"groups\",ShutUpUntil:\"muteUntil\",ShutUpAllMember:\"muteAllMembers\"}}}}(e)),this._configMap.set(gs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:\"\",isSupportTopic:void 0,inviteOption:void 0},keyMap:{request:{ownerID:\"Owner_Account\",userID:\"Member_Account\",avatar:\"FaceUrl\",maxMemberNum:\"MaxMemberCount\",joinOption:\"ApplyJoinOption\",groupCustomField:\"AppDefinedData\",memberCustomField:\"AppMemberDefinedData\",inviteOption:\"InviteJoinOption\"},response:{HugeGroupFlag:\"avChatRoomFlag\",OverJoinedGroupLimit_Account:\"overLimitUserIDList\"}}}}(e)),this._configMap.set(_s,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(hs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0,inviteOption:void 0},keyMap:{request:{groupCustomField:\"AppDefinedData\",muteAllMembers:\"ShutUpAllMember\",joinOption:\"ApplyJoinOption\",avatar:\"FaceUrl\",inviteOption:\"InviteJoinOption\"},response:{AppDefinedData:\"groupCustomField\",ShutUpAllMember:\"muteAllMembers\"}}}}(e)),this._configMap.set(fs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:\"ApplyMsg\",historyMessageFlag:\"HugeGroupHistoryMsgFlag\"},response:{HugeGroupFlag:\"avChatRoomFlag\",AVChatRoomKey:\"avChatRoomKey\",RspMsgList:\"messageList\",ToGroupId:\"to\"}}}}(e)),this._configMap.set(ms,function(e){return e.a2,e.tinyid,{head:t(t({},g(e,au)),{},{servcmd:\"\".concat(V.NAME.BIG_GROUP_NO_AUTH,\".\").concat(V.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:\"ApplyMsg\"},response:{HugeGroupFlag:\"avChatRoomFlag\"}}}}(e)),this._configMap.set(vs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Ms,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:[\"Type\",\"Name\",\"Introduction\",\"Notification\",\"FaceUrl\",\"CreateTime\",\"Owner_Account\",\"LastInfoTime\",\"LastMsgTime\",\"NextMsgSeq\",\"MemberNum\",\"MaxMemberNum\",\"ApplyJoinOption\",\"InviteJoinOption\"]}},keyMap:{response:{}}}}(e)),this._configMap.set(ys,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:\"NewOwner_Account\"}}}}(e)),this._configMap.set(Is,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:\"Applicant_Account\",handleAction:\"HandleMsg\",handleMessage:\"ApprovalMsg\",messageKey:\"MsgKey\"}}}}(e)),this._configMap.set(Cs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.HANDLE_INVITE_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,invitee:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,userDefinedField:void 0},keyMap:{request:{applicant:\"Applicant_Account\",invitee:\"Invited_Account\",handleAction:\"HandleMsg\",handleMessage:\"ApprovalMsg\"}}}}(e)),this._configMap.set(Ts,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:\"Inviter_Account\",handleAction:\"HandleMsg\",handleMessage:\"ApprovalMsg\",messageKey:\"MsgKey\"}}}}(e)),this._configMap.set(Os,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:\"Handle_Account\"},response:{To_Account:\"userID\"}}}}(e)),this._configMap.set(Gs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:\"DelMsgList\",messageSeq:\"MsgSeq\",messageRandom:\"MsgRandom\"}}}}(e)),this._configMap.set(Us,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.BIG_GROUP_LONG_POLLING,\".\").concat(V.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,startBroadcastSeq:void 0,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:\"USP\"},response:{ToGroupId:\"groupID\",RspBroadcastMsgList:\"broadcastMessageList\",IsSystemMsg:\"isSystemMessage\"}}}}(e)),this._configMap.set(Ps,function(e){return e.a2,e.tinyid,{head:t(t({},g(e,iu)),{},{servcmd:\"\".concat(V.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,\".\").concat(V.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:\"USP\"},response:{ToGroupId:\"groupID\",RspBroadcastMsgList:\"broadcastMessageList\",IsSystemMsg:\"isSystemMessage\"}}}}(e)),this._configMap.set(bs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(qs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:[\"RaceConflict\"]},keyMap:{request:{key:\"key\",value:\"value\"}}}}(e)),this._configMap.set(xs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:[\"RaceConflict\"]},keyMap:{request:{key:\"key\",value:\"value\"}}}}(e)),this._configMap.set(Vs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:[\"RaceConflict\"]},keyMap:{request:{key:\"key\"}}}}(e)),this._configMap.set(Bs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:[\"RaceConflict\"]}}}(e)),this._configMap.set(Hs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_ATTR,\".\").concat(V.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:\"Key\",groupType:\"GroupType\"}}}}(e)),this._configMap.set(Ys,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_NOTIFY)}),body:{notifyType:1,groupID:\"\",beginTime:0,endTime:0,limit:20},keyMap:{request:{},response:{NextMsgTime:\"nextRevokedTime\",NotifyMsgList:\"notifyList\"}}}}(e)),this._configMap.set(js,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.UPDATE_GROUP_COUNTER)}),body:{groupID:void 0,counterList:void 0,avChatRoomKey:void 0,mode:void 0},keyMap:{request:{counterList:\"GroupCounter\"}}}}(e)),this._configMap.set(Js,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_COUNTER)}),body:{groupID:void 0,keyList:[],avChatRoomKey:void 0},keyMap:{request:{keyList:\"GroupCounterKeys\"}}}}(e)),this._configMap.set(Mr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(V.CMD.CREATE_TOPIC)}),body:{groupID:void 0,topicName:void 0,avatar:void 0,customData:void 0,topicID:void 0,notification:void 0,introduction:void 0},keyMap:{request:{avatar:\"FaceUrl\"}}}}(e)),this._configMap.set(yr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(V.CMD.DELETE_TOPIC)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{request:{topicIDList:\"TopicIdList\"},response:{DestroyResultItem:\"resultList\"}}}}(e)),this._configMap.set(Ir,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(V.CMD.UPDATE_TOPIC_PROFILE)}),body:{groupID:void 0,topicID:void 0,avatar:void 0,customData:void 0,notification:void 0,introduction:void 0,muteAllMembers:void 0,topicName:void 0},keyMap:{request:{avatar:\"FaceUrl\",muteAllMembers:\"ShutUpAllMember\"}}}}(e)),this._configMap.set(Cr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(V.CMD.GET_TOPIC_LIST)}),body:{groupID:void 0,topicIDList:void 0,MemberInfoFilter:[\"NoUnreadSeqList\"]},keyMap:{request:{topicIDList:\"TopicIdList\"},response:{TopicAndSelfInfo:\"topicInfoList\",TopicInfo:\"topic\",GroupID:\"groupID\",ShutUpTime:\"muteTime\",ShutUpAllFlag:\"muteAllMembers\",LastMsgTime:\"lastMessageTime\",MsgSeq:\"readedSequence\",LastMsgSeq:\"sequence\",NoUnreadSeqList:\"excludedUnreadSequenceList\"}}}}(e)),this._configMap.set(zs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:[\"Role\",\"NameCard\",\"ShutUpUntil\",\"JoinTime\"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:\"AppDefinedDataFilter_GroupMember\"},response:{AppMemberDefinedData:\"memberCustomField\",AppDefinedDataFilter_GroupMember:\"memberCustomFieldFilter\",MemberList:\"members\",ShutUpUntil:\"muteUntil\"}}}}(e)),this._configMap.set(Xs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_AVCHATROOM,\".\").concat(V.CMD.GET_AVCHATROOM_MEMBER_LIST)}),body:{groupID:void 0,offset:void 0,filter:void 0},keyMap:{request:{offset:\"Timestamp\",filter:\"Mark\"},response:{NextTimestamp:\"offset\"}}}}(e)),this._configMap.set(Qs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:\"Member_List_Account\",memberCustomFieldFilter:\"AppDefinedDataFilter_GroupMember\"},response:{MemberList:\"members\",ShutUpUntil:\"muteUntil\",AppDefinedDataFilter_GroupMember:\"memberCustomFieldFilter\",AppMemberDefinedData:\"memberCustomField\"}}}}(e)),this._configMap.set(Zs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:\"Member_Account\",userIDList:\"MemberList\"},response:{MemberList:\"members\"}}}}(e)),this._configMap.set($s,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:\"MemberToDel_Account\"}}}}(e)),this._configMap.set(er,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.BAN_AVCHATROOM_MEMBER)}),body:{groupID:void 0,userIDList:void 0,duration:void 0,reason:\"\"},keyMap:{request:{userIDList:\"Members_Account\",duration:\"Duration\",reason:\"Description\"}}}}(e)),this._configMap.set(tr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,topicID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:\"Member_Account\",memberCustomField:\"AppMemberDefinedData\",muteTime:\"ShutUpTime\",messageRemindType:\"MsgFlag\"}}}}(e)),this._configMap.set(nr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_AVCHATROOM,\".\").concat(V.CMD.MARK_AVCHATROOM_MEMBER_INFO)}),body:{groupID:void 0,operationType:1,memberList:[]},keyMap:{request:{operationType:\"CommandType\",memberList:\"MemberList\",markType:\"Marks\",userID:\"Member_Account\"},response:{CommandType:\"operationType\",Marks:\"markType\",Member_Account:\"userID\"}}}}(e)),this._configMap.set(ar,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STAT,\".\").concat(V.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:\"sdk_type\",SDKVersion:\"sdk_version\",deviceType:\"device_type\",platform:\"platform\",instanceID:\"instance_id\",traceID:\"trace_id\",SDKAppID:\"sdk_app_id\",userID:\"user_id\",tinyID:\"tiny_id\",extension:\"extension\",timestamp:\"timestamp\",networkType:\"network_type\",eventType:\"event_type\",code:\"error_code\",message:\"error_message\",moreMessage:\"more_message\",duplicate:\"duplicate\",costTime:\"cost_time\",level:\"level\",qualityType:\"quality_type\",reportIndex:\"report_index\",wholePeriod:\"whole_period\",totalCount:\"total_count\",rttCount:\"success_count_business\",successRateOfRequest:\"percent_business\",countLessThan1Second:\"success_count_business\",percentOfCountLessThan1Second:\"percent_business\",countLessThan3Second:\"success_count_platform\",percentOfCountLessThan3Second:\"percent_platform\",successCountOfBusiness:\"success_count_business\",successRateOfBusiness:\"percent_business\",successCountOfPlatform:\"success_count_platform\",successRateOfPlatform:\"percent_platform\",successCountOfMessageReceived:\"success_count_business\",successRateOfMessageReceived:\"percent_business\",avgRTT:\"average_value\",avgDelay:\"average_value\",avgValue:\"average_value\",uiPlatform:\"ui_platform\"}}}}(o)),this._configMap.set(ir,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.HEARTBEAT,\".\").concat(V.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(ur,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_PUSH,\".\").concat(V.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:\"C2CMessageArray\",GroupMsgArray:\"groupMessageArray\",GroupTips:\"groupTips\",C2cNotifyMsgArray:\"C2CNotifyMessageArray\",C2cMsgInfo:\"C2CReadReceiptArray\",ClientSeq:\"clientSequence\",MsgPriority:\"priority\",NoticeSeq:\"noticeSequence\",MsgContent:\"content\",MsgType:\"type\",MsgBody:\"elements\",ToGroupId:\"to\",Desc:\"description\",Ext:\"extension\",IsSyncMsg:\"isSyncMessage\",Flag:\"needSync\",NeedAck:\"needAck\",PendencyAdd_Account:\"userID\",ProfileImNick:\"nick\",PendencyType:\"applicationType\",C2CReadAllMsg:\"readAllC2CMessage\",IsNeedReadReceipt:\"needReadReceipt\",Status:\"statusType\"}}}}(e)),this._configMap.set(cr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_PUSH,\".\").concat(V.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:\"groupMessageArray\",GroupTips:\"groupTips\",ClientSeq:\"clientSequence\",MsgPriority:\"priority\",NoticeSeq:\"noticeSequence\",MsgContent:\"content\",MsgType:\"type\",MsgBody:\"elements\",ToGroupId:\"to\",Desc:\"description\",Ext:\"extension\",IsSyncMsg:\"isSyncMessage\",Flag:\"needSync\",NeedAck:\"needAck\",PendencyType:\"applicationType\"}}}}(e)),this._configMap.set(lr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:\"SessionData\"}}}}(e)),this._configMap.set(dr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.STATUS_FORCE_OFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:\"C2CNotifyMessageArray\",NoticeSeq:\"noticeSequence\",KickoutMsgNotify:\"kickoutMsgNotify\",NewInstInfo:\"newInstanceInfo\"}}}}(e)),this._configMap.set(gr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_LONG_MESSAGE,\".\").concat(V.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:\"\"},keyMap:{response:{Data:\"data\",Desc:\"description\",Ext:\"extension\",Download_Flag:\"downloadFlag\",ThumbUUID:\"thumbUUID\",VideoUUID:\"videoUUID\"}}}}(e)),this._configMap.set(pr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_LONG_MESSAGE,\".\").concat(V.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:\"From_Account\",toAccount:\"To_Account\",msgTimeStamp:\"MsgTimeStamp\",msgSeq:\"MsgSeq\",msgRandom:\"MsgRandom\",msgBody:\"MsgBody\",type:\"MsgType\",content:\"MsgContent\",data:\"Data\",description:\"Desc\",extension:\"Ext\",sizeType:\"Type\",uuid:\"UUID\",url:\"\",imageUrl:\"URL\",fileUrl:\"Url\",remoteAudioUrl:\"Url\",remoteVideoUrl:\"VideoUrl\",thumbUUID:\"ThumbUUID\",videoUUID:\"VideoUUID\",videoUrl:\"\",downloadFlag:\"Download_Flag\",from:\"From_Account\",time:\"MsgTimeStamp\",messageRandom:\"MsgRandom\",messageSequence:\"MsgSeq\",elements:\"MsgBody\",clientSequence:\"ClientSeq\",payload:\"MsgContent\",messageList:\"MsgList\",messageNumber:\"MsgNum\",abstractList:\"AbstractList\",messageBody:\"MsgBody\"}}}}(e)),this._configMap.set(Ar,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.SET_TOKEN)}),body:{tokenID:\"\",pushMsg:0,sdkAppID:0,businessID:\"\",deviceBrand:\"\",deviceToken:\"\",isTpns:0,isWebUniapp:0},keyMap:{request:{tokenID:\"TokenID\",pushMsg:\"PushMsg\",sdkAppID:\"EnterVersion\",businessID:\"BusiID\",deviceBrand:\"InstType\",deviceToken:\"VarToken\",isTpns:\"IsTpns\"}}}}(e)),this._configMap.set(Lr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.STAT_FOREGROUND)}),body:{isWebUniapp:0}}}(e)),this._configMap.set(Sr,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.STAT_BACKGROUND)}),body:{C2CUnread:0,GroupUnread:0,isWebUniapp:0},keyMap:{request:{c2cUnreadCount:\"C2cUnread\",groupUnreadCount:\"GrpUnread\"}}}}(e))}},{key:\"has\",value:function(e){return this._configMap.has(e)}},{key:\"get\",value:function(e){return this._configMap.get(e)}},{key:\"update\",value:function(){this._fillConfigMap()}},{key:\"getKeyMap\",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(Ve.w(\"\".concat(this._n,\".getKeyMap unknown protocolName:\").concat(e)),{})}},{key:\"getProtocolData\",value:function(e){var t=e.protocolName,n=e.requestData,o=this.get(t),s=null;if(n){var r=this._simpleDeepCopy(o),a=this._updateService(n,r),i=a.body,u=Object.create(null);for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c)){if(u[c]=i[c],void 0===n[c])continue;u[c]=n[c]}a.body=u,s=this._getUplinkData(a)}else s=this._getUplinkData(o);return s}},{key:\"_getUplinkData\",value:function(e){var t=this._requestDataCleaner(e),n=Vt(t.head),o=Ki(t.body,this._getRequestKeyMap(n));return t.body=o,t}},{key:\"_updateService\",value:function(e,t){var n=Vt(t.head);if(this._isFromGroupRequest(t)){var o=e.type,s=e.groupID,r=void 0===s?void 0:s,a=e.groupIDList,i=void 0===a?[]:a;dt(r)&&(r=i[0]||\"\"),At({type:o,groupID:r})&&(t.head.servcmd=\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(n))}return t}},{key:\"_isFromGroupRequest\",value:function(e){return e.head.servcmd.includes(V.NAME.GROUP)||e.head.servcmd.includes(V.NAME.GROUP_ATTR)}},{key:\"_getRequestKeyMap\",value:function(e){var n=this.getKeyMap(e);return t(t({},Vi.request),n.request)}},{key:\"_requestDataCleaner\",value:function(e){var t=Array.isArray(e)?[]:Object.create(null);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&ft(o)&&null!==e[o]&&void 0!==e[o]&&(\"object\"!==n(e[o])?t[o]=e[o]:t[o]=this._requestDataCleaner.bind(this)(e[o]));return t}},{key:\"_simpleDeepCopy\",value:function(e){for(var t,n=Object.keys(e),o={},s=0,r=n.length;s<r;s++)t=n[s],lt(e[t])?o[t]=Array.from(e[t]):ut(e[t])?o[t]=this._simpleDeepCopy(e[t]):o[t]=e[t];return o}}]),e}(),cu=[lr],lu=function(){function e(t){o(this,e),this._sessionModule=t,this._n=\"DownlinkHandler\",this._eventHandlerMap=new Map,this._eventHandlerMap.set(\"C2CMessageArray\",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set(\"groupMessageArray\",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set(\"groupTips\",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set(\"C2CNotifyMessageArray\",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set(\"C2CReadReceiptArray\",this._C2CReadReceiptArrayHandler.bind(this)),this._eventHandlerMap.set(\"profileModify\",this._profileHandler.bind(this)),this._eventHandlerMap.set(\"friendListMod\",this._relationChainHandler.bind(this)),this._eventHandlerMap.set(\"recentContactMod\",this._recentContactHandler.bind(this)),this._eventHandlerMap.set(\"readAllC2CMessage\",this._allMessageReadHandler.bind(this)),this._eventHandlerMap.set(\"c2cMessageModified\",this._c2cMessageModifiedHandler.bind(this)),this._eventHandlerMap.set(\"groupMessageModified\",this._groupMessageModifiedHandler.bind(this)),this._eventHandlerMap.set(\"userStatusList\",this._userStatusListHandler.bind(this)),this._eventHandlerMap.set(\"messageExtensionNotify\",this._messageExtensionNotifyHandler.bind(this)),this._keys=v(this._eventHandlerMap.keys())}return r(e,[{key:\"_c2cMessageArrayHandler\",value:function(e){var t=this._sessionModule.getModule(qn);if(t){if(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync)this._sessionModule.getModule(Zn).startOnlineSync();t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0})}}},{key:\"_c2cMessageModifiedHandler\",value:function(e){var t=this._sessionModule.getModule(qn);t&&t.onC2CMessageModified(e)}},{key:\"_groupMessageArrayHandler\",value:function(e){var t=this._sessionModule.getModule(xn);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:\"_groupMessageModifiedHandler\",value:function(e){var t=this._sessionModule.getModule(xn);t&&t.onGroupMessageModified(e)}},{key:\"_groupTipsHandler\",value:function(e){var t=this._sessionModule.getModule(xn);if(t){var n=e.event,o=e.dataList,s=e.isInstantMessage,r=void 0===s||s,a=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:o});break;case 5:for(var i=0;i<o.length;i++)if(lt(o[i].elements.revokedInfos))t.onGroupMessageRevoked({dataList:o});else if(lt(o[i].elements.groupMessageReadNotice))t.onGroupMessageReadNotice({dataList:o});else{if(!lt(o[i].elements.readReceiptList)){t.onNewGroupSystemNotice({dataList:o,isInstantMessage:r,isSyncingEnded:a});break}t.onReadReceiptList({dataList:o})}break;case 12:this._sessionModule.getModule(Kn).onNewGroupAtTips({dataList:o});break;default:Ve.l(\"\".concat(this._n,\"._groupTipsHandler unknown event:\").concat(n,\" dataList:\"),o)}}}},{key:\"_C2CNotifyMessageArrayHandler\",value:function(e){var t=this,n=e.dataList;if(lt(n)){var o=this._sessionModule.getModule(qn);n.forEach((function(e){if(ct(e))if(e.hasOwnProperty(\"kickoutMsgNotify\")){var s=e.kickoutMsgNotify,r=s.kickType,a=s.newInstanceInfo,i=void 0===a?{}:a;1===r?t._sessionModule.onMultipleAccountKickedOut(i):2===r?t._sessionModule.onMultipleDeviceKickedOut(i):3===r&&t._sessionModule.onRestApiKickedOut(i)}else if(e.hasOwnProperty(\"c2cMessageRevokedNotify\"))o&&o.onC2CMessageRevoked({dataList:n});else if(e.hasOwnProperty(\"c2cMessageReadReceipt\"))o&&o.onC2CMessageReadReceipt({dataList:n});else if(e.hasOwnProperty(\"c2cMessageReadNotice\"))o&&o.onC2CMessageReadNotice({dataList:n});else if(e.hasOwnProperty(\"muteNotificationsSync\")){t._sessionModule.getModule(Kn).onC2CMessageRemindTypeSynced({dataList:n})}}))}}},{key:\"_C2CReadReceiptArrayHandler\",value:function(e){this._sessionModule.getModule(qn).onReadReceiptList(e)}},{key:\"_profileHandler\",value:function(e){this._sessionModule.getModule(Fn).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(Vn);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:\"_relationChainHandler\",value:function(e){this._sessionModule.getModule(Fn).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(Vn);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:\"_recentContactHandler\",value:function(e){var t=e.dataList;if(lt(t)){var n=this._sessionModule.getModule(Kn);n&&t.forEach((function(e){var t=e.pushType;if(1===t){var o=e.recentContactDeleteItem;n.onConversationDeleted(o.recentContactList)}else if(2===t){var s=e.recentContactTopItem;n.onConversationPinned(s.recentContactList)}else if(3===t){var r=e.recentContactTopItem;n.onConversationUnpinned(r.recentContactList)}else if(4===t){var a=e.recentContactMarkContact;n.onConversationMarkUpdated(a.recentContactMarkContactItem)}else if(5===t){var i=e.recentContactCreateContactGroup;n.onConversationGroupCreated(i.msgContactGroupContactItem)}else if(6===t){var u=e.recentContactDelContactGroup;n.onConversationGroupDeleted(u.msgGroupItem)}else if(7===t){var c=e.recentContactUpdateContactGroup,l=c.updateType,d=c.msgUpdateGroup,p=c.msgUpdateContact;if(1===l){var g=d.updateGroupType;1===g?n.onConversationGroupNameUpdated(d):2===g&&n.onConversationInGroupUpdated(d)}else 2===l&&n.onConversationAddedToOrDeletedFromGroup(p)}}))}}},{key:\"_allMessageReadHandler\",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(Kn);n&&n.onPushedAllMessageRead(t)}},{key:\"_userStatusListHandler\",value:function(e){this._sessionModule.getModule(Fn).onUserStatusUpdated(e)}},{key:\"_messageExtensionNotifyHandler\",value:function(e){this._sessionModule.getModule(wn).onMessageExtensionNotify(e)}},{key:\"onMessage\",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var o=n.eventArray,s=n.isInstantMessage,r=n.isSyncingEnded,a=n.needSync;if(lt(o))for(var i=null,u=null,c=0,l=0,d=o.length;l<d;l++){c=(i=o[l]).event;var p=Object.keys(i).find((function(e){return-1!==t._keys.indexOf(e)}));p?(u=14===c?{readAllC2CMessage:i[p],groupMessageReadInfoList:i.groupMessageReadNotice||[]}:16===c?{userID:i.userID,readReceiptList:i[p]}:i[p],this._eventHandlerMap.get(p)({event:c,dataList:u,isInstantMessage:s,isSyncingEnded:r,needSync:a})):Ve.l(\"\".concat(this._n,\".onMessage unknown eventItem:\").concat(i))}}}},{key:\"_filterMessageFromIMOpenPush\",value:function(e){var t=e.head,n=e.body,o=t.servcmd,s=!1;if(dt(o)||(s=o.includes(V.NAME.IM_CONFIG_MANAGER)||o.includes(V.NAME.OVERLOAD_PUSH)||o.includes(V.NAME.STAT_SERVICE)),!s)return!0;if(o.includes(V.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(no).onPushedCloudControlConfig(n);else if(o.includes(V.CMD.PUSHED_COMMERCIAL_CONFIG)){this._sessionModule.getModule(ao).onPushedConfig(n)}else if(o.includes(V.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(o.includes(V.CMD.KICK_OTHER)){var r=Date.now();this._sessionModule.reLoginOnKickOther();var a=new jr(\"kickOther\"),i=this._sessionModule.getModule(Pn).getLastWsHelloTs(),u=r-i;a.setMessage(\"last wshello time:\".concat(i,\" diff:\").concat(u,\"ms\")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),du=[{cmd:V.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:V.CMD.GET_AVCHATROOM_MEMBER_LIST,interval:3,count:1},{cmd:V.CMD.GET_GROUP_APPLICATION,interval:1,count:15},{cmd:V.CMD.GET_TOPIC_LIST,interval:1,count:10},{cmd:V.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:V.CMD.UPDATE_GROUP_COUNTER,interval:5,count:20},{cmd:V.CMD.GET_GROUP_COUNTER,interval:5,count:20},{cmd:V.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1},{cmd:V.CMD.GET_USER_STATUS,interval:5,count:20},{cmd:V.CMD.SUBSCRIBE_USER_STATUS,interval:5,count:20},{cmd:V.CMD.UNSUBSCRIBE_USER_STATUS,interval:5,count:20}],pu=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"SessionModule\",t._platform=t.getPlatform(),t._protocolHandler=new uu(_(t)),t._messageDispatcher=new lu(_(t)),t._commandFrequencyLimitMap=new Map,t._commandRequestInfoMap=new Map,t._serverOverloadInfoMap=new Map,t._init(),t.getInnerEmitterInstance().on(Ma,t._onCloudConfigUpdated,_(t)),t}return r(s,[{key:\"_init\",value:function(){this._updateCommandFrequencyLimitMap(du)}},{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"cmd_frequency_limit\");dt(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:\"_updateCommandFrequencyLimitMap\",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:\"updateProtocolConfig\",value:function(){this._protocolHandler.update()}},{key:\"request\",value:function(e){Ve.d(\"\".concat(this._n,\".request options:\"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return Ve.w(\"\".concat(this._n,\".request unknown protocol:\").concat(t)),ha({code:Or.CANNOT_FIND_PROTOCOL});var o=this.getProtocolData(e),s=o.head.servcmd;if(this._isFrequencyOverLimit(s))return ha({code:Or.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(s))return ha({code:Or.OPEN_SERVICE_OVERLOAD_ERROR});$t(n)||(o.head.tjgID=n);var r=this.getModule(eo);return cu.includes(t)?r.simplySend(o):r.send(o)}},{key:\"getKeyMap\",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:\"genCommonHead\",value:function(){var e=this.getModule(Wn);return{ver:\"v4\",platform:this._platform,websdkappid:O,websdkversion:R,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:192371,tjgID:\"\"}}},{key:\"genCosSpecifiedHead\",value:function(){var e=this.getModule(Wn);return{ver:\"v4\",platform:this._platform,websdkappid:O,websdkversion:R,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:\"genSSOReportHead\",value:function(){var e=this.getModule(Wn);return{ver:\"v4\",platform:this._platform,websdkappid:O,websdkversion:R,sdkappid:e.getSDKAppID(),contenttype:\"\",reqtime:0,identifier:\"\",usersig:\"\",status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:\"getProtocolData\",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:\"trans\",value:function(e){var n=e.servcmd,o=e.data,s={head:t(t({},this.genCommonHead()),{},{servcmd:n}),body:o};return this.getModule(eo).send(s)}},{key:\"sendComboMessage\",value:function(e){var n=e.servcmd,o=e.data,s={head:t(t({},this.genCommonHead()),{},{servcmd:n}),body:o};return this.getModule(eo).send(s)}},{key:\"onErrorCodeNotZero\",value:function(e){var t=e.errorCode;if(t===Or.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,o=e.newInstanceInfo,s=void 0===o?{}:o;1===n?this.onMultipleAccountKickedOut(s):2===n?this.onMultipleDeviceKickedOut(s):3===n&&this.onRestApiKickedOut(s)}t!==Or.MESSAGE_A2KEY_EXPIRED&&t!==Or.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(eo).reConnect())}},{key:\"onMessage\",value:function(e){var t=e.body,n=t.needAck,o=void 0===n?0:n,s=t.sessionData;1===o&&this._sendACK(s),this._messageDispatcher.onMessage(e)}},{key:\"onReconnected\",value:function(){this._reLoginOnReconnected()}},{key:\"reLoginOnKickOther\",value:function(){Ve.l(\"\".concat(this._n,\".reLoginOnKickOther\")),this._reLogin()}},{key:\"_reLoginOnReconnected\",value:function(){Ve.l(\"\".concat(this._n,\"._reLoginOnReconnected\")),this._reLogin()}},{key:\"_reLogin\",value:function(){var e=this;if(this.isLoggedIn()){var t=0,n=this.getModule(io);n.canIUseOfflinePush()&&(t=n.getUniAppPlatform()),this.request({protocolName:_o,requestData:{isWebUniapp:t}}).then((function(t){var n=t.data.instanceID;e.getModule(Wn).setStatusInstanceID(n),Ve.l(\"\".concat(e._n,\"._reLogin ok.\")),e.getModule(Kn).syncConversationList().then((function(){Ve.l(\"\".concat(e._n,\"._reLogin, sync conversation list ok.\")),e.getModule(so).start()})),e.getModule(xn).updateLocalMainSequenceOnReconnected();var o=e.getModule(Hn);o.resetGetTopicTime(),o.getTopicListOnReconnected()}))}}},{key:\"onMultipleAccountKickedOut\",value:function(e){this.getModule(Pn).onMultipleAccountKickedOut(e)}},{key:\"onMultipleDeviceKickedOut\",value:function(e){this.getModule(Pn).onMultipleDeviceKickedOut(e)}},{key:\"_onUserSigExpired\",value:function(){this.getModule(Pn).onUserSigExpired()}},{key:\"onRestApiKickedOut\",value:function(e){this.getModule(Pn).onRestApiKickedOut(e)}},{key:\"_sendACK\",value:function(e){this.request({protocolName:lr,requestData:{sessionData:e}})}},{key:\"_isFrequencyOverLimit\",value:function(e){var t=e.split(\".\")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),o=n.count,s=n.interval,r=this._commandRequestInfoMap.get(t),a=r.startTime,i=r.requestCount;if(Date.now()-a>1e3*s)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;i+=1,this._commandRequestInfoMap.set(t,{startTime:a,requestCount:i});var u=!1;return i>o&&(u=!0),u}},{key:\"_isServerOverload\",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,o=t.waitingTime,s=!1;return Date.now()-n<=1e3*o?s=!0:(this._serverOverloadInfoMap.delete(e),s=!1),s}},{key:\"onPushedServerOverload\",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),Ve.w(\"\".concat(this._n,\".onPushedServerOverload waitingTime:\").concat(n,\"s\"))}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._updateCommandFrequencyLimitMap(du),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),s}(go),gu=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"MessageLossDetectionModule\",s._maybeLostSequencesMap=new Map,s._firstRoundRet=[],s}return r(n,[{key:\"onMessageMaybeLost\",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var o=this._maybeLostSequencesMap.get(e),s=0;s<n;s++)-1===o.indexOf(t+s)&&o.push(t+s)}},{key:\"detectFirstRound\",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!$t(n)&&!$t(t)){var o=n.filter((function(e){return-1===t.indexOf(e)}));0===o.length?Ve.i(\"\".concat(this._n,\".detectFirstRound no message loss. conversationID:\").concat(e)):this._firstRoundRet=this._firstRoundRet.concat(o),n.length=0}}},{key:\"detectSecondRound\",value:function(e,t){if(!$t(this._firstRoundRet)&&!$t(t)){var n=this._firstRoundRet.filter((function(e){return-1===t.indexOf(e)}));this._firstRoundRet.length=0;var o,s=n.length;if(0!==s)s<=5?o=e+\"-\"+n.join(\"-\"):(n.sort((function(e,t){return e-t})),o=e+\" start:\"+n[0]+\" end:\"+n[s-1]+\" count:\"+s),new jr(\"messageLoss\").setMessage(o).setNetworkType(this.getNetworkType()).setLevel(\"warning\").end(),Ve.i(\"\".concat(this._n,\".detectSecondRound message loss detected. conversationID:\").concat(e,\" lostSequences:\").concat(n))}}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._maybeLostSequencesMap.clear(),this._firstRoundRet.length=0}}]),n}(go),_u=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"CloudControlModule\",s._cloudConfig=new Map,s._expiredTime=0,s._version=0,s._isFetching=!1,s}return r(n,[{key:\"getCloudConfig\",value:function(e){return dt(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:\"_canFetchConfig\",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:\"fetchConfig\",value:function(){var e=this,t=this._canFetchConfig();if(Ve.l(\"\".concat(this._n,\".fetchConfig canFetchConfig:\").concat(t)),t){var n=new jr(\"fetchCloudControlConfig\"),o=this.getModule(Wn).getSDKAppID();this._isFetching=!0,this.request({protocolName:_r,requestData:{SDKAppID:o,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage(\"version:\".concat(e._version,\" newVersion:\").concat(t.data.version,\" config:\").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),Ve.l(\"\".concat(e._n,\".fetchConfig ok\")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var o=m(e,2),s=o[0],r=o[1];n.setError(t,s,r).end()})),Ve.l(\"\".concat(e._n,\".fetchConfig failed. error:\"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:\"onPushedCloudControlConfig\",value:function(e){Ve.l(\"\".concat(this._n,\".onPushedCloudControlConfig\")),new jr(\"pushedCloudControlConfig\").setNetworkType(this.getNetworkType()).setMessage(\"newVersion:\".concat(e.version,\" config:\").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:\"onCheckTimer\",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:\"_parseCloudControlConfig\",value:function(e){var t=this,n=\"\".concat(this._n,\"._parseCloudControlConfig\"),o=e.errorCode,s=e.errorMessage,r=e.cloudControlConfig,a=e.version,i=e.expiredTime;if(0===o){if(this._version!==a){var u=null;try{u=JSON.parse(r)}catch(c){this.isPrivateNetWork()||Ve.e(\"\".concat(n,\" JSON parse error. cloudControlConfig:\"),r)}u&&(this._cloudConfig.clear(),Object.keys(u).forEach((function(e){t._cloudConfig.set(e,u[e])})),this._version=a,this.emitInnerEvent(Ma))}this._expiredTime=Date.now()+1e3*i}else dt(o)?(Ve.l(\"\".concat(n,\" failed. Invalid message format:\"),e),this._setExpiredTimeOnResponseError(36e5)):(Ve.e(\"\".concat(n,\" errorCode:\").concat(o,\" errorMessage:\").concat(s)),this._setExpiredTimeOnResponseError(12e4))}},{key:\"_setExpiredTimeOnResponseError\",value:function(e){this._expiredTime=Date.now()+e}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),n}(go),hu=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"RecoverMessageModule\",s.PULL_LIMIT_COUNT=15,s}return r(n,[{key:\"start\",value:function(){this._recoverGroupChat(),this._recoverC2CChat()}},{key:\"_recoverGroupChat\",value:function(){var e,t,n=this,o=this._getLocalConversationList().filter((function(e){return e.type===k.CONV_GROUP&&e.groupProfile.type!==k.GRP_AVCHATROOM})),s=this.getModule(Kn),r=0,a=0,i=0;o.forEach((function(o){var u=o.conversationID,c=o.lastMessage;t=u.replace(k.CONV_GROUP,\"\"),e=s.getLocalLastMessage(u),c&&0!==c.lastSequence&&e?(a=c.lastSequence,r=e.sequence,i=a-r,r>0&&i>=1&&i<300?n._recoverGroupMessage({groupID:t,localLastMessageSequence:r,remoteLastMessageSequence:a}):n._getGroupNotify(t)):n._getGroupNotify(t)}))}},{key:\"_recoverC2CChat\",value:function(){var e,t=this,n=this._getLocalConversationList().filter((function(e){return e.type===k.CONV_C2C})),o=this.getModule(Kn),s=0,r=0,a=0,i=[Promise.resolve()];n.forEach((function(n){var u=n.conversationID,c=n.lastMessage;e=o.getLocalLastMessage(u),c&&0!==c.lastTime&&e&&(r=c.lastTime,s=e.time,a=r-s,s>0&&a>=1&&a<=600&&i.push(t._recoverC2CMessage({conversationID:u,localLastMessageTime:s,remoteLastMessageTime:r})))})),Promise.all(i).then((function(){Ve.l(\"\".concat(t._n,\"._recoverC2CChat all promise fulfilled, start to sync unread messages\")),t.getModule(Zn).startSyncOnReconnected()}))}},{key:\"_getLocalConversationList\",value:function(){return this.getModule(Kn).getLocalConversationList()}},{key:\"_recoverGroupMessage\",value:function(e){var t=this,n=\"\".concat(this._n,\"._recoverGroupMessage\");Ve.l(\"\".concat(n,\" options:\"),e);var o=e.groupID,s=e.localLastMessageSequence,r=e.remoteLastMessageSequence;this._getGroupRomaingMessage({groupID:o,sequence:s}).then((function(e){var s=e.data,a=s.complete,i=s.messageList;if(!dt(i)){var u=i[0].sequence;Ve.l(\"\".concat(n,\" pkgLastMessageSequence:\").concat(u,\" complete:\").concat(a)),u<r&&2!==a&&t._recoverGroupMessage({groupID:o,localLastMessageSequence:u,remoteLastMessageSequence:r}),new jr(\"recoverMessage\").setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(o,\" complete:\").concat(a,\" messageList length:\").concat(i.length)).end();var c=t.getModule(xn);i.length>1&&i.sort((function(e,t){return e.sequence-t.sequence}));for(var l=0;l<i.length;l++){var d=i[l];d.from!==k.CONV_SYSTEM?c.onNewGroupMessage({dataList:[d],isInstantMessage:!1,updateUnreadCount:!1}):c.onNewGroupTips({event:d.event,dataList:[d]})}t._getGroupNotify(o)}}))}},{key:\"_getGroupNotify\",value:function(e){this.getModule(xn).getGroupNotify(e)}},{key:\"_getGroupRomaingMessage\",value:function(e){var t=e.groupID,n=e.sequence;return this.request({protocolName:Ss,requestData:{groupID:t,count:this.PULL_LIMIT_COUNT,sequence:n+this.PULL_LIMIT_COUNT-1}})}},{key:\"_recoverC2CMessage\",value:function(e){var t=this,n=\"\".concat(this._n,\"._recoverC2CMessage\");Ve.l(\"\".concat(this._n,\"._recoverC2CMessage options:\"),e);var o=e.conversationID,s=e.localLastMessageTime,r=e.remoteLastMessageTime;return this._getC2CRoamingMessage({conversationID:o,time:s}).then((function(e){var s=e.data,a=s.complete,i=s.messageList;if(!dt(i)){var u=i.length;new jr(\"recoverMessage\").setNetworkType(t.getNetworkType()).setMessage(\"\".concat(o,\" complete:\").concat(a,\" messageList length:\").concat(u)).end(),t.getModule(qn).onNewC2CMessage({dataList:i,isInstantMessage:!0});var c=i[u-1].time;if(Ve.l(\"\".concat(n,\" pkgLastMessageTime:\").concat(c,\" complete:\").concat(a)),c<r&&1!==a)return t._recoverC2CMessage({conversationID:o,localLastMessageTime:c,remoteLastMessageTime:r})}}))}},{key:\"_getC2CRoamingMessage\",value:function(e){var t=e.conversationID,n=e.time;return this.request({protocolName:Wo,requestData:{peerAccount:t.replace(k.CONV_C2C,\"\"),count:this.PULL_LIMIT_COUNT+1,lastMessageTime:n,direction:1}})}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\"))}}]),n}(go),fu=function(){function e(){o(this,e),this._n=\"AvgE2EDelay\",this._e2eDelayArray=[]}return r(e,[{key:\"addMessageDelay\",value:function(e){var t=we()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:\"_calcAvg\",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),Bt(n/t,1)}},{key:\"_calcCountWithLimit\",value:function(e){var t=e.e2eDelayArray,n=e.min,o=e.max;return t.filter((function(e){return n<=e&&e<o})).length}},{key:\"_calcPercent\",value:function(e,t){var n=Bt(e/t*100,2);return n>100&&(n=100),n}},{key:\"_checkE2EDelayException\",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var o=n.length,s=Math.min.apply(Math,v(n)),r=Math.max.apply(Math,v(n)),a=this._calcAvg(n,o),i=Bt(o/e.length*100,2);if(i>50)new jr(\"messageE2EDelayException\").setMessage(\"count:\".concat(o,\" min:\").concat(s,\" max:\").concat(r,\" avg:\").concat(a,\" percent:\").concat(i)).setLevel(\"warning\").end()}}},{key:\"getStatResult\",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=v(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),o=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),s=this._calcPercent(n,e),r=this._calcPercent(o,e),a=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:s,countLessThan3Second:o,percentOfCountLessThan3Second:r,avgDelay:a}}},{key:\"reset\",value:function(){this._e2eDelayArray.length=0}}]),e}(),mu=function(){function e(){o(this,e),this._n=\"AvgRTT\",this._requestCount=0,this._rttArray=[]}return r(e,[{key:\"addRequestCount\",value:function(){this._requestCount+=1}},{key:\"addRTT\",value:function(e){this._rttArray.push(e)}},{key:\"_calcTotalCount\",value:function(){return this._requestCount}},{key:\"_calcRTTCount\",value:function(e){return e.length}},{key:\"_calcSuccessRateOfRequest\",value:function(e,t){if(0===t)return 0;var n=Bt(e/t*100,2);return n>100&&(n=100),n}},{key:\"_calcAvg\",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:\"_calcMax\",value:function(){return Math.max.apply(Math,v(this._rttArray))}},{key:\"_calcMin\",value:function(){return Math.min.apply(Math,v(this._rttArray))}},{key:\"getStatResult\",value:function(){var e=this._calcTotalCount(),t=v(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),o=this._calcSuccessRateOfRequest(n,e),s=this._calcAvg(t,n);return Ve.l(\"\".concat(this._n,\".getStatResult max:\").concat(this._calcMax(),\" min:\").concat(this._calcMin(),\" avg:\").concat(s)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:o,avgRTT:s}}},{key:\"reset\",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),vu=function(){function e(){o(this,e),this._map=new Map}return r(e,[{key:\"initMap\",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:\"addTotalCount\",value:function(e){return!(dt(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:\"addSuccessCount\",value:function(e){return!(dt(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:\"addFailedCountOfUserSide\",value:function(e){return!(dt(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:\"addCost\",value:function(e,t){return!(dt(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:\"addFileSize\",value:function(e,t){return!(dt(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:\"_calcSuccessRateOfBusiness\",value:function(e){if(dt(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=Bt(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:\"_calcSuccessRateOfPlatform\",value:function(e){if(dt(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=Bt(n,2))>100&&(n=100),n}},{key:\"_calcTotalCount\",value:function(e){return dt(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:\"_calcSuccessCountOfBusiness\",value:function(e){return dt(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:\"_calcSuccessCountOfPlatform\",value:function(e){if(dt(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:\"_calcAvg\",value:function(e){return dt(e)||!this._map.has(e)?-1:e===qr?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:\"_calcAvgCost\",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:\"_calcAvgSpeed\",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:\"getStatResult\",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),o=this._calcSuccessRateOfBusiness(e),s=this._calcSuccessCountOfPlatform(e),r=this._calcSuccessRateOfPlatform(e),a=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:o,successCountOfPlatform:s,successRateOfPlatform:r,avgValue:a}}},{key:\"reset\",value:function(e){dt(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),Mu=function(){function e(){o(this,e),this._lastMap=new Map,this._currentMap=new Map}return r(e,[{key:\"initMap\",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:\"addMessageSequence\",value:function(e){var t=e.key,n=e.message;if(dt(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var o=n.conversationID,s=n.sequence,r=o.replace(k.CONV_GROUP,\"\");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(r)){var a=this._lastMap.get(t).get(r),i=a.length-1;s>a[0]&&s<a[i]?(a.push(s),a.sort(),this._lastMap.get(t).set(r,a)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:\"_addCurrentMap\",value:function(e){var t=e.key,n=e.message,o=n.conversationID,s=n.sequence,r=o.replace(k.CONV_GROUP,\"\");this._currentMap.get(t).has(r)||this._currentMap.get(t).set(r,[]),this._currentMap.get(t).get(r).push(s)}},{key:\"_copyData\",value:function(e){if(!dt(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),o=D(this._currentMap.get(e));try{for(o.s();!(t=o.n()).done;){var s=m(t.value,2),r=s[0],a=s[1];n.set(r,a)}}catch(i){o.e(i)}finally{o.f()}n=null,this._currentMap.set(e,new Map)}}},{key:\"getStatResult\",value:function(e){if(dt(this._currentMap.get(e))||dt(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,o){var s=v(e.values()),r=s.length,a=s[r-1]-s[0]+1;t+=a,n+=r})),0===t)return null;var o=Bt(n/t*100,2);return o>100&&(o=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:o}}},{key:\"reset\",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),yu=function(e){i(s,e);var n=f(s);function s(e){var t;o(this,s),(t=n.call(this,e))._n=\"QualityStatModule\",t.TAG=\"im-ssolog-quality-stat\",t.reportIndex=0,t.wholePeriod=!1,t._qualityItems=[Gr,Ur,Pr,br,wr,Fr,qr,xr,Vr,Br],t._messageSentItems=[Pr,br,wr,Fr,qr],t._messageReceivedItems=[xr,Vr,Br],t.REPORT_INTERVAL=120,t.REPORT_SDKAPPID_BLACKLIST=[],t.REPORT_TINYID_WHITELIST=[],t._statInfoArr=[],t._avgRTT=new mu,t._avgE2EDelay=new fu,t._rateMessageSent=new vu,t._rateMessageReceived=new Mu;var r=t.getInnerEmitterInstance();return r.on(va,t._onLoginSuccess,_(t)),r.on(Ma,t._onCloudConfigUpdated,_(t)),t}return r(s,[{key:\"_onLoginSuccess\",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(Yn),n=t.getItem(this.TAG,!1);!$t(n)&&gt(n.forEach)&&(Ve.l(\"\".concat(this._n,\"._onLoginSuccess get quality stat logs from local storage, count:\").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"q_rpt_interval\"),t=this.getCloudConfig(\"q_rpt_sdkappid_bl\"),n=this.getCloudConfig(\"q_rpt_tinyid_wl\");dt(e)||(this.REPORT_INTERVAL=Number(e)),dt(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(\",\").map((function(e){return Number(e)}))),dt(n)||(this.REPORT_TINYID_WHITELIST=n.split(\",\"))}},{key:\"onCheckTimer\",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:\"addRequestCount\",value:function(){this._avgRTT.addRequestCount()}},{key:\"addRTT\",value:function(e){this._avgRTT.addRTT(e)}},{key:\"addMessageDelay\",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:\"addTotalCount\",value:function(e){this._rateMessageSent.addTotalCount(e)||Ve.w(\"\".concat(this._n,\".addTotalCount invalid key:\"),e)}},{key:\"addSuccessCount\",value:function(e){this._rateMessageSent.addSuccessCount(e)||Ve.w(\"\".concat(this._n,\".addSuccessCount invalid key:\"),e)}},{key:\"addFailedCountOfUserSide\",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Ve.w(\"\".concat(this._n,\".addFailedCountOfUserSide invalid key:\"),e)}},{key:\"addCost\",value:function(e,t){this._rateMessageSent.addCost(e,t)||Ve.w(\"\".concat(this._n,\".addCost invalid key or cost:\"),e,t)}},{key:\"addFileSize\",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Ve.w(\"\".concat(this._n,\".addFileSize invalid key or size:\"),e,t)}},{key:\"addMessageSequence\",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Ve.w(\"\".concat(this._n,\".addMessageSequence invalid key:\"),e.key)}},{key:\"_getQualityItem\",value:function(e){var n={},o=Wr[this.getNetworkType()];dt(o)&&(o=8);var s={qualityType:Hr[e],timestamp:Pe(),networkType:o,extension:\"\"};switch(e){case Gr:n=this._avgRTT.getStatResult();break;case Ur:n=this._avgE2EDelay.getStatResult();break;case Pr:case br:case wr:case Fr:case qr:n=this._rateMessageSent.getStatResult(e);break;case xr:case Vr:case Br:n=this._rateMessageReceived.getStatResult(e)}return null===n?null:t(t({},s),n)}},{key:\"_report\",value:function(e){var t=this,n=[],o=null;dt(e)?this._qualityItems.forEach((function(e){null!==(o=t._getQualityItem(e))&&(o.reportIndex=t.reportIndex,o.wholePeriod=t.wholePeriod,n.push(o))})):null!==(o=this._getQualityItem(e))&&(o.reportIndex=this.reportIndex,o.wholePeriod=this.wholePeriod,n.push(o)),Ve.d(\"\".concat(this._n,\"._report\"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var s=this.getModule(Wn),r=s.getSDKAppID(),a=s.getTinyID();Ht(this.REPORT_SDKAPPID_BLACKLIST,r)&&!Kt(this.REPORT_TINYID_WHITELIST,a)&&(n=[]),n.length>0&&this._doReport(n)}},{key:\"_doReport\",value:function(e){var n=this,o={header:Ii(this),quality:e};this.request({protocolName:ar,requestData:t({},o)}).then((function(){n.reportIndex++,n.wholePeriod=!1})).catch((function(t){Ve.w(\"\".concat(n._n,\"._doReport, online:\").concat(n.getNetworkType(),\" error:\"),t),n._statInfoArr=n._statInfoArr.concat(e),n._flushAtOnce()}))}},{key:\"_flushAtOnce\",value:function(){var e=this.getModule(Yn),t=e.getItem(this.TAG,!1),n=this._statInfoArr,o=\"\".concat(this._n,\"._flushAtOnce\");if($t(t))Ve.l(\"\".concat(o,\" count:\").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var s=n.concat(t);s.length>10&&(s=s.slice(0,10)),Ve.l(\"\".concat(o,\" count:\").concat(s.length)),e.setItem(this.TAG,s,!0,!1)}this._statInfoArr=[]}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),s}(go),Iu=r((function e(t){o(this,e),$t(t)||(this.userID=t.userID||\"\",this.nick=t.nick||\"\",this.avatar=t.avatar||\"\",this.time=t.time||0,this.source=t.source||\"\",this.wording=t.wording||\"\",this.type=t.type||\"\")})),Cu=function(){function e(t){o(this,e),this._snsModule=t,this._n=\"FriendApplicationHandler\",this._startTime=0,this._maxLimited=100,this._currentSequence=0,this._friendApplicationMap=new Map,this._unreadCount=0}return r(e,[{key:\"getLocalFriendApplicationList\",value:function(){return{friendApplicationList:v(this._friendApplicationMap.values()),unreadCount:this._unreadCount}}},{key:\"_onFriendApplicationListUpdated\",value:function(){this._snsModule.emitOuterEvent(E.FRIEND_APPLICATION_LIST_UPDATED,{friendApplicationList:v(this._friendApplicationMap.values()),unreadCount:this._unreadCount})}},{key:\"onFriendApplicationRead\",value:function(){this._unreadCount=0,this._onFriendApplicationListUpdated()}},{key:\"onFriendApplicationAdded\",value:function(e,n){var o=this;if(!$t(e)){var s=\"\";s=n===this._snsModule.getMyUserID()?k.SNS_APPLICATION_SENT_BY_ME:k.SNS_APPLICATION_SENT_TO_ME;var r=!1;e.forEach((function(e){var n=\"\".concat(e.userID,\"_\").concat(s);s!==k.SNS_APPLICATION_SENT_TO_ME||o._friendApplicationMap.has(n)||(o._unreadCount+=1),o._friendApplicationMap.set(n,new Iu(t(t({},e),{},{type:s}))),r=!0})),r&&this._onFriendApplicationListUpdated()}}},{key:\"onFriendApplicationDeleted\",value:function(e){$t(e)||this.getFriendApplicationList()}},{key:\"getFriendApplicationList\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"getFriendApplicationList\"),n=new jr(\"getFriendApplicationList\");return this._snsModule.request({protocolName:Uo,requestData:{applicationType:k.SNS_APPLICATION_TYPE_BOTH,fromAccount:this._snsModule.getMyUserID(),maxLimited:this._maxLimited,startTime:this._startTime,lastSequence:this._currentSequence}}).then((function(o){var s=o.data,r=s.resultList,a=s.unreadCount,i=s.startTime,u=s.currentSequence;e._startTime=i,e._currentSequence=u,e._unreadCount=a;var c=lt(r)?r.length:0;n.setNetworkType(e._snsModule.getNetworkType()).setMessage(\"applicationCount:\".concat(c,\" unreadCount:\").concat(a)).end(),Ve.i(\"\".concat(t,\" ok. applicationCount:\").concat(c,\" unreadCount:\").concat(a)),e._friendApplicationMap.clear(),lt(r)&&r.forEach((function(t){var n=t.userID,o=t.type,s=new Iu(t);e._friendApplicationMap.set(\"\".concat(n,\"_\").concat(o),s)})),e._onFriendApplicationListUpdated()})).catch((function(o){return e._snsModule.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];n.setError(o,s,r).end()})),Ve.w(\"\".concat(t,\" failed. error:\"),o),ha(o)}))}},{key:\"deleteFriendApplication\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteFriendApplication\"),o=e.userID,s=e.type;if((!s||s!==k.SNS_APPLICATION_SENT_BY_ME&&s!==k.SNS_APPLICATION_SENT_TO_ME)&&(s=k.SNS_APPLICATION_SENT_TO_ME),!this._friendApplicationMap.has(\"\".concat(o,\"_\").concat(s)))return ha({code:Or.FRIEND_APPLICATION_NOT_EXIST});var r=new jr(\"deleteFriendApplication\");return r.setMessage(\"userID:\".concat(o,\" type:\").concat(s)),this._snsModule.request({protocolName:Po,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:[o],type:s}}).then((function(e){var a=e.data.resultList,i=a[0],u=i.to,c=i.resultCode,l=i.resultInfo;return r.setNetworkType(t._snsModule.getNetworkType()).setMoreMessage(\"resultList:\".concat(JSON.stringify(a))).end(),Ve.i(\"\".concat(n,\" ok. userID:\").concat(o,\" type:\").concat(s)),0===c?la():ha({userID:u,code:c,message:l})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"acceptFriendApplication\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"acceptFriendApplication\"),o=e.userID,s=e.remark,r=e.tag,a=e.type;(!a||a!==k.SNS_APPLICATION_AGREE&&a!==k.SNS_APPLICATION_AGREE_AND_ADD)&&(a=k.SNS_APPLICATION_AGREE_AND_ADD);var i=new jr(\"acceptFriendApplication\");return i.setMessage(\"userID:\".concat(o,\" type:\").concat(a)),this._snsModule.request({protocolName:Go,requestData:{fromAccount:this._snsModule.getMyUserID(),responseFriendItem:[{userID:o,remark:s,tag:r,action:a}]}}).then((function(e){i.setNetworkType(t._snsModule.getNetworkType()).end();var s=e.data.resultList[0],r=s.resultCode,u=s.resultInfo;if(0!==r)return ha({code:r,message:u});Ve.i(\"\".concat(n,\" ok. userID:\").concat(o,\" type:\").concat(a))})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"refuseFriendApplication\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"refuseFriendApplication\"),o=e.userID,s=new jr(\"refuseFriendApplication\");return s.setMessage(\"userID:\".concat(o)),this._snsModule.request({protocolName:Go,requestData:{fromAccount:this._snsModule.getMyUserID(),responseFriendItem:[{userID:o,action:\"Response_Action_Reject\"}]}}).then((function(e){s.setNetworkType(t._snsModule.getNetworkType()).end();var r=e.data.resultList[0],a=r.resultCode,i=r.resultInfo;if(0!==a)return ha({code:a,message:i});Ve.i(\"\".concat(n,\" ok. userID:\").concat(o))})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];s.setError(e,o,r).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_onFriendApplicationProcessed\",value:function(e){var t=this;if(0!==e.length){var n=!1;e.forEach((function(e){var o=\"\".concat(e.to,\"_\").concat(k.SNS_APPLICATION_SENT_TO_ME);t._friendApplicationMap.has(o)&&(t._friendApplicationMap.delete(o),t._unreadCount-=1,n=!0)})),this._unreadCount<0&&(this._unreadCount=0),n&&this._onFriendApplicationListUpdated()}}},{key:\"setFriendApplicationRead\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"setFriendApplicationRead\"),n=new jr(\"setFriendApplicationRead\");return this._snsModule.request({protocolName:bo,requestData:{fromAccount:this._snsModule.getMyUserID(),latestTimeStamp:Bt(Pe()/1e3,0)}}).then((function(o){n.setNetworkType(e._snsModule.getNetworkType()).end(),Ve.i(\"\".concat(t,\" ok\")),e._unreadCount=0})).catch((function(o){return e._snsModule.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];n.setError(o,s,r).end()})),Ve.w(\"\".concat(t,\" failed. error:\"),o),ha(o)}))}},{key:\"reset\",value:function(){this._startIndex=0,this._maxLimited=100,this._currentSequence=0,this._unreadCount=0,this._friendApplicationMap.clear()}}]),e}(),Tu=function(){function e(n,s){o(this,e),this.userID=n,this.remark=\"\",this.groupList=[],this.source=\"\",this.addTime=0,this.friendCustomField=[],this.timestamp=0;var r={},a=[];if(r.userID=n,!$t(s))for(var i=\"\",u=\"\",c=0,l=s.length;c<l;c++)if(i=s[c].tag,u=s[c].value,i.indexOf(\"Tag_SNS_Custom\")>-1)this.friendCustomField.push({key:i,value:u});else if(i.indexOf(\"Tag_Profile_Custom\")>-1)a.push({key:i,value:u});else switch(i){case He.NICK:r.nick=u;break;case He.GENDER:r.gender=u;break;case He.BIRTHDAY:r.birthday=u;break;case He.LOCATION:r.location=u;break;case He.SELFSIGNATURE:r.selfSignature=u;break;case He.ALLOWTYPE:r.allowType=u;break;case He.LANGUAGE:r.language=u;break;case He.AVATAR:r.avatar=u;break;case He.MESSAGESETTINGS:r.messageSettings=u;break;case He.ADMINFORBIDTYPE:r.adminForbidType=u;break;case He.LEVEL:r.level=u;break;case He.ROLE:r.role=u;break;case We:this.remark=u;break;case Je:this.addTime=u;break;case Ke:this.groupList=JSON.parse(JSON.stringify(u));break;case Ye:this.source=u;break;case je:break;default:Ve.l(\"snsProfileItem unknown tag->\",s[c].tag)}this.profile=new La(t(t({},r),{},{profileCustomField:a}))}return r(e,[{key:\"validate\",value:function(e){var t=!0,n=\"\";if($t(e))return{valid:!1,tips:\"empty options\"};if(e.profileCustomField)for(var o=e.profileCustomField.length,s=null,r=0;r<o;r++){if(s=e.profileCustomField[r],!it(s.key)||-1===s.key.indexOf(\"Tag_Profile_Custom\"))return{valid:!1,tips:\"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom\"};if(!it(s.value))return{valid:!1,tips:\"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String\"}}for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(\"profileCustomField\"===a)continue;if($t(e[a])&&!it(e[a])&&!at(e[a])){n=\"key:\"+a+\", invalid value:\"+e[a],t=!1;continue}switch(a){case\"nick\":it(e[a])||(n=\"nick must be a string\",t=!1),Mt(e[a])>500&&(n=\"nick name limited: must less than or equal to \".concat(500,\" bytes, current size: \").concat(Mt(e[a]),\" bytes\"),t=!1);break;case\"gender\":Tt(ze,e.gender)||(n=\"key:gender, invalid value:\"+e.gender,t=!1);break;case\"birthday\":at(e.birthday)||(n=\"birthday must be a number\",t=!1);break;case\"location\":it(e.location)||(n=\"location must be a string\",t=!1);break;case\"selfSignature\":it(e.selfSignature)||(n=\"selfSignature must be a string\",t=!1);break;case\"allowType\":Tt(Qe,e.allowType)||(n=\"key:allowType, invalid value:\"+e.allowType,t=!1);break;case\"language\":at(e.language)||(n=\"language must be a number\",t=!1);break;case\"avatar\":it(e.avatar)||(n=\"avatar must be a string\",t=!1);break;case\"messageSettings\":0!==e.messageSettings&&1!==e.messageSettings&&(n=\"messageSettings must be 0 or 1\",t=!1);break;case\"adminForbidType\":Tt(Xe,e.adminForbidType)||(n=\"key:adminForbidType, invalid value:\"+e.adminForbidType,t=!1);break;case\"level\":at(e.level)||(n=\"level must be a number\",t=!1);break;case\"role\":at(e.role)||(n=\"role must be a number\",t=!1);break;default:n=\"unknown key:\"+a+\"  \"+e[a],t=!1}}return{valid:t,tips:n}}},{key:\"update\",value:function(e){var t=\"\",n=\"\",o=[];this.friendCustomField.forEach((function(e){o.push(e.key)}));for(var s=0,r=e.length;s<r;s++)if(t=e[s].tag,n=e[s].value,t.indexOf(\"Tag_SNS_Custom\")>-1)o.indexOf(t)>-1?this.friendCustomField.forEach((function(e){e.key===t&&(e.value=n)})):this.friendCustomField.push({key:t,value:n});else if(t.indexOf(\"Tag_Profile_Custom\")>-1){var a=!1;this.profile.profileCustomField.forEach((function(e){e.key===t&&(e.value=n,a=!0)})),a||this.profile.profileCustomField.push({key:t,value:n})}else switch(t){case He.NICK:this.profile.nick=n;break;case He.GENDER:this.profile.gender=n;break;case He.BIRTHDAY:this.profile.birthday=n;break;case He.LOCATION:this.profile.location=n;break;case He.SELFSIGNATURE:this.profile.selfSignature=n;break;case He.ALLOWTYPE:this.profile.allowType=n;break;case He.LANGUAGE:this.profile.language=n;break;case He.AVATAR:this.profile.avatar=n;break;case He.MESSAGESETTINGS:this.profile.messageSettings=n;break;case He.ADMINFORBIDTYPE:this.profile.adminForbidType=n;break;case He.LEVEL:this.profile.level=n;break;case He.ROLE:this.profile.role=n;break;case We:this.remark=n;break;case Je:this.addTime=n;break;case Ke:this.groupList=JSON.parse(JSON.stringify(n));break;case Ye:this.source=n;break;case je:break;default:Ve.d(\"snsProfileItem unkown tag->\",e[s].tag)}this.timestamp=Date.now(),o.length=0}},{key:\"updateProfile\",value:function(e){this.profile=JSON.parse(JSON.stringify(e)),this.timestamp=Date.now()}},{key:\"addToGroupList\",value:function(e){-1===this.groupList.indexOf(e)&&(this.groupList.push(e),this.count=this.groupList.length)}},{key:\"removeFromGroupList\",value:function(e){var t=this.groupList.indexOf(e);t>-1&&(this.groupList.splice(t,1),this.count=this.groupList.length)}}]),e}(),Du=function(){function e(t){o(this,e),this._snsModule=t,this._n=\"FriendHandler\",this._friendMap=new Map,this._startIndex=0,this._standardSequence=0,this._customSequence=0,this._expirationTime=18e4}return r(e,[{key:\"getLocalFriendList\",value:function(){return v(this._friendMap.values())}},{key:\"getFriendRemark\",value:function(e){return this._friendMap.has(e)?this._friendMap.get(e).remark:\"\"}},{key:\"onFriendProfileModified\",value:function(e){var t=this,n=e.dataList;if(!$t(n)){var o=this._snsModule.getModule(Kn);n.forEach((function(e){var n=e.userID,s=e.profileList;if(t.isMyFriend(n)){Ve.l(\"\".concat(t._n,\".onFriendProfileModified. friend account:\").concat(n,\", profileList:\").concat(JSON.stringify(s)));var r=t._friendMap.get(n);r.update(s),o.modifyMessageSentByPeer({conversationID:\"\".concat(k.CONV_C2C).concat(n),latestNick:r.profile.nick,latestAvatar:r.profile.avatar})}})),this._onFriendListUpdated()}}},{key:\"onFriendAdded\",value:function(e){var t=this;0!==e.length&&(Ve.l(\"\".concat(this._n,\".onFriendAdded userIDList:\").concat(e)),e.forEach((function(e){t._friendMap.set(e,new Tu(e))})),this.getFriendProfile({userIDList:e}).then((function(n){e.forEach((function(e){var n=t._friendMap.get(e);n.groupList.length>0&&t._snsModule.updateWhenFriendAdded({nameList:n.groupList,userID:e})})),t._onFriendListUpdated()})))}},{key:\"onFriendDeleted\",value:function(e){var t=this;0!==e.length&&(Ve.l(\"\".concat(this._n,\".onFriendDeleted userIDList:\").concat(e)),e.forEach((function(e){var n=t._friendMap.get(e);n.groupList.length>0&&t._snsModule.updateWhenFriendDeleted({nameList:n.groupList,userID:e}),t._friendMap.delete(e)})),this._onFriendListUpdated())}},{key:\"_onFriendListUpdated\",value:function(){this._snsModule.emitOuterEvent(E.FRIEND_LIST_UPDATED),this._snsModule.getModule(Kn).checkAndPatchRemark()}},{key:\"getFriendProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getFriendProfile\"),o=e.userIDList,s=[],r=[],a=[];if(o.forEach((function(e){if(t._friendMap.has(e)){var n=t._friendMap.get(e);Date.now()-n.timestamp<t._expirationTime?r.push(n):a.push(e)}else s.push({userID:e,code:Or.NOT_MY_FRIEND,message:t._snsModule.getErrorMessage(Or.NOT_MY_FRIEND)})})),0===a.length)return Ve.i(\"\".concat(n,\" newUserIDList is empty\")),_a({friendList:r,failureUserIDList:s});var i=new jr(\"getFriendProfile\");return i.setMessage(\"userIDList:\".concat(a)),Ve.i(\"\".concat(n,\" userIDList:\").concat(a)),this._snsModule.request({protocolName:Lo,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:a}}).then((function(e){return i.setNetworkType(t._snsModule.getNetworkType()).end(),Ve.i(\"\".concat(n,\" ok\")),e.data.resultList.forEach((function(e){var n,o=e.to,a=e.resultCode,i=e.resultInfo,u=e.tagValueList;dt(a)||0===a?(t._friendMap.has(o)?(n=t._friendMap.get(o)).update(u):(n=new Tu(o,u),t._friendMap.set(o,n)),r.push(n)):s.push({userID:o,code:a,message:i})})),la({friendList:r,failureUserIDList:s})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"isMyFriend\",value:function(e){return this._friendMap.has(e)}},{key:\"pagingGetFriendList\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"getFriendList\"),n=new jr(\"getFriendList\"),o=Date.now();this._snsModule.request({protocolName:So,requestData:{fromAccount:this._snsModule.getMyUserID(),startIndex:this._startIndex,standardSequence:this._standardSequence,customSequence:this._customSequence}}).then((function(s){var r=s.data,a=r.friendCount,i=r.resultList,u=r.nextStartIndex,c=r.standardSequence,l=r.customSequence,d=r.completeFlag;e._startIndex=u,e._standardSequence=c,e._customSequence=l;var p=Date.now()-o,g=\"friendCount:\".concat(a,\" nextStartIndex:\").concat(u,\" standardSequence:\").concat(c,\" \")+\"customSequence:\".concat(l,\" completeFlag:\").concat(d,\" cost \").concat(p,\" ms\");n.setNetworkType(e._snsModule.getNetworkType()).setMessage(g).end(),Ve.i(\"\".concat(t,\" ok.\"),g),$t(i)||i.forEach((function(t){var n=t.to,o=t.tagValueList;e._friendMap.set(n,new Tu(n,o))})),0===d?e.pagingGetFriendList():(e._snsModule.emitOuterEvent(E.FRIEND_LIST_UPDATED),e._pagingGetFriendProfile())})).catch((function(o){return e._snsModule.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];n.setError(o,s,r).end()})),Ve.w(\"\".concat(t,\" failed. error:\"),o),ha(o)}))}},{key:\"_pagingGetFriendProfile\",value:function(){var e=this,t=v(this._friendMap.keys()),n=this._snsModule.getModule(Fn),o=t.length,s=o<=100?1:Math.ceil(o/100);Ve.l(\"\".concat(this._n,\"._pagingGetFriendProfile friendCount:\").concat(o,\" pageCount:\").concat(s));for(var r=0;r<s;r++)n.getUserProfile({userIDList:t.slice(100*r,100*(r+1))}).then((function(t){t.data.forEach((function(t){var n=e._friendMap.get(t.userID);n&&n.updateProfile(t)})),e._onFriendListUpdated()}))}},{key:\"addFriend\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"addFriend\");if(this._friendMap.has(e.to))return ha({code:Or.ALREADY_MY_FRIEND});if(e.wording&&!1===this._snsModule.filterProfanity(\"wording\",e))return ha({code:Or.PROFANITY_FOUND});var o=e.to,s=e.source,r=e.type,a=e.wording,i=e.remark,u=e.groupName,c=r;(!c||c!==k.SNS_ADD_TYPE_SINGLE&&c!==k.SNS_ADD_TYPE_BOTH)&&(c=k.SNS_ADD_TYPE_BOTH);var l=new jr(\"addFriend\");return l.setMessage(\"to:\".concat(o,\" source:\").concat(s,\" type:\").concat(c)),this._snsModule.request({protocolName:Ro,requestData:{fromAccount:this._snsModule.getMyUserID(),addFriendItem:[{to:o,source:s,wording:a,remark:i,groupName:u}],type:c}}).then((function(e){var o=e.data.resultList;l.setNetworkType(t._snsModule.getNetworkType()).setMoreMessage(\"resultList:\".concat(JSON.stringify(o))).end();var s=o[0],r=s.to,a=s.resultCode,i=s.resultInfo;return Ve.i(\"\".concat(n,\" ok. to:\").concat(r,\" type:\").concat(c,\" code:\").concat(a)),dt(a)||0===a?la({userID:r,code:0}):30539===a?la({userID:r,code:a,message:t._snsModule.getErrorMessage(a)}):ha({userID:r,code:a,message:t._snsModule.getErrorMessage(a)||i})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];l.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"deleteFriend\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteFriend\"),o=e.userIDList,s=e.type;o.length>1e3&&(Ve.w(\"\".concat(n,\" \").concat(Xt(1e3))),o.length=1e3);var r=[],a=[],i=[];if(o.forEach((function(e){t._friendMap.has(e)?i.push(e):r.push({userID:e,code:Or.NOT_MY_FRIEND,message:t._snsModule.getErrorMessage(Or.NOT_MY_FRIEND)})})),0===i.length)return _a({successUserIDList:a,failureUserIDList:r});var u=s;(!u||u!==k.SNS_DELETE_TYPE_SINGLE&&u!==k.SNS_DELETE_TYPE_BOTH)&&(u=k.SNS_DELETE_TYPE_BOTH);var c=new jr(\"deleteFriend\");return c.setMessage(\"userIDList:\".concat(i,\" type:\").concat(u)),this._snsModule.request({protocolName:No,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:i,type:u}}).then((function(e){c.setNetworkType(t._snsModule.getNetworkType()).end(),Ve.i(\"\".concat(n,\" ok\"));var o=e.data.resultList;return $t(o)||o.forEach((function(e){var t=e.to,n=e.resultCode,o=e.resultInfo;dt(n)||0===n?a.push({userID:t}):r.push({userID:t,code:n,message:o})})),la({successUserIDList:a,failureUserIDList:r})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" error:\"),e),ha(e)}))}},{key:\"updateFriend\",value:function(e){var t=this,n=e.userID,o=e.remark,s=e.friendCustomField;if(!this._friendMap.has(n))return ha({code:Or.NOT_MY_FRIEND});var r=\"\".concat(this._n,\".\").concat(\"updateFriend\"),a=new jr(\"updateFriend\");a.setMessage(\"userID:\".concat(n,\" remark:\").concat(o,\" friendCustomField:\").concat(s));var i=[];return dt(o)||i.push({tag:We,value:o}),lt(s)&&s.length>0&&s.forEach((function(e){i.push({tag:e.key,value:e.value})})),this._snsModule.request({protocolName:Oo,requestData:{fromAccount:this._snsModule.getMyUserID(),updateItem:[{to:n,snsItem:i}]}}).then((function(e){a.setNetworkType(t._snsModule.getNetworkType()).end(),Ve.i(\"\".concat(r,\" ok\"));var n=e.data.resultList[0],i=n.to,u=n.resultCode,c=n.resultInfo;if(dt(u)||0===u){var l=t._friendMap.get(i);return l&&(dt(o)||(l.remark=o),lt(s)&&s.length>0&&St(l.friendCustomField,s),t._onFriendListUpdated()),la(l)}return ha({code:u,message:c})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),Ve.w(\"\".concat(r,\" failed. error:\"),e),ha(e)}))}},{key:\"checkFriend\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"checkFriend\"),o=e.userIDList,s=e.type;(!s||s!==k.SNS_CHECK_TYPE_SINGLE&&s!==k.SNS_CHECK_TYPE_BOTH)&&(s=k.SNS_CHECK_TYPE_BOTH);var r=new jr(\"checkFriend\");return r.setMessage(\"userIDList:\".concat(o,\" type:\").concat(s)),this._snsModule.request({protocolName:Ao,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:o,type:s}}).then((function(e){r.setNetworkType(t._snsModule.getNetworkType()).end(),Ve.i(\"\".concat(n,\" ok. userIDList:\").concat(o,\" type:\").concat(s));var a=[],i=[],u=e.data.resultList;return lt(u)&&u.forEach((function(e){var t=e.to,n=e.relation,o=e.resultCode,s=e.resultInfo;dt(o)||0===o?a.push({userID:t,code:0,relation:n}):i.push({userID:t,code:o,message:s})})),la({successUserIDList:a,failureUserIDList:i})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"updateWhenAddedToFriendGroup\",value:function(e){var t=this,n=e.name,o=e.userIDList;Ve.l(\"\".concat(this._n,\".updateWhenAddedToFriendGroup groupName:\").concat(n,\" userIDList:\").concat(o)),n&&!$t(o)&&o.forEach((function(e){t._friendMap.has(e)&&t._friendMap.get(e).addToGroupList(n)}))}},{key:\"updateWhenRemovedFromFriendGroup\",value:function(e){var t=this,n=e.name,o=e.userIDList;Ve.l(\"\".concat(this._n,\".updateWhenRemovedFromFriendGroup groupName:\").concat(n,\" userIDList:\").concat(o)),n&&!$t(o)&&o.forEach((function(e){t._friendMap.has(e)&&t._friendMap.get(e).removeFromGroupList(n)}))}},{key:\"reset\",value:function(){this._friendMap.clear(),this._startIndex=0,this._standardSequence=0,this._customSequence=0}}]),e}(),Eu=function(){function e(t){o(this,e),$t(t)||(this.name=t.name||\"\",this.userIDList=t.userIDList||[],this.count=this.userIDList.length||0)}return r(e,[{key:\"addToUserIDList\",value:function(e){-1===this.userIDList.indexOf(e)&&(this.userIDList.push(e),this.count=this.userIDList.length)}},{key:\"removeFromUserIDList\",value:function(e){var t=this.userIDList.indexOf(e);t>-1&&(this.userIDList.splice(t,1),this.count=this.userIDList.length)}}]),e}(),ku=function(){function e(t){o(this,e),this._snsModule=t,this._n=\"FriendGroupHandler\",this._friendGroupMap=new Map}return r(e,[{key:\"getLocalFriendGroupList\",value:function(){return v(this._friendGroupMap.values())}},{key:\"_emitFriendGroupListUpdated\",value:function(){var e=v(this._friendGroupMap.values());this._snsModule.emitOuterEvent(E.FRIEND_GROUP_LIST_UPDATED,e)}},{key:\"getFriendGroupList\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"getFriendGroupList\"),n=new jr(\"getFriendGroupList\");return this._snsModule.request({protocolName:wo,requestData:{fromAccount:this._snsModule.getMyUserID()}}).then((function(o){n.setNetworkType(e._snsModule.getNetworkType()).end();var s=o.data.resultList;$t(s)?Ve.i(\"\".concat(t,\" ok. friend group count:0\")):(Ve.i(\"\".concat(t,\" ok. friend group count:\").concat(s.length)),e._friendGroupMap.clear(),s.forEach((function(t){var n=new Eu(t);e._friendGroupMap.set(t.name,n)})),e._emitFriendGroupListUpdated())})).catch((function(o){return e._snsModule.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];n.setError(o,s,r).end()})),Ve.w(\"\".concat(t,\" error:\"),o),ha(o)}))}},{key:\"createFriendGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"createFriendGroup\"),o=e.name,s=e.userIDList;if(this._friendGroupMap.has(o))return ha({code:Or.FRIEND_GROUP_EXISTED});var r=new jr(\"createFriendGroup\");return r.setMessage(\"name:\".concat(o,\" userIDList:\").concat(s)),this._snsModule.request({protocolName:Fo,requestData:{fromAccount:this._snsModule.getMyUserID(),groupName:[o],userIDList:lt(s)?s:void 0}}).then((function(e){r.setNetworkType(t._snsModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok. name:\").concat(o,\" userIDList:\").concat(s));var a=e.data.resultList,i=[],u=[];a&&a.forEach((function(e){var t=e.to,n=e.resultCode,o=e.resultInfo;if(dt(n)||0===n)i.push(t);else{var s={userID:e.to,code:n,message:o};u.push(s)}}));var c=new Eu({name:o,userIDList:i});return t._friendGroupMap.set(o,c),t._snsModule.updateWhenAddedToFriendGroup({name:o,userIDList:i}),t._emitFriendGroupListUpdated(),la({friendGroup:c,failureUserIDList:u})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"deleteFriendGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteFriendGroup\"),o=e.name;if(!this._friendGroupMap.has(o))return ha({code:Or.FRIEND_GROUP_NOT_EXIST});var s=new jr(\"deleteFriendGroup\");return s.setMessage(\"name:\".concat(o)),this._snsModule.request({protocolName:qo,requestData:{fromAccount:this._snsModule.getMyUserID(),nameList:[o]}}).then((function(e){s.setNetworkType(t._snsModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok. name:\").concat(o));var r=t._friendGroupMap.get(o);return r&&(t._snsModule.updateWhenRemovedFromFriendGroup({name:o,userIDList:r.userIDList}),t._friendGroupMap.delete(o),r.userIDList.length=0),t._emitFriendGroupListUpdated(),la(r)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],r=n[1];s.setError(e,o,r).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"renameFriendGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"renameFriendGroup\"),o=e.oldName,s=e.newName;if(!this._friendGroupMap.has(o))return ha({code:Or.FRIEND_GROUP_NOT_EXIST});var r=new jr(\"renameFriendGroup\");return r.setMessage(\"oldName:\".concat(o,\" newName:\").concat(s)),this._snsModule.request({protocolName:xo,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:o,newName:s}}).then((function(){if(r.setNetworkType(t._snsModule.getNetworkType()).end(),Ve.l(\"\".concat(n,\" ok. oldName:\").concat(o,\" newName:\").concat(s)),t._friendGroupMap.has(o)){var e=t._friendGroupMap.get(o);return e.name=s,t._friendGroupMap.delete(o),t._friendGroupMap.set(s,e),t._snsModule.updateWhenRemovedFromFriendGroup({name:o,userIDList:e.userIDList}),t._snsModule.updateWhenAddedToFriendGroup({name:s,userIDList:e.userIDList}),t._emitFriendGroupListUpdated(),la(e)}return la()})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"addToFriendGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"addToFriendGroup\"),o=e.name,s=e.userIDList;if(!this._friendGroupMap.has(o))return this._onFriendGroupNotExist(o);var r=new jr(\"addToFriendGroup\");return r.setMessage(\"name:\".concat(o,\" userIDList:\").concat(s)),Ve.l(\"\".concat(n,\" name:\").concat(o,\" userIDList:\").concat(s)),this._snsModule.request({protocolName:xo,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:o,updateGroupItem:s.filter((function(e){return t._snsModule.isMyFriend(e)})).map((function(e){return{to:e,updateType:\"Update_Type_Add\"}}))}}).then((function(e){return r.setNetworkType(t._snsModule.getNetworkType()).end(),t._onFriendGroupUpdated(o,e)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"removeFromFriendGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"removeFromFriendGroup\"),o=e.name,s=e.userIDList;if(!this._friendGroupMap.has(o))return this._onFriendGroupNotExist(o);var r=new jr(\"removeFromFriendGroup\");return r.setMessage(\"name:\".concat(o,\" userIDList:\").concat(s)),Ve.l(\"\".concat(n,\" name:\").concat(o,\" userIDList:\").concat(s)),this._snsModule.request({protocolName:xo,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:o,updateGroupItem:s.filter((function(e){return t._snsModule.isMyFriend(e)})).map((function(e){return{to:e,updateType:\"Update_Type_Delete\"}}))}}).then((function(e){return r.setNetworkType(t._snsModule.getNetworkType()).end(),t._onFriendGroupUpdated(o,e)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),Ve.w(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_onFriendGroupUpdated\",value:function(e,t){var n=t.data.resultList,o=this._friendGroupMap.get(e),s=[],r=[],a=[];return lt(n)&&n.forEach((function(e){var t=e.to,n=e.resultCode,i=e.resultInfo,u=e.type;0===n?\"Update_Type_Add\"===u?o&&(o.addToUserIDList(t),r.push(t)):\"Update_Type_Delete\"===u&&o&&(o.removeFromUserIDList(t),a.push(t)):s.push({to:e.to,code:n,message:i})})),Ve.l(\"\".concat(this._n,\"._onFriendGroupUpdated name:\").concat(e,\" userIDList:\").concat(o.userIDList)),r.length>0&&this._snsModule.updateWhenAddedToFriendGroup({name:e,userIDList:r}),a.length>0&&this._snsModule.updateWhenRemovedFromFriendGroup({name:e,userIDList:a}),la({friendGroup:o,failureUserIDList:s})}},{key:\"updateWhenFriendAdded\",value:function(e){var t=this,n=e.nameList,o=e.userID;Ve.l(\"\".concat(this._n,\".updateWhenFriendAdded userID:\").concat(o,\" nameList:\").concat(n)),$t(n)||n.forEach((function(e){t._friendGroupMap.has(e)&&t._friendGroupMap.get(e).addToUserIDList(o)}))}},{key:\"updateWhenFriendDeleted\",value:function(e){var t=this,n=e.nameList,o=e.userID;Ve.l(\"\".concat(this._n,\".updateWhenFriendDeleted userID:\").concat(o,\" nameList:\").concat(n)),$t(n)||n.forEach((function(e){t._friendGroupMap.has(e)&&t._friendGroupMap.get(e).removeFromUserIDList(o)}))}},{key:\"reset\",value:function(){this._friendGroupMap.clear()}}]),e}(),Su=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"SnsModule\",s._friendHandler=new Du(_(s)),s._friendApplicationHandler=new Cu(_(s)),s._friendGroupHandler=new ku(_(s)),s.getInnerEmitterInstance().on(va,s.onContextUpdated,_(s)),s}return r(n,[{key:\"onContextUpdated\",value:function(e){this._friendHandler.pagingGetFriendList(),this._friendGroupHandler.getFriendGroupList(),this._friendApplicationHandler.getFriendApplicationList()}},{key:\"onRelationChainModified\",value:function(e){var t=this,n=e.dataList;if(!$t(n)){var o=[],s=[],r=[],a=[],i=!1,u=\"\";n.forEach((function(e){if(3!==e.pushType&&4!==e.pushType||!e.from||(u=e.from),e.friendAddAccount&&(o.push.apply(o,v(e.friendAddAccount)),a.push.apply(a,v(e.friendAddAccount))),e.friendDelAccount&&s.push.apply(s,v(e.friendDelAccount)),e.friendApplicationAdded&&r.push.apply(r,v(e.friendApplicationAdded)),e.friendApplicationDeletedUserIDList&&a.push.apply(a,v(e.friendApplicationDeletedUserIDList)),e.reportTime&&7===e.pushType&&(i=!0),e.friendUpInfo){var n={dataList:[]};e.friendUpInfo.forEach((function(e){n.dataList.push({userID:e.friendAccount,profileList:v(e.sns)})})),t.onFriendProfileModified(n)}})),i&&this._friendApplicationHandler.onFriendApplicationRead(),this._friendApplicationHandler.onFriendApplicationAdded(r,u),this._friendApplicationHandler.onFriendApplicationDeleted(a),this._friendHandler.onFriendAdded(o),this._friendHandler.onFriendDeleted(s)}}},{key:\"isMyFriend\",value:function(e){return this._friendHandler.isMyFriend(e)}},{key:\"filterProfanity\",value:function(e,t){var n=this.getModule(uo);if(!n)return!0;var o=n.filterText(t[e],J),s=o.isAllowedToSend,r=o.modifiedText;return!0===s&&(t[e]=r,!0)}},{key:\"onFriendProfileModified\",value:function(e){this._friendHandler.onFriendProfileModified(e)}},{key:\"getLocalFriendList\",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this._friendHandler.getLocalFriendList();return e?_a(t):t}},{key:\"getFriendRemark\",value:function(e){return this._friendHandler.getFriendRemark(e)}},{key:\"getFriendList\",value:function(){return this._friendHandler.pagingGetFriendList()}},{key:\"addFriend\",value:function(e){return this._friendHandler.addFriend(e)}},{key:\"deleteFriend\",value:function(e){return this._friendHandler.deleteFriend(e)}},{key:\"checkFriend\",value:function(e){return this._friendHandler.checkFriend(e)}},{key:\"getFriendProfile\",value:function(e){return this._friendHandler.getFriendProfile(e)}},{key:\"updateFriend\",value:function(e){return this._friendHandler.updateFriend(e)}},{key:\"updateWhenAddedToFriendGroup\",value:function(e){this._friendHandler.updateWhenAddedToFriendGroup(e)}},{key:\"updateWhenRemovedFromFriendGroup\",value:function(e){this._friendHandler.updateWhenRemovedFromFriendGroup(e)}},{key:\"getLocalFriendApplicationList\",value:function(){var e=this._friendApplicationHandler.getLocalFriendApplicationList();return _a(e)}},{key:\"deleteFriendApplication\",value:function(e){return this._friendApplicationHandler.deleteFriendApplication(e)}},{key:\"refuseFriendApplication\",value:function(e){return this._friendApplicationHandler.refuseFriendApplication(e)}},{key:\"acceptFriendApplication\",value:function(e){return this._friendApplicationHandler.acceptFriendApplication(e)}},{key:\"setFriendApplicationRead\",value:function(e){return this._friendApplicationHandler.setFriendApplicationRead(e)}},{key:\"getLocalFriendGroupList\",value:function(){var e=this._friendGroupHandler.getLocalFriendGroupList();return _a(e)}},{key:\"createFriendGroup\",value:function(e){return this._friendGroupHandler.createFriendGroup(e)}},{key:\"deleteFriendGroup\",value:function(e){return this._friendGroupHandler.deleteFriendGroup(e)}},{key:\"addToFriendGroup\",value:function(e){return this._friendGroupHandler.addToFriendGroup(e)}},{key:\"removeFromFriendGroup\",value:function(e){return this._friendGroupHandler.removeFromFriendGroup(e)}},{key:\"renameFriendGroup\",value:function(e){return this._friendGroupHandler.renameFriendGroup(e)}},{key:\"onAddToFriendGroup\",value:function(e){return this._friendGroupHandler.onAddToFriendGroup(e)}},{key:\"updateWhenFriendAdded\",value:function(e){this._friendGroupHandler.updateWhenFriendAdded(e)}},{key:\"updateWhenFriendDeleted\",value:function(e){this._friendGroupHandler.updateWhenFriendDeleted(e)}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._friendHandler.reset(),this._friendGroupHandler.reset(),this._friendApplicationHandler.reset()}}]),n}(go),Lu=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"WorkerTimerModule\",s._isWorkerEnabled=!0,s._workerTimer=null,s._timerID=-1,s._init(),s.getInnerEmitterInstance().on(Ma,s._onCloudConfigUpdated,_(s)),s}return r(n,[{key:\"isWorkerEnabled\",value:function(){return this._isWorkerEnabled&&Se}},{key:\"startWorkerTimer\",value:function(){Ve.l(\"\".concat(this._n,\".startWorkerTimer\")),this._workerTimer&&this._workerTimer.postMessage(\"start\")}},{key:\"stopWorkerTimer\",value:function(){Ve.l(\"\".concat(this._n,\".stopWorkerTimer\")),this._workerTimer&&this._workerTimer.postMessage(\"stop\")}},{key:\"_init\",value:function(){if(Se){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) {  if (event.data === \"start\") {    if (interval > 0) {      clearInterval(interval);    }    interval = setInterval(() => {      postMessage(\"\");    }, 1000);    postMessage(interval);  } else if (event.data === \"stop\") {    clearInterval(interval);    interval = -1;  }};'],{type:\"application/javascript; charset=utf-8\"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(e){e.data?(t._timerID=e.data,Ve.l(\"\".concat(t._n,\"._init seed:\").concat(t._timerID))):t._m.onCheckTimer()}}}},{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"enable_worker\");Ve.l(\"\".concat(this._n,\"._onCloudConfigUpdated enableWorker:\").concat(e)),dt(e)||\"1\"===e?!this._isWorkerEnabled&&Se&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._m.onWorkerTimerEnabled()):this._isWorkerEnabled&&Se&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._m.onWorkerTimerDisabled())}},{key:\"terminate\",value:function(){Ve.l(\"\".concat(this._n,\".terminate\")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null,this._timerID=-1)}},{key:\"getTimerID\",value:function(){return this._timerID}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\"))}}]),n}(go),Au=function(){function e(){o(this,e),this._n=\"PurchasedFeatureHandler\",this._purchasedFeatureMap=new Map}return r(e,[{key:\"isValidPurchaseBits\",value:function(e){return e&&\"string\"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:\"parsePurchaseBits\",value:function(e){if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var t=null,n=e.length-1,o=0;n>=0;n--,o++)t=o<32?new L(0,Math.pow(2,o)).toString():new L(Math.pow(2,o-32),0).toString(),\"1\"===e[n]?this._purchasedFeatureMap.set(t,!0):this._purchasedFeatureMap.set(t,!1)}else Ve.w(\"\".concat(this._n,\".parsePurchaseBits invalid purchasebits:\").concat(e))}},{key:\"hasPurchasedFeature\",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:\"isFeatureEnabled\",value:function(e){for(var t=parseInt(e).toString(2),n=void 0,o=!0,s=t.length-1,r=0;s>=0;s--,r++)if(\"1\"===t.charAt(s)&&(n=r<32?new L(0,Math.pow(2,r)).toString():new L(Math.pow(2,r-32),0).toString(),!this._purchasedFeatureMap.get(n))){o=!1;break}return Ve.l(\"\".concat(this._n,\".isFeatureEnabled decimalNumber:\").concat(e,\" binaryString:\").concat(t,\" ret:\").concat(o)),_a({enabled:o})}},{key:\"clear\",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),Nu=function(){function e(t){o(this,e),this._m=t,this._n=\"CommercialConfigModule\",this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler=new Au}return r(e,[{key:\"_canFetch\",value:function(){return this._getModule(Wn).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:\"onCheckTimer\",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:\"fetchConfig\",value:function(){var e=this,t=this._canFetch(),n=\"\".concat(this._n,\".fetchConfig\");if(Ve.l(\"\".concat(n,\" canFetch:\").concat(t)),t){var o=this._getModule(Jn),s=new jr(\"fetchCommercialConfig\");s.setNetworkType(o.getNetworkType());var r=this._getModule(Wn).getSDKAppID(),a=this._getModule($n);this._isFetching=!0,a.request({protocolName:fr,requestData:{SDKAppID:r}}).then((function(t){s.setMessage(\"purchaseBits:\".concat(t.data.purchaseBits)).end(),Ve.l(\"\".concat(n,\" ok.\")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){o.probe().then((function(e){var n=m(e,2),o=n[0],r=n[1];s.setError(t,o,r).end()})),e._isFetching=!1}))}}},{key:\"onPushedConfig\",value:function(e){var t=\"\".concat(this._n,\".onPushedConfig data:\").concat(JSON.stringify(e));Ve.l(\"\".concat(t)),new jr(\"pushedCommercialConfig\").setNetworkType(this._getModule(Jn).getNetworkType()).setMessage(\"purchaseBits:\".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:\"_parseConfig\",value:function(e){var t=\"\".concat(this._n,\"._parseConfig\"),n=e.errorCode,o=e.errorMessage,s=e.purchaseBits,r=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(s),this._expiredTime=Date.now()+1e3*r):dt(n)?(Ve.l(\"\".concat(t,\" failed. Invalid message format:\"),e),this._setExpiredTimeOnResponseError(36e5)):(Ve.e(\"\".concat(t,\" errorCode:\").concat(n,\" errorMessage:\").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:\"_setExpiredTimeOnResponseError\",value:function(e){this._expiredTime=Date.now()+e}},{key:\"canIUse\",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:\"isFeatureEnabled\",value:function(e){return this._purchasedFeatureHandler.isFeatureEnabled(e)}},{key:\"_getModule\",value:function(e){return this._m.getModule(e)}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),e}(),Ru=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._m=e,s._n=\"OfflinePushModule\",s._offlinePushPlugin=void 0,s._androidPushConfig={huaweiPushBussinessId:\"\",xiaomiPushBussinessId:\"\",xiaomiPushAppId:\"\",xiaomiPushAppKey:\"\",meizuPushBussinessId:\"\",meizuPushAppId:\"\",meizuPushAppKey:\"\",vivoPushBussinessId:\"\",fcmPushBussinessId:\"\",oppoPushBussinessId:\"\",oppoPushAppKey:\"\",oppoPushAppSecret:\"\",honorPushBussinessId:\"\"},s._deviceToken=\"\",s._businessID=0,s._iosBusinessID=0,s._c2cUnreadCount=0,s._groupUnreadCount=0,s._isWebUniapp=0,s}return r(n,[{key:\"registerPlugin\",value:function(e){if(oe){this._offlinePushPlugin=e[\"tim-offline-push-plugin\"];var t=e.offlinePushConfig||{},n=t.huaweiBusinessID,o=t.xiaomiBusinessID,s=t.xiaomiAppID,r=t.xiaomiAppKey,a=t.meizuBusinessID,i=t.meizuAppID,u=t.meizuAppKey,c=t.vivoBusinessID,l=t.oppoBusinessID,d=t.oppoAppKey,p=t.oppoAppSecret,g=t.honorBusinessID,_=t.iosBusinessID;this._androidPushConfig.huaweiPushBussinessId=n,this._androidPushConfig.xiaomiPushBussinessId=o,this._androidPushConfig.xiaomiPushAppId=s,this._androidPushConfig.xiaomiPushAppKey=r,this._androidPushConfig.meizuPushBussinessId=a,this._androidPushConfig.meizuPushAppId=i,this._androidPushConfig.meizuPushAppKey=u,this._androidPushConfig.vivoPushBussinessId=c,this._androidPushConfig.oppoPushBussinessId=l,this._androidPushConfig.oppoPushAppKey=d,this._androidPushConfig.oppoPushAppSecret=p,this._androidPushConfig.honorPushBussinessId=g,new jr(\"registerPlugin\").setMessage(\"tim-offline-push-plugin\").setMoreMessage(\"isExist:\".concat(!dt(this._offlinePushPlugin))).end(!0),Ve.l(\"\".concat(this._n,\".\").concat(\"registerPlugin\",\" ok. offlinePushConfig:\").concat(JSON.stringify(e.offlinePushConfig))),this._iosBusinessID=_,this._setAppShowListener()}else this.outputWarning(\"OfflinePushInUniapp\")}},{key:\"init\",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken()}},{key:\"_getDeviceToken\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_getDeviceToken\");if(gt(this._offlinePushPlugin.getDeviceToken)){var n=\"androidPushConfig:\".concat(JSON.stringify(this._androidPushConfig),\", iosBusinessID:\").concat(this._iosBusinessID);Ve.l(\"\".concat(t,\" start. \").concat(n)),new jr(\"_getDeviceToken\").setMessage(\"\".concat(n)).end(!0),this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,(function(o){var s=new jr(\"getDeviceTokenRes\"),r=o.code,a=o.msg;if(0===r){var i=o.data,u=i.deviceToken,c=i.deviceBrand,l=i.deviceType,d=i.bussinessId;e._deviceToken=u,e._businessID=d||e._iosBusinessID,n=\"deviceToken:\".concat(u,\", deviceBrand:\").concat(c||l,\", businessID:\").concat(e._businessID),Ve.l(\"\".concat(t,\" ok. \").concat(n)),s.setMessage(n).end(!0),e._setToken()}else s.setMessage(\"code:\".concat(r,\", msg:\").concat(a)).end(!0),Ve.e(\"\".concat(t,\" failed. error:\"),o)}))}else Ve.e(\"\".concat(t,\" getDeviceToken is not a function\"))}},{key:\"canIUseOfflinePush\",value:function(){return oe&&!dt(this._offlinePushPlugin)}},{key:\"_setAppShowListener\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_setAppShowListener\");dt(this._offlinePushPlugin)?Ve.e(\"\".concat(t,\" offlinePushPlugin is undefined\")):gt(this._offlinePushPlugin.setAppShowListener)?(new jr(\"_setAppShowListener\").end(!0),Ve.l(\"\".concat(t,\" start\")),this._offlinePushPlugin.setAppShowListener((function(n){var o=(n||{}).appShow;new jr(\"setAppShowListenerRes\").setMessage(\"appShow:\".concat(o)).end(!0),Ve.l(\"\".concat(t,\" ok. appShow:\").concat(o)),e._m.isReady()&&(0===o?(e._getConvUnreadCount(),e._onBackground()):1===o&&e._onForeground())}))):Ve.e(\"\".concat(t,\" setAppShowListener is not a function\"))}},{key:\"getDeviceBrand\",value:function(){if(!dt(this._offlinePushPlugin)&&gt(this._offlinePushPlugin.getDeviceType)){var e=(this._offlinePushPlugin.getDeviceType()||{}).deviceType;return Ve.l(\"\".concat(this._n,\".getDeviceBrand ok. deviceType:\").concat(e)),e}}},{key:\"_setToken\",value:function(){var e,t=this,n=\"\".concat(this._n,\"._setToken\"),o=this.getModule(Wn),s=1,r=\"\",a=\"\";$t(this._deviceToken)&&(s=0);var i=this.getUniAppPlatform(),u=this.getDeviceBrand();i===N.IOS||i===N.IPAD||i===N.MAC?a=this._deviceToken:i===N.ANDROID&&(r=this._deviceToken);var c=new jr(\"offlinePushSetToken\");return e=\"deviceToken:\".concat(a||r,\", businessID:\").concat(this._businessID,\", \")+\"deviceBrand:\".concat(u,\", isWebUniapp:\").concat(this._isWebUniapp,\", pushMsg:\").concat(s,\", platform:\").concat(i),c.setMessage(\"\".concat(e)),Ve.l(\"\".concat(n,\" \").concat(e)),this.request({protocolName:Ar,requestData:{tokenID:r,pushMsg:s,sdkAppID:o.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:u,deviceToken:a,isWebUniapp:this._isWebUniapp}}).then((function(e){return c.end(),Ve.l(\"\".concat(n,\" ok\")),e})).catch((function(e){return t.probeNetwork().then((function(t){var n=m(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),Ve.e(\"\".concat(n,\" failed. error:\"),e),ha(e)}))}},{key:\"_getConvUnreadCount\",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.getModule(Kn).getLocalConversationList().forEach((function(t){t.type===k.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===k.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:\"_onBackground\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_onBackground\"),n=new jr(\"_onBackground\");this.request({protocolName:Sr,requestData:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(o){return n.setMessage(\"c2cUnreadCount: \".concat(e._c2cUnreadCount,\", groupUnreadCount: \").concat(e._groupUnreadCount)).end(),Ve.l(\"\".concat(t,\" ok\")),o})).catch((function(o){e.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];n.setError(o,s,r).end()})),Ve.e(\"\".concat(t,\" failed. error:\"),o)}))}},{key:\"_onForeground\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_onForeground\"),n=new jr(\"_onForeground\");this.request({protocolName:Lr,requestData:{isWebUniapp:this._isWebUniapp}}).then((function(e){return n.end(),Ve.l(\"\".concat(t,\" ok\")),e})).catch((function(o){e.probeNetwork().then((function(e){var t=m(e,2),s=t[0],r=t[1];n.setError(o,s,r).end()})),Ve.e(\"\".concat(t,\" failed. error:\"),o)}))}},{key:\"getUniAppPlatform\",value:function(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return\"ios\"===e?N.IOS:\"android\"===e?N.ANDROID:1002===t?N.IPAD:1001===t?N.MAC:void 0}},{key:\"reset\",value:function(){this._deviceToken=\"\",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,Ve.l(\"\".concat(this._n,\".reset\"))}}]),n}(go),Ou=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"ProfanityFilterModule\",s._plugin=null,s._filterConfigMap=new Map,s._startIndex=0,s._version=0,s._canIUseLexicon=!1,s._isFetching=!1,s._expiredTime=0,s}return r(n,[{key:\"init\",value:function(){var e=this.getModule(Qn).getPlugin(\"tim-profanity-filter-plugin\");e?(this._plugin=new e({logger:Ve,isArray:lt,isMap:st,isDevMode:this.isDevMode()}),this._getLexicon()):this.outputWarning(\"ProfanityPluginNotFound\")}},{key:\"onCheckTimer\",value:function(){this._plugin&&this._canIUseLexicon&&this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime&&this._getLexicon()}},{key:\"filterMessage\",value:function(e,t){var n=!0;if(!this._plugin||!this._canIUseLexicon)return n;if(t&&t.messageControlInfo&&!0===t.messageControlInfo.excludedFromContentModeration)return n;var o=e.type,s=e.conversationType;if(o!==k.MSG_TEXT&&o!==k.MSG_CUSTOM)return n;var r,a=\"\".concat(this._n,\".filterMessage\");if(Ve.l(\"\".concat(a)),o===k.MSG_TEXT){if(s===k.CONV_C2C?r=H:s===k.CONV_GROUP&&(r=W),!this._isConfigOn(r))return n;var i=this._plugin.filter(e.payload.text),u=i.type,c=i.modifiedText;1===u?n=!1:2===u&&(e.payload.text=c)}else if(o===k.MSG_CUSTOM){if(s===k.CONV_C2C?r=K:s===k.CONV_GROUP&&(r=Y),!this._isConfigOn(r))return n;var l=this._plugin.filter(e.payload.data),d=this._plugin.filter(e.payload.description),p=this._plugin.filter(e.payload.extension);1===l.type||1===d.type||1===p.type?n=!1:(2===l.type&&(e.payload.data=l.modifiedText),2===d.type&&(e.payload.description=d.modifiedText),2===p.type&&(e.payload.extension=p.modifiedText))}return Ve.l(\"\".concat(a,\" done. isAllowedToSend:\").concat(n)),n}},{key:\"filterText\",value:function(e,t){var n=\"\".concat(this._n,\".filterText\"),o={isAllowedToSend:!0,modifiedText:e};if(!this._plugin||!this._canIUseLexicon)return o;if(!this._isConfigOn(t))return o;Ve.l(\"\".concat(n));var s=this._plugin.filter(e),r=s.type,a=s.modifiedText;return 1===r?o.isAllowedToSend=!1:2===r&&(o.modifiedText=a),Ve.l(\"\".concat(n,\" done. ret:\"),o),o}},{key:\"_getLexicon\",value:function(){var e=this,t=new jr(\"profanityFilter\"),n=\"\".concat(this._n,\"._getLexicon\");this._isFetching=!0,this.request({protocolName:Nr,requestData:{startIndex:this._startIndex,version:this._version}}).then((function(o){var s=o.data,r=s.errorInfo,a=s.filterConfig,i=s.lexicon,u=s.strToken,c=s.completeFlag,l=s.nextStartIndex,d=s.version,p=s.expiredTime,g=r.errorCode,_=r.errorMessage;return 0!==g?(e._isFetching=!1,Ve.w(\"\".concat(n,\" failed. error:\"),r),void t.setCode(g).setMessage(_).end()):(e._onFilterConfig(a),e._getToken(u),1===c?(Ve.l(\"\".concat(n,\" done. version:\").concat(d,\" expiredTime:\").concat(p)),e._version=d,e._canIUseLexicon=!0,e._isFetching=!1,e._expiredTime=Date.now()+1e3*p,void e._plugin.onLexiconCompleted(i)):(e._startIndex=l,e._plugin.onLexiconSliced(i),void e._getLexicon()))})).catch((function(o){e.probeNetwork().then((function(e){var n=m(e,2),s=n[0],r=n[1];t.setError(o,s,r).end()})),e._isFetching=!1,Ve.l(\"\".concat(n,\" failed. error:\"),o)}))}},{key:\"_onFilterConfig\",value:function(e){var t=this;$t(e)||(this._filterConfigMap.clear(),Object.keys(e).forEach((function(n){t._filterConfigMap.set(n,e[n])})),Ve.l(\"\".concat(this._n,\"._onFilterConfig. keys:\").concat(Array.from(this._filterConfigMap.keys()),\" values:\").concat(Array.from(this._filterConfigMap.values()))))}},{key:\"_isConfigOn\",value:function(e){return 1===this._filterConfigMap.get(e)}},{key:\"_getToken\",value:function(e){if(it(e)){var t=e.length,n=\"\";if(t%2==0)for(var o=0;o<=t-1;o+=2)n+=e[o+1],n+=e[o];else{for(var s=0;s<t-1;s+=2)n+=e[s+1],n+=e[s];n+=e[t-1]}this._plugin.onToken(n)}}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),this._plugin&&(this._plugin.reset(),this._plugin=null),this._filterConfigMap.clear(),this._startIndex=0,this._version=0,this._canIUseLexicon=!1,this._isFetching=!1,this._expiredTime=0}}]),n}(go),Gu=function(){function e(t){o(this,e),this._m=t,this._n=\"TransCmdModule\",this._TRTCCommandList=[\"tui_room_svr.*\"],this._m.getInnerEmitterInstance().on(Ma,this._onCloudConfigUpdated,this)}return r(e,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this,t=this._m.getModule(no).getCloudConfig(\"rtc_cmd\");dt(t)||(t=JSON.parse(t)).forEach((function(t){e._TRTCCommandList.includes(t)||e._TRTCCommandList.push(t)}))}},{key:\"sendTRTCCustomData\",value:function(e){var t=e.serviceCommand,n=e.data,o=\"\".concat(V.NAME.TUIROOM_SVR,\".*\");return dt(t)||(o=t),this._TRTCCommandList.includes(o)?this._trans({servcmd:o,data:n}):ha({code:Or.INVALID_TRTC_CMD})}},{key:\"_trans\",value:function(e){Ve.d(\"\".concat(this._n,\"._trans. options:\").concat(JSON.stringify(e)));var t=e.servcmd,n=e.data;return this._m.getModule($n).trans({servcmd:t,data:it(n)?JSON.parse(n):n})}},{key:\"getCommandList\",value:function(){return this._TRTCCommandList}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\"))}}]),e}(),Uu=function(){function e(t){o(this,e),this._m=t,this._n=\"ErrorMessageModule\",this.TIM_ERROR_ASSISTANCE=\"tim_error_assistance\",this.STORAGE_EXPIRES_TIME=6048e5,this._map=new Map,this._init()}return r(e,[{key:\"_init\",value:function(){var e=this._getStorageModule().getItem(this.TIM_ERROR_ASSISTANCE,!1);if(e){var t;try{t=JSON.parse(e)}catch(n){this._getStorageModule().removeItem(this.TIM_ERROR_ASSISTANCE,!1),Ve.w(\"\".concat(this._n,\"._init error:\"),n)}t&&(this._needToUpdate(t)?this._fetch():this._fillMap(t.message))}else this._fetch()}},{key:\"_needToUpdate\",value:function(e){var t=e.localSavedTime,n=e.localSavedVersion,o=t&&(new Date).getTime()-t>=this.STORAGE_EXPIRES_TIME,s=!n||\"2.27.5\"!==n;return Ve.l(\"\".concat(this._n,\"._needToUpdate isTimeout:\").concat(o,\" isDifferentVersion:\").concat(s)),o||s}},{key:\"_fetch\",value:function(){if(!this._m.getModule(Wn).isPrivateNetWork()){var e=\"https://web.sdk.qcloud.com/im/download/error-message/0.0.1/tim-error-message.txt\",t=\"application/x-www-form-urlencoded;charset=UTF-8\",n=\"\".concat(this._n,\"._fetch ok in\"),o=this;if(re)ie.request({url:e,method:\"GET\",timeout:3e3,header:{\"content-type\":t},dataType:\"text\",success:function(e){o._fillAndSave(e.data),Ve.l(\"\".concat(n,\" mini program\"))},fail:function(){}});else{var s=new XMLHttpRequest,r=setTimeout((function(){s.abort()}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(r),200!==s.status&&304!==s.status||(Ve.l(\"\".concat(n,\" browser\")),o._fillAndSave(s.responseText)))},s.open(\"GET\",e,!0),s.setRequestHeader(\"Content-type\",t),s.send()}}}},{key:\"_fillAndSave\",value:function(e){this._fillMap(e),this._getStorageModule().setItem(this.TIM_ERROR_ASSISTANCE,JSON.stringify({message:e,localSavedTime:(new Date).getTime(),localSavedVersion:\"2.27.5\"}),!0,!1)}},{key:\"_getStorageModule\",value:function(){return this._m.getModule(Yn)}},{key:\"_fillMap\",value:function(e){this._map.clear();for(var t,n,o,s=e.split(\";\\n\"),r=s.length,a=new RegExp(/'/g),i=0;i<r;i++)if(t=s[i].indexOf(\":\"),n=s[i].slice(0,t),o=s[i].slice(t+1,s[i].length),!n.startsWith(\"//\")){if(dt(o))continue;this._map.set(n,o.replace(a,\"\"))}}},{key:\"get\",value:function(e){var t=e.isIntl,n=e.key,o=e.replacement1,s=e.replacement2,r=\"\".concat(n,t?\"_en\":\"_cn\");!this._map.has(r)&&this._map.has(n)&&(r=n);var a=\"\";return this._map.has(r)?(a=this._map.get(r),dt(o)||(a=a.replace(\"$replacement1\",o)),dt(s)||(a=a.replace(\"$replacement2\",s)),a):a}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\"))}}]),e}(),Pu=function(){function e(t){o(this,e);var n=new jr(\"sdkConstruct\");this._n=\"ModuleManager\",this._isReady=!1,this._reason=Or.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(Wn,new fi(this,t)),this._moduleMap.set(ao,new Nu(this)),this._moduleMap.set(no,new _u(this)),this._moduleMap.set(oo,new Lu(this)),this._moduleMap.set(ro,new yu(this)),this._moduleMap.set(eo,new ru(this)),this._moduleMap.set($n,new pu(this)),this._moduleMap.set(Pn,new mi(this)),this._moduleMap.set(bn,new bi(this)),this._moduleMap.set(wn,new wi(this)),this._moduleMap.set(lo,new Fi(this)),this._moduleMap.set(Fn,new hi(this)),this._moduleMap.set(qn,new fa(this)),this._moduleMap.set(Kn,new wa(this)),this._moduleMap.set(xn,new oi(this)),this._moduleMap.set(Bn,new ri(this)),this._moduleMap.set(Hn,new ci(this)),this._moduleMap.set(Yn,new Mi(this)),this._moduleMap.set(po,new Uu(this)),this._moduleMap.set(jn,new Ci(this)),this._moduleMap.set(Jn,new ki(this)),this._moduleMap.set(zn,new Li(this)),this._moduleMap.set(Xn,new Ni(this)),this._moduleMap.set(Qn,new qi(this)),this._moduleMap.set(Zn,new xi(this)),this._moduleMap.set(to,new gu(this)),this._moduleMap.set(so,new hu(this)),this._moduleMap.set(Vn,new Su(this)),this._moduleMap.set(io,new Ru(this)),this._moduleMap.set(uo,new Ou(this)),this._moduleMap.set(co,new Gu(this)),this._eventThrottleMap=new Map;var s=t.instanceID,r=t.oversea,a=t.SDKAppID,i=\"instanceID:\".concat(s,\" SDKAppID:\").concat(a,\" host:\").concat(wt(),\" oversea:\").concat(r,\" inBrowser:\").concat(ae,\" inMiniApp:\").concat(re)+\" workerAvailable:\".concat(Se,\" UserAgent:\").concat(ue);jr.bindEventStatModule(this._moduleMap.get(jn)),n.setMessage(\"\".concat(i,\" \").concat(function(){var e=\"\";if(re)try{var t=ie.getSystemInfoSync(),n=t.model,o=t.version,s=t.system,r=t.platform,a=t.SDKVersion;e=\"model:\".concat(n,\" version:\").concat(o,\" system:\").concat(s,\" platform:\").concat(r,\" SDKVersion:\").concat(a)}catch(i){e=\"\"}return e}())).end(),Ve.i(\"SDK \".concat(i)),da.prototype._getErrorMessage=this.getErrorMessage.bind(this),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return r(e,[{key:\"_startTimer\",value:function(){var e=this._moduleMap.get(oo),t=e.isWorkerEnabled();Ve.l(\"\".concat(this._n,\".startTimer isWorkerEnabled:\").concat(t,\" seed:\").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:\"_startMainThreadTimer\",value:function(){this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3)),Ve.l(\"\".concat(this._n,\"._startMainThreadTimer seed:\").concat(this._checkTimer))}},{key:\"stopTimer\",value:function(){var e=this._moduleMap.get(oo),t=e.isWorkerEnabled();Ve.l(\"\".concat(this._n,\".stopTimer isWorkerEnabled:\").concat(t,\" seed:\").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:\"_stopMainThreadTimer\",value:function(){Ve.l(\"\".concat(this._n,\"._stopMainThreadTimer\")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:\"_stopMainThreadSocket\",value:function(){Ve.l(\"\".concat(this._n,\"._stopMainThreadSocket\"));var e=this._moduleMap.get(eo);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:\"_startMainThreadSocket\",value:function(){Ve.l(\"\".concat(this._n,\"._startMainThreadSocket\"));var e=this._moduleMap.get(eo);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:\"onWorkerTimerEnabled\",value:function(){Ve.l(\"\".concat(this._n,\".onWorkerTimerEnabled, disable main thread timer and socket\")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:\"onWorkerTimerDisabled\",value:function(){Ve.l(\"\".concat(this._n,\".onWorkerTimerDisabled, enable main thread timer and socket\")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:\"onCheckTimer\",value:function(){this._checkCount+=1;var e,t=D(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=m(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(o){t.e(o)}finally{t.f()}}},{key:\"_initReadyList\",value:function(){var e=this;this._readyList=[this._moduleMap.get(Pn),this._moduleMap.get(Kn)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:\"_onModuleReady\",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(E.SDK_READY);var t=Date.now()-this._startLoginTs;Ve.w(\"SDK is ready. cost \".concat(t,\" ms\")),this._startLoginTs=Date.now();var n=this._moduleMap.get(Jn).getNetworkType(),o=this._ssoLogForReady.getStartTs()+Ue;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(o).end()}}},{key:\"login\",value:function(){0===this._startLoginTs&&(be(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(Jn).start(),this._ssoLogForReady=new jr(\"sdkReady\"),this._reason=Or.LOGGING_IN)}},{key:\"onLoginFailed\",value:function(){this._startLoginTs=0}},{key:\"getOuterEmitterInstance\",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new Si,ga(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===E.CONVERSATION_LIST_UPDATED||e===E.FRIEND_LIST_UPDATED||e===E.GROUP_LIST_UPDATED||e===E.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED)if(this._eventThrottleMap.has(e)){var o=Date.now(),s=this._eventThrottleMap.get(e);o-s.last<=1e3?(s.timeoutID&&clearTimeout(s.timeoutID),s.timeoutID=setTimeout((function(){s.last=Date.now(),n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),1e3)):(s.last=o,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:\"_getEventData\",value:function(e){return e===E.CONVERSATION_LIST_UPDATED?this._moduleMap.get(Kn).getLocalConversationList():e===E.FRIEND_LIST_UPDATED?this._moduleMap.get(Vn).getLocalFriendList(!1):e===E.GROUP_LIST_UPDATED?this._moduleMap.get(xn).getLocalGroupList():e===E.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED?this._moduleMap.get(Kn).getTotalUnreadMessageCount():void 0}},{key:\"getInnerEmitterInstance\",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new Si,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;n=ct(arguments[1])&&arguments[1].data?[e,{name:arguments[0],data:arguments[1].data}]:[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:\"hasModule\",value:function(e){return this._moduleMap.has(e)}},{key:\"getModule\",value:function(e){return this._moduleMap.get(e)}},{key:\"isReady\",value:function(){return this._isReady}},{key:\"isIntl\",value:function(){return this.getModule(Wn).isIntl()}},{key:\"getNotReadyReason\",value:function(){return this._reason}},{key:\"setNotReadyReason\",value:function(e){this._reason=e}},{key:\"getErrorMessage\",value:function(e,t,n){return this._moduleMap.get(po).get({key:e,replacement1:t,replacement2:n,isIntl:this.isIntl()})}},{key:\"outputWarning\",value:function(e,t,n){var o=this.getErrorMessage(e,t,n);o&&Ve.w(o)}},{key:\"onError\",value:function(e){var t=\"code:\".concat(e.code,\" message:\").concat(e.message);Ve.w(\"Oops! \".concat(t)),new jr(\"error\").setMessage(t).setNetworkType(this.getModule(Jn).getNetworkType()).setLevel(\"error\").end(),this.getOuterEmitterInstance().emit(E.ERROR,e)}},{key:\"restartTimer\",value:function(){Ve.l(\"\".concat(this._n,\".restartTimer\")),this.stopTimer(),this._startTimer(),this.getModule(xn).restartPolling()}},{key:\"getTimerID\",value:function(){var e=this._moduleMap.get(oo);return e.isWorkerEnabled()?e.getTimerID():this._checkTimer}},{key:\"getPollingTimerID\",value:function(e){return this._moduleMap.get(xn).getPollingTimerID(e)}},{key:\"reset\",value:function(){Ve.l(\"\".concat(this._n,\".reset\")),be();var e,t=D(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=m(e.value,2)[1];n.reset&&n.reset()}}catch(a){t.e(a)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(E.SDK_NOT_READY);var o,s=D(this._eventThrottleMap);try{for(s.s();!(o=s.n()).done;){var r=m(o.value,2)[1];r.timeoutID&&clearTimeout(r.timeoutID)}}catch(a){s.e(a)}finally{s.f()}this._eventThrottleMap.clear()}}]),e}(),bu=function(){function e(t){o(this,e),this._funcMap=new Map,this._m=t}return r(e,[{key:\"defense\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(\"string\"!=typeof e)return null;if(0===e.length)return null;if(\"function\"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var o=null;return this._funcMap.get(e).has(t)?o=this._funcMap.get(e).get(t):(o=this._pack(e,t,n),this._funcMap.get(e).set(t,o)),o}},{key:\"defenseOnce\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return\"function\"!=typeof t?null:this._pack(e,t,n)}},{key:\"find\",value:function(e,t){return\"string\"!=typeof e||0===e.length||\"function\"!=typeof t?null:this._funcMap.has(e)&&this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(this._m.outputWarning(\"ListenerFnNotFound\",e),null)}},{key:\"delete\",value:function(e,t){return\"function\"==typeof t&&(!!this._funcMap.has(e)&&(!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)))}},{key:\"_pack\",value:function(e,t,n){var o=this;return function(){try{t.apply(n,Array.from(arguments))}catch(u){var s=Object.values(E).indexOf(e),r=\"CallbackError\";if(-1!==s){var a=Object.keys(E)[s];o._m.outputWarning(r,a,u)}var i=new jr(r);i.setMessage(\"eventName:\".concat(e)).setMoreMessage(u.message).end()}}}}]),e}(),wu=function(){function e(t){o(this,e);var n={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||\"\",oversea:t.oversea||!1,instanceID:bt(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0,fileUploadProxy:t.fileUploadProxy||void 0,fileDownloadProxy:t.fileDownloadProxy||t.fileUploadProxy||void 0};this._m=new Pu(n),this._safetyCallbackFactory=new bu(this._m)}return r(e,[{key:\"onError\",value:function(e){this._m.onError(e)}},{key:\"login\",value:function(e){return this._m.login(),this._getModule(Pn).login(e)}},{key:\"logout\",value:function(){var e=this;return this._getModule(Pn).logout().then((function(t){return e._m.reset(),t}))}},{key:\"isReady\",value:function(){return this._m.isReady()}},{key:\"isIntl\",value:function(){return this._m.isIntl()}},{key:\"getNotReadyReason\",value:function(){return this._m.getNotReadyReason()}},{key:\"getErrorMessage\",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:\"_getModule\",value:function(e){return this._m.getModule(e)}},{key:\"destroy\",value:function(){var e=this;return this.logout().finally((function(){e._m.stopTimer(),e._getModule(oo).terminate(),e._getModule(eo).dealloc();var t=e._m.getOuterEmitterInstance(),n=e._getModule(Wn);t.emit(E.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:\"on\",value:function(e,t,n){Ve.d(\"on\",\"eventName:\".concat(e)),this._m.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:\"once\",value:function(e,t,n){Ve.d(\"once\",\"eventName:\".concat(e)),this._m.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:\"off\",value:function(e,t,n,o){Ve.d(\"off\",\"eventName:\".concat(e));var s=this._safetyCallbackFactory.find(e,t);null!==s&&(this._m.getOuterEmitterInstance().off(e,s,n,o),this._safetyCallbackFactory.delete(e,t))}},{key:\"registerPlugin\",value:function(e){dt(e[\"tim-offline-push-plugin\"])?this._getModule(Qn).registerPlugin(e):this._getModule(io).registerPlugin(e)}},{key:\"setLogLevel\",value:function(e){if(e<=0){var t=this.getErrorMessage(\"TIM_ASCII_ART\");t&&console.log(t);var n=this.getErrorMessage(\"API_REFER\");if(n){zt()?console.log(\"%c \".concat(\"IM SDK API ->\",\" %c\"),\"background:#ff9d00; padding:1px; border-radius:3px; color: #fff\",\"background:transparent\",n):console.log(\"IM SDK API ->\",n)}var o=this.getErrorMessage(\"DOCS_GUIDE\");o&&console.log(o)}Ve.setLevel(e)}},{key:\"createTextMessage\",value:function(e){return this._getModule(bn).createTextMessage(e)}},{key:\"createTextAtMessage\",value:function(e){return this._getModule(bn).createTextMessage(e)}},{key:\"createImageMessage\",value:function(e){return this._getModule(bn).createImageMessage(e)}},{key:\"createAudioMessage\",value:function(e){return this._getModule(bn).createAudioMessage(e)}},{key:\"createVideoMessage\",value:function(e){return this._getModule(bn).createVideoMessage(e)}},{key:\"createCustomMessage\",value:function(e){return this._getModule(bn).createCustomMessage(e)}},{key:\"createFaceMessage\",value:function(e){return this._getModule(bn).createFaceMessage(e)}},{key:\"createFileMessage\",value:function(e){return this._getModule(bn).createFileMessage(e)}},{key:\"createLocationMessage\",value:function(e){return this._getModule(bn).createLocationMessage(e)}},{key:\"createMergerMessage\",value:function(e){return this._getModule(bn).createMergerMessage(e)}},{key:\"downloadMergerMessage\",value:function(e){return e.type!==k.MSG_MERGER?ha({code:Or.MESSAGE_MERGER_TYPE_INVALID}):$t(e.payload.downloadKey)?ha({code:Or.MESSAGE_MERGER_KEY_INVALID}):this._getModule(bn).downloadMergerMessage(e).catch((function(e){return ha({code:Or.MESSAGE_MERGER_DOWNLOAD_FAIL})}))}},{key:\"createForwardMessage\",value:function(e){return this._getModule(bn).createForwardMessage(e)}},{key:\"sendMessage\",value:function(e,t){return e instanceof ca?this._getModule(bn).sendMessageInstance(e,t):ha({code:Or.MESSAGE_SEND_NEED_MESSAGE_INSTANCE})}},{key:\"callExperimentalAPI\",value:function(e,t){return\"sendComboMessage\"===e?this._getModule(lo).sendMessage(t):\"handleGroupInvitation\"===e?this._getModule(xn).handleGroupInvitation(t):\"isCommercialAbilityEnabled\"===e?this._getModule(ao).isFeatureEnabled(t):\"isIntl\"===e?this.isIntl():\"sendTRTCCustomData\"===e?this._getModule(co).sendTRTCCustomData(t):\"getTimerID\"===e?this._m.getTimerID():\"getPollingTimerID\"===e?this._m.getPollingTimerID(t):ha({code:Or.INVALID_OPERATION})}},{key:\"revokeMessage\",value:function(e){return this._getModule(bn).revokeMessage(e)}},{key:\"resendMessage\",value:function(e){return this._getModule(bn).resendMessage(e)}},{key:\"deleteMessage\",value:function(e){return this._getModule(bn).deleteMessage(e)}},{key:\"translateText\",value:function(e){return this._getModule(bn).translateText(e)}},{key:\"setMessageExtensions\",value:function(e,t){return this._getModule(wn).setMessageExtensions(e,t)}},{key:\"getMessageExtensions\",value:function(e){return this._getModule(wn).getMessageExtensions(e)}},{key:\"deleteMessageExtensions\",value:function(e,t){return this._getModule(wn).deleteMessageExtensions(e,t)}},{key:\"modifyMessage\",value:function(e){return this._getModule(bn).modifyRemoteMessage(e)}},{key:\"getMessageList\",value:function(e){return this._getModule(Kn).getMessageList(e)}},{key:\"getMessageListHopping\",value:function(e){return this._getModule(Kn).getMessageListHopping(e)}},{key:\"sendMessageReadReceipt\",value:function(e){return this._getModule(Kn).sendReadReceipt(e)}},{key:\"getMessageReadReceiptList\",value:function(e){return this._getModule(Kn).getReadReceiptList(e)}},{key:\"getGroupMessageReadMemberList\",value:function(e){return this._getModule(xn).getReadReceiptDetail(e)}},{key:\"findMessage\",value:function(e){return this._getModule(Kn).findMessage(e)}},{key:\"setMessageRead\",value:function(e){return this._getModule(Kn).setMessageRead(e)}},{key:\"getConversationList\",value:function(e){return this._getModule(Kn).getConversationList(e)}},{key:\"getConversationProfile\",value:function(e){return this._getModule(Kn).getConversationProfile(e)}},{key:\"deleteConversation\",value:function(e){return this._getModule(Kn).deleteConversation(e)}},{key:\"clearHistoryMessage\",value:function(e){return this._getModule(Kn).clearHistoryMessage(e)}},{key:\"pinConversation\",value:function(e){return this._getModule(Kn).pinConversation(e)}},{key:\"setAllMessageRead\",value:function(e){return this._getModule(Kn).setAllMessageRead(e)}},{key:\"setMessageRemindType\",value:function(e){return this._getModule(Kn).setMessageRemindType(e)}},{key:\"getTotalUnreadMessageCount\",value:function(){return this._getModule(Kn).getTotalUnreadMessageCount()}},{key:\"setConversationCustomData\",value:function(e){return this._getModule(Kn).setConversationCustomData(e)}},{key:\"markConversation\",value:function(e){return this._getModule(Kn).markConversation(e)}},{key:\"getConversationGroupList\",value:function(){return this._getModule(Kn).getConversationGroupList()}},{key:\"createConversationGroup\",value:function(e){return this._getModule(Kn).createConversationGroup(e)}},{key:\"deleteConversationGroup\",value:function(e){return this._getModule(Kn).deleteConversationGroup(e)}},{key:\"renameConversationGroup\",value:function(e){return this._getModule(Kn).renameConversationGroup(e)}},{key:\"addConversationsToGroup\",value:function(e){return this._getModule(Kn).addConversationsToGroup(e)}},{key:\"deleteConversationsFromGroup\",value:function(e){return this._getModule(Kn).deleteConversationsFromGroup(e)}},{key:\"getMyProfile\",value:function(){return this._getModule(Fn).getMyProfile()}},{key:\"getUserProfile\",value:function(e){return this._getModule(Fn).getUserProfile(e)}},{key:\"updateMyProfile\",value:function(e){return this._getModule(Fn).updateMyProfile(e)}},{key:\"getBlacklist\",value:function(){return this._getModule(Fn).getLocalBlacklist()}},{key:\"addToBlacklist\",value:function(e){return this._getModule(Fn).addBlacklist(e)}},{key:\"removeFromBlacklist\",value:function(e){return this._getModule(Fn).deleteBlacklist(e)}},{key:\"setSelfStatus\",value:function(e){return this._getModule(Fn).setSelfStatus(e)}},{key:\"getUserStatus\",value:function(e){return this._getModule(Fn).getUserStatus(e)}},{key:\"subscribeUserStatus\",value:function(e){return this._getModule(Fn).subscribeUserStatus(e)}},{key:\"unsubscribeUserStatus\",value:function(e){return this._getModule(Fn).unsubscribeUserStatus(e)}},{key:\"getFriendList\",value:function(){var e=this._getModule(Vn);return e?e.getLocalFriendList():ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"addFriend\",value:function(e){var t=this._getModule(Vn);return t?t.addFriend(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"deleteFriend\",value:function(e){var t=this._getModule(Vn);return t?t.deleteFriend(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"checkFriend\",value:function(e){var t=this._getModule(Vn);return t?t.checkFriend(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"getFriendProfile\",value:function(e){var t=this._getModule(Vn);return t?t.getFriendProfile(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"updateFriend\",value:function(e){var t=this._getModule(Vn);return t?t.updateFriend(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"getFriendApplicationList\",value:function(){var e=this._getModule(Vn);return e?e.getLocalFriendApplicationList():ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"acceptFriendApplication\",value:function(e){var t=this._getModule(Vn);return t?t.acceptFriendApplication(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"refuseFriendApplication\",value:function(e){var t=this._getModule(Vn);return t?t.refuseFriendApplication(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"deleteFriendApplication\",value:function(e){var t=this._getModule(Vn);return t?t.deleteFriendApplication(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"setFriendApplicationRead\",value:function(){var e=this._getModule(Vn);return e?e.setFriendApplicationRead():ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"getFriendGroupList\",value:function(){var e=this._getModule(Vn);return e?e.getLocalFriendGroupList():ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"createFriendGroup\",value:function(e){var t=this._getModule(Vn);return t?t.createFriendGroup(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"deleteFriendGroup\",value:function(e){var t=this._getModule(Vn);return t?t.deleteFriendGroup(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"addToFriendGroup\",value:function(e){var t=this._getModule(Vn);return t?t.addToFriendGroup(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"removeFromFriendGroup\",value:function(e){var t=this._getModule(Vn);return t?t.removeFromFriendGroup(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"renameFriendGroup\",value:function(e){var t=this._getModule(Vn);return t?t.renameFriendGroup(e):ha({code:Or.CANNOT_FIND_MODULE})}},{key:\"getGroupList\",value:function(e){return this._getModule(xn).getGroupList(e)}},{key:\"getGroupProfile\",value:function(e){return this._getModule(xn).getGroupProfile(e)}},{key:\"createGroup\",value:function(e){return this._getModule(xn).createGroup(e)}},{key:\"dismissGroup\",value:function(e){return this._getModule(xn).dismissGroup(e)}},{key:\"updateGroupProfile\",value:function(e){return this._getModule(xn).updateGroupProfile(e)}},{key:\"joinGroup\",value:function(e){return this._getModule(xn).joinGroup(e)}},{key:\"quitGroup\",value:function(e){return this._getModule(xn).quitGroup(e)}},{key:\"searchGroupByID\",value:function(e){return this._getModule(xn).searchGroupByID(e)}},{key:\"getGroupOnlineMemberCount\",value:function(e){return this._getModule(xn).getGroupOnlineMemberCount(e)}},{key:\"changeGroupOwner\",value:function(e){return this._getModule(xn).changeGroupOwner(e)}},{key:\"getGroupApplicationList\",value:function(){return this._getModule(xn).getGroupApplicationList()}},{key:\"handleGroupApplication\",value:function(e){return this._getModule(xn).handleGroupApplication(e)}},{key:\"initGroupAttributes\",value:function(e){return this._getModule(xn).initGroupAttributes(e)}},{key:\"setGroupAttributes\",value:function(e){return this._getModule(xn).setGroupAttributes(e)}},{key:\"deleteGroupAttributes\",value:function(e){return this._getModule(xn).deleteGroupAttributes(e)}},{key:\"getGroupAttributes\",value:function(e){return this._getModule(xn).getGroupAttributes(e)}},{key:\"setGroupCounters\",value:function(e){return this._getModule(xn).setGroupCounters(e)}},{key:\"increaseGroupCounter\",value:function(e){return this._getModule(xn).increaseGroupCounter(e)}},{key:\"decreaseGroupCounter\",value:function(e){return this._getModule(xn).decreaseGroupCounter(e)}},{key:\"getGroupCounters\",value:function(e){return this._getModule(xn).getGroupCounters(e)}},{key:\"getGroupMemberList\",value:function(e){return this._getModule(Bn).getGroupMemberList(e)}},{key:\"getGroupMemberProfile\",value:function(e){return this._getModule(Bn).getGroupMemberProfile(e)}},{key:\"addGroupMember\",value:function(e){return this._getModule(Bn).addGroupMember(e)}},{key:\"deleteGroupMember\",value:function(e){return this._getModule(Bn).deleteGroupMember(e)}},{key:\"setGroupMemberMuteTime\",value:function(e){return this._getModule(Bn).setGroupMemberMuteTime(e)}},{key:\"setGroupMemberRole\",value:function(e){return this._getModule(Bn).setGroupMemberRole(e)}},{key:\"setGroupMemberNameCard\",value:function(e){return this._getModule(Bn).setGroupMemberNameCard(e)}},{key:\"setGroupMemberCustomField\",value:function(e){return this._getModule(Bn).setGroupMemberCustomField(e)}},{key:\"markGroupMemberList\",value:function(e){return this._getModule(Bn).markGroupMemberList(e)}},{key:\"getJoinedCommunityList\",value:function(){return this._getModule(Hn).getJoinedCommunityList()}},{key:\"createTopicInCommunity\",value:function(e){return this._getModule(Hn).createTopicInCommunity(e)}},{key:\"deleteTopicFromCommunity\",value:function(e){return this._getModule(Hn).deleteTopicFromCommunity(e)}},{key:\"updateTopicProfile\",value:function(e){return this._getModule(Hn).updateTopicProfile(e)}},{key:\"getTopicList\",value:function(e){return this._getModule(Hn).getTopicList(e)}}]),e}(),Fu={login:1,logout:1,destroy:1,on:1,off:1,ready:1,setLogLevel:1,joinGroup:1,quitGroup:1,registerPlugin:1,getGroupOnlineMemberCount:1};function qu(e,t){if(e.isReady()||1===Fu[t])return!0;var n=e.getNotReadyReason(),o={code:n,message:\"\".concat(e.getErrorMessage(n),\" | \").concat(t,\" | \").concat(e.getErrorMessage(Or.SDK_IS_NOT_READY))};return e.onError(o),o}var xu={},Vu={};return Vu.create=function(e){var n=0,o=e.SDKAppID;if(at(o))n=o;else if(n=parseInt(o),isNaN(o))return Ve.e(\"\".concat(\"TIM.create\",\" failed. Failed to parse the SDKAppID, please check the arguments\")),null;if(n&&xu[n])return xu[n];Ve.l(\"\".concat(\"TIM.create\"));var s=new wu(t(t({},e),{},{SDKAppID:n}));s.on(E.SDK_DESTROY,(function(e){xu[e.data.SDKAppID]=null,delete xu[e.data.SDKAppID]}));var r=function(e){var t=Object.create(null);return Object.keys(Un).forEach((function(n){if(e[n]){var o=new S;t[n]=function(){var t=Array.from(arguments);return o.use((function(t,o){var s=qu(e,n);return!0===s?o():ha(s)})).use((function(e,t){if(!0===en(e,Gn[n],n))return t()})).use((function(t,o){return e[n].apply(e,t)})),o.run(t)}}})),t}(s);return xu[n]=r,Gn.hookGetAPITips(s.getErrorMessage.bind(s)),Ve.l(\"\".concat(\"TIM.create\",\" ok\")),r},Vu.TYPES=k,Vu.EVENT=E,Vu.VERSION=\"2.27.5\",Ve.l(\"TIM.VERSION:\".concat(Vu.VERSION)),Vu}));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/tim-js-sdk/tim-js-friendship.js?");

/***/ }),

/***/ "./node_modules/tim-js-sdk/tim-js.js":
/*!*******************************************!*\
  !*** ./node_modules/tim-js-sdk/tim-js.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("/* WEBPACK VAR INJECTION */(function(global) {!function(e,t){ true?module.exports=t():undefined}(this,(function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,n){return(p=l()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var s=new(Function.bind.apply(e,o));return n&&c(s,n.prototype),s}).apply(null,arguments)}function d(e){var t=\"function\"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return p(e,arguments,u(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),c(o,e)})(e)}function g(e,t){if(null==e)return{};var n,o,s=function(e,t){if(null==e)return{};var n,o,s={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function _(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function h(e,t){if(t&&(\"object\"==typeof t||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return _(e)}function f(e){var t=l();return function(){var n,o=u(e);if(t){var s=u(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return h(this,n)}}function v(e,t){return M(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var o,s,a=[],r=!0,i=!1;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);r=!0);}catch(u){i=!0,s=u}finally{try{r||null==n.return||n.return()}finally{if(i)throw s}}return a}(e,t)||I(e,t)||T()}function m(e){return function(e){if(Array.isArray(e))return C(e)}(e)||y(e)||I(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function M(e){if(Array.isArray(e))return e}function y(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}function I(e,t){if(e){if(\"string\"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function T(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function D(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=I(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var o=0,s=function(){};return{s:s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:s}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var a,r=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){i=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(i)throw a}}}}var E={SDK_READY:\"sdkStateReady\",SDK_NOT_READY:\"sdkStateNotReady\",SDK_DESTROY:\"sdkDestroy\",MESSAGE_RECEIVED:\"onMessageReceived\",MESSAGE_MODIFIED:\"onMessageModified\",MESSAGE_REVOKED:\"onMessageRevoked\",MESSAGE_READ_BY_PEER:\"onMessageReadByPeer\",MESSAGE_READ_RECEIPT_RECEIVED:\"onMessageReadReceiptReceived\",MESSAGE_EXTENSIONS_UPDATED:\"onMessageExtensionsUpdated\",MESSAGE_EXTENSIONS_DELETED:\"onMessageExtensionsDeleted\",CONVERSATION_LIST_UPDATED:\"onConversationListUpdated\",TOTAL_UNREAD_MESSAGE_COUNT_UPDATED:\"onTotalUnreadMessageCountUpdated\",CONVERSATION_GROUP_LIST_UPDATED:\"onConversationGroupListUpdated\",CONVERSATION_IN_GROUP_UPDATED:\"onConversationInGroupUpdated\",GROUP_LIST_UPDATED:\"onGroupListUpdated\",GROUP_SYSTEM_NOTICE_RECEIVED:\"receiveGroupSystemNotice\",GROUP_ATTRIBUTES_UPDATED:\"groupAttributesUpdated\",GROUP_COUNTER_UPDATED:\"onGroupCounterUpdated\",TOPIC_CREATED:\"onTopicCreated\",TOPIC_DELETED:\"onTopicDeleted\",TOPIC_UPDATED:\"onTopicUpdated\",PROFILE_UPDATED:\"onProfileUpdated\",USER_STATUS_UPDATED:\"onUserStatusUpdated\",BLACKLIST_UPDATED:\"blacklistUpdated\",FRIEND_LIST_UPDATED:\"onFriendListUpdated\",FRIEND_GROUP_LIST_UPDATED:\"onFriendGroupListUpdated\",FRIEND_APPLICATION_LIST_UPDATED:\"onFriendApplicationListUpdated\",KICKED_OUT:\"kickedOut\",ERROR:\"error\",NET_STATE_CHANGE:\"netStateChange\",SDK_RELOAD:\"sdkReload\"},S={MSG_TEXT:\"TIMTextElem\",MSG_IMAGE:\"TIMImageElem\",MSG_SOUND:\"TIMSoundElem\",MSG_AUDIO:\"TIMSoundElem\",MSG_FILE:\"TIMFileElem\",MSG_FACE:\"TIMFaceElem\",MSG_VIDEO:\"TIMVideoFileElem\",MSG_GEO:\"TIMLocationElem\",MSG_LOCATION:\"TIMLocationElem\",MSG_GRP_TIP:\"TIMGroupTipElem\",MSG_GRP_SYS_NOTICE:\"TIMGroupSystemNoticeElem\",MSG_CUSTOM:\"TIMCustomElem\",MSG_MERGER:\"TIMRelayElem\",MSG_PRIORITY_HIGH:\"High\",MSG_PRIORITY_NORMAL:\"Normal\",MSG_PRIORITY_LOW:\"Low\",MSG_PRIORITY_LOWEST:\"Lowest\",CONV_C2C:\"C2C\",CONV_GROUP:\"GROUP\",CONV_TOPIC:\"TOPIC\",CONV_SYSTEM:\"@TIM#SYSTEM\",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:\"Private\",GRP_WORK:\"Private\",GRP_PUBLIC:\"Public\",GRP_CHATROOM:\"ChatRoom\",GRP_MEETING:\"ChatRoom\",GRP_AVCHATROOM:\"AVChatRoom\",GRP_COMMUNITY:\"Community\",GRP_MBR_ROLE_OWNER:\"Owner\",GRP_MBR_ROLE_ADMIN:\"Admin\",GRP_MBR_ROLE_MEMBER:\"Member\",GRP_MBR_ROLE_CUSTOM:\"Custom\",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:\"AcceptAndNotify\",MSG_REMIND_ACPT_NOT_NOTE:\"AcceptNotNotify\",MSG_REMIND_DISCARD:\"Discard\",GENDER_UNKNOWN:\"Gender_Type_Unknown\",GENDER_FEMALE:\"Gender_Type_Female\",GENDER_MALE:\"Gender_Type_Male\",KICKED_OUT_MULT_ACCOUNT:\"multipleAccount\",KICKED_OUT_MULT_DEVICE:\"multipleDevice\",KICKED_OUT_USERSIG_EXPIRED:\"userSigExpired\",KICKED_OUT_REST_API:\"REST_API_Kick\",ALLOW_TYPE_ALLOW_ANY:\"AllowType_Type_AllowAny\",ALLOW_TYPE_NEED_CONFIRM:\"AllowType_Type_NeedConfirm\",ALLOW_TYPE_DENY_ANY:\"AllowType_Type_DenyAny\",FORBID_TYPE_NONE:\"AdminForbid_Type_None\",FORBID_TYPE_SEND_OUT:\"AdminForbid_Type_SendOut\",JOIN_OPTIONS_FREE_ACCESS:\"FreeAccess\",JOIN_OPTIONS_NEED_PERMISSION:\"NeedPermission\",JOIN_OPTIONS_DISABLE_APPLY:\"DisableApply\",JOIN_STATUS_SUCCESS:\"JoinedSuccess\",JOIN_STATUS_ALREADY_IN_GROUP:\"AlreadyInGroup\",JOIN_STATUS_WAIT_APPROVAL:\"WaitAdminApproval\",INVITE_OPTIONS_DISABLE_INVITE:\"DisableInvite\",INVITE_OPTIONS_NEED_PERMISSION:\"NeedPermission\",INVITE_OPTIONS_FREE_ACCESS:\"FreeAccess\",GRP_PROFILE_OWNER_ID:\"ownerID\",GRP_PROFILE_CREATE_TIME:\"createTime\",GRP_PROFILE_LAST_INFO_TIME:\"lastInfoTime\",GRP_PROFILE_MEMBER_NUM:\"memberNum\",GRP_PROFILE_MAX_MEMBER_NUM:\"maxMemberNum\",GRP_PROFILE_JOIN_OPTION:\"joinOption\",GRP_PROFILE_INVITE_OPTION:\"inviteOption\",GRP_PROFILE_INTRODUCTION:\"introduction\",GRP_PROFILE_NOTIFICATION:\"notification\",GRP_PROFILE_MUTE_ALL_MBRS:\"muteAllMembers\",SNS_ADD_TYPE_SINGLE:\"Add_Type_Single\",SNS_ADD_TYPE_BOTH:\"Add_Type_Both\",SNS_DELETE_TYPE_SINGLE:\"Delete_Type_Single\",SNS_DELETE_TYPE_BOTH:\"Delete_Type_Both\",SNS_APPLICATION_TYPE_BOTH:\"Pendency_Type_Both\",SNS_APPLICATION_SENT_TO_ME:\"Pendency_Type_ComeIn\",SNS_APPLICATION_SENT_BY_ME:\"Pendency_Type_SendOut\",SNS_APPLICATION_AGREE:\"Response_Action_Agree\",SNS_APPLICATION_AGREE_AND_ADD:\"Response_Action_AgreeAndAdd\",SNS_CHECK_TYPE_BOTH:\"CheckResult_Type_Both\",SNS_CHECK_TYPE_SINGLE:\"CheckResult_Type_Single\",SNS_TYPE_NO_RELATION:\"CheckResult_Type_NoRelation\",SNS_TYPE_A_WITH_B:\"CheckResult_Type_AWithB\",SNS_TYPE_B_WITH_A:\"CheckResult_Type_BWithA\",SNS_TYPE_BOTH_WAY:\"CheckResult_Type_BothWay\",NET_STATE_CONNECTED:\"connected\",NET_STATE_CONNECTING:\"connecting\",NET_STATE_DISCONNECTED:\"disconnected\",MSG_AT_ALL:\"__kImSDK_MesssageAtALL__\",READ_ALL_C2C_MSG:\"readAllC2CMessage\",READ_ALL_GROUP_MSG:\"readAllGroupMessage\",READ_ALL_MSG:\"readAllMessage\",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3},k=function(){function e(){o(this,e),this.cache=[],this.options=null}return a(e,[{key:\"use\",value:function(e){if(\"function\"!=typeof e)throw\"middleware must be a function\";return this.cache.push(e),this}},{key:\"next\",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:\"run\",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this.high=t,this.low=n}return a(e,[{key:\"equal\",value:function(e){return null!==e&&(this.low===e.low&&this.high===e.high)}},{key:\"toString\",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t=\"0\"+t,n--;return e+t}}]),e}(),A={TEST:{CHINA:{DEFAULT:\"wss://wss-dev.tim.qq.com\"},OVERSEA:{DEFAULT:\"wss://wss-dev.tim.qq.com\"},SINGAPORE:{DEFAULT:\"wss://wsssgp-dev.im.qcloud.com\"},KOREA:{DEFAULT:\"wss://wsskr-dev.im.qcloud.com\"},GERMANY:{DEFAULT:\"wss://wssger-dev.im.qcloud.com\"},IND:{DEFAULT:\"wss://wssind-dev.im.qcloud.com\"},JPN:{DEFAULT:\"wss://wssjpn-dev.im.qcloud.com\"},USA:{DEFAULT:\"wss://wssusa-dev.im.qcloud.com\"}},PRODUCTION:{CHINA:{DEFAULT:\"wss://wss.im.qcloud.com\",BACKUP:\"wss://wss.tim.qq.com\",STAT:\"https://events.im.qcloud.com\",ANYCAST:\"wss://162.14.13.203\"},OVERSEA:{DEFAULT:\"wss://wss.im.qcloud.com\",BACKUP:\"wss://wss.my-imcloud.com\",STAT:\"https://api.my-imcloud.com\"},SINGAPORE:{DEFAULT:\"wss://wsssgp.im.qcloud.com\",BACKUP:\"wss://wsssgp.my-imcloud.com\",STAT:\"https://apisgp.my-imcloud.com\"},KOREA:{DEFAULT:\"wss://wsskr.im.qcloud.com\",BACKUP:\"wss://wsskr.my-imcloud.com\",STAT:\"https://apikr.my-imcloud.com\"},GERMANY:{DEFAULT:\"wss://wssger.im.qcloud.com\",BACKUP:\"wss://wssger.my-imcloud.com\",STAT:\"https://apiger.my-imcloud.com\"},IND:{DEFAULT:\"wss://wssind.my-imcloud.com\",BACKUP:\"wss://wssind.im.qcloud.com\",STAT:\"https://apiind.my-imcloud.com\"},JPN:{DEFAULT:\"wss://wssjpn.im.qcloud.com\",BACKUP:\"wss://wssjpn.my-imcloud.com\",STAT:\"https://apijpn.my-imcloud.com\"},USA:{DEFAULT:\"wss://wssusa.im.qcloud.com\",BACKUP:\"wss://wssusa.my-imcloud.com\",STAT:\"https://apiusa.my-imcloud.com\"}}},R={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15},N=\"1.7.3\",O=537048168,G=\"CHINA\",U=\"OVERSEA\",P=\"SINGAPORE\",b=\"KOREA\",w=\"GERMANY\",F=\"IND\",q=\"JPN\",x=\"USA\",V={HOST:{CURRENT:{DEFAULT:\"wss://wss.im.qcloud.com\",STAT:\"https://events.im.qcloud.com\"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G;this.CURRENT=A.PRODUCTION[e]}},NAME:{OPEN_IM:\"openim\",OPEN_IM_MSG_EXT:\"openim_msg_ext_http_svc\",GROUP:\"group_open_http_svc\",GROUP_AVCHATROOM:\"group_open_avchatroom_http_svc\",GROUP_COMMUNITY:\"million_group_open_http_svc\",GROUP_ATTR:\"group_open_attr_http_svc\",FRIEND:\"sns\",PROFILE:\"profile\",RECENT_CONTACT:\"recentcontact\",PIC:\"openpic\",BIG_GROUP_NO_AUTH:\"group_open_http_noauth_svc\",BIG_GROUP_LONG_POLLING:\"group_open_long_polling_http_svc\",BIG_GROUP_LONG_POLLING_NO_AUTH:\"group_open_long_polling_http_noauth_svc\",IM_OPEN_STAT:\"imopenstat\",WEB_IM:\"webim\",IM_COS_SIGN:\"im_cos_sign_svr\",CUSTOM_UPLOAD:\"im_cos_msg\",HEARTBEAT:\"heartbeat\",IM_OPEN_PUSH:\"im_open_push\",IM_OPEN_STATUS:\"im_open_status\",IM_LONG_MESSAGE:\"im_long_msg\",IM_CONFIG_MANAGER:\"im_sdk_config_mgr\",STAT_SERVICE:\"StatSvc\",OVERLOAD_PUSH:\"OverLoadPush\",IM_MSG_AUDIT_MGR:\"im_msg_audit_mgr\",TUIROOM_SVR:\"tui_room_svr\",IM_OPEN_TRANSLATE:\"im_open_translate\"},CMD:{LOGIN:\"wslogin\",LOGOUT_LONG_POLL:\"longpollinglogout\",LOGOUT:\"wslogout\",HELLO:\"wshello\",STAT_BACKGROUND:\"ws_stat_background\",STAT_FOREGROUND:\"ws_stat_foreground\",SET_TOKEN:\"ws_stat_settoken\",PORTRAIT_GET:\"portrait_get_all\",PORTRAIT_SET:\"portrait_set\",GET_LONG_POLL_ID:\"getlongpollingid\",LONG_POLL:\"longpolling\",AVCHATROOM_LONG_POLL:\"get_msg\",ADD_FRIEND:\"friend_add\",UPDATE_FRIEND:\"friend_update\",GET_FRIEND_LIST:\"friend_get\",GET_FRIEND_PROFILE:\"friend_get_specified\",DELETE_FRIEND:\"friend_delete\",CHECK_FRIEND:\"friend_check\",GET_FRIEND_GROUP_LIST:\"group_get\",RESPOND_FRIEND_APPLICATION:\"friend_response\",GET_FRIEND_APPLICATION_LIST:\"pendency_get\",DELETE_FRIEND_APPLICATION:\"pendency_delete\",REPORT_FRIEND_APPLICATION:\"pendency_report\",GET_GROUP_APPLICATION:\"get_pendency\",CREATE_FRIEND_GROUP:\"group_add\",DELETE_FRIEND_GROUP:\"group_delete\",UPDATE_FRIEND_GROUP:\"group_update\",GET_BLACKLIST:\"black_list_get\",ADD_BLACKLIST:\"black_list_add\",DELETE_BLACKLIST:\"black_list_delete\",CREATE_GROUP:\"create_group\",GET_JOINED_GROUPS:\"get_joined_group_list\",SET_GROUP_ATTRIBUTES:\"set_group_attr\",MODIFY_GROUP_ATTRIBUTES:\"modify_group_attr\",DELETE_GROUP_ATTRIBUTES:\"delete_group_attr\",CLEAR_GROUP_ATTRIBUTES:\"clear_group_attr\",GET_GROUP_ATTRIBUTES:\"get_group_attr\",SEND_MESSAGE:\"sendmsg\",REVOKE_C2C_MESSAGE:\"msgwithdraw\",DELETE_C2C_MESSAGE:\"delete_c2c_msg_ramble\",MODIFY_C2C_MESSAGE:\"modify_c2c_msg\",MODIFY_C2C_MESSAGE_EXTENSIONS:\"set_key_values\",GET_C2C_MESSAGE_EXTENSIONS:\"get_key_values\",SEND_GROUP_MESSAGE:\"send_group_msg\",REVOKE_GROUP_MESSAGE:\"group_msg_recall\",DELETE_GROUP_MESSAGE:\"delete_group_ramble_msg_by_seq\",MODIFY_GROUP_MESSAGE:\"modify_group_msg\",MODIFY_GROUP_MESSAGE_EXTENSIONS:\"group_set_key_values\",GET_GROUP_MESSAGE_EXTENSIONS:\"group_get_key_values\",GET_GROUP_INFO:\"get_group_self_member_info\",GET_GROUP_MEMBER_INFO:\"get_specified_group_member_info\",GET_GROUP_MEMBER_LIST:\"get_group_member_info\",GET_AVCHATROOM_MEMBER_LIST:\"get_members\",MARK_AVCHATROOM_MEMBER_INFO:\"modify_user_info\",QUIT_GROUP:\"quit_group\",CHANGE_GROUP_OWNER:\"change_group_owner\",DESTROY_GROUP:\"destroy_group\",ADD_GROUP_MEMBER:\"add_group_member\",DELETE_GROUP_MEMBER:\"delete_group_member\",BAN_AVCHATROOM_MEMBER:\"ban_group_member\",SEARCH_GROUP_BY_ID:\"get_group_public_info\",APPLY_JOIN_GROUP:\"apply_join_group\",HANDLE_APPLY_JOIN_GROUP:\"handle_apply_join_group\",HANDLE_INVITE_JOIN_GROUP:\"handle_invite_join_permission_group\",HANDLE_GROUP_INVITATION:\"handle_invite_join_group\",MODIFY_GROUP_INFO:\"modify_group_base_info\",MODIFY_GROUP_MEMBER_INFO:\"modify_group_member_info\",DELETE_GROUP_SYSTEM_MESSAGE:\"deletemsg\",DELETE_GROUP_AT_TIPS:\"deletemsg\",GET_GROUP_NOTIFY:\"get_group_notify\",GET_CONVERSATION_LIST:\"get\",PAGING_GET_CONVERSATION_LIST:\"page_get\",DELETE_CONVERSATION:\"batch_delete\",CLEAR_HISTORY_MESSAGE:\"clear_msg\",PIN_CONVERSATION:\"top\",SET_CONVERSATION_CUSTOM_DATA:\"mark_contact\",MARK_CONVERSATION:\"mark_contact\",CREATE_CONVERSATION_GROUP:\"create_contact_group\",DELETE_CONVERSATION_GROUP:\"del_contact_group\",UPDATE_CONVERSATION_GROUP:\"update_contact_group\",GET_CONVERSATION_GROUP_LIST:\"get_contact_group\",GET_MESSAGES:\"getmsg\",GET_C2C_ROAM_MESSAGES:\"getroammsg\",SET_C2C_PEER_MUTE_NOTIFICATIONS:\"set_c2c_peer_mute_notifications\",GET_C2C_PEER_MUTE_NOTIFICATIONS:\"get_c2c_peer_mute_notifications\",GET_GROUP_ROAM_MESSAGES:\"group_msg_get\",GET_READ_RECEIPT:\"get_group_msg_receipt\",GET_READ_RECEIPT_DETAIL:\"get_group_msg_receipt_detail\",SEND_READ_RECEIPT:\"group_msg_receipt\",SEND_C2C_READ_RECEIPT:\"c2c_msg_read_receipt\",SET_C2C_MESSAGE_READ:\"msgreaded\",GET_PEER_READ_TIME:\"get_peer_read_time\",SET_GROUP_MESSAGE_READ:\"msg_read_report\",FILE_READ_AND_WRITE_AUTHKEY:\"authkey\",FILE_UPLOAD:\"pic_up\",COS_SIGN:\"cos\",COS_PRE_SIG:\"pre_sig\",VIDEO_COVER:\"video_cover\",TIM_WEB_REPORT_V2:\"tim_web_report_v2\",BIG_DATA_HALLWAY_AUTH_KEY:\"authkey\",GET_ONLINE_MEMBER_NUM:\"get_online_member_num\",ALIVE:\"alive\",MESSAGE_PUSH:\"msg_push\",MULTI_MESSAGE_PUSH:\"multi_msg_push_ws\",MESSAGE_PUSH_ACK:\"ws_msg_push_ack\",STATUS_FORCE_OFFLINE:\"stat_forceoffline\",DOWNLOAD_MERGER_MESSAGE:\"get_relay_json_msg\",UPLOAD_MERGER_MESSAGE:\"save_relay_json_msg\",FETCH_CLOUD_CONTROL_CONFIG:\"fetch_config\",PUSHED_CLOUD_CONTROL_CONFIG:\"push_configv2\",FETCH_COMMERCIAL_CONFIG:\"fetch_imsdk_purchase_bitsv2\",PUSHED_COMMERCIAL_CONFIG:\"push_imsdk_purchase_bitsv2\",KICK_OTHER:\"KickOther\",OVERLOAD_NOTIFY:\"notify2\",SET_ALL_MESSAGE_READ:\"read_all_unread_msg\",CREATE_TOPIC:\"create_topic\",DELETE_TOPIC:\"destroy_topic\",UPDATE_TOPIC_PROFILE:\"modify_topic\",GET_TOPIC_LIST:\"get_topic\",SET_SELF_STATUS:\"ws_set_custom_status\",GET_USER_STATUS:\"ws_get_user_status\",SUBSCRIBE_USER_STATUS:\"ws_status_subscribe\",UNSUBSCRIBE_USER_STATUS:\"ws_status_unsubscribe\",GET_RPOFANITY_LIST:\"get_local_words\",TRANSLATE_TEXT:\"ws_batch_trans_text\",UPDATE_GROUP_COUNTER:\"update_group_counter\",GET_GROUP_COUNTER:\"get_group_counter\"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:\"v4\",group_open_http_svc:\"v4\",sns:\"v4\",profile:\"v4\",recentcontact:\"v4\",openpic:\"v4\",group_open_http_noauth_svc:\"v4\",group_open_long_polling_http_svc:\"v4\",group_open_long_polling_http_noauth_svc:\"v4\",imopenstat:\"v4\",im_cos_sign_svr:\"v4\",im_cos_msg:\"v4\",webim:\"v4\",im_open_push:\"v4\",im_open_status:\"v4\"}},B={SEARCH_MSG:new L(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new L(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new L(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new L(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new L(0,Math.pow(2,4)).toString(),AVCHATROOM_MBR_LIST:new L(0,Math.pow(2,6)).toString(),USER_STATUS:new L(0,Math.pow(2,7)).toString(),CONV_MARK:new L(0,Math.pow(2,9)).toString(),CONV_GROUP:new L(0,Math.pow(2,10)).toString(),AVCHATROOM_BAN_MBR:new L(0,Math.pow(2,11)).toString(),MSG_EXT:new L(0,Math.pow(2,13)).toString(),GRP_COUNTER:new L(0,Math.pow(2,15)).toString()},H=\"c2c_text_message\",K=\"c2c_custom_message\",W=\"group_text_message\",Y=\"group_custom_message\",j=\"user_profile\",z=\"group_profile\",J=\"group_member_profile\";V.HOST.setCurrent(G);var X=\"undefined\"!=typeof wx&&\"function\"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Q=\"undefined\"!=typeof qq&&\"function\"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),Z=\"undefined\"!=typeof tt&&\"function\"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),$=\"undefined\"!=typeof swan&&\"function\"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),ee=\"undefined\"!=typeof my&&\"function\"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),te=\"undefined\"!=typeof jd&&\"function\"==typeof jd.getSystemInfoSync,ne=\"undefined\"!=typeof uni&&\"undefined\"==typeof window&&\"function\"==typeof uni.requireNativePlugin,oe=\"undefined\"!=typeof uni,se=X||Q||Z||$||ee||ne||te,ae=(\"undefined\"!=typeof uni||\"undefined\"!=typeof window)&&!se,re=Q?qq:Z?tt:$?swan:ee?my:X?wx:ne?uni:te?jd:{},ie=ae&&window&&window.navigator&&window.navigator.userAgent||\"\",ue=/(micromessenger|webbrowser)/i.test(ie),ce=/AppleWebKit\\/([\\d.]+)/i.exec(ie);ce&&parseFloat(ce.pop());var le,pe,de=(le=\"WEB\",ue?le=\"WEB\":Q?le=\"QQ_MP\":Z?le=\"TT_MP\":$?le=\"BAIDU_MP\":ee?le=\"ALI_MP\":X?le=\"WX_MP\":ne&&(le=\"UNI_NATIVE_APP\"),R[le]),ge=/iPad/i.test(ie),_e=/iPhone/i.test(ie)&&!ge,he=/iPod/i.test(ie),fe=_e||ge||he,ve=(pe=ie.match(/OS (\\d+)_/i))&&pe[1]?pe[1]:null,me=/Android/i.test(ie),Me=function(){var e=ie.match(/Android (\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+\".\"+e[2]):t||null}();!function(){var e=ie.match(/Chrome\\/(\\d+)/);e&&e[1]&&parseFloat(e[1])}();var ye=/MSIE/.test(ie)||ie.indexOf(\"Trident\")>-1&&ie.indexOf(\"rv:11.0\")>-1,Ie=function(){var e=/MSIE\\s(\\d+)\\.\\d/.exec(ie),t=e&&parseFloat(e[1]);return!t&&/Trident\\/7.0/i.test(ie)&&/rv:11.0/.test(ie)&&(t=11),t}();!function(){var e=ie.match(/TBS\\/(\\d+)/i);if(e&&e[1])e[1]}();var Ce,Te,De=/Windows/i.test(ie),Ee=/MAC OS X/i.test(ie),Se=ae&&\"undefined\"!=typeof Worker&&!ye,ke=me||fe,Le=ae&&void 0!==window.tencent_cloud_im_csig_flutter_for_web_25F_cy;Ce=\"undefined\"!=typeof console?console:\"undefined\"!=typeof global&&global.console?global.console:\"undefined\"!=typeof window&&window.console?window.console:{};for(var Ae=function(){},Re=[\"assert\",\"clear\",\"count\",\"debug\",\"dir\",\"dirxml\",\"error\",\"group\",\"groupCollapsed\",\"groupEnd\",\"info\",\"log\",\"profile\",\"profileEnd\",\"table\",\"time\",\"timeEnd\",\"timeStamp\",\"trace\",\"warn\"],Ne=Re.length;Ne--;)Te=Re[Ne],console[Te]||(Ce[Te]=Ae);var Oe=Ce,Ge=0,Ue=function(){return(new Date).getTime()+Ge},Pe=function(){Ge=0},be=function(){return Math.floor(Ue()/1e3)},we=0;function Fe(){return Ht()?\"%c TIM %c\":\"TIM\"}function qe(){var e,t=((e=new Date).setTime(Ue()),e);return t.toLocaleTimeString(\"en-US\",{hour12:!1})+\".\"+function(e){var t;switch(e.toString().length){case 1:t=\"00\"+e;break;case 2:t=\"0\"+e;break;default:t=e}return t}(t.getMilliseconds())}var xe={arguments2String:function(e){var t=\"\";if(1===e.length)t=e[0];else for(var n=0,o=e.length;n<o;n++)rt(e[n])?ut(e[n])?t+=dt(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=\" \";return t},_exec:function(e,t){Ht()?Oe[e](Fe(),\"background:#0abf5b; padding:1px; border-radius:3px; color: #fff\",\"background:transparent\",qe(),t):Oe[e](\"\".concat(Fe(),\" \").concat(qe(),\" \").concat(t))},d:function(){if(we<=-1){var e=this.arguments2String(arguments);this._exec(\"debug\",e)}},l:function(){if(we<=0){var e=this.arguments2String(arguments);this._exec(\"log\",e)}},log:function(){if(we<=0){var e=this.arguments2String(arguments);this._exec(\"log\",e)}},i:function(){if(we<=1){var e=this.arguments2String(arguments);this._exec(\"info\",e)}},w:function(){if(we<=2){var e=this.arguments2String(arguments);this._exec(\"warn\",e)}},e:function(){if(we<=3){var e=this.arguments2String(arguments);this._exec(\"error\",e)}},setLevel:function(e){e<4&&this._exec(\"log\",\"set level from \"+we+\" to \"+e),we=e},getLevel:function(){return we}},Ve={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},Be={NICK:\"Tag_Profile_IM_Nick\",GENDER:\"Tag_Profile_IM_Gender\",BIRTHDAY:\"Tag_Profile_IM_BirthDay\",LOCATION:\"Tag_Profile_IM_Location\",SELFSIGNATURE:\"Tag_Profile_IM_SelfSignature\",ALLOWTYPE:\"Tag_Profile_IM_AllowType\",LANGUAGE:\"Tag_Profile_IM_Language\",AVATAR:\"Tag_Profile_IM_Image\",MESSAGESETTINGS:\"Tag_Profile_IM_MsgSettings\",ADMINFORBIDTYPE:\"Tag_Profile_IM_AdminForbidType\",LEVEL:\"Tag_Profile_IM_Level\",ROLE:\"Tag_Profile_IM_Role\"},He={UNKNOWN:\"Gender_Type_Unknown\",FEMALE:\"Gender_Type_Female\",MALE:\"Gender_Type_Male\"},Ke={NONE:\"AdminForbid_Type_None\",SEND_OUT:\"AdminForbid_Type_SendOut\"},We={NEED_CONFIRM:\"AllowType_Type_NeedConfirm\",ALLOW_ANY:\"AllowType_Type_AllowAny\",DENY_ANY:\"AllowType_Type_DenyAny\"},Ye=\"JoinedSuccess\",je=\"WaitAdminApproval\",ze=\"@TGS#_\",Je=\"@TOPIC#_\",Xe=[\"url\"],Qe=function(e){return\"map\"===ct(e)},Ze=function(e){return\"file\"===ct(e)},$e=function(e){return null!==e&&(\"number\"==typeof e&&!isNaN(e-0)||\"object\"===n(e)&&e.constructor===Number)},et=function(e){return\"string\"==typeof e},nt=function(e){return null!==e&&\"object\"===n(e)},ot=function(e){if(\"object\"!==n(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return t===o},st=function(e){return\"function\"==typeof Array.isArray?Array.isArray(e):\"array\"===ct(e)},at=function(e){return void 0===e},rt=function(e){return st(e)||nt(e)},it=function(e){return\"function\"==typeof e},ut=function(e){return e instanceof Error},ct=function(e){return Object.prototype.toString.call(e).match(/^\\[object (.*)\\]$/)[1].toLowerCase()},lt=function(e){if(\"string\"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)};Date.now||(Date.now=function(){return(new Date).getTime()});var pt=function e(t,n,o,s){if(!rt(t)||!rt(n))return 0;for(var a,r=0,i=Object.keys(n),u=0,c=i.length;u<c;u++)if(a=i[u],!(at(n[a])||o&&o.includes(a)))if(rt(t[a])&&rt(n[a]))r+=e(t[a],n[a],o,s);else{if(s&&s.includes(n[a]))continue;t[a]!==n[a]&&(t[a]=n[a],r+=1)}return r},dt=function(e){return JSON.stringify(e,[\"message\",\"code\"])},gt=function(e){if(0===e.length)return 0;for(var t=0,n=0,o=\"undefined\"!=typeof document&&void 0!==document.characterSet?document.characterSet:\"UTF-8\";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===o?3:2;return n},_t=function(e){var t=e||99999999;return Math.round(Math.random()*t)},ht=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\",ft=ht.length,vt=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},mt={},Mt=function(e){return-1===e.indexOf(\"http://\")||-1===e.indexOf(\"https://\")?\"https://\"+e:e.replace(/https|http/,\"https\")},yt=function e(t){if(0===Object.getOwnPropertyNames(t).length)return Object.create(null);var o=Array.isArray(t)?[]:Object.create(null),s=\"\";for(var a in t)null!==t[a]?void 0!==t[a]?(s=n(t[a]),[\"string\",\"number\",\"function\",\"boolean\"].indexOf(s)>=0?o[a]=t[a]:o[a]=e(t[a])):o[a]=void 0:o[a]=null;return o};function It(e,t){if(!st(e)||!st(t))return!1;var n=!1;return t.forEach((function(t){var o=t.key,s=t.value,a=e.find((function(e){return e.key===o}));a?a.value!==s&&(a.value=s,n=!0):(e.push({key:o,value:s}),n=!0)})),n}var Ct=function(e){return e===S.GRP_AVCHATROOM},Tt=function(e){var t=e.type,n=e.groupID;return t===S.GRP_COMMUNITY||\"\".concat(n).startsWith(ze)&&!\"\".concat(n).includes(Je)},Dt=function(e){return\"\".concat(e).startsWith(ze)&&\"\".concat(e).includes(Je)},Et=function(e){return et(e)&&e.slice(0,3)===S.CONV_C2C},St=function(e){return et(e)&&e.slice(0,5)===S.CONV_GROUP},kt=function(e){return et(e)&&e===S.CONV_SYSTEM};function Lt(e,t){var n={};return Object.keys(e).forEach((function(o){n[o]=t(e[o],o)})),n}function At(e){return se?new Promise((function(t,n){re.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):ye&&9===Ie?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var o=new Image;o.onload=function(){t({width:this.width,height:this.height}),o=null},o.onerror=function(){t({width:0,height:0}),o=null},o.src=e}))}function Rt(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return\"\".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function Nt(){var e=\"unknown\";if(Ee&&(e=\"mac\"),De&&(e=\"windows\"),fe&&(e=\"ios\"),me&&(e=\"android\"),se)try{var t=re.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(n){}return e}function Ot(e,t){e=e.split(\".\"),t=t.split(\".\");for(var n=Math.max(e.length,t.length);e.length<n;)e.push(\"0\");for(;t.length<n;)t.push(\"0\");for(var o=0;o<n;o++){var s=parseInt(e[o]),a=parseInt(t[o]);if(s>a)return 1;if(s<a)return-1}return 0}function Gt(e){var t=e.originUrl,n=void 0===t?void 0:t,o=e.originWidth,s=e.originHeight,a=e.min,r=void 0===a?198:a,i=parseInt(o),u=parseInt(s),c={url:void 0,width:0,height:0};if((i<=u?i:u)<=r)c.url=n,c.width=i,c.height=u;else{u<=i?(c.width=Math.ceil(i*r/u),c.height=r):(c.width=r,c.height=Math.ceil(u*r/i));var l=n&&n.indexOf(\"?\")>-1?\"\".concat(n,\"&\"):\"\".concat(n,\"?\");c.url=\"\".concat(l,198===r?\"imageView2/3/w/198/h/198\":\"imageView2/3/w/720/h/720\")}return at(n)?(c.url,g(c,Xe)):c}function Ut(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Pt(e){var t=e.servcmd;return t.slice(t.indexOf(\".\")+1)}function bt(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function wt(e,t){return e.includes(t)}function Ft(e,t){return e.includes(t)}function qt(e){return e.split(Je)[0]}var xt=function(e,t,n){if(at(t))return\"\";switch(e){case S.MSG_TEXT:return t.text;case S.MSG_IMAGE:return n?\"[Image]\":\"[图片]\";case S.MSG_LOCATION:return n?\"[Location]\":\"[位置]\";case S.MSG_AUDIO:return n?\"[Voice]\":\"[语音]\";case S.MSG_VIDEO:return n?\"[Video]\":\"[视频]\";case S.MSG_FILE:return n?\"[File]\":\"[文件]\";case S.MSG_CUSTOM:return n?\"[Custom Messages]\":\"[自定义消息]\";case S.MSG_GRP_TIP:return n?\"[Group Notification]\":\"[群提示消息]\";case S.MSG_GRP_SYS_NOTICE:return n?\"[Group System Message]\":\"[群系统通知]\";case S.MSG_FACE:return n?\"[Animated Sticker]\":\"[动画表情]\";case S.MSG_MERGER:return n?\"[Chat Record]\":\"[聊天记录]\";default:return\"\"}};function Vt(e){return e===S.MSG_TEXT||e===S.MSG_CUSTOM||e===S.MSG_LOCATION||e===S.MSG_FACE}function Bt(e){var t=[];if(!et(e))return t;var n=e.length;if(0===n)return t;for(var o=n-1;o>=0;o--)\"1\"===e[o]&&t.push(Math.pow(2,n-o-1));return t}function Ht(){return!ye&&!se}function Kt(e){return\"the length of userIDList cannot exceed \".concat(e)}function Wt(e,t){if(e){var n=e;return t&&(e.startsWith(\"http://\")?n=e.replace(/^http:\\/\\/[^/]+/,t):e.startsWith(\"https://\")&&(n=e.replace(/^https:\\/\\/[^/]+/,t))),n}}var Yt=Object.prototype.hasOwnProperty;function jt(e){if(null==e)return!0;if(\"boolean\"==typeof e)return!1;if(\"number\"==typeof e)return 0===e;if(\"string\"==typeof e)return 0===e.length;if(\"function\"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return\"\"===e.message;if(ot(e)){for(var t in e)if(Yt.call(e,t))return!1;return!0}return!(!Qe(e)&&(n=e,\"set\"!==ct(n))&&!Ze(e))&&0===e.size;var n}function zt(e,t,n){if(void 0===t)return!0;var o=!0;if(ot(t))Object.keys(t).forEach((function(s){var a=1===e.length?e[0][s]:void 0;o=!!Jt(a,t[s],n,s)&&o}));else if(st(t))for(var s=0;s<t.length;s++)o=!!Jt(e[s],t[s],n,t[s].name)&&o;if(o)return o;throw new Error(\"Params validate failed.\")}function Jt(e,t,n,o){if(void 0===t)return!0;var s=!0;if(t.required&&jt(e)&&(xe.e(\"[\".concat(n,'] Missing required params: \"').concat(o,'\".')),s=!1),!jt(e)){var a=ct(e),r=t.type.toLowerCase();a!==r&&(\"asyncfunction\"===a&&\"function\"===r||(xe.e(\"[\".concat(n,'] Invalid params: type check failed for \"').concat(o,'\".Expected ').concat(t.type,\".\")),s=!1))}return t.validator&&!t.validator(e)&&(xe.e(\"[\".concat(n,\"] Invalid params: custom validator check failed for params.\")),s=!1),s}var Xt,Qt={UNSEND:\"unSend\",SUCCESS:\"success\",FAIL:\"fail\"},Zt={NOT_START:\"notStart\",PENDING:\"pending\",RESOLVED:\"resolved\",REJECTED:\"rejected\"},$t=function(e){if(!e)return!1;if(Et(e)||St(e)||kt(e))return!0;var t=Sn(\"InvalidConversationID\",e);return t&&xe.w(t),!1},en=function(e){\"\"!==e.desc&&\"\"!==Sn(\"API_REFER\")&&xe.w(\"[\".concat(e.api,\"] | \").concat(e.param,\" | \").concat(e.desc,\", \").concat(Sn(\"API_REFER\")).concat(e.api))},tn=function(){return Sn(\"StringRequiredLog\")},nn=function(e){return Sn(\"NonEmptyStringRequiredLog\",e)},on=function(){return Sn(\"NumberRequiredLog\")},sn=function(){return Sn(\"UndefinedNotAllowedLog\")},an=function(){return Sn(\"FileRequiredLog\")},rn=function(){return Sn(\"FunctionRequiredLog\")},un=function(){return Sn(\"ArrayRequiredLog\")},cn=function(){return Sn(\"NonEmptyArrayLog\")},ln=function(){return Sn(\"CallbackMissingLog\")},pn=function(){return Sn(\"PositiveIntegerRequiredLog\")},dn=function(e,t){return Sn(\"StringNotLongerThanLog\",e,t)},gn=function(e,t){return Sn(\"NumberLessThanLog\",e,t)},_n=function(e){return Sn(\"KeyValueStringRequiredLog\",e)},hn=function(){return Sn(\"PlainObjectRequiredLog\")},fn=function(){return Sn(\"NonEmptyContentRequiredLog\")},vn=function(){return Sn(\"FileNotSelectedLog\")},mn=function(){return Sn(\"MessageInstanceRequiredLog\")},Mn=function(){return Sn(\"NonAnonymousFunctionLog\")},yn=function(){return Sn(\"MessageExtensionNotAvailableLog\")},In={type:\"String\",required:!0},Cn={type:\"Array\",required:!0},Tn={type:\"Object\",required:!0},Dn={type:\"Boolean\",required:!0},En={type:\"number\",required:!0},Sn=null,kn={hookGetAPITips:function(e){Sn=e},login:{userID:In,userSig:In},addToBlacklist:{userIDList:Cn},removeFromBlacklist:{userIDList:Cn},on:[{name:\"eventName\",type:\"String\",validator:function(e){return\"string\"==typeof e&&0!==e.length||(en({api:\"on\",param:\"eventName\",desc:nn(\"eventName\")}),!1)}},{name:\"handler\",type:\"Function\",validator:function(e){return\"function\"!=typeof e?(en({api:\"on\",param:\"handler\",desc:rn()}),!1):(\"\"===e.name&&en({api:\"on\",param:\"handler\",desc:Mn()}),!0)}}],once:[{name:\"eventName\",type:\"String\",validator:function(e){return\"string\"==typeof e&&0!==e.length||(en({api:\"once\",param:\"eventName\",desc:nn(\"eventName\")}),!1)}},{name:\"handler\",type:\"Function\",validator:function(e){return\"function\"!=typeof e?(en({api:\"once\",param:\"handler\",desc:rn()}),!1):(\"\"===e.name&&en({api:\"once\",param:\"handler\",desc:Mn()}),!0)}}],off:[{name:\"eventName\",type:\"String\",validator:function(e){return\"string\"==typeof e&&0!==e.length||(en({api:\"off\",param:\"eventName\",desc:nn(\"eventName\")}),!1)}},{name:\"handler\",type:\"Function\",validator:function(e){return\"function\"!=typeof e?(en({api:\"off\",param:\"handler\",desc:rn()}),!1):(\"\"===e.name&&en({api:\"off\",param:\"handler\",desc:Mn()}),!0)}}],sendMessage:[t({name:\"message\"},Tn)],setMessageExtensions:[t(t({name:\"message\"},Tn),{},{validator:function(e){return e.status===Qt.SUCCESS&&!0===e.isSupportExtension||(en({api:\"setMessageExtensions\",param:\"message\",desc:yn()}),!1)}}),t({name:\"extensions\"},Cn)],getMessageExtensions:[t(t({name:\"message\"},Tn),{},{validator:function(e){return e.status===Qt.SUCCESS&&!0===e.isSupportExtension||(en({api:\"getMessageExtensions\",param:\"message\",desc:yn()}),!1)}})],deleteMessageExtensions:[t(t({name:\"message\"},Tn),{},{validator:function(e){return e.status===Qt.SUCCESS&&!0===e.isSupportExtension||(en({api:\"deleteMessageExtensions\",param:\"message\",desc:yn()}),!1)}})],getMessageList:{conversationID:t(t({},In),{},{validator:function(e){return $t(e)}}),nextReqMessageID:{type:\"String\"},count:{type:\"Number\",validator:function(e){return!(!at(e)&&!/^[1-9][0-9]*$/.test(e))||(en({api:\"getMessageList\",param:\"count\",desc:pn()}),!1)}}},getMessageListHopping:{conversationID:t(t({},In),{},{validator:function(e){return $t(e)}}),sequence:{type:\"Number\"},time:{type:\"Number\"},direction:{type:\"Number\",validator:function(e){return!(!at(e)&&0!==e&&1!==e)||(en({api:\"getMessageListHopping\",param:\"direction\",desc:Sn(\"0Or1RequiredLog\")}),!1)}},count:{type:\"Number\",validator:function(e){return!(!at(e)&&!/^[1-9][0-9]*$/.test(e))||(en({api:\"getMessageListHopping\",param:\"count\",desc:pn}),!1)}}},setMessageRead:{conversationID:t(t({},In),{},{validator:function(e){return $t(e)}})},setAllMessageRead:{scope:{type:\"String\",required:!1,validator:function(e){return!e||-1!==[S.READ_ALL_C2C_MSG,S.READ_ALL_GROUP_MSG,S.READ_ALL_MSG].indexOf(e)||(en({api:\"setAllMessageRead\",param:\"scope\",desc:\"TIM.TYPES.READ_ALL_C2C_MSG or TIM.TYPES.READ_ALL_GROUP_MSG or TIM.TYPES.READ_ALL_MSG required\"}),!1)}}},getConversationProfile:[t(t({name:\"conversationID\"},In),{},{validator:function(e){return $t(e)}})],clearHistoryMessage:[t(t({name:\"conversationID\"},In),{},{validator:function(e){return $t(e)}})],pinConversation:{conversationID:t(t({},In),{},{validator:function(e){return $t(e)}}),isPinned:t({},Dn)},setConversationCustomData:{conversationIDList:t({},Cn),customData:{type:\"String\",validator:function(e){return et(e)?!(e.length>256)||(en({api:\"setConversationCustomData\",param:\"customData\",desc:dn(\"customData\",256)}),!1):(en({api:\"setConversationCustomData\",param:\"customData\",desc:tn()}),!1)}}},markConversation:{conversationIDList:t({},Cn),markType:{type:\"number\",validator:function(e){return $e(e)?e<=0?(en({api:\"markConversation\",param:\"markType\",desc:(t=\"markType\",n=0,Sn(\"NumberGreaterThanLog\",t,n))}),!1):!(e>=Math.pow(2,64))||(en({api:\"markConversation\",param:\"markType\",desc:gn(\"markType\",\"Math.pow(2,64)\")}),!1):(en({api:\"markConversation\",param:\"markType\",desc:on()}),!1);var t,n}},enableMark:t({},Dn)},createConversationGroup:{conversationIDList:t({},Cn),groupName:t(t({},In),{},{validator:function(e){return!!e&&(!(e.length>32)||(en({api:\"createConversationGroup\",param:\"groupName\",desc:dn(\"groupName\",32)}),!1))}})},deleteConversationGroup:[t({name:\"groupName\"},In)],renameConversationGroup:{oldName:t({},In),newName:t(t({},In),{},{validator:function(e){return!!e&&(!(e.length>32)||(en({api:\"renameConversationGroup\",param:\"newName\",desc:dn(\"newName\",32)}),!1))}})},addConversationsToGroup:{conversationIDList:t({},Cn),groupName:t({},In)},deleteConversationsFromGroup:{conversationIDList:t({},Cn),groupName:t({},In)},getGroupList:{groupProfileFilter:{type:\"Array\"}},getGroupProfile:{groupID:In,groupCustomFieldFilter:{type:\"Array\"},memberCustomFieldFilter:{type:\"Array\"}},getGroupProfileAdvance:{groupIDList:Cn},createGroup:{name:In},joinGroup:{groupID:In,type:{type:\"String\"},applyMessage:{type:\"String\"}},quitGroup:[t({name:\"groupID\"},In)],handleApplication:{message:Tn,handleAction:In,handleMessage:{type:\"String\"}},changeGroupOwner:{groupID:In,newOwnerID:In},updateGroupProfile:{groupID:In,muteAllMembers:{type:\"Boolean\"}},dismissGroup:[t({name:\"groupID\"},In)],searchGroupByID:[t({name:\"groupID\"},In)],initGroupAttributes:{groupID:In,groupAttributes:t(t({},Tn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!et(e[n]))return en({api:\"initGroupAttributes\",param:\"groupAttributes\",desc:_n(\"value\")}),t=!1})),t}})},setGroupAttributes:{groupID:In,groupAttributes:t(t({},Tn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!et(e[n]))return en({api:\"setGroupAttributes\",param:\"groupAttributes\",desc:_n(\"value\")}),t=!1})),t}})},deleteGroupAttributes:{groupID:In,keyList:{type:\"Array\",validator:function(e){if(at(e)||!st(e))return en({api:\"deleteGroupAttributes\",param:\"keyList\",desc:un()}),!1;if(!jt(e)){var t=!0;return e.forEach((function(e){if(!et(e))return en({api:\"deleteGroupAttributes\",param:\"keyList\",desc:Sn(\"StringArrayRequiredLog\")}),t=!1})),t}return!0}}},getGroupAttributes:{groupID:In,keyList:{type:\"Array\",validator:function(e){if(at(e)||!st(e))return en({api:\"getGroupAttributes\",param:\"keyList\",desc:un()}),!1;if(!jt(e)){var t=!0;return e.forEach((function(e){if(!et(e))return en({api:\"getGroupAttributes\",param:\"keyList\",desc:_n(\"key\")}),t=!1})),t}return!0}}},setGroupCounters:{groupID:In,counters:Tn},increaseGroupCounter:{groupID:In,key:In,value:En},decreaseGroupCounter:{groupID:In,key:In,value:En},getGroupCounters:{groupID:In},getGroupMemberList:{groupID:In,count:{type:\"Number\"}},getGroupMemberProfile:{groupID:In,userIDList:Cn,memberCustomFieldFilter:{type:\"Array\"}},addGroupMember:{groupID:In,userIDList:Cn},setGroupMemberRole:{groupID:In,userID:In,role:In},setGroupMemberMuteTime:{groupID:In,userID:In,muteTime:{type:\"Number\",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:In,userID:{type:\"String\"},nameCard:{type:\"String\",validator:function(e){return et(e)?(e.length,!0):(en({api:\"setGroupMemberNameCard\",param:\"nameCard\",desc:tn()}),!1)}}},setGroupMemberCustomField:{groupID:In,userID:{type:\"String\"},memberCustomField:Cn},deleteGroupMember:{groupID:In},markGroupMemberList:{groupID:In,markType:{type:\"number\",validator:function(e){return $e(e)?!(e<1e3)||(en({api:\"markGroupMemberList\",param:\"markType\",desc:(t=\"markType\",n=1e3,Sn(\"NumberGreaterOrEqualLog\",t,n))}),!1):(en({api:\"markGroupMemberList\",param:\"markType\",desc:on()}),!1);var t,n}},userIDList:t({},Cn),enableMark:t({},Dn)},createTextMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){return ot(e)?et(e.text)?0!==e.text.length||(en({api:\"createTextMessage\",param:\"payload.text\",desc:fn()}),!1):(en({api:\"createTextMessage\",param:\"payload.text\",desc:tn()}),!1):(en({api:\"createTextMessage\",param:\"payload\",desc:hn()}),!1)}})},createTextAtMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){return ot(e)?et(e.text)?0===e.text.length?(en({api:\"createTextAtMessage\",param:\"payload.text\",desc:fn()}),!1):!(e.atUserList&&!st(e.atUserList))||(en({api:\"createTextAtMessage\",param:\"payload.atUserList\",desc:un()}),!1):(en({api:\"createTextAtMessage\",param:\"payload.text\",desc:tn()}),!1):(en({api:\"createTextAtMessage\",param:\"payload\",desc:hn()}),!1)}})},createCustomMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){return ot(e)?e.data&&!et(e.data)?(en({api:\"createCustomMessage\",param:\"payload.data\",desc:tn()}),!1):e.description&&!et(e.description)?(en({api:\"createCustomMessage\",param:\"payload.description\",desc:tn()}),!1):!(e.extension&&!et(e.extension))||(en({api:\"createCustomMessage\",param:\"payload.extension\",desc:tn()}),!1):(en({api:\"createCustomMessage\",param:\"payload\",desc:hn()}),!1)}})},createImageMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){if(!ot(e))return en({api:\"createImageMessage\",param:\"payload\",desc:hn()}),!1;if(at(e.file))return en({api:\"createImageMessage\",param:\"payload.file\",desc:sn()}),!1;if(ae){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&\"undefined\"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(en({api:\"createImageMessage\",param:\"payload.file\",desc:vn()}),!1):(en({api:\"createImageMessage\",param:\"payload.file\",desc:an()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return en({api:\"createImageMessage\",param:\"payload.file\",desc:vn()}),!1}return!0},onProgress:{type:\"Function\",required:!1,validator:function(e){return at(e)&&en({api:\"createImageMessage\",param:\"onProgress\",desc:ln()}),!0}}})},createAudioMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){return!!ot(e)||(en({api:\"createAudioMessage\",param:\"payload\",desc:hn()}),!1)}}),onProgress:{type:\"Function\",required:!1,validator:function(e){return at(e)&&en({api:\"createAudioMessage\",param:\"onProgress\",desc:ln()}),!0}}},createVideoMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){if(!ot(e))return en({api:\"createVideoMessage\",param:\"payload\",desc:hn()}),!1;if(at(e.file))return en({api:\"createVideoMessage\",param:\"payload.file\",desc:sn()}),!1;if(ae){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&\"undefined\"!=typeof uni?!!Ze(e.file.tempFile)||(en({api:\"createVideoMessage\",param:\"payload.file\",desc:vn()}),!1):(en({api:\"createVideoMessage\",param:\"payload.file\",desc:an()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return en({api:\"createVideoMessage\",param:\"payload.file\",desc:vn()}),!1}return!0}}),onProgress:{type:\"Function\",required:!1,validator:function(e){return at(e)&&en({api:\"createVideoMessage\",param:\"onProgress\",desc:ln()}),!0}}},createFaceMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){return ot(e)?$e(e.index)?!!et(e.data)||(en({api:\"createFaceMessage\",param:\"payload.data\",desc:tn()}),!1):(en({api:\"createFaceMessage\",param:\"payload.index\",desc:on()}),!1):(en({api:\"createFaceMessage\",param:\"payload\",desc:hn()}),!1)}})},createFileMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){if(!ot(e))return en({api:\"createFileMessage\",param:\"payload\",desc:hn()}),!1;if(at(e.file))return en({api:\"createFileMessage\",param:\"payload.file\",desc:sn()}),!1;if(ae){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&\"undefined\"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(en({api:\"createFileMessage\",param:\"payload.file\",desc:vn()}),!1):(en({api:\"createFileMessage\",param:\"payload.file\",desc:an()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return en({api:\"createFileMessage\",param:\"payload.file\",desc:vn()}),!1}return!0}}),onProgress:{type:\"Function\",required:!1,validator:function(e){return at(e)&&en({api:\"createFileMessage\",param:\"onProgress\",desc:ln()}),!0}}},createLocationMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){return ot(e)?et(e.description)?$e(e.longitude)?!!$e(e.latitude)||(en({api:\"createLocationMessage\",param:\"payload.latitude\",desc:on()}),!1):(en({api:\"createLocationMessage\",param:\"payload.longitude\",desc:on()}),!1):(en({api:\"createLocationMessage\",param:\"payload.description\",desc:tn()}),!1):(en({api:\"createLocationMessage\",param:\"payload\",desc:hn()}),!1)}})},createMergerMessage:{to:In,conversationType:In,payload:t(t({},Tn),{},{validator:function(e){if(jt(e.messageList))return en({api:\"createMergerMessage\",param:\"payload.messageList\",desc:cn()}),!1;if(jt(e.compatibleText))return en({api:\"createMergerMessage\",param:\"payload.compatibleText\",desc:nn(\"compatibleText\")}),!1;var t=!1;return e.messageList.forEach((function(e){e.status===Qt.FAIL&&(t=!0)})),!t||(en({api:\"createMergerMessage\",param:\"payload.messageList\",desc:Sn(\"MergeFailedMessageLog\")}),!1)}})},revokeMessage:[t(t({name:\"message\"},Tn),{},{validator:function(e){return jt(e)?(en({api:\"revokeMessage\",param:\"message\",desc:mn()}),!1):e.conversationType===S.CONV_SYSTEM?(en({api:\"revokeMessage\",param:\"message\",desc:Sn(\"MessageCanBeRevokedDesc\")}),!1):!0!==e.isRevoked||(en({api:\"revokeMessage\",param:\"message\",desc:Sn(\"MessageRevokedLog\")}),!1)}})],deleteMessage:[t(t({name:\"messageList\"},Cn),{},{validator:function(e){return!jt(e)||(en({api:\"deleteMessage\",param:\"messageList\",desc:cn()}),!1)}})],translateText:{sourceTextList:Cn,sourceLanguage:In,targetLanguage:In},modifyMessage:[t(t({name:\"message\"},Tn),{},{validator:function(e){return jt(e)?(en({api:\"modifyMessage\",param:\"message\",desc:mn()}),!1):e.conversationType===S.CONV_SYSTEM?(en({api:\"modifyMessage\",param:\"message\",desc:Sn(\"MessageCanBeModifiedLog\")}),!1):!0!==e._onlineOnlyFlag||(en({api:\"modifyMessage\",param:\"message\",desc:Sn(\"OnlineMessageNotSupportLog\")}),!1)}})],getUserProfile:{userIDList:{type:\"Array\",validator:function(e){return st(e)?(0===e.length&&en({api:\"getUserProfile\",param:\"userIDList\",desc:cn()}),!0):(en({api:\"getUserProfile\",param:\"userIDList\",desc:un()}),!1)}}},updateMyProfile:{profileCustomField:{type:\"Array\",validator:function(e){return!!at(e)||(!!st(e)||(en({api:\"updateMyProfile\",param:\"profileCustomField\",desc:un()}),!1))}}},setSelfStatus:{customStatus:{type:\"String\",validator:function(e){return!!et(e)||(en({api:\"setSelfStatus\",param:\"customStatus\",desc:tn()}),!1)}}},getUserStatus:{userIDList:{type:\"Array\",validator:function(e){return st(e)?0!==e.length||(en({api:\"getUserStatus\",param:\"userIDList\",desc:cn()}),!1):(en({api:\"getUserStatus\",param:\"userIDList\",desc:un()}),!1)}}},subscribeUserStatus:{userIDList:{type:\"Array\",validator:function(e){return st(e)?0!==e.length||(en({api:\"subscribeUserStatus\",param:\"userIDList\",desc:cn()}),!1):(en({api:\"subscribeUserStatus\",param:\"userIDList\",desc:un()}),!1)}}},unsubscribeUserStatus:{userIDList:{type:\"Array\",validator:function(e){return!e||(!!st(e)||(en({api:\"subscribeUserStatus\",param:\"userIDList\",desc:un()}),!1))}}},addFriend:{to:In,source:{type:\"String\",required:!0,validator:function(e){return!!e&&(e.startsWith(\"AddSource_Type_\")?!(e.replace(\"AddSource_Type_\",\"\").length>8)||(en({api:\"addFriend\",param:\"source\",desc:dn(\"keyword\",8)}),!1):(en({api:\"addFriend\",param:\"source\",desc:Sn(\"SourcePrefixLog\")}),!1))}},remark:{type:\"String\",required:!1,validator:function(e){return!(et(e)&&e.length>96)||(en({api:\"addFriend\",param:\"remark\",desc:dn(\"remark\",96)}),!1)}}},deleteFriend:{userIDList:Cn},checkFriend:{userIDList:Cn},getFriendProfile:{userIDList:Cn},updateFriend:{userID:In,remark:{type:\"String\",required:!1,validator:function(e){return!(et(e)&&e.length>96)||(en({api:\"updateFriend\",param:\"remark\",desc:dn(\"remark\",96)}),!1)}},friendCustomField:{type:\"Array\",required:!1,validator:function(e){if(e){if(!st(e))return en({api:\"updateFriend\",param:\"friendCustomField\",desc:un()}),!1;var t=!0;return e.forEach((function(e){return et(e.key)&&-1!==e.key.indexOf(\"Tag_SNS_Custom\")?et(e.value)?e.key.replace(\"Tag_SNS_Custom_\",\"\").length>8?(en({api:\"updateFriend\",param:\"friendCustomField\",desc:dn(\"keyword\",8)}),t=!1):void 0:(en({api:\"updateFriend\",param:\"friendCustomField\",desc:_n(\"value\")}),t=!1):(en({api:\"updateFriend\",param:\"friendCustomField\",desc:Sn(\"FriendCustomFieldPrefixLog\")}),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:In},refuseFriendApplication:{userID:In},deleteFriendApplication:{userID:In},createFriendGroup:{name:In},deleteFriendGroup:{name:In},addToFriendGroup:{name:In,userIDList:Cn},removeFromFriendGroup:{name:In,userIDList:Cn},renameFriendGroup:{oldName:In,newName:In},sendMessageReadReceipt:[{name:\"messageList\",type:\"Array\",validator:function(e){return st(e)?0!==e.length||(en({api:\"sendMessageReadReceipt\",param:\"messageList\",desc:cn()}),!1):(en({api:\"sendMessageReadReceipt\",param:\"messageList\",desc:un()}),!1)}}],getMessageReadReceiptList:[{name:\"messageList\",type:\"Array\",validator:function(e){return st(e)?0!==e.length||(en({api:\"getMessageReadReceiptList\",param:\"messageList\",desc:cn()}),!1):(en({api:\"getMessageReadReceiptList\",param:\"messageList\",desc:un()}),!1)}}],createTopicInCommunity:{groupID:In,topicName:In},deleteTopicFromCommunity:{groupID:In,topicIDList:{type:\"Array\",validator:function(e){return!e||(!!st(e)||(en({api:\"deleteTopicFromCommunity\",param:\"topicIDList\",desc:un()}),!1))}}},updateTopicProfile:{groupID:In,topicID:In},getTopicList:{groupID:In,topicIDList:{type:\"Array\",validator:function(e){return!e||(!!st(e)||(en({api:\"getTopicList\",param:\"topicIDList\",desc:un()}),!1))}}}},Ln={login:1,logout:1,on:1,once:1,off:1,setLogLevel:1,registerPlugin:1,destroy:1,createTextMessage:1,createTextAtMessage:1,createImageMessage:1,createAudioMessage:1,createVideoMessage:1,createCustomMessage:1,createFaceMessage:1,createFileMessage:1,createLocationMessage:1,createMergerMessage:1,downloadMergerMessage:1,createForwardMessage:1,sendMessage:1,resendMessage:1,revokeMessage:1,deleteMessage:1,translateText:1,modifyMessage:1,sendMessageReadReceipt:1,getGroupMessageReadMemberList:1,getMessageReadReceiptList:1,setMessageExtensions:1,getMessageExtensions:1,deleteMessageExtensions:1,getMessageList:1,findMessage:1,getMessageListHopping:1,setMessageRead:1,setAllMessageRead:1,getConversationList:1,getConversationProfile:1,deleteConversation:1,pinConversation:1,getTotalUnreadMessageCount:1,setConversationCustomData:1,markConversation:1,createConversationGroup:1,getConversationGroupList:1,deleteConversationGroup:1,renameConversationGroup:1,addConversationsToGroup:1,deleteConversationsFromGroup:1,clearHistoryMessage:1,getGroupList:1,getGroupProfile:1,createGroup:1,joinGroup:1,updateGroupProfile:1,quitGroup:1,dismissGroup:1,changeGroupOwner:1,searchGroupByID:1,setMessageRemindType:1,getGroupApplicationList:1,handleGroupApplication:1,initGroupAttributes:1,setGroupAttributes:1,deleteGroupAttributes:1,getGroupAttributes:1,setGroupCounters:1,increaseGroupCounter:1,decreaseGroupCounter:1,getGroupCounters:1,getJoinedCommunityList:1,createTopicInCommunity:1,deleteTopicFromCommunity:1,updateTopicProfile:1,getTopicList:1,getGroupMemberProfile:1,getGroupMemberList:1,addGroupMember:1,deleteGroupMember:1,setGroupMemberNameCard:1,setGroupMemberMuteTime:1,setGroupMemberRole:1,setGroupMemberCustomField:1,getGroupOnlineMemberCount:1,markGroupMemberList:1,getMyProfile:1,getUserProfile:1,updateMyProfile:1,setSelfStatus:1,getUserStatus:1,subscribeUserStatus:1,unsubscribeUserStatus:1,getBlacklist:1,addToBlacklist:1,removeFromBlacklist:1,getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,updateFriend:1,getFriendProfile:1,getFriendApplicationList:1,refuseFriendApplication:1,deleteFriendApplication:1,acceptFriendApplication:1,setFriendApplicationRead:1,getFriendGroupList:1,createFriendGroup:1,renameFriendGroup:1,deleteFriendGroup:1,addToFriendGroup:1,removeFromFriendGroup:1,callExperimentalAPI:1},An=1,Rn=2,Nn=3,On=4,Gn=6,Un=7,Pn=8,bn=9,wn=10,Fn=11,qn=12,xn=13,Vn=14,Bn=15,Hn=16,Kn=17,Wn=18,Yn=19,jn=20,zn=21,Jn=22,Xn=23,Qn=24,Zn=25,$n=26,eo=27,to=28,no=29,oo=30,so=31,ao=32,ro=function(){function e(t){o(this,e),this._m=t,this._n=\"\"}return a(e,[{key:\"isLoggedIn\",value:function(){return this._m.getModule(qn).isLoggedIn()}},{key:\"isOversea\",value:function(){return this._m.getModule(qn).isOversea()}},{key:\"isPrivateNetWork\",value:function(){return this._m.getModule(qn).isPrivateNetWork()}},{key:\"getFileDownloadProxy\",value:function(){return this._m.getModule(qn).getFileDownloadProxy()}},{key:\"getMyUserID\",value:function(){return this._m.getModule(qn).getUserID()}},{key:\"getMyTinyID\",value:function(){return this._m.getModule(qn).getTinyID()}},{key:\"getSDKAppID\",value:function(){return this._m.getModule(qn).getSDKAppID()}},{key:\"isIntl\",value:function(){return this._m.getModule(qn).isIntl()}},{key:\"isDevMode\",value:function(){return this._m.getModule(qn).isDevMode()}},{key:\"getModule\",value:function(e){return this._m.getModule(e)}},{key:\"getPlatform\",value:function(){return de}},{key:\"getNetworkType\",value:function(){return this._m.getModule(Bn).getNetworkType()}},{key:\"probeNetwork\",value:function(e){return this._m.getModule(Bn).probe(e)}},{key:\"getCloudConfig\",value:function(e){return this._m.getModule(Xn).getCloudConfig(e)}},{key:\"emitOuterEvent\",value:function(e,t){this._m.getOuterEmitterInstance().emit(e,t)}},{key:\"emitInnerEvent\",value:function(e,t){this._m.getInnerEmitterInstance().emit(e,t)}},{key:\"getInnerEmitterInstance\",value:function(){return this._m.getInnerEmitterInstance()}},{key:\"generateTjgID\",value:function(e){return this._m.getModule(qn).getTinyID()+\"-\"+e.random}},{key:\"filterModifiedMessage\",value:function(e){if(!jt(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(E.MESSAGE_MODIFIED,t)}}},{key:\"filterUnmodifiedMessage\",value:function(e){return jt(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:\"request\",value:function(e){return this._m.getModule(jn).request(e)}},{key:\"canIUse\",value:function(e){return this._m.getModule(eo).canIUse(e)}},{key:\"getErrorMessage\",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:\"outputWarning\",value:function(e,t,n){var o=this.getErrorMessage(e,t,n);o&&xe.w(o)}}]),e}(),io=\"wslogin\",uo=\"wslogout\",co=\"wshello\",lo=\"KickOther\",po=\"getmsg\",go=\"authkey\",_o=\"sendmsg\",ho=\"send_group_msg\",fo=\"portrait_get_all\",vo=\"portrait_set\",mo=\"black_list_get\",Mo=\"black_list_add\",yo=\"black_list_delete\",Io=\"msgwithdraw\",Co=\"msgreaded\",To=\"set_c2c_peer_mute_notifications\",Do=\"get_c2c_peer_mute_notifications\",Eo=\"getroammsg\",So=\"get_peer_read_time\",ko=\"delete_c2c_msg_ramble\",Lo=\"modify_c2c_msg\",Ao=\"set_key_values\",Ro=\"get_key_values\",No=\"page_get\",Oo=\"get\",Go=\"batch_delete\",Uo=\"clear_msg\",Po=\"top\",bo=\"deletemsg\",wo=\"set_conv_custom_data\",Fo=\"mark_contact\",qo=\"create_contact_group\",xo=\"del_contact_group\",Vo=\"update_contact_group\",Bo=\"add_conv_to_group\",Ho=\"del_conv_from_group\",Ko=\"get_contact_group\",Wo=\"get_joined_group_list\",Yo=\"get_group_self_member_info\",jo=\"create_group\",zo=\"destroy_group\",Jo=\"modify_group_base_info\",Xo=\"apply_join_group\",Qo=\"apply_join_group_noauth\",Zo=\"quit_group\",$o=\"get_group_public_info\",es=\"change_group_owner\",ts=\"handle_apply_join_group\",ns=\"handle_invite_join_permission_group\",os=\"handle_invite_join_group\",ss=\"group_msg_recall\",as=\"msg_read_report\",rs=\"read_all_unread_msg\",is=\"group_msg_get\",us=\"get_group_msg_receipt\",cs=\"group_msg_receipt\",ls=\"c2c_msg_read_receipt\",ps=\"get_group_msg_receipt_detail\",ds=\"get_pendency\",gs=\"deletemsg\",_s=\"get_msg\",hs=\"get_msg_noauth\",fs=\"get_online_member_num\",vs=\"delete_group_ramble_msg_by_seq\",ms=\"modify_group_msg\",Ms=\"set_group_attr\",ys=\"modify_group_attr\",Is=\"delete_group_attr\",Cs=\"clear_group_attr\",Ts=\"get_group_attr\",Ds=\"group_set_key_values\",Es=\"group_get_key_values\",Ss=\"get_group_notify\",ks=\"update_group_counter\",Ls=\"get_group_counter\",As=\"get_group_member_info\",Rs=\"get_members\",Ns=\"get_specified_group_member_info\",Os=\"add_group_member\",Gs=\"delete_group_member\",Us=\"ban_group_member\",Ps=\"modify_group_member_info\",bs=\"modify_user_info\",ws=\"cos\",Fs=\"pre_sig\",qs=\"video_cover\",xs=\"tim_web_report_v2\",Vs=\"alive\",Bs=\"msg_push\",Hs=\"multi_msg_push_ws\",Ks=\"ws_msg_push_ack\",Ws=\"stat_forceoffline\",Ys=\"save_relay_json_msg\",js=\"get_relay_json_msg\",zs=\"fetch_config\",Js=\"push_configv2\",Xs=\"fetch_imsdk_purchase_bitsv2\",Qs=\"push_imsdk_purchase_bitsv2\",Zs=\"notify2\",$s=\"create_topic\",ea=\"destroy_topic\",ta=\"modify_topic\",na=\"get_topic\",oa=\"ws_set_custom_status\",sa=\"ws_get_user_status\",aa=\"ws_status_subscribe\",ra=\"ws_status_unsubscribe\",ia=\"ws_stat_background\",ua=\"ws_stat_foreground\",ca=\"ws_stat_settoken\",la=\"get_local_words\",pa=\"ws_batch_trans_text\",da={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM:2101,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,READ_RECEIPT_MESSAGE_LIST_EMPTY:2114,MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL:2115,CANNOT_DELETE_GROUP_SYSTEM_NOTICE:2116,TRANSLATE_TEXT_FAIL:2117,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_MODIFY_CONFLICT:2480,MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM:2481,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,INVALID_CONVERSATION_ID:2503,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_FIND_GROUP:2603,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_WORK:2622,MEMBER_NOT_IN_GROUP:2623,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,BAN_DURATION_INVALID:2686,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,CANNOT_ADD_SELF_TO_BLACKLIST:2742,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NO_NETWORK:2805,UNCAUGHT_ERROR:2903,INVALID_OPERATION:2905,INVALID_TRTC_CMD:2995,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,KICKED_OUT_REST_API:3006,ILLEGAL_TOPIC_ID:3021,CANNOT_USE_COMMERCIAL_ABILITY:3122,PROFANITY_FOUND:3123,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},ga=\"networkRTT\",_a=\"messageE2EDelay\",ha=\"sendMessageC2C\",fa=\"sendMessageGroup\",va=\"sendMessageGroupAV\",ma=\"sendMessageRichMedia\",Ma=\"cosUpload\",ya=\"messageReceivedGroup\",Ia=\"messageReceivedGroupAVPush\",Ca=\"messageReceivedGroupAVPull\",Ta=(r(Xt={},ga,2),r(Xt,_a,3),r(Xt,ha,4),r(Xt,fa,5),r(Xt,va,6),r(Xt,ma,7),r(Xt,ya,8),r(Xt,Ia,9),r(Xt,Ca,10),r(Xt,Ma,11),Xt),Da={info:4,warning:5,error:6},Ea={wifi:1,\"2g\":2,\"3g\":3,\"4g\":4,\"5g\":5,unknown:6,none:7,online:8},Sa={login:4},ka=function(){function e(t){o(this,e),this._n=\"SSOLogData\",this.eventType=Sa[t]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message=\"\",this.moreMessage=\"\",this.extension=t,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=Ue()}return a(e,[{key:\"updateTimeStamp\",value:function(){this.timestamp=Ue()}},{key:\"start\",value:function(e){return this._startts=e,this}},{key:\"end\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=Ue();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage(\"startts:\".concat(this._startts,\" endts:\").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:\"setError\",value:function(e,t,n){if(!(e instanceof Error))return xe.w(\"\".concat(this._n,\".setError value not instanceof Error, please check!\")),this;if(this._sentFlag)return this;if(this.setNetworkType(n),t)e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message);else{var o=da.NO_NETWORK;this.setCode(o)}return this.setLevel(\"error\"),this}},{key:\"setCode\",value:function(e){return at(e)||this._sentFlag||(\"ECONNABORTED\"===e&&(this.code=103),$e(e)?this.code=e:xe.w(\"\".concat(this._n,\".setCode value not a number, please check!\"),e,n(e))),this}},{key:\"setMessage\",value:function(e){return at(e)||this._sentFlag||($e(e)&&(this.message=e.toString()),et(e)&&(this.message=e)),this}},{key:\"setCostTime\",value:function(e){return this.costTime=e,this}},{key:\"setLevel\",value:function(e){return at(e)||this._sentFlag||(this.level=Da[e]),this}},{key:\"setMoreMessage\",value:function(e){return jt(this.moreMessage)?this.moreMessage=\"\".concat(e):this.moreMessage+=\" \".concat(e),this}},{key:\"setNetworkType\",value:function(e){if(at(e))xe.w(\"\".concat(this._n,\".setNetworkType value is undefined, please check!\"));else{var t=Ea[e.toLowerCase()];at(t)||(this.networkType=t)}return this}},{key:\"getStartTs\",value:function(){return this._startts}},{key:\"setUIPlatform\",value:function(e){this.uiPlatform=e}}],[{key:\"bindEventStatModule\",value:function(t){e.prototype._eventStatModule=t}}]),e}(),La=function(){function e(t){o(this,e),this.type=S.MSG_TEXT,this.content={text:t.text||\"\"}}return a(e,[{key:\"setText\",value:function(e){this.content.text=e}},{key:\"sendable\",value:function(){return 0!==this.content.text.length}}]),e}(),Aa=function(){function e(t,n){o(this,e),this._imageMemoryURL=\"\",this._fileDownloadProxy=n,se?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=S.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||Ve.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._autoFixUrl()}return a(e,[{key:\"_initImageInfoModel\",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=_t(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||\"\",this.url=Wt(t.url||e._imageMemoryURL,e._fileDownloadProxy)},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:\"initImageInfoArray\",value:function(e){for(var t=0,n=null,o=null;t<=2;)o=at(e)||at(e[t])?{type:0,size:0,width:0,height:0,url:\"\"}:e[t],(n=new this._ImageInfoModel(o)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:\"updateImageInfoArray\",value:function(e){for(var t,n=this.content.imageInfoArray.length,o=0;o<n;o++)t=this.content.imageInfoArray[o],e[o].size&&(t.size=e[o].size),e[o].url&&t.setImageUrl(e[o].url),e[o].width&&(t.width=e[o].width),e[o].height&&(t.height=e[o].height)}},{key:\"_autoFixUrl\",value:function(){for(var e=this.content.imageInfoArray.length,t=\"\",n=\"\",o=[\"http\",\"https\"],s=null,a=0;a<e;a++)this.content.imageInfoArray[a].url&&\"\"!==(s=this.content.imageInfoArray[a]).imageUrl&&(n=s.imageUrl.slice(0,s.imageUrl.indexOf(\"://\")+1),t=s.imageUrl.slice(s.imageUrl.indexOf(\"://\")+1),o.indexOf(n)<0&&(n=\"https:\"),this.content.imageInfoArray[a].setImageUrl([n,t].join(\"\")))}},{key:\"updatePercent\",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:\"updateImageFormat\",value:function(e){this.content.imageFormat=Ve[e.toUpperCase()]||Ve.UNKNOWN}},{key:\"createImageDataASURLInWeb\",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:\"createImageDataASURLInWXMiniApp\",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:\"replaceImageInfo\",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:\"addImageInfo\",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:\"updateAccessSideImageInfoArray\",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,o=void 0===n?0:n,s=t.height,a=void 0===s?0:s;0!==o&&0!==a&&(Ut(e),Object.assign(e[2],Gt({originWidth:o,originHeight:a,min:720})))}},{key:\"sendable\",value:function(){return 0!==this.content.imageInfoArray.length&&(\"\"!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size)}}]),e}(),Ra=function(){function e(t){o(this,e),this.type=S.MSG_FACE,this.content=t||null}return a(e,[{key:\"sendable\",value:function(){return null!==this.content}}]),e}(),Na=function(){function e(t,n){o(this,e),this.type=S.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:Wt(t.url,n),remoteAudioUrl:t.url||\"\",uuid:t.uuid}}return a(e,[{key:\"updatePercent\",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:\"updateAudioUrl\",value:function(e){this.content.remoteAudioUrl=e}},{key:\"sendable\",value:function(){return\"\"!==this.content.remoteAudioUrl}}]),e}(),Oa={from:!0,groupID:!0,groupName:!0,to:!0},Ga=function(){function e(t){o(this,e),this.type=S.MSG_GRP_TIP,this.content={},this._initContent(t)}return a(e,[{key:\"_initContent\",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case\"remarkInfo\":break;case\"groupProfile\":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case\"operatorInfo\":break;case\"memberInfoList\":case\"msgMemberInfo\":t._updateMemberList(e[n]);break;case\"memberExtraInfo\":case\"onlineMemberInfo\":break;case\"memberNum\":t.content[n]=e[n],t.content.memberCount=e[n];break;case\"newGroupProfile\":t.content.newGroupProfile={},t._initNewGroupProfile(e[n]);break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:\"_initGroupProfile\",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var o=t[n];Oa[o]&&(this.content.groupProfile[o]=e[o])}}},{key:\"_updateMemberList\",value:function(e){jt(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}},{key:\"_initNewGroupProfile\",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var o=t[n];\"muteAllMembers\"!==o?this.content.newGroupProfile[o]=e[o]:this.content.newGroupProfile[o]=1===e[o]}}}]),e}(),Ua={from:!0,groupID:!0,groupName:!0,to:!0},Pa=function(){function e(t){o(this,e),this.type=S.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return a(e,[{key:\"_initContent\",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case\"memberInfoList\":break;case\"remarkInfo\":t.content.handleMessage=e[n];break;case\"groupProfile\":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:\"_initGroupProfile\",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var o=t[n];Ua[o]&&(\"groupName\"===o?this.content.groupProfile.name=e[o]:this.content.groupProfile[o]=e[o])}}}]),e}(),ba=function(){function e(t,n){o(this,e),this.type=S.MSG_FILE,this._percent=0;var s=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:Wt(t.url,n)||\"\",uuid:t.uuid,fileName:s.name||\"\",fileSize:s.size||0}}return a(e,[{key:\"_getFileInfo\",value:function(e){if(!at(e.fileName)&&!at(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(ne){if(t.path&&-1!==t.path.indexOf(\".\")){var n=t.path.slice(t.path.lastIndexOf(\".\")+1).toLowerCase();t.type=n,t.name||(t.name=\"\".concat(_t(999999),\".\").concat(n))}t.name||(t.type=\"\",t.name=t.path.slice(t.path.lastIndexOf(\"/\")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:\"updatePercent\",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:\"updateFileUrl\",value:function(e){this.content.fileUrl=e}},{key:\"sendable\",value:function(){return\"\"!==this.content.fileUrl&&(\"\"!==this.content.fileName&&0!==this.content.fileSize)}}]),e}(),wa=function(){function e(t){o(this,e),this.type=S.MSG_CUSTOM,this.content={data:t.data||\"\",description:t.description||\"\",extension:t.extension||\"\"}}return a(e,[{key:\"setData\",value:function(e){return this.content.data=e,this}},{key:\"setDescription\",value:function(e){return this.content.description=e,this}},{key:\"setExtension\",value:function(e){return this.content.extension=e,this}},{key:\"sendable\",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),Fa=function(){function e(t,n){o(this,e),this.type=S.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||\"\",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:Wt(t.videoUrl,n),videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:Wt(t.thumbUrl,n),snapshotUrl:Wt(t.thumbUrl,n)}}return a(e,[{key:\"updatePercent\",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:\"updateVideoUrl\",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:\"updateSnapshotInfo\",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,o=e.snapshotHeight;jt(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),jt(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),jt(o)||(this.content.thumbHeight=this.content.snapshotHeight=Number(o))}},{key:\"sendable\",value:function(){return\"\"!==this.content.remoteVideoUrl}}]),e}(),qa=function(){function e(t){o(this,e),this.type=S.MSG_LOCATION;var n=t.description,s=t.longitude,a=t.latitude;this.content={description:n,longitude:s,latitude:a}}return a(e,[{key:\"sendable\",value:function(){return!0}}]),e}(),xa=function(){function e(t,n){if(o(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||\"\",this.clientTime=t.clientTime||void 0,t.ID)this.ID=t.ID||\"\",this.nick=t.nick||\"\",this.avatar=t.avatar||\"\",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(S.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(S.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||\"\",this.avatar=t.avatar||\"\",this.messageBody=[];var s=t.elements[0].type,a=t.elements[0].content;this._patchRichMediaPayload(s,a),this._updateRichMediaDownloadUrl(s,a,n),s===S.MSG_MERGER?this.messageBody.push({type:s,payload:new Va(a).content}):this.messageBody.push({type:s,payload:a}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to),this.ID=\"\".concat(t.tinyID,\"-\").concat(t.clientTime,\"-\").concat(t.random)}}return a(e,[{key:\"_patchRichMediaPayload\",value:function(e,t){e===S.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===S.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===S.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===S.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}},{key:\"_updateRichMediaDownloadUrl\",value:function(e,t,n){n&&(e===S.MSG_IMAGE?t.imageInfoArray.forEach((function(e){e.url=Wt(e.url,n)})):e===S.MSG_VIDEO?(t.videoUrl=Wt(t.videoUrl,n),t.snapshotUrl=Wt(t.thumbUrl,n),t.snapshotHeight=t.thumbHeight,t.snapshotWidth=t.thumbWidth):e===S.MSG_AUDIO?t.url=Wt(t.url,n):e===S.MSG_FILE&&(t.fileUrl=Wt(t.fileUrl,n)))}}]),e}(),Va=function(){function e(t,n){if(o(this,e),this.type=S.MSG_MERGER,this.content={downloadKey:\"\",pbDownloadKey:\"\",messageList:[],title:\"\",abstractList:[],compatibleText:\"\",version:0,layersOverLimit:!1},t.downloadKey){var s=t.downloadKey,a=t.pbDownloadKey,r=t.title,i=t.abstractList,u=t.compatibleText,c=t.version;this.content.downloadKey=s,this.content.pbDownloadKey=a,this.content.title=r,this.content.abstractList=i,this.content.compatibleText=u,this.content.version=c||0}else if(jt(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var l=t.messageList,p=t.title,d=t.abstractList,g=t.compatibleText,_=t.version,h=[];l.forEach((function(e){if(!jt(e)){var t=new xa(e,n);h.push(t)}})),this.content.messageList=h,this.content.title=p,this.content.abstractList=d,this.content.compatibleText=g,this.content.version=_||0}}return a(e,[{key:\"sendable\",value:function(){return!jt(this.content.messageList)||!jt(this.content.downloadKey)}}]),e}(),Ba={1:S.MSG_PRIORITY_HIGH,2:S.MSG_PRIORITY_NORMAL,3:S.MSG_PRIORITY_LOW,4:S.MSG_PRIORITY_LOWEST},Ha=function(){function e(t){o(this,e),this.ID=\"\",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||S.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:_t(),this.priority=this._computePriority(t.priority),this.nick=t.nick||\"\",this.avatar=t.avatar||\"\",this.isPeerRead=!1,this.nameCard=\"\",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow=\"\",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||\"JSON\",this.isResend=!1,this.isRead=!1,this.status=t.status||Qt.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||\"\",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||be()||0,this.senderTinyID=t.senderTinyID||t.tinyID||\"\",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0,isPeerRead:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.version=t.messageVersion||0,this.isBroadcastMessage=t.isBroadcastMessage||!1,this._receiverList=t.receiverList||void 0,this.isSupportExtension=!0===t.isSupportExtension||1===t.isSupportExtension,this.revoker=t.revokerInfo&&t.revokerInfo.revoker||null,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t),this.initC2CReadReceiptInfo(t.readReceiptSentByPeer)}return a(e,[{key:\"elements\",get:function(){return this._elements}},{key:\"getElements\",value:function(){return this._elements}},{key:\"extractGroupInfo\",value:function(e){if(null!==e){et(e.nick)&&(this.nick=e.nick),et(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;ot(t)&&et(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:\"handleGroupAtInfo\",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==S.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(S.MSG_AT_ALL))})),st(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(S.MSG_AT_ALL)}))}},{key:\"getGroupAtInfoList\",value:function(){return this._groupAtInfoList}},{key:\"_initProxy\",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:\"reInitialize\",value:function(e){e&&(this.status=this.from?Qt.SUCCESS:Qt.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:\"isSendable\",value:function(){return 0!==this._elements.length&&(\"function\"==typeof this._elements[0].sendable&&this._elements[0].sendable())}},{key:\"_initTo\",value:function(e){this.conversationType===S.CONV_GROUP&&(this.to=e.groupID)}},{key:\"_initSequence\",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return!1;if(void 0===mt[e]){var t=new Date,n=\"3\".concat(t.getHours()).slice(-2),o=\"0\".concat(t.getMinutes()).slice(-2),s=\"0\".concat(t.getSeconds()).slice(-2);mt[e]=parseInt([n,o,s,\"0001\"].join(\"\")),n=null,o=null,s=null,xe.l(\"autoIncrementIndex start index:\".concat(mt[e]))}return mt[e]++}(e)),0===this.sequence&&this.conversationType===S.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:\"generateMessageID\",value:function(){this.from===S.CONV_SYSTEM&&(this.senderTinyID=\"144115198244471703\"),this.ID=\"\".concat(this.senderTinyID,\"-\").concat(this.clientTime,\"-\").concat(this.random)}},{key:\"_initFlow\",value:function(e){\"\"!==e&&(e===this.from?(this.flow=\"out\",this.isRead=!0):this.flow=\"in\")}},{key:\"_concatConversationID\",value:function(e){var t=this.to,n=\"\",o=this.conversationType;o!==S.CONV_SYSTEM?(n=o===S.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID=n?\"\".concat(o).concat(n):null):this.conversationID=S.CONV_SYSTEM}},{key:\"isElement\",value:function(e){return e instanceof La||e instanceof Aa||e instanceof Ra||e instanceof Na||e instanceof ba||e instanceof Fa||e instanceof Ga||e instanceof Pa||e instanceof wa||e instanceof qa||e instanceof Va}},{key:\"setElement\",value:function(e,t){var n=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var o=function(e){if(e.type&&e.content)switch(e.type){case S.MSG_TEXT:n.setTextElement(e.content);break;case S.MSG_IMAGE:n.setImageElement(e.content,t);break;case S.MSG_AUDIO:n.setAudioElement(e.content,t);break;case S.MSG_FILE:n.setFileElement(e.content,t);break;case S.MSG_VIDEO:n.setVideoElement(e.content,t);break;case S.MSG_CUSTOM:n.setCustomElement(e.content);break;case S.MSG_LOCATION:n.setLocationElement(e.content);break;case S.MSG_GRP_TIP:n.setGroupTipElement(e.content);break;case S.MSG_GRP_SYS_NOTICE:n.setGroupSystemNoticeElement(e.content);break;case S.MSG_FACE:n.setFaceElement(e.content);break;case S.MSG_MERGER:n.setMergerElement(e.content,t)}};if(st(e))for(var s=0;s<e.length;s++)o(e[s]);else o(e);this._initProxy()}},{key:\"clearElement\",value:function(){this._elements.length=0}},{key:\"setTextElement\",value:function(e){var t=\"string\"==typeof e?e:e.text,n=new La({text:t});this._elements.push(n)}},{key:\"setImageElement\",value:function(e,t){var n=new Aa(e,t);this._elements.push(n)}},{key:\"setAudioElement\",value:function(e,t){var n=new Na(e,t);this._elements.push(n)}},{key:\"setFileElement\",value:function(e,t){var n=new ba(e,t);this._elements.push(n)}},{key:\"setVideoElement\",value:function(e,t){var n=new Fa(e,t);this._elements.push(n)}},{key:\"setLocationElement\",value:function(e){var t=new qa(e);this._elements.push(t)}},{key:\"setCustomElement\",value:function(e){var t=new wa(e);this._elements.push(t)}},{key:\"setGroupTipElement\",value:function(e){var t={},n=e.operationType;if(jt(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==S.GRP_TIP_MBR_JOIN&&n!==S.GRP_TIP_MBR_KICKED_OUT&&n!==S.GRP_TIP_MBR_SET_ADMIN&&n!==S.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]),!jt(e.memberExtraInfo)){var o=e.memberExtraInfo.reason;e.msgMemberInfo.forEach((function(e){e.reason=o}))}var s=t,a=s.nick,r=s.avatar;et(a)&&(this.nick=a),et(r)&&(this.avatar=r);var i=new Ga(e);this._elements.push(i)}},{key:\"setGroupSystemNoticeElement\",value:function(e){var t=new Pa(e);this._elements.push(t)}},{key:\"setFaceElement\",value:function(e){var t=new Ra(e);this._elements.push(t)}},{key:\"setMergerElement\",value:function(e,t){var n=new Va(e,t);this._elements.push(n)}},{key:\"setIsRead\",value:function(e){this.isRead=e}},{key:\"setRelayFlag\",value:function(e){this._relayFlag=e}},{key:\"getRelayFlag\",value:function(){return this._relayFlag}},{key:\"_computePriority\",value:function(e){if(at(e))return S.MSG_PRIORITY_NORMAL;if(et(e)&&-1!==Object.values(Ba).indexOf(e))return e;if($e(e)){var t=\"\"+e;if(-1!==Object.keys(Ba).indexOf(t))return Ba[t]}return S.MSG_PRIORITY_NORMAL}},{key:\"setNickAndAvatar\",value:function(e){var t=e.nick,n=e.avatar;et(t)&&(this.nick=t),et(n)&&(this.avatar=n)}},{key:\"setNameCard\",value:function(e){et(e)&&(this.nameCard=e)}},{key:\"initC2CReadReceiptInfo\",value:function(e){this.conversationType===S.CONV_C2C&&!0===this.needReadReceipt&&(this.readReceiptInfo.isPeerRead=1===e)}}]),e}(),Ka=function(e){return{code:0,data:e||{}}},Wa=function(e){i(n,e);var t=f(n);function n(e){var s;o(this,n),s=t.call(this);var a=e.code,r=e.message,i=e.data;return s.code=a,s.message=r||s._getErrorMessage(s.code),s.data=i||{},s}return a(n)}(d(Error)),Ya=null,ja=function(e){Ya=e},za=function(e){return Promise.resolve(Ka(e))},Ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof Wa)return t&&null!==Ya&&Ya.emit(E.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new Wa({code:da.UNCAUGHT_ERROR});return t&&null!==Ya&&Ya.emit(E.ERROR,n),Promise.reject(n)}if(!at(e)&&!at(e.code)){var o=new Wa(e);return t&&null!==Ya&&Ya.emit(E.ERROR,o),Promise.reject(o)}},Xa=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"C2CModule\",t._messageFromUnreadDBMap=new Map,t._signalingFromUnreadDBList=[],t}return a(s,[{key:\"onNewC2CMessage\",value:function(e){var t=e.dataList,n=e.isInstantMessage,o=e.C2CRemainingUnreadList,s=e.C2CPairUnreadList;xe.d(\"\".concat(this._n,\".onNewC2CMessage count:\").concat(t.length,\" isInstantMessage:\").concat(n));var a=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:o,C2CPairUnreadList:s,isInstantMessage:n}),r=a.conversationOptionsList,i=a.messageList,u=a.isUnreadC2CMessage;(this.filterModifiedMessage(i),r.length>0)&&this.getModule(Fn).onNewMessage({conversationOptionsList:r,isInstantMessage:n,isUnreadC2CMessage:u});var c=this.filterUnmodifiedMessage(i);n&&c.length>0&&this.emitOuterEvent(E.MESSAGE_RECEIVED,c),i.length=0}},{key:\"_newC2CMessageStoredAndSummary\",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList,s=e.isInstantMessage,a=null,r=[],i=[],u={},c=this.getModule(Hn),l=this.getModule($n),p=!1,d=this.getModule(Fn),g=this.getFileDownloadProxy(),_=0,h=t.length;_<h;_++)if(this._isSignaling(t[_]))this._signalingFromUnreadDBList.push(t[_].eventArray[0].c2CNotifyMsgArray[0]);else{var f=t[_];f.currentUser=this.getMyUserID(),f.conversationType=S.CONV_C2C,f.isSystemMessage=!!f.isSystemMessage,(at(f.nick)||at(f.avatar))&&(p=!0,xe.d(\"\".concat(this._n,\"._newC2CMessageStoredAndSummary nick or avatar missing!\"))),a=new Ha(f),f.elements=c.parseElements(f.elements,f.from),a.setElement(f.elements,g),a.setNickAndAvatar({nick:f.nick,avatar:f.avatar});var v=a.conversationID;if(s){if(1===this._messageFromUnreadDBMap.get(a.ID))continue;var m=!1;if(a.from!==this.getMyUserID()){var M=d.getLatestMessageSentByPeer(v);if(M){var y=M.nick,I=M.avatar;p?a.setNickAndAvatar({nick:y,avatar:I}):y===a.nick&&I===a.avatar||(m=!0)}}else{var C=d.getLatestMessageSentByMe(v);if(C){var T=C.nick,D=C.avatar;T===a.nick&&D===a.avatar||d.modifyMessageSentByMe({conversationID:v,latestNick:a.nick,latestAvatar:a.avatar})}}var E=1===t[_].isModified;if(d.isMessageSentByCurrentInstance(a)?a.isModified=E:E=!1,0===f.msgLifeTime)a._onlineOnlyFlag=!0,d.isMessageSentByCurrentInstance(a)||i.push(a);else{if(!d.pushIntoMessageList(i,a,E))continue;m&&(d.modifyMessageSentByPeer({conversationID:v,latestNick:a.nick,latestAvatar:a.avatar}),d.updateUserProfileSpecifiedKey({conversationID:v,nick:a.nick,avatar:a.avatar}))}s&&a.clientTime>0&&l.addMessageDelay(a.clientTime)}else this._messageFromUnreadDBMap.set(a.ID,1);if(0!==f.msgLifeTime){if(!1===a._onlineOnlyFlag){var k=d.getLastMessageTime(v);if($e(k)&&a.time<k)continue;if(at(u[v])){var L=0;\"in\"===a.flow&&(a._isExcludedFromUnreadCount||(L=1)),u[v]=r.push({conversationID:v,unreadCount:L,type:a.conversationType,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?\"\":a})-1}else{var A=u[v];r[A].type=a.conversationType,r[A].subType=a.conversationSubType,r[A].lastMessage=a._isExcludedFromLastMessage?\"\":a,\"in\"===a.flow&&(a._isExcludedFromUnreadCount||r[A].unreadCount++)}}}else a._onlineOnlyFlag=!0}this._handleSignalingFromUnreadDB();var R=!1;if(st(o))for(var N=function(e,t){if(o[e].unreadCount>0){R=!0;var n=r.find((function(t){return t.conversationID===\"C2C\".concat(o[e].from)}));n?n.unreadCount=o[e].unreadCount:r.push({conversationID:\"C2C\".concat(o[e].from),unreadCount:o[e].unreadCount,type:S.CONV_C2C})}},O=0,G=o.length;O<G;O++)N(O);if(st(n))for(var U=function(e,t){r.find((function(t){return t.conversationID===\"C2C\".concat(n[e].from)}))||r.push({conversationID:\"C2C\".concat(n[e].from),type:S.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},P=0,b=n.length;P<b;P++)U(P);return{conversationOptionsList:r,messageList:i,isUnreadC2CMessage:R}}},{key:\"_isSignaling\",value:function(e){var t=e.eventArray;return!(!st(t)||10!==t[0].event)}},{key:\"_handleSignalingFromUnreadDB\",value:function(){var e=this._signalingFromUnreadDBList.length;if(xe.l(\"\".concat(this._n,\"._handleSignalingFromUnreadDB signalingCount:\").concat(e)),0!==e){var t=[];this._signalingFromUnreadDBList.forEach((function(e){e.hasOwnProperty(\"c2cMessageRevokedNotify\")&&t.push(e)})),this.onC2CMessageRevoked({dataList:t}),this._signalingFromUnreadDBList.length=0,t.length=0}}},{key:\"onC2CMessageRevoked\",value:function(e){var t=this,n=this.getModule(Fn),o=[],s=null,a=!0;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var r=e.c2cMessageRevokedNotify.revokedInfos;at(r)||r.forEach((function(e){var r=t.getMyUserID()===e.from?\"\".concat(S.CONV_C2C).concat(e.to):\"\".concat(S.CONV_C2C).concat(e.from);s=n.revoke(r,e.sequence,e.random);var i=e.revokerInfo&&e.revokerInfo.revoker;if(s)s.revoker||(s.revoker=i,o.push(s));else{var u={conversationID:r,sequence:e.sequence,time:e.time,revoker:i};n.isLastMessageRevoked(u)&&(o.push(u),a=!1)}}))}})),0!==o.length&&(n.onMessageRevoked(o),!0===a&&(xe.l(\"\".concat(this._n,\".onC2CMessageRevoked count:\").concat(o.length)),this.emitOuterEvent(E.MESSAGE_REVOKED,o)))}},{key:\"onC2CMessageReadReceipt\",value:function(e){var t=this;e.dataList.forEach((function(e){if(!jt(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var o=e.peerReadTime;xe.d(\"\".concat(t._n,\"._onC2CMessageReadReceipt to:\").concat(n,\" peerReadTime:\").concat(o));var s=\"\".concat(S.CONV_C2C).concat(n),a=t.getModule(Fn);a.recordPeerReadTime(s,o),a.updateMessageIsPeerReadProperty(s,o)}))}}))}},{key:\"onC2CMessageReadNotice\",value:function(e){var t=this;e.dataList.forEach((function(e){if(!jt(e.c2cMessageReadNotice)){var n=t.getModule(Fn);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var o=e.from,s=e.peerReadTime;xe.d(\"\".concat(t._n,\".onC2CMessageReadNotice from:\").concat(o,\" lastReadTime:\").concat(s));var a=\"\".concat(S.CONV_C2C).concat(o);n.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:s}),n.updateUnreadCount(a)}))}}))}},{key:\"onC2CMessageModified\",value:function(e){xe.d(\"\".concat(this._n,\".onC2CMessageModified options:\"),JSON.stringify(e));var n=this.getModule(Fn);e.dataList.forEach((function(e){n.onMessageModified(t(t({},e),{},{conversationType:S.CONV_C2C}))}))}},{key:\"onReadReceiptList\",value:function(e){xe.d(\"\".concat(this._n,\".onReadReceiptList options:\"),JSON.stringify(e));var t=e.dataList,n=t.userID,o=t.readReceiptList;this.getModule(Fn).updateReadReceiptInfo({userID:n,readReceiptList:o})}},{key:\"sendMessage\",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:\"_createC2CMessagePack\",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var o=\"\";et(e.cloudCustomData)&&e.cloudCustomData.length>0&&(o=e.cloudCustomData);var s=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,r=a.excludedFromUnreadCount,i=a.excludedFromLastMessage,u=a.excludedFromContentModeration;!0===r&&s.push(\"NoUnread\"),!0===i&&s.push(\"NoLastMsg\"),!0===u&&s.push(\"NoMsgCheck\")}var c=this.isOnlineMessage(e,t)?0:void 0;return{protocolName:_o,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:o,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:c,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||\"\",desc:n.description||\"\",ext:n.extension||\"\",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||\"\"}}:void 0,messageControlInfo:0!==c?s:void 0,clientTime:e.clientTime,needReadReceipt:!0===e.needReadReceipt?1:0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:\"_isVoipPush\",value:function(e){var t=void 0;return at(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:\"isOnlineMessage\",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:\"revokeMessage\",value:function(e){return this.request({protocolName:Io,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:\"deleteMessage\",value:function(e){var t=e.to,n=e.keyList;return xe.l(\"\".concat(this._n,\".deleteMessage toAccount:\").concat(t,\" count:\").concat(n.length)),this.request({protocolName:ko,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:\"modifyRemoteMessage\",value:function(e){var t=e.from,n=e.to,o=e.version,s=void 0===o?0:o,a=e.sequence,r=e.random,i=e.time,u=e.payload,c=e.type,l=e.cloudCustomData,p=void 0;return Vt(c)&&(p=[]).push({type:c,content:u}),this.request({protocolName:Lo,requestData:{from:t,to:n,version:s,sequence:a,random:r,time:i,elements:p,cloudCustomData:l}})}},{key:\"setMessageRead\",value:function(e){var t=this,n=e.conversationID,o=e.lastMessageTime,s=\"\".concat(this._n,\".setMessageRead\");xe.l(\"\".concat(s,\" conversationID:\").concat(n,\" lastMessageTime:\").concat(o)),$e(o)||this.outputWarning(\"DoNotModifyLastTime\");var a=new ka(\"setC2CMessageRead\");return a.setMessage(\"conversationID:\".concat(n,\" lastMessageTime:\").concat(o)),this.request({protocolName:Co,requestData:{C2CMsgReaded:{cookie:\"\",C2CMsgReadedItem:[{toAccount:n.replace(\"C2C\",\"\"),lastMessageTime:o,receipt:1}]}}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(s,\" ok\"));var e=t.getModule(Fn);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:o}),e.updateUnreadCount(n),Ka()})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),xe.l(\"\".concat(s,\" failed. error:\"),e),Ja(e)}))}},{key:\"getRoamingMessage\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRoamingMessage\"),o=e.peerAccount,s=e.conversationID,a=e.count,r=e.lastMessageTime,i=e.messageKey,u=\"peerAccount:\".concat(o,\" count:\").concat(a||15,\" lastMessageTime:\").concat(r||0,\" messageKey:\").concat(i);xe.l(\"\".concat(n,\" \").concat(u));var c=new ka(\"getC2CRoamingMessages\");return this.request({protocolName:Eo,requestData:{peerAccount:o,count:a||15,lastMessageTime:r||0,messageKey:i}}).then((function(e){var o=e.data,a=o.complete,r=o.messageList,i=o.messageKey,l=o.lastMessageTime;at(r)?xe.l(\"\".concat(n,\" ok. complete:\").concat(a,\" but messageList is undefined!\")):xe.l(\"\".concat(n,\" ok. complete:\").concat(a,\" count:\").concat(r.length)),c.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(u,\" complete:\").concat(a,\" length:\").concat(r.length)).end();var p=t.getModule(Fn);1===a&&p.setCompleted(s);var d=p.onRoamingMessage(r,s);p.modifyMessageList(s),p.updateIsRead(s),p.updateRoamingMessageKeyAndTime(s,i,l);var g=p.getPeerReadTime(s);if(xe.l(\"\".concat(n,\" update isPeerRead property. conversationID:\").concat(s,\" peerReadTime:\").concat(g)),g)p.updateMessageIsPeerReadProperty(s,g);else{var _=s.replace(S.CONV_C2C,\"\");t.getRemotePeerReadTime([_]).then((function(){p.updateMessageIsPeerReadProperty(s,p.getPeerReadTime(s))}))}var h=\"\";if(d.length>0)h=d[0].ID;else{var f=p.getLocalOldestMessage(s);f&&(h=f.ID)}return xe.l(\"\".concat(n,\" nextReqID:\").concat(h,\" stored message count:\").concat(d.length)),{nextReqID:h,storedMessageList:d}})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];c.setMessage(u).setError(e,o,s).end()})),xe.w(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"getRoamingMessagesHopping\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRoamingMessagesHopping\"),o=e.peerAccount,s=e.time,a=void 0===s?0:s,r=e.count,i=e.direction,u=\"\".concat(S.CONV_C2C).concat(o),c=\"peerAccount:\".concat(o,\" count:\").concat(r,\" time:\").concat(a,\" direction:\").concat(i);xe.l(\"\".concat(n,\" \").concat(c));var l=new ka(\"getC2CRoamingMessagesHopping\");return this.request({protocolName:Eo,requestData:{peerAccount:o,count:r+1,lastMessageTime:a,direction:i}}).then((function(e){var o=e.data,s=o.complete,a=o.messageList,r=void 0===a?[]:a,p=o.lastMessageTime;xe.l(\"\".concat(n,\" ok. complete:\").concat(s,\" count:\").concat(r.length)),l.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(c,\" complete:\").concat(s,\" length:\").concat(r.length)).end(),1!==s&&(1===i?r.pop():r.shift());var d=t.getModule(Fn).onRoamingMessage(r,u,!1);t._modifyMessageList(u,d);var g=t._computeResult({complete:s,lastMessageTime:p,resultList:d});return Ka(g)})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];l.setMessage(c).setError(e,o,s).end()})),xe.w(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_computeResult\",value:function(e){var t=e.complete,n=void 0===t?0:t,o=e.lastMessageTime,s=e.resultList,a={messageList:m(void 0===s?[]:s),isCompleted:!1,nextMessageTime:\"\"};return 1===n?(a.isCompleted=!0,a):(a.nextMessageTime=o,a)}},{key:\"_modifyMessageList\",value:function(e,t){var n=this.getModule(Fn).getLocalConversation(e);if(n)for(var o=n.userProfile.nick,s=n.userProfile.avatar,a=this.getModule(On).getNickAndAvatarByUserID(this.getMyUserID()),r=a.nick,i=a.avatar,u=t.length-1;u>=0;u--){var c=t[u];\"in\"===c.flow&&(c.nick!==o&&c.setNickAndAvatar({nick:o}),c.avatar!==s&&c.setNickAndAvatar({avatar:s})),\"out\"===c.flow&&(c.nick!==r&&c.setNickAndAvatar({nick:r}),c.avatar!==i&&c.setNickAndAvatar({avatar:i}))}}},{key:\"getRemotePeerReadTime\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRemotePeerReadTime\");if(jt(e))return xe.w(\"\".concat(n,\" userIDList is empty!\")),Promise.resolve();var o=new ka(\"getPeerReadTime\");return xe.l(\"\".concat(n,\" userIDList:\").concat(e)),this.request({protocolName:So,requestData:{userIDList:e}}).then((function(s){var a=s.data.peerReadTimeList;xe.l(\"\".concat(n,\" ok. peerReadTimeList:\").concat(a));for(var r=\"\",i=t.getModule(Fn),u=0;u<e.length;u++)r+=\"\".concat(e[u],\"-\").concat(a[u],\" \"),a[u]>0&&i.recordPeerReadTime(\"C2C\".concat(e[u]),a[u]);o.setNetworkType(t.getNetworkType()).setMessage(r).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.w(\"\".concat(n,\" failed. error:\"),e)}))}},{key:\"sendReadReceipt\",value:function(e){var t=this,n=e[0].conversationID.replace(S.CONV_C2C,\"\"),o=new ka(\"sendC2CReadReceipt\");o.setMessage(\"peerAccount:\".concat(n));var s=this.getMyUserID(),a=e.filter((function(e){return e.from!==s&&!0===e.needReadReceipt})).map((function(e){return{fromAccount:e.from,toAccount:e.to,sequence:e.sequence,random:e.random,time:e.time,clientTime:e.clientTime}}));if(0===a.length)return Ja({code:da.READ_RECEIPT_MESSAGE_LIST_EMPTY});var r=\"\".concat(this._n,\".sendReadReceipt\");return xe.l(\"\".concat(r,\". peerAccount:\").concat(n,\" messageInfoList length:\").concat(a.length)),this.request({protocolName:ls,requestData:{peerAccount:n,messageInfoList:a}}).then((function(e){return o.end(),xe.l(\"\".concat(r,\" ok\")),Ka()})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.w(\"\".concat(r,\" failed. error:\"),e),Ja(e)}))}},{key:\"getReadReceiptList\",value:function(e){var t=\"\".concat(this._n,\".getReadReceiptList\"),n=this.getMyUserID(),o=e.filter((function(e){return e.from===n&&!0===e.needReadReceipt}));return xe.l(\"\".concat(t,\" userID:\").concat(n,\" messageList length:\").concat(o.length)),za({messageList:o})}},{key:\"getMessageExtensions\",value:function(e,t){return xe.l(\"\".concat(this._n,\".getMessageExtensions startSequence:\").concat(t)),this.request({protocolName:Ro,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),startSequence:t}})}},{key:\"modifyMessageExtensions\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return xe.l(\"\".concat(this._n,\".modifyMessageExtensions operateType:\").concat(n)),this.request({protocolName:Ao,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),extensionList:t,operateType:n}})}},{key:\"_getMessageKey\",value:function(e){var t=e.clientSequence,n=e.random,o=e.time;return\"\".concat(t,\"_\").concat(n,\"_\").concat(o)}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._messageFromUnreadDBMap.clear(),this._signalingFromUnreadDBList.length=0}}]),s}(ro),Qa=function(){function e(){o(this,e),this.list=new Map,this._n=\"MessageListHandler\",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map}return a(e,[{key:\"getLocalOldestMessageByConversationID\",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:\"pushIn\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,o=!0;this.list.has(n)||this.list.set(n,new Map);var s=this._getUniqueIDOfMessage(e),a=this.list.get(n).has(s);if(a){var r=this.list.get(n).get(s);if(!t||!0===r.isModified)return o=!1}return this.list.get(n).set(s,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),o}},{key:\"unshift\",value:function(e,t){var n;if(st(e)?e.length>0&&(n=e[0].conversationID,this._unshiftMultipleMessages(e,t)):(n=e.conversationID,this._unshiftSingleMessage(e,t)),n&&n.startsWith(S.CONV_C2C)){var o=Array.from(this.list.get(n).values()),s=o.length;if(0===s)return;for(var a=s-1;a>=0;a--)if(\"out\"===o[a].flow){this._setLatestMessageSentByMe(n,o[a]);break}for(var r=s-1;r>=0;r--)if(\"in\"===o[r].flow){this._setLatestMessageSentByPeer(n,o[r]);break}}}},{key:\"_unshiftSingleMessage\",value:function(e,t){var n=e.conversationID,o=this._getUniqueIDOfMessage(e);if(!this.list.has(n))return this.list.set(n,new Map),this.list.get(n).set(o,e),void t.push(e);var s=this.list.get(n),a=Array.from(s);s.has(o)||(a.unshift([o,e]),this.list.set(n,new Map(a)),t.push(e))}},{key:\"_unshiftMultipleMessages\",value:function(e,t){for(var n=e.length,o=[],s=e[0].conversationID,a=this.list.get(s),r=this.list.has(s)?Array.from(a):[],i=0;i<n;i++){var u=this._getUniqueIDOfMessage(e[i]);a&&a.has(u)||(o.push([u,e[i]]),t.push(e[i]))}this.list.set(s,new Map(o.concat(r)))}},{key:\"remove\",value:function(e){var t=e.conversationID,n=this._getUniqueIDOfMessage(e);this.list.has(t)&&this.list.get(t).delete(n)}},{key:\"revoke\",value:function(e,t,n){if(xe.d(\"revoke message\",e,t,n),this.list.has(e)){var o,s=D(this.list.get(e));try{for(s.s();!(o=s.n()).done;){var a=v(o.value,2)[1];if(a.sequence===t&&(at(n)||a.random===n))return a.isRevoked||(a.isRevoked=!0),a}}catch(r){s.e(r)}finally{s.f()}}return null}},{key:\"removeByConversationID\",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:\"findMessage\",value:function(e){var t,n=null,o=D(this.list);try{for(o.s();!(t=o.n()).done;)for(var s=m(v(t.value,2)[1].values()),a=s.length,r=0;r<a;r++)if(s[r].ID===e){n=s[r];break}}catch(i){o.e(i)}finally{o.f()}return n}},{key:\"updateMessageIsPeerReadProperty\",value:function(e,t){var n=[];if(this.list.has(e)){var o,s=D(this.list.get(e));try{for(s.s();!(o=s.n()).done;){var a=v(o.value,2)[1];a.time<=t&&!a.isPeerRead&&\"out\"===a.flow&&(a.isPeerRead=!0,n.push(a))}}catch(r){s.e(r)}finally{s.f()}xe.l(\"\".concat(this._n,\".updateMessageIsPeerReadProperty conversationID:\").concat(e,\" peerReadTime:\").concat(t,\" count:\").concat(n.length))}return n}},{key:\"updateMessageIsModifiedProperty\",value:function(e){var t=e.conversationID;if(this.list.has(t)){var n=this._getUniqueIDOfMessage(e),o=this.list.get(t).get(n);o&&(o.isModified=!0)}}},{key:\"hasLocalMessageList\",value:function(e){return this.list.has(e)}},{key:\"getLocalMessageList\",value:function(e){return this.hasLocalMessageList(e)?m(this.list.get(e).values()):[]}},{key:\"hasLocalMessage\",value:function(e,t){for(var n=!1,o=this.getLocalMessageList(e),s=o.length,a=0;a<s;a++)o[a].ID===t&&(n=!0);return n}},{key:\"getLocalMessage\",value:function(e,t){for(var n=null,o=this.getLocalMessageList(e),s=o.length,a=0;a<s;a++)if(o[a].ID===t){n=o[a];break}return n}},{key:\"getLocalLastMessage\",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:\"getLocalOldestMessage\",value:function(e){return this.getLocalMessageList(e)[0]}},{key:\"_setLatestMessageSentByPeer\",value:function(e,t){e.startsWith(S.CONV_C2C)&&\"in\"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:\"_setLatestMessageSentByMe\",value:function(e,t){e.startsWith(S.CONV_C2C)&&\"out\"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:\"getLatestMessageSentByPeer\",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:\"getLatestMessageSentByMe\",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:\"modifyMessageSentByPeer\",value:function(e){var t=e.conversationID,n=e.latestNick,o=e.latestAvatar,s=this.list.get(t);if(!jt(s)){var a=Array.from(s.values()),r=a.length;if(0!==r){for(var i=null,u=0,c=!1,l=r-1;l>=0;l--)\"in\"===a[l].flow&&((i=a[l]).nick!==n&&(i.setNickAndAvatar({nick:n}),c=!0),i.avatar!==o&&(i.setNickAndAvatar({avatar:o}),c=!0),c&&(u+=1));xe.l(\"\".concat(this._n,\".modifyMessageSentByPeer conversationID:\").concat(t,\" count:\").concat(u))}}}},{key:\"modifyMessageSentByMe\",value:function(e){var t=e.conversationID,n=e.latestNick,o=e.latestAvatar,s=this.list.get(t);if(!jt(s)){var a=Array.from(s.values()),r=a.length;if(0!==r){for(var i=null,u=0,c=!1,l=r-1;l>=0;l--)\"out\"===a[l].flow&&((i=a[l]).nick!==n&&(i.setNickAndAvatar({nick:n}),c=!0),i.avatar!==o&&(i.setNickAndAvatar({avatar:o}),c=!0),c&&(u+=1));xe.l(\"\".concat(this._n,\".modifyMessageSentByMe conversationID:\").concat(t,\" count:\").concat(u))}}}},{key:\"getTopicConversationIDList\",value:function(e){return m(this.list.keys()).filter((function(t){return t.startsWith(\"\".concat(S.CONV_GROUP).concat(e))}))}},{key:\"traversal\",value:function(){if(0!==this.list.size&&-1===xe.getLevel()){console.group(\"conversationID-messageCount\");var e,t=D(this.list);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2),o=n[0],s=n[1];console.log(\"\".concat(o,\"-\").concat(s.size))}}catch(a){t.e(a)}finally{t.f()}console.groupEnd()}}},{key:\"onMessageModified\",value:function(e,t){if(!this.list.has(e))return{isUpdated:!1,message:null};var n=this._getUniqueIDOfMessage(t),o=this.list.get(e).has(n);if(xe.d(\"\".concat(this._n,\".onMessageModified conversationID:\").concat(e,\" uniqueID:\").concat(n,\" has:\").concat(o)),o){var s=this.list.get(e).get(n),a=t.messageVersion,r=t.elements,i=t.cloudCustomData;return s.version<a?(s.version=a,s._elements=JSON.parse(JSON.stringify(r)),s.payload=JSON.parse(JSON.stringify(r[0].content)),s.type=r[0].type,s.cloudCustomData=i,s.isModified=!0,{isUpdated:!0,message:s}):{isUpdated:!1,message:s}}return{isUpdated:!1,message:null}}},{key:\"_getUniqueIDOfMessage\",value:function(e){var t=e.from,n=e.to,o=e.random,s=e.sequence,a=e.time;return\"\".concat(t,\"-\").concat(n,\"-\").concat(o,\"-\").concat(s,\"-\").concat(a)}},{key:\"reset\",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear()}}]),e}(),Za=\"_a2KeyAndTinyIDUpdated\",$a=\"_cloudConfigUpdated\",er=\"_profileUpdated\";function tr(e){this.mixin(e)}tr.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var nr=[\"jpg\",\"jpeg\",\"gif\",\"png\",\"bmp\",\"image\",\"webp\"],or=[\"mp4\",\"quicktime\",\"mov\"],sr=1,ar=2,rr=3,ir=255,ur=function(){function e(t){var n=this;o(this,e),jt(t)||(this.userID=t.userID||\"\",this.nick=t.nick||\"\",this.gender=t.gender||\"\",this.birthday=t.birthday||0,this.location=t.location||\"\",this.selfSignature=t.selfSignature||\"\",this.allowType=t.allowType||S.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||\"\",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||S.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],jt(t.profileCustomField)||t.profileCustomField.forEach((function(e){n.profileCustomField.push({key:e.key,value:e.value})})))}return a(e,[{key:\"validate\",value:function(e){var t=!0,n=\"\";if(jt(e))return{valid:!1,tips:\"empty options\"};if(e.profileCustomField)for(var o=e.profileCustomField.length,s=null,a=0;a<o;a++){if(s=e.profileCustomField[a],!et(s.key)||-1===s.key.indexOf(\"Tag_Profile_Custom\"))return{valid:!1,tips:\"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom\"};if(!et(s.value))return{valid:!1,tips:\"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String\"}}for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(\"profileCustomField\"===r)continue;if(jt(e[r])&&!et(e[r])&&!$e(e[r])){n=\"key:\"+r+\", invalid value:\"+e[r],t=!1;continue}switch(r){case\"nick\":et(e[r])||(n=\"nick must be a string\",t=!1),gt(e[r])>500&&(n=\"nick name limited: must less than or equal to \".concat(500,\" bytes, current size: \").concat(gt(e[r]),\" bytes\"),t=!1);break;case\"gender\":vt(He,e.gender)||(n=\"key:gender, invalid value:\"+e.gender,t=!1);break;case\"birthday\":$e(e.birthday)||(n=\"birthday must be a number\",t=!1);break;case\"location\":et(e.location)||(n=\"location must be a string\",t=!1);break;case\"selfSignature\":et(e.selfSignature)||(n=\"selfSignature must be a string\",t=!1);break;case\"allowType\":vt(We,e.allowType)||(n=\"key:allowType, invalid value:\"+e.allowType,t=!1);break;case\"language\":$e(e.language)||(n=\"language must be a number\",t=!1);break;case\"avatar\":et(e.avatar)||(n=\"avatar must be a string\",t=!1);break;case\"messageSettings\":0!==e.messageSettings&&1!==e.messageSettings&&(n=\"messageSettings must be 0 or 1\",t=!1);break;case\"adminForbidType\":vt(Ke,e.adminForbidType)||(n=\"key:adminForbidType, invalid value:\"+e.adminForbidType,t=!1);break;case\"level\":$e(e.level)||(n=\"level must be a number\",t=!1);break;case\"role\":$e(e.role)||(n=\"role must be a number\",t=!1);break;default:n=\"unknown key:\"+r+\"  \"+e[r],t=!1}}return{valid:t,tips:n}}}]),e}(),cr=a((function e(t){o(this,e),this.value=t,this.next=null})),lr=function(){function e(t){o(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map}return a(e,[{key:\"set\",value:function(e){var t=new cr(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:\"has\",value:function(e){return this.map.has(e)}},{key:\"delete\",value:function(e){this.has(e)&&this.map.delete(e)}},{key:\"tail\",value:function(){return this.pTail}},{key:\"size\",value:function(){return this.map.size}},{key:\"data\",value:function(){return Array.from(this.map.keys())}},{key:\"reset\",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),pr=[\"groupID\",\"name\",\"avatar\",\"type\",\"introduction\",\"notification\",\"ownerID\",\"selfInfo\",\"createTime\",\"infoSequence\",\"lastInfoTime\",\"lastMessage\",\"nextMessageSeq\",\"memberNum\",\"maxMemberNum\",\"memberList\",\"joinOption\",\"groupCustomField\",\"muteAllMembers\",\"isSupportTopic\",\"inviteOption\",\"_lastRevokedTime\"],dr=function(){function e(t){o(this,e),this.groupID=\"\",this.name=\"\",this.avatar=\"\",this.type=\"\",this.introduction=\"\",this.notification=\"\",this.ownerID=\"\",this.createTime=\"\",this.infoSequence=\"\",this.lastInfoTime=\"\",this.selfInfo={messageRemindType:\"\",joinTime:\"\",nameCard:\"\",role:\"\",userID:\"\",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:\"\",lastSequence:\"\",fromAccount:\"\",messageForShow:\"\"},this.nextMessageSeq=\"\",this.memberNum=\"\",this.memberCount=\"\",this.maxMemberNum=\"\",this.maxMemberCount=\"\",this.joinOption=\"\",this.inviteOption=\"\",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._lastRevokedTime=0,this._initGroup(t)}return a(e,[{key:\"memberNum\",get:function(){return this.memberCount},set:function(e){}},{key:\"maxMemberNum\",get:function(){return this.maxMemberCount},set:function(e){}},{key:\"_initGroup\",value:function(e){for(var t in e)pr.indexOf(t)<0||(\"selfInfo\"!==t?(\"memberNum\"===t&&(this.memberCount=e[t]),\"maxMemberNum\"===t&&(this.maxMemberCount=e[t]),\"isSupportTopic\"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}},{key:\"updateGroup\",value:function(e){var t=this;e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0);var n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),at(n.muteAllMembers)||(\"On\"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&It(this.groupCustomField,n.groupCustomField),at(n.memberNum)||(this.memberCount=n.memberNum),at(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),at(n.isSupportTopic)||(this.isSupportTopic=$e(n.isSupportTopic)?1===n.isSupportTopic:n.isSupportTopic),pt(this,n,[\"members\",\"errorCode\",\"lastMsgTime\",\"groupCustomField\",\"memberNum\",\"maxMemberNum\",\"isSupportTopic\"]),st(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&pt(t.selfInfo,e,[\"sequence\"])}))}},{key:\"updateSelfInfo\",value:function(e){var n={nameCard:e.nameCard,joinTime:e.joinTime,role:e.role,messageRemindType:e.messageRemindType,readedSequence:e.readedSequence,excludedUnreadSequenceList:e.excludedUnreadSequenceList};pt(this.selfInfo,t({},n),[],[\"\",null,void 0,0,NaN])}},{key:\"setSelfNameCard\",value:function(e){this.selfInfo.nameCard=e}}]),e}(),gr=function(e,n){return at(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:\"\",payload:null,type:\"\",isRevoked:!1,cloudCustomData:\"\",onlineOnlyFlag:!1,nick:\"\",nameCard:\"\",version:0,isPeerRead:!1,revoker:null}:e instanceof Ha?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||\"\",messageForShow:xt(e.type,e.payload,n),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||\"\",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||\"\",nameCard:e.nameCard||\"\",version:e.version||0,isPeerRead:e.isPeerRead||!1,revoker:e.revoker||null}:t(t({},e),{},{messageForShow:xt(e.type,e.payload,n)})},_r=function(){function e(t,n){o(this,e),this.conversationID=t.conversationID||\"\",this.unreadCount=t.unreadCount||0,this.type=t.type||\"\",this.lastMessage=gr(t.lastMessage,n),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark=\"\",this.isPinned=t.isPinned||!1,this.messageRemindType=\"\",this.markList=t.markList||[],this.customData=t.customData||\"\",this.conversationGroupList=t.conversationGroupList||[],this._initProfile(t)}return a(e,[{key:\"toAccount\",get:function(){return this.conversationID.startsWith(S.CONV_C2C)?this.conversationID.replace(S.CONV_C2C,\"\"):this.conversationID.startsWith(S.CONV_GROUP)?this.conversationID.replace(S.CONV_GROUP,\"\"):\"\"}},{key:\"subType\",get:function(){return this.groupProfile?this.groupProfile.type:\"\"}},{key:\"_initProfile\",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case\"userProfile\":t.userProfile=e.userProfile;break;case\"groupProfile\":t.groupProfile=e.groupProfile}})),at(this.userProfile)&&this.type===S.CONV_C2C?this.userProfile=new ur({userID:e.conversationID.replace(\"C2C\",\"\")}):at(this.groupProfile)&&this.type===S.CONV_GROUP&&(this.groupProfile=new dr({groupID:e.conversationID.replace(\"GROUP\",\"\")}))}},{key:\"updateUnreadCount\",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,o=e.isUnreadC2CMessage;at(t)||(Ct(this.subType)?this.unreadCount=0:n&&this.type===S.CONV_GROUP||n&&this.type===S.CONV_TOPIC||o&&this.type===S.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:\"updateLastMessage\",value:function(e){this.lastMessage=gr(e)}},{key:\"updateGroupAtInfoList\",value:function(e){if(!this._isNeedMergeGroupAtInfo(e)){var t,n=(M(t=e.groupAtType)||y(t)||I(t)||T()).slice(0);-1!==n.indexOf(S.CONV_AT_ME)&&-1!==n.indexOf(S.CONV_AT_ALL)&&(n=[S.CONV_AT_ALL_AT_ME]);var o={from:e.from,groupID:e.groupID,topicID:e.topicID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(o)}}},{key:\"_isNeedMergeGroupAtInfo\",value:function(e){var t=e.groupID,n=e.sequence;if(!Tt({groupID:t}))return!1;var o=!1;return this.groupAtInfoList.forEach((function(t){t.messageSequence===n&&(t.atTypeArray.indexOf(S.CONV_AT_ME)>-1&&e.groupAtType.indexOf(S.CONV_AT_ALL)>-1&&(t.atTypeArray=[S.CONV_AT_ALL_AT_ME]),t.atTypeArray.indexOf(S.CONV_AT_ALL)>-1&&e.groupAtType.indexOf(S.CONV_AT_ME)>-1&&(t.atTypeArray=[S.CONV_AT_ALL_AT_ME],t.__random=e.__random,t.__sequence=e.__sequence),o=!0)})),o}},{key:\"clearGroupAtInfoList\",value:function(){this.groupAtInfoList.length=0}},{key:\"reduceUnreadCount\",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:\"isLastMessageRevoked\",value:function(e){var t=e.sequence,n=e.time;return this.type===S.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===S.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:\"setLastMessageRevoked\",value:function(e){this.lastMessage.isRevoked=e}},{key:\"setLastMessageRevoker\",value:function(e){this.lastMessage.revoker=e}}]),e}(),hr=function(){function e(t){o(this,e),this._conversationModule=t,this._n=\"MessageRemindHandler\",this._updateSequence=0}return a(e,[{key:\"getC2CMessageRemindType\",value:function(){var e=this,t=\"\".concat(this._n,\".getC2CMessageRemindType\");return this._conversationModule.request({protocolName:Do,updateSequence:this._updateSequence}).then((function(n){xe.l(\"\".concat(t,\" ok\"));var o=n.data,s=o.updateSequence,a=o.muteFlagList;e._updateSequence=s,e._patchC2CMessageRemindType(a)})).catch((function(e){xe.e(\"\".concat(t,\" failed. error:\"),e)}))}},{key:\"_patchC2CMessageRemindType\",value:function(e){var t=this,n=0,o=\"\";st(e)&&e.length>0&&e.forEach((function(e){var s=e.userID,a=e.muteFlag;0===a?o=S.MSG_REMIND_ACPT_AND_NOTE:1===a?o=S.MSG_REMIND_DISCARD:2===a&&(o=S.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:s,isC2CConversation:!0,messageRemindType:o})&&(n+=1)})),xe.l(\"\".concat(this._n,\"._patchC2CMessageRemindType count:\").concat(n))}},{key:\"set\",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):st(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:\"_setGroupMessageRemindType\",value:function(e){var t=this,n=\"\".concat(this._n,\"._setGroupMessageRemindType\"),o=e.groupID,s=e.messageRemindType,a=\"groupID:\".concat(o,\" messageRemindType:\").concat(s),r=new ka(\"setMessageRemindType\");return r.setMessage(a),this._getModule(bn).modifyGroupMemberInfo({groupID:o,messageRemindType:s,userID:this._conversationModule.getMyUserID()}).then((function(){r.setNetworkType(t._conversationModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok. \").concat(a));var o=t.onGroupMessageRemindTypeUpdated(e);return t._conversationModule.emitTotalUnreadMessageCountUpdate(),Ka(o)})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"onGroupMessageRemindTypeUpdated\",value:function(e){var t=e.groupID,n=e.messageRemindType,o=this._getModule(Un).getLocalGroupProfile(t);if(o&&(o.selfInfo.messageRemindType=n),Dt(t)){var s=t,a=qt(s),r=this._getModule(wn).getLocalTopic(a,s);return r&&(r.updateSelfInfo({messageRemindType:n}),this._conversationModule.emitOuterEvent(E.TOPIC_UPDATED,{groupID:a,topic:r})),{topic:r}}return this._conversationModule.patchMessageRemindType({ID:t,isC2CConversation:!1,messageRemindType:n})&&this._emitConversationUpdate(),{group:o}}},{key:\"_setC2CMessageRemindType\",value:function(e){var t=this,n=\"\".concat(this._n,\"._setC2CMessageRemindType\"),o=e.userIDList,s=e.messageRemindType,a=o.slice(0,30),r=0;s===S.MSG_REMIND_DISCARD?r=1:s===S.MSG_REMIND_ACPT_NOT_NOTE&&(r=2);var i=\"userIDList:\".concat(a,\" messageRemindType:\").concat(s),u=new ka(\"setMessageRemindType\");return u.setMessage(i),this._conversationModule.request({protocolName:To,requestData:{userIDList:a,muteFlag:r}}).then((function(e){u.setNetworkType(t._conversationModule.getNetworkType()).end();var o=e.data,r=o.updateSequence,i=o.errorList;t._updateSequence=r;var c=[],l=[];st(i)&&i.forEach((function(e){c.push(e.userID),l.push({userID:e.userID,code:e.errorCode})}));var p=a.filter((function(e){return-1===c.indexOf(e)}));xe.l(\"\".concat(n,\" ok. successUserIDList:\").concat(p,\" failureUserIDList:\").concat(JSON.stringify(l)));var d=0;return p.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:s})&&(d+=1)})),d>=1&&t._emitConversationUpdate(),a.length=c.length=0,t._conversationModule.emitTotalUnreadMessageCountUpdate(),za({successUserIDList:p.map((function(e){return{userID:e}})),failureUserIDList:l})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_getModule\",value:function(e){return this._conversationModule.getModule(e)}},{key:\"_emitConversationUpdate\",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:\"setUpdateSequence\",value:function(e){this._updateSequence=e}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._updateSequence=0}}]),e}(),fr=function(){function e(t){o(this,e),this._conversationModule=t,this._n=\"ConvGroupHandler\",this._convGroupMap=new Map,this._startIndex=0,this._pagingStatus=Zt.NOT_START}return a(e,[{key:\"setConvCustomData\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setConvCustomData\"),o=e.conversationIDList,s=e.customData;xe.l(\"\".concat(n,\" options:\"),e);var a=new ka(\"setConvCustomData\");a.setMessage(JSON.stringify(e));var r={fromAccount:this._getMyUserID(),itemList:[]},i=[],u=[];return o.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(u,e),!0;if(!Et(e)&&!St(e))return t._onConversationIDInvalid(u,e),!0;var n={operationType:2,contactItem:void 0,customMark:s};Et(e)?n.contactItem={type:1,toAccount:e.replace(S.CONV_C2C,\"\")}:St(e)&&(n.contactItem={type:2,groupID:e.replace(S.CONV_GROUP,\"\")}),r.itemList.push(n)})),u.length===o.length?za({successConversationIDList:i,failureConversationIDList:u}):this._conversationModule.request({protocolName:wo,requestData:r}).then((function(e){a.setNetworkType(t._conversationModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var o=e.data.resultItem;if(st(o)){var r,c,l=!1;o.forEach((function(e){r=t._concatConversationID(e.contactItem),0===e.resultCode?(i.push(r),(c=t._getLocalConversation(r))&&c.customData!==s&&(c.customData=s,l=!0)):u.push({conversationID:r,code:e.resultCode,message:e.resultInfo})})),!0===l&&t._emitConversationUpdate()}return Ka({successConversationIDList:i,failureConversationIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"markConversation\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_MARK))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"markConversation\"),o=e.conversationIDList,s=e.markType,a=e.enableMark;xe.l(\"\".concat(n,\" options:\"),e);var r=new ka(\"markConversation\");r.setMessage(JSON.stringify(e));var i=void 0,u=void 0,c=this._getFlagBit(s);!0===a?u=[c]:i=[c];var l={fromAccount:this._getMyUserID(),itemList:[]},p=[],d=[];return o.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(d,e),!0;if(!Et(e)&&!St(e))return t._onConversationIDInvalid(d,e),!0;var n={operationType:1,contactItem:void 0,clearMark:i,setMark:u};Et(e)?n.contactItem={type:1,toAccount:e.replace(S.CONV_C2C,\"\")}:St(e)&&(n.contactItem={type:2,groupID:e.replace(S.CONV_GROUP,\"\")}),l.itemList.push(n)})),d.length===o.length?za({successConversationIDList:p,failureConversationIDList:d}):this._conversationModule.request({protocolName:Fo,requestData:l}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var o=e.data.resultItem;if(st(o)){var i,u,c=!1;o.forEach((function(e){if(i=t._concatConversationID(e.contactItem),0===e.resultCode){if(p.push(i),u=t._getLocalConversation(i)){var n=u.markList.indexOf(s);!0===a?-1===n&&(u.markList.push(s),c=!0):-1!==n&&(u.markList.splice(n,1),c=!0)}}else d.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===c&&t._emitConversationUpdate()}return Ka({successConversationIDList:p,failureConversationIDList:d})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"getLocalConvGroupList\",value:function(){var e=this;return xe.l(\"\".concat(this._n,\".getLocalConvGroupList pagingStatus:\").concat(this._pagingStatus)),this._pagingStatus===Zt.REJECTED?this.getRemoteConvGroupList().then((function(){return Ka(m(e._convGroupMap.values()))})):za(m(this._convGroupMap.values()))}},{key:\"getRemoteConvGroupList\",value:function(){var e=this,t=\"\".concat(this._n,\".getRemoteConvGroupList\");return this._pagingStatus=Zt.PENDING,this._conversationModule.request({protocolName:Ko,requestData:{fromAccount:this._getMyUserID(),startIndex:this._startIndex,startTime:be()}}).then((function(n){var o,s,a=n.data,r=a.completeFlag,i=a.contactItem,u=a.nextStartIndex,c=void 0===u?0:u,l=a.groupItem;(e._startIndex=c,xe.l(\"\".concat(t,\" completeFlag:\").concat(r,\" nextStartIndex:\").concat(c)),st(l)&&l.forEach((function(t){var n=t.convGroupID,o=t.groupName;e._convGroupMap.set(n,o)})),st(i))&&i.forEach((function(t){var n=t.standardMark,a=t.customData,r=t.convGroupIDList;if(o=e._concatConversationID(t),(s=e._getLocalConversation(o))&&(s.markList=Bt(n),s.customData=a||\"\",st(r))){var i=[];r.forEach((function(t){e._convGroupMap.has(t)&&i.push(e._convGroupMap.get(t))})),s.conversationGroupList=[].concat(i),i.length=0}}));if(0===r)return e.getRemoteConvGroupList();1===r&&(e._pagingStatus=Zt.RESOLVED,e._emitConversationUpdate(),e._emitConvGroupListUpdate())})).catch((function(n){e._pagingStatus=Zt.REJECTED,xe.w(\"\".concat(t,\" failed. error:\"),n)}))}},{key:\"createConvGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"createConvGroup\");xe.l(\"\".concat(n,\" options:\"),e);var o=new ka(\"createConvGroup\");o.setMessage(JSON.stringify(e));var s=e.groupName,a=e.conversationIDList,r={fromAccount:this._getMyUserID(),itemList:[{groupName:s,contactItem:[]}]},i=[],u=[];return a.forEach((function(e){return t._hasLocalConversation(e)?Et(e)||St(e)?void(Et(e)?r.itemList[0].contactItem.push({type:1,toAccount:e.replace(S.CONV_C2C,\"\")}):St(e)&&r.itemList[0].contactItem.push({type:2,groupID:e.replace(S.CONV_GROUP,\"\")})):(t._onConversationIDInvalid(u,e),!0):(t._onConversationNotFound(u,e),!0)})),u.length===a.length?za({successConversationIDList:i,failureConversationIDList:u}):this._conversationModule.request({protocolName:qo,requestData:r}).then((function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var a=e.data.groupResultItem[0],r=a.groupItem,c=a.resultItem;if(ot(r)&&(t._convGroupMap.set(r.convGroupID,r.groupName),t._emitConvGroupListUpdate()),st(c)){var l,p,d=!1;c.forEach((function(e){l=t._concatConversationID(e.contactItem),0===e.resultCode?(i.push(l),(p=t._getLocalConversation(l))&&-1===p.conversationGroupList.indexOf(s)&&(p.conversationGroupList.push(s),d=!0)):u.push({conversationID:l,code:e.resultCode,message:e.resultInfo})})),!0===d&&(t._emitConversationUpdate(),t._emitConvGroupListUpdate())}return Ka({successConversationIDList:i,failureConversationIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"deleteConvGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"deleteConvGroup\");xe.l(\"\".concat(n,\" groupName:\").concat(e));var o=new ka(\"deleteConvGroup\");return o.setMessage(e),this._conversationModule.request({protocolName:xo,requestData:{fromAccount:this._getMyUserID(),groupName:[e]}}).then((function(s){o.setNetworkType(t._conversationModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var a=s.data.groupItem;if(st(a)){var r=!1;a.forEach((function(e){t._convGroupMap.has(e.convGroupID)&&(t._convGroupMap.delete(e.convGroupID),r=!0)})),!0===r&&t._emitConvGroupListUpdate()}t._eraseFromConversationGroupList([e])})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"renameConvGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"renameConvGroup\");xe.l(\"\".concat(n,\" options:\"),e);var o=new ka(\"renameConvGroup\");o.setMessage(JSON.stringify(e));var s=e.oldName,a=e.newName;return this._conversationModule.request({protocolName:Vo,requestData:{fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:1,oldName:s,newName:a}}}).then((function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var r=e.data.updateGroupResult.convGroupID;t._convGroupMap.set(r,a),t._emitConvGroupListUpdate();var i,u,c=t._conversationModule.getLocalConversationList(),l=!1;c.forEach((function(e){i=e.conversationGroupList,-1!==(u=i.indexOf(s))&&(i.splice(u,1,a),l=!0)})),!0===l&&t._emitConversationUpdate()})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"addConvsToGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"addConvsToGroup\");xe.l(\"\".concat(n,\" options:\"),e);var o=new ka(\"addConvsToGroup\");o.setMessage(JSON.stringify(e));var s=e.conversationIDList,a=e.groupName,r={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},i=[],u=[];return s.forEach((function(e){return t._hasLocalConversation(e)?Et(e)||St(e)?void(Et(e)?r.updateGroup.updateItem.push({operationType:1,contactItem:{type:1,toAccount:e.replace(S.CONV_C2C,\"\")}}):St(e)&&r.updateGroup.updateItem.push({operationType:1,contactItem:{type:2,groupID:e.replace(S.CONV_GROUP,\"\")}})):(t._onConversationIDInvalid(u,e),!0):(t._onConversationNotFound(u,e),!0)})),u.length===s.length?za({successConversationIDList:i,failureConversationIDList:u}):this._conversationModule.request({protocolName:Bo,requestData:r}).then((function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var s=e.data.updateGroupResult.contactResultItem;if(st(s)){var r,c,l=!1;s.forEach((function(e){r=t._concatConversationID(e.contactItem),0===e.resultCode?(c=t._getLocalConversation(r))&&-1===c.conversationGroupList.indexOf(a)&&(c.conversationGroupList.push(a),i.push(r),l=!0):u.push({conversationID:r,code:e.resultCode,message:e.resultInfo})})),!0===l&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return Ka({successConversationIDList:i,failureConversationIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"deleteConvsFromGroup\",value:function(e){var t=this;if(!this._conversationModule.canIUse(B.CONV_GROUP))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"deleteConvsFromGroup\");xe.l(\"\".concat(n,\" options:\"),e);var o=new ka(\"deleteConvsFromGroup\");o.setMessage(JSON.stringify(e));var s=e.conversationIDList,a=e.groupName,r={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},i=[],u=[];return s.forEach((function(e){return t._hasLocalConversation(e)?Et(e)||St(e)?void(Et(e)?r.updateGroup.updateItem.push({operationType:2,contactItem:{type:1,toAccount:e.replace(S.CONV_C2C,\"\")}}):St(e)&&r.updateGroup.updateItem.push({operationType:2,contactItem:{type:2,groupID:e.replace(S.CONV_GROUP,\"\")}})):(t._onConversationIDInvalid(u,e),!0):(t._onConversationNotFound(u,e),!0)})),u.length===s.length?za({successConversationIDList:i,failureConversationIDList:u}):this._conversationModule.request({protocolName:Ho,requestData:r}).then((function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var s=e.data.updateGroupResult.contactResultItem;if(st(s)){var r,c,l=!1;s.forEach((function(e){if(r=t._concatConversationID(e.contactItem),0===e.resultCode){if(c=t._getLocalConversation(r)){var n=c.conversationGroupList.indexOf(a);-1!==n&&(c.conversationGroupList.splice(n,1),i.push(r),l=!0)}}else u.push({conversationID:r,code:e.resultCode,message:e.resultInfo})})),!0===l&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return Ka({successConversationIDList:i,failureConversationIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"onConvMarkUpdated\",value:function(e){var t=this;if(!jt(e)){var n,o;xe.d(\"\".concat(this._n,\".onConvMarkUpdated markItemList:\"),e);var s=!1;e.forEach((function(e){var a=e.recentContactItem,r=e.optType,i=e.standardMark,u=e.customMark;if(n=t._concatConversationID(a),o=t._getLocalConversation(n))if(1===r){var c=Bt(i);!0!==function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!1;return!0}(o.markList,c)&&(o.markList=c,s=!0)}else 2===r&&o.customData!==u&&void 0!==u&&(o.customData=u,s=!0)})),!0===s&&this._emitConversationUpdate()}}},{key:\"onConvGroupCreated\",value:function(e){var t=this;xe.d(\"\".concat(this._n,\".onConvGroupCreated resultList:\"),e);var n=!1,o=!1;st(e)&&(e.forEach((function(e){var s=e.msgGroupItem,a=s.groupID,r=s.groupName;t._convGroupMap.get(a)!==r&&(t._convGroupMap.set(a,r),o=!0);var i,u,c=e.msgRecentContactItem;st(c)&&c.forEach((function(e){i=t._concatConversationID(e),(u=t._getLocalConversation(i))&&-1===u.conversationGroupList.indexOf(r)&&(u.conversationGroupList.push(r),n=!0)}))})),!0===n&&this._emitConversationUpdate(),!0===o&&this._emitConvGroupListUpdate())}},{key:\"onConvGroupDeleted\",value:function(e){var t=this;xe.d(\"\".concat(this._n,\".onConvGroupDeleted groupItemList:\"),e);var n=[];if(st(e)){var o=!1;e.forEach((function(e){var s=e.groupID,a=e.groupName;t._convGroupMap.has(s)&&(t._convGroupMap.delete(s),o=!0,n.push(a))})),!0===o&&this._emitConvGroupListUpdate()}this._eraseFromConversationGroupList(n)}},{key:\"_eraseFromConversationGroupList\",value:function(e){jt(e)||(this._conversationModule.getLocalConversationList().forEach((function(t){t.conversationGroupList=t.conversationGroupList.filter((function(t){return!e.includes(t)}))})),this._emitConversationUpdate())}},{key:\"onConvGroupNameUpdated\",value:function(e){xe.d(\"\".concat(this._n,\".onConvGroupNameUpdated options:\"),e);var t=e.groupID,n=e.groupName,o=e.oldGroupName;if(this._convGroupMap.get(t)!==n){this._convGroupMap.set(t,n),this._emitConvGroupListUpdate();var s,a,r=this._conversationModule.getLocalConversationList(),i=!1;r.forEach((function(e){s=e.conversationGroupList,-1!==(a=s.indexOf(o))&&(s.splice(a,1,n),i=!0)})),!0===i&&this._emitConversationUpdate()}}},{key:\"onConvInGroupUpdated\",value:function(e){var t=this;xe.d(\"\".concat(this._n,\".onConvInGroupUpdated options:\"),e);var n=e.oldGroupName,o=e.recentContactUpdateGroupItem;if(st(o)){var s,a,r,i=!1;o.forEach((function(e){var o=e.contactOptType,u=e.recentContactItem;s=t._concatConversationID(u),(a=t._getLocalConversation(s))&&(r=a.conversationGroupList.indexOf(n),1===o?-1===r&&(a.conversationGroupList.push(n),i=!0):2===o&&-1!==r&&(a.conversationGroupList.splice(r,1),i=!0))})),!0===i&&(this._emitConversationUpdate(),this._emitConvInGroupUpdate(n))}}},{key:\"onConvAddedToOrDeletedFromGroup\",value:function(e){var t=this;xe.d(\"\".concat(this._n,\".onConvAddedToOrDeletedFromGroup options:\"),e);var n=e.msgRecentContactItem,o=e.msgRecentContactUpdateContactItem,s=this._concatConversationID(n),a=this._getLocalConversation(s);if(a&&st(o)){var r,i=!1;o.forEach((function(e){var n=e.groupOptType,o=e.recentContactGroupItem.groupName;r=a.conversationGroupList.indexOf(o),1===n?-1===r&&(a.conversationGroupList.push(o),i=!0):2===n&&-1!==r&&(a.conversationGroupList.splice(r,1),i=!0),!0===i&&t._emitConvInGroupUpdate(o)})),!0===i&&this._emitConversationUpdate()}}},{key:\"onConvGroupListSynced\",value:function(e){var t=this;st(e)&&0!==e.length&&(xe.l(\"\".concat(this._n,\".onConvGroupListSynced groupItemList:\"),e),e.forEach((function(e){t._convGroupMap.set(e.convGroupID,e.groupName)})))}},{key:\"getConvGroupListByID\",value:function(e){var t=this;if(!jt(e)){var n=[];return e.forEach((function(e){t._convGroupMap.has(e)&&n.push(t._convGroupMap.get(e))})),n}}},{key:\"_onConversationNotFound\",value:function(e,t){e.push({conversationID:t,code:da.CONVERSATION_NOT_FOUND,message:this._conversationModule.getErrorMessage(da.CONVERSATION_NOT_FOUND)})}},{key:\"_onConversationIDInvalid\",value:function(e,t){e.push({conversationID:t,code:da.INVALID_CONVERSATION_ID,message:this._conversationModule.getErrorMessage(da.INVALID_CONVERSATION_ID)})}},{key:\"_getFlagBit\",value:function(e){for(var t=e.toString(2),n=t.length,o=n-1;o>=0;o--)if(\"1\"===t[o])return n-o-1}},{key:\"_concatConversationID\",value:function(e){var t,n=e.type,o=e.to,s=e.groupID,a=e.userID;return 1===n?at(a)?at(o)||(t=\"\".concat(S.CONV_C2C).concat(o)):t=\"\".concat(S.CONV_C2C).concat(a):2===n&&(t=\"\".concat(S.CONV_GROUP).concat(s)),t}},{key:\"_getMyUserID\",value:function(){return this._conversationModule.getMyUserID()}},{key:\"_insertConversationGroup\",value:function(e,t){var n=this._getLocalConversation(e);if(n){var o=n.conversationGroupList;-1===o.indexOf(t)&&o.push(t)}}},{key:\"_getLocalConversation\",value:function(e){return this._conversationModule.getLocalConversation(e)}},{key:\"_hasLocalConversation\",value:function(e){return this._conversationModule.hasLocalConversation(e)}},{key:\"_emitConversationUpdate\",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:\"_emitConvGroupListUpdate\",value:function(){this._conversationModule.emitOuterEvent(E.CONVERSATION_GROUP_LIST_UPDATED,m(this._convGroupMap.values()))}},{key:\"_emitConvInGroupUpdate\",value:function(e){var t={groupName:e,conversationList:[]},n=this._conversationModule.getLocalConversationList();t.conversationList=n.filter((function(t){return t.conversationGroupList.includes(e)})),this._conversationModule.emitOuterEvent(E.CONVERSATION_IN_GROUP_UPDATED,t)}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._convGroupMap.clear(),this._startIndex=0,this._pagingStatus=Zt.NOT_START}}]),e}(),vr=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"ConversationModule\",tr.mixin(_(t)),t._messageListHandler=new Qa,t._messageRemindHandler=new hr(_(t)),t._convGroupHandler=new fr(_(t)),t.singlyLinkedList=new lr(100),t._pagingStatus=Zt.NOT_START,t._pagingTimeStamp=0,t._pagingStartIndex=0,t._pagingPinnedTimeStamp=0,t._pagingPinnedStartIndex=0,t._pagingConvIDMap=new Map,t._convIDFromUnreadDBMap=new Map,t._conversationMap=new Map,t._tmpGroupList=[],t._tmpGroupAtTipsList=[],t._peerReadTimeMap=new Map,t._completedMap=new Map,t._roamingMessageKeyAndTimeMap=new Map,t._roamingMessageSequenceMap=new Map,t._remoteGroupReadSequenceMap=new Map,t._convTotalUnreadCount=0,t._pagingGetCostList=[],t._initListeners(),t}return a(s,[{key:\"_initListeners\",value:function(){var e=this.getInnerEmitterInstance();e.on(Za,this._initLocalConversationList,this),e.on(er,this._onProfileUpdated,this)}},{key:\"onCheckTimer\",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:\"_initLocalConversationList\",value:function(){var e=this,t=new ka(\"_initLocalConversationList\");xe.l(\"\".concat(this._n,\".\").concat(\"_initLocalConversationList\"));var n=\"\",o=this._getStorageConversationList(),s=this.isIntl();if(o){for(var a=o.length,r=0;r<a;r++){var i=o[r];if(i){if(i.conversationID===\"\".concat(S.CONV_C2C,\"@TLS#ERROR\")||i.conversationID===\"\".concat(S.CONV_C2C,\"@TLS#NOT_FOUND\"))continue;if(i.groupProfile){var u=i.groupProfile.type;if(Ct(u))continue}}this._conversationMap.set(o[r].conversationID,new _r(o[r],s))}this.emitConversationUpdate(!0,!1),n=\"count:\".concat(a)}else n=\"count:0\";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(Gn)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this.syncConversationList()}},{key:\"onMessageSent\",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:\"onNewMessage\",value:function(e){this._onSendOrReceiveMessage(e)}},{key:\"_onSendOrReceiveMessage\",value:function(e){var t=this,n=e.conversationOptionsList,o=e.isInstantMessage,s=void 0===o||o,a=e.isUnreadC2CMessage,r=void 0!==a&&a,i=e.updateUnreadCount,u=void 0===i||i;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:s,isUnreadC2CMessage:r,isFromGetConversations:!1,updateUnreadCount:u}),s||(this._convIDFromUnreadDBMap=new Map([].concat(m(this._convIDFromUnreadDBMap),m(n.map((function(e){return[e.conversationID,1]}))))),this._diffAndDeleteConversation()),this._setStorageConversationList(),n.filter((function(e){return e.type===S.CONV_TOPIC})).length>0||this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:\"updateConversationGroupProfile\",value:function(e){var t=this;if(!st(e)||0!==e.length)if(0!==this._conversationMap.size){var n=!1;e.forEach((function(e){var o=\"GROUP\".concat(e.groupID);if(t._conversationMap.has(o)){n=!0;var s=t._conversationMap.get(o);s.groupProfile=JSON.parse(JSON.stringify(e)),s.lastMessage.lastSequence<e.nextMessageSeq&&(s.lastMessage.lastSequence=e.nextMessageSeq-1),s.subType||(s.subType=e.type)}})),n&&this.emitConversationUpdate(!0,!1)}else this._tmpGroupList=e}},{key:\"_updateConversationUserProfile\",value:function(e){var t=this;e.data.forEach((function(e){var n=\"C2C\".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:\"onMessageRevoked\",value:function(e){var t=this;if(0!==e.length){var n=null,o=!1,s=[];e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&(n.type===S.CONV_TOPIC?s.push(e):(n.reduceUnreadCount()&&(o=!0),n.isLastMessageRevoked({sequence:e.sequence,time:e.time})&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),o=!0)))})),this.getModule(wn).onMessageRevoked(s),o&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())}}},{key:\"isLastMessageRevoked\",value:function(e){var t=!1,n=e.conversationID,o=e.sequence,s=e.time,a=this._conversationMap.get(n);a&&(t=a.type===S.CONV_TOPIC?this.getModule(wn).isLastMessageRevoked({topicID:n.replace(S.CONV_GROUP,\"\"),sequence:o}):a.isLastMessageRevoked({sequence:o,time:s}));return xe.l(\"\".concat(this._n,\".isLastMessageRevoked options:\").concat(JSON.stringify(e),\" ret:\").concat(t)),t}},{key:\"onMessageDeleted\",value:function(e){var t=this;if(0!==e.length){var n=null;e.forEach((function(e){(n=t._messageListHandler.getLocalMessage(e.conversationID,e.ID))&&(n.isDeleted=!0),e!==n&&(e.isDeleted=!0)}));for(var o=e[0].conversationID,s=this._messageListHandler.getLocalMessageList(o),a={},r=s.length-1;r>=0;r--)if(!s[r].isDeleted){a=s[r];break}var i=this._conversationMap.get(o);if(i){var u=!1;i.lastMessage.lastSequence===a.sequence&&i.lastMessage.lastTime===a.time||(jt(a)&&(a=void 0),i.updateLastMessage(a),i.type!==S.CONV_TOPIC&&(u=!0),xe.l(\"\".concat(this._n,\".onMessageDeleted. update conversationID:\").concat(o,\" with lastMessage:\"),i.lastMessage)),o.startsWith(S.CONV_C2C)&&this.updateUnreadCount(o),u&&this.emitConversationUpdate(!0,!1)}}}},{key:\"onMessageModified\",value:function(e){var t=e.conversationType,n=e.from,o=e.to,s=e.time,a=e.sequence,r=e.elements,i=e.cloudCustomData,u=e.messageVersion,c=this.getMyUserID(),l=\"\".concat(t).concat(o);o===c&&t===S.CONV_C2C&&(l=\"\".concat(t).concat(n));var p=this._messageListHandler.onMessageModified(l,e),d=p.isUpdated,g=p.message;!0===d&&this.emitOuterEvent(E.MESSAGE_MODIFIED,[g]);var _=this._isTopicConversation(l);if(xe.l(\"\".concat(this._n,\".onMessageModified isUpdated:\").concat(d,\" isTopicMessage:\").concat(_,\" from:\").concat(n,\" to:\").concat(o)),_){this.getModule(wn).onMessageModified(e)}else{var h=this._conversationMap.get(l);if(h){var f=h.lastMessage;xe.d(\"\".concat(this._n.onMessageModified,\" lastMessage:\"),JSON.stringify(f),\"options:\",JSON.stringify(e)),f&&f.lastTime===s&&f.lastSequence===a&&f.version!==u&&(f.type=r[0].type,f.payload=r[0].content,f.messageForShow=xt(f.type,f.payload,this.isIntl()),f.cloudCustomData=i,f.version=u,this.emitConversationUpdate(!0,!1))}}return g}},{key:\"onNewGroupAtTips\",value:function(e){var n=this,o=e.dataList,s=null;o.forEach((function(e){e.groupAtTips?s=e.groupAtTips:e.elements?s=t(t({},e.elements),{},{sync:!0}):e.groupAtType&&(s=t(t({},e),{},{sync:!0})),s.__random=e.random,s.__sequence=e.clientSequence,n._tmpGroupAtTipsList.push(s)})),xe.d(\"\".concat(this._n,\".onNewGroupAtTips isReady:\").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:\"_handleGroupAtTipsList\",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var o=n.groupID,s=n.from,a=n.topicID,r=void 0===a?void 0:a,i=n.sync,u=void 0!==i&&i;if(s!==e.getMyUserID())if(at(r)){var c=e._conversationMap.get(\"\".concat(S.CONV_GROUP).concat(o));c&&(c.updateGroupAtInfoList(n),t=!0)}else{var l=e._conversationMap.get(\"\".concat(S.CONV_GROUP).concat(r));if(l){l.updateGroupAtInfoList(n);var p=e.getModule(wn),d=l.groupAtInfoList;p.onConversationProxy({topicID:r,groupAtInfoList:d})}if(jt(l)&&u)e.updateTopicConversation([{conversationID:\"\".concat(S.CONV_GROUP).concat(r),type:S.CONV_TOPIC}]),e._conversationMap.get(\"\".concat(S.CONV_GROUP).concat(r)).updateGroupAtInfoList(n)}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:\"_getC2CPeerReadTime\",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==S.CONV_C2C||n.push(e.conversationID.replace(S.CONV_C2C,\"\"))})),n.length>0){xe.d(\"\".concat(this._n,\"._getC2CPeerReadTime userIDList:\").concat(n));var o=this.getModule(Gn);o&&o.getRemotePeerReadTime(n)}}},{key:\"_getStorageConversationList\",value:function(){return this.getModule(xn).getItem(\"conversationMap\")}},{key:\"_setStorageConversationList\",value:function(){var e=this.getLocalConversationList().filter((function(e){return e.type===S.CONV_C2C||e.type===S.CONV_GROUP&&e.lastMessage.type!==S.MSG_GRP_TIP})).slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(xn).setItem(\"conversationMap\",e)}},{key:\"emitConversationUpdate\",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversationList();if(t){var o=this.getModule(Un);o&&o.updateGroupLastMessage(n)}e&&this.emitOuterEvent(E.CONVERSATION_LIST_UPDATED)}},{key:\"getLocalConversationList\",value:function(){return m(this._conversationMap.values()).filter((function(e){return e.type!==S.CONV_TOPIC}))}},{key:\"getLocalConversation\",value:function(e){return this._conversationMap.get(e)}},{key:\"hasLocalConversation\",value:function(e){return this._conversationMap.has(e)}},{key:\"getLocalOldestMessage\",value:function(e){return this._messageListHandler.getLocalOldestMessage(e)}},{key:\"syncConversationList\",value:function(){var e=this,t=new ka(\"syncConversationList\");return this._pagingStatus===Zt.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){var o=function(e){if(st(e)&&0!==e.length){var t=0;return e.forEach((function(e){t+=e})),(t/e.length).toFixed(0)}}(e._pagingGetCostList);return xe.l(\"\".concat(e._n,\".\").concat(\"syncConversationList\",\". sum \").concat(function(e){if(st(e)&&0!==e.length){var t=0;return e.forEach((function(e){t+=e})),t.toFixed(0)}}(e._pagingGetCostList),\" ms, average \").concat(o,\" ms\")),e._pagingGetCostList.length=0,e._pagingStatus=Zt.RESOLVED,e._diffAndDeleteConversation(),e.emitConversationUpdate(!0,!1),e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setMoreMessage(o).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=Zt.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var o=v(e,2),s=o[0],a=o[1];t.setError(n,s,a).end()})),Ja(n)}))}},{key:\"_diffAndDeleteConversation\",value:function(){var e=this;if(this._isSyncCompleted()){var t=[];this._conversationMap.forEach((function(n,o){!e._pagingConvIDMap.has(o)&&e._convIDFromUnreadDBMap.has(o)&&(e._conversationMap.delete(o),t.push(o))})),xe.l(\"\".concat(this._n,\"._diffAndDeleteConversation list:\").concat(t))}}},{key:\"_patchConversationProperties\",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),o=this._messageRemindHandler.getC2CMessageRemindType(),s=this.getModule(Un).getGroupList();Promise.all([n,o,s]).then((function(){var n=Date.now()-t;xe.l(\"\".concat(e._n,\"._patchConversationProperties ok. cost \").concat(n,\" ms\")),e.emitConversationUpdate(!0,!1),e.emitTotalUnreadMessageCountUpdate()}))}},{key:\"_pagingGetConversationList\",value:function(){var e=this,t=\"\".concat(this._n,\"._pagingGetConversationList\");xe.l(\"\".concat(t,\" timeStamp:\").concat(this._pagingTimeStamp,\" startIndex:\").concat(this._pagingStartIndex)+\" pinnedTimeStamp:\".concat(this._pagingPinnedTimeStamp,\" pinnedStartIndex:\").concat(this._pagingPinnedStartIndex));var n=Date.now();return this._pagingStatus=Zt.PENDING,this.request({protocolName:No,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingPinnedStartIndex,orderType:1}}).then((function(o){var s=o.data,a=s.completeFlag,r=s.conversations,i=void 0===r?[]:r,u=s.timeStamp,c=s.startIndex,l=s.pinnedTimeStamp,p=s.pinnedStartIndex,d=s.groupItem,g=Date.now()-n;if(e._pagingGetCostList.push(g),xe.l(\"\".concat(t,\" ok. completeFlag:\").concat(a,\" count:\").concat(i.length,\" cost \").concat(g,\" ms\")),e._convGroupHandler.onConvGroupListSynced(d),i.length>0){var _=e._getConversationOptions(i);e._pagingConvIDMap=new Map([].concat(m(e._pagingConvIDMap),m(_.map((function(e){return[e.conversationID,1]}))))),e._updateLocalConversationList({conversationOptionsList:_,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return za();e.triggerReady()}return e._pagingTimeStamp=u,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=l,e._pagingPinnedStartIndex=p,1!==a?e._pagingGetConversationList():(e._handleGroupAtTipsList(),e._convGroupHandler.getRemoteConvGroupList(),za())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(xe.w(\"\".concat(t,\" failed. error:\"),n),e.triggerReady())),n}))}},{key:\"_updateLocalConversationList\",value:function(e){var t,n=e.isFromGetConversations,o=e.isInstantMessage,s=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(m(t.toBeUpdatedConversationList),m(this._conversationMap)))),n||(this._updateUserOrGroupProfile(t.newConversationList),o&&this.emitTotalUnreadMessageCountUpdate()),xe.d(\"\".concat(this._n,\"._updateLocalConversationList cost \").concat(Date.now()-s,\" ms\"))}},{key:\"_getTmpConversationListMapping\",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,o=e.isInstantMessage,s=e.isUnreadC2CMessage,a=void 0!==s&&s,r=e.updateUnreadCount,i=[],u=[],c=this.getModule(Un),l=this.getModule(Pn),p=this.isIntl(),d=0,g=t.length;d<g;d++){var _=new _r(t[d],p),h=_.conversationID;if(h!==\"\".concat(S.CONV_C2C,\"@TLS#ERROR\")&&h!==\"\".concat(S.CONV_C2C,\"@TLS#NOT_FOUND\"))if(this._conversationMap.has(h)){var f=this._conversationMap.get(h),v=[\"unreadCount\",\"allowType\",\"adminForbidType\",\"payload\",\"isPinned\"];!1===o&&v.push(\"lastMessage\");var m=t[d].lastMessage,M=!at(m);M||t[d].type===S.CONV_TOPIC||this._onLastMessageNotExist(t[d]),at(o)&&M&&null===f.lastMessage.payload&&(f.lastMessage.payload=m.payload),jt(f.lastMessage.revoker)||(f.lastMessage.revoker=null),pt(f,_,v,[null,void 0,\"\",0,NaN]),!0===r&&f.updateUnreadCount({nextUnreadCount:_.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:a}),o&&M&&(m.payload&&(f.lastMessage.payload=m.payload),f.type===S.CONV_GROUP&&(f.lastMessage.nameCard=m.nameCard,f.lastMessage.nick=m.nick)),M&&f.lastMessage.cloudCustomData!==m.cloudCustomData&&(f.lastMessage.cloudCustomData=m.cloudCustomData||\"\"),this._conversationMap.delete(h),i.push([h,f])}else{if(_.type===S.CONV_GROUP&&c){var y=_.groupProfile.groupID,I=c.getLocalGroupProfile(y);I&&(_.groupProfile=I,!0===r&&_.updateUnreadCount({nextUnreadCount:0}))}else if(_.type===S.CONV_C2C){var C=h.replace(S.CONV_C2C,\"\");l&&l.isMyFriend(C)&&(_.remark=l.getFriendRemark(C))}u.push(_),i.push([h,_])}}var T=this.getModule(wn);return i.forEach((function(e){if(e[1].type===S.CONV_TOPIC){var t=e[1],n=t.conversationID,o=t.unreadCount,s=t.groupAtInfoList;T.onConversationProxy({topicID:n.replace(S.CONV_GROUP,\"\"),unreadCount:o,groupAtInfoList:jt(s)?void 0:s})}})),{toBeUpdatedConversationList:i,newConversationList:u}}},{key:\"_onLastMessageNotExist\",value:function(e){new ka(\"lastMessageNotExist\").setMessage(\"\".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:\"_sortConversationList\",value:function(e){var t=[],n=[],o=[],s=[];return e.forEach((function(e){!0===e[1].isPinned?jt(e[1].lastMessage.lastTime)?n.push(e):t.push(e):jt(e[1].lastMessage.lastTime)?s.push(e):o.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n).concat(o.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime}))).concat(s)}},{key:\"_sortConversationListAndEmitEvent\",value:function(){this._conversationMap=new Map(this._sortConversationList(m(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:\"_updateUserOrGroupProfile\",value:function(e){var t=this;if(0!==e.length){var n=[],o=[],s=this.getModule(On),a=this.getModule(Un);e.forEach((function(e){if(e.type===S.CONV_C2C)n.push(e.toAccount);else if(e.type===S.CONV_GROUP){var t=e.toAccount;a.hasLocalGroup(t)?e.groupProfile=a.getLocalGroupProfile(t):o.push(t)}})),xe.l(\"\".concat(this._n,\"._updateUserOrGroupProfile c2cUserIDList:\").concat(n,\" groupIDList:\").concat(o)),n.length>0&&s.getUserProfile({userIDList:n}).then((function(e){var n=e.data;st(n)?n.forEach((function(e){t._doUpdateUserProfile(\"C2C\".concat(e.userID),e)})):t._doUpdateUserProfile(\"C2C\".concat(n.userID),n)})),o.length>0&&a.getGroupProfileAdvance({groupIDList:o,responseFilter:{groupBaseInfoFilter:[\"Type\",\"Name\",\"FaceUrl\"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n=\"GROUP\".concat(e.groupID);if(t._conversationMap.has(n)){var o=t._conversationMap.get(n);pt(o.groupProfile,e,[],[null,void 0,\"\",0,NaN]),!o.subType&&e.type&&(o.subType=e.type)}}))}))}}},{key:\"_doUpdateUserProfile\",value:function(e,t){this.hasLocalConversation(e)&&(this.getLocalConversation(e).userProfile=t)}},{key:\"_getConversationOptions\",value:function(e){var n=this,o=[],s=e.filter((function(e){var t=e.type,n=e.userID;return 1===t&&\"@TLS#NOT_FOUND\"!==n&&\"@TLS#ERROR\"!==n||2===t})),a=this.getMyUserID(),r=s.map((function(e){if(at(e.lastMsg)&&(e.lastMsg={elements:[]}),1===e.type){var s={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return o.push(s),{conversationID:\"C2C\".concat(e.userID),type:\"C2C\",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?n._amendLayersOverLimitProperty(e.lastMsg.elements[0].content):null,cloudCustomData:e.lastMsg.cloudCustomData||\"\",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:\"\",nameCard:\"\",version:0,isPeerRead:e.lastC2CMsgFromAccount===a&&e.time<=e.c2cPeerReadTime,revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null},userProfile:new ur(s),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:\"\",customData:e.customMark||\"\",markList:Bt(e.standardMark),conversationGroupList:n._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}return{conversationID:\"GROUP\".concat(e.groupID),type:\"GROUP\",lastMessage:t(t({lastTime:e.time,lastSequence:e.sequence,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},n._patchTypeAndPayload(e)),{},{cloudCustomData:e.lastMsg.cloudCustomData||\"\",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||\"\",nameCard:e.senderNameCard||\"\",revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null}),groupProfile:new dr({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:\"\",version:0,customData:e.customMark||\"\",markList:Bt(e.standardMark),conversationGroupList:n._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}));o.length>0&&this.getModule(On).onConversationsProfileUpdated(o);return r}},{key:\"_patchTypeAndPayload\",value:function(e){var n=e.lastMsg,o=n.event,s=void 0===o?void 0:o,a=n.elements,r=void 0===a?[]:a,i=n.groupTips,u=void 0===i?{}:i;if(!at(s)&&!jt(u)){var c=new Ha(u);c.setElement({type:S.MSG_GRP_TIP,content:t(t({},u.elements),{},{groupProfile:u.groupProfile})});var l=JSON.parse(JSON.stringify(c.payload));return c=null,{type:S.MSG_GRP_TIP,payload:l}}return{type:r[0]?r[0].type:null,payload:r[0]?this._amendLayersOverLimitProperty(r[0].content):null}}},{key:\"_amendLayersOverLimitProperty\",value:function(e){var t=e.layersOverLimit;return 0===t?e.layersOverLimit=!1:1===t&&(e.layersOverLimit=!0),e}},{key:\"getLocalMessageList\",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:\"deleteLocalMessage\",value:function(e){e instanceof Ha&&this._messageListHandler.remove(e)}},{key:\"onConversationDeleted\",value:function(e){if(st(e)){var t=e.map((function(e){var t=e.type,n=e.userID,o=e.groupID;return 1===t?\"\".concat(S.CONV_C2C).concat(n):2===t?\"\".concat(S.CONV_GROUP).concat(o):void 0}));xe.l(\"\".concat(this._n,\".onConversationDeleted conversationIDList:\").concat(t)),this.deleteLocalConversationList(t)}}},{key:\"onConversationPinned\",value:function(e){var t=this;if(st(e)){var n=!1;e.forEach((function(e){var o,s=e.type,a=e.userID,r=e.groupID;1===s?o=t.getLocalConversation(\"\".concat(S.CONV_C2C).concat(a)):2===s&&(o=t.getLocalConversation(\"\".concat(S.CONV_GROUP).concat(r))),o&&(xe.l(\"\".concat(t._n,\".onConversationPinned conversationID:\").concat(o.conversationID,\" isPinned:\").concat(o.isPinned)),o.isPinned||(o.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:\"onConversationUnpinned\",value:function(e){var t=this;if(st(e)){var n=!1;e.forEach((function(e){var o,s=e.type,a=e.userID,r=e.groupID;1===s?o=t.getLocalConversation(\"\".concat(S.CONV_C2C).concat(a)):2===s&&(o=t.getLocalConversation(\"\".concat(S.CONV_GROUP).concat(r))),o&&(xe.l(\"\".concat(t._n,\".onConversationUnpinned conversationID:\").concat(o.conversationID,\" isPinned:\").concat(o.isPinned)),o.isPinned&&(o.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:\"getMessageList\",value:function(e){var t=this,n=e.conversationID,o=e.nextReqMessageID,s=e.count,a=\"\".concat(this._n,\".getMessageList\"),r=this.getLocalConversation(n),i=\"\";if(r&&r.groupProfile&&(i=r.groupProfile.type),Ct(i))return xe.l(\"\".concat(a,\" not available in avchatroom. conversationID:\").concat(n)),za({messageList:[],nextReqMessageID:\"\",isCompleted:!0});(at(s)||s>15)&&(s=15),!o&&this._isNotInCommunity(n)&&(this._messageListHandler.removeByConversationID(n),this._completedMap.delete(n),this._roamingMessageSequenceMap.delete(n));var u=this._computeRemainingCount({conversationID:n,nextReqMessageID:o}),c=this._completedMap.has(n);if(xe.l(\"\".concat(a,\" conversationID:\").concat(n,\" nextReqMessageID:\").concat(o)+\" remainingCount:\".concat(u,\" count:\").concat(s,\" isCompleted:\").concat(c)),this._needGetHistory({conversationID:n,remainingCount:u,count:s}))return this.getHistoryMessages({conversationID:n,nextReqMessageID:o,count:20}).then((function(e){var o=e.nextReqID,s=e.storedMessageList,r=t._completedMap.has(n),i=s;u>0&&(i=t._messageListHandler.getLocalMessageList(n).slice(0,s.length+u));var c={nextReqMessageID:r?\"\":o,messageList:i,isCompleted:r};return xe.l(\"\".concat(a,\" ret.nextReqMessageID:\").concat(c.nextReqMessageID,\" ret.isCompleted:\").concat(c.isCompleted,\" ret.length:\").concat(i.length)),Ka(c)}));this.modifyMessageList(n);var l=this._getMessageListFromMemory({conversationID:n,nextReqMessageID:o,count:s});return za(l)}},{key:\"_getMessageListFromMemory\",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,o=e.count,s=\"\".concat(this._n,\"._getMessageListFromMemory\"),a=this._messageListHandler.getLocalMessageList(t),r=a.length,i=0,u={isCompleted:!1,nextReqMessageID:\"\",messageList:[]};return n?(i=a.findIndex((function(e){return e.ID===n})))>o?(u.messageList=a.slice(i-o,i),u.nextReqMessageID=a[i-o].ID):(u.messageList=a.slice(0,i),u.isCompleted=!0):r>o?(i=r-o,u.messageList=a.slice(i,r),u.nextReqMessageID=a[i].ID):(u.messageList=a.slice(0,r),u.isCompleted=!0),xe.l(\"\".concat(s,\" conversationID:\").concat(t)+\" ret.nextReqMessageID:\".concat(u.nextReqMessageID,\" ret.isCompleted:\").concat(u.isCompleted,\" ret.length:\").concat(u.messageList.length)),u}},{key:\"getMessageListHopping\",value:function(e){var t=e.conversationID,n=e.sequence,o=e.time,s=e.count,a=e.direction,r=void 0===a?0:a;if((at(s)||s>15)&&(s=15),t.startsWith(S.CONV_C2C)){var i=this.getModule(Gn),u=t.replace(S.CONV_C2C,\"\");return i.getRoamingMessagesHopping({peerAccount:u,time:o,count:s,direction:r})}if(t.startsWith(S.CONV_GROUP)){var c=this.getModule(Un),l=t.replace(S.CONV_GROUP,\"\");return c.getRoamingMessagesHopping({groupID:l,sequence:n,count:s,direction:r})}}},{key:\"_computeRemainingCount\",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,o=this._messageListHandler.getLocalMessageList(t),s=o.length;if(!n)return s;var a=0;return Et(t)?a=o.findIndex((function(e){return e.ID===n})):St(t)&&(a=-1!==n.indexOf(\"-\")?o.findIndex((function(e){return e.ID===n})):o.findIndex((function(e){return e.sequence===n}))),-1===a&&(a=0),a}},{key:\"_getMessageListSize\",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:\"_needGetHistory\",value:function(e){var t=e.conversationID,n=e.remainingCount,o=e.count,s=this.getLocalConversation(t),a=\"\";return s&&s.groupProfile&&(a=s.groupProfile.type),!kt(t)&&!Ct(a)&&(!(St(t)&&this._isPagingGetGroupListCompleted()&&this._getLocalGroupCount()<=4e3&&!this._hasLocalGroup(t)&&!this._isTopicConversation(t))&&(n<=o&&!this._completedMap.has(t)))}},{key:\"_isTopicConversation\",value:function(e){var t=e.replace(S.CONV_GROUP,\"\");return Dt(t)}},{key:\"getHistoryMessages\",value:function(e){var t=e.conversationID,n=e.count;if(t===S.CONV_SYSTEM)return za();var o=15;n>20&&(o=20);var s=null;if(Et(t)){var a=this._roamingMessageKeyAndTimeMap.has(t);return(s=this.getModule(Gn))?s.getRoamingMessage({conversationID:t,peerAccount:t.replace(S.CONV_C2C,\"\"),count:o,lastMessageTime:a?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:a?this._roamingMessageKeyAndTimeMap.get(t).messageKey:\"\"}):Ja({code:da.CANNOT_FIND_MODULE})}if(St(t)){if(!(s=this.getModule(Un)))return Ja({code:da.CANNOT_FIND_MODULE});var r=null;this._conversationMap.has(t)&&(r=this._conversationMap.get(t).lastMessage);var i=0;r&&(i=r.lastSequence);var u=this._roamingMessageSequenceMap.get(t);return s.getRoamingMessage({conversationID:t,groupID:t.replace(S.CONV_GROUP,\"\"),count:o,sequence:u||i})}return za()}},{key:\"patchConversationLastMessage\",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,o=n.messageForShow,s=n.payload;if(jt(o)||jt(s)){var a=this._messageListHandler.getLocalMessageList(e);if(0===a.length)return;var r=a[a.length-1];xe.l(\"\".concat(this._n,\".patchConversationLastMessage conversationID:\").concat(e,\" payload:\"),r.payload),t.updateLastMessage(r)}}}},{key:\"onRoamingMessage\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=n.startsWith(S.CONV_C2C)?S.CONV_C2C:S.CONV_GROUP,a=null,r=[],i=[],u=0,c=e.length,l=null,p=s===S.CONV_GROUP,d=this.getModule(Hn),g=this.getFileDownloadProxy(),_=function(){u=p?e.length-1:0,c=p?0:e.length},h=function(){p?--u:++u},f=function(){return p?u>=c:u<c};for(_();f();h())if(p&&1===e[u].sequence&&o&&this.setCompleted(n),1!==e[u].isPlaceMessage)if((a=new Ha(e[u])).to=e[u].to,s!==S.CONV_GROUP||at(e[u].topicID)||(a.to=e[u].topicID),a.isSystemMessage=!!e[u].isSystemMessage,a.conversationType=s,4===e[u].event?l={type:S.MSG_GRP_TIP,content:t(t({},e[u].elements),{},{groupProfile:e[u].groupProfile})}:(e[u].elements=d.parseElements(e[u].elements,e[u].from),l=e[u].elements),p||a.setNickAndAvatar({nick:e[u].nick,avatar:e[u].avatar}),jt(l)){var v=new ka(\"emptyMessageBody\");v.setMessage(\"from:\".concat(a.from,\" to:\").concat(a.to,\" sequence:\").concat(a.sequence,\" event:\").concat(e[u].event)),v.setNetworkType(this.getNetworkType()).setLevel(\"warning\").end()}else a.setElement(l,g),a.reInitialize(this.getMyUserID()),r.push(a);return _=h=f=null,o?(this._messageListHandler.unshift(r,i),r=null,i):(i=null,r)}},{key:\"findMessage\",value:function(e){return this._messageListHandler.findMessage(e)}},{key:\"_isNotInCommunity\",value:function(e){var t=!1;if(e.startsWith(S.CONV_GROUP)&&this._isTopicConversation(e)){var n=qt(e.replace(S.CONV_GROUP,\"\"));this.getModule(Un).hasLocalGroup(n)||(t=!0)}return t}},{key:\"deleteTopicRoamingMessageInfo\",value:function(e){var t=this;Tt({groupID:e})&&this._messageListHandler.getTopicConversationIDList(e).forEach((function(e){t._messageListHandler.removeByConversationID(e),t._completedMap.delete(e),t._roamingMessageSequenceMap.delete(e)}))}},{key:\"deleteGroupRomaingMessageInfo\",value:function(e){var t=\"\".concat(S.CONV_GROUP).concat(e);this._messageListHandler.removeByConversationID(t),this._completedMap.delete(t),this._roamingMessageSequenceMap.delete(t)}},{key:\"setMessageRead\",value:function(e){var t=e.conversationID,n=this.getLocalConversation(t);if(xe.l(\"\".concat(this._n,\".setMessageRead conversationID:\").concat(t,\" unreadCount:\").concat(n?n.unreadCount:0)),!n)return za();if(n.type!==S.CONV_GROUP&&n.type!==S.CONV_TOPIC||jt(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return za();if(n.type===S.CONV_GROUP&&!this._hasLocalGroup(t))return 0!==n.unreadCount&&(n.unreadCount=0,this.emitConversationUpdate(!0,!1)),za();var o=this._messageListHandler.getLocalLastMessage(t),s=n.lastMessage.lastTime;o&&s<o.time&&(s=o.time);var a=n.lastMessage.lastSequence;if(o&&a<o.sequence&&(a=o.sequence),n.type===S.CONV_TOPIC&&at(o)){var r=this.getModule(wn),i=t.replace(S.CONV_GROUP,\"\"),u=qt(i),c=r.getLocalTopic(u,i);c&&(a=c.nextMessageSeq-1)}var l=null;switch(n.type){case S.CONV_C2C:return(l=this.getModule(Gn))?l.setMessageRead({conversationID:t,lastMessageTime:s}):Ja({code:da.CANNOT_FIND_MODULE});case S.CONV_GROUP:case S.CONV_TOPIC:return(l=this.getModule(Un))?l.setMessageRead({conversationID:t,lastMessageSeq:a}):Ja({code:da.CANNOT_FIND_MODULE});case S.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),za();default:return za()}}},{key:\"setAllMessageRead\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=\"setAllMessageRead\",o=\"\".concat(this._n,\".\").concat(n);t.scope||(t.scope=S.READ_ALL_MSG),xe.l(\"\".concat(o,\" options:\"),t);var s=this._createSetAllMessageReadPack(t);if(0===s.readAllC2CMessage&&0===s.groupMessageReadInfoList.length)return za();var a=new ka(n);return this.request({protocolName:rs,requestData:s}).then((function(n){var o=n.data,s=e._handleAllMessageRead(o);return a.setMessage(\"scope:\".concat(t.scope,\" failureGroups:\").concat(JSON.stringify(s))).setNetworkType(e.getNetworkType()).end(),za()})).catch((function(t){return e.probeNetwork().then((function(e){var n=v(e,2),o=n[0],s=n[1];a.setError(t,o,s).end()})),xe.w(\"\".concat(o,\" failed. error:\"),t),Ja({code:t&&t.code?t.code:da.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:void 0})}))}},{key:\"setConversationCustomData\",value:function(e){return this._convGroupHandler.setConvCustomData(e)}},{key:\"markConversation\",value:function(e){return this._convGroupHandler.markConversation(e)}},{key:\"getConversationGroupList\",value:function(){return this._convGroupHandler.getLocalConvGroupList()}},{key:\"createConversationGroup\",value:function(e){return this._convGroupHandler.createConvGroup(e)}},{key:\"deleteConversationGroup\",value:function(e){return this._convGroupHandler.deleteConvGroup(e)}},{key:\"renameConversationGroup\",value:function(e){return this._convGroupHandler.renameConvGroup(e)}},{key:\"addConversationsToGroup\",value:function(e){return this._convGroupHandler.addConvsToGroup(e)}},{key:\"deleteConversationsFromGroup\",value:function(e){return this._convGroupHandler.deleteConvsFromGroup(e)}},{key:\"onConversationMarkUpdated\",value:function(e){this._convGroupHandler.onConvMarkUpdated(e)}},{key:\"onConversationGroupCreated\",value:function(e){this._convGroupHandler.onConvGroupCreated(e)}},{key:\"onConversationGroupDeleted\",value:function(e){this._convGroupHandler.onConvGroupDeleted(e)}},{key:\"onConversationGroupNameUpdated\",value:function(e){this._convGroupHandler.onConvGroupNameUpdated(e)}},{key:\"onConversationInGroupUpdated\",value:function(e){this._convGroupHandler.onConvInGroupUpdated(e)}},{key:\"onConversationAddedToOrDeletedFromGroup\",value:function(e){this._convGroupHandler.onConvAddedToOrDeletedFromGroup(e)}},{key:\"_getConversationLastMessageSequence\",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:\"_getConversationLastMessageTime\",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:\"_createSetAllMessageReadPack\",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},o=e.scope,s=D(this._conversationMap);try{for(s.s();!(t=s.n()).done;){var a=v(t.value,2)[1];if(a.unreadCount>0)if(a.type===S.CONV_C2C&&0===n.readAllC2CMessage){if(o===S.READ_ALL_MSG)n.readAllC2CMessage=1;else if(o===S.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(a.type===S.CONV_GROUP&&(o===S.READ_ALL_GROUP_MSG||o===S.READ_ALL_MSG)){var r=this._getConversationLastMessageSequence(a);n.groupMessageReadInfoList.push({groupID:a.groupProfile.groupID,messageSequence:r})}}}catch(i){s.e(i)}finally{s.f()}return n}},{key:\"onPushedAllMessageRead\",value:function(e){this._handleAllMessageRead(e)}},{key:\"_handleAllMessageRead\",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,o=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate()),o}},{key:\"_parseGroupReadInfo\",value:function(e){var t=[];if(e&&e.length)for(var n=0,o=e.length;n<o;n++){var s=e[n],a=s.groupID,r=s.sequence,i=s.retCode,u=s.lastMessageSeq;at(i)?this._remoteGroupReadSequenceMap.set(a,u):(this._remoteGroupReadSequenceMap.set(a,r),0!==i&&t.push(\"\".concat(a,\"-\").concat(r,\"-\").concat(i)))}return t}},{key:\"_updateAllConversationUnreadCount\",value:function(e){var t,n=e.readAllC2CMessage,o=0,s=D(this._conversationMap);try{for(s.s();!(t=s.n()).done;){var a=v(t.value,2),r=a[0],i=a[1];if(i.unreadCount>=1){if(1===n&&i.type===S.CONV_C2C){var u=this._getConversationLastMessageTime(i);this.updateIsReadAfterReadReport({conversationID:r,lastMessageTime:u})}else if(i.type===S.CONV_GROUP){var c=r.replace(S.CONV_GROUP,\"\");if(this._remoteGroupReadSequenceMap.has(c)){var l=this._remoteGroupReadSequenceMap.get(c),p=this._getConversationLastMessageSequence(i);this.updateIsReadAfterReadReport({conversationID:r,remoteReadSequence:l}),p>=l&&this._remoteGroupReadSequenceMap.delete(c)}}this.updateUnreadCount(r,!1)&&(o+=1)}}}catch(d){s.e(d)}finally{s.f()}return o}},{key:\"isRemoteRead\",value:function(e){var t=e.conversationID,n=e.sequence,o=t.replace(S.CONV_GROUP,\"\"),s=!1;if(this._remoteGroupReadSequenceMap.has(o)){var a=this._remoteGroupReadSequenceMap.get(o);n<=a&&(s=!0,xe.l(\"\".concat(this._n,\".isRemoteRead conversationID:\").concat(t,\" messageSequence:\").concat(n,\" remoteReadSequence:\").concat(a))),n>=a+10&&this._remoteGroupReadSequenceMap.delete(o)}return s}},{key:\"updateIsReadAfterReadReport\",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,o=e.lastMessageTime,s=this._messageListHandler.getLocalMessageList(t);if(0!==s.length)for(var a,r=s.length-1;r>=0;r--)if(a=s[r],!(o&&a.time>o||n&&a.sequence>n)){if(\"in\"===a.flow&&a.isRead)break;a.setIsRead(!0)}}},{key:\"updateUnreadCount\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,o=this.getLocalConversation(e),s=this._messageListHandler.getLocalMessageList(e);if(o){var a=o.unreadCount,r=s.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;if(a!==r&&(o.unreadCount=r,n=!0,xe.l(\"\".concat(this._n,\".updateUnreadCount from \").concat(a,\" to \").concat(r,\", conversationID:\").concat(e)),!0===t&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())),n&&o.type===S.CONV_TOPIC){var i=o.unreadCount,u=this.getModule(wn),c=e.replace(S.CONV_GROUP,\"\");u.onConversationProxy({topicID:c,unreadCount:i})}return n}}},{key:\"clearGroupAtInfoList\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversation(e);if(n&&n.groupAtInfoList.length>0){if(n.clearGroupAtInfoList(),xe.l(\"\".concat(this._n,\".clearGroupAtInfoList conversationID:\").concat(e)),n.type===S.CONV_TOPIC){var o=n.groupAtInfoList,s=this.getModule(wn),a=e.replace(S.CONV_GROUP,\"\");s.onConversationProxy({topicID:a,groupAtInfoList:o})}!0===t&&this.emitConversationUpdate(!0,!1)}}},{key:\"updateReadReceiptInfo\",value:function(e){var t=this,n=e.userID,o=void 0===n?void 0:n,s=e.groupID,a=void 0===s?void 0:s,r=e.readReceiptList;if(!jt(r)){var i=[];if(at(o)){if(!at(a)){var u=\"\".concat(S.CONV_GROUP).concat(a);r.forEach((function(e){var n=e.tinyID,o=e.clientTime,s=e.random,r=e.readCount,c=e.unreadCount,l=\"\".concat(n,\"-\").concat(o,\"-\").concat(s),p=t._messageListHandler.getLocalMessage(u,l),d={groupID:a,messageID:l,readCount:0,unreadCount:0};p&&($e(r)&&(p.readReceiptInfo.readCount=r,d.readCount=r),$e(c)&&(p.readReceiptInfo.unreadCount=c,d.unreadCount=c),i.push(d))}))}}else{var c=\"\".concat(S.CONV_C2C).concat(o);r.forEach((function(e){var n=e.tinyID,s=e.clientTime,a=e.random,r=\"\".concat(n,\"-\").concat(s,\"-\").concat(a),u=t._messageListHandler.getLocalMessage(c,r);if(u){u.readReceiptInfo.isPeerRead=!0;var l={userID:o,messageID:r,isPeerRead:!0};i.push(l)}}))}i.length>0&&this.emitOuterEvent(E.MESSAGE_READ_RECEIPT_RECEIVED,i)}}},{key:\"recomputeGroupUnreadCount\",value:function(e){var t=e.conversationID,n=e.count,o=this.getLocalConversation(t);if(o){var s=o.unreadCount,a=s-n;a<0&&(a=0),o.unreadCount=a,xe.l(\"\".concat(this._n,\".recomputeGroupUnreadCount from \").concat(s,\" to \").concat(a,\", conversationID:\").concat(t))}}},{key:\"updateIsRead\",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!kt(t.type)){for(var o=[],s=0,a=n.length;s<a;s++)\"in\"!==n[s].flow?\"out\"!==n[s].flow||n[s].isRead||n[s].setIsRead(!0):o.push(n[s]);var r=0;if(t.type===S.CONV_C2C){var i=o.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;r=o.length-t.unreadCount-i}else r=o.length-t.unreadCount;for(var u=0;u<r&&!o[u].isRead;u++)o[u].setIsRead(!0)}}},{key:\"deleteGroupAtTips\",value:function(e){var t=this,n=\"\".concat(this._n,\".deleteGroupAtTips\");xe.l(\"\".concat(n));var o=this._conversationMap.get(e);if(!o)return Promise.resolve();var s=o.groupAtInfoList;if(0===s.length)return Promise.resolve();var a=void 0;e.startsWith(S.CONV_GROUP)&&(a=e.replace(S.CONV_GROUP,\"\"));var r=m(s);if((Tt({groupID:a})||Dt(a))&&0===(r=s.filter((function(e){return!e.atTypeArray.includes(S.CONV_AT_ALL)}))).length)return this.clearGroupAtInfoList(e,!1),Promise.resolve();var i=this.getMyUserID();return this.request({protocolName:bo,requestData:{messageListToDelete:r.map((function(e){return{from:e.from,to:i,messageSeq:e.__sequence,messageRandom:e.__random,groupID:at(e.topicID)?e.groupID:e.topicID}}))}}).then((function(){return xe.l(\"\".concat(n,\" ok. count:\").concat(s.length)),t.clearGroupAtInfoList(e,!1),Promise.resolve()})).catch((function(e){return xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"appendToMessageList\",value:function(e){this._messageListHandler.pushIn(e)}},{key:\"setMessageRandom\",value:function(e){this.singlyLinkedList.set(e.random)}},{key:\"deleteMessageRandom\",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:\"pushIntoMessageList\",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:\"_isMessageFromCurrentInstance\",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:\"revoke\",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:\"getPeerReadTime\",value:function(e){return this._peerReadTimeMap.get(e)}},{key:\"recordPeerReadTime\",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:\"updateMessageIsPeerReadProperty\",value:function(e,t){if(e.startsWith(S.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);if(n.length>0&&this.emitOuterEvent(E.MESSAGE_READ_BY_PEER,n),this._conversationMap.has(e)){var o=this._conversationMap.get(e).lastMessage;jt(o)||o.fromAccount===this.getMyUserID()&&o.lastTime<=t&&!o.isPeerRead&&(o.isPeerRead=!0,this.emitConversationUpdate(!0,!1))}}}},{key:\"updateMessageIsModifiedProperty\",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:\"setCompleted\",value:function(e){xe.l(\"\".concat(this._n,\".setCompleted. conversationID:\").concat(e)),this._completedMap.set(e,!0)}},{key:\"updateRoamingMessageKeyAndTime\",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:\"updateRoamingMessageSequence\",value:function(e,t){this._roamingMessageSequenceMap.set(e,t)}},{key:\"getConversationList\",value:function(e){var t=this,n=\"getConversationList\",o=\"\".concat(this._n,\".\").concat(n),s=\"pagingStatus:\".concat(this._pagingStatus,\", local conversation count:\").concat(this._conversationMap.size,\", options:\").concat(e);if(xe.l(\"\".concat(o,\". \").concat(s)),this._pagingStatus===Zt.REJECTED){var a=new ka(n);return a.setMessage(s),this.syncConversationList().then((function(){a.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return Ka({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}if(0===this._conversationMap.size){var r=new ka(n);return r.setMessage(s),this.syncConversationList().then((function(){r.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return Ka({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}var i=this._getConversationList(e);return xe.l(\"\".concat(o,\". returned conversation count:\").concat(i.length)),za({conversationList:i,isSyncCompleted:this._isSyncCompleted()})}},{key:\"_getConversationList\",value:function(e){if(at(e))return this.getLocalConversationList();if(st(e))return 0===e.length?[]:this.getLocalConversationList().filter((function(t){return e.includes(t.conversationID)}));if(ot(e)){var t=e.type,n=e.markType,o=e.groupName;return this.getLocalConversationList().filter((function(e){return(t!==S.CONV_C2C&&t!==S.CONV_GROUP||e.type===t)&&(!et(o)||e.conversationGroupList.includes(o))&&(!$e(n)||e.markList.includes(n))}))}return[]}},{key:\"_handleC2CPeerReadTime\",value:function(){var e,t=D(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2),o=n[0],s=n[1];s.type===S.CONV_C2C&&(xe.d(\"\".concat(this._n,\"._handleC2CPeerReadTime conversationID:\").concat(o,\" peerReadTime:\").concat(s.peerReadTime)),this.recordPeerReadTime(o,s.peerReadTime))}}catch(a){t.e(a)}finally{t.f()}}},{key:\"_isPagingGetGroupListCompleted\",value:function(){return this.getModule(Un).isPagingGetCompleted()}},{key:\"_getLocalGroupCount\",value:function(){return this.getModule(Un).getLocalGroupList().length}},{key:\"_hasLocalGroup\",value:function(e){return this.getModule(Un).hasLocalGroup(e.replace(S.CONV_GROUP,\"\"))}},{key:\"getConversationProfile\",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new _r({conversationID:e,type:e.slice(0,3)===S.CONV_C2C?S.CONV_C2C:S.CONV_GROUP},this.isIntl()))._isInfoCompleted||t.type===S.CONV_SYSTEM)return za({conversation:t});if(St(e)&&!this._hasLocalGroup(e))return za({conversation:t});var o=\"\".concat(this._n,\".\").concat(\"getConversationProfile\"),s=new ka(\"getConversationProfile\");return xe.l(\"\".concat(o,\". conversationID:\").concat(e,\" remark:\").concat(t.remark,\" lastMessage:\"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(a){s.setNetworkType(n.getNetworkType()).setMessage(\"conversationID:\".concat(e,\" unreadCount:\").concat(a.data.conversation.unreadCount)).end();var r=n.getModule(Pn);if(r&&t.type===S.CONV_C2C){var i=e.replace(S.CONV_C2C,\"\");if(r.isMyFriend(i)){var u=r.getFriendRemark(i);t.remark!==u&&(t.remark=u,xe.l(\"\".concat(o,\". conversationID:\").concat(e,\" patch remark:\").concat(t.remark)))}}return xe.l(\"\".concat(o,\" ok. conversationID:\").concat(e)),a})).catch((function(t){return n.probeNetwork().then((function(n){var o=v(n,2),a=o[0],r=o[1];s.setError(t,a,r).setMessage(\"conversationID:\".concat(e)).end()})),xe.e(\"\".concat(o,\" failed. error:\"),t),Ja(t)}))}},{key:\"_updateUserOrGroupProfileCompletely\",value:function(e){var t=this;return e.type===S.CONV_C2C?this.getModule(On).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var o=n.data;return 0===o.length?Ja(new Wa({code:da.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=o[0],e._isInfoCompleted=!0,t._unshiftConversation(e),za({conversation:e}))})):this.getModule(Un).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),za({conversation:e})}))}},{key:\"_unshiftConversation\",value:function(e){e instanceof _r&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(m(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:\"_onProfileUpdated\",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var o=t._conversationMap.get(\"\".concat(S.CONV_C2C).concat(n));o&&(o.userProfile=e)}}))}},{key:\"_isSyncCompleted\",value:function(){return this._pagingStatus===Zt.RESOLVED}},{key:\"_errorLog\",value:function(e,t,n,o){var s=new Error(\"Params validate failed.\"),a=\"\".concat(this.getErrorMessage(\"API_REFER\")).concat(e);throw xe.w(\"[\".concat(e,\"] | \").concat(t,\" | \").concat(this.getErrorMessage(n,o),\", \").concat(a)),xe.e(\"[\".concat(e,\"] Invalid \").concat(t,\": type check failed for \").concat(t,\".\")),s}},{key:\"_isValidConversationID\",value:function(e){return Et(e)||St(e)||kt(e)}},{key:\"deleteConversation\",value:function(e){var t=this,n=\"deleteConversation\";return et(e)||nt(e)||this._errorLog(n,\"options\",\"StringOrObjectRequiredLog\"),et(e)?(this._isValidConversationID(e)||this._errorLog(n,\"options\",\"InvalidConversationID\",e),xe.l(\"\".concat(this._n,\".\").concat(n,\" conversationID:\").concat(e)),this.deleteConversationList({conversationIDList:[e],flag:1})):(st(e.conversationIDList)||this._errorLog(n,\"conversationIDList\",\"ArrayRequiredLog\"),0===e.conversationIDList.length&&this._errorLog(n,\"conversationIDList\",\"NonEmptyArrayLog\"),e.conversationIDList.forEach((function(e){t._isValidConversationID(e)||t._errorLog(n,\"conversationIDList\",\"InvalidConversationID\",e)})),\"clearHistoryMessage\"in e&&\"boolean\"!=typeof e.clearHistoryMessage&&this._errorLog(n,\"clearHistoryMessage\",\"BooleanRequiredLog\"),e.conversationIDList.length>100&&(e.conversationIDList=e.conversationIDList.slice(0,100)),this.deleteConversationList(e))}},{key:\"deleteConversationList\",value:function(e){var t=this,n=e.conversationIDList,o=void 0===n?[]:n,s=e.clearHistoryMessage,a=void 0===s||s,r=e.flag,i=void 0===r?0:r,u=\"\".concat(this._n,\".\").concat(\"deleteConversationList\");xe.l(\"\".concat(u,\" conversationIDList.length:\").concat(o.length,\" clearHistoryMessage:\").concat(a));var c=new ka(\"deleteConversationList\");return c.setMessage(\"conversationIDList:\".concat(o)),Promise.all([this.rmLocalOnlyConversationList(o),this.rmLocalAndRemoteConversationList(o,a)]).then((function(e){c.setNetworkType(t.getNetworkType()).end();var n=[].concat(m(e[0]),m(e[1]));return 0===n.length?Ja(new Wa({code:da.CONVERSATION_NOT_FOUND})):(xe.l(\"\".concat(u,\" ok\")),za(1===i?{conversationID:n[0]}:{conversationIDList:n}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),xe.e(\"\".concat(u,\" failed. error:\"),e),Ja(e)}))}},{key:\"rmLocalOnlyConversationList\",value:function(e){var t=this;return e.filter((function(e){if(!t._conversationMap.has(e))return!1;var n=t.getLocalConversation(e).type;return n!==S.CONV_GROUP||t._hasLocalGroup(e)?n===S.CONV_SYSTEM&&(t.getModule(Un).deleteGroupSystemNotice({messageList:t._messageListHandler.getLocalMessageList(e)}),t.deleteLocalConversation(e),!0):(t.deleteLocalConversation(e),!0)}))}},{key:\"rmLocalAndRemoteConversationList\",value:function(e,t){var n=this,o={fromAccount:this.getMyUserID(),conversationList:[],clearHistoryMessage:t?1:0};return e.forEach((function(e){if(n._conversationMap.has(e)){var t=n.getLocalConversation(e).type;t===S.CONV_C2C?o.conversationList.push({toAccount:e.replace(t,\"\"),type:1}):t===S.CONV_GROUP&&n._hasLocalGroup(e)&&o.conversationList.push({toGroupID:e.replace(t,\"\"),type:2})}})),0===o.conversationList.length?[]:this.request({protocolName:Go,requestData:o}).then((function(e){var t=[];return e.data.resultList.length>0&&e.data.resultList.map((function(e){if(0===e.code){var n=1===e.type?\"\".concat(S.CONV_C2C).concat(e.to):\"\".concat(S.CONV_GROUP).concat(e.groupID);t.push(n)}})),n.deleteLocalConversationList(t),t}))}},{key:\"clearHistoryMessage\",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0,toGroupID:void 0};if(!this._conversationMap.has(e))return Ja({code:da.CONVERSATION_NOT_FOUND});var o=this._conversationMap.get(e).type;if(o===S.CONV_C2C)n.type=1,n.toAccount=e.replace(S.CONV_C2C,\"\");else{if(o!==S.CONV_GROUP)return o===S.CONV_SYSTEM?(this.getModule(Un).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),za({conversationID:e})):Ja({code:da.CONVERSATION_UN_RECORDED_TYPE});n.type=2,n.toGroupID=e.replace(S.CONV_GROUP,\"\")}var s=\"\".concat(this._n,\".\").concat(\"clearHistoryMessage\"),a=new ka(\"clearHistoryMessage\");return a.setMessage(\"conversationID:\".concat(e)),xe.l(\"\".concat(s,\". conversationID:\").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:Uo,requestData:n})})).then((function(){a.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(s,\" ok\")),t._messageListHandler.removeByConversationID(e),t.setCompleted(e);var n=t.getLocalConversation(e);return n&&(n.updateLastMessage(),t._sortConversationListAndEmitEvent()),za({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),xe.e(\"\".concat(s,\" failed. error:\"),e),Ja(e)}))}},{key:\"pinConversation\",value:function(e){var t=this,n=e.conversationID,o=e.isPinned;if(!this._conversationMap.has(n))return Ja({code:da.CONVERSATION_NOT_FOUND});var s=this.getLocalConversation(n);if(s.isPinned===o)return za({conversationID:n});var a=\"\".concat(this._n,\".\").concat(\"pinConversation\"),r=new ka(\"pinConversation\");r.setMessage(\"conversationID:\".concat(n,\" isPinned:\").concat(o)),xe.l(\"\".concat(a,\". conversationID:\").concat(n,\" isPinned:\").concat(o));var i=null;return Et(n)?i={type:1,toAccount:n.replace(S.CONV_C2C,\"\")}:St(n)&&(i={type:2,groupID:n.replace(S.CONV_GROUP,\"\")}),this.request({protocolName:Po,requestData:{fromAccount:this.getMyUserID(),operationType:!0===o?1:2,itemList:[i]}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(a,\" ok\")),s.isPinned!==o&&(s.isPinned=o,t._sortConversationListAndEmitEvent()),Ka({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(a,\" failed. error:\"),e),Ja(e)}))}},{key:\"setMessageRemindType\",value:function(e){return this._messageRemindHandler.set(e)}},{key:\"patchMessageRemindType\",value:function(e){var t=e.ID,n=e.isC2CConversation,o=e.messageRemindType,s=!1,a=this.getLocalConversation(n?\"\".concat(S.CONV_C2C).concat(t):\"\".concat(S.CONV_GROUP).concat(t));return a&&a.messageRemindType!==o&&(a.messageRemindType=o,s=!0),xe.d(\"\".concat(this._n,\".patchMessageRemindType options:\"),e,\"ret:\".concat(s)),s}},{key:\"onC2CMessageRemindTypeSynced\",value:function(e){var t=this,n=\"\".concat(this._n,\".onC2CMessageRemindTypeSynced\");xe.d(n,e),e.dataList.forEach((function(e){if(!jt(e.muteNotificationsSync)){var o,s=e.muteNotificationsSync,a=s.to,r=s.updateSequence,i=s.muteFlag;t._messageRemindHandler.setUpdateSequence(r),0===i?o=S.MSG_REMIND_ACPT_AND_NOTE:1===i?o=S.MSG_REMIND_DISCARD:2===i&&(o=S.MSG_REMIND_ACPT_NOT_NOTE);var u=0;t.patchMessageRemindType({ID:a,isC2CConversation:!0,messageRemindType:o})&&(u+=1),xe.l(\"\".concat(n,\" updateCount:\").concat(u)),u>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:\"onGroupMessageRemindTypeSynced\",value:function(e){xe.d(\"\".concat(this._n,\".onGroupMessageRemindTypeSynced options:\"),e),this._messageRemindHandler.onGroupMessageRemindTypeUpdated(e)}},{key:\"deleteLocalConversation\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._conversationMap.has(e);if(xe.d(\"\".concat(this._n,\".deleteLocalConversation conversationID:\").concat(e,\" has:\").concat(n)),n&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.has(e)&&this._roamingMessageKeyAndTimeMap.delete(e),this._roamingMessageSequenceMap.has(e)&&this._roamingMessageSequenceMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),t)){var o=!this._isTopicConversation(e);this.emitConversationUpdate(o,!1)}}},{key:\"deleteLocalConversationList\",value:function(e){var t=this,n=0,o=!1;e.forEach((function(e){t._conversationMap.has(e)&&(n+=t._conversationMap.get(e).unreadCount||0,t.deleteLocalConversation(e,!1),o=!0)})),xe.l(\"\".concat(this._n,\".deleteLocalConversationList conversationIDList.length:\").concat(e.length,\" isConvIDExisted:\").concat(o)),o&&(this.emitConversationUpdate(!0,!1),n>0&&this.emitTotalUnreadMessageCountUpdate())}},{key:\"isMessageSentByCurrentInstance\",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:\"modifyMessageList\",value:function(e){if(e.startsWith(S.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var o=this.getModule(On).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:o.nick,latestAvatar:o.avatar}),xe.l(\"\".concat(this._n,\".modifyMessageList conversationID:\").concat(e,\" cost \").concat(Date.now()-n,\" ms\"))}}},{key:\"updateUserProfileSpecifiedKey\",value:function(e){xe.l(\"\".concat(this._n,\".updateUserProfileSpecifiedKey options:\"),e);var t=e.conversationID,n=e.nick,o=e.avatar;if(this._conversationMap.has(t)){var s=this._conversationMap.get(t).userProfile;et(n)&&s.nick!==n&&(s.nick=n),et(o)&&s.avatar!==o&&(s.avatar=o),this.emitConversationUpdate(!0,!1)}}},{key:\"_onMyProfileModified\",value:function(e){var n=this,o=this.getLocalConversationList(),s=Date.now();o.forEach((function(o){n.modifyMessageSentByMe(t({conversationID:o.conversationID},e))})),xe.l(\"\".concat(this._n,\"._onMyProfileModified. modify all messages sent by me, cost \").concat(Date.now()-s,\" ms\"))}},{key:\"modifyMessageSentByMe\",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:\"getLatestMessageSentByMe\",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:\"modifyMessageSentByPeer\",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:\"getLatestMessageSentByPeer\",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:\"pushIntoNoticeResult\",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:\"getLocalLastMessage\",value:function(e){return this._messageListHandler.getLocalLastMessage(e)}},{key:\"checkAndPatchRemark\",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(Pn);if(!t)return e;var n=m(this._conversationMap.values()).filter((function(e){return e.type===S.CONV_C2C}));if(0===n.length)return e;var o=0;return n.forEach((function(e){var n=e.conversationID.replace(S.CONV_C2C,\"\");if(t.isMyFriend(n)){var s=t.getFriendRemark(n);e.remark!==s&&(e.remark=s,o+=1)}})),xe.l(\"\".concat(this._n,\".checkAndPatchRemark. c2c conversation count:\").concat(n.length,\", patched count:\").concat(o)),e}},{key:\"updateTopicConversation\",value:function(e){this._updateLocalConversationList({conversationOptionsList:e,isFromGetConversations:!0})}},{key:\"sendReadReceipt\",value:function(e){var t=e[0],n=null;return t.conversationType===S.CONV_C2C?n=this._m.getModule(Gn):t.conversationType===S.CONV_GROUP&&(n=this._m.getModule(Un)),n?n.sendReadReceipt(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"getReadReceiptList\",value:function(e){var t=e[0],n=null;return t.conversationType===S.CONV_C2C?n=this._m.getModule(Gn):t.conversationType===S.CONV_GROUP&&(n=this._m.getModule(Un)),n?n.getReadReceiptList(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"getLastMessageTime\",value:function(e){var t=this.getLocalConversation(e);return t?t.lastMessage.lastTime:0}},{key:\"getTotalUnreadMessageCount\",value:function(){var e=this.getLocalConversationList(),t=0;return e.forEach((function(e){e.type!==S.CONV_SYSTEM&&(\"\"!==e.messageRemindType&&e.messageRemindType!==S.MSG_REMIND_ACPT_AND_NOTE||(t+=e.unreadCount))})),t}},{key:\"emitTotalUnreadMessageCountUpdate\",value:function(){var e=this.getTotalUnreadMessageCount();this._convTotalUnreadCount!==e&&(xe.l(\"\".concat(this._n,\".emitTotalUnreadMessageCountUpdate from \").concat(this._convTotalUnreadCount,\" to \").concat(e)),this._convTotalUnreadCount=e,this.emitOuterEvent(E.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED))}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._pagingStatus=Zt.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this._roamingMessageSequenceMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this._convTotalUnreadCount=0,this._pagingGetCostList.length=0,this.resetReady()}}]),s}(ro),mr=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"GroupTipsHandler\",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map}return a(e,[{key:\"onCheckTimer\",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:\"_checkCachedGroupTips\",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var o=e._checkCountMap.get(n),s=e._groupModule.hasLocalGroup(n);xe.l(\"\".concat(e._n,\"._checkCachedGroupTips groupID:\").concat(n,\" hasLocalGroup:\").concat(s,\" checkCount:\").concat(o)),s?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):o>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(o++,e._checkCountMap.set(n,o))}))}},{key:\"onNewGroupTips\",value:function(e){xe.d(\"\".concat(this._n,\".onReceiveGroupTips count:\").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,o=t.result,s=t.AVChatRoomMessageList;(s.length>0&&this._groupModule.onAVChatRoomMessage(s),n.length>0)&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Fn).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}));o.length>0&&(this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,o),this.handleMessageList(o))}},{key:\"newGroupTipsStoredAndSummary\",value:function(e){for(var n=this,o=e.event,s=e.dataList,a=null,r=[],i=[],u={},c=[],l=function(e,l){var p=yt(s[e]);if(6===o){if(n._groupModule.isGroupAttributesUpdatedNotice(p))return\"continue\";if(n._groupModule.isGroupCountersNotice(p))return\"continue\"}var d=p.groupProfile,g=d.groupID,_=d.communityType,h=void 0===_?0:_,f=d.topicID,v=void 0===f?void 0:f,m=d.invisible,M=void 0,y=n._groupModule.isMessageFromTopic(h,v);if(y){M=S.CONV_TOPIC,p.to=v;var I=n._groupModule.getModule(wn);I.hasLocalTopic(g,v)||n._getTopicPendingMap.has(v)||(n._getTopicPendingMap.set(v,1),I.getTopicList({groupID:g,topicIDList:[v]}).finally((function(){n._getTopicPendingMap.delete(v)})))}var C=n._groupModule.hasLocalGroup(g);if(!C&&n._groupModule.isUnjoinedAVChatRoom(g))return\"continue\";if(!C&&!y)return n._cacheGroupTipsAndProbe({groupID:g,event:o,item:p}),\"continue\";if(n._groupModule.isMessageFromOrToAVChatroom(g))return p.event=o,c.push(p),\"continue\";if(p.currentUser=n._groupModule.getMyUserID(),p.conversationType=S.CONV_GROUP,(a=new Ha(p)).setElement({type:S.MSG_GRP_TIP,content:t(t({},p.elements),{},{groupProfile:p.groupProfile})}),a.isSystemMessage=!1,1===m)return n._qualityStat(a),\"continue\";var T=n._groupModule.getModule(Fn),D=a,E=D.conversationID,k=D.sequence;if(6===o)a._onlineOnlyFlag=!0,i.push(a);else if(!T.pushIntoNoticeResult(i,a))return\"continue\";if(n._groupModule.isMessageFromCommunityOfTopic(h,v))return\"continue\";if(6===o&&T.getLocalConversation(E))return\"continue\";6!==o&&n._qualityStat(a);var L=T.isRemoteRead({conversationID:E,sequence:k});if(at(u[E])){var A=0;\"in\"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||L||(A=1)),u[E]=r.push({conversationID:E,unreadCount:A,type:at(M)?a.conversationType:M,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?\"\":a})-1}else{var R=u[E];r[R].type=a.conversationType,r[R].subType=a.conversationSubType,r[R].lastMessage=a._isExcludedFromLastMessage?\"\":a,\"in\"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||L||r[R].unreadCount++)}},p=0,d=s.length;p<d;p++)l(p);return{eventDataList:r,result:i,AVChatRoomMessageList:c}}},{key:\"_qualityStat\",value:function(e){this._groupModule.getModule($n).addMessageSequence({key:ya,message:e})}},{key:\"handleMessageList\",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;case 8:t._onTopicProfileUpdated(e);break;default:xe.w(\"\".concat(t._n,\".handleMessageList unknown operationType:\").concat(e.payload.operationType))}}))}},{key:\"_onNewMemberComeIn\",value:function(e){var t=e.payload,n=t.memberNum,o=t.groupProfile.groupID,s=this._groupModule.getLocalGroupProfile(o);s&&$e(n)&&s.memberCount!==n&&(s.memberCount=n,this._updateConversationGroupProfile(s))}},{key:\"_onMemberQuit\",value:function(e){var t=e.payload,n=t.memberNum,o=t.groupProfile.groupID,s=this._groupModule.getLocalGroupProfile(o);s&&$e(n)&&s.memberCount!==n&&(s.memberCount=n,this._updateConversationGroupProfile(s)),this._groupModule.getModule(bn).deleteLocalGroupMembers(o,e.payload.userIDList)}},{key:\"_onMemberKickedOut\",value:function(e){var t=e.payload,n=t.memberNum,o=t.groupProfile.groupID,s=this._groupModule.getLocalGroupProfile(o);s&&$e(n)&&s.memberCount!==n&&(s.memberCount=n,this._updateConversationGroupProfile(s)),this._groupModule.getModule(bn).deleteLocalGroupMembers(o,e.payload.userIDList)}},{key:\"_updateConversationGroupProfile\",value:function(e){this._groupModule.getModule(Fn).updateConversationGroupProfile([e])}},{key:\"_onMemberSetAdmin\",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,o=this._groupModule.getModule(bn);n.forEach((function(e){var n=o.getLocalGroupMemberInfo(t,e);n&&n.updateRole(S.GRP_MBR_ROLE_ADMIN)}))}},{key:\"_onMemberCancelledAdmin\",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,o=this._groupModule.getModule(bn);n.forEach((function(e){var n=o.getLocalGroupMemberInfo(t,e);n&&n.updateRole(S.GRP_MBR_ROLE_MEMBER)}))}},{key:\"_onGroupProfileModified\",value:function(e){var t=this,n=e.payload,o=n.newGroupProfile,s=n.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(s);Object.keys(o).forEach((function(e){switch(e){case\"ownerID\":t._ownerChanged(a,o);break;case\"groupName\":a.name=o[e];break;default:a[e]=o[e]}}));var r=!a.isSupportTopic;this._groupModule.emitGroupListUpdate(!0,r)}},{key:\"_ownerChanged\",value:function(e,t){var n=e.groupID,o=this._groupModule.getLocalGroupProfile(n),s=this._groupModule.getMyUserID();if(s===t.ownerID){o.updateGroup({selfInfo:{role:S.GRP_MBR_ROLE_OWNER}});var a=this._groupModule.getModule(bn),r=a.getLocalGroupMemberInfo(n,s),i=this._groupModule.getLocalGroupProfile(n).ownerID,u=a.getLocalGroupMemberInfo(n,i);r&&r.updateRole(S.GRP_MBR_ROLE_OWNER),u&&u.updateRole(S.GRP_MBR_ROLE_MEMBER)}}},{key:\"_onMemberInfoModified\",value:function(e){var t=e.to,n=e.payload,o=n.groupProfile,s=n.memberList,a=o.groupID;Dt(t)&&this._updateTopicMuteTime(e);var r=this._groupModule.getModule(bn);s.forEach((function(e){var t=r.getLocalGroupMemberInfo(a,e.userID);t&&$e(e.muteTime)&&t.updateMuteUntil(e.muteTime)}))}},{key:\"_updateTopicMuteTime\",value:function(e){var t=e.to,n=e.payload,o=n.groupProfile,s=n.memberList,a=void 0===s?[]:s,r=this._groupModule.getModule(wn),i=o.groupID,u=r.getLocalTopic(i,t);if(u){for(var c=!1,l=0;l<a.length;l++){var p=a[l];if(p.userID===this._groupModule.getMyUserID()&&p.muteTime>=0){u.updateSelfInfo({muteTime:p.muteTime}),c=!0;break}}c&&this._groupModule.emitOuterEvent(E.TOPIC_UPDATED,{groupID:i,topic:u})}}},{key:\"_onTopicProfileUpdated\",value:function(e){var n=e.payload,o=n.groupProfile.groupID,s=n.newTopicInfo;this._groupModule.getModule(wn).onTopicProfileUpdated(t({groupID:o,topicID:e.to},s))}},{key:\"_cacheGroupTips\",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:\"_deleteCachedGroupTips\",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:\"_notifyCachedGroupTips\",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),xe.l(\"\".concat(this._n,\"._notifyCachedGroupTips groupID:\").concat(e,\" count:\").concat(n.length))}},{key:\"_cacheGroupTipsAndProbe\",value:function(e){var t=this,n=e.groupID,o=e.event,s=e.item;this._cacheGroupTips(n,{event:o,dataList:[s]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===S.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),xe.l(\"\".concat(this._n,\"._cacheGroupTipsAndProbe groupID:\").concat(n))}},{key:\"reset\",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear()}}]),e}(),Mr=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"CommonGroupHandler\",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map,this._isPagingGetCompleted=!1,t.getInnerEmitterInstance().once(Za,this._initGroupList,this)}return a(e,[{key:\"onCheckTimer\",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:\"_checkCachedGroupMessage\",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var o=e._checkCountMap.get(n),s=e._groupModule.hasLocalGroup(n);xe.l(\"\".concat(e._n,\"._checkCachedGroupMessage groupID:\").concat(n,\" hasLocalGroup:\").concat(s,\" checkCount:\").concat(o)),s?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):o>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(o++,e._checkCountMap.set(n,o))}))}},{key:\"_initGroupList\",value:function(){var e=this;xe.l(\"\".concat(this._n,\"._initGroupList\"));var t=new ka(\"getGroupListInStorage\"),n=this._groupModule.getStorageGroupList();if(st(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var o=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage(\"group count:\".concat(o)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage(\"group count:0\").end();xe.l(\"\".concat(this._n,\"._initGroupList ok\"))}},{key:\"handleUpdateGroupLastMessage\",value:function(e){var n=\"\".concat(this._n,\".handleUpdateGroupLastMessage\");if(xe.l(\"\".concat(n,\" conversation count:\").concat(e.length,\", local group count:\").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var o,s,a,r=!1,i=0,u=e.length;i<u;i++)(o=e[i]).type===S.CONV_GROUP&&(s=o.conversationID.split(/^GROUP/)[1],(a=this._groupModule.getLocalGroupProfile(s))&&(a.lastMessage=t({},o.lastMessage),r=!0));r&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:\"onNewGroupMessage\",value:function(e){xe.d(\"\".concat(this._n,\".onNewGroupMessage count:\").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,o=t.messageList,s=t.AVChatRoomMessageList;(s.length>0&&this._groupModule.onAVChatRoomMessage(s),this._groupModule.filterModifiedMessage(o),n.length>0)&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Fn).onNewMessage({conversationOptionsList:n,isInstantMessage:e.isInstantMessage||!0,updateUnreadCount:e.updateUnreadCount||!0}));var a=this._groupModule.filterUnmodifiedMessage(o);a.length>0&&this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,a),o.length=0}},{key:\"_newGroupMessageStoredAndSummary\",value:function(e){var t=this,n=e.dataList,o=e.event,s=e.isInstantMessage,a=null,r=[],i=[],u=[],c={},l=this._groupModule.getModule(Hn),p=this._groupModule.getFileDownloadProxy(),d=n.length;d>1&&n.sort((function(e,t){return e.sequence-t.sequence}));for(var g=function(e){var d=yt(n[e]),g=d.groupProfile,_=g.groupID,h=g.communityType,f=void 0===h?0:h,v=g.topicID,m=void 0===v?void 0:v,M=g.invisible,y=void 0,I=t._groupModule.isMessageFromTopic(f,m);if(I){y=S.CONV_TOPIC,d.to=m;var C=t._groupModule.getModule(wn);C.hasLocalTopic(_,m)||t._getTopicPendingMap.has(m)||(t._getTopicPendingMap.set(m,1),C.getTopicList({groupID:_,topicIDList:[m]}).finally((function(){t._getTopicPendingMap.delete(m)})))}var T=t._groupModule.hasLocalGroup(_);if(!T&&t._groupModule.isUnjoinedAVChatRoom(_))return\"continue\";if(!T&&!I)return t._cacheGroupMessageAndProbe({groupID:_,event:o,item:d}),\"continue\";if(t._groupModule.isMessageFromOrToAVChatroom(_))return d.event=o,u.push(d),\"continue\";if(d.currentUser=t._groupModule.getMyUserID(),d.conversationType=S.CONV_GROUP,d.isSystemMessage=!!d.isSystemMessage,a=new Ha(d),d.elements=l.parseElements(d.elements,d.from),a.setElement(d.elements,p),1===M)return t._qualityStat(s,a),\"continue\";var D=1===n[e].isModified,E=t._groupModule.getModule(Fn);if(E.isMessageSentByCurrentInstance(a)?a.isModified=D:D=!1,1===d.onlineOnlyFlag)a._onlineOnlyFlag=!0,E.isMessageSentByCurrentInstance(a)||i.push(a);else{if(t._groupModule.isMessageFromCommunityOfTopic(f,m))return i.push(a),\"continue\";if(!E.pushIntoMessageList(i,a,D))return\"continue\";t._qualityStat(s,a);var k=a,L=k.conversationID,A=k.sequence,R=E.isRemoteRead({conversationID:L,sequence:A});if(at(c[L])){var N=0;\"in\"===a.flow&&(a._isExcludedFromUnreadCount||R||(N=1)),c[L]=r.push({conversationID:L,unreadCount:N,type:at(y)?a.conversationType:y,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?\"\":a})-1}else{var O=c[L];r[O].type=at(y)?a.conversationType:y,r[O].subType=a.conversationSubType,r[O].lastMessage=a._isExcludedFromLastMessage?\"\":a,\"in\"===a.flow&&(a._isExcludedFromUnreadCount||R||r[O].unreadCount++)}}},_=0;_<d;_++)g(_);return{conversationOptionsList:r,messageList:i,AVChatRoomMessageList:u}}},{key:\"_qualityStat\",value:function(e,t){var n=this._groupModule.getModule($n);n.addMessageSequence({key:ya,message:t}),e&&t.clientTime>0&&n.addMessageDelay(t.clientTime)}},{key:\"onGroupMessageRevoked\",value:function(e){var t=this._groupModule.getModule(Fn),n=[],o=null,s=!0;e.dataList.forEach((function(e){var a=e.elements.revokedInfos;at(a)||a.forEach((function(e){var a=jt(e.topicID)?\"GROUP\".concat(e.groupID):\"GROUP\".concat(e.topicID);o=t.revoke(a,e.sequence,e.random);var r=e.revokerInfo&&e.revokerInfo.revoker;if(o)o.revoker=r,n.push(o);else{var i={conversationID:a,to:e.topicID||\"\",sequence:e.sequence,time:e.time,revoker:r};t.isLastMessageRevoked(i)&&(n.push(i),s=!1)}}))})),0!==n.length&&(t.onMessageRevoked(n),!0===s&&(xe.l(\"\".concat(this._n,\".onGroupMessageRevoked count:\").concat(n.length)),this._groupModule.emitOuterEvent(E.MESSAGE_REVOKED,n)))}},{key:\"_groupListTreeShaking\",value:function(e){for(var t=new Map(m(this._groupModule.getGroupMap())),n=0,o=e.length;n<o;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)}));this._groupModule.getGroupMap().forEach((function(e,n){e.isSupportTopic&&t.delete(n)}));for(var s=m(t.keys()),a=0,r=s.length;a<r;a++)this._groupModule.deleteGroup(s[a])}},{key:\"getGroupList\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getGroupList\"),o=new ka(\"getGroupList\");xe.l(\"\".concat(n));var s={introduction:\"Introduction\",notification:\"Notification\",createTime:\"CreateTime\",ownerID:\"Owner_Account\",lastInfoTime:\"LastInfoTime\",memberNum:\"MemberNum\",maxMemberNum:\"MaxMemberNum\",joinOption:\"ApplyJoinOption\",inviteOption:\"InviteJoinOption\",muteAllMembers:\"ShutUpAllMember\"},a=[\"Type\",\"Name\",\"FaceUrl\",\"NextMsgSeq\",\"LastMsgTime\",\"AtInfoList\",\"LastRecallTime\"],r=[];e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){s[e]&&a.push(s[e])}));var i=(e||{}).isGroupWithTopicOnly,u=void 0!==i&&i;return this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:a,groupList:r,isGroupWithTopicOnly:u}).then((function(){xe.l(\"\".concat(n,\" ok. count:\").concat(r.length,\" isGroupWithTopicOnly:\").concat(u)),u||t._groupListTreeShaking(r),t._groupModule.updateGroupMap(r);var e=t._groupModule.getLocalGroupList().length;o.setNetworkType(t._groupModule.getNetworkType()).setMessage(\"remote count:\".concat(r.length,\", after tree shaking, local count:\").concat(e,\", isGroupWithTopicOnly:\").concat(u)).end(),t.tempConversationList&&(t.handleUpdateGroupLastMessage(t.tempConversationList),t.tempConversationList=null),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),t._groupModule.emitGroupListUpdate(!0,!u);var s=t._groupModule.getLocalGroupList();if(u){var a=s.filter((function(e){return!0===e.isSupportTopic}));return Ka({groupList:a})}return t._isPagingGetCompleted=!0,Ka({groupList:s})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"isPagingGetCompleted\",value:function(){return this._isPagingGetCompleted}},{key:\"_pagingGetGroupList\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"_pagingGetGroupList\"),o=e.isCommunityRelay,s=void 0!==o&&o,a=e.isGroupWithTopicOnly,r=void 0!==a&&a,i=e.limit,u=e.offset,c=e.groupBaseInfoFilter,l=e.groupList;if(r)return this._pagingGetGroupListWithTopic({limit:i,offset:u,groupBaseInfoFilter:c,groupList:l});var p=new ka(\"_pagingGetGroupList\");return this._groupModule.request({protocolName:Wo,requestData:{type:s?S.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:i,offset:u,responseFilter:{groupBaseInfoFilter:c,selfInfoFilter:[\"Role\",\"JoinTime\",\"MsgFlag\",\"MsgSeq\"]}}}).then((function(e){var o=e.data,a=o.groups,r=void 0===a?[]:a,d=o.totalCount;l.push.apply(l,m(r)),t._handleGroupAtInfoWithoutTopic(s,r);var g=u+i,_=!(d>g),h=\"offset:\".concat(u,\" totalCount:\").concat(d,\" isCompleted:\").concat(_,\" \")+\"currentCount:\".concat(l.length,\" isCommunityRelay:\").concat(s);return p.setNetworkType(t._groupModule.getNetworkType()).setMessage(\"\".concat(h)).end(),s||_?!s&&_?(xe.l(\"\".concat(n,\" start to get community list\")),u=0,t._pagingGetGroupList({limit:i,offset:u,groupBaseInfoFilter:c,groupList:l,isCommunityRelay:!0})):s&&!_?(u=g,t._pagingGetGroupList({limit:i,offset:u,groupBaseInfoFilter:c,groupList:l,isCommunityRelay:!0})):(xe.l(\"\".concat(n,\" ok. totalCount:\").concat(l.length)),Ka({groupList:l})):(u=g,t._pagingGetGroupList({limit:i,offset:u,groupBaseInfoFilter:c,groupList:l}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],a=n[1];p.setMessage(\"isCommunityRelay:\".concat(s)).setError(e,o,a).end()})),s?(11e3===e.code&&(p=null,xe.l(\"\".concat(n,\" ok. community unavailable\"))),za({groupList:l})):Ja(e)}))}},{key:\"_pagingGetGroupListWithTopic\",value:function(e){var t=this,n=\"\".concat(this._n,\"._pagingGetGroupListWithTopic\"),o=e.limit,s=e.offset,a=e.groupBaseInfoFilter,r=e.groupList,i=new ka(\"pagingGetGroupListWithTopic\");return this._groupModule.request({protocolName:Wo,requestData:{type:S.GRP_COMMUNITY,memberAccount:this._groupModule.getMyUserID(),limit:o,offset:s,responseFilter:{groupBaseInfoFilter:a,selfInfoFilter:[\"Role\",\"JoinTime\",\"MsgFlag\",\"MsgSeq\"]},isSupportTopic:1}}).then((function(e){var u=e.data,c=u.groups,l=void 0===c?[]:c,p=u.totalCount;r.push.apply(r,m(l));var d=s+o,g=!(p>d),_=\"offset:\".concat(s,\" totalCount:\").concat(p,\" isCompleted:\").concat(g,\" \")+\"currentCount:\".concat(r.length);return i.setNetworkType(t._groupModule.getNetworkType()).setMessage(\"\".concat(_)).end(),g?(xe.l(\"\".concat(n,\" ok. totalCount:\").concat(r.length)),Ka({groupList:r})):(s=d,t._pagingGetGroupListWithTopic({limit:o,offset:s,groupBaseInfoFilter:a,groupList:r}))})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),Ja(e)}))}},{key:\"_cacheGroupMessage\",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:\"_deleteCachedGroupMessage\",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:\"_notifyCachedGroupMessage\",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),xe.l(\"\".concat(this._n,\"._notifyCachedGroupMessage groupID:\").concat(e,\" count:\").concat(n.length))}},{key:\"_cacheGroupMessageAndProbe\",value:function(e){var t=this,n=e.groupID,o=e.event,s=e.item;this._cacheGroupMessage(n,{event:o,dataList:[s]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===S.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),xe.l(\"\".concat(this._n,\"._cacheGroupMessageAndProbe groupID:\").concat(n))}},{key:\"_handleGroupAtInfoWithoutTopic\",value:function(e,n){var o=this;e&&0!==n.length&&n.forEach((function(e){var n=e.groupID,s=e.groupAtInfoList,a=[];at(s)||(s.forEach((function(e){a.push(t(t({},e),{},{groupID:n}))})),o._groupModule.getModule(Fn).onNewGroupAtTips({dataList:a}))}))}},{key:\"reset\",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear(),this._isPagingGetCompleted=!1,this._groupModule.getInnerEmitterInstance().once(Za,this._initGroupList,this)}}]),e}(),yr=1,Ir=2,Cr=3,Tr=4,Dr=5,Er=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"GroupAttributesHandler\",this._groupAttributesMap=new Map,this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on($a,this._onCloudConfigUpdated,this)}return a(e,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this._groupModule.getCloudConfig(\"grp_attr_cache_time\");at(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:\"updateLocalMainSequenceOnReconnected\",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:\"isGroupAttributesUpdatedNotice\",value:function(e){var t=e.to,n=e.elements.newGroupProfile,o=!at(n)&&!jt(n.groupAttributeOption);return o&&this._onGroupAttributesUpdated({groupID:t,groupAttributeOption:n.groupAttributeOption}),o}},{key:\"_onGroupAttributesUpdated\",value:function(e){var t=this,n=e.groupID,o=e.groupAttributeOption,s=o.mainSequence,a=o.isWithChangedAttributeInfo,r=o.groupAttributeList,i=void 0===r?[]:r,u=o.operationType;if(xe.l(\"\".concat(this._n,\".onGroupAttributesUpdated. \")+\"groupID:\".concat(n,\" isWithChangedAttributeInfo:\").concat(a,\" operationType:\").concat(u)),!at(u)){this._groupAttributesCopy=this._getCachedAttributes({groupID:n});var c=s-this._getLocalGroupAttributes(n).localMainSequence;if(0!==c){if(1===a&&1===c)return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:s,groupAttributeList:i,operationType:u}),void this._emitGroupAttributesUpdated(n);if(this._hasLocalGroupAttributes(n)){var l=this._getLocalGroupAttributes(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:l}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}}},{key:\"initGroupAttributesCache\",value:function(e){var t=e.groupID,n=e.avChatRoomKey,o=void 0===n?void 0:n;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:o}),xe.l(\"\".concat(this._n,\".initGroupAttributesCache groupID:\").concat(t,\" avChatRoomKey:\").concat(o))}},{key:\"initGroupAttributes\",value:function(e){var t=this,n=e.groupID,o=e.groupAttributes,s=this._getLocalGroupAttributes(n),a=s.remoteMainSequence,r=s.avChatRoomKey,i=new ka(\"initGroupAttributes\");return i.setMessage(\"groupID:\".concat(n,\" avChatRoomKey:\").concat(r,\" mainSequence:\").concat(a)),this._groupModule.request({protocolName:Ms,requestData:{groupID:n,avChatRoomKey:r,mainSequence:a,groupAttributeList:this._transformGroupAttributes(o)}}).then((function(e){xe.l(\"\".concat(t._n,\".\").concat(\"initGroupAttributes\",\" ok. groupID:\").concat(n));var s=e.data,a=s.mainSequence,r=m(s.groupAttributeList);return r.forEach((function(e){e.value=o[e.key]})),t._groupAttributesCopy=t._getCachedAttributes({groupID:n}),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:a,groupAttributeList:r,operationType:yr}),t._emitGroupAttributesUpdated(n),i.setNetworkType(t._groupModule.getNetworkType()).end(),Ka({groupAttributes:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),Ja(e)}))}},{key:\"setGroupAttributes\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setGroupAttributes\"),o=e.groupID,s=e.groupAttributes,a=this._getLocalGroupAttributes(o),r=a.remoteMainSequence,i=a.avChatRoomKey,u=a.attributes,c=this._transformGroupAttributes(s);c.forEach((function(e){var t=e.key;e.sequence=0,u.has(t)&&(e.sequence=u.get(t).sequence)}));var l=new ka(\"setGroupAttributes\");return l.setMessage(\"groupID:\".concat(o,\" groupAttributes:\").concat(JSON.stringify(s))),xe.l(\"\".concat(n,\". groupID:\").concat(o,\" mainSequence:\").concat(r)),this._groupModule.request({protocolName:ys,requestData:{groupID:o,avChatRoomKey:i,mainSequence:r,groupAttributeList:c}}).then((function(e){xe.l(\"\".concat(n,\" ok.\"));var a=e.data,r=a.mainSequence,i=m(a.groupAttributeList);return i.forEach((function(e){e.value=s[e.key]})),t._groupAttributesCopy=t._getCachedAttributes({groupID:o}),t._refreshCachedGroupAttributes({groupID:o,remoteMainSequence:r,groupAttributeList:i,operationType:Ir}),t._emitGroupAttributesUpdated(o),l.setNetworkType(t._groupModule.getNetworkType()).end(),Ka({groupAttributes:s})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];l.setError(e,o,s).end()})),Ja(e)}))}},{key:\"deleteGroupAttributes\",value:function(e){var t=this,n=e.groupID,o=e.keyList,s=void 0===o?[]:o,a=this._getLocalGroupAttributes(n),r=a.remoteMainSequence,i=a.avChatRoomKey,u=a.attributes,c=m(u.keys()),l=Cs,p=Cr,d={groupID:n,avChatRoomKey:i,mainSequence:r},g=[];s.length>0&&(c=[],l=Is,p=Tr,s.forEach((function(e){var t=0;u.has(e)&&(t=u.get(e).sequence,c.push(e)),g.push({key:e,sequence:t})})),d.groupAttributeList=g);var _=new ka(\"deleteGroupAttributes\");return _.setMessage(\"groupID:\".concat(n,\" mainSequence:\").concat(r,\" keyList:\").concat(s,\" protocolName:\").concat(l)),this._groupModule.request({protocolName:l,requestData:d}).then((function(e){xe.l(\"\".concat(t._n,\".\").concat(\"deleteGroupAttributes\",\" ok. groupID:\").concat(n));var o=e.data.mainSequence;return t._groupAttributesCopy=t._getCachedAttributes({groupID:n}),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:g,operationType:p}),t._emitGroupAttributesUpdated(n),_.setNetworkType(t._groupModule.getNetworkType()).end(),Ka({keyList:c})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];_.setError(e,o,s).end()})),Ja(e)}))}},{key:\"getGroupAttributes\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getGroupAttributes\"),o=e.groupID,s=this._getLocalGroupAttributes(o),a=s.avChatRoomKey,r=s.lastUpdateTime,i=s.localMainSequence,u=s.remoteMainSequence,c=new ka(\"getGroupAttributes\");if(c.setMessage(\"groupID:\".concat(o,\" localMainSequence:\").concat(i,\" remoteMainSequence:\").concat(u,\" keyList:\").concat(e.keyList)),Date.now()-r>=this.CACHE_EXPIRE_TIME||i<u)return this._getGroupAttributes({groupID:o,avChatRoomKey:a}).then((function(s){c.setMoreMessage(\"get attributes from remote. count:\".concat(s.length)).setNetworkType(t._groupModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" from remote. groupID:\").concat(o));var a=t._getCachedAttributes(e);return Ka({groupAttributes:a})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),Ja(e)}));c.setMoreMessage(\"get attributes from cache\").setNetworkType(this._groupModule.getNetworkType()).end(),xe.l(\"\".concat(n,\" from cache. groupID:\").concat(o));var l=this._getCachedAttributes(e);return za({groupAttributes:l})}},{key:\"_getGroupAttributes\",value:function(e){var n=this,o=0;return at(e.avChatRoomKey)||(o=1),this._groupModule.request({protocolName:Ts,requestData:t(t({},e),{},{groupType:o})}).then((function(t){xe.l(\"\".concat(n._n,\"._getGroupAttributes ok. groupID:\").concat(e.groupID));var o=t.data,s=o.mainSequence,a=o.groupAttributeList,r=m(a);return at(s)||n._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:s,groupAttributeList:r,operationType:Dr}),a})).catch((function(e){return Ja(e)}))}},{key:\"_refreshCachedGroupAttributes\",value:function(e){var t=e.groupID,n=e.remoteMainSequence,o=e.groupAttributeList,s=e.operationType;if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t),r=a.localMainSequence;if(s===Dr||n-r==1)a.remoteMainSequence=n,a.localMainSequence=n,a.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:a,groupAttributeList:o,operationType:s});else{if(r===n)return;a.remoteMainSequence=n}this._groupAttributesMap.set(t,a);var i=\"operationType:\".concat(s,\" localMainSequence:\").concat(r,\" remoteMainSequence:\").concat(n);xe.l(\"\".concat(this._n,\"._refreshCachedGroupAttributes. \").concat(i))}}},{key:\"_getCachedAttributes\",value:function(e){var t=e.groupID,n=e.keyList,o=void 0===n?[]:n,s={};if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t).attributes;if(o.length>0)o.forEach((function(e){a.has(e)&&(s[e]=a.get(e).value)}));else{var r,i=D(a.keys());try{for(i.s();!(r=i.n()).done;){var u=r.value;s[u]=a.get(u).value}}catch(c){i.e(c)}finally{i.f()}}}return s}},{key:\"_updateCachedAttributes\",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,o=e.operationType;o!==Cr?o!==Tr?(o===yr&&t.attributes.clear(),n.forEach((function(e){var n=e.key,o=e.value,s=e.sequence;t.attributes.set(n,{value:o,sequence:s})}))):n.forEach((function(e){t.attributes.delete(e.key)})):t.attributes.clear()}},{key:\"_hasLocalGroupAttributes\",value:function(e){return this._groupAttributesMap.has(e)}},{key:\"_getLocalGroupAttributes\",value:function(e){return this._hasLocalGroupAttributes(e)||this.initGroupAttributesCache({groupID:e}),this._groupAttributesMap.get(e)}},{key:\"_transformGroupAttributes\",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:\"_emitGroupAttributesUpdated\",value:function(e){var t=this._getCachedAttributes({groupID:e}),n=this._computeAttrChangedInfo(t),o=n.updatedKeyList,s=n.deletedKeyList;xe.l(\"\".concat(this._n,\"._emitGroupAttributesUpdated update:\").concat(o.length,\", delete:\").concat(s.length)),0===o.length&&0===s.length||this._groupModule.emitOuterEvent(E.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t,updatedKeyList:o,deletedKeyList:s})}},{key:\"_computeAttrChangedInfo\",value:function(e){var t=this,n=[],o=[];return Object.keys(e).forEach((function(o){e[o]!==t._groupAttributesCopy[o]&&n.push(o)})),Object.keys(this._groupAttributesCopy).forEach((function(t){at(e[t])&&o.push(t)})),this._groupAttributesCopy={},{updatedKeyList:n,deletedKeyList:o}}},{key:\"deleteLocalGroupAttributes\",value:function(e){this._hasLocalGroupAttributes(e)&&this._groupAttributesMap.delete(e)}},{key:\"reset\",value:function(){this._groupAttributesMap.clear(),this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4}}]),e}(),Sr=\"Set\",kr=\"Increase\",Lr=\"Decrease\",Ar=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"GroupCountersHandler\",this._groupCountersMap=new Map,this.EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on($a,this._onCloudConfigUpdated,this)}return a(e,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this._groupModule.getCloudConfig(\"grp_counter_expire_time\");at(e)||(this.EXPIRE_TIME=Number(e))}},{key:\"isGroupCountersNotice\",value:function(e){var t=e.to,n=e.elements.groupCounterInfo,o=!1;return jt(n)||(this._onGroupCountersUpdated({groupID:t,groupCounterInfo:n}),o=!0),o}},{key:\"_onGroupCountersUpdated\",value:function(e){var t=this,n=e.groupID;e.groupCounterInfo.forEach((function(e){var o=e.type,s=e.groupCounterSeq,a=e.counterList,r=void 0===a?[]:a;0!==o&&2!==o||(t._updateLocalGroupCounters({groupID:n,groupCounterSeq:s,counterList:r}),r.forEach((function(e){t._groupModule.emitOuterEvent(E.GROUP_COUNTER_UPDATED,{groupID:n,key:e.key,value:e.value})}))),1===o&&t._deleteLocalGroupCounters({groupID:n,groupCounterSeq:s,counterList:r})})),xe.l(\"\".concat(this._n,\"._onGroupCountersUpdated groupID:\").concat(n))}},{key:\"initGroupCountersCache\",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupCountersMap.set(t,{lastUpdateTime:0,groupCounterSeq:0,counters:new Map,avChatRoomKey:n}),xe.l(\"\".concat(this._n,\".initGroupCountersCache groupID:\").concat(t,\" avChatRoomKey:\").concat(n))}},{key:\"setGroupCounters\",value:function(e){var t=this;if(!this._groupModule.canIUse(B.GRP_COUNTER))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".setGroupCounters\"),o=e.groupID,s=e.counters,a=this._convertObjectToList(s),r=this._getLocalGroupCounters(o).avChatRoomKey,i=\"groupID:\".concat(o,\" count:\").concat(a.length),u=new ka(\"setGroupCounters\");return u.setMessage(\"\".concat(i)),xe.l(\"\".concat(n,\". \").concat(i)),this._updateGroupCounters({groupID:o,counterList:a,avChatRoomKey:r,mode:Sr}).then((function(e){return u.end(),xe.l(\"\".concat(n,\" ok.\")),Ka({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"increaseGroupCounter\",value:function(e){var t=this;if(!this._groupModule.canIUse(B.GRP_COUNTER))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".increaseGroupCounters\"),o=e.groupID,s=e.key,a=e.value,r=this._getLocalGroupCounters(o).avChatRoomKey,i=\"groupID:\".concat(o,\" key:\").concat(s,\" value:\").concat(a),u=new ka(\"increaseGroupCounter\");u.setMessage(\"\".concat(i)),xe.l(\"\".concat(n,\". \").concat(i));var c=[{key:s,value:a}];return this._updateGroupCounters({groupID:o,counterList:c,avChatRoomKey:r,mode:kr}).then((function(e){return u.end(),xe.l(\"\".concat(n,\" ok.\")),Ka({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"decreaseGroupCounter\",value:function(e){var t=this;if(!this._groupModule.canIUse(B.GRP_COUNTER))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".decreaseGroupCounter\"),o=e.groupID,s=e.key,a=e.value,r=this._getLocalGroupCounters(o).avChatRoomKey,i=\"groupID:\".concat(o,\" key:\").concat(s,\" value:\").concat(a),u=new ka(\"decreaseGroupCounter\");u.setMessage(\"\".concat(i)),xe.l(\"\".concat(n,\". \").concat(i));var c=[{key:s,value:a}];return this._updateGroupCounters({groupID:o,counterList:c,avChatRoomKey:r,mode:Lr}).then((function(e){return u.end(),xe.l(\"\".concat(n,\" ok.\")),Ka({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"getGroupCounters\",value:function(e){var t=this;if(!this._groupModule.canIUse(B.GRP_COUNTER))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".getGroupCounters\"),o=e.groupID,s=e.keyList,a=void 0===s?[]:s,r=this._getLocalGroupCounters(o),i=r.avChatRoomKey,u=r.lastUpdateTime,c=new ka(\"getGroupCounters\");if(c.setMessage(\"groupID:\".concat(o)),Date.now()-u>=this.EXPIRE_TIME)return this._getRemoteGroupCounters({groupID:o,avChatRoomKey:i}).then((function(e){c.setMoreMessage(\"from remote. count:\".concat(e.length)).end(),xe.l(\"\".concat(n,\" from remote. groupID:\").concat(o));var s=t._getLocalCounters(o,a);return Ka({counters:s})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),Ja(e)}));c.setMoreMessage(\"from cache\").end(),xe.l(\"\".concat(n,\" from cache. groupID:\").concat(o));var l=this._getLocalCounters(o,a);return za({counters:l})}},{key:\"_getRemoteGroupCounters\",value:function(e){var n=this;return this._groupModule.request({protocolName:Ls,requestData:t({},e)}).then((function(t){var o=t.data,s=o.counterList,a=void 0===s?[]:s,r=o.groupCounterSeq;return n._updateLocalGroupCounters({groupID:e.groupID,counterList:a,groupCounterSeq:r}),xe.l(\"\".concat(n._n,\"._getRemoteGroupCounters ok. groupID:\").concat(e.groupID)),a})).catch((function(e){return Ja(e)}))}},{key:\"_convertObjectToList\",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:\"_updateGroupCounters\",value:function(e){var n=\"\".concat(this._n,\"._updateGroupCounters\"),o=e.groupID,s=e.avChatRoomKey,a=e.mode;return xe.l(\"\".concat(n,\". groupID:\").concat(o,\" avChatRoomKey:\").concat(s,\" mode:\").concat(a)),this._groupModule.request({protocolName:ks,requestData:t({},e)}).then((function(e){xe.l(\"\".concat(n,\" ok.\"));var t=e.data.counterList,o={};return(void 0===t?[]:t).forEach((function(e){var t=e.key,n=e.value;o[t]=n})),o})).catch((function(e){return Ja(e)}))}},{key:\"_hasLocalGroupCounters\",value:function(e){return this._groupCountersMap.has(e)}},{key:\"_getLocalGroupCounters\",value:function(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}},{key:\"_updateLocalGroupCounters\",value:function(e){var t=e.groupID,n=e.counterList,o=void 0===n?[]:n,s=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),r=a.counters,i=a.avChatRoomKey,u=a.groupCounterSeq;if(s>0&&s<u)return;o.forEach((function(e){var t=e.key,n=e.value;r.set(t,n)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:s,counters:r,avChatRoomKey:i})}}},{key:\"_deleteLocalGroupCounters\",value:function(e){var t=e.groupID,n=e.counterList,o=void 0===n?[]:n,s=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),r=a.counters,i=a.avChatRoomKey;o.forEach((function(e){r.delete(e.key)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:s,counters:r,avChatRoomKey:i})}}},{key:\"_getLocalCounters\",value:function(e,t){var n={};if(!this._hasLocalGroupCounters(e))return n;var o=this._getLocalGroupCounters(e).counters;if(t.length>0)t.forEach((function(e){o.has(e)&&(n[e]=o.get(e))}));else{var s,a=D(o.keys());try{for(a.s();!(s=a.n()).done;){var r=s.value;n[r]=o.get(r)}}catch(i){a.e(i)}finally{a.f()}}return n}},{key:\"reset\",value:function(){this._groupCountersMap.clear(),this.EXPIRE_TIME=3e4}}]),e}(),Rr=function(){function e(t){o(this,e);var n=t.manager,s=t.groupID,a=t.onInit,r=t.onSuccess,i=t.onFail;this._n=\"Polling\",this._manager=n,this._groupModule=n._groupModule,this._onInit=a,this._onSuccess=r,this._onFail=i,this._groupID=s,this._timeoutID=-1,this._isRunning=!1,this._protocolName=_s}return a(e,[{key:\"start\",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=hs),xe.l(\"\".concat(this._n,\".start pollingInterval:\").concat(this._manager.getPollingInterval(),\" isLoggedIn:\").concat(e)),this._isRunning=!0,this._request()}},{key:\"isRunning\",value:function(){return this._isRunning}},{key:\"_request\",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:\"stop\",value:function(){xe.l(\"\".concat(this._n,\".stop\")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}},{key:\"getPollingTimerID\",value:function(){return this._timeoutID}}]),e}(),Nr={3:!0,4:!0,5:!0,6:!0,17:!0},Or=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"AVChatRoomHandler\",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new lr(200),this.messageIDLinkedList=new lr(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map,this.DEFAULT_POLLING_SIMPLIFIED_MSG=0}return a(e,[{key:\"hasJoinedAVChatRoom\",value:function(){return this._joinedGroupMap.size>0}},{key:\"checkJoinedAVChatRoomByID\",value:function(e){return this._joinedGroupMap.has(e)}},{key:\"getJoinedAVChatRoom\",value:function(){return this._joinedGroupMap.size>0?m(this._joinedGroupMap.keys()):null}},{key:\"_updateRequestData\",value:function(e){var n=this._pollingRequestInfoMap.get(e);return e===m(this._pollingInstanceMap.keys())[0]?t(t({},n),{},{startBroadcastSeq:this._startBroadcastSeq,simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG}):t(t({},n),{},{simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG})}},{key:\"_handleSuccess\",value:function(e,t){var n=t.data,o=n.key,s=n.nextSeq,a=n.rspMsgList,r=n.errorCode,i=n.nextBroadcastSeq,u=n.broadcastMessageList;if(0!==r){var c=this._pollingRequestInfoMap.get(e),l=new ka(\"longPollingAVError\"),p=c?\"\".concat(c.key,\"-\").concat(c.startSeq):\"requestInfo is undefined\";l.setMessage(\"\".concat(e,\"-\").concat(p,\"-\").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;et(o)&&$e(s)&&this._pollingRequestInfoMap.set(e,{key:o,startSeq:s}),$e(i)&&i>this._startBroadcastSeq&&(this._startBroadcastSeq=i),st(a)&&a.length>0?(a.forEach((function(e){e.to=e.groupID})),this.onMessage(a)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(u)}}},{key:\"_handleFailure\",value:function(e,t){}},{key:\"onMessage\",value:function(e){if(st(e)&&0!==e.length){0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL);var t=null,n=[],o=this._getModule(Fn),s=this._getModule($n),a=e.length;a>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var r=this._getModule(qn),i=0;i<a;i++){var u=this.restoreMessageFromSimplified(e[i]);if(Nr[u.event]){if(6===u.event){if(this._groupModule.isGroupAttributesUpdatedNotice(u))continue;if(this._groupModule.isGroupCountersNotice(u))continue}this.receivedMessageCount+=1,t=this.packMessage(u,u.event);var c=1===u.isModified,l=1===u.isHistoryMessage;if((r.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var p=t.conversationID;if(this.receivedMessageCount%50==0?this._getModule(Jn).detectFirstRound(p,this.sequencesLinkedList.data()):this.receivedMessageCount%80==0&&this._getModule(Jn).detectSecondRound(p,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var d=this.sequencesLinkedList.tail().value,g=t.sequence-d;g>1&&g<=20?this._getModule(Jn).onMessageMaybeLost(p,d+1,g-1):g<-1&&g>=-20&&this._getModule(Jn).onMessageMaybeLost(p,t.sequence+1,Math.abs(g)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var _=!1;if(this._isMessageSentByCurrentInstance(t)?c&&(_=!0,t.isModified=c,o.updateMessageIsModifiedProperty(t)):_=!0,_){if(t.conversationType===S.CONV_SYSTEM&&5===t.payload.operationType&&this._onGroupDismissed(t.payload.groupProfile.groupID),!l&&t.conversationType!==S.CONV_SYSTEM){var h=t.conversationID.replace(S.CONV_GROUP,\"\");this._pollingInstanceMap.has(h)?this._groupModule.isLoggedIn()&&s.addMessageSequence({key:Ca,message:t}):(t.type!==S.MSG_GRP_TIP&&t.clientTime>0&&s.addMessageDelay(t.clientTime),s.addMessageSequence({key:Ia,message:t}))}n.push(t)}}}else xe.w(\"\".concat(this._n,\".onMessage unknown event:\").concat(u.event))}if(0!==n.length){this._groupModule.filterModifiedMessage(n);var f=this.packConversationOption(n);if(f.length>0)this._getModule(Fn).onNewMessage({conversationOptionsList:f,isInstantMessage:!0});xe.d(\"\".concat(this._n,\".onMessage count:\").concat(n.length)),this._checkMessageStacked(n);var v=this._groupModule.filterUnmodifiedMessage(n);v.length>0&&this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,v),n.length=0}}}},{key:\"isBroadcastOrNormal\",value:function(e){return 3===e||17===e}},{key:\"isGroupTip\",value:function(e){return 4===e||6===e}},{key:\"isGroupSystemNotice\",value:function(e){return 5===e}},{key:\"restoreGroupTipElements\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.groupJoinType||(e.groupJoinType=1);var t=e.operatorInfo,n=void 0===t?{}:t,o=e.operatorID,s=e.userIDList,a=void 0===s?[]:s,r=n.userID,i=void 0===r?o:r,u=n.avatar,c=void 0===u?\"\":u,l=n.nick,p=void 0===l?\"\":l;e.operatorInfo={userID:i,avatar:c,nick:p};var d=a.map((function(e){return{userID:e}}));return e.memberInfoList=e.memberInfoList||d,e}},{key:\"restoreMessageFromSimplified\",value:function(e){var n=e.event;if(this.isBroadcastOrNormal(n)&&(e.cloudCustomData=e.cloudCustomData||\"\",e.elements=e.elements.map((function(e){if(e.type===S.MSG_CUSTOM){var n=e.content,o=void 0===n?{}:n;e.content=t({data:\"\",description:\"\",extension:\"\"},o)}return e}))),(this.isGroupTip(n)||this.isGroupSystemNotice(n))&&(e.from=e.from||\"@TIM#SYSTEM\"),this.isGroupTip(n)){e.elements=this.restoreGroupTipElements(e.elements);var o=e.elements,s=void 0===o?{}:o,a=s.operationType,i=s.operatorInfo;if(1===a){var u=[{userID:(void 0===i?{}:i).userID}];s.memberInfoList=s.memberInfoList||u}}if(this.isGroupSystemNotice(n)){var c=e.elements,l=c.memberInfoList,p=c.operatorInfo;l||(l=void 0===p?{}:p),e.elements.memberInfoList=t({userID:e.elements.operatorID,avatar:\"\",nick:\"\"},l),e.elements=t({authentication:\"\",remarkInfo:\"\",messageKey:1e3*e.time},e.elements);var d=Object.keys(e.elements).filter((function(e){return\"operatorInfo\"!==e})).reduce((function(n,o){return t(t({},n),{},r({},o,e.elements[o]))}),{});e.elements=d}return e}},{key:\"_onGroupDismissed\",value:function(e){xe.l(\"\".concat(this._n,\"._onGroupDismissed groupID:\").concat(e)),this._groupModule.deleteLocalGroupAndConversation(e),this.reset(e)}},{key:\"_checkMessageStacked\",value:function(e){var t=\"MessageStacked\",n=e.length;n>=100&&(this._groupModule.outputWarning(t,n),this._reportMessageStackedCount<5&&(new ka(t).setNetworkType(this._groupModule.getNetworkType()).setMessage(\"count:\".concat(n,\" groupID:\").concat(m(this._joinedGroupMap.keys()))).setLevel(\"warning\").end(),this._reportMessageStackedCount+=1))}},{key:\"_isMessageSentByCurrentInstance\",value:function(e){return!!this._getModule(Fn).isMessageSentByCurrentInstance(e)}},{key:\"packMessage\",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?S.CONV_SYSTEM:S.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new Ha(e),o=this.packElements(e,t);return n.setElement(o,this._groupModule.getFileDownloadProxy()),n}},{key:\"packElements\",value:function(e,n){return 4===n||6===n?(this._updateMemberCountByGroupTips(e),{type:S.MSG_GRP_TIP,content:t(t({},e.elements),{},{groupProfile:e.groupProfile})}):5===n?{type:S.MSG_GRP_SYS_NOTICE,content:t(t({},e.elements),{},{groupProfile:t(t({},e.groupProfile),{},{groupID:e.groupID})})}:this._getModule(Hn).parseElements(e.elements,e.from)}},{key:\"packConversationOption\",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var o=e[n],s=o.conversationID;if(t.has(s)){var a=t.get(s);a.lastMessage=o,\"in\"===o.flow&&a.unreadCount++}else t.set(s,{conversationID:o.conversationID,unreadCount:\"out\"===o.flow?0:1,type:o.conversationType,subType:o.conversationSubType,lastMessage:o})}return m(t.values())}},{key:\"_updateMemberCountByGroupTips\",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,o=void 0===n?void 0:n;if(!jt(o)){var s=o.onlineMemberNum,a=void 0===s?0:s,r=o.expireTime,i=void 0===r?this.DEFAULT_EXPIRE_TIME:r,u=this._onlineMemberCountMap.get(t)||{},c=Date.now();jt(u)?Object.assign(u,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:c,memberCount:a,expireTime:i}):(u.latestUpdateTime=c,u.memberCount=a),xe.d(\"\".concat(this._n,\"._updateMemberCountByGroupTips info:\"),u),this._onlineMemberCountMap.set(t,u)}}},{key:\"_onBroadcastMessage\",value:function(e){if(!jt(e)){for(var t=[],n=e.length,o=null,s=0;s<n;s++){var a=this.restoreMessageFromSimplified(e[s]);Nr[a.event]?((o=this.packMessage(a,a.event)).isBroadcastMessage=!0,this._broadcastMessageIDMap.has(o.ID)||(t.push(o),this._broadcastMessageIDMap.set(o.ID,1))):xe.w(\"\".concat(this._n,\"._onBroadcastMessage unknown event:\").concat(a.event))}t.length>0&&this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,t)}}},{key:\"start\",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new Rr({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),xe.l(\"\".concat(this._n,\".start groupID:\").concat(e))}}},{key:\"handleJoinResult\",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,o=e.group,s=o.groupID;return t._joinedGroupMap.set(s,o),t._groupModule.updateGroupMap([o]),t._groupModule.deleteUnjoinedAVChatRoom(s),t._groupModule.emitGroupListUpdate(!0,!1),at(n)?za({status:Ye,group:o}):Promise.resolve()}))}},{key:\"startRunLoop\",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,o=e.group,s=e.startSeq,a=void 0===s?0:s,r=o.groupID;return t._pollingRequestInfoMap.set(r,{key:n,startSeq:a}),t.start(r),t._groupModule.isLoggedIn()?za({status:Ye,group:o}):za({status:Ye})}))}},{key:\"_preCheck\",value:function(){if(this._getModule(qn).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=v(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(!(n.selfInfo.role===S.GRP_MBR_ROLE_OWNER||n.ownerID===this._groupModule.getMyUserID()))return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:\"joinWithoutAuth\",value:function(e){var t=this,n=e.groupID,o=\"\".concat(this._n,\".\").concat(\"joinWithoutAuth\"),s=new ka(\"joinWithoutAuth\");return this._groupModule.request({protocolName:Qo,requestData:e}).then((function(e){var a=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=v(e,2);t[0];var o=t[1];s.setNetworkType(o).setMessage(\"groupID:\".concat(n,\" longPollingKey:\").concat(a)).end(!0)})),at(a))return Ja({code:da.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN});xe.l(\"\".concat(o,\" ok. groupID:\").concat(n)),t._getModule(Fn).setCompleted(\"\".concat(S.CONV_GROUP).concat(n));var r=new dr({groupID:n});return t.startRunLoop({group:r,longPollingKey:a}),Ka({status:Ye})})).catch((function(e){return xe.e(\"\".concat(o,\" failed. groupID:\").concat(n,\" error:\"),e),t._groupModule.probeNetwork().then((function(t){var o=v(t,2),a=o[0],r=o[1];s.setError(e,a,r).setMessage(\"groupID:\".concat(n)).end(!0)})),Ja(e)})).finally((function(){t._groupModule.getModule(Vn).reportAtOnce()}))}},{key:\"getGroupOnlineMemberCount\",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return jt(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return Ka({memberCount:e.memberCount})})).catch((function(e){return Ja(e)}))):za({memberCount:t.memberCount})}},{key:\"_getGroupOnlineMemberCount\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"_getGroupOnlineMemberCount\");return this._groupModule.request({protocolName:fs,requestData:{groupID:e}}).then((function(o){var s=t._onlineMemberCountMap.get(e)||{},a=o.data,r=a.onlineMemberNum,i=void 0===r?0:r,u=a.expireTime,c=void 0===u?t.DEFAULT_EXPIRE_TIME:u;xe.l(\"\".concat(n,\" ok. groupID:\").concat(e,\" memberCount:\").concat(i,\" expireTime:\").concat(c));var l=Date.now();return jt(s)&&(s.lastReqTime=l),t._onlineMemberCountMap.set(e,Object.assign(s,{lastSyncTime:l,latestUpdateTime:l,memberCount:i,expireTime:c})),{memberCount:i}})).catch((function(o){return xe.w(\"\".concat(n,\" failed. error:\"),o),new ka(\"_getGroupOnlineMemberCount\").setCode(o.code).setMessage(\"groupID:\".concat(e,\" error:\").concat(JSON.stringify(o))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(o)}))}},{key:\"_getModule\",value:function(e){return this._groupModule.getModule(e)}},{key:\"setPollingInterval\",value:function(e){at(e)||($e(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10))}},{key:\"setPollingIntervalPlus\",value:function(e){at(e)||($e(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10))}},{key:\"setPollingNoMessageCount\",value:function(e){at(e)||($e(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10))}},{key:\"setPollingSimplifiedMessage\",value:function(e){at(e)||\"0\"!==e&&\"1\"!==e||(this.DEFAULT_POLLING_SIMPLIFIED_MSG=parseInt(e,10))}},{key:\"getPollingInterval\",value:function(){return this._pollingInterval}},{key:\"onAVChatRoomMemberBanned\",value:function(e){var t=e.payload.groupProfile.groupID;xe.l(\"\".concat(this._n,\".onAVChatRoomMemberBanned groupID:\").concat(t)),this._groupModule.deleteLocalGroupAndConversation(t),this.reset(t)}},{key:\"restartPolling\",value:function(){xe.l(\"\".concat(this._n,\".restartPolling count:\").concat(this._pollingInstanceMap.size));var e,t=D(this._pollingInstanceMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.stop(),n.start()}}catch(o){t.e(o)}finally{t.f()}}},{key:\"getPollingTimerID\",value:function(e){if(!this._pollingInstanceMap.has(e))return-1;var t=this._pollingInstanceMap.get(e).getPollingTimerID();return xe.l(\"\".concat(this._n,\".getPollingTimerID groupID:\").concat(e,\" timerID:\").concat(t)),t}},{key:\"reset\",value:function(e){if(e){xe.l(\"\".concat(this._n,\".reset groupID:\").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{xe.l(\"\".concat(this._n,\".reset all\"));var n,o=D(this._pollingInstanceMap.values());try{for(o.s();!(n=o.n()).done;){n.value.stop()}}catch(s){o.e(s)}finally{o.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0}}]),e}(),Gr=1,Ur=15,Pr=function(){function e(t){o(this,e),this._groupModule=t,this._n=\"GroupSystemNoticeHandler\",this.pendencyMap=new Map}return a(e,[{key:\"onNewGroupSystemNotice\",value:function(e){var t=e.dataList,n=e.isSyncingEnded,o=e.isInstantMessage;xe.d(\"\".concat(this._n,\".onReceiveSystemNotice count:\").concat(t.length));var s=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:o}),a=s.eventDataList,r=s.result;a.length>0&&(this._groupModule.getModule(Fn).onNewMessage({conversationOptionsList:a,isInstantMessage:o}),this._onReceivedGroupSystemNotice({result:r,isInstantMessage:o}));o?r.length>0&&this._groupModule.emitOuterEvent(E.MESSAGE_RECEIVED,r):!0===n&&this._clearGroupSystemNotice()}},{key:\"newSystemNoticeStoredAndSummary\",value:function(e){var n=e.notifiesList,o=e.isInstantMessage,s=null,a=n.length,r=0,i=[],u={conversationID:S.CONV_SYSTEM,unreadCount:0,type:S.CONV_SYSTEM,subType:null,lastMessage:null};for(r=0;r<a;r++){var c=n[r],l=c.groupProfile,p=l.communityType,d=void 0===p?0:p,g=l.topicID,_=void 0===g?void 0:g,h=c.elements,f=h.topicIDList,v=void 0===f?void 0:f,m=h.operationType;if(!(2!==d||jt(_)&&jt(v))){if([17,18,20].includes(m)){this._handleTopicSystemNotice(c);continue}jt(_)||(c.to=_)}if(c.elements.operationType!==Ur)c.currentUser=this._groupModule.getMyUserID(),c.conversationType=S.CONV_SYSTEM,c.conversationID=S.CONV_SYSTEM,(s=new Ha(c)).setElement({type:S.MSG_GRP_SYS_NOTICE,content:t(t({},c.elements),{},{groupProfile:t({},c.groupProfile)})}),s.isSystemMessage=!0,(1===s.sequence&&1===s.random||2===s.sequence&&2===s.random)&&(s.sequence=_t(),s.random=_t(),s.generateMessageID(),xe.l(\"\".concat(this._n,\".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:\").concat(s.ID))),this._groupModule.getModule(Fn).pushIntoNoticeResult(i,s)&&(o?u.unreadCount++:s.setIsRead(!0),u.subType=s.conversationSubType)}return u.lastMessage=i[i.length-1],{eventDataList:i.length>0?[u]:[],result:i}}},{key:\"_clearGroupSystemNotice\",value:function(){var e=this;this._getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set(\"\".concat(t.from,\"_\").concat(t.groupID,\"_\").concat(t.to),t)}));var n=e._groupModule.getModule(Fn).getLocalMessageList(S.CONV_SYSTEM),o=[];n.forEach((function(t){var n=t.payload,s=n.operatorID,a=n.operationType,r=n.groupProfile;if(a===Gr){var i=\"\".concat(s,\"_\").concat(r.groupID,\"_\").concat(r.to),u=e.pendencyMap.get(i);u&&$e(u.handled)&&0!==u.handled&&o.push(t)}})),e.deleteGroupSystemNotice({messageList:o})}))}},{key:\"deleteGroupSystemNotice\",value:function(e){var t=this,n=\"\".concat(this._n,\".deleteGroupSystemNotice\");return st(e.messageList)&&0!==e.messageList.length?(xe.l(\"\".concat(n,\" \")+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:gs,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:S.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){xe.l(\"\".concat(n,\" ok\"));var o=t._groupModule.getModule(Fn);return e.messageList.forEach((function(e){o.deleteLocalMessage(e)})),Ka()})).catch((function(e){return xe.e(\"\".concat(n,\" error:\"),e),Ja(e)}))):za()}},{key:\"_getPendencyList\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,o=void 0===n?void 0:n,s=t.startTime,a=void 0===s?0:s,r=t.limit,i=void 0===r?20:r;return this._groupModule.request({protocolName:ds,requestData:{type:o,startTime:a,limit:i,handleAccount:this._groupModule.getMyUserID()}}).then((function(t){var n=t.data.pendencyList;return 0!==t.data.nextStartTime?e._getPendencyList({startTime:t.data.nextStartTime}).then((function(e){return[].concat(m(n),m(e))})):n}))}},{key:\"getGroupApplicationList\",value:function(){var e=this;return this._getPendencyList().then((function(t){return e._getPendencyList({type:S.GRP_COMMUNITY}).then((function(n){return t.push.apply(t,m(n)),e._handlePendencyResult(t)})).catch((function(n){return e._handlePendencyResult(t)}))}))}},{key:\"_handlePendencyResult\",value:function(e){var t=this,n=[];return e.forEach((function(e){t.pendencyMap.set(\"\".concat(e.from,\"_\").concat(e.groupID,\"_\").concat(e.to),e),0===e.handled&&n.push({applicant:e.from,applicantNick:e.fromUserNickName,groupName:e.groupName,groupID:e.groupID,authentication:e.authentication,messageKey:e.time,applicationType:e.applicationType,userID:e.userID})})),za({applicationList:n})}},{key:\"_onReceivedGroupSystemNotice\",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e);break;case 11:case 12:case 15:break;case 20:t._onMessageRemindTypeSynced(e);break;case 21:t._groupModule.onAVChatRoomMemberBanned(e)}}))}},{key:\"_onApplyGroupRequestAgreed\",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;if(n){t._groupModule.updateGroupMap([n]);var o=!n.isSupportTopic;t._groupModule.emitGroupListUpdate(!0,o)}}))}},{key:\"_onMemberKicked\",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:\"_onGroupDismissed\",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:\"_onInviteGroup\",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:\"_onQuitGroup\",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:\"_onSetManager\",value:function(e){var t=e.payload.groupProfile,n=t.to,o=t.groupID,s=this._groupModule.getModule(bn).getLocalGroupMemberInfo(o,n);s&&s.updateRole(S.GRP_MBR_ROLE_ADMIN)}},{key:\"_onDeleteManager\",value:function(e){var t=e.payload.groupProfile,n=t.to,o=t.groupID,s=this._groupModule.getModule(bn).getLocalGroupMemberInfo(o,n);s&&s.updateRole(S.GRP_MBR_ROLE_MEMBER)}},{key:\"_onMessageRemindTypeSynced\",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.messageRemindType;this._groupModule.getModule(Fn).onGroupMessageRemindTypeSynced({groupID:t,messageRemindType:n})}},{key:\"_handleTopicSystemNotice\",value:function(e){var t=e.groupProfile,n=t.groupID,o=t.topicID,s=e.elements,a=s.operationType,r=s.topicIDList,i=s.messageRemindType,u=this._groupModule.getModule(wn);17===a?u.onTopicCreated({groupID:n,topicID:o}):18===a?u.onTopicDeleted({groupID:n,topicIDList:r}):20===a&&u.onTopicMessageRemindTypeUpdated({groupID:n,topicID:o,messageRemindType:i})}},{key:\"reset\",value:function(){this.pendencyMap.clear()}}]),e}(),br=[\"relayFlag\"],wr=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"GroupModule\",t._commonGroupHandler=null,t._AVChatRoomHandler=null,t._groupSystemNoticeHandler=null,t._commonGroupHandler=new Mr(_(t)),t._groupAttributesHandler=new Er(_(t)),t._groupCountersHandler=new Ar(_(t)),t._AVChatRoomHandler=new Or(_(t)),t._groupTipsHandler=new mr(_(t)),t._groupSystemNoticeHandler=new Pr(_(t)),t.groupMap=new Map,t._unjoinedAVChatRoomList=new Map,t._receiptDetailCompleteMap=new Map,t.getInnerEmitterInstance().on($a,t._onCloudConfigUpdated,_(t)),t}return a(s,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"polling_interval\"),t=this.getCloudConfig(\"polling_interval_plus\"),n=this.getCloudConfig(\"polling_no_msg_count\"),o=this.getCloudConfig(\"polling_simplified_msg\");this._AVChatRoomHandler&&(xe.l(\"\".concat(this._n,\"._onCloudConfigUpdated pollingInterval:\").concat(e)+\" pollingIntervalPlus:\".concat(t,\" pollingNoMessageCount:\").concat(n)+\" pollingSimplifiedMessage:\".concat(o)),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(n),this._AVChatRoomHandler.setPollingSimplifiedMessage(o))}},{key:\"onCheckTimer\",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:\"guardForAVChatRoom\",value:function(e){var t=this;if(e.conversationType===S.CONV_GROUP){var n=Dt(e.to)?qt(e.to):e.to;return this.hasLocalGroup(n)?za():this.getGroupProfile({groupID:n}).then((function(o){var s=o.data.group.type;if(xe.l(\"\".concat(t._n,\".guardForAVChatRoom. groupID:\").concat(n,\" type:\").concat(s)),s===S.GRP_AVCHATROOM){var a=da.MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM;return Ja(new Wa({code:a,message:t.getErrorMessage(a,e.from,n),data:{message:e}}))}return za()}))}return za()}},{key:\"checkJoinedAVChatRoomByID\",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:\"onNewGroupMessage\",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:\"updateNextMessageSeq\",value:function(e){var t=this;if(st(e)){var n=this.getModule(wn);e.forEach((function(e){var o=e.conversationID.replace(S.CONV_GROUP,\"\");Dt(o)&&n.updateLastMessage(o,e.lastMessage),t.groupMap.has(o)&&(t.groupMap.get(o).nextMessageSeq=e.lastMessage.sequence+1)}))}}},{key:\"onNewGroupTips\",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:\"onGroupMessageRevoked\",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:\"onNewGroupSystemNotice\",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:\"onGroupMessageReadNotice\",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!at(n)){var o=t.getModule(Fn);n.forEach((function(e){var n=e.groupID,s=e.topicID,a=void 0===s?void 0:s,r=e.lastMessageSeq;xe.d(\"\".concat(t._n,\".onGroupMessageReadNotice groupID:\").concat(n,\" lastMessageSeq:\").concat(r));var i=\"\".concat(S.CONV_GROUP).concat(n),u=!0;jt(a)||(i=\"\".concat(S.CONV_GROUP).concat(a),u=!1),o.updateIsReadAfterReadReport({conversationID:i,lastMessageSeq:r}),o.updateUnreadCount(i,u),o.clearGroupAtInfoList(i,u)}))}}))}},{key:\"onReadReceiptList\",value:function(e){var t=this;xe.d(\"\".concat(this._n,\".onReadReceiptList options:\"),JSON.stringify(e)),e.dataList.forEach((function(e){var n=e.groupProfile,o=e.elements,s=n.groupID,a=t.getModule(Fn),r=o.readReceiptList;a.updateReadReceiptInfo({groupID:s,readReceiptList:r})}))}},{key:\"onGroupMessageModified\",value:function(e){xe.d(\"\".concat(this._n,\".onGroupMessageModified options:\"),JSON.stringify(e));var n=this.getModule(Fn);e.dataList.forEach((function(e){n.onMessageModified(t(t({},e),{},{conversationType:S.CONV_GROUP,to:e.topicID?e.topicID:e.groupID}))}))}},{key:\"deleteGroupSystemNotice\",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:\"initGroupMap\",value:function(e){this.groupMap.set(e.groupID,new dr(e))}},{key:\"deleteGroup\",value:function(e){this.groupMap.delete(e)}},{key:\"updateGroupMap\",value:function(e){var t,n=this,o=this.getModule(Fn);e.forEach((function(e){t=e.groupID,n.groupMap.has(t)?n.groupMap.get(t).updateGroup(e):(n.groupMap.set(t,new dr(e)),o.deleteGroupRomaingMessageInfo(t))}));var s,a=this.getMyUserID(),r=D(this.groupMap);try{for(r.s();!(s=r.n()).done;){var i=v(s.value,2)[1];i.selfInfo.userID=a,\"Owner\"===i.selfInfo.role&&(i.ownerID=a)}}catch(u){r.e(u)}finally{r.f()}this._setStorageGroupList()}},{key:\"getStorageGroupList\",value:function(){return this.getModule(xn).getItem(\"groupMap\")}},{key:\"_setStorageGroupList\",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!Ct(t)})).filter((function(e){return!e.isSupportTopic})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(xn).setItem(\"groupMap\",e)}},{key:\"getGroupMap\",value:function(){return this.groupMap}},{key:\"getLocalGroupList\",value:function(){return m(this.groupMap.values())}},{key:\"getLocalGroupProfile\",value:function(e){return this.groupMap.get(e)}},{key:\"sortLocalGroupList\",value:function(){var e=m(this.groupMap).filter((function(e){var t=v(e,2);return t[0],!jt(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(m(e))}},{key:\"updateGroupLastMessage\",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:\"emitGroupListUpdate\",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent(E.GROUP_LIST_UPDATED),t){var o=JSON.parse(JSON.stringify(n)),s=this.getModule(Fn);s.updateConversationGroupProfile(o)}}},{key:\"patchGroupMessageRemindType\",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Fn),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),xe.l(\"\".concat(this._n,\".patchGroupMessageRemindType count:\").concat(n))}},{key:\"recomputeUnreadCount\",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Fn);e.forEach((function(e){var n=e.groupID,o=e.selfInfo,s=o.excludedUnreadSequenceList,a=o.readedSequence;if(st(s)){var r=0;s.forEach((function(t){t>=a&&t<=e.nextMessageSeq-1&&(r+=1)})),r>=1&&t.recomputeGroupUnreadCount({conversationID:\"\".concat(S.CONV_GROUP).concat(n),count:r})}}))}},{key:\"getMyNameCardByGroupID\",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:\"\"}},{key:\"isPagingGetCompleted\",value:function(){return!!this._commonGroupHandler&&this._commonGroupHandler.isPagingGetCompleted()}},{key:\"getGroupList\",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):za()}},{key:\"getGroupProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getGroupProfile\"),o=new ka(\"getGroupProfile\"),s=e.groupID,a=e.groupCustomFieldFilter;xe.l(\"\".concat(n,\" groupID:\").concat(s));var r={groupIDList:[s],responseFilter:{groupBaseInfoFilter:[\"Type\",\"Name\",\"Introduction\",\"Notification\",\"FaceUrl\",\"Owner_Account\",\"CreateTime\",\"InfoSeq\",\"LastInfoTime\",\"LastMsgTime\",\"MemberNum\",\"MaxMemberNum\",\"ApplyJoinOption\",\"NextMsgSeq\",\"ShutUpAllMember\",\"InviteJoinOption\"],groupCustomFieldFilter:a,memberInfoFilter:[\"Role\",\"JoinTime\",\"MsgSeq\",\"MsgFlag\",\"NameCard\"]}};return this.getGroupProfileAdvance(r).then((function(e){var a,r=e.data,i=r.successGroupList,u=r.failureGroupList;if(xe.l(\"\".concat(n,\" ok\")),u.length>0)return Ja(u[0]);(Ct(i[0].type)&&!t.hasLocalGroup(s)?a=new dr(i[0]):(t.updateGroupMap(i),a=t.getLocalGroupProfile(s)),a.isSupportTopic)||t.getModule(Fn).updateConversationGroupProfile([a]);return o.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(s,\" type:\").concat(a.type,\" muteAllMembers:\").concat(a.muteAllMembers,\" ownerID:\").concat(a.ownerID)).end(),Ka({group:a})})).catch((function(s){return t.probeNetwork().then((function(t){var n=v(t,2),a=n[0],r=n[1];o.setError(s,a,r).setMessage(\"groupID:\".concat(e.groupID)).end()})),xe.e(\"\".concat(n,\" failed. error:\"),s),Ja(s)}))}},{key:\"getGroupProfileAdvance\",value:function(e){var n=\"\".concat(this._n,\".getGroupProfileAdvance\"),o=e.groupIDList;st(o)&&o.length>50&&(this.outputWarning(\"GetGroupProfileLimit\"),o.length=50);var s=[],a=[];o.forEach((function(e){Tt({groupID:e})?a.push(e):s.push(e)}));var r=[];if(s.length>0){var i=this._getGroupProfileAdvance(t(t({},e),{},{groupIDList:s}));r.push(i)}if(a.length>0){var u=this._getGroupProfileAdvance(t(t({},e),{},{groupIDList:a,relayFlag:s.length>0}));r.push(u)}return Promise.all(r).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,m(e.successGroupList)),n.push.apply(n,m(e.failureGroupList))})),Ka({successGroupList:t,failureGroupList:n})})).catch((function(e){return xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_getGroupProfileAdvance\",value:function(e){var t=this,n=e.relayFlag,o=void 0!==n&&n,s=g(e,br);return this.request({protocolName:Yo,requestData:s}).then((function(e){xe.l(\"\".concat(t._n,\"._getGroupProfileAdvance ok.\"));var n=e.data.groups;return{successGroupList:n.filter((function(e){return at(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new Wa({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return o&&Tt({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:Ja(t)}))}},{key:\"createGroup\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"createGroup\"),s=e.type,a=e.groupID;if(e.name&&!1===this._filterProfanity(\"name\",e))return Ja({code:da.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return Ja({code:da.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return Ja({code:da.PROFANITY_FOUND});if(![\"Public\",\"Private\",\"ChatRoom\",\"AVChatRoom\",\"Community\"].includes(s))return Ja({code:da.ILLEGAL_GROUP_TYPE});if(!Tt({type:s})){if(!jt(a)&&Tt({groupID:a}))return Ja({code:da.ILLEGAL_GROUP_ID});e.isSupportTopic=void 0}if(Ct(s)&&!at(e.memberList)&&e.memberList.length>0&&(e.memberList=void 0),this._canIUseJoinOption(s)||at(e.joinOption)||(e.joinOption=void 0),Tt({type:s})){if(!jt(a)&&!Tt({groupID:a}))return Ja({code:da.ILLEGAL_GROUP_ID});e.isSupportTopic=!0===e.isSupportTopic?1:0}var r=new ka(\"createGroup\");xe.l(\"\".concat(o,\" options:\"),e);var i=null,u=[];return this.request({protocolName:jo,requestData:t(t({},e),{},{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(s){var a=s.data,c=a.groupID,l=a.overLimitUserIDList,p=void 0===l?[]:l;if(i=c,u=p,r.setNetworkType(n.getNetworkType()).setMessage(\"groupType:\".concat(e.type,\" groupID:\").concat(c,\" overLimitUserIDList=\").concat(p)).end(),xe.l(\"\".concat(o,\" ok groupID:\").concat(c,\" overLimitUserIDList:\"),p),e.type===S.GRP_AVCHATROOM)return n.getGroupProfile({groupID:c});if(e.type===S.GRP_COMMUNITY&&1===e.isSupportTopic)return n.getGroupProfile({groupID:c});jt(e.memberList)||jt(p)||(e.memberList=e.memberList.filter((function(e){return-1===p.indexOf(e.userID)}))),n.updateGroupMap([t(t({},e),{},{groupID:c})]);var d=n.getModule(Rn),g=d.createCustomMessage({to:c,conversationType:S.CONV_GROUP,payload:{data:\"group_create\",extension:n.isIntl()?\"\".concat(n.getMyUserID(),\" created a group\"):\"\".concat(n.getMyUserID(),\"创建群组\")}});return d.sendMessageInstance(g),n.emitGroupListUpdate(),n.getGroupProfile({groupID:c})})).then((function(e){var t=e.data.group,n=t.selfInfo,o=n.nameCard,s=n.joinTime;return t.updateSelfInfo({nameCard:o,joinTime:s,messageRemindType:S.MSG_REMIND_ACPT_AND_NOTE,role:S.GRP_MBR_ROLE_OWNER}),Ka({group:t,overLimitUserIDList:u})})).catch((function(s){if(r.setMessage(\"groupType:\".concat(e.type)),n.probeNetwork().then((function(e){var t=v(e,2),n=t[0],o=t[1];r.setError(s,n,o).end()})),10010===s.code||10007===s.code){n.updateGroupMap([t(t({},e),{},{groupID:i})]);var a=n.getLocalGroupProfile(i);return xe.l(\"\".concat(o,\" success, but failed to get group profile.\")),Ka({group:a,overLimitUserIDList:u})}return xe.e(\"\".concat(o,\" failed. error:\"),s),Ja(s)}))}},{key:\"dismissGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"dismissGroup\");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===S.GRP_WORK)return Ja(new Wa({code:da.CANNOT_DISMISS_WORK}));var o=new ka(\"dismissGroup\");return o.setMessage(\"groupID:\".concat(e)),xe.l(\"\".concat(n,\" groupID:\").concat(e)),this.request({protocolName:zo,requestData:{groupID:e}}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),Ka({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"updateGroupProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"updateGroupProfile\");if(this.hasLocalGroup(e.groupID)){var o=this.getLocalGroupProfile(e.groupID).type;this._canIUseJoinOption(o)||at(e.joinOption)||(xe.w(\"\".concat(n,\" joinOption is unavailable for Work/Meeting/AVChatRoom\")),e.joinOption=void 0)}if(at(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers=\"On\":e.muteAllMembers=\"Off\"),e.name&&!1===this._filterProfanity(\"name\",e))return Ja({code:da.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return Ja({code:da.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return Ja({code:da.PROFANITY_FOUND});var s=new ka(\"updateGroupProfile\");return s.setMessage(JSON.stringify(e)),xe.l(\"\".concat(n,\" groupID:\").concat(e.groupID)),this.request({protocolName:Jo,requestData:e}).then((function(){(s.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\")),t.hasLocalGroup(e.groupID))&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList());return Ka({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],a=n[1];s.setError(e,o,a).end()})),xe.l(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_filterProfanity\",value:function(e,t){var n=this.getModule(no);if(!n)return!0;var o=n.filterText(t[e],z),s=o.isAllowedToSend,a=o.modifiedText;return!0===s&&(t[e]=a,!0)}},{key:\"joinGroup\",value:function(e){var t=this,n=e.groupID,o=e.type,s=\"\".concat(this._n,\".joinGroup\");if(o===S.GRP_WORK)return Ja({code:da.CANNOT_JOIN_WORK});if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return za({status:S.JOIN_STATUS_ALREADY_IN_GROUP});var a=new ka(\"applyJoinGroup\");return this.getGroupProfile({groupID:n}).then((function(){return a.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(n,\" joinedStatus:\").concat(S.JOIN_STATUS_ALREADY_IN_GROUP)).end(),za({status:S.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(o){return a.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(n,\" unjoined\")).end(),xe.w(\"\".concat(s,\" \").concat(n,\" was unjoined, now join!\")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return xe.l(\"\".concat(s,\" groupID:\").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:\"applyJoinGroup\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"applyJoinGroup\"),s=e.groupID;if(!jt(e.applyMessage)&&!1===this._filterProfanity(\"applyMessage\",e))return Ja({code:da.PROFANITY_FOUND});var a=new ka(\"applyJoinGroup\"),r=t({},e),i=this.canIUse(B.AVCHATROOM_HISTORY_MSG);return i&&(r.historyMessageFlag=1),this.getModule(Fn).deleteTopicRoamingMessageInfo(s),this.request({protocolName:Xo,requestData:r}).then((function(e){var t=e.data,r=t.joinedStatus,u=t.longPollingKey,c=t.startSeq,l=t.avChatRoomFlag,p=t.avChatRoomKey,d=t.messageList,g=\"groupID:\".concat(s,\" joinedStatus:\").concat(r,\" longPollingKey:\").concat(u,\" startSeq:\").concat(c)+\" avChatRoomFlag:\".concat(l,\" canGetAVChatRoomHistoryMessage:\").concat(i,\",\")+\" history message count:\".concat(jt(d)?0:d.length);switch(a.setNetworkType(n.getNetworkType()).setMessage(\"\".concat(g)).end(),xe.l(\"\".concat(o,\" ok. \").concat(g)),r){case je:return Ka({status:je});case Ye:return n.getGroupProfile({groupID:s}).then((function(e){var t=e.data.group;return n._handleJoinResult({group:t,avChatRoomFlag:l,longPollingKey:u,startSeq:c,avChatRoomKey:p,messageList:d})})).catch((function(){var e=new dr({groupID:s});return n._handleJoinResult({group:e,avChatRoomFlag:l,longPollingKey:u,startSeq:c,avChatRoomKey:p,messageList:d})}));default:var _=new Wa({code:da.JOIN_GROUP_FAIL});return xe.e(\"\".concat(o,\" failed. error:\"),_),Ja(_)}})).catch((function(e){return a.setMessage(\"groupID:\".concat(s)),n.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}},{key:\"_handleJoinResult\",value:function(e){var t,n=this,o=e.group,s=e.avChatRoomFlag,a=e.longPollingKey,r=e.startSeq,i=e.avChatRoomKey,u=e.messageList,c=o.groupID;return 1===s?(this.getModule(Fn).setCompleted(\"\".concat(S.CONV_GROUP).concat(c)),this._groupAttributesHandler.initGroupAttributesCache({groupID:c,avChatRoomKey:i}),this._groupCountersHandler.initGroupCountersCache({groupID:c,avChatRoomKey:i}),(t=at(a)?this._AVChatRoomHandler.handleJoinResult({group:o}):this._AVChatRoomHandler.startRunLoop({group:o,longPollingKey:a,startSeq:r})).then((function(){n._onAVChatRoomHistoryMessage(u)})),t):(this.emitGroupListUpdate(!0,!1),Ka({status:Ye,group:o}))}},{key:\"quitGroup\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"quitGroup\");xe.l(\"\".concat(n,\" groupID:\").concat(e));var o=this.checkJoinedAVChatRoomByID(e);if(!o&&!this.hasLocalGroup(e))return Ja({code:da.MEMBER_NOT_IN_GROUP});if(o&&!this.isLoggedIn())return xe.l(\"\".concat(n,\" anonymously ok. groupID:\").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),za({groupID:e});var s=new ka(\"quitGroup\");return s.setMessage(\"groupID:\".concat(e)),this.request({protocolName:Zo,requestData:{groupID:e}}).then((function(){return s.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\")),t.deleteLocalGroupAndConversation(e),o&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),Ka({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],a=n[1];s.setError(e,o,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"searchGroupByID\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"searchGroupByID\"),o={groupIDList:[e]},s=new ka(\"searchGroupByID\");return s.setMessage(\"groupID:\".concat(e)),xe.l(\"\".concat(n,\" groupID:\").concat(e)),this.request({protocolName:$o,requestData:o}).then((function(e){var o=e.data.groupProfile;if(0!==o[0].errorCode)throw new Wa({code:o[0].errorCode,message:o[0].errorInfo});return s.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\")),Ka({group:new dr(o[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],a=n[1];s.setError(e,o,a).end()})),xe.w(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"changeGroupOwner\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"changeGroupOwner\");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===S.GRP_AVCHATROOM)return Ja({code:da.CANNOT_CHANGE_OWNER_IN_AVCHATROOM});if(e.newOwnerID===this.getMyUserID())return Ja({code:da.CANNOT_CHANGE_OWNER_TO_SELF});var o=new ka(\"changeGroupOwner\");return o.setMessage(\"groupID:\".concat(e.groupID,\" newOwnerID:\").concat(e.newOwnerID)),xe.l(\"\".concat(n,\" groupID:\").concat(e.groupID)),this.request({protocolName:es,requestData:e}).then((function(){o.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var s=e.groupID,a=e.newOwnerID;t.groupMap.get(s).ownerID=a;var r=t.getModule(bn).getLocalGroupMemberList(s);if(r instanceof Map){var i=r.get(t.getMyUserID());at(i)||(i.updateRole(\"Member\"),t.groupMap.get(s).selfInfo.role=\"Member\");var u=r.get(a);at(u)||u.updateRole(\"Owner\")}return t.emitGroupListUpdate(!0,!1),Ka({group:t.groupMap.get(s)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"getGroupApplicationList\",value:function(){return this._groupSystemNoticeHandler.getGroupApplicationList()}},{key:\"handleGroupApplication\",value:function(e){var t,n,o,s,a,r=this,i=\"\".concat(this._n,\".\").concat(\"handleGroupApplication\"),u=e.handleAction,c=e.handleMessage,l=e.message,p=e.application;l?(t=l.payload.operatorID,n=l.payload.groupProfile.groupID,o=l.payload.authentication,s=l.payload.messageKey):p&&(t=p.applicant,n=p.groupID,o=p.authentication,s=p.messageKey);var d=ts;p&&2===p.applicationType&&(d=ns,a=p.userID);var g=new ka(\"handleGroupApplication\");return g.setMessage(\"groupID:\".concat(n)),xe.l(\"\".concat(i,\" groupID:\").concat(n)),this.request({protocolName:d,requestData:{handleAction:u,handleMessage:c,applicant:t,invitee:a,groupID:n,authentication:o,messageKey:s}}).then((function(){return g.setNetworkType(r.getNetworkType()).end(),xe.l(\"\".concat(i,\" ok\")),l&&r._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),Ka({group:r.getLocalGroupProfile(n)})})).catch((function(e){return r.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];g.setError(e,o,s).end()})),xe.e(\"\".concat(i,\" failed. error\"),e),Ja(e)}))}},{key:\"handleGroupInvitation\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"handleGroupInvitation\"),s=e.message.payload,a=s.groupProfile.groupID,r=s.authentication,i=s.messageKey,u=s.operatorID,c=e.handleAction,l=new ka(\"handleGroupInvitation\");return l.setMessage(\"groupID:\".concat(a,\" inviter:\").concat(u,\" handleAction:\").concat(c)),xe.l(\"\".concat(o,\" groupID:\").concat(a,\" inviter:\").concat(u,\" handleAction:\").concat(c)),this.request({protocolName:os,requestData:t(t({},e),{},{inviter:u,groupID:a,authentication:r,messageKey:i})}).then((function(){return l.setNetworkType(n.getNetworkType()).end(),xe.l(\"\".concat(o,\" ok\")),n._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),Ka({group:n.getLocalGroupProfile(a)})})).catch((function(e){return n.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];l.setError(e,o,s).end()})),xe.e(\"\".concat(o,\" failed. error\"),e),Ja(e)}))}},{key:\"getGroupOnlineMemberCount\",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):za({memberCount:0}):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"hasLocalGroup\",value:function(e){return this.groupMap.has(e)}},{key:\"deleteLocalGroupAndConversation\",value:function(e){var t=this.checkJoinedAVChatRoomByID(e);(xe.l(\"\".concat(this._n,\".deleteLocalGroupAndConversation isJoinedAVChatRoom:\").concat(t)),t)&&this.getModule(Fn).deleteLocalConversation(\"\".concat(S.CONV_GROUP).concat(e));if(Tt({groupID:e})){var n=this.getLocalGroupProfile(e);if(n&&!0===n.isSupportTopic)this.getModule(wn).deleteTopicListInCommunity(e)}this._deleteLocalGroup(e),this.emitGroupListUpdate(!0,!1)}},{key:\"_deleteLocalGroup\",value:function(e){this.groupMap.delete(e),this.getModule(bn).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:\"sendMessage\",value:function(e,t){if(st(e._receiverList)&&e._receiverList.length>0&&!this.canIUse(B.MSG_TO_SPECIFIED_GRP_MBR))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:\"createGroupMessagePack\",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var o=\"\";et(e.cloudCustomData)&&e.cloudCustomData.length>0&&(o=e.cloudCustomData);var s=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,r=a.excludedFromUnreadCount,i=a.excludedFromLastMessage,u=a.excludedFromContentModeration;!0===r&&s.push(\"NoUnread\"),!0===i&&s.push(\"NoLastMsg\"),!0===u&&s.push(\"NoMsgCheck\")}var c=void 0;st(e._receiverList)&&e._receiverList.length>0&&(c=e._receiverList,e._receiverList.length>50&&(c=e._receiverList.slice(0,50),this.outputWarning(\"ReceiverListLimit\")));var l=this.isOnlineMessage(e,t)?1:0,p=e.getGroupAtInfoList(),d={fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:o,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==S.MSG_TEXT||jt(p)?void 0:p,onlineOnlyFlag:l,clientTime:e.clientTime,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||\"\",desc:n.description||\"\",ext:n.extension||\"\",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||\"\"}}:void 0,messageControlInfo:0===l?s:void 0,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1,receiverList:c,isSupportExtension:!0===e.isSupportExtension?1:0};return Dt(e.to)&&(d.groupID=qt(e.to),d.topicID=e.to),{protocolName:ho,tjgID:this.generateTjgID(e),requestData:d}}},{key:\"_isVoipPush\",value:function(e){var t=void 0;return at(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:\"revokeMessage\",value:function(e){var t={groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]};return Dt(e.to)&&(t.groupID=qt(e.to),t.topicID=e.to),this.request({protocolName:ss,requestData:t})}},{key:\"deleteMessage\",value:function(e){var t=e.to,n=e.keyList;xe.l(\"\".concat(this._n,\".deleteMessage groupID:\").concat(t,\" count:\").concat(n.length));var o={groupID:t,deleter:this.getMyUserID(),keyList:n};return Dt(t)&&(o.groupID=qt(t),o.topicID=t),this.request({protocolName:vs,requestData:o})}},{key:\"modifyRemoteMessage\",value:function(e){var t=e.to,n=e.sequence,o=e.payload,s=e.type,a=e.version,r=void 0===a?0:a,i=e.cloudCustomData,u=t,c=void 0;Dt(t)&&(u=qt(t),c=t);var l=void 0;return Vt(s)&&(l=[]).push({type:s,content:o}),this.request({protocolName:ms,requestData:{groupID:u,topicID:c,sequence:n,version:r,elements:l,cloudCustomData:i}})}},{key:\"getRoamingMessage\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRoamingMessage\"),o=e.conversationID,s=e.groupID,a=e.sequence,r=new ka(\"getGroupRoamingMessages\"),i=0,u=void 0;return Dt(s)&&(s=qt(u=s)),this._computeLastSequence({groupID:s,topicID:u,sequence:a}).then((function(e){return i=e,xe.l(\"\".concat(n,\" groupID:\").concat(s,\" startSequence:\").concat(i)),t.request({protocolName:is,requestData:{groupID:s,count:21,sequence:i,topicID:u}})})).then((function(e){var a=e.data,c=a.messageList,l=a.complete,p=a.invisibleSequenceList,d=void 0===p?[]:p;at(c)?xe.l(\"\".concat(n,\" ok. complete:\").concat(l,\" but messageList is undefined!\")):xe.l(\"\".concat(n,\" ok. complete:\").concat(l,\" count:\").concat(c.length));var g=t._getMinSequence(d,c)-1;r.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(s,\" topicID:\").concat(u,\" startSequence:\").concat(i,\" complete:\").concat(l,\" nextSequence:\").concat(g)).end();var _=t.getModule(Fn),h=[];return jt(c)||(_.updateRoamingMessageSequence(o,g),h=_.onRoamingMessage(c,o),_.updateIsRead(o),_.patchConversationLastMessage(o)),(2===l||g<=1)&&(_.setCompleted(o),g=\"\"),xe.l(\"\".concat(n,\" nextReqID:\").concat(g,\", stored message count:\").concat(h.length,\", invisible sequence count:\").concat(d.length)),{nextReqID:g+\"\",storedMessageList:h}})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],a=n[1];r.setError(e,o,a).setMessage(\"groupID:\".concat(s,\" topicID:\").concat(u,\" startSequence:\").concat(i)).end()})),xe.w(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_getGroupIDOfMessage\",value:function(e){return e.conversationID.replace(S.CONV_GROUP,\"\")}},{key:\"_getMinSequence\",value:function(e,t){var n=0;jt(t)||(n=t[t.length-1].sequence);var o=0;jt(e)||(o=e[e.length-1]);return xe.l(\"\".concat(this._n,\"._getMinSequence minVisibleSequence:\").concat(n,\" minInvisibleSequence:\").concat(o)),o>0&&o<n?o:n}},{key:\"getReadReceiptList\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getReadReceiptList\"),o=this._getGroupIDOfMessage(e[0]),s=this.getMyUserID(),a=e.filter((function(e){return e.from===s&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(xe.l(\"\".concat(n,\" groupID:\").concat(o,\" sequenceList:\").concat(JSON.stringify(a))),0===a.length)return za({messageList:e});var r=new ka(\"getReadReceiptList\");return r.setMessage(\"groupID:\".concat(o)),this.request({protocolName:us,requestData:{groupID:o,sequenceList:a}}).then((function(t){r.end(),xe.l(\"\".concat(n,\" ok\"));var o=t.data.readReceiptList;return st(o)&&o.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),Ka({messageList:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.w(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"sendReadReceipt\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"sendReadReceipt\"),o=this._getGroupIDOfMessage(e[0]),s=new ka(\"sendReadReceipt\");s.setMessage(\"groupID:\".concat(o));var a=this.getMyUserID(),r=e.filter((function(e){return e.from!==a&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));return 0===r.length?Ja({code:da.READ_RECEIPT_MESSAGE_LIST_EMPTY}):(xe.l(\"\".concat(n,\". sequenceList:\").concat(JSON.stringify(r))),this.request({protocolName:cs,requestData:{groupID:o,sequenceList:r}}).then((function(e){return s.end(),xe.l(\"\".concat(n,\" ok\")),Ka()})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],a=n[1];s.setError(e,o,a).end()})),xe.w(\"\".concat(n,\" failed. error:\"),e),Ja(e)})))}},{key:\"getReadReceiptDetail\",value:function(e){var t=this,n=e.message,o=e.filter,s=e.cursor,a=e.count,r=this._getGroupIDOfMessage(n),i=n.ID,u=n.sequence,c=\"\".concat(this._n,\".\").concat(\"getReadReceiptDetail\"),l=this._receiptDetailCompleteMap.get(i)||!1,p=0!==o&&1!==o?0:o,d=et(s)?s:\"\",g=!$e(a)||a<=0||a>=100?100:a,_=\"groupID:\".concat(r,\" sequence:\").concat(u,\" cursor:\").concat(d,\" filter:\").concat(p,\" completeFlag:\").concat(l);xe.l(\"\".concat(c,\" \").concat(_));var h={cursor:\"\",isCompleted:!1,messageID:i,unreadUserIDList:[],readUserIDList:[]},f=new ka(\"getReadReceiptDetail\");return f.setMessage(_),this.request({protocolName:ps,requestData:{groupID:r,sequence:u,flag:p,cursor:d,count:g}}).then((function(e){f.end();var n=e.data,o=n.cursor,s=n.isCompleted,a=n.unreadUserIDList,r=n.readUserIDList;return h.cursor=o,1===s&&(h.isCompleted=!0,t._receiptDetailCompleteMap.set(i,!0)),0===p?h.readUserIDList=r.map((function(e){return e.userID})):1===p&&(h.unreadUserIDList=a.map((function(e){return e.userID}))),xe.l(\"\".concat(c,\" ok\")),Ka(h)})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];f.setError(e,o,s).end()})),xe.w(\"\".concat(c,\" failed. error:\"),e),Ja(e)}))}},{key:\"getRoamingMessagesHopping\",value:function(e){var t=this,n=\"\".concat(this._n,\".getRoamingMessagesHopping\"),o=new ka(\"getGroupRoamingMessagesHopping\"),s=e.groupID,a=e.count,r=e.sequence,i=e.direction,u=r;1===i&&(u=r+a-1);var c=void 0;Dt(s)&&(s=qt(c=s));var l=\"\".concat(c?\"topicID:\".concat(c):\"groupID:\".concat(s),\" sequence:\").concat(r,\" direction:\").concat(i);return xe.l(\"\".concat(n,\" \").concat(l)),this.request({protocolName:is,requestData:{groupID:s,topicID:c,count:a,sequence:u}}).then((function(s){var a=s.data,u=a.messageList,c=a.complete,p=\"complete:\".concat(c,\" count:\").concat(u?u.length:0);if(xe.l(\"\".concat(n,\" ok. \").concat(p)),o.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(l,\" \").concat(p)).end(),2===c||jt(u)){var d=t._computeResult();return Ka(d)}var g=\"\".concat(S.CONV_GROUP).concat(e.groupID),_=t.getModule(Fn).onRoamingMessage(u,g,!1),h=t._computeResult({direction:i,sequence:r,remoteMessageList:u,processedMessageList:_});return Ka(h)})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),i=n[0],u=n[1];o.setError(e,i,u).setMessage(\"groupID:\".concat(s,\" sequence:\").concat(r,\" count:\").concat(a)).end()})),xe.w(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_computeResult\",value:function(e){var t={messageList:[],isCompleted:!1,nextMessageSeq:\"\"};if(at(e))return t.isCompleted=!0,t;var n=e.direction,o=e.sequence,s=e.remoteMessageList,a=void 0===s?[]:s,r=e.processedMessageList,i=void 0===r?[]:r,u=a.length;return 1===n?(t.nextMessageSeq=a[0].sequence+1,i.forEach((function(e){e.sequence>=o&&t.messageList.push(e)})),0===t.messageList.length&&a[0].sequence<o&&(t.isCompleted=!0,t.nextMessageSeq=\"\"),t):(t.nextMessageSeq=a[u-1].sequence-1,t.messageList=m(i),0===t.nextMessageSeq&&(t.isCompleted=!0,t.nextMessageSeq=\"\"),t)}},{key:\"setMessageRead\",value:function(e){var t=this,n=e.conversationID,o=e.lastMessageSeq,s=\"\".concat(this._n,\".setMessageRead\");xe.l(\"\".concat(s,\" conversationID:\").concat(n,\" lastMessageSeq:\").concat(o)),$e(o)||this.outputWarning(\"DoNotModifyLastSeq\");var a=new ka(\"setGroupMessageRead\");a.setMessage(\"\".concat(n,\"-\").concat(o));var r=n.replace(S.CONV_GROUP,\"\"),i=void 0;return Dt(r)&&(r=qt(i=r)),this.request({protocolName:as,requestData:{groupID:r,topicID:i,messageReadSeq:o}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(s,\" ok.\"));var e=t.getModule(Fn);e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:o});var u=!0;if(!at(i)){u=!1;var c=t.getModule(wn).getLocalTopic(r,i);c&&c.updateSelfInfo({readedSequence:o})}return e.updateUnreadCount(n,u),Ka()})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),xe.l(\"\".concat(s,\" failed. error:\"),e),Ja(e)}))}},{key:\"_computeLastSequence\",value:function(e){var t=e.groupID,n=e.topicID,o=void 0===n?void 0:n,s=e.sequence;return s>0?Promise.resolve(s):at(o)||this.hasLocalGroup(t)?at(o)?this.getGroupLastSequence(t):this.getTopicLastSequence({groupID:t,topicID:o}):Promise.resolve(0)}},{key:\"getGroupLastSequence\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getGroupLastSequence\"),o=new ka(\"getGroupLastSequence\"),s=0,a=\"\";if(this.hasLocalGroup(e)){var r=this.getLocalGroupProfile(e),i=r.lastMessage;if(i.lastSequence>0&&!1===i.onlineOnlyFlag)return s=i.lastSequence,a=\"got lastSequence:\".concat(s,\" from local group profile[lastMessage.lastSequence]. groupID:\").concat(e),xe.l(\"\".concat(n,\" \").concat(a)),o.setNetworkType(this.getNetworkType()).setMessage(\"\".concat(a)).end(),Promise.resolve(s);if(r.nextMessageSeq>1)return s=r.nextMessageSeq-1,a=\"got lastSequence:\".concat(s,\" from local group profile[nextMessageSeq]. groupID:\").concat(e),xe.l(\"\".concat(n,\" \").concat(a)),o.setNetworkType(this.getNetworkType()).setMessage(\"\".concat(a)).end(),Promise.resolve(s)}var u=\"GROUP\".concat(e),c=this.getModule(Fn).getLocalConversation(u);if(c&&c.lastMessage.lastSequence&&!1===c.lastMessage.onlineOnlyFlag)return s=c.lastMessage.lastSequence,a=\"got lastSequence:\".concat(s,\" from local conversation profile[lastMessage.lastSequence]. groupID:\").concat(e),xe.l(\"\".concat(n,\" \").concat(a)),o.setNetworkType(this.getNetworkType()).setMessage(\"\".concat(a)).end(),Promise.resolve(s);var l={groupIDList:[e],responseFilter:{groupBaseInfoFilter:[\"NextMsgSeq\"]}};return this.getGroupProfileAdvance(l).then((function(r){var i=r.data.successGroupList;return jt(i)?xe.l(\"\".concat(n,\" successGroupList is empty. groupID:\").concat(e)):(s=i[0].nextMessageSeq-1,a=\"got lastSequence:\".concat(s,\" from getGroupProfileAdvance. groupID:\").concat(e),xe.l(\"\".concat(n,\" \").concat(a))),o.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(a)).end(),s})).catch((function(s){return t.probeNetwork().then((function(t){var n=v(t,2),a=n[0],r=n[1];o.setError(s,a,r).setMessage(\"get lastSequence failed from getGroupProfileAdvance. groupID:\".concat(e)).end()})),xe.w(\"\".concat(n,\" failed. error:\"),s),Ja(s)}))}},{key:\"getTopicLastSequence\",value:function(e){var t=this,n=e.groupID,o=e.topicID,s=\"\".concat(this._n,\".\").concat(\"getTopicLastSequence\"),a=new ka(\"getTopicLastSequence\"),r=0,i=\"\",u=this.getModule(wn);return u.hasLocalTopic(n,o)?(r=u.getLocalTopic(n,o).nextMessageSeq-1,i=\"get lastSequence:\".concat(r,\" from local topic info[nextMessageSeq]. topicID:\").concat(o),xe.l(\"\".concat(s,\" \").concat(i)),a.setNetworkType(this.getNetworkType()).setMessage(\"\".concat(i)).end(),Promise.resolve(r)):u.getTopicList({groupID:n,topicIDList:[o]}).then((function(e){var n=e.data.successTopicList;return jt(n)?xe.l(\"\".concat(s,\" successTopicList is empty. topicID:\").concat(o)):(r=n[0].nextMessageSeq-1,i=\"get lastSequence:\".concat(r,\" from getTopicList. topicID:\").concat(o),xe.l(\"\".concat(s,\" \").concat(i))),a.setNetworkType(t.getNetworkType()).setMessage(\"\".concat(i)).end(),r})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),s=n[0],r=n[1];a.setError(e,s,r).setMessage(\"get lastSequence failed from getTopicList. topicID:\".concat(o)).end()})),xe.w(\"\".concat(s,\" failed. error:\"),e),Ja(e)}))}},{key:\"isMessageFromOrToAVChatroom\",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:\"hasJoinedAVChatRoom\",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:\"getJoinedAVChatRoom\",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:\"isOnlineMessage\",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:\"_canIUseOnlineOnlyFlag\",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==S.CONV_GROUP}},{key:\"_onAVChatRoomHistoryMessage\",value:function(e){if(!jt(e)){xe.l(\"\".concat(this._n,\"._onAVChatRoomHistoryMessage count:\").concat(e.length));var n=[];e.forEach((function(e){n.push(t(t({},e),{},{isHistoryMessage:1}))})),this.onAVChatRoomMessage(n)}}},{key:\"onAVChatRoomMessage\",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:\"onAVChatRoomMemberBanned\",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onAVChatRoomMemberBanned(e)}},{key:\"getGroupSimplifiedInfo\",value:function(e){var t=this,n=new ka(\"getGroupSimplifiedInfo\"),o={groupIDList:[e],responseFilter:{groupBaseInfoFilter:[\"Type\",\"Name\"]}};return this.getGroupProfileAdvance(o).then((function(o){var s=o.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(e,\" type:\").concat(s[0].type)).end(),s[0]})).catch((function(o){t.probeNetwork().then((function(t){var s=v(t,2),a=s[0],r=s[1];n.setError(o,a,r).setMessage(\"groupID:\".concat(e)).end()}))}))}},{key:\"setUnjoinedAVChatRoom\",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:\"deleteUnjoinedAVChatRoom\",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:\"isUnjoinedAVChatRoom\",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:\"isGroupAttributesUpdatedNotice\",value:function(e){return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e)}},{key:\"updateLocalMainSequenceOnReconnected\",value:function(){this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:\"initGroupAttributes\",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:\"setGroupAttributes\",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:\"deleteGroupAttributes\",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:\"getGroupAttributes\",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:\"isMessageFromTopic\",value:function(e,t){return 2===e&&!jt(t)}},{key:\"isMessageFromCommunityOfTopic\",value:function(e,t){return 2===e&&jt(t)}},{key:\"getMessageExtensions\",value:function(e,t){return xe.l(\"\".concat(this._n,\".getMessageExtensions startSequence:\").concat(t)),this.request({protocolName:Es,requestData:{groupID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:\"modifyMessageExtensions\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return xe.l(\"\".concat(this._n,\".modifyMessageExtensions operateType:\").concat(n)),this.request({protocolName:Ds,requestData:{groupID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:\"getGroupNotify\",value:function(e){var n=this;if(this.hasLocalGroup(e)){var o=this.getLocalGroupProfile(e),s=o.type,a=o.isSupportTopic;if(!Ct(s)&&!a){var r=\"\".concat(this._n,\".getGroupNotify\"),i=this._getGroupLastRevokedTime(e),u=1e3*Ue();xe.l(\"\".concat(r,\" groupID:\").concat(e,\" type:\").concat(s,\" beginTime:\").concat(i,\" endTime:\").concat(u)),this.request({protocolName:Ss,requestData:{type:Tt({type:s,groupID:e})?S.GRP_COMMUNITY:void 0,groupID:e,beginTime:i,endTime:u}}).then((function(o){var s=o.data,a=s.nextRevokedTime,i=s.notifyList;xe.l(\"\".concat(r,\" ok. groupID:\").concat(e,\" nextRevokedTime:\").concat(a));var u={dataList:[{elements:{revokedInfos:[]}}]};st(i)&&i.forEach((function(n){u.dataList[0].elements.revokedInfos.push({groupID:e,sequence:n.sequence,random:n.random,revokerInfo:t({},n.revokerInfo)})})),n.onGroupMessageRevoked(u),0!==a?(n._setGroupLastRevokedTime(e,a),n.getGroupNotify(e)):n._setGroupLastRevokedTime(e,1e3*Ue())})).catch((function(e){xe.e(\"\".concat(r,\" failed. error:\"),e)}))}}}},{key:\"_getGroupLastRevokedTime\",value:function(e){return this.hasLocalGroup(e)?this.getLocalGroupProfile(e)._lastRevokedTime:0}},{key:\"_setGroupLastRevokedTime\",value:function(e,t){this.hasLocalGroup(e)&&(this.getLocalGroupProfile(e)._lastRevokedTime=t)}},{key:\"isGroupCountersNotice\",value:function(e){return this._groupCountersHandler.isGroupCountersNotice(e)}},{key:\"setGroupCounters\",value:function(e){return this._groupCountersHandler.setGroupCounters(e)}},{key:\"increaseGroupCounter\",value:function(e){return this._groupCountersHandler.increaseGroupCounter(e)}},{key:\"decreaseGroupCounter\",value:function(e){return this._groupCountersHandler.decreaseGroupCounter(e)}},{key:\"getGroupCounters\",value:function(e){return this._groupCountersHandler.getGroupCounters(e)}},{key:\"restartPolling\",value:function(){this._AVChatRoomHandler&&this._AVChatRoomHandler.restartPolling()}},{key:\"getPollingTimerID\",value:function(e){if(!e)return-1;var t=this.getLocalGroupProfile(e);return t&&Ct(t.type)?this._AVChatRoomHandler.getPollingTimerID(e):-1}},{key:\"_canIUseJoinOption\",value:function(e){return function(e){return e===S.GRP_PUBLIC}(e)||Tt({type:e})}},{key:\"reset\",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._groupAttributesHandler.reset(),this._groupCountersHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),s}(ro),Fr=function(){function e(t){o(this,e),this.userID=\"\",this.avatar=\"\",this.nick=\"\",this.role=\"\",this.joinTime=\"\",this.lastSendMsgTime=\"\",this.nameCard=\"\",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return a(e,[{key:\"_initMember\",value:function(e){this.updateMember(e)}},{key:\"updateMember\",value:function(e){var t=[null,void 0,\"\",0,NaN];e.memberCustomField&&It(this.memberCustomField,e.memberCustomField),pt(this,e,[\"memberCustomField\",\"marks\"],t)}},{key:\"updateRole\",value:function(e){[\"Owner\",\"Admin\",\"Member\"].indexOf(e)<0||(this.role=e)}},{key:\"updateMuteUntil\",value:function(e){at(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:\"updateNameCard\",value:function(e){at(e)||(this.nameCard=e)}},{key:\"updateMemberCustomField\",value:function(e){e&&It(this.memberCustomField,e)}}]),e}(),qr=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"GroupMemberModule\",t.groupMemberListMap=new Map,t.getInnerEmitterInstance().on(er,t._onProfileUpdated,_(t)),t}return a(s,[{key:\"_onProfileUpdated\",value:function(e){for(var t=this,n=e.data,o=function(e){var o=n[e];t.groupMemberListMap.forEach((function(e){e.has(o.userID)&&e.get(o.userID).updateMember({nick:o.nick,avatar:o.avatar})}))},s=0;s<n.length;s++)o(s)}},{key:\"deleteGroupMemberList\",value:function(e){this.groupMemberListMap.delete(e)}},{key:\"getGroupMemberList\",value:function(e){var t=this,n=e.groupID,o=e.offset,s=void 0===o?0:o,a=e.count,r=void 0===a?15:a,i=e.filter,u=void 0===i?void 0:i,c=\"\".concat(this._n,\".\").concat(\"getGroupMemberList\"),l=this.getModule(Un),p=l.hasLocalGroup(n);if(xe.l(\"\".concat(c,\" groupID:\").concat(n,\" offset:\").concat(s,\" count:\").concat(r,\" hasLocalGroup:\").concat(p)),!p)return za({memberList:[],offset:0});if(l.getLocalGroupProfile(n).type===S.GRP_AVCHATROOM){if(this.canIUse(B.AVCHATROOM_MBR_LIST))return this._getAVChatRoomMemberList({groupID:n,offset:s,filter:u});this.outputWarning(\"LiveOnlineMember\")}var d=new ka(\"getGroupMemberList\"),g=0,_={groupID:n,limit:r>100?100:r};Tt({groupID:n})?_.next=\"\".concat(s):(_.offset=s,g=s+r);var h=[];return this.request({protocolName:As,requestData:_}).then((function(e){var o=e.data,s=o.members,a=o.memberNum,r=o.next,i=void 0===r?void 0:r;if(at(i)||(g=jt(i)?0:i),!st(s)||0===s.length)return g=0,Promise.resolve([]);var u=t.getModule(Un);return u.hasLocalGroup(n)&&(u.getLocalGroupProfile(n).memberNum=a),h=t._updateLocalGroupMemberMap(n,s),t.getModule(On).getUserProfile({userIDList:s.map((function(e){return e.userID})),tagList:[Be.NICK,Be.AVATAR]})})).then((function(e){var o=e.data;if(!st(o)||0===o.length)return za({memberList:[],offset:g});var a=o.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,a),h.length<r&&(g=0),d.setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(n,\" offset:\").concat(s,\" count:\").concat(r)).end(),xe.l(\"\".concat(c,\" ok.\")),Ka({memberList:h,offset:g})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];d.setError(e,o,s).end()})),xe.e(\"\".concat(c,\" failed. error:\"),e),Ja(e)}))}},{key:\"_getAVChatRoomMemberList\",value:function(e){var t=this,n=e.groupID,o=e.offset,s=e.filter,a=\"\".concat(this._n,\".\").concat(\"_getAVChatRoomMemberList\"),r=new ka(\"_getAVChatRoomMemberList\");return r.setMessage(\"groupID:\".concat(n,\" offset:\").concat(o,\" filter:\").concat(s)),this.request({protocolName:Rs,requestData:{groupID:n,offset:o,filter:s}}).then((function(e){var o=e.data,s=o.memberList,i=void 0===s?[]:s,u=o.offset,c=void 0===u?0:u;r.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(a,\" ok. member count:\").concat(i.length,\", next request timestamp:\").concat(c));var l=t._updateLocalGroupMemberMap(n,i);return Ka({memberList:l,offset:c})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(a,\" failed. error:\"),e),Ja(e)}))}},{key:\"getGroupMemberProfile\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"getGroupMemberProfile\"),s=new ka(\"getGroupMemberProfile\");s.setMessage(e.userIDList.length>5?\"userIDList.length:\".concat(e.userIDList.length):\"userIDList:\".concat(e.userIDList)),xe.l(\"\".concat(o,\" groupID:\").concat(e.groupID,\" userIDList:\").concat(e.userIDList.join(\",\"))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var a=e.groupID,r=e.userIDList;return this._getGroupMemberProfileAdvance(t(t({},e),{},{userIDList:r})).then((function(e){var t=e.data.members;return st(t)&&0!==t.length?(n._updateLocalGroupMemberMap(a,t),n.getModule(On).getUserProfile({userIDList:t.map((function(e){return e.userID})),tagList:[Be.NICK,Be.AVATAR]})):za([])})).then((function(e){var t=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));n._updateLocalGroupMemberMap(a,t);var o=r.filter((function(e){return n.hasLocalGroupMember(a,e)})).map((function(e){return n.getLocalGroupMemberInfo(a,e)}));return s.setNetworkType(n.getNetworkType()).end(),Ka({memberList:o})}))}},{key:\"addGroupMember\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"addGroupMember\"),o=e.groupID,s=this.getModule(Un).getLocalGroupProfile(o),a=s.type,r=new ka(\"addGroupMember\");if(r.setMessage(\"groupID:\".concat(o,\" groupType:\").concat(a)),Ct(a)){var i=new Wa({code:da.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return r.setError(i,!0,this.getNetworkType()).end(),Ja(i)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),xe.l(\"\".concat(n,\" groupID:\").concat(o)),this.request({protocolName:Os,requestData:e}).then((function(o){var a=o.data.members;xe.l(\"\".concat(n,\" ok\"));var i=a.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),u=a.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),c=a.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),l=a.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),p=\"groupID:\".concat(e.groupID,\", \")+\"successUserIDList:\".concat(i,\", \")+\"failureUserIDList:\".concat(u,\", \")+\"existedUserIDList:\".concat(c,\", \")+\"overLimitUserIDList:\".concat(l);return r.setNetworkType(t.getNetworkType()).setMoreMessage(p).end(),0===i.length?Ka({successUserIDList:i,failureUserIDList:u,existedUserIDList:c,overLimitUserIDList:l}):(s.memberCount+=i.length,t._updateConversationGroupProfile(s),Ka({successUserIDList:i,failureUserIDList:u,existedUserIDList:c,overLimitUserIDList:l,group:s}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"deleteGroupMember\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteGroupMember\"),o=e.groupID,s=e.userIDList,a=this.getModule(Un).getLocalGroupProfile(o);if(at(a))return Ja({code:da.CANNOT_FIND_GROUP});if(Ct(a.type))return this.canIUse(B.AVCHATROOM_BAN_MBR)?this._banAVChatRoomMember(e):Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var r=new ka(\"deleteGroupMember\"),i=\"groupID:\".concat(o,\" \").concat(s.length>5?\"userIDList.length:\".concat(s.length):\"userIDList:\".concat(s));return r.setMessage(i),xe.l(\"\".concat(n,\" groupID:\").concat(o,\" userIDList:\"),s),this.request({protocolName:Gs,requestData:e}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\")),a.memberCount-=1,t._updateConversationGroupProfile(a),t.deleteLocalGroupMembers(o,s),Ka({group:a,userIDList:s})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_updateConversationGroupProfile\",value:function(e){this.getModule(Fn).updateConversationGroupProfile([e])}},{key:\"_banAVChatRoomMember\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteGroupMember\"),o=e.groupID,s=e.userIDList,a=\"groupID:\".concat(o,\" \").concat(s.length>5?\"userIDList.length:\".concat(s.length):\"userIDList:\".concat(s)),r=new ka(\"deleteGroupMember\");r.setMessage(a),xe.l(\"\".concat(n,\" groupID:\").concat(o,\" userIDList:\"),s);var i=this.getModule(Un).getLocalGroupProfile(o);return at(e.duration)||0===e.duration?Ja({code:da.BAN_DURATION_INVALID}):this.request({protocolName:Us,requestData:e}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\")),t.deleteLocalGroupMembers(o,s),Ka({group:i,userIDList:s})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"setGroupMemberMuteTime\",value:function(e){var t=this,n=e.groupID,o=e.userID,s=e.muteTime,a=\"\".concat(this._n,\".\").concat(\"setGroupMemberMuteTime\");if(o===this.getMyUserID())return Ja(new Wa({code:da.CANNOT_MUTE_SELF}));xe.l(\"\".concat(a,\" groupID:\").concat(n,\" userID:\").concat(o));var r=new ka(\"setGroupMemberMuteTime\");return r.setMessage(\"groupID:\".concat(n,\" userID:\").concat(o,\" muteTime:\").concat(s)),this.modifyGroupMemberInfo({groupID:n,userID:o,muteTime:s}).then((function(e){r.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(a,\" ok\"));var o=t.getModule(Un);return Ka({group:o.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(a,\" failed. error:\"),e),Ja(e)}))}},{key:\"setGroupMemberRole\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setGroupMemberRole\"),o=e.groupID,s=e.userID,a=e.role,r=this.getModule(Un).getLocalGroupProfile(o);if(r.selfInfo.role!==S.GRP_MBR_ROLE_OWNER)return Ja({code:da.NOT_OWNER});if([S.GRP_WORK,S.GRP_AVCHATROOM].includes(r.type))return Ja({code:da.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var i=[S.GRP_MBR_ROLE_ADMIN,S.GRP_MBR_ROLE_MEMBER];if(Tt({groupID:o})&&i.push(S.GRP_MBR_ROLE_CUSTOM),i.indexOf(a)<0)return Ja({code:da.INVALID_MEMBER_ROLE});if(s===this.getMyUserID())return Ja({code:da.CANNOT_SET_SELF_MEMBER_ROLE});var u=new ka(\"setGroupMemberRole\");return u.setMessage(\"groupID:\".concat(o,\" userID:\").concat(s,\" role:\").concat(a)),xe.l(\"\".concat(n,\" groupID:\").concat(o,\" userID:\").concat(s)),this.modifyGroupMemberInfo({groupID:o,userID:s,role:a}).then((function(e){return u.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\")),Ka({group:r,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_filterProfanity\",value:function(e,t){var n=this.getModule(no);if(!n)return!0;var o=n.filterText(t[e],J),s=o.isAllowedToSend,a=o.modifiedText;return!0===s&&(t[e]=a,!0)}},{key:\"setGroupMemberNameCard\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setGroupMemberNameCard\");if(e.nameCard&&!1===this._filterProfanity(\"nameCard\",e))return Ja({code:da.PROFANITY_FOUND});var o=e.groupID,s=e.userID,a=void 0===s?this.getMyUserID():s,r=e.nameCard;xe.l(\"\".concat(n,\" groupID:\").concat(o,\" userID:\").concat(a));var i=new ka(\"setGroupMemberNameCard\");return i.setMessage(\"groupID:\".concat(o,\" userID:\").concat(a,\" nameCard:\").concat(r)),this.modifyGroupMemberInfo({groupID:o,userID:a,nameCard:r}).then((function(e){xe.l(\"\".concat(n,\" ok\")),i.setNetworkType(t.getNetworkType()).end();var s=t.getModule(Un).getLocalGroupProfile(o);return a===t.getMyUserID()&&s&&s.setSelfNameCard(r),Ka({group:s,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"setGroupMemberCustomField\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"setGroupMemberCustomField\"),o=e.groupID,s=e.userID,a=void 0===s?this.getMyUserID():s,r=e.memberCustomField;xe.l(\"\".concat(n,\" groupID:\").concat(o,\" userID:\").concat(a));var i=new ka(\"setGroupMemberCustomField\");return i.setMessage(\"groupID:\".concat(o,\" userID:\").concat(a,\" memberCustomField:\").concat(JSON.stringify(r))),this.modifyGroupMemberInfo({groupID:o,userID:a,memberCustomField:r}).then((function(e){i.setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(n,\" ok\"));var s=t.getModule(Un).getLocalGroupProfile(o);return Ka({group:s,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];i.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"modifyGroupMemberInfo\",value:function(e){var n=this,o=e.groupID,s=e.userID,a=void 0;return Dt(o)&&(o=qt(a=o)),this.request({protocolName:Ps,requestData:t(t({},e),{},{groupID:o,topicID:a})}).then((function(){if(n.hasLocalGroupMember(o,s)){var t=n.getLocalGroupMemberInfo(o,s);return at(e.muteTime)||t.updateMuteUntil(e.muteTime),at(e.role)||t.updateRole(e.role),at(e.nameCard)||t.updateNameCard(e.nameCard),at(e.memberCustomField)||t.updateMemberCustomField(e.memberCustomField),t}return n.getGroupMemberProfile({groupID:o,userIDList:[s]}).then((function(e){return v(e.data.memberList,1)[0]}))}))}},{key:\"markGroupMemberList\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"markGroupMemberList\"),o=e.groupID,s=e.markType,a=e.enableMark,r=e.userIDList,i=void 0===r?[]:r,u=\"groupID:\".concat(o,\" markType:\").concat(s,\" enableMark:\").concat(a,\" userIDList count: \").concat(i.length);xe.l(\"\".concat(n,\" \").concat(u));var c=2,l=[];!0===a&&(c=1);var p=m(i);i.length>500&&(p=i.slice(0,500),xe.w(\"\".concat(n,\" \").concat(Kt(500)))),p.forEach((function(e){l.push({userID:e,markType:[s]})})),p=null;var d=new ka(\"markGroupMemberList\");return d.setMessage(\"\".concat(u)),this.request({protocolName:bs,requestData:{groupID:o,operationType:c,memberList:l}}).then((function(e){var o=e.data.memberList,s=void 0===o?[]:o,a=[],r=[];s.length===i.length?a.push.apply(a,m(i)):(s.forEach((function(e){a.push(e.userID)})),i.forEach((function(e){a.includes(e)||r.push(e)})));var u=\"success count:\".concat(a.length,\" fail count:\").concat(r.length);return d.setNetworkType(t.getNetworkType()).setMessage(u).end(),xe.l(\"\".concat(n,\" ok. \").concat(u)),Ka({successUserIDList:a,failureUserIDList:r})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];d.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_getGroupMemberProfileAdvance\",value:function(e){return this.request({protocolName:Ns,requestData:t(t({},e),{},{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:[\"Role\",\"JoinTime\",\"NameCard\",\"ShutUpUntil\"]})})}},{key:\"_updateLocalGroupMemberMap\",value:function(e,t){var n=this;return st(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new Fr(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:\"deleteLocalGroupMembers\",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:\"getLocalGroupMemberInfo\",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:\"setLocalGroupMember\",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:\"getLocalGroupMemberList\",value:function(e){return this.groupMemberListMap.get(e)}},{key:\"hasLocalGroupMember\",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:\"hasLocalGroupMemberMap\",value:function(e){return this.groupMemberListMap.has(e)}},{key:\"reset\",value:function(){this.groupMemberListMap.clear()}}]),s}(ro),xr=[\"topicID\",\"topicName\",\"avatar\",\"introduction\",\"notification\",\"unreadCount\",\"muteAllMembers\",\"customData\",\"groupAtInfoList\",\"nextMessageSeq\",\"selfInfo\"],Vr=function(e,t){return jt(e)?{lastTime:0,lastSequence:0,fromAccount:\"\",payload:null,type:\"\",messageForShow:\"\",nick:\"\",version:0,cloudCustomData:\"\",isRevoked:!1,revoker:null}:{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||\"\",payload:e.payload||null,type:e.type||\"\",messageForShow:xt(e.type,e.payload,t),nick:e.nick||\"\",version:e.version||0,cloudCustomData:e.cloudCustomData||\"\",isRevoked:e.isRevoked||!1,revoker:e.revoker||null}},Br=function(){function e(t,n){o(this,e),this.topicID=\"\",this.topicName=\"\",this.avatar=\"\",this.introduction=\"\",this.notification=\"\",this.unreadCount=0,this.muteAllMembers=!1,this.customData=\"\",this.groupAtInfoList=[],this.nextMessageSeq=0,this.lastMessage=Vr(t.lastMessage,n),this.selfInfo={muteTime:0,readedSequence:0,messageRemindType:\"\",excludedUnreadSequenceList:void 0},this._initTopic(t)}return a(e,[{key:\"_initTopic\",value:function(e){for(var t in e)xr.indexOf(t)<0||(\"selfInfo\"===t?this.updateSelfInfo(e[t]):this[t]=\"muteAllMembers\"===t?1===e[t]:e[t])}},{key:\"updateUnreadCount\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.unreadCount=e}},{key:\"updateNextMessageSeq\",value:function(e){this.nextMessageSeq=e}},{key:\"updateLastMessage\",value:function(e){this.lastMessage=Vr(e)}},{key:\"updateGroupAtInfoList\",value:function(e){this.groupAtInfoList=JSON.parse(JSON.stringify(e))}},{key:\"updateTopic\",value:function(e){at(e.selfInfo)||this.updateSelfInfo(e.selfInfo),at(e.muteAllMembers)||(this.muteAllMembers=1===e.muteAllMembers),pt(this,e,[\"groupID\",\"lastMessageTime\",\"selfInfo\",\"muteAllMembers\",\"lastMsg\"])}},{key:\"updateSelfInfo\",value:function(e){return 0!==pt(this.selfInfo,e,[],[\"\"])}},{key:\"reduceUnreadCount\",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:\"isLastMessageRevoked\",value:function(e){return e.sequence===this.lastMessage.lastSequence}},{key:\"setLastMessageRevoked\",value:function(e){this.lastMessage.isRevoked=e}},{key:\"setLastMessageRevoker\",value:function(e){this.lastMessage.revoker=e}}]),e}(),Hr=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"TopicModule\",t._topicMap=new Map,t._getTopicTimeMap=new Map,t.TOPIC_CACHE_TIME=300,t.TOPIC_LAST_ACTIVE_TIME=3600,t.getInnerEmitterInstance().on($a,t._onCloudConfigUpdated,_(t)),t}return a(s,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"topic_cache_time\"),t=this.getCloudConfig(\"topic_last_active_time\");at(e)||(this.TOPIC_CACHE_TIME=Number(e)),at(t)||(this.TOPIC_LAST_ACTIVE_TIME=Number(t))}},{key:\"onTopicCreated\",value:function(e){var t=e.groupID;this.resetGetTopicTime(t),this.emitOuterEvent(E.TOPIC_CREATED,e)}},{key:\"onTopicDeleted\",value:function(e){var t=this,n=e.groupID,o=e.topicIDList;(void 0===o?[]:o).forEach((function(e){t._deleteLocalTopic(n,e)})),this.emitOuterEvent(E.TOPIC_DELETED,e)}},{key:\"onTopicMessageRemindTypeUpdated\",value:function(e){var t=e.groupID,n=e.topicID,o=e.messageRemindType,s=this.getLocalTopic(t,n);if(s){var a=s.updateSelfInfo({messageRemindType:o});a&&this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:t,topic:s}),xe.d(\"\".concat(this._n,\".onTopicMessageRemindTypeUpdated topicID:\").concat(n)+\" messageRemindType:\".concat(o,\" isTopicUpdated:\").concat(a))}}},{key:\"onTopicProfileUpdated\",value:function(e){var t=e.groupID,n=e.topicID,o=this.getLocalTopic(t,n);o&&(o.updateTopic(e),this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:t,topic:o}))}},{key:\"onConversationProxy\",value:function(e){var t=e.topicID,n=e.unreadCount,o=e.groupAtInfoList,s=qt(t),a=this.getLocalTopic(s,t),r=!1;a&&(at(n)||a.unreadCount===n||(a.updateUnreadCount(n),r=!0),at(o)||(a.updateGroupAtInfoList(o),r=!0)),r&&this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:s,topic:a})}},{key:\"onMessageSent\",value:function(e){var t=e.groupID,n=e.topicID,o=e.lastMessage,s=this.getLocalTopic(t,n);s&&(s.nextMessageSeq+=1,s.updateLastMessage(o),this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:t,topic:s}))}},{key:\"onMessageModified\",value:function(e){var t=e.to,n=e.time,o=e.sequence,s=e.elements,a=e.cloudCustomData,r=e.messageVersion,i=qt(t),u=this.getLocalTopic(i,t);if(u){var c=u.lastMessage;xe.d(\"\".concat(this._n,\".onMessageModified topicID:\").concat(t,\" lastMessage:\"),JSON.stringify(c),\"options:\",JSON.stringify(e)),c&&(null===c.payload||c.lastTime===n&&c.lastSequence===o&&c.version!==r)&&(c.type=s[0].type,c.payload=s[0].content,c.messageForShow=xt(c.type,c.payload,this.isIntl()),c.cloudCustomData=a,c.version=r,c.lastSequence=o,c.lastTime=n,this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:i,topic:u}))}}},{key:\"onMessageRevoked\",value:function(e){var t=this;if(0!==e.length){var n=null,o=null,s=!1;e.forEach((function(e){var a=e.to;o=qt(a),(n=t.getLocalTopic(o,a))&&(n.reduceUnreadCount()&&(s=!0),n.isLastMessageRevoked(e)&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),s=!0))})),s&&this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:o,topic:n})}}},{key:\"isLastMessageRevoked\",value:function(e){var t=e.topicID,n=e.sequence,o=qt(t),s=this.getLocalTopic(o,t),a=!1;return s&&(a=s.isLastMessageRevoked({sequence:n})),a}},{key:\"getJoinedCommunityList\",value:function(){return this.getModule(Un).getGroupList({isGroupWithTopicOnly:!0}).then((function(e){var t=e.data.groupList;return Ka({groupList:void 0===t?[]:t})})).catch((function(e){return Ja(e)}))}},{key:\"createTopicInCommunity\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"createTopicInCommunity\"),s=e.topicID;if(!at(s)&&!Dt(s))return Ja({code:da.ILLEGAL_TOPIC_ID});if(e.topicName&&!1===this._filterProfanity(\"topicName\",e))return Ja({code:da.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return Ja({code:da.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return Ja({code:da.PROFANITY_FOUND});var a=new ka(\"createTopicInCommunity\");return this.request({protocolName:$s,requestData:t({},e)}).then((function(s){var r=s.data.topicID;return a.setMessage(\"topicID:\".concat(r)).setNetworkType(n.getNetworkType()).end(),xe.l(\"\".concat(o,\" ok\")),n._updateTopicMap([t(t({},e),{},{topicID:r})]),Ka({topicID:r})})).catch((function(e){return n.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];a.setError(e,o,s).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}},{key:\"deleteTopicFromCommunity\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"deleteTopicFromCommunity\"),o=e.groupID,s=e.topicIDList,a=void 0===s?[]:s,r=new ka(\"deleteTopicFromCommunity\");return r.setMessage(\"groupID:\".concat(o,\" topicIDList:\").concat(a)),this.request({protocolName:ea,requestData:{groupID:o,topicIDList:a}}).then((function(e){var n=e.data.resultList,s=[],a=[];(void 0===n?[]:n).forEach((function(e){var t=e.topicID,n=e.errorCode,o=e.errorInfo;0===n?s.push({topicID:t}):a.push({topicID:t,code:n,message:o})}));var i=\"success count:\".concat(s.length,\", fail count:\").concat(a.length);return r.setMoreMessage(\"\".concat(i)).setNetworkType(t.getNetworkType()).end(),xe.l(\"\".concat(i)),s.forEach((function(e){t._deleteLocalTopic(o,e.topicID)})),Ka({successTopicList:s,failureTopicList:a})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"updateTopicProfile\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"updateTopicProfile\");if(xe.l(\"\".concat(o,\" options:\"),e),e.topicName&&!1===this._filterProfanity(\"topicName\",e))return Ja({code:da.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return Ja({code:da.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return Ja({code:da.PROFANITY_FOUND});var s=new ka(\"updateTopicProfile\");return s.setMessage(\"groupID:\".concat(e.groupID,\" topicID:\").concat(e.topicID)),at(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?\"On\":\"Off\"),this.request({protocolName:ta,requestData:t({},e)}).then((function(){return s.setNetworkType(n.getNetworkType()).end(),xe.l(\"\".concat(o,\" ok\")),n._updateTopicMap([e]),Ka({topic:n.getLocalTopic(e.groupID,e.topicID)})})).catch((function(e){return n.probeNetwork().then((function(t){var n=v(t,2),o=n[0],a=n[1];s.setError(e,o,a).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}},{key:\"getTopicList\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"getTopicList\"),s=e.groupID,a=e.topicIDList,r=void 0===a?[]:a,i=0===r.length,u=new ka(\"getTopicList\");if(u.setMessage(\"groupID:\".concat(s)),this._getTopicTimeMap.has(s)){var c=this._getTopicTimeMap.get(s),l=c.isGetAll,p=c.time;if((l||!l&&!i)&&Date.now()-p<1e3*this.TOPIC_CACHE_TIME){var d=this._getLocalTopicList(s,r);if(i||d.length===r.length)return u.setNetworkType(this.getNetworkType()).setMoreMessage(\"from cache, topic count:\".concat(d.length)).end(),xe.l(\"\".concat(o,\" groupID:\").concat(s,\" from cache, topic count:\").concat(d.length)),za({successTopicList:d,failureTopicList:[]})}}return this.request({protocolName:na,requestData:{groupID:s,topicIDList:r}}).then((function(e){var a=e.data.topicInfoList,r=[],c=[],l=[];(void 0===a?[]:a).forEach((function(e){var n=e.topic,o=e.selfInfo,s=e.errorCode,a=e.errorInfo,i=n.topicID;0===s?(r.push(t(t({},n),{},{selfInfo:o})),c.push(i)):l.push({topicID:i,code:s,message:a})})),n._updateTopicMap(r),n._handleTopicAtInfo(r);var p=\"success count:\".concat(c.length,\", fail count:\").concat(l.length);u.setNetworkType(n.getNetworkType()).setMoreMessage(\"\".concat(p)).end(),xe.l(\"\".concat(o,\" groupID:\").concat(s,\" from remote, \").concat(p));var d=[];return jt(c)||(n._getTopicTimeMap.set(s,{time:Date.now(),isGetAll:i}),d=n._getLocalTopicList(s,c)),Ka({successTopicList:d,failureTopicList:l})})).catch((function(e){return n.probeNetwork(e).then((function(t){var n=v(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}},{key:\"hasLocalTopic\",value:function(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t)}},{key:\"getLocalTopic\",value:function(e,t){var n=null;return this._topicMap.has(e)&&(n=this._topicMap.get(e).get(t)),n}},{key:\"_getLocalTopicList\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this._topicMap.get(e),o=[];return n&&(o=m(n.values())),0===t.length?o:o.filter((function(e){return t.includes(e.topicID)}))}},{key:\"_deleteLocalTopic\",value:function(e,t){this._topicMap.has(e)&&(this._topicMap.get(e).delete(t),xe.l(\"\".concat(this._n,\"._deleteLocalTopic groupID:\").concat(e,\" topicID:\").concat(t)))}},{key:\"_updateTopicMap\",value:function(e){var t=this,n=[];(e.forEach((function(e){var o=e.groupID,s=e.topicID,a=null;t._topicMap.has(o)||t._topicMap.set(o,new Map),t._topicMap.get(o).has(s)?(a=t._topicMap.get(o).get(s)).updateTopic(e):(t._getTopicLastMessage(e),a=new Br(e,t.isIntl()),t._topicMap.get(o).set(s,a));var r=t._computeUnreadCount(a);a.updateUnreadCount(r),n.push({conversationID:\"\".concat(S.CONV_GROUP).concat(s),type:S.CONV_TOPIC,unreadCount:r})})),n.length>0)&&this.getModule(Fn).updateTopicConversation(n)}},{key:\"resetGetTopicTime\",value:function(e){var t=this;at(e)?m(this._getTopicTimeMap.keys()).forEach((function(e){t._getTopicTimeMap.set(e,0)})):this._getTopicTimeMap.set(e,0)}},{key:\"getTopicListOnReconnected\",value:function(){var e=this,t=m(this._topicMap.keys()),n=[];t.forEach((function(t){var o=[];e._getLocalTopicList(t).forEach((function(t){var n=t.lastMessage.lastTime,s=void 0===n?0:n;Date.now()-1e3*s<1e3*e.TOPIC_LAST_ACTIVE_TIME&&o.push(t.topicID)})),o.length>0&&n.push({groupID:t,topicIDList:o})})),xe.l(\"\".concat(this._n,\".getTopicListOnReconnected. active community count:\").concat(n.length)),this._relayGetTopicList(n)}},{key:\"_relayGetTopicList\",value:function(e){var t=this;if(0!==e.length){var n=e.shift(),o=n.topicIDList.length>5?\"topicIDList.length:\".concat(n.topicIDList.length):\"topicIDList:\".concat(n.topicIDList),s=new ka(\"relayGetTopicList\");s.setMessage(o),xe.l(\"\".concat(this._n,\"._relayGetTopicList. \").concat(o)),this.getTopicList(n).then((function(){s.setNetworkType(t.getNetworkType()).end(),t._relayGetTopicList(e)})).catch((function(n){t.probeNetwork().then((function(e){var t=v(e,2),o=t[0],a=t[1];s.setError(n,o,a).end()})),t._relayGetTopicList(e)}))}}},{key:\"_handleTopicAtInfo\",value:function(e){var n=this;0!==e.length&&e.forEach((function(e){var o=e.groupID,s=e.topicID,a=e.groupAtInfoList,r=[];at(a)||(a.forEach((function(e){r.push(t(t({},e),{},{groupID:o,topicID:s}))})),n.getModule(Fn).onNewGroupAtTips({dataList:r}))}))}},{key:\"_getTopicLastMessage\",value:function(e){if(!at(e.lastMsg)){var t={time:e.lastMsg.time,sequence:e.lastMsg.sequence,from:e.lastMsg.from,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:\"\",nick:e.lastMsg.nick,version:e.lastMsg.messageVersion,cloudCustomData:e.lastMsg.cloudCustomData,isRevoked:2===e.lastMsg.isPlaceMessage,revoker:jt(e.lastMsg.revokerInfo)?null:e.lastMsg.revokerInfo.revoker};e.lastMessage=t}}},{key:\"deleteTopicListInCommunity\",value:function(e){var t=this,n=this._getLocalTopicList(e),o=this.getModule(Fn);n.forEach((function(n){var s=n.topicID;t._deleteLocalTopic(e,s),t._getTopicTimeMap.delete(e),o.deleteLocalConversation(\"\".concat(S.CONV_GROUP).concat(s))}))}},{key:\"_computeUnreadCount\",value:function(e){var t=e.selfInfo,n=t.excludedUnreadSequenceList,o=t.readedSequence,s=e.nextMessageSeq-e.selfInfo.readedSequence-1;if(st(n)){var a=0;n.forEach((function(t){t>=o&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&(s-=a)}return s<0?0:s}},{key:\"_filterProfanity\",value:function(e,t){var n=this.getModule(no);if(!n)return!0;var o=n.filterText(t[e],z),s=o.isAllowedToSend,a=o.modifiedText;return!0===s&&(t[e]=a,!0)}},{key:\"updateLastMessage\",value:function(e,t){var n=qt(e),o=this.getLocalTopic(n,e);if(o){var s=t.sequence+1;o.updateNextMessageSeq(s),o.updateLastMessage(t),this.emitOuterEvent(E.TOPIC_UPDATED,{groupID:n,topic:o})}}},{key:\"getMessageExtensions\",value:function(e,t){xe.l(\"\".concat(this._n,\".getMessageExtensions startSequence:\").concat(t));var n=qt(e.to);return this.request({protocolName:Es,requestData:{groupID:n,topicID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:\"modifyMessageExtensions\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;xe.l(\"\".concat(this._n,\".modifyMessageExtensions operateType:\").concat(n));var o=qt(e.to);return this.request({protocolName:Ds,requestData:{groupID:o,topicID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._topicMap.clear(),this._getTopicTimeMap.clear(),this.TOPIC_CACHE_TIME=300,this.TOPIC_LAST_ACTIVE_TIME=3600}}]),s}(ro),Kr=function(){function e(t){o(this,e),this._userModule=t,this._n=\"ProfileHandler\",this.TAG=\"profile\",this.accountProfileMap=new Map,this.expirationTime=864e5}return a(e,[{key:\"setExpirationTime\",value:function(e){this.expirationTime=e}},{key:\"getUserProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"getUserProfile\"),o=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),o.length>100&&(xe.w(\"\".concat(n,\" \").concat(Kt(100))),o.length=100);for(var s,a=[],r=[],i=0,u=o.length;i<u;i++)s=o[i],this._userModule.isMyFriend(s)&&this._contains(s)?r.push(this._getProfileFromMap(s)):a.push(s);if(0===a.length)return za(r);e.toAccount=a;var c=e.bFromGetMyProfile||!1,l=[];e.toAccount.forEach((function(e){l.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=l;var p=new ka(\"getUserProfile\");return p.setMessage(o.length>5?\"userIDList.length:\".concat(o.length):\"userIDList:\".concat(o)),this._userModule.request({protocolName:fo,requestData:e}).then((function(e){p.setNetworkType(t._userModule.getNetworkType()).end(),xe.i(\"\".concat(n,\" ok\"));var o=t._handleResponse(e).concat(r);return Ka(c?o[0]:o)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];p.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"getMyProfile\",value:function(){var e=this._userModule.getMyAccount(),t=\"\".concat(this._n,\".getMyProfile\");if(xe.l(\"\".concat(t,\" myAccount:\").concat(e)),this._fill(),this._contains(e)){var n=this._getProfileFromMap(e);return xe.d(\"\".concat(t,\" from cache, myProfile:\").concat(JSON.stringify(n))),za(n)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:\"_handleResponse\",value:function(e){var t=e.data.userProfileItem;if(!st(t))return[];for(var n=[],o=Date.now(),s=0,a=t.length;s<a;s++){var r=t[s],i=r.to,u=r.profileItem;if(\"@TLS#NOT_FOUND\"!==i&&\"\"!==i){var c=this._update(i,this._getLatestProfileFromResponse(i,u)).latestProfile;n.push(c)}}return xe.l(\"\".concat(this._n,\"._handleResponse cost \").concat(Date.now()-o,\" ms\")),n}},{key:\"_getLatestProfileFromResponse\",value:function(e,t){var n={userID:e,profileCustomField:[]};if(!jt(t))for(var o=0,s=t.length;o<s;o++)if(t[o].tag.indexOf(\"Tag_Profile_Custom\")>-1)n.profileCustomField.push({key:t[o].tag,value:t[o].value});else switch(t[o].tag){case Be.NICK:n.nick=t[o].value;break;case Be.GENDER:n.gender=t[o].value;break;case Be.BIRTHDAY:n.birthday=t[o].value;break;case Be.LOCATION:n.location=t[o].value;break;case Be.SELFSIGNATURE:n.selfSignature=t[o].value;break;case Be.ALLOWTYPE:n.allowType=t[o].value;break;case Be.LANGUAGE:n.language=t[o].value;break;case Be.AVATAR:n.avatar=t[o].value;break;case Be.MESSAGESETTINGS:n.messageSettings=t[o].value;break;case Be.ADMINFORBIDTYPE:n.adminForbidType=t[o].value;break;case Be.LEVEL:n.level=t[o].value;break;case Be.ROLE:n.role=t[o].value;break;default:xe.w(\"\".concat(this._n,\"._getLatestProfileFromResponse unknown tag:\"),t[o].tag,t[o].value)}return n}},{key:\"updateMyProfile\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"updateMyProfile\");if(e.nick&&!1===this._userModule.filterProfanity(\"nick\",e))return Ja({code:da.PROFANITY_FOUND});if(e.selfSignature&&!1===this._userModule.filterProfanity(\"selfSignature\",e))return Ja({code:da.PROFANITY_FOUND});var o=new ka(\"updateMyProfile\");o.setMessage(JSON.stringify(e));var s=(new ur).validate(e);if(!s.valid)return o.setCode(da.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage(\"info:\".concat(s.tips)).setNetworkType(this._userModule.getNetworkType()).end(),xe.e(\"\".concat(n,\" info:\").concat(s.tips)),Ja({code:da.UPDATE_PROFILE_INVALID_PARAM});var a=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(\"profileCustomField\"===r?e.profileCustomField.forEach((function(e){a.push({tag:e.key,value:e.value})})):a.push({tag:Be[r.toUpperCase()],value:e[r]}));if(0===a.length){var i=new Wa({code:da.UPDATE_PROFILE_NO_KEY});return o.setError(i,!0,this._userModule.getNetworkType()).end(),xe.e(\"\".concat(n,\" failed. error:\"),i),Ja(i)}var u=this._userModule.getMyAccount();return this._userModule.request({protocolName:vo,requestData:{fromAccount:u,profileItem:a}}).then((function(s){o.setNetworkType(t._userModule.getNetworkType()).end(),xe.i(\"\".concat(n,\" ok\"));var a=t._update(u,e),r=a.isProfileUpdated,i=a.latestProfile;return!0===r&&t._userModule.emitOuterEvent(E.PROFILE_UPDATED,[i]),za(i)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"onProfileModified\",value:function(e){var t=e.dataList;if(!jt(t)){var n,o=t.length;xe.d(\"\".concat(this._n,\".onProfileModified count:\").concat(o,\" dataList:\"),e.dataList);for(var s=[],a=0;a<o;a++){n=t[a].userID;var r=this._update(n,this._getLatestProfileFromResponse(n,t[a].profileList)),i=r.isProfileUpdated,u=r.latestProfile;!0===i&&s.push(u)}s.length>0&&(this._userModule.emitInnerEvent(er,s),this._userModule.emitOuterEvent(E.PROFILE_UPDATED,s))}}},{key:\"_fill\",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,o=e.length;n<o;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);xe.l(\"\".concat(this._n,\"._fill from cache, size:\").concat(this.accountProfileMap.size))}}},{key:\"_update\",value:function(e,t){var n,o=!1,s=Date.now();this._contains(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&!0===It(n.profileCustomField,t.profileCustomField)&&(n.lastUpdatedTime=s,o=!0),pt(n,t,[\"profileCustomField\"])>0&&(n.lastUpdatedTime=s,o=!0)):(n=new ur(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=s,o=!0,this.accountProfileMap.set(e,n)));return this._flush(e===this._userModule.getMyAccount()),xe.l(\"\".concat(this._n,\"._update account:\").concat(e,\" isProfileUpdated:\").concat(o)),{isProfileUpdated:o,latestProfile:n}}},{key:\"_flush\",value:function(e){var t=m(this.accountProfileMap.values()),n=this._userModule.getStorageModule();xe.d(\"\".concat(this._n,\"._flush length:\").concat(t.length,\" flushAtOnce:\").concat(e)),n.setItem(this.TAG,t,e)}},{key:\"_contains\",value:function(e){return this.accountProfileMap.has(e)}},{key:\"_getProfileFromMap\",value:function(e){return this.accountProfileMap.get(e)}},{key:\"_getCachedProfiles\",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return jt(e)?[]:e}},{key:\"onConversationsProfileUpdated\",value:function(e){for(var t,n,o,s=[],a=0,r=e.length;a<r;a++)n=(t=e[a]).userID,this._userModule.isMyFriend(n)&&(this._contains(n)?(o=this._getProfileFromMap(n),pt(o,t)>0&&s.push(n)):s.push(t.userID));0!==s.length&&(xe.i(\"\".concat(this._n,\".onConversationsProfileUpdated toAccountList:\").concat(s)),this.getUserProfile({userIDList:s}))}},{key:\"getNickAndAvatarByUserID\",value:function(e){if(this._contains(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:\"\",avatar:\"\"}}},{key:\"reset\",value:function(){this._flush(!0),this.accountProfileMap.clear()}}]),e}(),Wr=a((function e(t){o(this,e),jt||(this.userID=t.userID||\"\",this.timeStamp=t.timeStamp||0)})),Yr=function(){function e(t){o(this,e),this._userModule=t,this._n=\"BlacklistHandler\",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return a(e,[{key:\"getLocalBlacklist\",value:function(){return m(this._blacklistMap.keys())}},{key:\"getBlacklist\",value:function(){var e=this,t=\"\".concat(this._n,\".getBlacklist\"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},o=new ka(\"getBlacklist\");return this._userModule.request({protocolName:mo,requestData:n}).then((function(n){var s=n.data,a=s.blackListItem,r=s.currentSequence,i=jt(a)?0:a.length;o.setNetworkType(e._userModule.getNetworkType()).setMessage(\"count:\".concat(i)).end(),xe.i(\"\".concat(t,\" ok\")),e.currentSequence=r,e._handleResponse(a,!0),e._userModule.emitOuterEvent(E.BLACKLIST_UPDATED,m(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=v(e,2),s=t[0],a=t[1];o.setError(n,s,a).end()})),xe.e(\"\".concat(t,\" failed. error:\"),n),Ja(n)}))}},{key:\"addBlacklist\",value:function(e){var t=this,n=new ka(\"addToBlacklist\"),o=\"\".concat(this._n,\".addBlacklist\"),s=this._userModule.getMyAccount();if(1===e.userIDList.length&&e.userIDList[0]===s){var a=da.CANNOT_ADD_SELF_TO_BLACKLIST,r=this._userModule.getErrorMessage(a);n.setCode(a).setMessage(r).setNetworkType(this._userModule.getNetworkType()).end();var i=new Wa({code:a});return xe.e(\"\".concat(o,\" failed. error:\"),i),Ja(i)}return e.userIDList.includes(s)&&(e.userIDList=e.userIDList.filter((function(e){return e!==s}))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Mo,requestData:e}).then((function(s){return n.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?\"userIDList.length:\".concat(e.userIDList.length):\"userIDList:\".concat(e.userIDList)).end(),xe.i(\"\".concat(o,\" ok\")),t._handleResponse(s.resultItem,!0),Ka(m(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var o=v(t,2),s=o[0],a=o[1];n.setError(e,s,a).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}},{key:\"_handleResponse\",value:function(e,t){if(!jt(e))for(var n,o,s,a=0,r=e.length;a<r;a++)o=e[a].to,s=e[a].resultCode,(at(s)||0===s)&&(t?((n=this._blacklistMap.has(o)?this._blacklistMap.get(o):new Wr).userID=o,!jt(e[a].addBlackTimeStamp)&&(n.timeStamp=e[a].addBlackTimeStamp),this._blacklistMap.set(o,n)):this._blacklistMap.has(o)&&(n=this._blacklistMap.get(o),this._blacklistMap.delete(o)));xe.l(\"\".concat(this._n,\"._handleResponse total:\").concat(this._blacklistMap.size,\" bAdd:\").concat(t))}},{key:\"deleteBlacklist\",value:function(e){var t=this,n=\"\".concat(this._n,\".deleteBlacklist\"),o=new ka(\"removeFromBlacklist\");return e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:yo,requestData:e}).then((function(s){return o.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?\"userIDList.length:\".concat(e.userIDList.length):\"userIDList:\".concat(e.userIDList)).end(),xe.i(\"\".concat(n,\" ok\")),t._handleResponse(s.data.resultItem,!1),Ka(m(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"onAccountDeleted\",value:function(e){for(var t,n=[],o=0,s=e.length;o<s;o++)t=e[o],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(xe.l(\"\".concat(this._n,\".onAccountDeleted count:\").concat(n.length,\" userIDList:\"),n),this._userModule.emitOuterEvent(E.BLACKLIST_UPDATED,m(this._blacklistMap.keys())))}},{key:\"onAccountAdded\",value:function(e){for(var t,n=[],o=0,s=e.length;o<s;o++)t=e[o],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new Wr({userID:t})),n.push(t));n.length>0&&(xe.l(\"\".concat(this._n,\".onAccountAdded count:\").concat(n.length,\" userIDList:\"),n),this._userModule.emitOuterEvent(E.BLACKLIST_UPDATED,m(this._blacklistMap.keys())))}},{key:\"reset\",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),jr=function(e){var t=String(e).replace(/[=]+$/,\"\"),n=\"\";if(t.length%4==1)return\"\";for(var o,s,a=0,r=0;s=t.charAt(r++);~s&&(o=a%4?64*o+s:s,a++%4)?n+=String.fromCharCode(255&o>>(-2*a&6)):0)s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\".indexOf(s);try{return decodeURIComponent(escape(n))}catch(i){return\"\"}},zr=function(){function e(t){o(this,e),this._userModule=t,this._n=\"UserStatusHandler\",this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100,this._userModule.getInnerEmitterInstance().on($a,this._onCloudConfigUpdated,this)}return a(e,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this._userModule.getCloudConfig(\"status_query_count\"),t=this._userModule.getCloudConfig(\"status_sub_count\"),n=this._userModule.getCloudConfig(\"status_unsub_count\");xe.l(\"\".concat(this._n,\"._onCloudConfigUpdated statusQueryCount:\").concat(e,\" statusSubscribeCount:\").concat(t)+\" statusUnsubscribeCount:\".concat(n)),at(e)||(this.MAX_QUERY_USER_COUNT=parseInt(e,10)),at(e)||(this.MAX_SUBSCRIBE_USER_COUNT=parseInt(t,10)),at(e)||(this.MAX_UNSUBSCRIBE_USER_COUNT=parseInt(n,10))}},{key:\"onUserStatusUpdated\",value:function(e){var t=e.dataList,n=this._userModule.getMyUserID(),o=this._userModule.getModule(qn),s=t.map((function(e){var t=e.to,s=e.statusType,a=e.customStatus,r=jr(a);return t===n&&o.setCustomStatus(r),{userID:t,statusType:s,customStatus:r}}));this._userModule.emitOuterEvent(E.USER_STATUS_UPDATED,s)}},{key:\"setSelfStatus\",value:function(e){var t=this,n=\"\".concat(this._n,\".setSelfStatus\");if(!1===this._userModule.filterProfanity(\"customStatus\",e))return Ja({code:da.PROFANITY_FOUND});var o=new ka(\"setSelfStatus\"),s=e.customStatus;return this._userModule.request({protocolName:oa,requestData:{customStatus:s}}).then((function(e){return o.setNetworkType(t._userModule.getNetworkType()).setMessage(\"customStatus:\".concat(s)).end(),xe.l(\"\".concat(n,\" ok. customStatus:\").concat(s)),t._userModule.getModule(qn).setCustomStatus(s),Ka({userID:t._userModule.getMyUserID(),statusType:1,customStatus:s})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=v(t,2),s=n[0],a=n[1];o.setError(e,s,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"getUserStatus\",value:function(e){var t=this,n=\"\".concat(this._n,\".getUserStatus\"),o=e.userIDList,s=void 0===o?[]:o,a=this._userModule.getMyUserID(),r=m(s),i=void 0,u=r.indexOf(a);if(u>-1){r.splice(u,1);var c=this._userModule.getModule(qn).getCustomStatus();i={userID:a,statusType:1,customStatus:c}}if(0===r.length)return za({successUserList:[i],failureUserList:[]});if(!this._userModule.canIUse(B.USER_STATUS))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});r.length>this.MAX_QUERY_USER_COUNT&&(xe.w(\"\".concat(n,\" \").concat(Kt(this.MAX_QUERY_USER_COUNT))),r=s.slice(0,this.MAX_QUERY_USER_COUNT));var l=new ka(\"getUserStatus\");return this._userModule.request({protocolName:sa,requestData:{userIDList:r}}).then((function(e){var o=e.data,a=o.successUserList,r=void 0===a?[]:a,u=o.failureUserList,c=void 0===u?[]:u,p=r.map((function(e){var t=e.userID,n=e.statusType,o=e.customStatus;return{userID:t,statusType:n,customStatus:jr(o)}})),d=c.map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode,s=e.errorInfo;return{userID:jt(n)?t:n,code:o,message:s}}));at(i)||p.unshift(i);var g=\"userID count:\".concat(s.length,\", success count:\").concat(p.length,\", fail count:\").concat(d.length);return l.setNetworkType(t._userModule.getNetworkType()).setMessage(\"\".concat(g)).end(),xe.l(\"\".concat(n,\" ok. \").concat(g,\".\")),Ka({successUserList:p,failureUserList:d})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],a=n[1];l.setMessage(\"userID count:\".concat(s.length)).setError(e,o,a).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"subscribeUserStatus\",value:function(e){var t=this;if(!this._userModule.canIUse(B.USER_STATUS))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".subscribeUserStatus\"),o=e.userIDList,s=void 0===o?[]:o,a=m(s);a.length>this.MAX_SUBSCRIBE_USER_COUNT&&(xe.w(\"\".concat(n,\" \").concat(Kt(this.MAX_SUBSCRIBE_USER_COUNT))),a=s.slice(0,this.MAX_SUBSCRIBE_USER_COUNT));var r=new ka(\"subscribeUserStatus\"),i=\"userID count:\".concat(s.length);return xe.l(\"\".concat(n,\" \").concat(i)),this._userModule.request({protocolName:aa,requestData:{userIDList:a}}).then((function(e){var o=e.data.failureUserList,s=(void 0===o?[]:o).map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode,s=e.errorInfo;return{userID:jt(n)?t:n,code:o,message:s}}));return r.setNetworkType(t._userModule.getNetworkType()).setMessage(\"\".concat(i,\" fail count:\").concat(s.length)).end(),xe.l(\"\".concat(n,\" ok. fail count:\").concat(s.length,\".\")),Ka({failureUserList:s})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setMessage(\"\".concat(i)).setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"unsubscribeUserStatus\",value:function(e){var t=this;if(!this._userModule.canIUse(B.USER_STATUS))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".unsubscribeUserStatus\"),o=(e||{}).userIDList,s=void 0===o?[]:o,a=m(s);s.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(xe.w(\"\".concat(n,\" \").concat(Kt(this.MAX_UNSUBSCRIBE_USER_COUNT))),a=s.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT));var r=new ka(\"unsubscribeUserStatus\"),i=\"userID count:\".concat(s.length);xe.l(\"\".concat(n,\" \").concat(i));var u={userIDList:a};return 0===a.length&&(u.userIDList=void 0,u.unsubscribeAll=1),this._userModule.request({protocolName:ra,requestData:u}).then((function(e){var o=e.data.failureUserList,s=(void 0===o?[]:o).map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode,s=e.errorInfo;return{userID:jt(n)?t:n,code:o,message:s}}));return r.setNetworkType(t._userModule.getNetworkType()).setMessage(\"\".concat(i,\" fail count:\").concat(s.length)).end(),xe.l(\"\".concat(n,\" ok. fail count:\").concat(s.length,\".\")),Ka({failureUserList:s})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setMessage(\"\".concat(i)).setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"reset\",value:function(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100}}]),e}(),Jr=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"UserModule\",s._profileHandler=new Kr(_(s)),s._blacklistHandler=new Yr(_(s)),s._userStatusHandler=new zr(_(s)),s.getInnerEmitterInstance().on(Za,s.onContextUpdated,_(s)),s}return a(n,[{key:\"onContextUpdated\",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:\"onProfileModified\",value:function(e){this._profileHandler.onProfileModified(e)}},{key:\"onRelationChainModified\",value:function(e){var t=e.dataList;if(!jt(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,m(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var o=[];t.forEach((function(e){e.blackListAddAccount&&o.push.apply(o,m(e.blackListAddAccount))})),o.length>0&&this._blacklistHandler.onAccountAdded(o)}}},{key:\"onConversationsProfileUpdated\",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:\"getMyAccount\",value:function(){return this.getMyUserID()}},{key:\"getMyProfile\",value:function(){return this._profileHandler.getMyProfile()}},{key:\"getStorageModule\",value:function(){return this.getModule(xn)}},{key:\"filterProfanity\",value:function(e,t){var n=this.getModule(no);if(!n)return!0;var o=n.filterText(t[e],j),s=o.isAllowedToSend,a=o.modifiedText;return!0===s&&(t[e]=a,!0)}},{key:\"isMyFriend\",value:function(e){var t=this.getModule(Pn);return!!t&&t.isMyFriend(e)}},{key:\"getUserProfile\",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:\"updateMyProfile\",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:\"getNickAndAvatarByUserID\",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:\"getLocalBlacklist\",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return za(e)}},{key:\"addBlacklist\",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:\"deleteBlacklist\",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:\"onUserStatusUpdated\",value:function(e){this._userStatusHandler.onUserStatusUpdated(e)}},{key:\"setSelfStatus\",value:function(e){return this._userStatusHandler.setSelfStatus(e)}},{key:\"getUserStatus\",value:function(e){return this._userStatusHandler.getUserStatus(e)}},{key:\"subscribeUserStatus\",value:function(e){return this._userStatusHandler.subscribeUserStatus(e)}},{key:\"unsubscribeUserStatus\",value:function(e){return this._userStatusHandler.unsubscribeUserStatus(e)}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._profileHandler.reset(),this._blacklistHandler.reset(),this._userStatusHandler.reset()}}]),n}(ro),Xr=function(){function e(t,n){o(this,e),this._m=t,this._isLoggedIn=!1,this._SDKAppID=n.SDKAppID,this._userID=n.userID||\"\",this._userSig=n.userSig||\"\",this._version=\"2.27.5\",this._a2Key=\"\",this._tinyID=\"\",this._customStatus=\"\",this._contentType=\"json\",this._unlimitedAVChatRoom=n.unlimitedAVChatRoom,this._scene=n.scene||\"\",this._oversea=n.oversea,this._instanceID=n.instanceID,this._statusInstanceID=0,this._isDevMode=n.devMode,this._proxyServer=n.proxyServer,this._fileUploadProxy=n.fileUploadProxy,this._fileDownloadProxy=n.fileDownloadProxy}return a(e,[{key:\"isLoggedIn\",value:function(){return this._isLoggedIn}},{key:\"isOversea\",value:function(){return this._oversea}},{key:\"isPrivateNetWork\",value:function(){return this._proxyServer}},{key:\"isDevMode\",value:function(){return this._isDevMode}},{key:\"isSingaporeSite\",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7||this._SDKAppID>=172e7&&this._SDKAppID<173e7}},{key:\"isKoreaSite\",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7||this._SDKAppID>=173e7&&this._SDKAppID<174e7}},{key:\"isGermanySite\",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7||this._SDKAppID>=174e7&&this._SDKAppID<175e7}},{key:\"isIndiaSite\",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7||this._SDKAppID>=175e7&&this._SDKAppID<176e7}},{key:\"isJapanSite\",value:function(){return this._SDKAppID>=6e7&&this._SDKAppID<7e7||this._SDKAppID>=176e7&&this._SDKAppID<177e7}},{key:\"isUSASite\",value:function(){return this._SDKAppID>=7e7&&this._SDKAppID<8e7||this._SDKAppID>=177e7&&this._SDKAppID<178e7}},{key:\"isIntl\",value:function(){return 0===(e=this._SDKAppID)||e>=2e7&&e<8e7||e>=172e7&&e<178e7;var e}},{key:\"isUnlimitedAVChatRoom\",value:function(){return this._unlimitedAVChatRoom}},{key:\"setUserID\",value:function(e){this._userID=e}},{key:\"getUserID\",value:function(){return this._userID}},{key:\"setUserSig\",value:function(e){this._userSig=e}},{key:\"getUserSig\",value:function(){return this._userSig}},{key:\"getSDKAppID\",value:function(){return this._SDKAppID}},{key:\"setTinyID\",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:\"getTinyID\",value:function(){return this._tinyID}},{key:\"setCustomStatus\",value:function(e){this._customStatus=e}},{key:\"getCustomStatus\",value:function(){return this._customStatus}},{key:\"getScene\",value:function(){return Le?window.tencent_cloud_im_csig_flutter_for_web_25F_cy:this._isTUIKit()?\"tuikit\":this._scene}},{key:\"getInstanceID\",value:function(){return this._instanceID}},{key:\"getStatusInstanceID\",value:function(){return this._statusInstanceID}},{key:\"setStatusInstanceID\",value:function(e){this._statusInstanceID=e}},{key:\"getVersion\",value:function(){return this._version}},{key:\"getA2Key\",value:function(){return this._a2Key}},{key:\"setA2Key\",value:function(e){this._a2Key=e}},{key:\"getContentType\",value:function(){return this._contentType}},{key:\"getProxyServer\",value:function(){return this._proxyServer}},{key:\"getFileUploadProxy\",value:function(){return this._fileUploadProxy}},{key:\"getFileDownloadProxy\",value:function(){return this._fileDownloadProxy}},{key:\"_isTUIKit\",value:function(){var e=!1,t=!1,n=!1,o=!1,s=[];se&&(s=Object.keys(re)),ae&&(s=oe?Object.keys(uni):Object.keys(window));for(var a=0,r=s.length;a<r;a++)if(s[a].toLowerCase().includes(\"uikit\")){e=!0;break}if(s=null,se&&!it(re.createGamePortal)&&it(getApp)&&!at(getApp())){var i=getApp().globalData;ot(i)&&!0===i.isTUIKit&&(t=!0)}!0===this._m.getModule(xn).getStorageSync(\"TIM_\".concat(this._SDKAppID,\"_isTUIKit\"))&&(n=!0);var u=null;if(X&&!Z&&\"undefined\"==typeof uni&&__wxConfig&&(u=__wxConfig.pages),Q&&\"undefined\"==typeof uni&&__qqConfig&&(u=__qqConfig.pages),st(u)&&u.length>0){for(var c=0,l=u.length;c<l;c++)if(u[c].toLowerCase().includes(\"tui\")){o=!0;break}u=null}return e||t||n||o}},{key:\"reset\",value:function(){this._isLoggedIn=!1,this._userSig=\"\",this._a2Key=\"\",this._tinyID=\"\",this._customStatus=\"\",this._statusInstanceID=0}}]),e}(),Qr=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"SignModule\",s._helloInterval=120,s._lastLoginTs=0,s._lastWsHelloTs=0,s._isWebUniapp=0,tr.mixin(_(s)),s}return a(n,[{key:\"onCheckTimer\",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:\"login\",value:function(e){var t=\"\";if(this.isLoggedIn()){var n=this.getMyUserID();return(t=this.getErrorMessage(\"RepeatLogin\",n))&&xe.w(t),za({actionStatus:\"OK\",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return this.outputWarning(\"LoggingIn\",e.userID),Ja({code:da.REPEAT_LOGIN});xe.l(\"\".concat(this._n,\".login userID:\").concat(e.userID));var o=this._checkLoginInfo(e);if(0!==o.code)return Ja(o);var s=this.getModule(qn),a=e.userID,r=e.userSig;return s.setUserID(a),s.setUserSig(r),this.getModule(jn).updateProtocolConfig(),this._login()}},{key:\"_login\",value:function(){var e=this,t=this.getModule(qn),n=t.getScene(),o=0,s=new ka(\"login\");s.setMessage(\"\".concat(n)).setMoreMessage(\"identifier:\".concat(this.getMyUserID())),oe?\"tuikit\"===n?s.setUIPlatform(4):s.setUIPlatform(3):se?\"tuikit\"===n?s.setUIPlatform(12):s.setUIPlatform(11):ae&&(Le?\"flutter_web_uikit\"===n?s.setUIPlatform(21):s.setUIPlatform(20):this._isReactUIKit()?ke?s.setUIPlatform(25):s.setUIPlatform(24):ke?\"tuikit\"===n?s.setUIPlatform(17):s.setUIPlatform(16):\"tuikit\"===n?s.setUIPlatform(14):s.setUIPlatform(13));var a=this.getModule(to);if(a.canIUseOfflinePush()){this._isWebUniapp=a.getUniAppPlatform();var r=this._getStatusInstanceID();t.setStatusInstanceID(r),this.getModule(jn).updateProtocolConfig(),o=a.getDeviceBrand()}var i=\"\".concat(this._n,\"._login\");return this._lastLoginTs=Date.now(),this.request({protocolName:io,requestData:{deviceBrand:o,isWebUniapp:this._isWebUniapp}}).then((function(o){e._lastLoginTs=0;var a=Date.now(),r=null,u=o.data,c=u.a2Key,l=u.tinyID,p=u.helloInterval,d=u.instanceID,g=u.timeStamp,_=u.customStatus,h=void 0===_?\"\":_,f=u.purchaseBits;xe.l(\"\".concat(i,\" ok. scene:\").concat(n,\" helloInterval:\").concat(p,\" instanceID:\").concat(d,\" timeStamp:\").concat(g));var v=1e3*g,m=a-s.getStartTs(),M=v+parseInt(m/2)-a,y=s.getStartTs()+M;if(s.start(y),function(e,t){Ge=t;var n=new Date;n.setTime(e),xe.i(\"baseTime from server:\".concat(n,\" offset:\").concat(Ge))}(v,M),!l)throw r=new Wa({code:da.NO_TINYID}),s.setError(r,!0,e.getNetworkType()).end(),r;if(!c)throw r=new Wa({code:da.NO_A2KEY}),s.setError(r,!0,e.getNetworkType()).end(),r;var I=jr(h);(s.setNetworkType(e.getNetworkType()).setMoreMessage(\"helloInterval:\".concat(p,\" instanceID:\").concat(d,\" offset:\").concat(M,\" customStatus:\").concat(I)).end(),t.setA2Key(c),t.setTinyID(l),t.setStatusInstanceID(d),t.setCustomStatus(I),f)&&e.getModule(eo).onPushedConfig({errorCode:0,expiredTime:0,purchaseBits:f});e.getModule(jn).updateProtocolConfig(),e.emitInnerEvent(Za),e._helloInterval=p,e.triggerReady();var C=e.getModule(to);return C.canIUseOfflinePush()&&(uni.setStorageSync(\"timUniAppInstanceID\",d),C.init()),e._fetchCloudControlConfig(),e.getModule(no).init(),o})).catch((function(t){return e.probeNetwork().then((function(e){var n=v(e,2),o=n[0],a=n[1];s.setError(t,o,a).end(!0)})),e._m.setNotReadyReason(da.LOGIN_FAILED),xe.e(\"\".concat(i,\" failed. error:\"),t),e._lastLoginTs=0,e._m.onLoginFailed(),Ja(t)}))}},{key:\"logout\",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return Ja({code:da.USER_NOT_LOGGED_IN});var n=new ka(\"logout\");n.setNetworkType(this.getNetworkType()).setMessage(\"identifier:\".concat(this.getMyUserID())).end(!0);var o=\"\".concat(this._n,\".logout\");return xe.i(\"\".concat(o,\" type:\").concat(t)),0===t&&this._m.setNotReadyReason(da.LOGGED_OUT),this.request({protocolName:uo,requestData:{type:t}}).then((function(){return e.resetReady(),za({})})).catch((function(t){return xe.e(\"\".concat(o,\" error:\"),t),e.resetReady(),za({})}))}},{key:\"_fetchCloudControlConfig\",value:function(){this.getModule(Xn).fetchConfig()}},{key:\"_getStatusInstanceID\",value:function(){return uni.getStorageSync(\"timUniAppInstanceID\")}},{key:\"_hello\",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:co,requestData:{isWebUniapp:this._isWebUniapp}}).catch((function(t){xe.w(\"\".concat(e._n,\"._hello error:\"),t)}))}},{key:\"getLastWsHelloTs\",value:function(){return this._lastWsHelloTs}},{key:\"_checkLoginInfo\",value:function(e){var t=0;return jt(this.getModule(qn).getSDKAppID())?t=da.NO_SDKAPPID:jt(e.userID)?t=da.NO_IDENTIFIER:jt(e.userSig)&&(t=da.NO_USERSIG),{code:t}}},{key:\"_isReactUIKit\",value:function(){return ae&&void 0!==window.tencent_cloud_im_csig_react_uikit_23F_xa}},{key:\"onMultipleAccountKickedOut\",value:function(e){var t=this;new ka(\"kickedOut\").setNetworkType(this.getNetworkType()).setMessage(\"type:\".concat(S.KICKED_OUT_MULT_ACCOUNT,\" newInstanceInfo:\").concat(JSON.stringify(e))).end(!0),xe.w(\"\".concat(this._n,\".onMultipleAccountKickedOut userID:\").concat(this.getMyUserID(),\" newInstanceInfo:\"),e),this.logout(1).then((function(){t.emitOuterEvent(E.KICKED_OUT,{type:S.KICKED_OUT_MULT_ACCOUNT}),t._m.setNotReadyReason(da.KICKED_OUT_MULT_ACCOUNT),t._m.reset()}))}},{key:\"onMultipleDeviceKickedOut\",value:function(e){var t=this;new ka(\"kickedOut\").setNetworkType(this.getNetworkType()).setMessage(\"type:\".concat(S.KICKED_OUT_MULT_DEVICE,\" newInstanceInfo:\").concat(JSON.stringify(e))).end(!0),xe.w(\"\".concat(this._n,\".onMultipleDeviceKickedOut userID:\").concat(this.getMyUserID(),\" newInstanceInfo:\"),e),this.logout(1).then((function(){t.emitOuterEvent(E.KICKED_OUT,{type:S.KICKED_OUT_MULT_DEVICE}),t._m.setNotReadyReason(da.KICKED_OUT_MULT_DEVICE),t._m.reset()}))}},{key:\"onUserSigExpired\",value:function(){new ka(\"kickedOut\").setNetworkType(this.getNetworkType()).setMessage(S.KICKED_OUT_USERSIG_EXPIRED).end(!0),xe.w(\"\".concat(this._n,\".onUserSigExpired: userSig expired\")),0!==this.getModule(qn).getStatusInstanceID()&&(this.emitOuterEvent(E.KICKED_OUT,{type:S.KICKED_OUT_USERSIG_EXPIRED}),this._m.setNotReadyReason(da.KICKED_OUT_USERSIG_EXPIRED),this._m.reset())}},{key:\"onRestApiKickedOut\",value:function(e){(new ka(\"kickedOut\").setNetworkType(this.getNetworkType()).setMessage(\"type:\".concat(S.KICKED_OUT_REST_API,\" newInstanceInfo:\").concat(JSON.stringify(e))).end(!0),xe.w(\"\".concat(this._n,\".onRestApiKickedOut userID:\").concat(this.getMyUserID(),\" newInstanceInfo:\"),e),0!==this.getModule(qn).getStatusInstanceID())&&(this.emitOuterEvent(E.KICKED_OUT,{type:S.KICKED_OUT_REST_API}),this._m.setNotReadyReason(da.KICKED_OUT_REST_API),this._m.reset(),this.getModule(zn).onRestApiKickedOut())}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0,this._isWebUniapp=0}}]),n}(ro);function Zr(){return null}var $r=function(){function e(t){o(this,e),this._m=t,this._n=\"StorageModule\",this._storageQueue=new Map,this._errorTolerantHandle()}return a(e,[{key:\"_errorTolerantHandle\",value:function(){se||!at(window)&&this._canIUseCookies()||(this.getItem=Zr,this.setItem=Zr,this.removeItem=Zr,this.clear=Zr)}},{key:\"onCheckTimer\",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:\"_doFlush\",value:function(){try{var e,t=D(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2),o=n[0],s=n[1];this._setStorageSync(this._getKey(o),s)}}catch(a){t.e(a)}finally{t.f()}this._storageQueue.clear()}catch(r){xe.w(\"\".concat(this._n,\"._doFlush error:\"),r)}}},{key:\"_getPrefix\",value:function(){var e=this._m.getModule(qn);return\"TIM_\".concat(e.getSDKAppID(),\"_\").concat(e.getUserID(),\"_\")}},{key:\"_getKey\",value:function(e){return\"\".concat(this._getPrefix()).concat(e)}},{key:\"getItem\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(o){return xe.w(\"\".concat(this._n,\".getItem error:\"),o),{}}}},{key:\"setItem\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var s=o?this._getKey(e):e;this._setStorageSync(s,t)}else this._storageQueue.set(e,t)}},{key:\"clear\",value:function(){try{se?re.clearStorageSync():this._canIUseCookies()&&localStorage.clear()}catch(e){xe.w(\"\".concat(this._n,\".clear error:\"),e)}}},{key:\"removeItem\",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(o){xe.w(\"\".concat(this._n,\".removeItem error:\"),o)}}},{key:\"getSize\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"b\";try{var o={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(o,\"leftSize\",{enumerable:!0,get:function(){return o.limitSize-o.size}}),se&&(o.limitSize=1024*re.getStorageInfoSync().limitSize),e)o.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(se){var s=re.getStorageInfoSync(),a=s.keys;a.forEach((function(e){o.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(this._canIUseCookies())for(var r in localStorage)localStorage.hasOwnProperty(r)&&(o.size+=localStorage.getItem(r).length+r.length);return this._convertUnit(o)}catch(i){xe.w(\"\".concat(this._n,\" error:\"),i)}}},{key:\"_convertUnit\",value:function(e){var t={},n=e.unit;for(var o in t.unit=n,e)\"number\"==typeof e[o]&&(\"kb\"===n.toLowerCase()?t[o]=Math.round(e[o]/1024):\"mb\"===n.toLowerCase()?t[o]=Math.round(e[o]/1024/1024):t[o]=e[o]);return t}},{key:\"_setStorageSync\",value:function(e,t){se?ee?my.setStorageSync({key:e,data:t}):re.setStorageSync(e,t):this._canIUseCookies()&&localStorage.setItem(e,JSON.stringify(t))}},{key:\"getStorageSync\",value:function(e){return se?ee?my.getStorageSync({key:e}).data:re.getStorageSync(e):this._canIUseCookies()?JSON.parse(localStorage.getItem(e)):{}}},{key:\"_removeStorageSync\",value:function(e){se?ee?my.removeStorageSync({key:e}):re.removeStorageSync(e):this._canIUseCookies()&&localStorage.removeItem(e)}},{key:\"_canIUseCookies\",value:function(){return navigator&&navigator.cookieEnabled&&localStorage}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._doFlush()}}]),e}(),ei=function(){function e(t){o(this,e),this._n=\"SSOLogBody\",this._report=[]}return a(e,[{key:\"pushIn\",value:function(e){xe.d(\"\".concat(this._n,\".pushIn\"),this._report.length,e),this._report.push(e)}},{key:\"backfill\",value:function(e){var t;st(e)&&0!==e.length&&(xe.d(\"\".concat(this._n,\".backfill\"),this._report.length,e.length),(t=this._report).unshift.apply(t,m(e)))}},{key:\"getLogsNumInMemory\",value:function(){return this._report.length}},{key:\"isEmpty\",value:function(){return 0===this._report.length}},{key:\"_reset\",value:function(){this._report.length=0,this._report=[]}},{key:\"getLogsInMemory\",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),ti=function(e){var t=e.getModule(qn);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Ue()}},ni=function(e){i(s,e);var n=f(s);function s(e){var t;o(this,s),(t=n.call(this,e))._n=\"EventStatModule\",t.TAG=\"im-ssolog-event\",t._reportBody=new ei,t.MIN_THRESHOLD=20,t.MAX_THRESHOLD=100,t.WAITING_TIME=6e4,t.REPORT_LEVEL=[4,5,6],t.REPORT_SDKAPPID_BLACKLIST=[],t.REPORT_TINYID_WHITELIST=[],t._lastReportTime=Date.now();var a=t.getInnerEmitterInstance();return a.on(Za,t._onLoginSuccess,_(t)),a.on($a,t._onCloudConfigUpdated,_(t)),t}return a(s,[{key:\"reportAtOnce\",value:function(){xe.d(\"\".concat(this._n,\".reportAtOnce\")),this._report()}},{key:\"_onLoginSuccess\",value:function(){var e=this,t=this.getModule(xn),n=t.getItem(this.TAG,!1);!jt(n)&&it(n.forEach)&&(xe.l(\"\".concat(this._n,\"._onLoginSuccess get ssolog in storage, count:\").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"evt_rpt_threshold\"),t=this.getCloudConfig(\"evt_rpt_waiting\"),n=this.getCloudConfig(\"evt_rpt_level\"),o=this.getCloudConfig(\"evt_rpt_sdkappid_bl\"),s=this.getCloudConfig(\"evt_rpt_tinyid_wl\");at(e)||(this.MIN_THRESHOLD=Number(e)),at(t)||(this.WAITING_TIME=Number(t)),at(n)||(this.REPORT_LEVEL=n.split(\",\").map((function(e){return Number(e)}))),at(o)||(this.REPORT_SDKAPPID_BLACKLIST=o.split(\",\").map((function(e){return Number(e)}))),at(s)||(this.REPORT_TINYID_WHITELIST=s.split(\",\"))}},{key:\"pushIn\",value:function(e){e instanceof ka&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:\"onCheckTimer\",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:\"_filterLogs\",value:function(e){var t=this,n=this.getModule(qn),o=n.getSDKAppID(),s=n.getTinyID();return wt(this.REPORT_SDKAPPID_BLACKLIST,o)&&!Ft(this.REPORT_TINYID_WHITELIST,s)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:\"_report\",value:function(){var e=this;if(!this._reportBody.isEmpty()){var n=this._reportBody.getLogsInMemory(),o=this._filterLogs(n);if(0!==o.length){var s={header:ti(this),event:o};this.request({protocolName:xs,requestData:t({},s)}).then((function(){e._lastReportTime=Date.now()})).catch((function(t){xe.w(\"\".concat(e._n,\".report failed. networkType:\").concat(e.getNetworkType(),\" error:\"),t),e._reportBody.backfill(n),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:\"_flushAtOnce\",value:function(){var e=this.getModule(xn),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory(),o=\"\".concat(this._n,\"._flushAtOnce\");if(jt(t))xe.l(\"\".concat(o,\" count:\").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var s=n.concat(t);s.length>this.MAX_THRESHOLD&&(s=s.slice(0,this.MAX_THRESHOLD)),xe.l(\"\".concat(o,\" count:\").concat(s.length)),e.setItem(this.TAG,s,!0,!1)}}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),s}(ro),oi=\"none\",si=\"online\",ai=[da.OVER_FREQUENCY_LIMIT,da.OPEN_SERVICE_OVERLOAD_ERROR],ri=function(){function e(t){o(this,e),this._m=t,this._networkType=\"\",this._n=\"NetMonitorModule\",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return a(e,[{key:\"start\",value:function(){var e=this;se?(re.getNetworkType({success:function(t){e._networkType=t.networkType||t.subtype||\"\",t.networkType===oi?xe.w(\"\".concat(e._n,\".start no network, please check!\")):xe.i(\"\".concat(e._n,\".start networkType:\").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),re.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=si,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener(\"online\",this._webOnlineCallback),window.addEventListener(\"offline\",this._webOfflineCallback)))}},{key:\"_onWebOnline\",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:si})}},{key:\"_onWebOffline\",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:oi})}},{key:\"_onNetworkStatusChange\",value:function(e){var t=e.isConnected,n=e.networkType,o=\"\".concat(this._n,\"._onNetworkStatusChange\"),s=!1;t?(xe.i(\"\".concat(o,\" previous:\").concat(this._networkType,\" current:\").concat(n)),this._networkType!==n&&(s=!0,this._m.getModule(zn).reConnect(!0))):this._networkType!==n&&(s=!0,xe.w(\"\".concat(o,\" no network, please check!\")),this._m.getModule(zn).offline());s&&(new ka(\"networkChange\").setMessage(\"isConnected:\".concat(t,\" previousNetworkType:\").concat(this._networkType,\" networkType:\").concat(n)).end(),this._networkType=n)}},{key:\"probe\",value:function(e){var t=this;if(!at(e)&&ai.includes(e.code))return Promise.resolve([!0,this._networkType]);var n=\"\".concat(this._n,\".probe\");return new Promise((function(e,o){se?re.getNetworkType({success:function(o){t._networkType=o.networkType,o.networkType===oi?(xe.w(\"\".concat(n,\" no network, please check!\")),e([!1,o.networkType])):(xe.i(\"\".concat(n,\" networkType:\").concat(o.networkType)),e([!0,o.networkType]))}}):t._networkType===oi?e([!1,oi]):e([!0,si])}))}},{key:\"getNetworkType\",value:function(){return this._networkType}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),se?null!==this._mpNetworkStatusCallback&&(re.offNetworkStatusChange&&(ne||Z?re.offNetworkStatusChange(this._mpNetworkStatusCallback):re.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener(\"online\",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener(\"offline\",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}();var ii=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=Object.prototype.hasOwnProperty,n=\"~\";function o(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,o,a,r){if(\"function\"!=typeof o)throw new TypeError(\"The listener must be a function\");var i=new s(o,a||e,r),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],i]:e._events[u].push(i):(e._events[u]=i,e._eventsCount++),e}function r(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function i(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),i.prototype.eventNames=function(){var e,o,s=[];if(0===this._eventsCount)return s;for(o in e=this._events)t.call(e,o)&&s.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(e)):s},i.prototype.listeners=function(e){var t=n?n+e:e,o=this._events[t];if(!o)return[];if(o.fn)return[o.fn];for(var s=0,a=o.length,r=new Array(a);s<a;s++)r[s]=o[s].fn;return r},i.prototype.listenerCount=function(e){var t=n?n+e:e,o=this._events[t];return o?o.fn?1:o.length:0},i.prototype.emit=function(e,t,o,s,a,r){var i=n?n+e:e;if(!this._events[i])return!1;var u,c,l=this._events[i],p=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,o),!0;case 4:return l.fn.call(l.context,t,o,s),!0;case 5:return l.fn.call(l.context,t,o,s,a),!0;case 6:return l.fn.call(l.context,t,o,s,a,r),!0}for(c=1,u=new Array(p-1);c<p;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,g=l.length;for(c=0;c<g;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),p){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,o);break;case 4:l[c].fn.call(l[c].context,t,o,s);break;default:if(!u)for(d=1,u=new Array(p-1);d<p;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},i.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},i.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},i.prototype.removeListener=function(e,t,o,s){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return r(this,a),this;var i=this._events[a];if(i.fn)i.fn!==t||s&&!i.once||o&&i.context!==o||r(this,a);else{for(var u=0,c=[],l=i.length;u<l;u++)(i[u].fn!==t||s&&!i[u].once||o&&i[u].context!==o)&&c.push(i[u]);c.length?this._events[a]=1===c.length?c[0]:c:r(this,a)}return this},i.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&r(this,t)):(this._events=new o,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=n,i.EventEmitter=i,e.exports=i})),ui=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"BigDataChannelModule\",s.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},s._bdh_download_server=\"grouptalk.c2c.qq.com\",s._BDHBizID=10001,s._authKey=\"\",s._expireTime=0,s.getInnerEmitterInstance().on(Za,s._getAuthKey,_(s)),s}return a(n,[{key:\"_getAuthKey\",value:function(){var e=this;this.isIntl()||this.request({protocolName:go}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:\"_isFromOlderVersion\",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:\"parseElements\",value:function(e,t){if(!st(e)||!t)return[];for(var n=[],o=null,s=0;s<e.length;s++)o=e[s],this._needParse(o)?n.push(this._parseElement(o,t)):n.push(e[s]);return n}},{key:\"_needParse\",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==S.MSG_AUDIO&&e.type!==S.MSG_FILE&&e.type!==S.MSG_VIDEO)}},{key:\"_parseElement\",value:function(e,t){switch(e.type){case S.MSG_AUDIO:return this._parseAudioElement(e,t);case S.MSG_FILE:return this._parseFileElement(e,t);case S.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:\"_parseAudioElement\",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:\"_parseFileElement\",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:\"_parseVideoElement\",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:\"_genAudioUrl\",value:function(e,t){if(\"\"===this._authKey)return\"\";var n=this.getModule(qn).getSDKAppID();return\"https://\".concat(this._bdh_download_server,\"/asn.com/stddownload_common_file?authkey=\").concat(this._authKey,\"&bid=\").concat(this._BDHBizID,\"&subbid=\").concat(n,\"&fileid=\").concat(e,\"&filetype=\").concat(this.FILETYPE.SOUND,\"&openid=\").concat(t,\"&ver=0\")}},{key:\"_genFileUrl\",value:function(e,t,n){if(\"\"===this._authKey)return\"\";n||(n=\"\".concat(Math.floor(1e5*Math.random()),\"-\").concat(Date.now()));var o=this.getModule(qn).getSDKAppID();return\"https://\".concat(this._bdh_download_server,\"/asn.com/stddownload_common_file?authkey=\").concat(this._authKey,\"&bid=\").concat(this._BDHBizID,\"&subbid=\").concat(o,\"&fileid=\").concat(e,\"&filetype=\").concat(this.FILETYPE.FILE,\"&openid=\").concat(t,\"&ver=0&filename=\").concat(encodeURIComponent(n))}},{key:\"_genVideoUrl\",value:function(e,t){if(\"\"===this._authKey)return\"\";var n=this.getModule(qn).getSDKAppID();return\"https://\".concat(this._bdh_download_server,\"/asn.com/stddownload_common_file?authkey=\").concat(this._authKey,\"&bid=\").concat(this._BDHBizID,\"&subbid=\").concat(n,\"&fileid=\").concat(e,\"&filetype=\").concat(this.FILETYPE.VIDEO,\"&openid=\").concat(t,\"&ver=0\")}},{key:\"reset\",value:function(){this._authKey=\"\",this.expireTime=0}}]),n}(ro),ci=[\"requestSnapshotUrl\"],li=function(e){i(s,e);var n=f(s);function s(e){var t;o(this,s),(t=n.call(this,e))._n=\"UploadModule\",t.TIMUploadPlugin=null,t.timUploadPlugin=null,t.COSSDK=null,t._cosUploadMethod=null,t.expiredTimeLimit=600,t.appid=0,t.bucketName=\"\",t.ciUrl=\"\",t.directory=\"\",t.downloadUrl=\"\",t.uploadUrl=\"\",t.region=\"ap-shanghai\",t.cos=null,t.cosOptions={secretId:\"\",secretKey:\"\",sessionToken:\"\",expiredTime:0},t.uploadFileType=\"\",t.duration=900,t.tryCount=0,t.UPLOAD_SIZE_LIMIT={AUDIO:20971520,FILE:104857600,IMAGE:20971520,VIDEO:104857600};var a=t.getInnerEmitterInstance();return a.on(Za,t._init,_(t)),a.on($a,t._onCloudConfigUpdated,_(t)),t}return a(s,[{key:\"_init\",value:function(){var e=this.getModule(Wn);if(this.TIMUploadPlugin=e.getPlugin(\"tim-upload-plugin\"),this.TIMUploadPlugin)this._initUploaderMethod();else{var t=se?\"cos-wx-sdk\":\"cos-js-sdk\";this.COSSDK=e.getPlugin(t),this.COSSDK?(this._getAuthorizationKey(),this.outputWarning(\"CosReplacement\",t)):this.outputWarning(\"PluginUndetected\")}}},{key:\"_onCloudConfigUpdated\",value:function(){var e=\"\".concat(this._n,\"._onCloudConfigUpdated\"),t=this.getCloudConfig(\"upload_size_limit\");if(xe.l(\"\".concat(e,\" uploadSizeLimit:\").concat(t)),!at(t))try{var n=JSON.parse(t);this.UPLOAD_SIZE_LIMIT={AUDIO:n.a?1048576*parseInt(n.a):this.UPLOAD_SIZE_LIMIT.AUDIO,FILE:n.f?1048576*parseInt(n.f):this.UPLOAD_SIZE_LIMIT.FILE,IMAGE:n.i?1048576*parseInt(n.i):this.UPLOAD_SIZE_LIMIT.IMAGE,VIDEO:n.v?1048576*parseInt(n.v):this.UPLOAD_SIZE_LIMIT.VIDEO}}catch(o){xe.e(\"\".concat(e,\" JSON parse error. uploadSizeLimit:\"),t)}}},{key:\"_getAuthorizationKey\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_getAuthorizationKey\"),n=new ka(\"_getAuthorizationKey\"),o=Math.ceil(Date.now()/1e3);this.request({protocolName:ws,requestData:{duration:this.expiredTimeLimit}}).then((function(s){var a=s.data;xe.l(\"\".concat(t,\" ok. data:\"),a);var r=a.expiredTime-o;n.setMessage(\"requestId:\".concat(a.requestId,\" requestTime:\").concat(o,\" expiredTime:\").concat(a.expiredTime,\" diff:\").concat(r,\"s\")).setNetworkType(e.getNetworkType()).end(),!se&&a.region&&(e.region=a.region),e.appid=a.appid,e.bucketName=a.bucketName,e.ciUrl=a.ciUrl,e.directory=a.directory,e.downloadUrl=a.downloadUrl,e.uploadUrl=a.uploadUrl,e.cosOptions={secretId:a.secretId,secretKey:a.secretKey,sessionToken:a.sessionToken,expiredTime:a.expiredTime},xe.l(\"\".concat(t,\" ok. region:\").concat(e.region,\" bucketName:\").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(o){e.probeNetwork().then((function(e){var t=v(e,2),s=t[0],a=t[1];n.setError(o,s,a).end()})),xe.w(\"\".concat(t,\" failed. error:\"),o)}))}},{key:\"_getCosPreSigUrl\",value:function(e){var t=this,n=\"\".concat(this._n,\".\").concat(\"_getCosPreSigUrl\"),o=Math.ceil(Date.now()/1e3),s=new ka(\"_getCosPreSigUrl\");return this.request({protocolName:Fs,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var a=e.data||{},r=a.expiredTime-o;return xe.l(\"\".concat(n,\" ok. data:\"),a),s.setMessage(\"requestId:\".concat(a.requestId,\" expiredTime:\").concat(a.expiredTime,\" diff:\").concat(r,\"s\")).setNetworkType(t.getNetworkType()).end(),a})).catch((function(o){return-1===o.code&&(o.code=da.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=v(e,2),n=t[0],a=t[1];s.setError(o,n,a).end()})),xe.w(\"\".concat(n,\" failed. error:\"),o),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,Ja({code:da.COS_GET_SIG_FAIL}))}))}},{key:\"_initUploaderMethod\",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=se?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=se?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:\"onCheckTimer\",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:\"_getAuthorization\",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:\"upload\",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule($n);switch(e.type){case S.MSG_IMAGE:return t.addTotalCount(Ma),this._uploadImage(e);case S.MSG_FILE:return t.addTotalCount(Ma),this._uploadFile(e);case S.MSG_AUDIO:return t.addTotalCount(Ma),this._uploadAudio(e);case S.MSG_VIDEO:return t.addTotalCount(Ma),this._uploadVideo(e);default:return Promise.resolve()}}},{key:\"_uploadImage\",value:function(e){var n=this,o=this.getModule(Rn),s=e.getElements()[0],a=o.getMessageOption(e.clientSequence);return this.doUploadImage({file:a.payload.file,to:a.to,onProgress:function(e){if(s.updatePercent(e),it(a.onProgress))try{a.onProgress(e)}catch(t){return Ja({code:da.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(o){var a,r,i=o.location,u=o.fileType,c=o.fileSize,l=o.width,p=o.height,d=o.smallImageUrl,g=o.smallImageWidth,_=o.smallImageHeight,h=o.largeImageUrl,f=o.largeImageWidth,v=o.largeImageHeight,m=n.isPrivateNetWork()?i:Mt(i);return s.updateImageFormat(u),d&&h?(a={url:d,width:g,height:_},r={url:h,width:f,height:v}):(a=Gt({originUrl:m,originWidth:l,originHeight:p,min:198}),r=Gt({originUrl:m,originWidth:l,originHeight:p,min:720})),s.updateImageInfoArray([{size:c,url:m,width:l,height:p},t({},r),t({},a)]),e}))}},{key:\"_uploadFile\",value:function(e){var t=this,n=this.getModule(Rn),o=e.getElements()[0],s=n.getMessageOption(e.clientSequence);return this.doUploadFile({file:s.payload.file,to:s.to,onProgress:function(e){if(o.updatePercent(e),it(s.onProgress))try{s.onProgress(e)}catch(t){return Ja({code:da.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var s=n.location,a=t.isPrivateNetWork()?s:Mt(s);return o.updateFileUrl(a),e}))}},{key:\"_uploadAudio\",value:function(e){var t=this,n=this.getModule(Rn),o=e.getElements()[0],s=n.getMessageOption(e.clientSequence);return this.doUploadAudio({file:s.payload.file,to:s.to,onProgress:function(e){if(o.updatePercent(e),it(s.onProgress))try{s.onProgress(e)}catch(t){return Ja({code:da.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var s=n.location,a=t.isPrivateNetWork()?s:Mt(s);return o.updateAudioUrl(a),e}))}},{key:\"_uploadVideo\",value:function(e){var t=this,n=this.getModule(Rn),o=e.getElements()[0],s=n.getMessageOption(e.clientSequence);return this.doUploadVideo({file:s.payload.file,to:s.to,onProgress:function(e){if(o.updatePercent(e),it(s.onProgress))try{s.onProgress(e)}catch(t){return Ja({code:da.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var s=n.location,a=n.snapshotInfo,r=t.isPrivateNetWork()?s:Mt(s);return o.updateVideoUrl(r),jt(a)||o.updateSnapshotInfo(a),e}))}},{key:\"_checkSizeError\",value:function(e){return Ja({code:da[\"MESSAGE_\".concat(e,\"_SIZE_LIMIT\")],message:this.getErrorMessage(\"UploadSizeLimit\",e.toLowerCase(),\"\".concat(this.UPLOAD_SIZE_LIMIT[e]/1048576,\" MB\"))})}},{key:\"doUploadImage\",value:function(e){var t=this;if(!e.file)return Ja({code:da.MESSAGE_IMAGE_SELECT_FILE_FIRST});var n=this._checkImageType(e.file);if(!0!==n)return n;var o=this._checkImageSize(e.file);if(!0!==o)return o;var s=null;return this._setUploadFileType(sr),this.uploadByCOS(e).then((function(e){return s=e,t.isPrivateNetWork()?At(e.location):At(\"https://\".concat(e.location))})).then((function(e){return s.width=e.width,s.height=e.height,Promise.resolve(s)}))}},{key:\"_checkImageType\",value:function(e){var t=\"\";return t=se?e.url.slice(e.url.lastIndexOf(\".\")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(\".\")+1),nr.indexOf(t.toLowerCase())>=0||Ja({code:da.MESSAGE_IMAGE_TYPES_LIMIT})}},{key:\"_checkImageSize\",value:function(e){var t=0;return 0===(t=se?e.size:e.files[0].size)?Ja({code:da.MESSAGE_FILE_IS_EMPTY}):t<this.UPLOAD_SIZE_LIMIT.IMAGE||this._checkSizeError(\"IMAGE\")}},{key:\"doUploadFile\",value:function(e){return e.file?e.file.files[0].size>this.UPLOAD_SIZE_LIMIT.FILE?this._checkSizeError(\"FILE\"):0===e.file.files[0].size?Ja({code:da.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(ir),this.uploadByCOS(e)):Ja({code:da.MESSAGE_FILE_SELECT_FILE_FIRST})}},{key:\"doUploadVideo\",value:function(e){return e.file.videoFile.size>this.UPLOAD_SIZE_LIMIT.VIDEO?this._checkSizeError(\"VIDEO\"):0===e.file.videoFile.size?Ja({code:da.MESSAGE_FILE_IS_EMPTY}):-1===or.indexOf(e.file.videoFile.type)?Ja({code:da.MESSAGE_VIDEO_TYPES_LIMIT}):(this._setUploadFileType(ar),se?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):ae?this.handleVideoUpload(e):void 0)}},{key:\"handleVideoUpload\",value:function(e){var t=this;return new Promise((function(n,o){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){o(new Wa({code:da.MESSAGE_VIDEO_UPLOAD_FAIL}))}))}))}))}},{key:\"doUploadAudio\",value:function(e){return e.file?e.file.size>this.UPLOAD_SIZE_LIMIT.AUDIO?this._checkSizeError(\"AUDIO\"):0===e.file.size?Ja({code:da.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(rr),this.uploadByCOS(e)):Ja({code:da.MESSAGE_AUDIO_UPLOAD_FAIL})}},{key:\"uploadByCOS\",value:function(e){var t=this;if(!it(this._cosUploadMethod))return this.outputWarning(\"PluginUndetected\"),Ja({code:da.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var n=new ka(\"upload\"),o=\"\".concat(this._n,\".uploadByCOS\"),s=Date.now(),a=this._getFile(e);return new Promise((function(r,i){var u=se?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),c=t;t._cosUploadMethod(u,(function(e,u){var l=Object.create(null);if(u){if(e||st(u.files)&&u.files[0].error){var p=new Wa({code:da.MESSAGE_FILE_UPLOAD_FAIL});return n.setError(p,!0,t.getNetworkType()).end(),xe.l(\"\".concat(o,\" failed. error:\"),u.files[0].error),403===u.files[0].error.statusCode&&(xe.w(\"\".concat(o,\" failed. cos AccessKeyId was invalid, regain auth key!\")),t._getAuthorizationKey()),void i(p)}l.fileName=a.name,l.fileSize=a.size,l.fileType=a.type.slice(a.type.indexOf(\"/\")+1).toLowerCase(),l.location=se?u.Location:u.files[0].data.Location;var d=Date.now()-s,g=c._formatFileSize(a.size),_=c._formatSpeed(1e3*a.size/d),h=\"size:\".concat(g,\" time:\").concat(d,\"ms speed:\").concat(_);xe.l(\"\".concat(o,\" success. name:\").concat(a.name,\" \").concat(h)),r(l);var f=t.getModule($n);return f.addCost(Ma,d),f.addFileSize(Ma,a.size),void n.setNetworkType(t.getNetworkType()).setMessage(h).end()}var v=new Wa({code:da.MESSAGE_FILE_UPLOAD_FAIL});n.setError(v,!0,c.getNetworkType()).end(),xe.w(\"\".concat(o,\" failed. error:\"),e),403===e.statusCode&&(xe.w(\"\".concat(o,\" failed. cos AccessKeyId was invalid, regain auth key!\")),t._getAuthorizationKey()),i(v)}))}))}},{key:\"_uploadWithPreSigUrl\",value:function(e){var t=this,n=\"\".concat(this._n,\"._uploadWithPreSigUrl\"),o=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(s,a){var r=new ka(\"upload\"),i=e.requestSnapshotUrl,u=void 0===i?void 0:i,c=g(e,ci),l=Date.now();t._cosUploadMethod(c,(function(e,i){if(e||403===i.statusCode)return r.setError(new Wa(e),!0,t.getNetworkType()).end(),xe.l(\"\".concat(n,\" failed, error:\"),e),void a(new Wa({code:da.MESSAGE_FILE_UPLOAD_FAIL}));var p=Object.create(null),d=i.data.location||\"\";t.isPrivateNetWork()||0!==d.indexOf(\"https://\")&&0!==d.indexOf(\"http://\")||(d=d.split(\"//\")[1]),p.fileName=o.name,p.fileSize=o.size,p.fileType=o.type.slice(o.type.indexOf(\"/\")+1).toLowerCase(),p.location=d;var g=Date.now()-l,_=t._formatFileSize(o.size),h=t._formatSpeed(1e3*o.size/g),f=\"size:\".concat(_,\",time:\").concat(g,\"ms,speed:\").concat(h,\" res:\").concat(JSON.stringify(i.data));xe.l(\"\".concat(n,\" success name:\").concat(o.name,\",\").concat(f)),r.setNetworkType(t.getNetworkType()).setMessage(f).end();var v=t.getModule($n);v.addCost(Ma,g),v.addFileSize(Ma,o.size);var m=[];if(c.thumbUrl&&c.largeUrl&&(m=[t._getSmallImageInfoByUrl(c.thumbUrl,p),t._getLargeImageInfoByUrl(c.largeUrl,p)]),u&&m.push(t._getSnapshotInfoByUrl(u,p)),m.length>0)return Promise.all(m).then((function(){s(p)}));s(p)}))}))}))}},{key:\"_getRawOrUploadProxyUrl\",value:function(e){var t=this.getModule(qn).getFileUploadProxy(),n=e;return t&&(n=e.replace(/^https:\\/\\/[^/]+/,t)),n}},{key:\"_getFile\",value:function(e){var t;return st(e.file.files)||(t=e.file.files,\"filelist\"===ct(t))?e.file.files[0]:e.file}},{key:\"_formatFileSize\",value:function(e){return e<1024?e+\"B\":e<1048576?Math.floor(e/1024)+\"KB\":Math.floor(e/1048576)+\"MB\"}},{key:\"_formatSpeed\",value:function(e){return e<=1048576?bt(e/1024,1)+\"KB/s\":bt(e/1048576,1)+\"MB/s\"}},{key:\"_createCosOptionsWeb\",value:function(e){var t=this._getFile(e),n=t.name,o=n.slice(n.lastIndexOf(\".\")),s=this._genFileName(\"\".concat(_t(999999)).concat(o));return{files:[{Bucket:\"\".concat(this.bucketName,\"-\").concat(this.appid),Region:this.region,Key:\"\".concat(this.directory,\"/\").concat(s),Body:t}],SliceSize:1048576,onProgress:function(t){if(\"function\"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){xe.w(\"onProgress callback error:\",n)}},onFileFinish:function(e,t,n){}}}},{key:\"_createCosOptionsWXMiniApp\",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),o=t.url;return{Bucket:\"\".concat(this.bucketName,\"-\").concat(this.appid),Region:this.region,Key:\"\".concat(this.directory,\"/\").concat(n),FilePath:o,onProgress:function(t){if(xe.l(JSON.stringify(t)),\"function\"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){xe.w(\"onProgress callback error:\",n)}}}}},{key:\"_createCosOptionsPreSigUrl\",value:function(e){var t=this,n=\"\",o=\"\",s=0,a=this._getFile(e);if(se)n=this._genFileName(a.name),o=a.url,s=1;else{var r=a.name,i=r.slice(r.lastIndexOf(\".\"));n=this._genFileName(\"\".concat(_t(999999)).concat(i)),o=a,s=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:s,duration:this.duration}).then((function(s){var a=s.uploadUrl,r=s.downloadUrl,i=s.requestSnapshotUrl,u=void 0===i?void 0:i,c=s.thumbUrl,l=s.largeUrl;return{url:t._getRawOrUploadProxyUrl(a),fileType:t.uploadFileType,fileName:n,resources:o,downloadUrl:r,requestSnapshotUrl:u,thumbUrl:c,largeUrl:l,onProgress:function(t){if(\"function\"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){xe.w(\"onProgress callback error:\",n),xe.e(n)}}}}))}},{key:\"_genFileName\",value:function(e){return\"\".concat(Rt(),\"-\").concat(e)}},{key:\"_setUploadFileType\",value:function(e){this.uploadFileType=e}},{key:\"_getSnapshotInfoByUrl\",value:function(e,t){var n=this,o=new ka(\"getSnapshotInfo\");return this.request({protocolName:qs,requestData:{platform:this.getPlatform(),coverName:this._genFileName(_t(99999)),requestSnapshotUrl:e}}).then((function(e){var n=(e.data||{}).snapshotUrl;return o.setMessage(\"snapshotUrl:\".concat(n)).end(),jt(n)?{}:At(n).then((function(e){t.snapshotInfo={snapshotUrl:n,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return xe.w(\"\".concat(n._n,\"._getSnapshotInfoByUrl failed. error:\"),e),o.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:\"_getSmallImageInfoByUrl\",value:function(e,t){return At(e).then((function(n){t.smallImageUrl=e,t.smallImageWidth=n.width,t.smallImageHeight=n.height}))}},{key:\"_getLargeImageInfoByUrl\",value:function(e,t){return At(e).then((function(n){t.largeImageUrl=e,t.largeImageWidth=n.width,t.largeImageHeight=n.height}))}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\"))}}]),s}(ro),pi=[\"downloadKey\",\"pbDownloadKey\",\"messageList\"],di=function(){function e(t){o(this,e),this._n=\"MergerMessageHandler\",this._messageModule=t}return a(e,[{key:\"uploadMergerMessage\",value:function(e,t){var n=this,o=\"\".concat(this._n,\".\").concat(\"uploadMergerMessage\");xe.d(\"\".concat(o,\" message:\"),e,\"messageBytes:\".concat(t));var s=e.payload.messageList,a=s.length,r=new ka(\"uploadMergerMessage\");return this._messageModule.request({protocolName:Ys,requestData:{messageList:s}}).then((function(e){xe.d(\"\".concat(o,\" ok. response:\"),e.data);var s=e.data,i=s.pbDownloadKey,u=s.downloadKey,c={pbDownloadKey:i,downloadKey:u,messageNumber:a};return r.setNetworkType(n._messageModule.getNetworkType()).setMessage(\"\".concat(a,\"-\").concat(t,\"-\").concat(u)).end(),c})).catch((function(e){throw xe.w(\"\".concat(o,\" failed. error:\"),e),n._messageModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),e}))}},{key:\"downloadMergerMessage\",value:function(e){var n=this,o=\"\".concat(this._n,\".\").concat(\"downloadMergerMessage\");xe.d(\"\".concat(o,\" message:\"),e);var s=e.payload.downloadKey,a=this._messageModule.getFileDownloadProxy(),r=new ka(\"downloadMergerMessage\");return r.setMessage(\"downloadKey:\".concat(s)),this._messageModule.request({protocolName:js,requestData:{downloadKey:s}}).then((function(s){if(xe.d(\"\".concat(o,\" ok. response:\"),s.data),it(e.clearElement)){var i=e.payload;i.downloadKey,i.pbDownloadKey,i.messageList;var u=g(i,pi);e.clearElement(),e.setElement({type:e.type,content:t({messageList:s.data.messageList},u)},a)}else{var c=[];s.data.messageList.forEach((function(e){if(!jt(e)){var t=new xa(e,a);c.push(t)}})),e.payload.messageList=c,e.payload.downloadKey=\"\",e.payload.pbDownloadKey=\"\"}return r.setNetworkType(n._messageModule.getNetworkType()).end(),e})).catch((function(e){throw xe.w(\"\".concat(o,\" failed. key:\").concat(s,\" error:\"),e),n._messageModule.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];r.setError(e,o,s).end()})),e}))}},{key:\"createMergerMessagePack\",value:function(e,t,n){return e.conversationType===S.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:\"_createC2CMergerMessagePack\",value:function(e,t,n){var o=null;t&&(t.offlinePushInfo&&(o=t.offlinePushInfo),!0===t.onlineUserOnly&&(o?o.disablePush=!0:o={disablePush:!0}));var s=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,r=a.excludedFromUnreadCount,i=a.excludedFromLastMessage,u=a.excludedFromContentModeration;!0===r&&s.push(\"NoUnread\"),!0===i&&s.push(\"NoLastMsg\"),!0===u&&s.push(\"NoMsgCheck\")}var c=\"\";et(e.cloudCustomData)&&e.cloudCustomData.length>0&&(c=e.cloudCustomData);var l=n.pbDownloadKey,p=n.downloadKey,d=n.messageNumber,g=e.payload,_=g.title,h=g.abstractList,f=g.compatibleText,v=this._messageModule.getModule(Gn),m=v&&v.isOnlineMessage(e,t)?0:void 0;return{protocolName:_o,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:l,downloadKey:p,title:_,abstractList:h,compatibleText:f,messageNumber:d}}],cloudCustomData:c,clientTime:e.clientTime,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:m,offlinePushInfo:o?{pushFlag:!0===o.disablePush?1:0,title:o.title||\"\",desc:o.description||\"\",ext:o.extension||\"\",apnsInfo:{badgeMode:!0===o.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:o.androidOPPOChannelID||\"\"}}:void 0,messageControlInfo:0!==m?s:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:\"_createGroupMergerMessagePack\",value:function(e,t,n){var o=null;t&&t.offlinePushInfo&&(o=t.offlinePushInfo);var s=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,r=a.excludedFromUnreadCount,i=a.excludedFromLastMessage,u=a.excludedFromContentModeration;!0===r&&s.push(\"NoUnread\"),!0===i&&s.push(\"NoLastMsg\"),!0===u&&s.push(\"NoMsgCheck\")}var c=\"\";et(e.cloudCustomData)&&e.cloudCustomData.length>0&&(c=e.cloudCustomData);var l=n.pbDownloadKey,p=n.downloadKey,d=n.messageNumber,g=e.payload,_=g.title,h=g.abstractList,f=g.compatibleText,v=this._messageModule.getModule(Un),m=v&&v.isOnlineMessage(e,t)?1:0;return{protocolName:ho,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:l,downloadKey:p,title:_,abstractList:h,compatibleText:f,messageNumber:d}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:c,onlineOnlyFlag:m,offlinePushInfo:o?{pushFlag:!0===o.disablePush?1:0,title:o.title||\"\",desc:o.description||\"\",ext:o.extension||\"\",apnsInfo:{badgeMode:!0===o.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:o.androidOPPOChannelID||\"\"}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||v.isMessageFromOrToAVChatroom(e.to)?0:1,messageControlInfo:0===m?s:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}}]),e}(),gi={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},_i=[da.MESSAGE_ONPROGRESS_FUNCTION_ERROR,da.MESSAGE_IMAGE_SELECT_FILE_FIRST,da.MESSAGE_IMAGE_TYPES_LIMIT,da.MESSAGE_FILE_IS_EMPTY,da.MESSAGE_IMAGE_SIZE_LIMIT,da.MESSAGE_FILE_SELECT_FILE_FIRST,da.MESSAGE_FILE_SIZE_LIMIT,da.MESSAGE_VIDEO_SIZE_LIMIT,da.MESSAGE_VIDEO_TYPES_LIMIT,da.MESSAGE_AUDIO_UPLOAD_FAIL,da.MESSAGE_AUDIO_SIZE_LIMIT,da.COS_UNDETECTED];function hi(e){var t=!1;return Object.values(gi).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}var fi=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"MessageModule\",t._messageOptionsMap=new Map,t._mergerMessageHandler=new di(_(t)),t}return a(s,[{key:\"createTextMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e),o=\"string\"==typeof e.payload?e.payload:e.payload.text,s=new La({text:o}),a=this._getNickAndAvatarByUserID(t);return n.setElement(s),n.setNickAndAvatar(a),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:\"createImageMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e);if(se){var o=e.payload.file;if(Ze(o))return void this.outputWarning(\"FileUnsupportedInMP\",\"createImageMessage\");var s=o.tempFiles[0].path||o.tempFiles[0].tempFilePath,a={url:s,name:s.slice(s.lastIndexOf(\"/\")+1),size:o.tempFiles&&o.tempFiles[0].size||1,type:s.slice(s.lastIndexOf(\".\")+1).toLowerCase()};e.payload.file=a}else if(ae)if(Ze(e.payload.file)){var r=e.payload.file;e.payload.file={files:[r]}}else if(ot(e.payload.file)&&\"undefined\"!=typeof uni){var i=e.payload.file.tempFiles[0];e.payload.file={files:[i]}}var u=new Aa({imageFormat:Ve.UNKNOWN,uuid:this._generateUUID(e.payload.file),file:e.payload.file}),c=this._getNickAndAvatarByUserID(t);return n.setElement(u),n.setNickAndAvatar(c),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:\"createAudioMessage\",value:function(e){var t=e.payload.file;if(se){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(\"/\")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(\".\")+1).toLowerCase()};e.payload.file=n}var o=this.getMyUserID();e.currentUser=o,e.senderTinyID=this.getMyTinyID();var s=new Ha(e),a=new Na({second:Math.floor(t.duration/1e3),size:t.fileSize||t.size,url:t.tempFilePath,uuid:this._generateUUID(e.payload.file)}),r=this._getNickAndAvatarByUserID(o);return s.setElement(a),s.setNickAndAvatar(r),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}},{key:\"createVideoMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl=\"\",e.payload.file.thumbSize=0;var n={};if(se){if(ee)return void this.outputWarning(\"VideoUnsupportedInAlipay\");if(Ze(e.payload.file))return void this.outputWarning(\"FileUnsupportedInMP\",\"createVideoMessage\");var o=e.payload.file;st(o.tempFiles)&&(o=o.tempFiles[0]),n.url=o.tempFilePath,n.name=o.tempFilePath.slice(o.tempFilePath.lastIndexOf(\"/\")+1),n.size=o.size||1,n.second=o.duration||0,n.type=o.tempFilePath.slice(o.tempFilePath.lastIndexOf(\".\")+1).toLowerCase()}else if(ae){if(Ze(e.payload.file)){var s=e.payload.file;e.payload.file.files=[s]}else if(ot(e.payload.file)&&\"undefined\"!=typeof uni){var a=e.payload.file.tempFile;e.payload.file.files=[a]}var r=e.payload.file;n.url=window.URL.createObjectURL(r.files[0]),n.name=r.files[0].name,n.size=r.files[0].size||1,n.second=r.files[0].duration||0,n.type=r.files[0].type.split(\"/\")[1]}e.payload.file.videoFile=n;var i=new Ha(e),u=new Fa({videoFormat:n.type,videoSecond:bt(n.second,0),videoSize:n.size,remoteVideoUrl:\"\",videoUrl:n.url,videoUUID:this._generateUUID(e.payload.file.videoFile),thumbUUID:this._generateUUID(e.payload.file.videoFile),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(\".\")+1).toLowerCase()}),c=this._getNickAndAvatarByUserID(t);return i.setElement(u),i.setNickAndAvatar(c),i.setNameCard(this._getNameCardByGroupID(i)),this._messageOptionsMap.set(i.clientSequence,e),i}},{key:\"createCustomMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e),o=new wa({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),s=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(s),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:\"createFaceMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e),o=new Ra(e.payload),s=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(s),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:\"createMergerMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=this._getNickAndAvatarByUserID(t),o=new Ha(e),s=new Va(e.payload);return o.setElement(s),o.setNickAndAvatar(n),o.setNameCard(this._getNameCardByGroupID(o)),o.setRelayFlag(!0),o}},{key:\"createForwardMessage\",value:function(e){var t=e.to,n=e.conversationType,o=e.priority,s=e.payload,a=e.needReadReceipt,r=e.receiverList,i=this.getMyUserID(),u=this._getNickAndAvatarByUserID(i);if(s.type===S.MSG_GRP_TIP)return Ja({code:da.MESSAGE_FORWARD_TYPE_INVALID});var c={to:t,conversationType:n,conversationID:\"\".concat(n).concat(t),priority:o,isPlaceMessage:0,status:Qt.UNSEND,currentUser:i,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||s.cloudCustomData||\"\",needReadReceipt:a,receiverList:r,isSupportExtension:e.isSupportExtension||!1},l=new Ha(c);return l.setElement(s.getElements()[0]),l.setNickAndAvatar(u),l.setNameCard(this._getNameCardByGroupID(s)),l.setRelayFlag(!0),l}},{key:\"downloadMergerMessage\",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:\"createFileMessage\",value:function(e){if(se){if(!X&&!Q&&!ne)return;var n=re.getSystemInfoSync().SDKVersion;if(X&&Ot(n,\"2.5.0\")<0)return void this.outputWarning(\"WXChooseMessageFile\");if(Q&&Ot(n,\"1.18.0\")<0)return void this.outputWarning(\"QQChooseMessageFile\")}if(ae||ne){if(Ze(e.payload.file)){var o=e.payload.file;e.payload.file={files:[o]}}else if(ot(e.payload.file)&&\"undefined\"!=typeof uni){var s=e.payload.file,a=s.tempFiles,r=s.files,i=null;st(a)?i=a[0]:st(r)&&(i=r[0]),e.payload.file={files:[i]}}}else if(X||Q){var u=e.payload.file.tempFiles,c=t(t({},u[0]),{},{url:u[0].path});e.payload.file={files:[c]}}var l=this.getMyUserID();e.currentUser=l,e.senderTinyID=this.getMyTinyID();var p=new Ha(e),d=new ba({uuid:this._generateUUID(e.payload.file),file:e.payload.file}),g=this._getNickAndAvatarByUserID(l);return p.setElement(d),p.setNickAndAvatar(g),p.setNameCard(this._getNameCardByGroupID(p)),this._messageOptionsMap.set(p.clientSequence,e),p}},{key:\"createLocationMessage\",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ha(e),o=new qa(e.payload),s=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(s),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:\"_onCannotFindModule\",value:function(){return Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"sendMessageInstance\",value:function(e,t){var n=this;if(!1===this.getModule(no).filterMessage(e,t))return this._onSendMessageFailed(e,new Wa({code:da.PROFANITY_FOUND}));var o,s=null;switch(e.conversationType){case S.CONV_C2C:if(!(s=this.getModule(Gn)))return this._onCannotFindModule();break;case S.CONV_GROUP:if(!(s=this.getModule(Un)))return this._onCannotFindModule();if(Tt({groupID:e.to})){var a=s.getLocalGroupProfile(e.to);if(a&&a.isSupportTopic)return Ja({code:da.MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL})}break;default:return Ja({code:da.MESSAGE_SEND_INVALID_CONVERSATION_TYPE})}var r=this.getModule(Kn),i=this.getModule(Un);return r.upload(e).then((function(){n._getSendMessageSpecifiedKey(e)===ma&&n.getModule($n).addSuccessCount(Ma);return i.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return Ja({code:da.MESSAGE_FILE_URL_IS_EMPTY});n._addSendMessageTotalCount(e),o=Date.now();var a=function(e){var t=\"utf-8\";ae&&document&&(t=document.charset.toLowerCase());var n,o,s=0;if(o=e.length,\"utf-8\"===t||\"utf8\"===t)for(var a=0;a<o;a++)(n=e.codePointAt(a))<=127?s+=1:n<=2047?s+=2:n<=65535?s+=3:(s+=4,a++);else if(\"utf-16\"===t||\"utf16\"===t)for(var r=0;r<o;r++)(n=e.codePointAt(r))<=65535?s+=2:(s+=4,r++);else s=e.replace(/[^\\x00-\\xff]/g,\"aa\").length;return s}(JSON.stringify(e));return e.type===S.MSG_MERGER&&a>11264?n._mergerMessageHandler.uploadMergerMessage(e,a).then((function(o){var s=n._mergerMessageHandler.createMergerMessagePack(e,t,o);return n.request(s)})):(n.getModule(Fn).setMessageRandom(e),e.conversationType===S.CONV_C2C||e.conversationType===S.CONV_GROUP?s.sendMessage(e,t):void 0)})).then((function(a){var r=a.data,i=r.time,u=r.sequence,c=r.readReceiptCode;$e(c)&&0!==c&&(new ka(\"sendMessageWithReceipt\").setMessage(\"from:\".concat(e.from,\" to:\").concat(e.to,\" sequence:\").concat(u,\" readReceiptCode:\").concat(c)).end(),xe.w(\"\".concat(n._n,\".sendMessageInstance readReceiptCode:\").concat(c,\" message:\").concat(n.getErrorMessage(c))));n._addSendMessageSuccessCount(e,o),n._messageOptionsMap.delete(e.clientSequence);var l=n.getModule(Fn);e.status=Qt.SUCCESS,e.time=i;var p=!1;if(e.conversationType===S.CONV_GROUP)e.sequence=u;else if(e.conversationType===S.CONV_C2C){var d=l.getLatestMessageSentByMe(e.conversationID);if(d){var g=d.nick,_=d.avatar;g===e.nick&&_===e.avatar||(p=!0)}}if(p&&l.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),s.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{l.appendToMessageList(e);var h=e;ot(t)&&ot(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,h=\"\"),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0));var f=e.conversationType;if(Dt(e.to))f=S.CONV_TOPIC,n.getModule(wn).onMessageSent({groupID:qt(e.to),topicID:e.to,lastMessage:h});l.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:f,subType:e.conversationSubType,lastMessage:h}]})}return e.getRelayFlag()||\"TIMImageElem\"!==e.type||Ut(e.payload.imageInfoArray),Ka({message:e})}))})).catch((function(t){return n._onSendMessageFailed(e,t)}))}},{key:\"_onSendMessageFailed\",value:function(e,t){e.status=Qt.FAIL,this.getModule(Fn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new ka(\"sendMessage\");return n.setMessage(\"tjg_id:\".concat(this.generateTjgID(e),\" type:\").concat(e.type,\" from:\").concat(e.from,\" to:\").concat(e.to)),this.probeNetwork().then((function(e){var o=v(e,2),s=o[0],a=o[1];n.setError(t,s,a).end()})),xe.e(\"\".concat(this._n,\"._onSendMessageFailed error:\"),t),Ja(new Wa({code:t&&t.code?t.code:da.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:\"_getSendMessageSpecifiedKey\",value:function(e){if([S.MSG_IMAGE,S.MSG_AUDIO,S.MSG_VIDEO,S.MSG_FILE].includes(e.type))return ma;if(e.conversationType===S.CONV_C2C)return ha;if(e.conversationType===S.CONV_GROUP){var t=this.getModule(Un).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Ct(n)?va:fa}}},{key:\"_addSendMessageTotalCount\",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule($n).addTotalCount(t)}},{key:\"_addSendMessageSuccessCount\",value:function(e,t){var n=Math.abs(Date.now()-t),o=this._getSendMessageSpecifiedKey(e);if(o){var s=this.getModule($n);s.addSuccessCount(o),s.addCost(o,n)}}},{key:\"_addSendMessageFailCountOnUser\",value:function(e,t){var n,o,s=t.code,a=void 0===s?-1:s,r=this.getModule($n),i=this._getSendMessageSpecifiedKey(e);i===ma&&(n=a,o=!1,_i.includes(n)&&(o=!0),o)?r.addFailedCountOfUserSide(Ma):hi(a)&&i&&r.addFailedCountOfUserSide(i)}},{key:\"resendMessage\",value:function(e){return e.isResend=!0,e.status=Qt.UNSEND,this.sendMessageInstance(e)}},{key:\"revokeMessage\",value:function(e){var t=this,n=null;if(e.conversationType===S.CONV_C2C?n=this.getModule(Gn):e.conversationType===S.CONV_GROUP&&(n=this.getModule(Un)),!n)return this._onCannotFindModule();var o=new ka(\"revokeMessage\");o.setMessage(\"tjg_id:\".concat(this.generateTjgID(e),\" type:\").concat(e.type,\" from:\").concat(e.from,\" to:\").concat(e.to));var s=\"\".concat(this._n,\".\").concat(\"revokeMessage\");return n.revokeMessage(e).then((function(n){var a=n.data.recallRetList;if(!jt(a)&&0!==a[0].retCode){var r=new Wa({code:a[0].retCode,data:{message:e}});return o.setCode(r.code).setMoreMessage(r.message).end(),Ja(r)}return xe.i(\"\".concat(s,\" ok. ID:\").concat(e.ID)),e.isRevoked=!0,o.end(),t.getModule(Fn).onMessageRevoked([e]),Ka({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=v(e,2),s=t[0],a=t[1];o.setError(n,s,a).end()}));var a=new Wa({code:n&&n.code?n.code:da.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:void 0,data:{message:e}});return xe.w(\"\".concat(s,\" failed. error:\"),n),Ja(a)}))}},{key:\"deleteMessage\",value:function(e){var t=this,n=null,o=e[0],s=o.conversationID,a=\"\",r=[],i=[];if(o.conversationType===S.CONV_C2C)n=this.getModule(Gn),a=s.replace(S.CONV_C2C,\"\"),e.forEach((function(e){e&&e.status===Qt.SUCCESS&&e.conversationID===s&&(e._onlineOnlyFlag||r.push(\"\".concat(e.sequence,\"_\").concat(e.random,\"_\").concat(e.time)),i.push(e))}));else if(o.conversationType===S.CONV_GROUP)n=this.getModule(Un),a=s.replace(S.CONV_GROUP,\"\"),e.forEach((function(e){e&&e.status===Qt.SUCCESS&&e.conversationID===s&&(e._onlineOnlyFlag||r.push(\"\".concat(e.sequence)),i.push(e))}));else if(o.conversationType===S.CONV_SYSTEM)return Ja({code:da.CANNOT_DELETE_GROUP_SYSTEM_NOTICE});if(!n)return this._onCannotFindModule();if(0===r.length)return this._onMessageDeleted(i);r.length>30&&(r=r.slice(0,30),i=i.slice(0,30));var u=new ka(\"deleteMessage\");u.setMessage(\"to:\".concat(a,\" count:\").concat(r.length));var c=\"\".concat(this._n,\".\").concat(\"deleteMessage\");return n.deleteMessage({to:a,keyList:r}).then((function(e){return u.end(),xe.i(\"\".concat(c,\" ok\")),t._onMessageDeleted(i)})).catch((function(e){t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),xe.w(\"\".concat(c,\" failed. error:\"),e);var n=new Wa({code:e&&e.code?e.code:da.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:void 0});return Ja(n)}))}},{key:\"_onMessageDeleted\",value:function(e){return this.getModule(Fn).onMessageDeleted(e),za({messageList:e})}},{key:\"translateText\",value:function(e){var n=\"\".concat(this._n,\".\").concat(\"translateText\"),o=e.sourceTextList,s=e.sourceLanguage,a=e.targetLanguage,r=new ka(\"translateText\");return r.setMessage(\"sourceLanguage:\".concat(s,\" targetLanguage:\").concat(a)),this.request({protocolName:pa,requestData:{sourceTextList:o,source:s||\"auto\",target:a,from:this.getMyTinyID(),SDKAppID:this.getSDKAppID()}}).then((function(e){var o=e.data,s=o.error,a=o.requestID,i=o.translatedTextList;if(0===s.code)return r.end(),xe.i(\"\".concat(n,\" ok. requestID:\").concat(a)),Ka({translatedTextList:i});throw t(t({},s),{},{requestID:a})})).catch((function(e){return r.setCode(e.code).setMoreMessage(e.requestID).end(),xe.w(\"\".concat(n,\" failed. error:\"),e),Ja({code:da.TRANSLATE_TEXT_FAIL})}))}},{key:\"modifyRemoteMessage\",value:function(e){var t=this,n=null,o=e.conversationType,s=e.to;if(this.getModule(Un).isMessageFromOrToAVChatroom(s))return Ja({code:da.MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM,data:{message:e}});if(!1===this.getModule(no).filterMessage(e))return Ja({code:da.PROFANITY_FOUND,data:{message:e}});o===S.CONV_C2C?n=this.getModule(Gn):o===S.CONV_GROUP&&(n=this.getModule(Un));var a=new ka(\"modifyMessage\");a.setMessage(\"to:\".concat(s));var r=\"\".concat(this._n,\".modifyRemoteMessage\");return n.modifyRemoteMessage(e).then((function(n){a.end(),xe.i(\"\".concat(r,\" ok\"));var o=t._onModifyRemoteMessageResp(e,n.data);return Ka({message:o})})).catch((function(n){if(a.setCode(n.code).setMoreMessage(n.message).end(),xe.w(\"\".concat(r,\" failed. error:\"),n),20027===n.code){var o=t._onModifyRemoteMessageResp(e,n.data);return Ja({code:da.MESSAGE_MODIFY_CONFLICT,data:{message:o}})}return Ja({code:n.code,message:n.message,data:{message:e}})}))}},{key:\"_onModifyRemoteMessageResp\",value:function(e,t){xe.d(\"\".concat(this._n,\"._onModifyRemoteMessageResp options:\"),t);var n=e.conversationType,o=e.from,s=e.to,a=e.random,r=e.sequence,i=e.time,u=t.elements,c=t.messageVersion,l=t.cloudCustomData,p=void 0===l?\"\":l;return this.getModule(Fn).onMessageModified({conversationType:n,from:o,to:s,time:i,random:a,sequence:r,elements:u,cloudCustomData:p,messageVersion:c})}},{key:\"_generateUUID\",value:function(e){var t=this.getModule(qn),n=\"\".concat(t.getSDKAppID(),\"-\").concat(t.getUserID(),\"-\").concat(function(){for(var e=\"\",t=32;t>0;--t)e+=ht[Math.floor(Math.random()*ft)];return e}()),o=e.name||e.value||e.url||e.tempFilePath,s=o&&o.slice(o.lastIndexOf(\".\")+1);return s&&(n=\"\".concat(n,\".\").concat(s)),n}},{key:\"getMessageOption\",value:function(e){return this._messageOptionsMap.get(e)}},{key:\"_getNickAndAvatarByUserID\",value:function(e){return this.getModule(On).getNickAndAvatarByUserID(e)}},{key:\"_getNameCardByGroupID\",value:function(e){if(e.conversationType===S.CONV_GROUP){var t=this.getModule(Un);if(t)return t.getMyNameCardByGroupID(e.to)}return\"\"}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._messageOptionsMap.clear()}}]),s}(ro),vi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"MessageExtensionModule\",s.messageExtensionMap=new Map,s.globalSeqMap=new Map,s.getMessageExtensionsMap=new Map,s}return a(n,[{key:\"onMessageExtensionNotify\",value:function(e){var t=this,n=e.dataList,o=n.messageInfo,s=n.operateType,a=n.operateResultList,r=n.tinyID,i=n.globalSequence,u=o.clientTime,c=o.random,l=\"\".concat(r,\"-\").concat(u,\"-\").concat(c),p=[],d=[];xe.l(\"\".concat(this._n,\".onMessageExtensionNotify messageID:\").concat(l,\" operateType:\").concat(s,\" globalSequence:\").concat(i)),this._updateGlobalSequence(l,i);var g=!1,_=!1;a.forEach((function(e){var n=e.extensions,o=void 0===n?[]:n,a=e.clearSequence;if(1===s)g=!0,o.forEach((function(e){p.push({key:e.key,value:e.value})})),t._updateLocalExtension(l,o);else if(2===s)_=!0,o.forEach((function(e){d.push(e.key)})),t._updateLocalExtension(l,o);else if(3===s){if(_=!0,t._hasLocalExtension(l))t._getLocalExtension(l).forEach((function(e,t){e.seq<=a&&!jt(e.value)&&d.push(t)}));t._clearLocalExtension(l,a)}})),g&&this.emitOuterEvent(E.MESSAGE_EXTENSIONS_UPDATED,{messageID:l,extensions:p}),_&&this.emitOuterEvent(E.MESSAGE_EXTENSIONS_DELETED,{messageID:l,keyList:d})}},{key:\"setMessageExtensions\",value:function(e,t){var n=this;if(!this.canIUse(B.MSG_EXT))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var o=\"\".concat(this._n,\".\").concat(\"setMessageExtensions\"),s=e.ID,a=e.conversationID,r=e.sequence,i=e.time,u=m(t);t.length>20&&(u=t.slice(0,20),xe.w(\"\".concat(o,\". the length of extensions cannot exceed 20.\")));var c=\"conversationID:\".concat(a,\" messageID:\").concat(s,\" sequence:\").concat(r,\" time:\").concat(i,\" count:\").concat(u.length),l=new ka(\"setMessageExtensions\");return l.setMessage(c),xe.l(\"\".concat(o,\" \").concat(c)),this._modifyMessageExtensions(e,u).then((function(e){var t=e.resultList,n=e.successCount,s=e.failureCount,a=\"success count:\".concat(n,\" fail count:\").concat(s);return l.setMoreMessage(a).end(),xe.l(\"\".concat(o,\" ok. \").concat(a)),Ka({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];l.setError(e,o,s).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}},{key:\"getMessageExtensions\",value:function(e){var t=this;if(!this.canIUse(B.MSG_EXT))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var n=\"\".concat(this._n,\".\").concat(\"getMessageExtensions\"),o=e.ID,s=e.conversationID,a=e.sequence,r=e.time,i=\"conversationID:\".concat(s,\" messageID:\").concat(o,\" sequence:\").concat(a,\" time:\").concat(r),u=new ka(\"getMessageExtensions\");u.setMessage(i),xe.l(\"\".concat(n,\" \").concat(i));var c=void 0;return this.getMessageExtensionsMap.has(o)&&(c=this._getGlobalSequence(o)),this._getMessageExtensions(e,c).then((function(e){return u.end(),xe.l(\"\".concat(n,\" ok. total count:\").concat(e.length)),at(c)&&e.length>0&&t.getMessageExtensionsMap.set(o,1),Ka({extensions:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];u.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"deleteMessageExtensions\",value:function(e,t){var n=this;if(!this.canIUse(B.MSG_EXT))return Ja({code:da.CANNOT_USE_COMMERCIAL_ABILITY});var o=\"\".concat(this._n,\".\").concat(\"deleteMessageExtensions\"),s=[],a=3;jt(t)||(a=2,t.forEach((function(e){s.push({key:e,value:\"\",seq:0})})));var r=e.ID,i=e.conversationID,u=e.sequence,c=e.time,l=\"conversationID:\".concat(i,\" messageID:\").concat(r,\" sequence:\").concat(u,\" time:\").concat(c,\" operateType:\").concat(a),p=new ka(\"deleteMessageExtensions\");return p.setMessage(l),xe.l(\"\".concat(o,\" \").concat(l)),this._modifyMessageExtensions(e,s,a).then((function(e){var t=e.resultList,n=e.successCount,s=e.failureCount,r=\"\";return 2===a&&(r=\"success count:\".concat(n,\" fail count:\").concat(s)),p.setMoreMessage(\"\".concat(r)).end(),xe.l(\"\".concat(o,\" ok. \").concat(r)),Ka({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];p.setError(e,o,s).end()})),xe.e(\"\".concat(o,\" failed. error:\"),e),Ja(e)}))}},{key:\"_modifyMessageExtensions\",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=Dt(e.to)?S.CONV_TOPIC:e.conversationType,a=void 0;3!==o&&(a=this._getRequestExtensions(e,t));var r=null;switch(s){case S.CONV_C2C:r=this.getModule(Gn);break;case S.CONV_GROUP:r=this.getModule(Un);break;case S.CONV_TOPIC:r=this.getModule(wn);break;default:return Ja({code:da.CANNOT_FIND_MODULE})}return r.modifyMessageExtensions(e,a,o).then((function(t){var o=t.data,s=o.extensions,a=o.seq,r=[],i=0,u=0,c=[];return(s=jt(s)?[]:s).forEach((function(e){var t=e.errorCode,n=e.extension,o=n.key,s=n.value,a=n.seq;r.push({code:t,key:o,value:s}),0===t?i++:u++,c.push({key:o,value:s,seq:a})})),n._updateGlobalSequence(e.ID,a),c.length>0&&(n._updateLocalExtension(e.ID,c),c=null),{resultList:r,successCount:i,failureCount:u}})).catch((function(e){return Ja(e)}))}},{key:\"_getRequestExtensions\",value:function(e,t){var n=[];if(this._hasLocalExtension(e.ID)){var o=this._getLocalExtension(e.ID);return t.forEach((function(e){var t=e.key,s=e.value,a=0;o.has(t)&&(a=o.get(t).seq),n.push({key:t,value:s,seq:a})})),n}return t.forEach((function(e){var t=e.key,o=e.value;n.push({key:t,value:o,seq:0})})),n}},{key:\"_getMessageExtensions\",value:function(e,t){var n=this,o=\"\".concat(this._n,\"._getMessageExtensions\"),s=e.ID,a=e.to,r=null;switch(Dt(a)?S.CONV_TOPIC:e.conversationType){case S.CONV_C2C:r=this.getModule(Gn);break;case S.CONV_GROUP:r=this.getModule(Un);break;case S.CONV_TOPIC:r=this.getModule(wn);break;default:return Ja({code:da.CANNOT_FIND_MODULE})}return r.getMessageExtensions(e,t).then((function(t){var a=t.data,r=a.extensions,i=a.completeFlag,u=a.globalSequence,c=a.clearSequence;if(r=jt(r)?[]:r,xe.l(\"\".concat(o,\" ok. completeFlag:\").concat(i,\" globalSequence:\").concat(u,\" clearSequence:\").concat(c,\" count:\").concat(r.length)),n._updateLocalExtension(s,r),n._clearLocalExtension(s,c),n._updateGlobalSequence(s,u),1!==i){var l=r.slice(-1)[0].seq+1;return n._getMessageExtensions(e,l)}return n._getLocalExtensions(s)})).catch((function(e){return Ja(e)}))}},{key:\"_hasLocalExtension\",value:function(e){return this.messageExtensionMap.has(e)}},{key:\"_getLocalExtension\",value:function(e){return this.messageExtensionMap.get(e)}},{key:\"_updateLocalExtension\",value:function(e,t){this._hasLocalExtension(e)||this.messageExtensionMap.set(e,new Map);var n=this._getLocalExtension(e);t.forEach((function(e){var t=e.key,o=e.value,s=void 0===o?\"\":o,a=e.seq;n.set(t,{value:s,seq:a})}))}},{key:\"_clearLocalExtension\",value:function(e,t){if(!(t<=0)&&this._hasLocalExtension(e)){var n=this._getLocalExtension(e);n.forEach((function(e,o){e.seq<=t&&n.delete(o)}))}}},{key:\"_getLocalExtensions\",value:function(e){var t=[];this._hasLocalExtension(e)&&this._getLocalExtension(e).forEach((function(e,n){var o=e.value;jt(o)||t.push({key:n,value:o})}));return t}},{key:\"_getGlobalSequence\",value:function(e){return this.globalSeqMap.get(e)}},{key:\"_updateGlobalSequence\",value:function(e,t){this.globalSeqMap.set(e,t)}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this.messageExtensionMap.clear(),this.globalSeqMap.clear(),this.getMessageExtensionsMap.clear()}}]),n}(ro),mi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"ComboMessageModule\",s}return a(n,[{key:\"sendMessage\",value:function(e){var t=this,n=this._constructMessageInstance(e);if(null===n)return Ja({code:da.MESSAGE_SEND_FAIL});this._addSendMessageTotalCount(n);var o=Date.now();return this.getModule(Fn).setMessageRandom(n),this._sendComboMessage(n,e).then((function(e){var s=e.data,a=s.time,r=s.sequence,i=s.readReceiptCode;$e(i)&&0!==i&&(new ka(\"sendMessageWithReceipt\").setMessage(\"from:\".concat(n.from,\" to:\").concat(n.to,\" sequence:\").concat(r,\" readReceiptCode:\").concat(i)).end(),xe.w(\"\".concat(t._n,\".sendMessage readReceiptCode:\").concat(i,\" message:\").concat(t.getErrorMessage(i))));t._addSendMessageSuccessCount(n,o);var u=t.getModule(Fn);n.status=Qt.SUCCESS,n.time=a,n.conversationType===S.CONV_GROUP&&(n.sequence=r),u.appendToMessageList(n);var c=n;return!0===n._isExcludedFromLastMessage&&(c=\"\"),u.onMessageSent({conversationOptionsList:[{conversationID:n.conversationID,unreadCount:0,type:n.conversationType,subType:n.conversationSubType,lastMessage:c}]}),Ka({message:n})})).catch((function(e){return t._onSendMessageFailed(n,e)}))}},{key:\"_sendComboMessage\",value:function(e,t){var n=this._m.getModule(jn),o=\"\";return e.conversationType===S.CONV_C2C&&(o=\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SEND_MESSAGE)),e.conversationType===S.CONV_GROUP&&(o=\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SEND_GROUP_MESSAGE)),n.sendComboMessage({servcmd:o,data:t})}},{key:\"_constructMessageInstance\",value:function(e){var t=\"\".concat(this._n,\"._constructMessageInstance\"),n=null;try{var o=this.getMyUserID(),s={};if(s.senderTinyID=this.getMyTinyID(),s.currentUser=o,s.from=e.From_Account||o,e.GroupId?(s.conversationID=\"\".concat(S.CONV_GROUP).concat(e.GroupId),s.conversationType=S.CONV_GROUP,s.to=e.GroupId):e.To_Account&&(s.conversationID=\"\".concat(S.CONV_C2C).concat(e.To_Account),s.conversationType=S.CONV_C2C,s.to=e.To_Account),s.time=e.MsgTimeStamp||0,s.random=e.Random||e.MsgRandom||0,s.priority=e.MsgPriority,et(e.CloudCustomData)&&e.CloudCustomData.length>0&&(s.cloudCustomData=e.CloudCustomData),st(e.SendMsgControl)&&(s.messageControlInfo={},e.SendMsgControl.includes(\"NoUnread\")&&(s.messageControlInfo.excludedFromUnreadCount=1),e.SendMsgControl.includes(\"NoLastMsg\")&&(s.messageControlInfo.excludedFromLastMessage=1)),s.conversationType===S.CONV_GROUP&&st(e.To_Account)&&e.To_Account.length>0){var a=e.To_Account;e.To_Account.length>50&&(a=e.To_Account.slice(0,50),xe.w(\"\".concat(t,\" To_Account must be less than or equal to 50.\"))),s.receiverList=m(a),e.To_Account=m(a)}1!==e.IsNeedReadReceipt&&1!==e.NeedReadReceipt||(s.needReadReceipt=!0),1===e.SupportMessageExtension&&(s.isSupportExtension=!0),(n=new Ha(s)).status=Qt.UNSEND,e.MsgClientTime=n.clientTime,n.conversationType===S.CONV_C2C&&(e.MsgSeq=n.sequence);for(var r,i=e.MsgBody.length,u=0;u<i;u++)\"TIMTextElem\"===(r=e.MsgBody[u]).MsgType?n.setTextElement(r.MsgContent.Text):\"TIMCustomElem\"===r.MsgType?n.setCustomElement({data:r.MsgContent.Data||\"\",description:r.MsgContent.Desc||\"\",extension:r.MsgContent.Ext||\"\"}):\"TIMFaceElem\"===r.MsgType&&n.setFaceElement({index:r.MsgContent.Index,data:r.MsgContent.Data});var c=n.getElements();n.payload=c[0].content,n.type=c[0].type}catch(l){n=null,xe.e(\"\".concat(t,\" failed. error:\"),l)}return n}},{key:\"_onSendMessageFailed\",value:function(e,t){e.status=Qt.FAIL,this.getModule(Fn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new ka(\"sendMessage\");return n.setMessage(\"tjg_id:\".concat(this.generateTjgID(e),\" type:\").concat(e.type,\" from:\").concat(e.from,\" to:\").concat(e.to)),this.probeNetwork().then((function(e){var o=v(e,2),s=o[0],a=o[1];n.setError(t,s,a).end()})),xe.e(\"\".concat(this._n,\"._onSendMessageFailed error:\"),t),Ja(new Wa({code:t&&t.code?t.code:da.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:\"_getSendMessageSpecifiedKey\",value:function(e){if(e.conversationType===S.CONV_C2C)return ha;if(e.conversationType===S.CONV_GROUP){var t=this.getModule(Un).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Ct(n)?va:fa}}},{key:\"_addSendMessageTotalCount\",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule($n).addTotalCount(t)}},{key:\"_addSendMessageSuccessCount\",value:function(e,t){var n=Math.abs(Date.now()-t),o=this._getSendMessageSpecifiedKey(e);if(o){var s=this.getModule($n);s.addSuccessCount(o),s.addCost(o,n)}}},{key:\"_addSendMessageFailCountOnUser\",value:function(e,t){var n=t.code,o=void 0===n?-1:n,s=this.getModule($n),a=this._getSendMessageSpecifiedKey(e);hi(o)&&a&&s.addFailedCountOfUserSide(a)}}]),n}(ro),Mi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"PluginModule\",s.plugins={},s}return a(n,[{key:\"registerPlugin\",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new ka(\"registerPlugin\").setMessage(\"\".concat(Object.keys(e))).end()}},{key:\"getPlugin\",value:function(e){return this.plugins[e]}},{key:\"reset\",value:function(){}}]),n}(ro),yi=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"SyncUnreadMessageModule\",t._cookie=\"\",t._onlineSyncFlag=!1,t.getInnerEmitterInstance().on(Za,t._onLoginSuccess,_(t)),t}return a(s,[{key:\"_onLoginSuccess\",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:\"_startSync\",value:function(e){var n=this,o=e.cookie,s=e.syncFlag,a=e.isOnlineSync,r=\"\".concat(this._n,\"._startSync\");xe.l(\"\".concat(r,\" cookie:\").concat(o,\" syncFlag:\").concat(s,\" isOnlineSync:\").concat(a)),this.request({protocolName:po,requestData:{cookie:o,syncFlag:s,isOnlineSync:a}}).then((function(e){var o=e.data,s=o.cookie,a=o.syncFlag;n._cookie=s,jt(s)||(0===a||1===a?(n._dispatchUnreadMessage(t(t({},e.data),{},{isSyncingEnded:!1})),n._startSync({cookie:s,syncFlag:a,isOnlineSync:0})):2===a&&n._dispatchUnreadMessage(t(t({},e.data),{},{isSyncingEnded:!0})))})).catch((function(e){xe.e(\"\".concat(r,\" failed. error:\"),e)}))}},{key:\"_dispatchUnreadMessage\",value:function(e){e.eventArray&&this.getModule(jn).onMessage({head:{},body:{eventArray:e.eventArray,isInstantMessage:this._onlineSyncFlag,isSyncingEnded:e.isSyncingEnded}});this.getModule(Gn).onNewC2CMessage({dataList:e.messageList,isInstantMessage:!!e.isSyncingEnded&&this._onlineSyncFlag,C2CRemainingUnreadList:e.C2CRemainingUnreadList,C2CPairUnreadList:e.C2CPairUnreadList})}},{key:\"startOnlineSync\",value:function(){xe.l(\"\".concat(this._n,\".startOnlineSync\")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:\"startSyncOnReconnected\",value:function(){xe.l(\"\".concat(this._n,\".startSyncOnReconnected.\")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._onlineSyncFlag=!1,this._cookie=\"\"}}]),s}(ro),Ii={request:{toAccount:\"To_Account\",fromAccount:\"From_Account\",to:\"To_Account\",from:\"From_Account\",groupID:\"GroupId\",groupAtUserID:\"GroupAt_Account\",extension:\"Ext\",data:\"Data\",description:\"Desc\",elements:\"MsgBody\",sizeType:\"Type\",downloadFlag:\"Download_Flag\",thumbUUID:\"ThumbUUID\",videoUUID:\"VideoUUID\",remoteAudioUrl:\"Url\",remoteVideoUrl:\"VideoUrl\",videoUrl:\"\",imageUrl:\"URL\",fileUrl:\"Url\",uuid:\"UUID\",priority:\"MsgPriority\",receiverUserID:\"To_Account\",receiverGroupID:\"GroupId\",messageSender:\"SenderId\",messageReceiver:\"ReceiverId\",nick:\"From_AccountNick\",avatar:\"From_AccountHeadurl\",messageNumber:\"MsgNum\",pbDownloadKey:\"PbMsgKey\",downloadKey:\"JsonMsgKey\",applicationType:\"PendencyType\",userIDList:\"To_Account\",groupNameList:\"GroupName\",userID:\"To_Account\",groupAttributeList:\"GroupAttr\",mainSequence:\"AttrMainSeq\",avChatRoomKey:\"BytesKey\",attributeControl:\"AttrControl\",sequence:\"seq\",messageControlInfo:\"SendMsgControl\",updateSequence:\"UpdateSeq\",clientTime:\"MsgClientTime\",sequenceList:\"MsgSeqList\",topicID:\"TopicId\",customData:\"CustomString\",isSupportTopic:\"SupportTopic\",isWebUniapp:\"is_web_uniapp\",isSupportExtension:\"SupportMessageExtension\",messageSequence:\"MsgSeq\",messageKey:\"MsgKey\",startSequence:\"startSeq\",simplifiedMessage:\"DownsizeFlag\"},response:{MsgPriority:\"priority\",ThumbUUID:\"thumbUUID\",VideoUUID:\"videoUUID\",Download_Flag:\"downloadFlag\",GroupId:\"groupID\",Member_Account:\"userID\",MsgList:\"messageList\",SyncFlag:\"syncFlag\",To_Account:\"to\",From_Account:\"from\",MsgSeq:\"sequence\",MsgRandom:\"random\",MsgTime:\"time\",MsgTimeStamp:\"time\",MsgContent:\"content\",MsgBody:\"elements\",From_AccountNick:\"nick\",From_AccountHeadurl:\"avatar\",GroupWithdrawInfoArray:\"revokedInfos\",GroupReadInfoArray:\"groupMessageReadNotice\",LastReadMsgSeq:\"lastMessageSeq\",WithdrawC2cMsgNotify:\"c2cMessageRevokedNotify\",C2cWithdrawInfoArray:\"revokedInfos\",C2cReadedReceipt:\"c2cMessageReadReceipt\",ReadC2cMsgNotify:\"c2cMessageReadNotice\",LastReadTime:\"peerReadTime\",MsgRand:\"random\",MsgType:\"type\",MsgShow:\"messageShow\",NextMsgSeq:\"nextMessageSeq\",FaceUrl:\"avatar\",ProfileDataMod:\"profileModify\",Profile_Account:\"userID\",ValueBytes:\"value\",ValueNum:\"value\",NoticeSeq:\"noticeSequence\",NotifySeq:\"notifySequence\",MsgFrom_AccountExtraInfo:\"messageFromAccountExtraInformation\",Operator_Account:\"operatorID\",OpType:\"operationType\",ReportType:\"operationType\",UserId:\"userID\",User_Account:\"userID\",List_Account:\"userIDList\",MsgOperatorMemberExtraInfo:\"operatorInfo\",MsgMemberExtraInfo:\"memberInfoList\",ImageUrl:\"avatar\",NickName:\"nick\",MsgGroupNewInfo:\"newGroupProfile\",MsgAppDefinedData:\"groupCustomField\",Owner_Account:\"ownerID\",GroupFaceUrl:\"avatar\",GroupIntroduction:\"introduction\",GroupNotification:\"notification\",GroupApplyJoinOption:\"joinOption\",MsgKey:\"messageKey\",GroupInfo:\"groupProfile\",ShutupTime:\"muteTime\",Desc:\"description\",Ext:\"extension\",GroupAt_Account:\"groupAtUserID\",MsgNum:\"messageNumber\",PbMsgKey:\"pbDownloadKey\",JsonMsgKey:\"downloadKey\",MsgModifiedFlag:\"isModified\",PendencyItem:\"applicationItem\",PendencyType:\"applicationType\",AddTime:\"time\",AddSource:\"source\",AddWording:\"wording\",ProfileImImage:\"avatar\",PendencyAdd:\"friendApplicationAdded\",FrienPencydDel_Account:\"friendApplicationDeletedUserIDList\",Peer_Account:\"userID\",GroupAttr:\"groupAttributeList\",GroupAttrAry:\"groupAttributeList\",AttrMainSeq:\"mainSequence\",seq:\"sequence\",GroupAttrOption:\"groupAttributeOption\",BytesChangedKeys:\"changedKeyList\",GroupAttrInfo:\"groupAttributeList\",GroupAttrSeq:\"mainSequence\",PushChangedAttrValFlag:\"isWithChangedAttributeInfo\",SubKeySeq:\"sequence\",Val:\"value\",MsgGroupFromCardName:\"senderNameCard\",MsgGroupFromNickName:\"senderNick\",C2cNick:\"peerNick\",C2cImage:\"peerAvatar\",SendMsgControl:\"messageControlInfo\",NoLastMsg:\"excludedFromLastMessage\",NoUnread:\"excludedFromUnreadCount\",UpdateSeq:\"updateSequence\",MuteNotifications:\"muteFlag\",MsgClientTime:\"clientTime\",TinyId:\"tinyID\",GroupMsgReceiptList:\"readReceiptList\",ReadNum:\"readCount\",UnreadNum:\"unreadCount\",TopicId:\"topicID\",MillionGroupFlag:\"communityType\",SupportTopic:\"isSupportTopic\",MsgTopicNewInfo:\"newTopicInfo\",ShutupAll:\"muteAllMembers\",CustomString:\"customData\",TopicFaceUrl:\"avatar\",TopicIntroduction:\"introduction\",TopicNotification:\"notification\",TopicIdArray:\"topicIDList\",MsgVersion:\"messageVersion\",C2cMsgModNotifys:\"c2cMessageModified\",GroupMsgModNotifys:\"groupMessageModified\",ApplyJoinOption:\"joinOption\",MsgFlag:\"messageRemindType\",AtInfoList:\"groupAtInfoList\",AtFlagList:\"groupAtType\",AtMsgSeq:\"sequence\",BanDuration:\"duration\",BanDescription:\"reason\",NotVisible:\"invisible\",BytesTag:\"tag\",BytesValue:\"value\",RptBytesValue:\"value\",LatestSeq:\"globalSequence\",ClearSeq:\"clearSequence\",SupportMessageExtension:\"isSupportExtension\",ExtensionList:\"extensions\",GroupCounter:\"counterList\",Revoker_Account:\"revoker\",MsgExtensionNotify:\"messageExtensionNotify\",ExtensionC2cMsgInfo:\"messageInfo\",ExtensionGroupMsgInfo:\"messageInfo\",MsgOptType:\"operateType\",SetKVInfo:\"operateResultList\",DeleteKVInfo:\"operateResultList\",ClearKVInfo:\"operateResultList\",MsgKeyValue:\"extensions\",ClearMsgSeq:\"clearSequence\",MsgLastSeq:\"globalSequence\",InviteJoinOption:\"inviteOption\",MemberList_Account:\"inviteeList\",MsgMemberExtraInfoList:\"inviteeInfoList\",E:\"event\",GInf:\"groupProfile\",MCT:\"clientTime\",MR:\"random\",MP:\"priority\",MTS:\"time\",GId:\"groupID\",MS:\"sequence\",CCD:\"cloudCustomData\",F_Account:\"from\",F_Hd:\"avatar\",F_NN:\"nick\",GN:\"groupName\",GT:\"groupType\",IsSys:\"isSystemMessage\",OpInf:\"operatorInfo\",Img:\"avatar\",NN:\"nick\",OnlineInf:\"onlineMemberInfo\",ET:\"expireTime\",Num:\"onlineMemberNum\",Opt:\"operationType\",O_Account:\"operatorID\",RT:\"operationType\",UDF:\"userDefinedField\",L_Account:\"userIDList\"},ignoreKeyWord:[\"C2C\",\"ID\",\"USP\"]};function Ci(e,t){if(\"string\"!=typeof e&&!Array.isArray(e))throw new TypeError(\"Expected the input to be `string | string[]`\");t=Object.assign({pascalCase:!1},t);var n;return 0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join(\"-\"):e.trim()).length?\"\":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Ti(e)),e=e.replace(/^[_.\\- ]+/,\"\").toLowerCase().replace(/[_.\\- ]+(\\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\\d+(\\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}var Ti=function(e){for(var t=!1,n=!1,o=!1,s=0;s<e.length;s++){var a=e[s];t&&/[a-zA-Z]/.test(a)&&a.toUpperCase()===a?(e=e.slice(0,s)+\"-\"+e.slice(s),t=!1,o=n,n=!0,s++):n&&o&&/[a-zA-Z]/.test(a)&&a.toLowerCase()===a?(e=e.slice(0,s-1)+\"-\"+e.slice(s-1),o=n,n=!1,t=!0):(t=a.toLowerCase()===a&&a.toUpperCase()!==a,o=n,n=a.toUpperCase()===a&&a.toLowerCase()!==a)}return e};function Di(e,t){var n=0;return function e(t,o){if(++n>100)return n--,t;if(st(t)){var s=t.map((function(t){return nt(t)?e(t,o):t}));return n--,s}if(nt(t)){var a=(r=t,i=function(e,t){if(!lt(t))return!1;if((s=t)!==Ci(s))for(var n=0;n<Ii.ignoreKeyWord.length&&!t.includes(Ii.ignoreKeyWord[n]);n++);var s;return at(o[t])?function(e){return\"OPPOChannelID\"===e?e:e[0].toUpperCase()+Ci(e).slice(1)}(t):o[t]},u=Object.create(null),Object.keys(r).forEach((function(e){var t=i(r[e],e);t&&(u[t]=r[e])})),u);return a=Lt(a,(function(t,n){return st(t)||nt(t)?e(t,o):t})),n--,a}var r,i,u}(e,t)}function Ei(e,t){if(st(e))return e.map((function(e){return nt(e)?Ei(e,t):e}));if(nt(e)){var n=(o=e,s=function(e,n){return at(t[n])?Ci(n):t[n]},a={},Object.keys(o).forEach((function(e){a[s(o[e],e)]=o[e]})),a);return n=Lt(n,(function(e){return st(e)||nt(e)?Ei(e,t):e}))}var o,s,a}var Si=String.fromCharCode,ki=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return Si(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?Si(192|t>>>6,128|63&t):Si(224|t>>>12,128|t>>>6&63,128|63&t)},Li=function(e){for(var t=void 0===e?\"\":(\"\"+e).replace(/[\\x80-\\uD7ff\\uDC00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?/g,ki),n=0|t.length,o=new Uint8Array(n),s=0;s<n;s=s+1|0)o[s]=0|t.charCodeAt(s);return o},Ai=function(e){for(var t=new Uint8Array(e),n=\"\",o=0,s=t.length;o<s;){var a=t[o],r=0,i=0;if(a<=127?(r=0,i=255&a):a<=223?(r=1,i=31&a):a<=239?(r=2,i=15&a):a<=244&&(r=3,i=7&a),s-o-r>0)for(var u=0;u<r;)i=i<<6|63&(a=t[o+u+1]),u+=1;else i=65533,r=s-o;n+=String.fromCodePoint(i),o+=r+1}return n},Ri=function(){function e(t){o(this,e),this._handler=t;var n=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=_t(),this._handler.getIsWorkerEnabled()){var s=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) {  if (event.data.cmd === \"start\") {    const url = event.data.url;    _socket = new WebSocket(url);    _socket.binaryType = \"arraybuffer\";    _socket.onopen = function() {      postMessage({ callback: \"onOpen\" });    };    _socket.onclose = function(e) {      postMessage({ callback: \"onOpen\", e: { code: e.code, reason: e.reason } });    };    _socket.onmessage = function(e) {      postMessage({ callback: \"onMessage\", data: e.data });    };    _socket.onerror = function(e) {      postMessage({ callback: \"onError\", e: { isTrusted: \"true\" } });    };  } else if (event.data.cmd === \"sendMessage\") {    if (_socket !== null) {      _socket.send(event.data.data);    }  } else if (event.data.cmd === \"stop\") {    if (_socket !== null) {      _socket.close(event.data.code);      _socket = null;    }  }};'],{type:\"application/javascript; charset=utf-8\"}));this._workerSocket=new Worker(s);var a=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,o=t.e;\"onOpen\"===n?a._onOpen():\"onClose\"===n?a._onClose(o):\"onError\"===n?a._onError(o):\"onMessage\"===n&&a._onMessage(e.data)},this._workerSocket.postMessage({cmd:\"start\",id:this._id,url:n})}else se?ee?(re.connectSocket({url:n,header:{\"content-type\":\"application/json\"}}),re.onSocketClose(this._onClose.bind(this)),re.onSocketOpen(this._onOpen.bind(this)),re.onSocketMessage(this._onMessage.bind(this)),re.onSocketError(this._onError.bind(this))):(this._socket=re.connectSocket({url:n,header:{\"content-type\":\"application/json\"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):ae&&(this._socket=new WebSocket(n),this._socket.binaryType=\"arraybuffer\",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return a(e,[{key:\"getID\",value:function(){return this._id}},{key:\"_onOpen\",value:function(){this._handler.onOpen({id:this._id})}},{key:\"_onClose\",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:\"_onMessage\",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?Ai(e.data):e.data})}},{key:\"_onError\",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:\"setIsWorkerEnabled\",value:function(e){this._isWorkerEnabled=!0}},{key:\"close\",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:\"stop\",code:e}),this._workerSocket.terminate(),this._workerSocket=null),ee)return re.offSocketClose(),re.offSocketMessage(),re.offSocketOpen(),re.offSocketError(),void re.closeSocket();this._socket&&(se?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):ae&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),$?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:\"send\",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:\"sendMessage\",data:this._canIUseBinaryFrame?Li(e.data).buffer:e.data});else{if(ee)return void re.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(se?this._socket.send({data:this._canIUseBinaryFrame?Li(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):ae&&this._socket.send(this._canIUseBinaryFrame?Li(e.data).buffer:e.data))}}}]),e}(),Ni=4e3,Oi=4001,Gi=[\"keyMap\"],Ui=[\"keyMap\"],Pi=\"connected\",bi=\"connecting\",wi=\"disconnected\",Fi=function(){function e(t){o(this,e),this._channelModule=t,this._n=\"SocketHandler\",this._promiseMap=new Map,this._readyState=wi,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=_t(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url=\"\",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return a(e,[{key:\"_setWebsocketHost\",value:function(){var e=this._channelModule.getModule(qn),t=G;this._channelModule.isOversea()&&(t=U),e.isSingaporeSite()?t=P:e.isKoreaSite()?t=b:e.isGermanySite()?t=w:e.isIndiaSite()?t=F:e.isJapanSite()?t=q:e.isUSASite()&&(t=x),V.HOST.setCurrent(t)}},{key:\"_initConnection\",value:function(){at(V.HOST.CURRENT.BACKUP)||\"\"===this._url?this._url=V.HOST.CURRENT.DEFAULT:this._url===V.HOST.CURRENT.DEFAULT?this._url=V.HOST.CURRENT.BACKUP:this._url===V.HOST.CURRENT.BACKUP?this._url=this._canIUseAnyCast()?V.HOST.CURRENT.ANYCAST:V.HOST.CURRENT.DEFAULT:this._url===V.HOST.CURRENT.ANYCAST&&(V.HOST.CURRENT.ANYCAST=\"\",this._url=V.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(qn).getProxyServer();jt(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:\"_canIUseAnyCast\",value:function(){return ae&&V.HOST.CURRENT.ANYCAST}},{key:\"onCheckTimer\",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:\"_checkPromiseMap\",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var o=t.reject,s=t.timestamp,a=15e3;-1!==n.indexOf(io)&&(a=9e4),Date.now()-s>=a&&(xe.l(\"\".concat(e._n,\"._checkPromiseMap request timeout, delete requestID:\").concat(n)),e._promiseMap.delete(n),o(new Wa({code:da.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(n))}))}},{key:\"onOpen\",value:function(e){if(\"\"!==this._readyState){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;xe.l(\"\".concat(this._n,\"._onOpen cost \").concat(n,\" ms. socketID:\").concat(t)),new ka(\"wsOnOpen\").setMessage(n).setCostTime(n).setMoreMessage(\"socketID:\".concat(t)).end(),e.id===this._socketID&&(this._readyState=Pi,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}}},{key:\"onClose\",value:function(e){var t=new ka(\"wsOnClose\"),n=e.id,o=e.e,s=\"sourceSocketID:\".concat(n,\" currentSocketID:\").concat(this._socketID,\" code:\").concat(o.code,\" reason:\").concat(o.reason),a=0;0!==this._onOpenTs&&(a=Date.now()-this._onOpenTs),t.setMessage(a).setCostTime(a).setMoreMessage(s).setCode(o.code).end(),xe.l(\"\".concat(this._n,\"._onClose \").concat(s,\" onlineTime:\").concat(a)),n===this._socketID&&(this._readyState=wi,a<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:\"onError\",value:function(e){var t=e.id,n=e.e,o=\"sourceSocketID:\".concat(t,\" currentSocketID:\").concat(this._socketID);new ka(\"wsOnError\").setMessage(n.errMsg||dt(n)).setMoreMessage(o).setLevel(\"error\").end(),xe.w(\"\".concat(this._n,\"._onError\"),n,o),t===this._socketID&&(this._readyState=\"\",this._channelModule.onError())}},{key:\"onMessage\",value:function(e){var t;try{t=JSON.parse(e.data)}catch(c){new ka(\"jsonParseError\").setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),o=t.body;if(!this._isTRTCCommand(n)){var s=Pt(t.head);o=Ei(t.body,this._getResponseKeyMap(s))}if(xe.d(\"\".concat(this._n,\".onMessage ret:\").concat(JSON.stringify(o),\" requestID:\").concat(n,\" has:\").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var a=this._promiseMap.get(n),r=a.resolve,i=a.reject,u=a.timestamp;return this._promiseMap.delete(n),this._calcRTT(u),void(o.errorCode&&0!==o.errorCode?(this._channelModule.onErrorCodeNotZero(o),i(new Wa({code:o.errorCode,message:o.errorInfo||\"\",data:n.includes(Lo)||n.includes(ms)?{elements:o.elements,messageVersion:o.messageVersion,cloudCustomData:o.cloudCustomData}:void 0}))):r(Ka(o)))}this._channelModule.onMessage({head:t.head,body:o})}}},{key:\"_isTRTCCommand\",value:function(e){for(var t=this._channelModule.getModule(oo).getCommandList(),n=!1,o=0;o<t.length;o++)if(e.startsWith(t[o])){n=!0;break}return n}},{key:\"_calcRTT\",value:function(e){var t=Date.now()-e;this._channelModule.getModule($n).addRTT(t)}},{key:\"_connect\",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Ri(this),this._socketID=this._socket.getID(),this._readyState=bi,xe.l(\"\".concat(this._n,\"._connect isWorkerEnabled:\").concat(this.getIsWorkerEnabled(),\" socketID:\").concat(this._socketID,\" url:\").concat(this.getURL())),new ka(\"wsConnect\").setMessage(\"socketID:\".concat(this._socketID,\" url:\").concat(this.getURL())).end()}},{key:\"getURL\",value:function(){this._channelModule.isDevMode()&&(this._canIUseBinaryFrame=!1);var e=Nt();(ee||X&&\"windows\"===e||ne)&&(this._canIUseBinaryFrame=!1);var t=-1;\"ios\"===e?t=ve||-1:\"android\"===e&&(t=Me||-1);var n=this._channelModule.getModule(qn),o=this._channelModule.getPlatform(),s=n.getSDKAppID(),a=n.getInstanceID(),r=\"sdkappid=\".concat(s,\"&instanceid=\").concat(a,\"&random=\").concat(this._getRandom(),\"&platform=\").concat(o,\"&host=\").concat(e,\"&version=\").concat(t);return this._canIUseBinaryFrame?\"\".concat(this._url,\"/binfo?\").concat(r):\"\".concat(this._url,\"/info?\").concat(r)}},{key:\"_closeConnection\",value:function(e){xe.l(\"\".concat(this._n,\"._closeConnection socketID:\").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=wi)}},{key:\"_resend\",value:function(){var e=this;if(xe.l(\"\".concat(this._n,\"._resend reConnectFlag:\").concat(this._reConnectFlag),\"promiseMap.size:\".concat(this._promiseMap.size,\" simpleRequestMap.size:\").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var o=t.uplinkData,s=t.resolve,a=t.reject;e._promiseMap.set(n,{resolve:s,reject:a,timestamp:Date.now(),uplinkData:o}),e._execute(n,o)})),this._simpleRequestMap.size>0){var t,n=D(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var o=v(t.value,2),s=o[0],a=o[1];this._execute(s,a)}}catch(r){n.e(r)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:\"send\",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=g(e,Gi),o=this._getRequestIDFromHead(e.head),s=JSON.stringify(n);return new Promise((function(e,a){(t._promiseMap.set(o,{resolve:e,reject:a,timestamp:Date.now(),uplinkData:s}),xe.d(\"\".concat(t._n,\".send uplinkData:\").concat(JSON.stringify(n),\" requestID:\").concat(o,\" readyState:\").concat(t._readyState)),t._readyState!==Pi)?t._reConnect():(t._execute(o,s),t._channelModule.getModule($n).addRequestCount())}))}},{key:\"simplySend\",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=g(e,Ui),n=this._getRequestIDFromHead(e.head),o=JSON.stringify(t);this._readyState!==Pi?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,o):xe.l(\"\".concat(this._n,\".simplySend. simpleRequestMap is full, drop request!\")),this._reConnect()):this._execute(n,o)}},{key:\"_execute\",value:function(e,t){this._socket.send({data:t,fail:se?this._onSendFail.bind(this):void 0,requestID:e})}},{key:\"_onSendFail\",value:function(e){xe.l(\"\".concat(this._n,\"._onSendFail requestID:\").concat(e))}},{key:\"_getSequence\",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=_t()),e}},{key:\"_getRequestIDFromHead\",value:function(e){return e.servcmd+e.seq}},{key:\"_getResponseKeyMap\",value:function(e){var n=this._channelModule.getKeyMap(e);return t(t({},Ii.response),n.response)}},{key:\"_reConnect\",value:function(){this._readyState!==Pi&&this._readyState!==bi&&this.forcedReconnect()}},{key:\"forcedReconnect\",value:function(){var e=this,t=\"\".concat(this._n,\".forcedReconnect\");xe.l(\"\".concat(t,\" count:\").concat(this._reConnectCount,\" readyState:\").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(Oi),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(n){var o=v(n,2),s=o[0];o[1],s?(xe.w(\"\".concat(t,\" disconnected from wsserver but network is ok, continue...\")),e._closeConnection(Oi),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:\"getReconnectFlag\",value:function(){return this._reConnectFlag}},{key:\"_setNextPingTs\",value:function(){this._nextPingTs=Date.now()+1e4}},{key:\"getNextPingTs\",value:function(){return this._nextPingTs}},{key:\"isConnected\",value:function(){return this._readyState===Pi}},{key:\"canIUseBinaryFrame\",value:function(){return this._canIUseBinaryFrame}},{key:\"setIsWorkerEnabled\",value:function(e){xe.l(\"\".concat(this._n,\".setIsWorkerEnabled flag:\").concat(e)),this._isWorkerEnabled=e}},{key:\"getIsWorkerEnabled\",value:function(){return this._isWorkerEnabled&&Se}},{key:\"_getRandom\",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:\"_resetRandom\",value:function(){this._random=0}},{key:\"close\",value:function(){xe.l(\"\".concat(this._n,\".close\")),this._closeConnection(Ni),this._promiseMap.clear(),this._startSequence=_t(),this._readyState=wi,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url=\"\",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),qi=function(e){i(n,e);var t=f(n);function n(e){var s;if(o(this,n),(s=t.call(this,e))._n=\"ChannelModule\",s._socketHandler=new Fi(_(s)),s._probing=!1,s._isAppShowing=!0,s._previousState=S.NET_STATE_CONNECTED,se&&\"function\"==typeof re.onAppShow&&\"function\"==typeof re.onAppHide){var a=s._onAppHide.bind(_(s)),r=s._onAppShow.bind(_(s));\"function\"==typeof re.offAppHide&&re.offAppHide(a),\"function\"==typeof re.offAppShow&&re.offAppShow(r),re.onAppHide(a),re.onAppShow(r)}return s._timerForNotLoggedIn=-1,s._timerForNotLoggedIn=setInterval(s.onCheckTimer.bind(_(s)),1e3),s._fatalErrorFlag=!1,s}return a(n,[{key:\"onCheckTimer\",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:\"onErrorCodeNotZero\",value:function(e){this.getModule(jn).onErrorCodeNotZero(e)}},{key:\"onMessage\",value:function(e){this.getModule(jn).onMessage(e)}},{key:\"send\",value:function(e){return this._socketHandler?this._previousState!==S.NET_STATE_CONNECTED&&e.head.servcmd.includes(xs)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:\"_sendLogViaHTTP\",value:function(e){var t=V.HOST.CURRENT.STAT;return new Promise((function(n,o){var s=\"\".concat(t,\"/v4/imopenstat/tim_web_report_v2?sdkappid=\").concat(e.head.sdkappid,\"&reqtime=\").concat(Date.now()),a=JSON.stringify(e.body),r=\"application/x-www-form-urlencoded;charset=UTF-8\";if(se)re.request({url:s,data:a,method:\"POST\",timeout:3e3,header:{\"content-type\":r},success:function(){n()},fail:function(){o(new Wa({code:da.NETWORK_ERROR}))}});else{var i=new XMLHttpRequest,u=setTimeout((function(){i.abort(),o(new Wa({code:da.NETWORK_TIMEOUT}))}),3e3);i.onreadystatechange=function(){4===i.readyState&&(clearTimeout(u),200===i.status||304===i.status?n():o(new Wa({code:da.NETWORK_ERROR})))},i.open(\"POST\",s,!0),i.setRequestHeader(\"Content-type\",r),i.send(a)}}))}},{key:\"simplySend\",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:\"onOpen\",value:function(){this._ping()}},{key:\"onClose\",value:function(){this._socketHandler&&(this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED));this.reConnect()}},{key:\"onError\",value:function(){se&&!ne&&this.outputWarning(\"DomainNameInMP\"),this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:\"getKeyMap\",value:function(e){return this.getModule(jn).getKeyMap(e)}},{key:\"_onAppHide\",value:function(){this._isAppShowing=!1}},{key:\"_onAppShow\",value:function(){this._isAppShowing=!0}},{key:\"onRequestTimeout\",value:function(e){}},{key:\"onReconnected\",value:function(){xe.l(\"\".concat(this._n,\".onReconnected\")),this._m.restartTimer(),this.getModule(jn).onReconnected(),this._emitNetStateChangeEvent(S.NET_STATE_CONNECTED)}},{key:\"onReconnectFailed\",value:function(){xe.l(\"\".concat(this._n,\".onReconnectFailed\")),this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:\"setIsWorkerEnabled\",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:\"offline\",value:function(){this._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}},{key:\"reConnect\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n=\"forcedFlag:\".concat(e,\" fatalErrorFlag:\").concat(this._fatalErrorFlag,\" previousState:\").concat(this._previousState,\" reconnectFlag:\").concat(t);if(xe.l(\"\".concat(this._n,\".reConnect \").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===S.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(S.NET_STATE_CONNECTING)}}},{key:\"_emitNetStateChangeEvent\",value:function(e){this._previousState!==e&&(xe.l(\"\".concat(this._n,\"._emitNetStateChangeEvent from \").concat(this._previousState,\" to \").concat(e)),this._previousState=e,this.emitOuterEvent(E.NET_STATE_CHANGE,{state:e}))}},{key:\"_ping\",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(jn).getProtocolData({protocolName:Vs});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(xe.w(\"\".concat(e._n,\"._ping failed. error:\"),t),e._probing=!1,t&&60002===t.code)return new ka(\"error\").setMessage(\"code:\".concat(t.code,\" message:\").concat(t.message)).setNetworkType(e.getModule(Bn).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];xe.l(\"\".concat(e._n,\"._ping failed. probe network, isAppShowing:\").concat(e._isAppShowing,\" online:\").concat(o,\" networkType:\").concat(s)),o?e.reConnect():e._emitNetStateChangeEvent(S.NET_STATE_DISCONNECTED)}))}))}}},{key:\"_checkNextPing\",value:function(){this._socketHandler&&(this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping())}},{key:\"dealloc\",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:\"onRestApiKickedOut\",value:function(){this._socketHandler&&(this._socketHandler.close(),this.reConnect(!0))}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._previousState=S.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),n}(ro),xi=[\"a2\",\"tinyid\"],Vi=[\"a2\",\"tinyid\"],Bi=function(){function e(t){o(this,e),this._n=\"ProtocolHandler\",this._sessionModule=t,this._configMap=new Map,this._fillConfigMap()}return a(e,[{key:\"_fillConfigMap\",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),n=this._sessionModule.genCosSpecifiedHead(),o=this._sessionModule.genSSOReportHead(),s=this._sessionModule.isIntl();this._configMap.set(io,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.LOGIN)}),body:{state:\"Online\",isWebUniapp:0,deviceBrand:0},keyMap:{request:{deviceBrand:\"InstType\"},response:{InstId:\"instanceID\",HelloInterval:\"helloInterval\"}}}}(e)),this._configMap.set(uo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:\"wslogout_type\"}}}}(e)),this._configMap.set(co,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.HELLO)}),body:{isWebUniapp:0},keyMap:{response:{NewInstInfo:\"newInstanceInfo\"}}}}(e)),this._configMap.set(lo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.STAT_SERVICE,\".\").concat(V.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(ws,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_COS_SIGN,\".\").concat(V.CMD.COS_SIGN)}),body:{cmd:\"open_im_cos_svc\",subCmd:\"get_cos_token\",duration:300,version:2},keyMap:{request:{userSig:\"usersig\",subCmd:\"sub_cmd\",cmd:\"cmd\",duration:\"duration\",version:\"version\"},response:{expired_time:\"expiredTime\",bucket_name:\"bucketName\",session_token:\"sessionToken\",tmp_secret_id:\"secretId\",tmp_secret_key:\"secretKey\"}}}}(n)),this._configMap.set(Fs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.CUSTOM_UPLOAD,\".\").concat(V.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:\"usersig\",fileType:\"file_type\",fileName:\"file_name\",uploadMethod:\"upload_method\"},response:{expired_time:\"expiredTime\",request_id:\"requestId\",head_url:\"headUrl\",upload_url:\"uploadUrl\",download_url:\"downloadUrl\",ci_url:\"ciUrl\",snapshot_url:\"requestSnapshotUrl\"}}}}(n)),this._configMap.set(qs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.CUSTOM_UPLOAD,\".\").concat(V.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:\"version\",platform:\"platform\",coverName:\"cover_name\",requestSnapshotUrl:\"snapshot_url\"},response:{error_code:\"errorCode\",error_msg:\"errorInfo\",download_url:\"snapshotUrl\"}}}}(n)),this._configMap.set(Xs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_CONFIG_MANAGER,\".\").concat(V.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:\"uint32_sdkappid\"},response:{int32_error_code:\"errorCode\",str_error_message:\"errorMessage\",str_purchase_bits:\"purchaseBits\",uint32_expired_time:\"expiredTime\"}}}}(e)),this._configMap.set(Qs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_CONFIG_MANAGER,\".\").concat(V.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:\"errorCode\",str_error_message:\"errorMessage\",str_purchase_bits:\"purchaseBits\",uint32_expired_time:\"expiredTime\"}}}}(e)),this._configMap.set(zs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_CONFIG_MANAGER,\".\").concat(V.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:\"uint32_sdkappid\",version:\"uint64_version\"},response:{int32_error_code:\"errorCode\",str_error_message:\"errorMessage\",str_json_config:\"cloudControlConfig\",uint32_expired_time:\"expiredTime\",uint32_sdkappid:\"SDKAppID\",uint64_version:\"version\"}}}}(e)),this._configMap.set(Js,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_CONFIG_MANAGER,\".\").concat(V.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:\"errorCode\",str_error_message:\"errorMessage\",str_json_config:\"cloudControlConfig\",uint32_expired_time:\"expiredTime\",uint32_sdkappid:\"SDKAppID\",uint64_version:\"version\"}}}}(e)),this._configMap.set(Zs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OVERLOAD_PUSH,\".\").concat(V.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:\"overloadCommand\",DelaySecs:\"waitingTime\"}}}}(e)),this._configMap.set(po,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.GET_MESSAGES)}),body:{cookie:\"\",syncFlag:0,needAbstract:1,isOnlineSync:0,needSignaling:1},keyMap:{request:{fromAccount:\"From_Account\",toAccount:\"To_Account\",from:\"From_Account\",to:\"To_Account\",time:\"MsgTimeStamp\",sequence:\"MsgSeq\",random:\"MsgRandom\",elements:\"MsgBody\"},response:{MsgList:\"messageList\",SyncFlag:\"syncFlag\",To_Account:\"to\",From_Account:\"from\",ClientSeq:\"clientSequence\",MsgSeq:\"sequence\",NoticeSeq:\"noticeSequence\",NotifySeq:\"notifySequence\",MsgRandom:\"random\",MsgTimeStamp:\"time\",MsgContent:\"content\",ToGroupId:\"to\",MsgKey:\"messageKey\",GroupTips:\"groupTips\",MsgBody:\"elements\",MsgType:\"type\",C2CRemainingUnreadCount:\"C2CRemainingUnreadList\",C2CPairUnreadCount:\"C2CPairUnreadList\"}}}}(e)),s||(this._configMap.set(go,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(la,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_MSG_AUDIT_MGR,\".\").concat(V.CMD.GET_RPOFANITY_LIST)}),body:{version:0,deviceID:\"\",startIndex:void 0},keyMap:{request:{version:\"uint64_version\",deviceID:\"str_device_id\",startIndex:\"uint64_start_index\"},response:{msg_cmd_error_code:\"errorInfo\",str_err_msg:\"errorMessage\",uint32_code:\"errorCode\",msg_scene_ctl_config:\"filterConfig\",uint64_c2c_custom_msg_flag:\"c2c_custom_message\",uint64_c2c_text_msg_flag:\"c2c_text_message\",uint64_group_custom_msg_flag:\"group_custom_message\",uint64_group_text_msg_flag:\"group_text_message\",uint64_group_info_flag:\"group_profile\",uint64_group_member_info_flag:\"group_member_profile\",uint64_relation_chain_flag:\"sns\",uint64_user_info_flag:\"user_profile\",rpt_msg_dirty_word:\"lexicon\",str_dirty_word:\"profanity\",str_replaced_content:\"replacement\",uint64_filter_type:\"filterType\",uint64_id:\"id\",uint64_word_type:\"profanityType\",uint64_complete_flag:\"completeFlag\",uint64_next_start_index:\"nextStartIndex\",uint64_version:\"version\",uint64_expired_time:\"expiredTime\"}}}}(e))),this._configMap.set(_o,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SEND_MESSAGE)}),body:{fromAccount:\"\",toAccount:\"\",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:\"\",avatar:\"\",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:\"\",desc:\"\",ext:\"\",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:\"\"}},messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,isSupportExtension:0},keyMap:{request:{fromAccount:\"From_Account\",toAccount:\"To_Account\",msgTimeStamp:\"MsgTimeStamp\",msgSeq:\"MsgSeq\",msgRandom:\"MsgRandom\",msgBody:\"MsgBody\",count:\"MaxCnt\",lastMessageTime:\"LastMsgTime\",messageKey:\"MsgKey\",peerAccount:\"Peer_Account\",data:\"Data\",description:\"Desc\",extension:\"Ext\",type:\"MsgType\",content:\"MsgContent\",sizeType:\"Type\",uuid:\"UUID\",url:\"\",imageUrl:\"URL\",fileUrl:\"Url\",remoteAudioUrl:\"Url\",remoteVideoUrl:\"VideoUrl\",thumbUUID:\"ThumbUUID\",videoUUID:\"VideoUUID\",videoUrl:\"\",downloadFlag:\"Download_Flag\",nick:\"From_AccountNick\",avatar:\"From_AccountHeadurl\",from:\"From_Account\",time:\"MsgTimeStamp\",messageRandom:\"MsgRandom\",messageSequence:\"MsgSeq\",elements:\"MsgBody\",clientSequence:\"ClientSeq\",payload:\"MsgContent\",messageList:\"MsgList\",messageNumber:\"MsgNum\",abstractList:\"AbstractList\",messageBody:\"MsgBody\",needReadReceipt:\"IsNeedReadReceipt\"}}}}(e)),this._configMap.set(ho,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:\"\",groupID:\"\",random:0,clientSequence:0,priority:\"\",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:\"\",desc:\"\",ext:\"\",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:\"\"}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,topicID:void 0,receiverList:void 0,isSupportExtension:0},keyMap:{request:{to:\"GroupId\",extension:\"Ext\",data:\"Data\",description:\"Desc\",random:\"Random\",sequence:\"ReqMsgSeq\",count:\"ReqMsgNumber\",type:\"MsgType\",priority:\"MsgPriority\",content:\"MsgContent\",elements:\"MsgBody\",sizeType:\"Type\",uuid:\"UUID\",url:\"\",imageUrl:\"URL\",fileUrl:\"Url\",remoteAudioUrl:\"Url\",remoteVideoUrl:\"VideoUrl\",thumbUUID:\"ThumbUUID\",videoUUID:\"VideoUUID\",videoUrl:\"\",downloadFlag:\"Download_Flag\",clientSequence:\"ClientSeq\",from:\"From_Account\",time:\"MsgTimeStamp\",messageRandom:\"MsgRandom\",messageSequence:\"MsgSeq\",payload:\"MsgContent\",messageList:\"MsgList\",messageNumber:\"MsgNum\",abstractList:\"AbstractList\",messageBody:\"MsgBody\",needReadReceipt:\"NeedReadReceipt\",receiverList:\"To_Account\"},response:{MsgTime:\"time\",MsgSeq:\"sequence\"}}}}(e)),this._configMap.set(Io,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:\"\",toAccount:\"\",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:\"MsgInfo\",msgTimeStamp:\"MsgTimeStamp\",msgSeq:\"MsgSeq\",msgRandom:\"MsgRandom\"}}}}(e)),this._configMap.set(ss,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:\"\",msgSeqList:void 0,topicID:\"\"},keyMap:{request:{msgSeqList:\"MsgSeqList\",msgSeq:\"MsgSeq\"}}}}(e)),this._configMap.set(Eo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:\"\",count:15,lastMessageTime:0,messageKey:\"\",withRecalledMessage:1,direction:0},keyMap:{request:{messageKey:\"MsgKey\",peerAccount:\"Peer_Account\",count:\"MaxCnt\",lastMessageTime:\"LastMsgTime\",withRecalledMessage:\"WithRecalledMsg\",direction:\"GetDirection\"},response:{LastMsgTime:\"lastMessageTime\",IsNeedReadReceipt:\"needReadReceipt\",IsPeerRead:\"readReceiptSentByPeer\"}}}}(e)),this._configMap.set(Lo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.MODIFY_C2C_MESSAGE)}),body:{from:\"\",to:\"\",sequence:0,random:0,time:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:\"MsgSeq\",random:\"MsgRandom\",time:\"MsgTime\",version:\"MsgVersion\",type:\"MsgType\",content:\"MsgContent\"}}}}(e)),this._configMap.set(is,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:\"\",count:15,sequence:\"\",topicID:void 0},keyMap:{request:{sequence:\"ReqMsgSeq\",count:\"ReqMsgNumber\",withRecalledMessage:\"WithRecalledMsg\"},response:{Random:\"random\",MsgTime:\"time\",MsgSeq:\"sequence\",ReqMsgSeq:\"sequence\",RspMsgList:\"messageList\",IsPlaceMsg:\"isPlaceMessage\",IsSystemMsg:\"isSystemMessage\",ToGroupId:\"to\",EnumFrom_AccountType:\"fromAccountType\",EnumTo_AccountType:\"toAccountType\",GroupCode:\"groupCode\",MsgPriority:\"priority\",MsgBody:\"elements\",MsgType:\"type\",MsgContent:\"content\",IsFinished:\"complete\",Download_Flag:\"downloadFlag\",ClientSeq:\"clientSequence\",ThumbUUID:\"thumbUUID\",VideoUUID:\"videoUUID\",ToTopicId:\"topicID\",InvisibleMsgSeq:\"invisibleSequenceList\"}}}}(e)),this._configMap.set(Co,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:\"LastedMsgTime\"}}}}(e)),this._configMap.set(To,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:\"Peer_Account\",muteFlag:\"Mute_Notifications\"}}}}(e)),this._configMap.set(Do,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:\"muteFlagList\"}}}}(e)),this._configMap.set(as,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0,topicID:void 0},keyMap:{request:{messageReadSeq:\"MsgReadedSeq\"}}}}(e)),this._configMap.set(rs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:\"C2CReadAllMsg\",groupMessageReadInfoList:\"GroupReadInfo\",messageSequence:\"MsgSeq\"},response:{C2CReadAllMsg:\"readAllC2CMessage\",GroupReadInfoArray:\"groupMessageReadInfoList\"}}}}(e)),this._configMap.set(ko,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:\"\",to:\"\",keyList:void 0},keyMap:{request:{keyList:\"MsgKeyList\"}}}}(e)),this._configMap.set(vs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:\"\",deleter:\"\",keyList:void 0,topicID:void 0},keyMap:{request:{deleter:\"Deleter_Account\",keyList:\"Seqs\"}}}}(e)),this._configMap.set(pa,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_TRANSLATE,\".\").concat(V.CMD.TRANSLATE_TEXT)}),body:{sourceTextList:void 0,SDKAppID:0,from:0,source:\"\",target:\"\"},keyMap:{request:{sourceTextList:\"SourceText\",SDKAppID:\"SdkAppId\",from:\"FromAccount\"},response:{TargetText:\"translatedTextList\",RequestId:\"requestID\",CmdErrorCode:\"error\",ErrorCode:\"code\",ErrorInfo:\"message\"}}}}(e)),this._configMap.set(ms,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.MODIFY_GROUP_MESSAGE)}),body:{groupID:\"\",topicID:void 0,sequence:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:\"MsgSeq\",version:\"MsgVersion\",type:\"MsgType\",content:\"MsgContent\"}}}}(e)),this._configMap.set(us,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_READ_RECEIPT)}),body:{groupID:\"\",sequenceList:void 0},keyMap:{request:{sequence:\"MsgSeq\"}}}}(e)),this._configMap.set(ls,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.SEND_C2C_READ_RECEIPT)}),body:{peerAccount:\"\",messageInfoList:void 0},keyMap:{request:{peerAccount:\"Peer_Account\",messageInfoList:\"C2CMsgInfo\",fromAccount:\"From_Account\",toAccount:\"To_Account\",sequence:\"MsgSeq\",random:\"MsgRandom\",time:\"MsgTime\",clientTime:\"MsgClientTime\"}}}}(e)),this._configMap.set(cs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SEND_READ_RECEIPT)}),body:{groupID:\"\",sequenceList:void 0},keyMap:{request:{sequenceList:\"MsgSeqList\",sequence:\"MsgSeq\"}}}}(e)),this._configMap.set(ps,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:\"\",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:\"MsgSeq\",count:\"Num\"},response:{ReadList:\"readUserIDList\",Read_Account:\"userID\",UnreadList:\"unreadUserIDList\",Unread_Account:\"userID\",IsFinish:\"isCompleted\"}}}}(e)),this._configMap.set(Ao,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM_MSG_EXT,\".\").concat(V.CMD.MODIFY_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(Ro,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM_MSG_EXT,\".\").concat(V.CMD.GET_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,startSequence:void 0}}}(e)),this._configMap.set(Ds,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM_MSG_EXT,\".\").concat(V.CMD.MODIFY_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(Es,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM_MSG_EXT,\".\").concat(V.CMD.GET_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,startSequence:void 0}}}(e)),this._configMap.set(So,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:\"To_Account\"},response:{ReadTime:\"peerReadTimeList\"}}}}(e)),this._configMap.set(Oo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:\"conversations\",ToAccount:\"groupID\",To_Account:\"userID\",UnreadMsgCount:\"unreadCount\",MsgGroupReadedSeq:\"messageReadSeq\",C2cPeerReadTime:\"c2cPeerReadTime\"}}}}(e)),this._configMap.set(No,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:\"MsgAssistFlags\",assistFlag:\"AssistFlags\",pinnedTimeStamp:\"TopTimeStamp\",pinnedStartIndex:\"TopStartIndex\"},response:{SessionItem:\"conversations\",ToAccount:\"groupID\",To_Account:\"userID\",UnreadMsgCount:\"unreadCount\",MsgGroupReadedSeq:\"messageReadSeq\",C2cPeerReadTime:\"c2cPeerReadTime\",LastMsgFlags:\"lastMessageFlag\",TopFlags:\"isPinned\",TopTimeStamp:\"pinnedTimeStamp\",TopStartIndex:\"pinnedStartIndex\",GroupId:\"convGroupID\"}}}}(e)),this._configMap.set(Go,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.DELETE_CONVERSATION)}),body:{fromAccount:\"\",conversationList:void 0,clearHistoryMessage:void 0},keyMap:{request:{toGroupID:\"ToGroupid\",clearHistoryMessage:\"ClearRamble\",conversationList:\"ContactItem\"},response:{ResultItem:\"resultList\",ToGroupid:\"groupID\",ResultCode:\"code\",ResultInfo:\"info\"}}}}(e)),this._configMap.set(Uo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.CLEAR_HISTORY_MESSAGE)}),body:{fromAccount:\"\",toAccount:void 0,type:1,toGroupID:void 0},keyMap:{request:{toGroupID:\"ToGroupid\"}}}}(e)),this._configMap.set(Po,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.PIN_CONVERSATION)}),body:{fromAccount:\"\",operationType:1,itemList:void 0},keyMap:{request:{itemList:\"RecentContactItem\"}}}}(e)),this._configMap.set(bo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:\"DelMsgList\",messageSeq:\"MsgSeq\",messageRandom:\"MsgRandom\"}}}}(e)),this._configMap.set(wo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.MARK_CONVERSATION)}),body:{fromAccount:\"\",itemList:void 0},keyMap:{request:{itemList:\"MarkItem\",operationType:\"OptType\",groupID:\"ToGroupId\"},response:{ToGroupId:\"groupID\",OptType:\"operationType\"}}}}(e)),this._configMap.set(Fo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.MARK_CONVERSATION)}),body:{fromAccount:\"\",itemList:void 0},keyMap:{request:{itemList:\"MarkItem\",operationType:\"OptType\",groupID:\"ToGroupId\"},response:{ToGroupId:\"groupID\",OptType:\"operationType\"}}}}(e)),this._configMap.set(qo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.CREATE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",itemList:void 0},keyMap:{request:{itemList:\"GroupContactItem\",groupID:\"ToGroupId\"},response:{GroupId:\"convGroupID\",ToGroupId:\"groupID\",OptType:\"operationType\"}}}}(e)),this._configMap.set(xo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.DELETE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",groupName:void 0},keyMap:{request:{},response:{GroupId:\"convGroupID\"}}}}(e)),this._configMap.set(Vo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",updateType:void 0,updateGroup:void 0},keyMap:{request:{oldName:\"OldGroupName\",newName:\"NewGroupName\",groupID:\"ToGroupId\",operationType:\"ContactOptType\",groupName:\"OldGroupName\",updateItem:\"ContactUpdateItem\"},response:{ContactOptType:\"operationType\",ToGroupId:\"groupID\",GroupId:\"convGroupID\"}}}}(e)),this._configMap.set(Bo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",updateType:void 0,updateGroup:{groupName:void 0,updateGroupType:void 0,updateItem:void 0}},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(Ho,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:\"\",updateType:void 0,updateGroup:void 0},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(Ko,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.RECENT_CONTACT,\".\").concat(V.CMD.GET_CONVERSATION_GROUP_LIST)}),body:{fromAccount:\"\",startTime:void 0,startIndex:void 0},keyMap:{request:{},response:{GroupId:\"convGroupID\",ToGroupId:\"groupID\",OptType:\"operationType\",CustomMark:\"customData\",ContactGroupId:\"convGroupIDList\"}}}}(e)),this._configMap.set(fo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.PROFILE,\".\").concat(V.CMD.PORTRAIT_GET)}),body:{fromAccount:\"\",userItem:[]},keyMap:{request:{toAccount:\"To_Account\",standardSequence:\"StandardSequence\",customSequence:\"CustomSequence\"}}}}(e)),this._configMap.set(vo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.PROFILE,\".\").concat(V.CMD.PORTRAIT_SET)}),body:{fromAccount:\"\",profileItem:[{tag:Be.NICK,value:\"\"},{tag:Be.GENDER,value:\"\"},{tag:Be.ALLOWTYPE,value:\"\"},{tag:Be.AVATAR,value:\"\"}]},keyMap:{request:{toAccount:\"To_Account\",standardSequence:\"StandardSequence\",customSequence:\"CustomSequence\"}}}}(e)),this._configMap.set(mo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.GET_BLACKLIST)}),body:{fromAccount:\"\",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:\"currentSequence\"}}}}(e)),this._configMap.set(Mo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.ADD_BLACKLIST)}),body:{fromAccount:\"\",toAccount:[]}}}(e)),this._configMap.set(yo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.FRIEND,\".\").concat(V.CMD.DELETE_BLACKLIST)}),body:{fromAccount:\"\",toAccount:[]}}}(e)),this._configMap.set(oa,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.SET_SELF_STATUS)}),body:{customStatus:\"\"},keyMap:{}}}(e)),this._configMap.set(sa,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.GET_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{UserStatusList:\"successUserList\",ErrorList:\"failureUserList\",To_Account:\"userID\",Invalid_Account:\"invalidUserID\",Status:\"statusType\"}}}}(e)),this._configMap.set(aa,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.SUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{ErrorList:\"failureUserList\",To_Account:\"userID\",Invalid_Account:\"invalidUserID\"}}}}(e)),this._configMap.set(ra,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.UNSUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0,unsubscribeAll:void 0},keyMap:{response:{ErrorList:\"failureUserList\",To_Account:\"userID\",Invalid_Account:\"invalidUserID\"}}}}(e)),this._configMap.set(Wo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:\"\",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0},isSupportTopic:0},keyMap:{request:{memberAccount:\"Member_Account\"},response:{GroupIdList:\"groups\",NoUnreadSeqList:\"excludedUnreadSequenceList\",MsgSeq:\"readedSequence\",LastRecallTime:\"_lastRevokedTime\"}}}}(e)),this._configMap.set(Yo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:[\"Type\",\"Name\",\"Introduction\",\"Notification\",\"FaceUrl\",\"Owner_Account\",\"CreateTime\",\"InfoSeq\",\"LastInfoTime\",\"LastMsgTime\",\"MemberNum\",\"MaxMemberNum\",\"ApplyJoinOption\",\"NextMsgSeq\",\"ShutUpAllMember\"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:\"GroupIdList\",groupCustomField:\"AppDefinedData\",memberCustomField:\"AppMemberDefinedData\",groupCustomFieldFilter:\"AppDefinedDataFilter_Group\",memberCustomFieldFilter:\"AppDefinedDataFilter_GroupMember\"},response:{GroupIdList:\"groups\",AppDefinedData:\"groupCustomField\",AppMemberDefinedData:\"memberCustomField\",AppDefinedDataFilter_Group:\"groupCustomFieldFilter\",AppDefinedDataFilter_GroupMember:\"memberCustomFieldFilter\",InfoSeq:\"infoSequence\",MemberList:\"members\",GroupInfo:\"groups\",ShutUpUntil:\"muteUntil\",ShutUpAllMember:\"muteAllMembers\"}}}}(e)),this._configMap.set(jo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:\"\",isSupportTopic:void 0,inviteOption:void 0},keyMap:{request:{ownerID:\"Owner_Account\",userID:\"Member_Account\",avatar:\"FaceUrl\",maxMemberNum:\"MaxMemberCount\",joinOption:\"ApplyJoinOption\",groupCustomField:\"AppDefinedData\",memberCustomField:\"AppMemberDefinedData\",inviteOption:\"InviteJoinOption\"},response:{HugeGroupFlag:\"avChatRoomFlag\",OverJoinedGroupLimit_Account:\"overLimitUserIDList\"}}}}(e)),this._configMap.set(zo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Jo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0,inviteOption:void 0},keyMap:{request:{groupCustomField:\"AppDefinedData\",muteAllMembers:\"ShutUpAllMember\",joinOption:\"ApplyJoinOption\",avatar:\"FaceUrl\",inviteOption:\"InviteJoinOption\"},response:{AppDefinedData:\"groupCustomField\",ShutUpAllMember:\"muteAllMembers\"}}}}(e)),this._configMap.set(Xo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:\"ApplyMsg\",historyMessageFlag:\"HugeGroupHistoryMsgFlag\"},response:{HugeGroupFlag:\"avChatRoomFlag\",AVChatRoomKey:\"avChatRoomKey\",RspMsgList:\"messageList\",ToGroupId:\"to\"}}}}(e)),this._configMap.set(Qo,function(e){return e.a2,e.tinyid,{head:t(t({},g(e,xi)),{},{servcmd:\"\".concat(V.NAME.BIG_GROUP_NO_AUTH,\".\").concat(V.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:\"ApplyMsg\"},response:{HugeGroupFlag:\"avChatRoomFlag\"}}}}(e)),this._configMap.set(Zo,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set($o,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:[\"Type\",\"Name\",\"Introduction\",\"Notification\",\"FaceUrl\",\"CreateTime\",\"Owner_Account\",\"LastInfoTime\",\"LastMsgTime\",\"NextMsgSeq\",\"MemberNum\",\"MaxMemberNum\",\"ApplyJoinOption\",\"InviteJoinOption\"]}},keyMap:{response:{}}}}(e)),this._configMap.set(es,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:\"NewOwner_Account\"}}}}(e)),this._configMap.set(ts,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:\"Applicant_Account\",handleAction:\"HandleMsg\",handleMessage:\"ApprovalMsg\",messageKey:\"MsgKey\"}}}}(e)),this._configMap.set(ns,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.HANDLE_INVITE_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,invitee:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,userDefinedField:void 0},keyMap:{request:{applicant:\"Applicant_Account\",invitee:\"Invited_Account\",handleAction:\"HandleMsg\",handleMessage:\"ApprovalMsg\"}}}}(e)),this._configMap.set(os,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:\"Inviter_Account\",handleAction:\"HandleMsg\",handleMessage:\"ApprovalMsg\",messageKey:\"MsgKey\"}}}}(e)),this._configMap.set(ds,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:\"Handle_Account\"},response:{To_Account:\"userID\"}}}}(e)),this._configMap.set(gs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:\"DelMsgList\",messageSeq:\"MsgSeq\",messageRandom:\"MsgRandom\"}}}}(e)),this._configMap.set(_s,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.BIG_GROUP_LONG_POLLING,\".\").concat(V.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,startBroadcastSeq:void 0,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:\"USP\"},response:{ToGroupId:\"groupID\",RspBroadcastMsgList:\"broadcastMessageList\",IsSystemMsg:\"isSystemMessage\"}}}}(e)),this._configMap.set(hs,function(e){return e.a2,e.tinyid,{head:t(t({},g(e,Vi)),{},{servcmd:\"\".concat(V.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,\".\").concat(V.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:\"USP\"},response:{ToGroupId:\"groupID\",RspBroadcastMsgList:\"broadcastMessageList\",IsSystemMsg:\"isSystemMessage\"}}}}(e)),this._configMap.set(fs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(Ms,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:[\"RaceConflict\"]},keyMap:{request:{key:\"key\",value:\"value\"}}}}(e)),this._configMap.set(ys,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:[\"RaceConflict\"]},keyMap:{request:{key:\"key\",value:\"value\"}}}}(e)),this._configMap.set(Is,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:[\"RaceConflict\"]},keyMap:{request:{key:\"key\"}}}}(e)),this._configMap.set(Cs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:[\"RaceConflict\"]}}}(e)),this._configMap.set(Ts,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_ATTR,\".\").concat(V.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:\"Key\",groupType:\"GroupType\"}}}}(e)),this._configMap.set(Ss,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_NOTIFY)}),body:{notifyType:1,groupID:\"\",beginTime:0,endTime:0,limit:20},keyMap:{request:{},response:{NextMsgTime:\"nextRevokedTime\",NotifyMsgList:\"notifyList\"}}}}(e)),this._configMap.set(ks,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.UPDATE_GROUP_COUNTER)}),body:{groupID:void 0,counterList:void 0,avChatRoomKey:void 0,mode:void 0},keyMap:{request:{counterList:\"GroupCounter\"}}}}(e)),this._configMap.set(Ls,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_COUNTER)}),body:{groupID:void 0,keyList:[],avChatRoomKey:void 0},keyMap:{request:{keyList:\"GroupCounterKeys\"}}}}(e)),this._configMap.set($s,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(V.CMD.CREATE_TOPIC)}),body:{groupID:void 0,topicName:void 0,avatar:void 0,customData:void 0,topicID:void 0,notification:void 0,introduction:void 0},keyMap:{request:{avatar:\"FaceUrl\"}}}}(e)),this._configMap.set(ea,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(V.CMD.DELETE_TOPIC)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{request:{topicIDList:\"TopicIdList\"},response:{DestroyResultItem:\"resultList\"}}}}(e)),this._configMap.set(ta,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(V.CMD.UPDATE_TOPIC_PROFILE)}),body:{groupID:void 0,topicID:void 0,avatar:void 0,customData:void 0,notification:void 0,introduction:void 0,muteAllMembers:void 0,topicName:void 0},keyMap:{request:{avatar:\"FaceUrl\",muteAllMembers:\"ShutUpAllMember\"}}}}(e)),this._configMap.set(na,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(V.CMD.GET_TOPIC_LIST)}),body:{groupID:void 0,topicIDList:void 0,MemberInfoFilter:[\"NoUnreadSeqList\"]},keyMap:{request:{topicIDList:\"TopicIdList\"},response:{TopicAndSelfInfo:\"topicInfoList\",TopicInfo:\"topic\",GroupID:\"groupID\",ShutUpTime:\"muteTime\",ShutUpAllFlag:\"muteAllMembers\",LastMsgTime:\"lastMessageTime\",MsgSeq:\"readedSequence\",LastMsgSeq:\"sequence\",NoUnreadSeqList:\"excludedUnreadSequenceList\"}}}}(e)),this._configMap.set(As,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:[\"Role\",\"NameCard\",\"ShutUpUntil\",\"JoinTime\"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:\"AppDefinedDataFilter_GroupMember\"},response:{AppMemberDefinedData:\"memberCustomField\",AppDefinedDataFilter_GroupMember:\"memberCustomFieldFilter\",MemberList:\"members\",ShutUpUntil:\"muteUntil\"}}}}(e)),this._configMap.set(Rs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_AVCHATROOM,\".\").concat(V.CMD.GET_AVCHATROOM_MEMBER_LIST)}),body:{groupID:void 0,offset:void 0,filter:void 0},keyMap:{request:{offset:\"Timestamp\",filter:\"Mark\"},response:{NextTimestamp:\"offset\"}}}}(e)),this._configMap.set(Ns,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:\"Member_List_Account\",memberCustomFieldFilter:\"AppDefinedDataFilter_GroupMember\"},response:{MemberList:\"members\",ShutUpUntil:\"muteUntil\",AppDefinedDataFilter_GroupMember:\"memberCustomFieldFilter\",AppMemberDefinedData:\"memberCustomField\"}}}}(e)),this._configMap.set(Os,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:\"Member_Account\",userIDList:\"MemberList\"},response:{MemberList:\"members\"}}}}(e)),this._configMap.set(Gs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:\"MemberToDel_Account\"}}}}(e)),this._configMap.set(Us,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.BAN_AVCHATROOM_MEMBER)}),body:{groupID:void 0,userIDList:void 0,duration:void 0,reason:\"\"},keyMap:{request:{userIDList:\"Members_Account\",duration:\"Duration\",reason:\"Description\"}}}}(e)),this._configMap.set(Ps,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP,\".\").concat(V.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,topicID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:\"Member_Account\",memberCustomField:\"AppMemberDefinedData\",muteTime:\"ShutUpTime\",messageRemindType:\"MsgFlag\"}}}}(e)),this._configMap.set(bs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.GROUP_AVCHATROOM,\".\").concat(V.CMD.MARK_AVCHATROOM_MEMBER_INFO)}),body:{groupID:void 0,operationType:1,memberList:[]},keyMap:{request:{operationType:\"CommandType\",memberList:\"MemberList\",markType:\"Marks\",userID:\"Member_Account\"},response:{CommandType:\"operationType\",Marks:\"markType\",Member_Account:\"userID\"}}}}(e)),this._configMap.set(xs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STAT,\".\").concat(V.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:\"sdk_type\",SDKVersion:\"sdk_version\",deviceType:\"device_type\",platform:\"platform\",instanceID:\"instance_id\",traceID:\"trace_id\",SDKAppID:\"sdk_app_id\",userID:\"user_id\",tinyID:\"tiny_id\",extension:\"extension\",timestamp:\"timestamp\",networkType:\"network_type\",eventType:\"event_type\",code:\"error_code\",message:\"error_message\",moreMessage:\"more_message\",duplicate:\"duplicate\",costTime:\"cost_time\",level:\"level\",qualityType:\"quality_type\",reportIndex:\"report_index\",wholePeriod:\"whole_period\",totalCount:\"total_count\",rttCount:\"success_count_business\",successRateOfRequest:\"percent_business\",countLessThan1Second:\"success_count_business\",percentOfCountLessThan1Second:\"percent_business\",countLessThan3Second:\"success_count_platform\",percentOfCountLessThan3Second:\"percent_platform\",successCountOfBusiness:\"success_count_business\",successRateOfBusiness:\"percent_business\",successCountOfPlatform:\"success_count_platform\",successRateOfPlatform:\"percent_platform\",successCountOfMessageReceived:\"success_count_business\",successRateOfMessageReceived:\"percent_business\",avgRTT:\"average_value\",avgDelay:\"average_value\",avgValue:\"average_value\",uiPlatform:\"ui_platform\"}}}}(o)),this._configMap.set(Vs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.HEARTBEAT,\".\").concat(V.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(Bs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_PUSH,\".\").concat(V.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:\"C2CMessageArray\",GroupMsgArray:\"groupMessageArray\",GroupTips:\"groupTips\",C2cNotifyMsgArray:\"C2CNotifyMessageArray\",C2cMsgInfo:\"C2CReadReceiptArray\",ClientSeq:\"clientSequence\",MsgPriority:\"priority\",NoticeSeq:\"noticeSequence\",MsgContent:\"content\",MsgType:\"type\",MsgBody:\"elements\",ToGroupId:\"to\",Desc:\"description\",Ext:\"extension\",IsSyncMsg:\"isSyncMessage\",Flag:\"needSync\",NeedAck:\"needAck\",PendencyAdd_Account:\"userID\",ProfileImNick:\"nick\",PendencyType:\"applicationType\",C2CReadAllMsg:\"readAllC2CMessage\",IsNeedReadReceipt:\"needReadReceipt\",Status:\"statusType\"}}}}(e)),this._configMap.set(Hs,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_PUSH,\".\").concat(V.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:\"groupMessageArray\",GroupTips:\"groupTips\",ClientSeq:\"clientSequence\",MsgPriority:\"priority\",NoticeSeq:\"noticeSequence\",MsgContent:\"content\",MsgType:\"type\",MsgBody:\"elements\",ToGroupId:\"to\",Desc:\"description\",Ext:\"extension\",IsSyncMsg:\"isSyncMessage\",Flag:\"needSync\",NeedAck:\"needAck\",PendencyType:\"applicationType\"}}}}(e)),this._configMap.set(Ks,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.OPEN_IM,\".\").concat(V.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:\"SessionData\"}}}}(e)),this._configMap.set(Ws,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.STATUS_FORCE_OFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:\"C2CNotifyMessageArray\",NoticeSeq:\"noticeSequence\",KickoutMsgNotify:\"kickoutMsgNotify\",NewInstInfo:\"newInstanceInfo\"}}}}(e)),this._configMap.set(js,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_LONG_MESSAGE,\".\").concat(V.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:\"\"},keyMap:{response:{Data:\"data\",Desc:\"description\",Ext:\"extension\",Download_Flag:\"downloadFlag\",ThumbUUID:\"thumbUUID\",VideoUUID:\"videoUUID\"}}}}(e)),this._configMap.set(Ys,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_LONG_MESSAGE,\".\").concat(V.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:\"From_Account\",toAccount:\"To_Account\",msgTimeStamp:\"MsgTimeStamp\",msgSeq:\"MsgSeq\",msgRandom:\"MsgRandom\",msgBody:\"MsgBody\",type:\"MsgType\",content:\"MsgContent\",data:\"Data\",description:\"Desc\",extension:\"Ext\",sizeType:\"Type\",uuid:\"UUID\",url:\"\",imageUrl:\"URL\",fileUrl:\"Url\",remoteAudioUrl:\"Url\",remoteVideoUrl:\"VideoUrl\",thumbUUID:\"ThumbUUID\",videoUUID:\"VideoUUID\",videoUrl:\"\",downloadFlag:\"Download_Flag\",from:\"From_Account\",time:\"MsgTimeStamp\",messageRandom:\"MsgRandom\",messageSequence:\"MsgSeq\",elements:\"MsgBody\",clientSequence:\"ClientSeq\",payload:\"MsgContent\",messageList:\"MsgList\",messageNumber:\"MsgNum\",abstractList:\"AbstractList\",messageBody:\"MsgBody\"}}}}(e)),this._configMap.set(ca,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.SET_TOKEN)}),body:{tokenID:\"\",pushMsg:0,sdkAppID:0,businessID:\"\",deviceBrand:\"\",deviceToken:\"\",isTpns:0,isWebUniapp:0},keyMap:{request:{tokenID:\"TokenID\",pushMsg:\"PushMsg\",sdkAppID:\"EnterVersion\",businessID:\"BusiID\",deviceBrand:\"InstType\",deviceToken:\"VarToken\",isTpns:\"IsTpns\"}}}}(e)),this._configMap.set(ua,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.STAT_FOREGROUND)}),body:{isWebUniapp:0}}}(e)),this._configMap.set(ia,function(e){return{head:t(t({},e),{},{servcmd:\"\".concat(V.NAME.IM_OPEN_STATUS,\".\").concat(V.CMD.STAT_BACKGROUND)}),body:{C2CUnread:0,GroupUnread:0,isWebUniapp:0},keyMap:{request:{c2cUnreadCount:\"C2cUnread\",groupUnreadCount:\"GrpUnread\"}}}}(e))}},{key:\"has\",value:function(e){return this._configMap.has(e)}},{key:\"get\",value:function(e){return this._configMap.get(e)}},{key:\"update\",value:function(){this._fillConfigMap()}},{key:\"getKeyMap\",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(xe.w(\"\".concat(this._n,\".getKeyMap unknown protocolName:\").concat(e)),{})}},{key:\"getProtocolData\",value:function(e){var t=e.protocolName,n=e.requestData,o=this.get(t),s=null;if(n){var a=this._simpleDeepCopy(o),r=this._updateService(n,a),i=r.body,u=Object.create(null);for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c)){if(u[c]=i[c],void 0===n[c])continue;u[c]=n[c]}r.body=u,s=this._getUplinkData(r)}else s=this._getUplinkData(o);return s}},{key:\"_getUplinkData\",value:function(e){var t=this._requestDataCleaner(e),n=Pt(t.head),o=Di(t.body,this._getRequestKeyMap(n));return t.body=o,t}},{key:\"_updateService\",value:function(e,t){var n=Pt(t.head);if(this._isFromGroupRequest(t)){var o=e.type,s=e.groupID,a=void 0===s?void 0:s,r=e.groupIDList,i=void 0===r?[]:r;at(a)&&(a=i[0]||\"\"),Tt({type:o,groupID:a})&&(t.head.servcmd=\"\".concat(V.NAME.GROUP_COMMUNITY,\".\").concat(n))}return t}},{key:\"_isFromGroupRequest\",value:function(e){return e.head.servcmd.includes(V.NAME.GROUP)||e.head.servcmd.includes(V.NAME.GROUP_ATTR)}},{key:\"_getRequestKeyMap\",value:function(e){var n=this.getKeyMap(e);return t(t({},Ii.request),n.request)}},{key:\"_requestDataCleaner\",value:function(e){var t=Array.isArray(e)?[]:Object.create(null);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&lt(o)&&null!==e[o]&&void 0!==e[o]&&(\"object\"!==n(e[o])?t[o]=e[o]:t[o]=this._requestDataCleaner.bind(this)(e[o]));return t}},{key:\"_simpleDeepCopy\",value:function(e){for(var t,n=Object.keys(e),o={},s=0,a=n.length;s<a;s++)t=n[s],st(e[t])?o[t]=Array.from(e[t]):nt(e[t])?o[t]=this._simpleDeepCopy(e[t]):o[t]=e[t];return o}}]),e}(),Hi=[Ks],Ki=function(){function e(t){o(this,e),this._sessionModule=t,this._n=\"DownlinkHandler\",this._eventHandlerMap=new Map,this._eventHandlerMap.set(\"C2CMessageArray\",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set(\"groupMessageArray\",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set(\"groupTips\",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set(\"C2CNotifyMessageArray\",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set(\"C2CReadReceiptArray\",this._C2CReadReceiptArrayHandler.bind(this)),this._eventHandlerMap.set(\"profileModify\",this._profileHandler.bind(this)),this._eventHandlerMap.set(\"friendListMod\",this._relationChainHandler.bind(this)),this._eventHandlerMap.set(\"recentContactMod\",this._recentContactHandler.bind(this)),this._eventHandlerMap.set(\"readAllC2CMessage\",this._allMessageReadHandler.bind(this)),this._eventHandlerMap.set(\"c2cMessageModified\",this._c2cMessageModifiedHandler.bind(this)),this._eventHandlerMap.set(\"groupMessageModified\",this._groupMessageModifiedHandler.bind(this)),this._eventHandlerMap.set(\"userStatusList\",this._userStatusListHandler.bind(this)),this._eventHandlerMap.set(\"messageExtensionNotify\",this._messageExtensionNotifyHandler.bind(this)),this._keys=m(this._eventHandlerMap.keys())}return a(e,[{key:\"_c2cMessageArrayHandler\",value:function(e){var t=this._sessionModule.getModule(Gn);if(t){if(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync)this._sessionModule.getModule(Yn).startOnlineSync();t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0})}}},{key:\"_c2cMessageModifiedHandler\",value:function(e){var t=this._sessionModule.getModule(Gn);t&&t.onC2CMessageModified(e)}},{key:\"_groupMessageArrayHandler\",value:function(e){var t=this._sessionModule.getModule(Un);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:\"_groupMessageModifiedHandler\",value:function(e){var t=this._sessionModule.getModule(Un);t&&t.onGroupMessageModified(e)}},{key:\"_groupTipsHandler\",value:function(e){var t=this._sessionModule.getModule(Un);if(t){var n=e.event,o=e.dataList,s=e.isInstantMessage,a=void 0===s||s,r=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:o});break;case 5:for(var i=0;i<o.length;i++)if(st(o[i].elements.revokedInfos))t.onGroupMessageRevoked({dataList:o});else if(st(o[i].elements.groupMessageReadNotice))t.onGroupMessageReadNotice({dataList:o});else{if(!st(o[i].elements.readReceiptList)){t.onNewGroupSystemNotice({dataList:o,isInstantMessage:a,isSyncingEnded:r});break}t.onReadReceiptList({dataList:o})}break;case 12:this._sessionModule.getModule(Fn).onNewGroupAtTips({dataList:o});break;default:xe.l(\"\".concat(this._n,\"._groupTipsHandler unknown event:\").concat(n,\" dataList:\"),o)}}}},{key:\"_C2CNotifyMessageArrayHandler\",value:function(e){var t=this,n=e.dataList;if(st(n)){var o=this._sessionModule.getModule(Gn);n.forEach((function(e){if(ot(e))if(e.hasOwnProperty(\"kickoutMsgNotify\")){var s=e.kickoutMsgNotify,a=s.kickType,r=s.newInstanceInfo,i=void 0===r?{}:r;1===a?t._sessionModule.onMultipleAccountKickedOut(i):2===a?t._sessionModule.onMultipleDeviceKickedOut(i):3===a&&t._sessionModule.onRestApiKickedOut(i)}else if(e.hasOwnProperty(\"c2cMessageRevokedNotify\"))o&&o.onC2CMessageRevoked({dataList:n});else if(e.hasOwnProperty(\"c2cMessageReadReceipt\"))o&&o.onC2CMessageReadReceipt({dataList:n});else if(e.hasOwnProperty(\"c2cMessageReadNotice\"))o&&o.onC2CMessageReadNotice({dataList:n});else if(e.hasOwnProperty(\"muteNotificationsSync\")){t._sessionModule.getModule(Fn).onC2CMessageRemindTypeSynced({dataList:n})}}))}}},{key:\"_C2CReadReceiptArrayHandler\",value:function(e){this._sessionModule.getModule(Gn).onReadReceiptList(e)}},{key:\"_profileHandler\",value:function(e){this._sessionModule.getModule(On).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(Pn);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:\"_relationChainHandler\",value:function(e){this._sessionModule.getModule(On).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(Pn);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:\"_recentContactHandler\",value:function(e){var t=e.dataList;if(st(t)){var n=this._sessionModule.getModule(Fn);n&&t.forEach((function(e){var t=e.pushType;if(1===t){var o=e.recentContactDeleteItem;n.onConversationDeleted(o.recentContactList)}else if(2===t){var s=e.recentContactTopItem;n.onConversationPinned(s.recentContactList)}else if(3===t){var a=e.recentContactTopItem;n.onConversationUnpinned(a.recentContactList)}else if(4===t){var r=e.recentContactMarkContact;n.onConversationMarkUpdated(r.recentContactMarkContactItem)}else if(5===t){var i=e.recentContactCreateContactGroup;n.onConversationGroupCreated(i.msgContactGroupContactItem)}else if(6===t){var u=e.recentContactDelContactGroup;n.onConversationGroupDeleted(u.msgGroupItem)}else if(7===t){var c=e.recentContactUpdateContactGroup,l=c.updateType,p=c.msgUpdateGroup,d=c.msgUpdateContact;if(1===l){var g=p.updateGroupType;1===g?n.onConversationGroupNameUpdated(p):2===g&&n.onConversationInGroupUpdated(p)}else 2===l&&n.onConversationAddedToOrDeletedFromGroup(d)}}))}}},{key:\"_allMessageReadHandler\",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(Fn);n&&n.onPushedAllMessageRead(t)}},{key:\"_userStatusListHandler\",value:function(e){this._sessionModule.getModule(On).onUserStatusUpdated(e)}},{key:\"_messageExtensionNotifyHandler\",value:function(e){this._sessionModule.getModule(Nn).onMessageExtensionNotify(e)}},{key:\"onMessage\",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var o=n.eventArray,s=n.isInstantMessage,a=n.isSyncingEnded,r=n.needSync;if(st(o))for(var i=null,u=null,c=0,l=0,p=o.length;l<p;l++){c=(i=o[l]).event;var d=Object.keys(i).find((function(e){return-1!==t._keys.indexOf(e)}));d?(u=14===c?{readAllC2CMessage:i[d],groupMessageReadInfoList:i.groupMessageReadNotice||[]}:16===c?{userID:i.userID,readReceiptList:i[d]}:i[d],this._eventHandlerMap.get(d)({event:c,dataList:u,isInstantMessage:s,isSyncingEnded:a,needSync:r})):xe.l(\"\".concat(this._n,\".onMessage unknown eventItem:\").concat(i))}}}},{key:\"_filterMessageFromIMOpenPush\",value:function(e){var t=e.head,n=e.body,o=t.servcmd,s=!1;if(at(o)||(s=o.includes(V.NAME.IM_CONFIG_MANAGER)||o.includes(V.NAME.OVERLOAD_PUSH)||o.includes(V.NAME.STAT_SERVICE)),!s)return!0;if(o.includes(V.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(Xn).onPushedCloudControlConfig(n);else if(o.includes(V.CMD.PUSHED_COMMERCIAL_CONFIG)){this._sessionModule.getModule(eo).onPushedConfig(n)}else if(o.includes(V.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(o.includes(V.CMD.KICK_OTHER)){var a=Date.now();this._sessionModule.reLoginOnKickOther();var r=new ka(\"kickOther\"),i=this._sessionModule.getModule(An).getLastWsHelloTs(),u=a-i;r.setMessage(\"last wshello time:\".concat(i,\" diff:\").concat(u,\"ms\")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),Wi=[{cmd:V.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:V.CMD.GET_AVCHATROOM_MEMBER_LIST,interval:3,count:1},{cmd:V.CMD.GET_GROUP_APPLICATION,interval:1,count:15},{cmd:V.CMD.GET_TOPIC_LIST,interval:1,count:10},{cmd:V.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:V.CMD.UPDATE_GROUP_COUNTER,interval:5,count:20},{cmd:V.CMD.GET_GROUP_COUNTER,interval:5,count:20},{cmd:V.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1},{cmd:V.CMD.GET_USER_STATUS,interval:5,count:20},{cmd:V.CMD.SUBSCRIBE_USER_STATUS,interval:5,count:20},{cmd:V.CMD.UNSUBSCRIBE_USER_STATUS,interval:5,count:20}],Yi=function(e){i(s,e);var n=f(s);function s(e){var t;return o(this,s),(t=n.call(this,e))._n=\"SessionModule\",t._platform=t.getPlatform(),t._protocolHandler=new Bi(_(t)),t._messageDispatcher=new Ki(_(t)),t._commandFrequencyLimitMap=new Map,t._commandRequestInfoMap=new Map,t._serverOverloadInfoMap=new Map,t._init(),t.getInnerEmitterInstance().on($a,t._onCloudConfigUpdated,_(t)),t}return a(s,[{key:\"_init\",value:function(){this._updateCommandFrequencyLimitMap(Wi)}},{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"cmd_frequency_limit\");at(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:\"_updateCommandFrequencyLimitMap\",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:\"updateProtocolConfig\",value:function(){this._protocolHandler.update()}},{key:\"request\",value:function(e){xe.d(\"\".concat(this._n,\".request options:\"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return xe.w(\"\".concat(this._n,\".request unknown protocol:\").concat(t)),Ja({code:da.CANNOT_FIND_PROTOCOL});var o=this.getProtocolData(e),s=o.head.servcmd;if(this._isFrequencyOverLimit(s))return Ja({code:da.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(s))return Ja({code:da.OPEN_SERVICE_OVERLOAD_ERROR});jt(n)||(o.head.tjgID=n);var a=this.getModule(zn);return Hi.includes(t)?a.simplySend(o):a.send(o)}},{key:\"getKeyMap\",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:\"genCommonHead\",value:function(){var e=this.getModule(qn);return{ver:\"v4\",platform:this._platform,websdkappid:O,websdkversion:N,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:192371,tjgID:\"\"}}},{key:\"genCosSpecifiedHead\",value:function(){var e=this.getModule(qn);return{ver:\"v4\",platform:this._platform,websdkappid:O,websdkversion:N,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:\"genSSOReportHead\",value:function(){var e=this.getModule(qn);return{ver:\"v4\",platform:this._platform,websdkappid:O,websdkversion:N,sdkappid:e.getSDKAppID(),contenttype:\"\",reqtime:0,identifier:\"\",usersig:\"\",status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:\"getProtocolData\",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:\"trans\",value:function(e){var n=e.servcmd,o=e.data,s={head:t(t({},this.genCommonHead()),{},{servcmd:n}),body:o};return this.getModule(zn).send(s)}},{key:\"sendComboMessage\",value:function(e){var n=e.servcmd,o=e.data,s={head:t(t({},this.genCommonHead()),{},{servcmd:n}),body:o};return this.getModule(zn).send(s)}},{key:\"onErrorCodeNotZero\",value:function(e){var t=e.errorCode;if(t===da.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,o=e.newInstanceInfo,s=void 0===o?{}:o;1===n?this.onMultipleAccountKickedOut(s):2===n?this.onMultipleDeviceKickedOut(s):3===n&&this.onRestApiKickedOut(s)}t!==da.MESSAGE_A2KEY_EXPIRED&&t!==da.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(zn).reConnect())}},{key:\"onMessage\",value:function(e){var t=e.body,n=t.needAck,o=void 0===n?0:n,s=t.sessionData;1===o&&this._sendACK(s),this._messageDispatcher.onMessage(e)}},{key:\"onReconnected\",value:function(){this._reLoginOnReconnected()}},{key:\"reLoginOnKickOther\",value:function(){xe.l(\"\".concat(this._n,\".reLoginOnKickOther\")),this._reLogin()}},{key:\"_reLoginOnReconnected\",value:function(){xe.l(\"\".concat(this._n,\"._reLoginOnReconnected\")),this._reLogin()}},{key:\"_reLogin\",value:function(){var e=this;if(this.isLoggedIn()){var t=0,n=this.getModule(to);n.canIUseOfflinePush()&&(t=n.getUniAppPlatform()),this.request({protocolName:io,requestData:{isWebUniapp:t}}).then((function(t){var n=t.data.instanceID;e.getModule(qn).setStatusInstanceID(n),xe.l(\"\".concat(e._n,\"._reLogin ok.\")),e.getModule(Fn).syncConversationList().then((function(){xe.l(\"\".concat(e._n,\"._reLogin, sync conversation list ok.\")),e.getModule(Zn).start()})),e.getModule(Un).updateLocalMainSequenceOnReconnected();var o=e.getModule(wn);o.resetGetTopicTime(),o.getTopicListOnReconnected()}))}}},{key:\"onMultipleAccountKickedOut\",value:function(e){this.getModule(An).onMultipleAccountKickedOut(e)}},{key:\"onMultipleDeviceKickedOut\",value:function(e){this.getModule(An).onMultipleDeviceKickedOut(e)}},{key:\"_onUserSigExpired\",value:function(){this.getModule(An).onUserSigExpired()}},{key:\"onRestApiKickedOut\",value:function(e){this.getModule(An).onRestApiKickedOut(e)}},{key:\"_sendACK\",value:function(e){this.request({protocolName:Ks,requestData:{sessionData:e}})}},{key:\"_isFrequencyOverLimit\",value:function(e){var t=e.split(\".\")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),o=n.count,s=n.interval,a=this._commandRequestInfoMap.get(t),r=a.startTime,i=a.requestCount;if(Date.now()-r>1e3*s)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;i+=1,this._commandRequestInfoMap.set(t,{startTime:r,requestCount:i});var u=!1;return i>o&&(u=!0),u}},{key:\"_isServerOverload\",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,o=t.waitingTime,s=!1;return Date.now()-n<=1e3*o?s=!0:(this._serverOverloadInfoMap.delete(e),s=!1),s}},{key:\"onPushedServerOverload\",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),xe.w(\"\".concat(this._n,\".onPushedServerOverload waitingTime:\").concat(n,\"s\"))}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._updateCommandFrequencyLimitMap(Wi),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),s}(ro),ji=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"MessageLossDetectionModule\",s._maybeLostSequencesMap=new Map,s._firstRoundRet=[],s}return a(n,[{key:\"onMessageMaybeLost\",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var o=this._maybeLostSequencesMap.get(e),s=0;s<n;s++)-1===o.indexOf(t+s)&&o.push(t+s)}},{key:\"detectFirstRound\",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!jt(n)&&!jt(t)){var o=n.filter((function(e){return-1===t.indexOf(e)}));0===o.length?xe.i(\"\".concat(this._n,\".detectFirstRound no message loss. conversationID:\").concat(e)):this._firstRoundRet=this._firstRoundRet.concat(o),n.length=0}}},{key:\"detectSecondRound\",value:function(e,t){if(!jt(this._firstRoundRet)&&!jt(t)){var n=this._firstRoundRet.filter((function(e){return-1===t.indexOf(e)}));this._firstRoundRet.length=0;var o,s=n.length;if(0!==s)s<=5?o=e+\"-\"+n.join(\"-\"):(n.sort((function(e,t){return e-t})),o=e+\" start:\"+n[0]+\" end:\"+n[s-1]+\" count:\"+s),new ka(\"messageLoss\").setMessage(o).setNetworkType(this.getNetworkType()).setLevel(\"warning\").end(),xe.i(\"\".concat(this._n,\".detectSecondRound message loss detected. conversationID:\").concat(e,\" lostSequences:\").concat(n))}}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._maybeLostSequencesMap.clear(),this._firstRoundRet.length=0}}]),n}(ro),zi=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"CloudControlModule\",s._cloudConfig=new Map,s._expiredTime=0,s._version=0,s._isFetching=!1,s}return a(n,[{key:\"getCloudConfig\",value:function(e){return at(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:\"_canFetchConfig\",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:\"fetchConfig\",value:function(){var e=this,t=this._canFetchConfig();if(xe.l(\"\".concat(this._n,\".fetchConfig canFetchConfig:\").concat(t)),t){var n=new ka(\"fetchCloudControlConfig\"),o=this.getModule(qn).getSDKAppID();this._isFetching=!0,this.request({protocolName:zs,requestData:{SDKAppID:o,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage(\"version:\".concat(e._version,\" newVersion:\").concat(t.data.version,\" config:\").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),xe.l(\"\".concat(e._n,\".fetchConfig ok\")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var o=v(e,2),s=o[0],a=o[1];n.setError(t,s,a).end()})),xe.l(\"\".concat(e._n,\".fetchConfig failed. error:\"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:\"onPushedCloudControlConfig\",value:function(e){xe.l(\"\".concat(this._n,\".onPushedCloudControlConfig\")),new ka(\"pushedCloudControlConfig\").setNetworkType(this.getNetworkType()).setMessage(\"newVersion:\".concat(e.version,\" config:\").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:\"onCheckTimer\",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:\"_parseCloudControlConfig\",value:function(e){var t=this,n=\"\".concat(this._n,\"._parseCloudControlConfig\"),o=e.errorCode,s=e.errorMessage,a=e.cloudControlConfig,r=e.version,i=e.expiredTime;if(0===o){if(this._version!==r){var u=null;try{u=JSON.parse(a)}catch(c){this.isPrivateNetWork()||xe.e(\"\".concat(n,\" JSON parse error. cloudControlConfig:\"),a)}u&&(this._cloudConfig.clear(),Object.keys(u).forEach((function(e){t._cloudConfig.set(e,u[e])})),this._version=r,this.emitInnerEvent($a))}this._expiredTime=Date.now()+1e3*i}else at(o)?(xe.l(\"\".concat(n,\" failed. Invalid message format:\"),e),this._setExpiredTimeOnResponseError(36e5)):(xe.e(\"\".concat(n,\" errorCode:\").concat(o,\" errorMessage:\").concat(s)),this._setExpiredTimeOnResponseError(12e4))}},{key:\"_setExpiredTimeOnResponseError\",value:function(e){this._expiredTime=Date.now()+e}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),n}(ro),Ji=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"RecoverMessageModule\",s.PULL_LIMIT_COUNT=15,s}return a(n,[{key:\"start\",value:function(){this._recoverGroupChat(),this._recoverC2CChat()}},{key:\"_recoverGroupChat\",value:function(){var e,t,n=this,o=this._getLocalConversationList().filter((function(e){return e.type===S.CONV_GROUP&&e.groupProfile.type!==S.GRP_AVCHATROOM})),s=this.getModule(Fn),a=0,r=0,i=0;o.forEach((function(o){var u=o.conversationID,c=o.lastMessage;t=u.replace(S.CONV_GROUP,\"\"),e=s.getLocalLastMessage(u),c&&0!==c.lastSequence&&e?(r=c.lastSequence,a=e.sequence,i=r-a,a>0&&i>=1&&i<300?n._recoverGroupMessage({groupID:t,localLastMessageSequence:a,remoteLastMessageSequence:r}):n._getGroupNotify(t)):n._getGroupNotify(t)}))}},{key:\"_recoverC2CChat\",value:function(){var e,t=this,n=this._getLocalConversationList().filter((function(e){return e.type===S.CONV_C2C})),o=this.getModule(Fn),s=0,a=0,r=0,i=[Promise.resolve()];n.forEach((function(n){var u=n.conversationID,c=n.lastMessage;e=o.getLocalLastMessage(u),c&&0!==c.lastTime&&e&&(a=c.lastTime,s=e.time,r=a-s,s>0&&r>=1&&r<=600&&i.push(t._recoverC2CMessage({conversationID:u,localLastMessageTime:s,remoteLastMessageTime:a})))})),Promise.all(i).then((function(){xe.l(\"\".concat(t._n,\"._recoverC2CChat all promise fulfilled, start to sync unread messages\")),t.getModule(Yn).startSyncOnReconnected()}))}},{key:\"_getLocalConversationList\",value:function(){return this.getModule(Fn).getLocalConversationList()}},{key:\"_recoverGroupMessage\",value:function(e){var t=this,n=\"\".concat(this._n,\"._recoverGroupMessage\");xe.l(\"\".concat(n,\" options:\"),e);var o=e.groupID,s=e.localLastMessageSequence,a=e.remoteLastMessageSequence;this._getGroupRomaingMessage({groupID:o,sequence:s}).then((function(e){var s=e.data,r=s.complete,i=s.messageList;if(!at(i)){var u=i[0].sequence;xe.l(\"\".concat(n,\" pkgLastMessageSequence:\").concat(u,\" complete:\").concat(r)),u<a&&2!==r&&t._recoverGroupMessage({groupID:o,localLastMessageSequence:u,remoteLastMessageSequence:a}),new ka(\"recoverMessage\").setNetworkType(t.getNetworkType()).setMessage(\"groupID:\".concat(o,\" complete:\").concat(r,\" messageList length:\").concat(i.length)).end();var c=t.getModule(Un);i.length>1&&i.sort((function(e,t){return e.sequence-t.sequence}));for(var l=0;l<i.length;l++){var p=i[l];p.from!==S.CONV_SYSTEM?c.onNewGroupMessage({dataList:[p],isInstantMessage:!1,updateUnreadCount:!1}):c.onNewGroupTips({event:p.event,dataList:[p]})}t._getGroupNotify(o)}}))}},{key:\"_getGroupNotify\",value:function(e){this.getModule(Un).getGroupNotify(e)}},{key:\"_getGroupRomaingMessage\",value:function(e){var t=e.groupID,n=e.sequence;return this.request({protocolName:is,requestData:{groupID:t,count:this.PULL_LIMIT_COUNT,sequence:n+this.PULL_LIMIT_COUNT-1}})}},{key:\"_recoverC2CMessage\",value:function(e){var t=this,n=\"\".concat(this._n,\"._recoverC2CMessage\");xe.l(\"\".concat(this._n,\"._recoverC2CMessage options:\"),e);var o=e.conversationID,s=e.localLastMessageTime,a=e.remoteLastMessageTime;return this._getC2CRoamingMessage({conversationID:o,time:s}).then((function(e){var s=e.data,r=s.complete,i=s.messageList;if(!at(i)){var u=i.length;new ka(\"recoverMessage\").setNetworkType(t.getNetworkType()).setMessage(\"\".concat(o,\" complete:\").concat(r,\" messageList length:\").concat(u)).end(),t.getModule(Gn).onNewC2CMessage({dataList:i,isInstantMessage:!0});var c=i[u-1].time;if(xe.l(\"\".concat(n,\" pkgLastMessageTime:\").concat(c,\" complete:\").concat(r)),c<a&&1!==r)return t._recoverC2CMessage({conversationID:o,localLastMessageTime:c,remoteLastMessageTime:a})}}))}},{key:\"_getC2CRoamingMessage\",value:function(e){var t=e.conversationID,n=e.time;return this.request({protocolName:Eo,requestData:{peerAccount:t.replace(S.CONV_C2C,\"\"),count:this.PULL_LIMIT_COUNT+1,lastMessageTime:n,direction:1}})}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\"))}}]),n}(ro),Xi=function(){function e(){o(this,e),this._n=\"AvgE2EDelay\",this._e2eDelayArray=[]}return a(e,[{key:\"addMessageDelay\",value:function(e){var t=be()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:\"_calcAvg\",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),bt(n/t,1)}},{key:\"_calcCountWithLimit\",value:function(e){var t=e.e2eDelayArray,n=e.min,o=e.max;return t.filter((function(e){return n<=e&&e<o})).length}},{key:\"_calcPercent\",value:function(e,t){var n=bt(e/t*100,2);return n>100&&(n=100),n}},{key:\"_checkE2EDelayException\",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var o=n.length,s=Math.min.apply(Math,m(n)),a=Math.max.apply(Math,m(n)),r=this._calcAvg(n,o),i=bt(o/e.length*100,2);if(i>50)new ka(\"messageE2EDelayException\").setMessage(\"count:\".concat(o,\" min:\").concat(s,\" max:\").concat(a,\" avg:\").concat(r,\" percent:\").concat(i)).setLevel(\"warning\").end()}}},{key:\"getStatResult\",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=m(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),o=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),s=this._calcPercent(n,e),a=this._calcPercent(o,e),r=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:s,countLessThan3Second:o,percentOfCountLessThan3Second:a,avgDelay:r}}},{key:\"reset\",value:function(){this._e2eDelayArray.length=0}}]),e}(),Qi=function(){function e(){o(this,e),this._n=\"AvgRTT\",this._requestCount=0,this._rttArray=[]}return a(e,[{key:\"addRequestCount\",value:function(){this._requestCount+=1}},{key:\"addRTT\",value:function(e){this._rttArray.push(e)}},{key:\"_calcTotalCount\",value:function(){return this._requestCount}},{key:\"_calcRTTCount\",value:function(e){return e.length}},{key:\"_calcSuccessRateOfRequest\",value:function(e,t){if(0===t)return 0;var n=bt(e/t*100,2);return n>100&&(n=100),n}},{key:\"_calcAvg\",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:\"_calcMax\",value:function(){return Math.max.apply(Math,m(this._rttArray))}},{key:\"_calcMin\",value:function(){return Math.min.apply(Math,m(this._rttArray))}},{key:\"getStatResult\",value:function(){var e=this._calcTotalCount(),t=m(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),o=this._calcSuccessRateOfRequest(n,e),s=this._calcAvg(t,n);return xe.l(\"\".concat(this._n,\".getStatResult max:\").concat(this._calcMax(),\" min:\").concat(this._calcMin(),\" avg:\").concat(s)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:o,avgRTT:s}}},{key:\"reset\",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),Zi=function(){function e(){o(this,e),this._map=new Map}return a(e,[{key:\"initMap\",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:\"addTotalCount\",value:function(e){return!(at(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:\"addSuccessCount\",value:function(e){return!(at(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:\"addFailedCountOfUserSide\",value:function(e){return!(at(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:\"addCost\",value:function(e,t){return!(at(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:\"addFileSize\",value:function(e,t){return!(at(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:\"_calcSuccessRateOfBusiness\",value:function(e){if(at(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=bt(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:\"_calcSuccessRateOfPlatform\",value:function(e){if(at(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=bt(n,2))>100&&(n=100),n}},{key:\"_calcTotalCount\",value:function(e){return at(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:\"_calcSuccessCountOfBusiness\",value:function(e){return at(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:\"_calcSuccessCountOfPlatform\",value:function(e){if(at(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:\"_calcAvg\",value:function(e){return at(e)||!this._map.has(e)?-1:e===Ma?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:\"_calcAvgCost\",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:\"_calcAvgSpeed\",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:\"getStatResult\",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),o=this._calcSuccessRateOfBusiness(e),s=this._calcSuccessCountOfPlatform(e),a=this._calcSuccessRateOfPlatform(e),r=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:o,successCountOfPlatform:s,successRateOfPlatform:a,avgValue:r}}},{key:\"reset\",value:function(e){at(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),$i=function(){function e(){o(this,e),this._lastMap=new Map,this._currentMap=new Map}return a(e,[{key:\"initMap\",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:\"addMessageSequence\",value:function(e){var t=e.key,n=e.message;if(at(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var o=n.conversationID,s=n.sequence,a=o.replace(S.CONV_GROUP,\"\");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(a)){var r=this._lastMap.get(t).get(a),i=r.length-1;s>r[0]&&s<r[i]?(r.push(s),r.sort(),this._lastMap.get(t).set(a,r)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:\"_addCurrentMap\",value:function(e){var t=e.key,n=e.message,o=n.conversationID,s=n.sequence,a=o.replace(S.CONV_GROUP,\"\");this._currentMap.get(t).has(a)||this._currentMap.get(t).set(a,[]),this._currentMap.get(t).get(a).push(s)}},{key:\"_copyData\",value:function(e){if(!at(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),o=D(this._currentMap.get(e));try{for(o.s();!(t=o.n()).done;){var s=v(t.value,2),a=s[0],r=s[1];n.set(a,r)}}catch(i){o.e(i)}finally{o.f()}n=null,this._currentMap.set(e,new Map)}}},{key:\"getStatResult\",value:function(e){if(at(this._currentMap.get(e))||at(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,o){var s=m(e.values()),a=s.length,r=s[a-1]-s[0]+1;t+=r,n+=a})),0===t)return null;var o=bt(n/t*100,2);return o>100&&(o=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:o}}},{key:\"reset\",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),eu=function(e){i(s,e);var n=f(s);function s(e){var t;o(this,s),(t=n.call(this,e))._n=\"QualityStatModule\",t.TAG=\"im-ssolog-quality-stat\",t.reportIndex=0,t.wholePeriod=!1,t._qualityItems=[ga,_a,ha,fa,va,ma,Ma,ya,Ia,Ca],t._messageSentItems=[ha,fa,va,ma,Ma],t._messageReceivedItems=[ya,Ia,Ca],t.REPORT_INTERVAL=120,t.REPORT_SDKAPPID_BLACKLIST=[],t.REPORT_TINYID_WHITELIST=[],t._statInfoArr=[],t._avgRTT=new Qi,t._avgE2EDelay=new Xi,t._rateMessageSent=new Zi,t._rateMessageReceived=new $i;var a=t.getInnerEmitterInstance();return a.on(Za,t._onLoginSuccess,_(t)),a.on($a,t._onCloudConfigUpdated,_(t)),t}return a(s,[{key:\"_onLoginSuccess\",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(xn),n=t.getItem(this.TAG,!1);!jt(n)&&it(n.forEach)&&(xe.l(\"\".concat(this._n,\"._onLoginSuccess get quality stat logs from local storage, count:\").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"q_rpt_interval\"),t=this.getCloudConfig(\"q_rpt_sdkappid_bl\"),n=this.getCloudConfig(\"q_rpt_tinyid_wl\");at(e)||(this.REPORT_INTERVAL=Number(e)),at(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(\",\").map((function(e){return Number(e)}))),at(n)||(this.REPORT_TINYID_WHITELIST=n.split(\",\"))}},{key:\"onCheckTimer\",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:\"addRequestCount\",value:function(){this._avgRTT.addRequestCount()}},{key:\"addRTT\",value:function(e){this._avgRTT.addRTT(e)}},{key:\"addMessageDelay\",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:\"addTotalCount\",value:function(e){this._rateMessageSent.addTotalCount(e)||xe.w(\"\".concat(this._n,\".addTotalCount invalid key:\"),e)}},{key:\"addSuccessCount\",value:function(e){this._rateMessageSent.addSuccessCount(e)||xe.w(\"\".concat(this._n,\".addSuccessCount invalid key:\"),e)}},{key:\"addFailedCountOfUserSide\",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||xe.w(\"\".concat(this._n,\".addFailedCountOfUserSide invalid key:\"),e)}},{key:\"addCost\",value:function(e,t){this._rateMessageSent.addCost(e,t)||xe.w(\"\".concat(this._n,\".addCost invalid key or cost:\"),e,t)}},{key:\"addFileSize\",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||xe.w(\"\".concat(this._n,\".addFileSize invalid key or size:\"),e,t)}},{key:\"addMessageSequence\",value:function(e){this._rateMessageReceived.addMessageSequence(e)||xe.w(\"\".concat(this._n,\".addMessageSequence invalid key:\"),e.key)}},{key:\"_getQualityItem\",value:function(e){var n={},o=Ea[this.getNetworkType()];at(o)&&(o=8);var s={qualityType:Ta[e],timestamp:Ue(),networkType:o,extension:\"\"};switch(e){case ga:n=this._avgRTT.getStatResult();break;case _a:n=this._avgE2EDelay.getStatResult();break;case ha:case fa:case va:case ma:case Ma:n=this._rateMessageSent.getStatResult(e);break;case ya:case Ia:case Ca:n=this._rateMessageReceived.getStatResult(e)}return null===n?null:t(t({},s),n)}},{key:\"_report\",value:function(e){var t=this,n=[],o=null;at(e)?this._qualityItems.forEach((function(e){null!==(o=t._getQualityItem(e))&&(o.reportIndex=t.reportIndex,o.wholePeriod=t.wholePeriod,n.push(o))})):null!==(o=this._getQualityItem(e))&&(o.reportIndex=this.reportIndex,o.wholePeriod=this.wholePeriod,n.push(o)),xe.d(\"\".concat(this._n,\"._report\"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var s=this.getModule(qn),a=s.getSDKAppID(),r=s.getTinyID();wt(this.REPORT_SDKAPPID_BLACKLIST,a)&&!Ft(this.REPORT_TINYID_WHITELIST,r)&&(n=[]),n.length>0&&this._doReport(n)}},{key:\"_doReport\",value:function(e){var n=this,o={header:ti(this),quality:e};this.request({protocolName:xs,requestData:t({},o)}).then((function(){n.reportIndex++,n.wholePeriod=!1})).catch((function(t){xe.w(\"\".concat(n._n,\"._doReport, online:\").concat(n.getNetworkType(),\" error:\"),t),n._statInfoArr=n._statInfoArr.concat(e),n._flushAtOnce()}))}},{key:\"_flushAtOnce\",value:function(){var e=this.getModule(xn),t=e.getItem(this.TAG,!1),n=this._statInfoArr,o=\"\".concat(this._n,\"._flushAtOnce\");if(jt(t))xe.l(\"\".concat(o,\" count:\").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var s=n.concat(t);s.length>10&&(s=s.slice(0,10)),xe.l(\"\".concat(o,\" count:\").concat(s.length)),e.setItem(this.TAG,s,!0,!1)}this._statInfoArr=[]}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),s}(ro),tu=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"WorkerTimerModule\",s._isWorkerEnabled=!0,s._workerTimer=null,s._timerID=-1,s._init(),s.getInnerEmitterInstance().on($a,s._onCloudConfigUpdated,_(s)),s}return a(n,[{key:\"isWorkerEnabled\",value:function(){return this._isWorkerEnabled&&Se}},{key:\"startWorkerTimer\",value:function(){xe.l(\"\".concat(this._n,\".startWorkerTimer\")),this._workerTimer&&this._workerTimer.postMessage(\"start\")}},{key:\"stopWorkerTimer\",value:function(){xe.l(\"\".concat(this._n,\".stopWorkerTimer\")),this._workerTimer&&this._workerTimer.postMessage(\"stop\")}},{key:\"_init\",value:function(){if(Se){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) {  if (event.data === \"start\") {    if (interval > 0) {      clearInterval(interval);    }    interval = setInterval(() => {      postMessage(\"\");    }, 1000);    postMessage(interval);  } else if (event.data === \"stop\") {    clearInterval(interval);    interval = -1;  }};'],{type:\"application/javascript; charset=utf-8\"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(e){e.data?(t._timerID=e.data,xe.l(\"\".concat(t._n,\"._init seed:\").concat(t._timerID))):t._m.onCheckTimer()}}}},{key:\"_onCloudConfigUpdated\",value:function(){var e=this.getCloudConfig(\"enable_worker\");xe.l(\"\".concat(this._n,\"._onCloudConfigUpdated enableWorker:\").concat(e)),at(e)||\"1\"===e?!this._isWorkerEnabled&&Se&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._m.onWorkerTimerEnabled()):this._isWorkerEnabled&&Se&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._m.onWorkerTimerDisabled())}},{key:\"terminate\",value:function(){xe.l(\"\".concat(this._n,\".terminate\")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null,this._timerID=-1)}},{key:\"getTimerID\",value:function(){return this._timerID}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\"))}}]),n}(ro),nu=function(){function e(){o(this,e),this._n=\"PurchasedFeatureHandler\",this._purchasedFeatureMap=new Map}return a(e,[{key:\"isValidPurchaseBits\",value:function(e){return e&&\"string\"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:\"parsePurchaseBits\",value:function(e){if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var t=null,n=e.length-1,o=0;n>=0;n--,o++)t=o<32?new L(0,Math.pow(2,o)).toString():new L(Math.pow(2,o-32),0).toString(),\"1\"===e[n]?this._purchasedFeatureMap.set(t,!0):this._purchasedFeatureMap.set(t,!1)}else xe.w(\"\".concat(this._n,\".parsePurchaseBits invalid purchasebits:\").concat(e))}},{key:\"hasPurchasedFeature\",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:\"isFeatureEnabled\",value:function(e){for(var t=parseInt(e).toString(2),n=void 0,o=!0,s=t.length-1,a=0;s>=0;s--,a++)if(\"1\"===t.charAt(s)&&(n=a<32?new L(0,Math.pow(2,a)).toString():new L(Math.pow(2,a-32),0).toString(),!this._purchasedFeatureMap.get(n))){o=!1;break}return xe.l(\"\".concat(this._n,\".isFeatureEnabled decimalNumber:\").concat(e,\" binaryString:\").concat(t,\" ret:\").concat(o)),za({enabled:o})}},{key:\"clear\",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),ou=function(){function e(t){o(this,e),this._m=t,this._n=\"CommercialConfigModule\",this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler=new nu}return a(e,[{key:\"_canFetch\",value:function(){return this._getModule(qn).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:\"onCheckTimer\",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:\"fetchConfig\",value:function(){var e=this,t=this._canFetch(),n=\"\".concat(this._n,\".fetchConfig\");if(xe.l(\"\".concat(n,\" canFetch:\").concat(t)),t){var o=this._getModule(Bn),s=new ka(\"fetchCommercialConfig\");s.setNetworkType(o.getNetworkType());var a=this._getModule(qn).getSDKAppID(),r=this._getModule(jn);this._isFetching=!0,r.request({protocolName:Xs,requestData:{SDKAppID:a}}).then((function(t){s.setMessage(\"purchaseBits:\".concat(t.data.purchaseBits)).end(),xe.l(\"\".concat(n,\" ok.\")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){o.probe().then((function(e){var n=v(e,2),o=n[0],a=n[1];s.setError(t,o,a).end()})),e._isFetching=!1}))}}},{key:\"onPushedConfig\",value:function(e){var t=\"\".concat(this._n,\".onPushedConfig data:\").concat(JSON.stringify(e));xe.l(\"\".concat(t)),new ka(\"pushedCommercialConfig\").setNetworkType(this._getModule(Bn).getNetworkType()).setMessage(\"purchaseBits:\".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:\"_parseConfig\",value:function(e){var t=\"\".concat(this._n,\"._parseConfig\"),n=e.errorCode,o=e.errorMessage,s=e.purchaseBits,a=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(s),this._expiredTime=Date.now()+1e3*a):at(n)?(xe.l(\"\".concat(t,\" failed. Invalid message format:\"),e),this._setExpiredTimeOnResponseError(36e5)):(xe.e(\"\".concat(t,\" errorCode:\").concat(n,\" errorMessage:\").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:\"_setExpiredTimeOnResponseError\",value:function(e){this._expiredTime=Date.now()+e}},{key:\"canIUse\",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:\"isFeatureEnabled\",value:function(e){return this._purchasedFeatureHandler.isFeatureEnabled(e)}},{key:\"_getModule\",value:function(e){return this._m.getModule(e)}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),e}(),su=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._m=e,s._n=\"OfflinePushModule\",s._offlinePushPlugin=void 0,s._androidPushConfig={huaweiPushBussinessId:\"\",xiaomiPushBussinessId:\"\",xiaomiPushAppId:\"\",xiaomiPushAppKey:\"\",meizuPushBussinessId:\"\",meizuPushAppId:\"\",meizuPushAppKey:\"\",vivoPushBussinessId:\"\",fcmPushBussinessId:\"\",oppoPushBussinessId:\"\",oppoPushAppKey:\"\",oppoPushAppSecret:\"\",honorPushBussinessId:\"\"},s._deviceToken=\"\",s._businessID=0,s._iosBusinessID=0,s._c2cUnreadCount=0,s._groupUnreadCount=0,s._isWebUniapp=0,s}return a(n,[{key:\"registerPlugin\",value:function(e){if(ne){this._offlinePushPlugin=e[\"tim-offline-push-plugin\"];var t=e.offlinePushConfig||{},n=t.huaweiBusinessID,o=t.xiaomiBusinessID,s=t.xiaomiAppID,a=t.xiaomiAppKey,r=t.meizuBusinessID,i=t.meizuAppID,u=t.meizuAppKey,c=t.vivoBusinessID,l=t.oppoBusinessID,p=t.oppoAppKey,d=t.oppoAppSecret,g=t.honorBusinessID,_=t.iosBusinessID;this._androidPushConfig.huaweiPushBussinessId=n,this._androidPushConfig.xiaomiPushBussinessId=o,this._androidPushConfig.xiaomiPushAppId=s,this._androidPushConfig.xiaomiPushAppKey=a,this._androidPushConfig.meizuPushBussinessId=r,this._androidPushConfig.meizuPushAppId=i,this._androidPushConfig.meizuPushAppKey=u,this._androidPushConfig.vivoPushBussinessId=c,this._androidPushConfig.oppoPushBussinessId=l,this._androidPushConfig.oppoPushAppKey=p,this._androidPushConfig.oppoPushAppSecret=d,this._androidPushConfig.honorPushBussinessId=g,new ka(\"registerPlugin\").setMessage(\"tim-offline-push-plugin\").setMoreMessage(\"isExist:\".concat(!at(this._offlinePushPlugin))).end(!0),xe.l(\"\".concat(this._n,\".\").concat(\"registerPlugin\",\" ok. offlinePushConfig:\").concat(JSON.stringify(e.offlinePushConfig))),this._iosBusinessID=_,this._setAppShowListener()}else this.outputWarning(\"OfflinePushInUniapp\")}},{key:\"init\",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken()}},{key:\"_getDeviceToken\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_getDeviceToken\");if(it(this._offlinePushPlugin.getDeviceToken)){var n=\"androidPushConfig:\".concat(JSON.stringify(this._androidPushConfig),\", iosBusinessID:\").concat(this._iosBusinessID);xe.l(\"\".concat(t,\" start. \").concat(n)),new ka(\"_getDeviceToken\").setMessage(\"\".concat(n)).end(!0),this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,(function(o){var s=new ka(\"getDeviceTokenRes\"),a=o.code,r=o.msg;if(0===a){var i=o.data,u=i.deviceToken,c=i.deviceBrand,l=i.deviceType,p=i.bussinessId;e._deviceToken=u,e._businessID=p||e._iosBusinessID,n=\"deviceToken:\".concat(u,\", deviceBrand:\").concat(c||l,\", businessID:\").concat(e._businessID),xe.l(\"\".concat(t,\" ok. \").concat(n)),s.setMessage(n).end(!0),e._setToken()}else s.setMessage(\"code:\".concat(a,\", msg:\").concat(r)).end(!0),xe.e(\"\".concat(t,\" failed. error:\"),o)}))}else xe.e(\"\".concat(t,\" getDeviceToken is not a function\"))}},{key:\"canIUseOfflinePush\",value:function(){return ne&&!at(this._offlinePushPlugin)}},{key:\"_setAppShowListener\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_setAppShowListener\");at(this._offlinePushPlugin)?xe.e(\"\".concat(t,\" offlinePushPlugin is undefined\")):it(this._offlinePushPlugin.setAppShowListener)?(new ka(\"_setAppShowListener\").end(!0),xe.l(\"\".concat(t,\" start\")),this._offlinePushPlugin.setAppShowListener((function(n){var o=(n||{}).appShow;new ka(\"setAppShowListenerRes\").setMessage(\"appShow:\".concat(o)).end(!0),xe.l(\"\".concat(t,\" ok. appShow:\").concat(o)),e._m.isReady()&&(0===o?(e._getConvUnreadCount(),e._onBackground()):1===o&&e._onForeground())}))):xe.e(\"\".concat(t,\" setAppShowListener is not a function\"))}},{key:\"getDeviceBrand\",value:function(){if(!at(this._offlinePushPlugin)&&it(this._offlinePushPlugin.getDeviceType)){var e=(this._offlinePushPlugin.getDeviceType()||{}).deviceType;return xe.l(\"\".concat(this._n,\".getDeviceBrand ok. deviceType:\").concat(e)),e}}},{key:\"_setToken\",value:function(){var e,t=this,n=\"\".concat(this._n,\"._setToken\"),o=this.getModule(qn),s=1,a=\"\",r=\"\";jt(this._deviceToken)&&(s=0);var i=this.getUniAppPlatform(),u=this.getDeviceBrand();i===R.IOS||i===R.IPAD||i===R.MAC?r=this._deviceToken:i===R.ANDROID&&(a=this._deviceToken);var c=new ka(\"offlinePushSetToken\");return e=\"deviceToken:\".concat(r||a,\", businessID:\").concat(this._businessID,\", \")+\"deviceBrand:\".concat(u,\", isWebUniapp:\").concat(this._isWebUniapp,\", pushMsg:\").concat(s,\", platform:\").concat(i),c.setMessage(\"\".concat(e)),xe.l(\"\".concat(n,\" \").concat(e)),this.request({protocolName:ca,requestData:{tokenID:a,pushMsg:s,sdkAppID:o.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:u,deviceToken:r,isWebUniapp:this._isWebUniapp}}).then((function(e){return c.end(),xe.l(\"\".concat(n,\" ok\")),e})).catch((function(e){return t.probeNetwork().then((function(t){var n=v(t,2),o=n[0],s=n[1];c.setError(e,o,s).end()})),xe.e(\"\".concat(n,\" failed. error:\"),e),Ja(e)}))}},{key:\"_getConvUnreadCount\",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.getModule(Fn).getLocalConversationList().forEach((function(t){t.type===S.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===S.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:\"_onBackground\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_onBackground\"),n=new ka(\"_onBackground\");this.request({protocolName:ia,requestData:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(o){return n.setMessage(\"c2cUnreadCount: \".concat(e._c2cUnreadCount,\", groupUnreadCount: \").concat(e._groupUnreadCount)).end(),xe.l(\"\".concat(t,\" ok\")),o})).catch((function(o){e.probeNetwork().then((function(e){var t=v(e,2),s=t[0],a=t[1];n.setError(o,s,a).end()})),xe.e(\"\".concat(t,\" failed. error:\"),o)}))}},{key:\"_onForeground\",value:function(){var e=this,t=\"\".concat(this._n,\".\").concat(\"_onForeground\"),n=new ka(\"_onForeground\");this.request({protocolName:ua,requestData:{isWebUniapp:this._isWebUniapp}}).then((function(e){return n.end(),xe.l(\"\".concat(t,\" ok\")),e})).catch((function(o){e.probeNetwork().then((function(e){var t=v(e,2),s=t[0],a=t[1];n.setError(o,s,a).end()})),xe.e(\"\".concat(t,\" failed. error:\"),o)}))}},{key:\"getUniAppPlatform\",value:function(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return\"ios\"===e?R.IOS:\"android\"===e?R.ANDROID:1002===t?R.IPAD:1001===t?R.MAC:void 0}},{key:\"reset\",value:function(){this._deviceToken=\"\",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,xe.l(\"\".concat(this._n,\".reset\"))}}]),n}(ro),au=function(e){i(n,e);var t=f(n);function n(e){var s;return o(this,n),(s=t.call(this,e))._n=\"ProfanityFilterModule\",s._plugin=null,s._filterConfigMap=new Map,s._startIndex=0,s._version=0,s._canIUseLexicon=!1,s._isFetching=!1,s._expiredTime=0,s}return a(n,[{key:\"init\",value:function(){var e=this.getModule(Wn).getPlugin(\"tim-profanity-filter-plugin\");e?(this._plugin=new e({logger:xe,isArray:st,isMap:Qe,isDevMode:this.isDevMode()}),this._getLexicon()):this.outputWarning(\"ProfanityPluginNotFound\")}},{key:\"onCheckTimer\",value:function(){this._plugin&&this._canIUseLexicon&&this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime&&this._getLexicon()}},{key:\"filterMessage\",value:function(e,t){var n=!0;if(!this._plugin||!this._canIUseLexicon)return n;if(t&&t.messageControlInfo&&!0===t.messageControlInfo.excludedFromContentModeration)return n;var o=e.type,s=e.conversationType;if(o!==S.MSG_TEXT&&o!==S.MSG_CUSTOM)return n;var a,r=\"\".concat(this._n,\".filterMessage\");if(xe.l(\"\".concat(r)),o===S.MSG_TEXT){if(s===S.CONV_C2C?a=H:s===S.CONV_GROUP&&(a=W),!this._isConfigOn(a))return n;var i=this._plugin.filter(e.payload.text),u=i.type,c=i.modifiedText;1===u?n=!1:2===u&&(e.payload.text=c)}else if(o===S.MSG_CUSTOM){if(s===S.CONV_C2C?a=K:s===S.CONV_GROUP&&(a=Y),!this._isConfigOn(a))return n;var l=this._plugin.filter(e.payload.data),p=this._plugin.filter(e.payload.description),d=this._plugin.filter(e.payload.extension);1===l.type||1===p.type||1===d.type?n=!1:(2===l.type&&(e.payload.data=l.modifiedText),2===p.type&&(e.payload.description=p.modifiedText),2===d.type&&(e.payload.extension=d.modifiedText))}return xe.l(\"\".concat(r,\" done. isAllowedToSend:\").concat(n)),n}},{key:\"filterText\",value:function(e,t){var n=\"\".concat(this._n,\".filterText\"),o={isAllowedToSend:!0,modifiedText:e};if(!this._plugin||!this._canIUseLexicon)return o;if(!this._isConfigOn(t))return o;xe.l(\"\".concat(n));var s=this._plugin.filter(e),a=s.type,r=s.modifiedText;return 1===a?o.isAllowedToSend=!1:2===a&&(o.modifiedText=r),xe.l(\"\".concat(n,\" done. ret:\"),o),o}},{key:\"_getLexicon\",value:function(){var e=this,t=new ka(\"profanityFilter\"),n=\"\".concat(this._n,\"._getLexicon\");this._isFetching=!0,this.request({protocolName:la,requestData:{startIndex:this._startIndex,version:this._version}}).then((function(o){var s=o.data,a=s.errorInfo,r=s.filterConfig,i=s.lexicon,u=s.strToken,c=s.completeFlag,l=s.nextStartIndex,p=s.version,d=s.expiredTime,g=a.errorCode,_=a.errorMessage;return 0!==g?(e._isFetching=!1,xe.w(\"\".concat(n,\" failed. error:\"),a),void t.setCode(g).setMessage(_).end()):(e._onFilterConfig(r),e._getToken(u),1===c?(xe.l(\"\".concat(n,\" done. version:\").concat(p,\" expiredTime:\").concat(d)),e._version=p,e._canIUseLexicon=!0,e._isFetching=!1,e._expiredTime=Date.now()+1e3*d,void e._plugin.onLexiconCompleted(i)):(e._startIndex=l,e._plugin.onLexiconSliced(i),void e._getLexicon()))})).catch((function(o){e.probeNetwork().then((function(e){var n=v(e,2),s=n[0],a=n[1];t.setError(o,s,a).end()})),e._isFetching=!1,xe.l(\"\".concat(n,\" failed. error:\"),o)}))}},{key:\"_onFilterConfig\",value:function(e){var t=this;jt(e)||(this._filterConfigMap.clear(),Object.keys(e).forEach((function(n){t._filterConfigMap.set(n,e[n])})),xe.l(\"\".concat(this._n,\"._onFilterConfig. keys:\").concat(Array.from(this._filterConfigMap.keys()),\" values:\").concat(Array.from(this._filterConfigMap.values()))))}},{key:\"_isConfigOn\",value:function(e){return 1===this._filterConfigMap.get(e)}},{key:\"_getToken\",value:function(e){if(et(e)){var t=e.length,n=\"\";if(t%2==0)for(var o=0;o<=t-1;o+=2)n+=e[o+1],n+=e[o];else{for(var s=0;s<t-1;s+=2)n+=e[s+1],n+=e[s];n+=e[t-1]}this._plugin.onToken(n)}}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),this._plugin&&(this._plugin.reset(),this._plugin=null),this._filterConfigMap.clear(),this._startIndex=0,this._version=0,this._canIUseLexicon=!1,this._isFetching=!1,this._expiredTime=0}}]),n}(ro),ru=function(){function e(t){o(this,e),this._m=t,this._n=\"TransCmdModule\",this._TRTCCommandList=[\"tui_room_svr.*\"],this._m.getInnerEmitterInstance().on($a,this._onCloudConfigUpdated,this)}return a(e,[{key:\"_onCloudConfigUpdated\",value:function(){var e=this,t=this._m.getModule(Xn).getCloudConfig(\"rtc_cmd\");at(t)||(t=JSON.parse(t)).forEach((function(t){e._TRTCCommandList.includes(t)||e._TRTCCommandList.push(t)}))}},{key:\"sendTRTCCustomData\",value:function(e){var t=e.serviceCommand,n=e.data,o=\"\".concat(V.NAME.TUIROOM_SVR,\".*\");return at(t)||(o=t),this._TRTCCommandList.includes(o)?this._trans({servcmd:o,data:n}):Ja({code:da.INVALID_TRTC_CMD})}},{key:\"_trans\",value:function(e){xe.d(\"\".concat(this._n,\"._trans. options:\").concat(JSON.stringify(e)));var t=e.servcmd,n=e.data;return this._m.getModule(jn).trans({servcmd:t,data:et(n)?JSON.parse(n):n})}},{key:\"getCommandList\",value:function(){return this._TRTCCommandList}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\"))}}]),e}(),iu=function(){function e(t){o(this,e),this._m=t,this._n=\"ErrorMessageModule\",this.TIM_ERROR_ASSISTANCE=\"tim_error_assistance\",this.STORAGE_EXPIRES_TIME=6048e5,this._map=new Map,this._init()}return a(e,[{key:\"_init\",value:function(){var e=this._getStorageModule().getItem(this.TIM_ERROR_ASSISTANCE,!1);if(e){var t;try{t=JSON.parse(e)}catch(n){this._getStorageModule().removeItem(this.TIM_ERROR_ASSISTANCE,!1),xe.w(\"\".concat(this._n,\"._init error:\"),n)}t&&(this._needToUpdate(t)?this._fetch():this._fillMap(t.message))}else this._fetch()}},{key:\"_needToUpdate\",value:function(e){var t=e.localSavedTime,n=e.localSavedVersion,o=t&&(new Date).getTime()-t>=this.STORAGE_EXPIRES_TIME,s=!n||\"2.27.5\"!==n;return xe.l(\"\".concat(this._n,\"._needToUpdate isTimeout:\").concat(o,\" isDifferentVersion:\").concat(s)),o||s}},{key:\"_fetch\",value:function(){if(!this._m.getModule(qn).isPrivateNetWork()){var e=\"https://web.sdk.qcloud.com/im/download/error-message/0.0.1/tim-error-message.txt\",t=\"application/x-www-form-urlencoded;charset=UTF-8\",n=\"\".concat(this._n,\"._fetch ok in\"),o=this;if(se)re.request({url:e,method:\"GET\",timeout:3e3,header:{\"content-type\":t},dataType:\"text\",success:function(e){o._fillAndSave(e.data),xe.l(\"\".concat(n,\" mini program\"))},fail:function(){}});else{var s=new XMLHttpRequest,a=setTimeout((function(){s.abort()}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(a),200!==s.status&&304!==s.status||(xe.l(\"\".concat(n,\" browser\")),o._fillAndSave(s.responseText)))},s.open(\"GET\",e,!0),s.setRequestHeader(\"Content-type\",t),s.send()}}}},{key:\"_fillAndSave\",value:function(e){this._fillMap(e),this._getStorageModule().setItem(this.TIM_ERROR_ASSISTANCE,JSON.stringify({message:e,localSavedTime:(new Date).getTime(),localSavedVersion:\"2.27.5\"}),!0,!1)}},{key:\"_getStorageModule\",value:function(){return this._m.getModule(xn)}},{key:\"_fillMap\",value:function(e){this._map.clear();for(var t,n,o,s=e.split(\";\\n\"),a=s.length,r=new RegExp(/'/g),i=0;i<a;i++)if(t=s[i].indexOf(\":\"),n=s[i].slice(0,t),o=s[i].slice(t+1,s[i].length),!n.startsWith(\"//\")){if(at(o))continue;this._map.set(n,o.replace(r,\"\"))}}},{key:\"get\",value:function(e){var t=e.isIntl,n=e.key,o=e.replacement1,s=e.replacement2,a=\"\".concat(n,t?\"_en\":\"_cn\");!this._map.has(a)&&this._map.has(n)&&(a=n);var r=\"\";return this._map.has(a)?(r=this._map.get(a),at(o)||(r=r.replace(\"$replacement1\",o)),at(s)||(r=r.replace(\"$replacement2\",s)),r):r}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\"))}}]),e}(),uu=function(){function e(t){o(this,e);var n=new ka(\"sdkConstruct\");this._n=\"ModuleManager\",this._isReady=!1,this._reason=da.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(qn,new Xr(this,t)),this._moduleMap.set(eo,new ou(this)),this._moduleMap.set(Xn,new zi(this)),this._moduleMap.set(Qn,new tu(this)),this._moduleMap.set($n,new eu(this)),this._moduleMap.set(zn,new qi(this)),this._moduleMap.set(jn,new Yi(this)),this._moduleMap.set(An,new Qr(this)),this._moduleMap.set(Rn,new fi(this)),this._moduleMap.set(Nn,new vi(this)),this._moduleMap.set(so,new mi(this)),this._moduleMap.set(On,new Jr(this)),this._moduleMap.set(Gn,new Xa(this)),this._moduleMap.set(Fn,new vr(this)),this._moduleMap.set(Un,new wr(this)),this._moduleMap.set(bn,new qr(this)),this._moduleMap.set(wn,new Hr(this)),this._moduleMap.set(xn,new $r(this)),this._moduleMap.set(ao,new iu(this)),this._moduleMap.set(Vn,new ni(this)),this._moduleMap.set(Bn,new ri(this)),this._moduleMap.set(Hn,new ui(this)),this._moduleMap.set(Kn,new li(this)),this._moduleMap.set(Wn,new Mi(this)),this._moduleMap.set(Yn,new yi(this)),this._moduleMap.set(Jn,new ji(this)),this._moduleMap.set(Zn,new Ji(this)),this._moduleMap.set(to,new su(this)),this._moduleMap.set(no,new au(this)),this._moduleMap.set(oo,new ru(this)),this._eventThrottleMap=new Map;var s=t.instanceID,a=t.oversea,r=t.SDKAppID,i=\"instanceID:\".concat(s,\" SDKAppID:\").concat(r,\" host:\").concat(Nt(),\" oversea:\").concat(a,\" inBrowser:\").concat(ae,\" inMiniApp:\").concat(se)+\" workerAvailable:\".concat(Se,\" UserAgent:\").concat(ie);ka.bindEventStatModule(this._moduleMap.get(Vn)),n.setMessage(\"\".concat(i,\" \").concat(function(){var e=\"\";if(se)try{var t=re.getSystemInfoSync(),n=t.model,o=t.version,s=t.system,a=t.platform,r=t.SDKVersion;e=\"model:\".concat(n,\" version:\").concat(o,\" system:\").concat(s,\" platform:\").concat(a,\" SDKVersion:\").concat(r)}catch(i){e=\"\"}return e}())).end(),xe.i(\"SDK \".concat(i)),Wa.prototype._getErrorMessage=this.getErrorMessage.bind(this),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return a(e,[{key:\"_startTimer\",value:function(){var e=this._moduleMap.get(Qn),t=e.isWorkerEnabled();xe.l(\"\".concat(this._n,\".startTimer isWorkerEnabled:\").concat(t,\" seed:\").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:\"_startMainThreadTimer\",value:function(){this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3)),xe.l(\"\".concat(this._n,\"._startMainThreadTimer seed:\").concat(this._checkTimer))}},{key:\"stopTimer\",value:function(){var e=this._moduleMap.get(Qn),t=e.isWorkerEnabled();xe.l(\"\".concat(this._n,\".stopTimer isWorkerEnabled:\").concat(t,\" seed:\").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:\"_stopMainThreadTimer\",value:function(){xe.l(\"\".concat(this._n,\"._stopMainThreadTimer\")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:\"_stopMainThreadSocket\",value:function(){xe.l(\"\".concat(this._n,\"._stopMainThreadSocket\"));var e=this._moduleMap.get(zn);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:\"_startMainThreadSocket\",value:function(){xe.l(\"\".concat(this._n,\"._startMainThreadSocket\"));var e=this._moduleMap.get(zn);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:\"onWorkerTimerEnabled\",value:function(){xe.l(\"\".concat(this._n,\".onWorkerTimerEnabled, disable main thread timer and socket\")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:\"onWorkerTimerDisabled\",value:function(){xe.l(\"\".concat(this._n,\".onWorkerTimerDisabled, enable main thread timer and socket\")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:\"onCheckTimer\",value:function(){this._checkCount+=1;var e,t=D(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(o){t.e(o)}finally{t.f()}}},{key:\"_initReadyList\",value:function(){var e=this;this._readyList=[this._moduleMap.get(An),this._moduleMap.get(Fn)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:\"_onModuleReady\",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(E.SDK_READY);var t=Date.now()-this._startLoginTs;xe.w(\"SDK is ready. cost \".concat(t,\" ms\")),this._startLoginTs=Date.now();var n=this._moduleMap.get(Bn).getNetworkType(),o=this._ssoLogForReady.getStartTs()+Ge;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(o).end()}}},{key:\"login\",value:function(){0===this._startLoginTs&&(Pe(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(Bn).start(),this._ssoLogForReady=new ka(\"sdkReady\"),this._reason=da.LOGGING_IN)}},{key:\"onLoginFailed\",value:function(){this._startLoginTs=0}},{key:\"getOuterEmitterInstance\",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new ii,ja(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===E.CONVERSATION_LIST_UPDATED||e===E.FRIEND_LIST_UPDATED||e===E.GROUP_LIST_UPDATED||e===E.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED)if(this._eventThrottleMap.has(e)){var o=Date.now(),s=this._eventThrottleMap.get(e);o-s.last<=1e3?(s.timeoutID&&clearTimeout(s.timeoutID),s.timeoutID=setTimeout((function(){s.last=Date.now(),n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),1e3)):(s.last=o,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:\"_getEventData\",value:function(e){return e===E.CONVERSATION_LIST_UPDATED?this._moduleMap.get(Fn).getLocalConversationList():e===E.FRIEND_LIST_UPDATED?this._moduleMap.get(Pn).getLocalFriendList(!1):e===E.GROUP_LIST_UPDATED?this._moduleMap.get(Un).getLocalGroupList():e===E.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED?this._moduleMap.get(Fn).getTotalUnreadMessageCount():void 0}},{key:\"getInnerEmitterInstance\",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new ii,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;n=ot(arguments[1])&&arguments[1].data?[e,{name:arguments[0],data:arguments[1].data}]:[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:\"hasModule\",value:function(e){return this._moduleMap.has(e)}},{key:\"getModule\",value:function(e){return this._moduleMap.get(e)}},{key:\"isReady\",value:function(){return this._isReady}},{key:\"isIntl\",value:function(){return this.getModule(qn).isIntl()}},{key:\"getNotReadyReason\",value:function(){return this._reason}},{key:\"setNotReadyReason\",value:function(e){this._reason=e}},{key:\"getErrorMessage\",value:function(e,t,n){return this._moduleMap.get(ao).get({key:e,replacement1:t,replacement2:n,isIntl:this.isIntl()})}},{key:\"outputWarning\",value:function(e,t,n){var o=this.getErrorMessage(e,t,n);o&&xe.w(o)}},{key:\"onError\",value:function(e){var t=\"code:\".concat(e.code,\" message:\").concat(e.message);xe.w(\"Oops! \".concat(t)),new ka(\"error\").setMessage(t).setNetworkType(this.getModule(Bn).getNetworkType()).setLevel(\"error\").end(),this.getOuterEmitterInstance().emit(E.ERROR,e)}},{key:\"restartTimer\",value:function(){xe.l(\"\".concat(this._n,\".restartTimer\")),this.stopTimer(),this._startTimer(),this.getModule(Un).restartPolling()}},{key:\"getTimerID\",value:function(){var e=this._moduleMap.get(Qn);return e.isWorkerEnabled()?e.getTimerID():this._checkTimer}},{key:\"getPollingTimerID\",value:function(e){return this._moduleMap.get(Un).getPollingTimerID(e)}},{key:\"reset\",value:function(){xe.l(\"\".concat(this._n,\".reset\")),Pe();var e,t=D(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2)[1];n.reset&&n.reset()}}catch(r){t.e(r)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(E.SDK_NOT_READY);var o,s=D(this._eventThrottleMap);try{for(s.s();!(o=s.n()).done;){var a=v(o.value,2)[1];a.timeoutID&&clearTimeout(a.timeoutID)}}catch(r){s.e(r)}finally{s.f()}this._eventThrottleMap.clear()}}]),e}(),cu=function(){function e(t){o(this,e),this._funcMap=new Map,this._m=t}return a(e,[{key:\"defense\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(\"string\"!=typeof e)return null;if(0===e.length)return null;if(\"function\"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var o=null;return this._funcMap.get(e).has(t)?o=this._funcMap.get(e).get(t):(o=this._pack(e,t,n),this._funcMap.get(e).set(t,o)),o}},{key:\"defenseOnce\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return\"function\"!=typeof t?null:this._pack(e,t,n)}},{key:\"find\",value:function(e,t){return\"string\"!=typeof e||0===e.length||\"function\"!=typeof t?null:this._funcMap.has(e)&&this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(this._m.outputWarning(\"ListenerFnNotFound\",e),null)}},{key:\"delete\",value:function(e,t){return\"function\"==typeof t&&(!!this._funcMap.has(e)&&(!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)))}},{key:\"_pack\",value:function(e,t,n){var o=this;return function(){try{t.apply(n,Array.from(arguments))}catch(u){var s=Object.values(E).indexOf(e),a=\"CallbackError\";if(-1!==s){var r=Object.keys(E)[s];o._m.outputWarning(a,r,u)}var i=new ka(a);i.setMessage(\"eventName:\".concat(e)).setMoreMessage(u.message).end()}}}}]),e}(),lu=function(){function e(t){o(this,e);var n={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||\"\",oversea:t.oversea||!1,instanceID:Rt(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0,fileUploadProxy:t.fileUploadProxy||void 0,fileDownloadProxy:t.fileDownloadProxy||t.fileUploadProxy||void 0};this._m=new uu(n),this._safetyCallbackFactory=new cu(this._m)}return a(e,[{key:\"onError\",value:function(e){this._m.onError(e)}},{key:\"login\",value:function(e){return this._m.login(),this._getModule(An).login(e)}},{key:\"logout\",value:function(){var e=this;return this._getModule(An).logout().then((function(t){return e._m.reset(),t}))}},{key:\"isReady\",value:function(){return this._m.isReady()}},{key:\"isIntl\",value:function(){return this._m.isIntl()}},{key:\"getNotReadyReason\",value:function(){return this._m.getNotReadyReason()}},{key:\"getErrorMessage\",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:\"_getModule\",value:function(e){return this._m.getModule(e)}},{key:\"destroy\",value:function(){var e=this;return this.logout().finally((function(){e._m.stopTimer(),e._getModule(Qn).terminate(),e._getModule(zn).dealloc();var t=e._m.getOuterEmitterInstance(),n=e._getModule(qn);t.emit(E.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:\"on\",value:function(e,t,n){xe.d(\"on\",\"eventName:\".concat(e)),this._m.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:\"once\",value:function(e,t,n){xe.d(\"once\",\"eventName:\".concat(e)),this._m.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:\"off\",value:function(e,t,n,o){xe.d(\"off\",\"eventName:\".concat(e));var s=this._safetyCallbackFactory.find(e,t);null!==s&&(this._m.getOuterEmitterInstance().off(e,s,n,o),this._safetyCallbackFactory.delete(e,t))}},{key:\"registerPlugin\",value:function(e){at(e[\"tim-offline-push-plugin\"])?this._getModule(Wn).registerPlugin(e):this._getModule(to).registerPlugin(e)}},{key:\"setLogLevel\",value:function(e){if(e<=0){var t=this.getErrorMessage(\"TIM_ASCII_ART\");t&&console.log(t);var n=this.getErrorMessage(\"API_REFER\");if(n){Ht()?console.log(\"%c \".concat(\"IM SDK API ->\",\" %c\"),\"background:#ff9d00; padding:1px; border-radius:3px; color: #fff\",\"background:transparent\",n):console.log(\"IM SDK API ->\",n)}var o=this.getErrorMessage(\"DOCS_GUIDE\");o&&console.log(o)}xe.setLevel(e)}},{key:\"createTextMessage\",value:function(e){return this._getModule(Rn).createTextMessage(e)}},{key:\"createTextAtMessage\",value:function(e){return this._getModule(Rn).createTextMessage(e)}},{key:\"createImageMessage\",value:function(e){return this._getModule(Rn).createImageMessage(e)}},{key:\"createAudioMessage\",value:function(e){return this._getModule(Rn).createAudioMessage(e)}},{key:\"createVideoMessage\",value:function(e){return this._getModule(Rn).createVideoMessage(e)}},{key:\"createCustomMessage\",value:function(e){return this._getModule(Rn).createCustomMessage(e)}},{key:\"createFaceMessage\",value:function(e){return this._getModule(Rn).createFaceMessage(e)}},{key:\"createFileMessage\",value:function(e){return this._getModule(Rn).createFileMessage(e)}},{key:\"createLocationMessage\",value:function(e){return this._getModule(Rn).createLocationMessage(e)}},{key:\"createMergerMessage\",value:function(e){return this._getModule(Rn).createMergerMessage(e)}},{key:\"downloadMergerMessage\",value:function(e){return e.type!==S.MSG_MERGER?Ja({code:da.MESSAGE_MERGER_TYPE_INVALID}):jt(e.payload.downloadKey)?Ja({code:da.MESSAGE_MERGER_KEY_INVALID}):this._getModule(Rn).downloadMergerMessage(e).catch((function(e){return Ja({code:da.MESSAGE_MERGER_DOWNLOAD_FAIL})}))}},{key:\"createForwardMessage\",value:function(e){return this._getModule(Rn).createForwardMessage(e)}},{key:\"sendMessage\",value:function(e,t){return e instanceof Ha?this._getModule(Rn).sendMessageInstance(e,t):Ja({code:da.MESSAGE_SEND_NEED_MESSAGE_INSTANCE})}},{key:\"callExperimentalAPI\",value:function(e,t){return\"sendComboMessage\"===e?this._getModule(so).sendMessage(t):\"handleGroupInvitation\"===e?this._getModule(Un).handleGroupInvitation(t):\"isCommercialAbilityEnabled\"===e?this._getModule(eo).isFeatureEnabled(t):\"isIntl\"===e?this.isIntl():\"sendTRTCCustomData\"===e?this._getModule(oo).sendTRTCCustomData(t):\"getTimerID\"===e?this._m.getTimerID():\"getPollingTimerID\"===e?this._m.getPollingTimerID(t):Ja({code:da.INVALID_OPERATION})}},{key:\"revokeMessage\",value:function(e){return this._getModule(Rn).revokeMessage(e)}},{key:\"resendMessage\",value:function(e){return this._getModule(Rn).resendMessage(e)}},{key:\"deleteMessage\",value:function(e){return this._getModule(Rn).deleteMessage(e)}},{key:\"translateText\",value:function(e){return this._getModule(Rn).translateText(e)}},{key:\"setMessageExtensions\",value:function(e,t){return this._getModule(Nn).setMessageExtensions(e,t)}},{key:\"getMessageExtensions\",value:function(e){return this._getModule(Nn).getMessageExtensions(e)}},{key:\"deleteMessageExtensions\",value:function(e,t){return this._getModule(Nn).deleteMessageExtensions(e,t)}},{key:\"modifyMessage\",value:function(e){return this._getModule(Rn).modifyRemoteMessage(e)}},{key:\"getMessageList\",value:function(e){return this._getModule(Fn).getMessageList(e)}},{key:\"getMessageListHopping\",value:function(e){return this._getModule(Fn).getMessageListHopping(e)}},{key:\"sendMessageReadReceipt\",value:function(e){return this._getModule(Fn).sendReadReceipt(e)}},{key:\"getMessageReadReceiptList\",value:function(e){return this._getModule(Fn).getReadReceiptList(e)}},{key:\"getGroupMessageReadMemberList\",value:function(e){return this._getModule(Un).getReadReceiptDetail(e)}},{key:\"findMessage\",value:function(e){return this._getModule(Fn).findMessage(e)}},{key:\"setMessageRead\",value:function(e){return this._getModule(Fn).setMessageRead(e)}},{key:\"getConversationList\",value:function(e){return this._getModule(Fn).getConversationList(e)}},{key:\"getConversationProfile\",value:function(e){return this._getModule(Fn).getConversationProfile(e)}},{key:\"deleteConversation\",value:function(e){return this._getModule(Fn).deleteConversation(e)}},{key:\"clearHistoryMessage\",value:function(e){return this._getModule(Fn).clearHistoryMessage(e)}},{key:\"pinConversation\",value:function(e){return this._getModule(Fn).pinConversation(e)}},{key:\"setAllMessageRead\",value:function(e){return this._getModule(Fn).setAllMessageRead(e)}},{key:\"setMessageRemindType\",value:function(e){return this._getModule(Fn).setMessageRemindType(e)}},{key:\"getTotalUnreadMessageCount\",value:function(){return this._getModule(Fn).getTotalUnreadMessageCount()}},{key:\"setConversationCustomData\",value:function(e){return this._getModule(Fn).setConversationCustomData(e)}},{key:\"markConversation\",value:function(e){return this._getModule(Fn).markConversation(e)}},{key:\"getConversationGroupList\",value:function(){return this._getModule(Fn).getConversationGroupList()}},{key:\"createConversationGroup\",value:function(e){return this._getModule(Fn).createConversationGroup(e)}},{key:\"deleteConversationGroup\",value:function(e){return this._getModule(Fn).deleteConversationGroup(e)}},{key:\"renameConversationGroup\",value:function(e){return this._getModule(Fn).renameConversationGroup(e)}},{key:\"addConversationsToGroup\",value:function(e){return this._getModule(Fn).addConversationsToGroup(e)}},{key:\"deleteConversationsFromGroup\",value:function(e){return this._getModule(Fn).deleteConversationsFromGroup(e)}},{key:\"getMyProfile\",value:function(){return this._getModule(On).getMyProfile()}},{key:\"getUserProfile\",value:function(e){return this._getModule(On).getUserProfile(e)}},{key:\"updateMyProfile\",value:function(e){return this._getModule(On).updateMyProfile(e)}},{key:\"getBlacklist\",value:function(){return this._getModule(On).getLocalBlacklist()}},{key:\"addToBlacklist\",value:function(e){return this._getModule(On).addBlacklist(e)}},{key:\"removeFromBlacklist\",value:function(e){return this._getModule(On).deleteBlacklist(e)}},{key:\"setSelfStatus\",value:function(e){return this._getModule(On).setSelfStatus(e)}},{key:\"getUserStatus\",value:function(e){return this._getModule(On).getUserStatus(e)}},{key:\"subscribeUserStatus\",value:function(e){return this._getModule(On).subscribeUserStatus(e)}},{key:\"unsubscribeUserStatus\",value:function(e){return this._getModule(On).unsubscribeUserStatus(e)}},{key:\"getFriendList\",value:function(){var e=this._getModule(Pn);return e?e.getLocalFriendList():Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"addFriend\",value:function(e){var t=this._getModule(Pn);return t?t.addFriend(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"deleteFriend\",value:function(e){var t=this._getModule(Pn);return t?t.deleteFriend(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"checkFriend\",value:function(e){var t=this._getModule(Pn);return t?t.checkFriend(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"getFriendProfile\",value:function(e){var t=this._getModule(Pn);return t?t.getFriendProfile(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"updateFriend\",value:function(e){var t=this._getModule(Pn);return t?t.updateFriend(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"getFriendApplicationList\",value:function(){var e=this._getModule(Pn);return e?e.getLocalFriendApplicationList():Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"acceptFriendApplication\",value:function(e){var t=this._getModule(Pn);return t?t.acceptFriendApplication(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"refuseFriendApplication\",value:function(e){var t=this._getModule(Pn);return t?t.refuseFriendApplication(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"deleteFriendApplication\",value:function(e){var t=this._getModule(Pn);return t?t.deleteFriendApplication(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"setFriendApplicationRead\",value:function(){var e=this._getModule(Pn);return e?e.setFriendApplicationRead():Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"getFriendGroupList\",value:function(){var e=this._getModule(Pn);return e?e.getLocalFriendGroupList():Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"createFriendGroup\",value:function(e){var t=this._getModule(Pn);return t?t.createFriendGroup(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"deleteFriendGroup\",value:function(e){var t=this._getModule(Pn);return t?t.deleteFriendGroup(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"addToFriendGroup\",value:function(e){var t=this._getModule(Pn);return t?t.addToFriendGroup(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"removeFromFriendGroup\",value:function(e){var t=this._getModule(Pn);return t?t.removeFromFriendGroup(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"renameFriendGroup\",value:function(e){var t=this._getModule(Pn);return t?t.renameFriendGroup(e):Ja({code:da.CANNOT_FIND_MODULE})}},{key:\"getGroupList\",value:function(e){return this._getModule(Un).getGroupList(e)}},{key:\"getGroupProfile\",value:function(e){return this._getModule(Un).getGroupProfile(e)}},{key:\"createGroup\",value:function(e){return this._getModule(Un).createGroup(e)}},{key:\"dismissGroup\",value:function(e){return this._getModule(Un).dismissGroup(e)}},{key:\"updateGroupProfile\",value:function(e){return this._getModule(Un).updateGroupProfile(e)}},{key:\"joinGroup\",value:function(e){return this._getModule(Un).joinGroup(e)}},{key:\"quitGroup\",value:function(e){return this._getModule(Un).quitGroup(e)}},{key:\"searchGroupByID\",value:function(e){return this._getModule(Un).searchGroupByID(e)}},{key:\"getGroupOnlineMemberCount\",value:function(e){return this._getModule(Un).getGroupOnlineMemberCount(e)}},{key:\"changeGroupOwner\",value:function(e){return this._getModule(Un).changeGroupOwner(e)}},{key:\"getGroupApplicationList\",value:function(){return this._getModule(Un).getGroupApplicationList()}},{key:\"handleGroupApplication\",value:function(e){return this._getModule(Un).handleGroupApplication(e)}},{key:\"initGroupAttributes\",value:function(e){return this._getModule(Un).initGroupAttributes(e)}},{key:\"setGroupAttributes\",value:function(e){return this._getModule(Un).setGroupAttributes(e)}},{key:\"deleteGroupAttributes\",value:function(e){return this._getModule(Un).deleteGroupAttributes(e)}},{key:\"getGroupAttributes\",value:function(e){return this._getModule(Un).getGroupAttributes(e)}},{key:\"setGroupCounters\",value:function(e){return this._getModule(Un).setGroupCounters(e)}},{key:\"increaseGroupCounter\",value:function(e){return this._getModule(Un).increaseGroupCounter(e)}},{key:\"decreaseGroupCounter\",value:function(e){return this._getModule(Un).decreaseGroupCounter(e)}},{key:\"getGroupCounters\",value:function(e){return this._getModule(Un).getGroupCounters(e)}},{key:\"getGroupMemberList\",value:function(e){return this._getModule(bn).getGroupMemberList(e)}},{key:\"getGroupMemberProfile\",value:function(e){return this._getModule(bn).getGroupMemberProfile(e)}},{key:\"addGroupMember\",value:function(e){return this._getModule(bn).addGroupMember(e)}},{key:\"deleteGroupMember\",value:function(e){return this._getModule(bn).deleteGroupMember(e)}},{key:\"setGroupMemberMuteTime\",value:function(e){return this._getModule(bn).setGroupMemberMuteTime(e)}},{key:\"setGroupMemberRole\",value:function(e){return this._getModule(bn).setGroupMemberRole(e)}},{key:\"setGroupMemberNameCard\",value:function(e){return this._getModule(bn).setGroupMemberNameCard(e)}},{key:\"setGroupMemberCustomField\",value:function(e){return this._getModule(bn).setGroupMemberCustomField(e)}},{key:\"markGroupMemberList\",value:function(e){return this._getModule(bn).markGroupMemberList(e)}},{key:\"getJoinedCommunityList\",value:function(){return this._getModule(wn).getJoinedCommunityList()}},{key:\"createTopicInCommunity\",value:function(e){return this._getModule(wn).createTopicInCommunity(e)}},{key:\"deleteTopicFromCommunity\",value:function(e){return this._getModule(wn).deleteTopicFromCommunity(e)}},{key:\"updateTopicProfile\",value:function(e){return this._getModule(wn).updateTopicProfile(e)}},{key:\"getTopicList\",value:function(e){return this._getModule(wn).getTopicList(e)}}]),e}(),pu={login:1,logout:1,destroy:1,on:1,off:1,ready:1,setLogLevel:1,joinGroup:1,quitGroup:1,registerPlugin:1,getGroupOnlineMemberCount:1};function du(e,t){if(e.isReady()||1===pu[t])return!0;var n=e.getNotReadyReason(),o={code:n,message:\"\".concat(e.getErrorMessage(n),\" | \").concat(t,\" | \").concat(e.getErrorMessage(da.SDK_IS_NOT_READY))};return e.onError(o),o}var gu={},_u={};return _u.create=function(e){var n=0,o=e.SDKAppID;if($e(o))n=o;else if(n=parseInt(o),isNaN(o))return xe.e(\"\".concat(\"TIM.create\",\" failed. Failed to parse the SDKAppID, please check the arguments\")),null;if(n&&gu[n])return gu[n];xe.l(\"\".concat(\"TIM.create\"));var s=new lu(t(t({},e),{},{SDKAppID:n}));s.on(E.SDK_DESTROY,(function(e){gu[e.data.SDKAppID]=null,delete gu[e.data.SDKAppID]}));var a=function(e){var t=Object.create(null);return Object.keys(Ln).forEach((function(n){if(e[n]){var o=new k;t[n]=function(){var t=Array.from(arguments);return o.use((function(t,o){var s=du(e,n);return!0===s?o():Ja(s)})).use((function(e,t){if(!0===zt(e,kn[n],n))return t()})).use((function(t,o){return e[n].apply(e,t)})),o.run(t)}}})),t}(s);return gu[n]=a,kn.hookGetAPITips(s.getErrorMessage.bind(s)),xe.l(\"\".concat(\"TIM.create\",\" ok\")),a},_u.TYPES=S,_u.EVENT=E,_u.VERSION=\"2.27.5\",xe.l(\"TIM.VERSION:\".concat(_u.VERSION)),_u}));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/tim-js-sdk/tim-js.js?");

/***/ }),

/***/ "./node_modules/tim-profanity-filter-plugin/index.js":
/*!***********************************************************!*\
  !*** ./node_modules/tim-profanity-filter-plugin/index.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("/* WEBPACK VAR INJECTION */(function(global) {!function(t,e){ true?module.exports=e():undefined}(this,(function(){function t(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function e(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),Object.defineProperty(t,\"prototype\",{writable:!1}),t}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null==r)return;var i,n,o=[],s=!0,a=!1;try{for(r=r.call(t);!(s=(i=r.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(c){a=!0,n=c}finally{try{s||null==r.return||r.return()}finally{if(a)throw n}}return o}(t,e)||o(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function n(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function o(t,e){if(t){if(\"string\"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function a(t,e){var r=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(!r){if(Array.isArray(t)||(r=o(t))||e&&t&&\"number\"==typeof t.length){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var s,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,s=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw s}}}}var c=function(){for(var t=\" \\t\\r\\n~!@#$%^&*()_+-=【】、{}|;':\\\"，。、《》？αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ。，、；：？！…—·ˉ¨‘’“”々～‖∶＂＇｀｜〃〔〕〈〉《》「」『』．〖〗【】（）［］｛｝ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩①②③④⑤⑥⑦⑧⑨⑩⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇≈≡≠＝≤≥＜＞≮≯∷±＋－×÷／∫∮∝∞∧∨∑∏∪∩∈∵∴⊥∥∠⌒⊙≌∽√§№☆★○●◎◇◆□℃‰€■△▲※→←↑↓〓¤°＃＆＠＼︿＿￣―♂♀┌┍┎┐┑┒┓─┄┈├┝┞┟┠┡┢┣│┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╁╂╃└┕┖┗┘┙┚┛━┅┉┤┥┦┧┨┩┪┫┃┇┋┴┵┶┷┸┹┺┻╋╊╉╈╇╆╅╄\",e=new Map,r=0,i=t.length;r<i;r++)e.set(t.charCodeAt(0),!0);return e}(),h=function(){function e(r){t(this,e);var i,o=r.input,s=r.isArray,a=r.isMap;this._trieTree={},s(o)?i=o:a(o)&&(i=n(o.keys()),this._map=o);for(var c=0,h=i.length;c<h;c++)if(i[c]){for(var l=this._trieTree,f=i[c],u=0,d=f.length;u<d;u++)l[f[u]]||(l[f[u]]={}),l=l[f[u]];l.isEnd=!0}}return r(e,[{key:\"filter\",value:function(t){var e=t.text,r=t.replacingEnabled;if(0===Object.keys(this._trieTree).length)return{isMatched:!1,modifiedText:e};for(var i=this._trieTree,n=e,o=!1,s=e.length,a=0;a<s;a++)if(!0!==c.get(e.charCodeAt(a))){for(var h=0,l=\"\",f=!1,u=a;u<s;u++){if(!i[e[u]]){i=this._trieTree;break}if(l+=e[u],i[e[u]].isEnd){f=!0,h=u-a,i=this._trieTree;break}i=i[e[u]]}if(h>1&&(a+=h),f){if(o=!0,!r)break;var d=this._map.get(l)||\"*\";n=n.replace(new RegExp(l,\"g\"),d)}}return{isMatched:o,modifiedText:n}}},{key:\"reset\",value:function(){this._trieTree={},this._map=null}}]),e}(),l=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};var f={},u=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){var r,i,n,o,s,a;t.exports=(a=a||function(t,e){var r;if(\"undefined\"!=typeof window&&window.crypto&&(r=window.crypto),!r&&\"undefined\"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==l&&l.crypto&&(r=l.crypto),!r)try{r=f}catch(v){}var i=function(){if(r){if(\"function\"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(\"function\"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error(\"Native crypto module could not be used to get secure random number.\")},n=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),o={},s=o.lib={},a=s.Base={extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty(\"init\")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty(\"toString\")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,r=t.words,i=this.sigBytes,n=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<n;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=s<<24-(i+o)%4*8}else for(o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(i());return new c.init(e,t)}}),h=o.enc={},u=h.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join(\"\")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}},d=h.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join(\"\")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(e){throw new Error(\"Malformed UTF-8 data\")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},_=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){\"string\"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,i=this._data,n=i.words,o=i.sigBytes,s=this.blockSize,a=o/(4*s),h=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*h,o);if(h){for(var f=0;f<h;f+=s)this._doProcessBlock(n,f);r=n.splice(0,h),i.sigBytes-=l}return new c.init(r,l)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),y=(s.Hasher=_.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new y.HMAC.init(t,r).finalize(e)}}}),o.algo={});return o}(Math),s=(o=a).lib.WordArray,o.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,i=this._map;t.clamp();for(var n=[],o=0;o<r;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<r;a++)n.push(i.charAt(s>>>6*(3-a)&63));var c=i.charAt(64);if(c)for(;n.length%4;)n.push(c);return n.join(\"\")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n}var o=r.charAt(64);if(o){var a=t.indexOf(o);-1!==a&&(e=a)}return function(t,e,r){for(var i=[],n=0,o=0;o<e;o++)if(o%4){var a=r[t.charCodeAt(o-1)]<<o%4*2,c=r[t.charCodeAt(o)]>>>6-o%4*2,h=a|c;i[n>>>2]|=h<<24-n%4*8,n++}return s.create(i,n)}(t,e,i)},_map:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\"},function(t){var e=a,r=e.lib,i=r.WordArray,n=r.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=o.MD5=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=t[e+0],c=t[e+1],d=t[e+2],p=t[e+3],_=t[e+4],y=t[e+5],v=t[e+6],g=t[e+7],w=t[e+8],B=t[e+9],k=t[e+10],m=t[e+11],b=t[e+12],x=t[e+13],S=t[e+14],A=t[e+15],H=o[0],M=o[1],z=o[2],C=o[3];H=h(H,M,z,C,a,7,s[0]),C=h(C,H,M,z,c,12,s[1]),z=h(z,C,H,M,d,17,s[2]),M=h(M,z,C,H,p,22,s[3]),H=h(H,M,z,C,_,7,s[4]),C=h(C,H,M,z,y,12,s[5]),z=h(z,C,H,M,v,17,s[6]),M=h(M,z,C,H,g,22,s[7]),H=h(H,M,z,C,w,7,s[8]),C=h(C,H,M,z,B,12,s[9]),z=h(z,C,H,M,k,17,s[10]),M=h(M,z,C,H,m,22,s[11]),H=h(H,M,z,C,b,7,s[12]),C=h(C,H,M,z,x,12,s[13]),z=h(z,C,H,M,S,17,s[14]),H=l(H,M=h(M,z,C,H,A,22,s[15]),z,C,c,5,s[16]),C=l(C,H,M,z,v,9,s[17]),z=l(z,C,H,M,m,14,s[18]),M=l(M,z,C,H,a,20,s[19]),H=l(H,M,z,C,y,5,s[20]),C=l(C,H,M,z,k,9,s[21]),z=l(z,C,H,M,A,14,s[22]),M=l(M,z,C,H,_,20,s[23]),H=l(H,M,z,C,B,5,s[24]),C=l(C,H,M,z,S,9,s[25]),z=l(z,C,H,M,p,14,s[26]),M=l(M,z,C,H,w,20,s[27]),H=l(H,M,z,C,x,5,s[28]),C=l(C,H,M,z,d,9,s[29]),z=l(z,C,H,M,g,14,s[30]),H=f(H,M=l(M,z,C,H,b,20,s[31]),z,C,y,4,s[32]),C=f(C,H,M,z,w,11,s[33]),z=f(z,C,H,M,m,16,s[34]),M=f(M,z,C,H,S,23,s[35]),H=f(H,M,z,C,c,4,s[36]),C=f(C,H,M,z,_,11,s[37]),z=f(z,C,H,M,g,16,s[38]),M=f(M,z,C,H,k,23,s[39]),H=f(H,M,z,C,x,4,s[40]),C=f(C,H,M,z,a,11,s[41]),z=f(z,C,H,M,p,16,s[42]),M=f(M,z,C,H,v,23,s[43]),H=f(H,M,z,C,B,4,s[44]),C=f(C,H,M,z,b,11,s[45]),z=f(z,C,H,M,A,16,s[46]),H=u(H,M=f(M,z,C,H,d,23,s[47]),z,C,a,6,s[48]),C=u(C,H,M,z,g,10,s[49]),z=u(z,C,H,M,S,15,s[50]),M=u(M,z,C,H,y,21,s[51]),H=u(H,M,z,C,b,6,s[52]),C=u(C,H,M,z,p,10,s[53]),z=u(z,C,H,M,k,15,s[54]),M=u(M,z,C,H,c,21,s[55]),H=u(H,M,z,C,w,6,s[56]),C=u(C,H,M,z,A,10,s[57]),z=u(z,C,H,M,v,15,s[58]),M=u(M,z,C,H,x,21,s[59]),H=u(H,M,z,C,_,6,s[60]),C=u(C,H,M,z,m,10,s[61]),z=u(z,C,H,M,d,15,s[62]),M=u(M,z,C,H,B,21,s[63]),o[0]=o[0]+H|0,o[1]=o[1]+M|0,o[2]=o[2]+z|0,o[3]=o[3]+C|0},_doFinalize:function(){var e=this._data,r=e.words,i=8*this._nDataBytes,n=8*e.sigBytes;r[n>>>5]|=128<<24-n%32;var o=t.floor(i/4294967296),s=i;r[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,c=a.words,h=0;h<4;h++){var l=c[h];c[h]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});function h(t,e,r,i,n,o,s){var a=t+(e&r|~e&i)+n+s;return(a<<o|a>>>32-o)+e}function l(t,e,r,i,n,o,s){var a=t+(e&i|r&~i)+n+s;return(a<<o|a>>>32-o)+e}function f(t,e,r,i,n,o,s){var a=t+(e^r^i)+n+s;return(a<<o|a>>>32-o)+e}function u(t,e,r,i,n,o,s){var a=t+(r^(e|~i))+n+s;return(a<<o|a>>>32-o)+e}e.MD5=n._createHelper(c),e.HmacMD5=n._createHmacHelper(c)}(Math),function(){var t=a,e=t.lib,r=e.WordArray,i=e.Hasher,n=t.algo,o=[],s=n.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],a=r[3],c=r[4],h=0;h<80;h++){if(h<16)o[h]=0|t[e+h];else{var l=o[h-3]^o[h-8]^o[h-14]^o[h-16];o[h]=l<<1|l>>>31}var f=(i<<5|i>>>27)+c+o[h];f+=h<20?1518500249+(n&s|~n&a):h<40?1859775393+(n^s^a):h<60?(n&s|n&a|s&a)-1894007588:(n^s^a)-899497514,c=a,a=s,s=n<<30|n>>>2,n=i,i=f}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(i+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),function(t){var e=a,r=e.lib,i=r.WordArray,n=r.Hasher,o=e.algo,s=[],c=[];!function(){function e(e){for(var r=t.sqrt(e),i=2;i<=r;i++)if(!(e%i))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var i=2,n=0;n<64;)e(i)&&(n<8&&(s[n]=r(t.pow(i,.5))),c[n]=r(t.pow(i,1/3)),n++),i++}();var h=[],l=o.SHA256=n.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],s=r[3],a=r[4],l=r[5],f=r[6],u=r[7],d=0;d<64;d++){if(d<16)h[d]=0|t[e+d];else{var p=h[d-15],_=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=h[d-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;h[d]=_+h[d-7]+v+h[d-16]}var g=i&n^i&o^n&o,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),B=u+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&f)+c[d]+h[d];u=f,f=l,l=a,a=s+B|0,s=o,o=n,n=i,i=B+(w+g)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+u|0},_doFinalize:function(){var e=this._data,r=e.words,i=8*this._nDataBytes,n=8*e.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=t.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=n._createHelper(l),e.HmacSHA256=n._createHmacHelper(l)}(Math),function(){var t=a,e=t.lib.WordArray,r=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n+=2){var o=e[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join(\"\")},parse:function(t){for(var r=t.length,i=[],n=0;n<r;n++)i[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return e.create(i,2*r)}},r.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var s=i(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(s))}return n.join(\"\")},parse:function(t){for(var r=t.length,n=[],o=0;o<r;o++)n[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return e.create(n,2*r)}}}(),function(){if(\"function\"==typeof ArrayBuffer){var t=a.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||\"undefined\"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,i=[],n=0;n<r;n++)i[n>>>2]|=t[n]<<24-n%4*8;e.call(this,i,r)}else e.apply(this,arguments)}).prototype=t}}(),\n/** @preserve\n      (c) 2012 by C��dric Mesnil. All rights reserved.\n        Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n            - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n          - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n      */\nfunction(t){var e=a,r=e.lib,i=r.WordArray,n=r.Hasher,o=e.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),u=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=n.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,a,d,B,k,m,b,x,S,A,H,M=this._hash.words,z=f.words,C=u.words,E=s.words,R=c.words,P=h.words,D=l.words;for(m=o=M[0],b=a=M[1],x=d=M[2],S=B=M[3],A=k=M[4],r=0;r<80;r+=1)H=o+t[e+E[r]]|0,H+=r<16?p(a,d,B)+z[0]:r<32?_(a,d,B)+z[1]:r<48?y(a,d,B)+z[2]:r<64?v(a,d,B)+z[3]:g(a,d,B)+z[4],H=(H=w(H|=0,P[r]))+k|0,o=k,k=B,B=w(d,10),d=a,a=H,H=m+t[e+R[r]]|0,H+=r<16?g(b,x,S)+C[0]:r<32?v(b,x,S)+C[1]:r<48?y(b,x,S)+C[2]:r<64?_(b,x,S)+C[3]:p(b,x,S)+C[4],H=(H=w(H|=0,D[r]))+A|0,m=A,A=S,S=w(x,10),x=b,b=H;H=M[1]+d+S|0,M[1]=M[2]+B+A|0,M[2]=M[3]+k+m|0,M[3]=M[4]+o+b|0,M[4]=M[0]+a+x|0,M[0]=H},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var n=this._hash,o=n.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return n},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function _(t,e,r){return t&e|~t&r}function y(t,e,r){return(t|~e)^r}function v(t,e,r){return t&r|e&~r}function g(t,e,r){return t^(e|~r)}function w(t,e){return t<<e|t>>>32-e}e.RIPEMD160=n._createHelper(d),e.HmacRIPEMD160=n._createHmacHelper(d)}(),function(){var t=a,e=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,\"string\"==typeof e&&(e=r.parse(e));var i=t.blockSize,n=4*i;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),s=this._iKey=e.clone(),a=o.words,c=s.words,h=0;h<i;h++)a[h]^=1549556828,c[h]^=909522486;o.sigBytes=s.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})}(),function(){var t=a,e=t.lib,r=e.Base,i=e.WordArray,n=t.algo,o=n.SHA1,s=n.HMAC,c=n.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),o=i.create(),a=i.create([1]),c=o.words,h=a.words,l=r.keySize,f=r.iterations;c.length<l;){var u=n.update(e).finalize(a);n.reset();for(var d=u.words,p=d.length,_=u,y=1;y<f;y++){_=n.finalize(_),n.reset();for(var v=_.words,g=0;g<p;g++)d[g]^=v[g]}o.concat(u),h[0]++}return o.sigBytes=4*l,o}});t.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),function(){var t=a,e=t.lib,r=e.Base,i=e.WordArray,n=t.algo,o=n.MD5,s=n.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r,n=this.cfg,o=n.hasher.create(),s=i.create(),a=s.words,c=n.keySize,h=n.iterations;a.length<c;){r&&o.update(r),r=o.update(t).finalize(e),o.reset();for(var l=1;l<h;l++)r=o.finalize(r),o.reset();s.concat(r)}return s.sigBytes=4*c,s}});t.EvpKDF=function(t,e,r){return s.create(r).compute(t,e)}}(),function(){var t=a,e=t.lib.WordArray,r=t.algo,i=r.SHA256,n=r.SHA224=i.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=i._createHelper(n),t.HmacSHA224=i._createHmacHelper(n)}(),function(t){var e=a,r=e.lib,i=r.Base,n=r.WordArray,o=e.x64={};o.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),o.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],i=0;i<e;i++){var o=t[i];r.push(o.high),r.push(o.low)}return n.create(r,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}})}(),function(t){var e=a,r=e.lib,i=r.WordArray,n=r.Hasher,o=e.x64.Word,s=e.algo,c=[],h=[],l=[];!function(){for(var t=1,e=0,r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=(2*t+3*e)%5;t=e%5,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)h[t+5*e]=e+(2*t+3*e)%5*5;for(var n=1,s=0;s<24;s++){for(var a=0,f=0,u=0;u<7;u++){if(1&n){var d=(1<<u)-1;d<32?f^=1<<d:a^=1<<d-32}128&n?n=n<<1^113:n<<=1}l[s]=o.create(a,f)}}();var f=[];!function(){for(var t=0;t<25;t++)f[t]=o.create()}();var u=s.SHA3=n.extend({cfg:n.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,i=this.blockSize/2,n=0;n<i;n++){var o=t[e+2*n],s=t[e+2*n+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(M=r[n]).high^=s,M.low^=o}for(var a=0;a<24;a++){for(var u=0;u<5;u++){for(var d=0,p=0,_=0;_<5;_++)d^=(M=r[u+5*_]).high,p^=M.low;var y=f[u];y.high=d,y.low=p}for(u=0;u<5;u++){var v=f[(u+4)%5],g=f[(u+1)%5],w=g.high,B=g.low;for(d=v.high^(w<<1|B>>>31),p=v.low^(B<<1|w>>>31),_=0;_<5;_++)(M=r[u+5*_]).high^=d,M.low^=p}for(var k=1;k<25;k++){var m=(M=r[k]).high,b=M.low,x=c[k];x<32?(d=m<<x|b>>>32-x,p=b<<x|m>>>32-x):(d=b<<x-32|m>>>64-x,p=m<<x-32|b>>>64-x);var S=f[h[k]];S.high=d,S.low=p}var A=f[0],H=r[0];for(A.high=H.high,A.low=H.low,u=0;u<5;u++)for(_=0;_<5;_++){var M=r[k=u+5*_],z=f[k],C=f[(u+1)%5+5*_],E=f[(u+2)%5+5*_];M.high=z.high^~C.high&E.high,M.low=z.low^~C.low&E.low}M=r[0];var R=l[a];M.high^=R.high,M.low^=R.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,h=[],l=0;l<c;l++){var f=s[l],u=f.high,d=f.low;u=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h.push(d),h.push(u)}return new i.init(h,a)},clone:function(){for(var t=n.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}});e.SHA3=n._createHelper(u),e.HmacSHA3=n._createHmacHelper(u)}(Math),function(){var t=a,e=t.lib.Hasher,r=t.x64,i=r.Word,n=r.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],h=[];!function(){for(var t=0;t<80;t++)h[t]=s()}();var l=o.SHA512=e.extend({_doReset:function(){this._hash=new n.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],s=r[3],a=r[4],l=r[5],f=r[6],u=r[7],d=i.high,p=i.low,_=n.high,y=n.low,v=o.high,g=o.low,w=s.high,B=s.low,k=a.high,m=a.low,b=l.high,x=l.low,S=f.high,A=f.low,H=u.high,M=u.low,z=d,C=p,E=_,R=y,P=v,D=g,F=w,T=B,I=k,O=m,L=b,W=x,U=S,j=A,K=H,X=M,N=0;N<80;N++){var V,Z,$=h[N];if(N<16)Z=$.high=0|t[e+2*N],V=$.low=0|t[e+2*N+1];else{var q=h[N-15],G=q.high,J=q.low,Q=(G>>>1|J<<31)^(G>>>8|J<<24)^G>>>7,Y=(J>>>1|G<<31)^(J>>>8|G<<24)^(J>>>7|G<<25),tt=h[N-2],et=tt.high,rt=tt.low,it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),ot=h[N-7],st=ot.high,at=ot.low,ct=h[N-16],ht=ct.high,lt=ct.low;Z=(Z=(Z=Q+st+((V=Y+at)>>>0<Y>>>0?1:0))+it+((V+=nt)>>>0<nt>>>0?1:0))+ht+((V+=lt)>>>0<lt>>>0?1:0),$.high=Z,$.low=V}var ft,ut=I&L^~I&U,dt=O&W^~O&j,pt=z&E^z&P^E&P,_t=C&R^C&D^R&D,yt=(z>>>28|C<<4)^(z<<30|C>>>2)^(z<<25|C>>>7),vt=(C>>>28|z<<4)^(C<<30|z>>>2)^(C<<25|z>>>7),gt=(I>>>14|O<<18)^(I>>>18|O<<14)^(I<<23|O>>>9),wt=(O>>>14|I<<18)^(O>>>18|I<<14)^(O<<23|I>>>9),Bt=c[N],kt=Bt.high,mt=Bt.low,bt=K+gt+((ft=X+wt)>>>0<X>>>0?1:0),xt=vt+_t;K=U,X=j,U=L,j=W,L=I,W=O,I=F+(bt=(bt=(bt=bt+ut+((ft+=dt)>>>0<dt>>>0?1:0))+kt+((ft+=mt)>>>0<mt>>>0?1:0))+Z+((ft+=V)>>>0<V>>>0?1:0))+((O=T+ft|0)>>>0<T>>>0?1:0)|0,F=P,T=D,P=E,D=R,E=z,R=C,z=bt+(yt+pt+(xt>>>0<vt>>>0?1:0))+((C=ft+xt|0)>>>0<ft>>>0?1:0)|0}p=i.low=p+C,i.high=d+z+(p>>>0<C>>>0?1:0),y=n.low=y+R,n.high=_+E+(y>>>0<R>>>0?1:0),g=o.low=g+D,o.high=v+P+(g>>>0<D>>>0?1:0),B=s.low=B+T,s.high=w+F+(B>>>0<T>>>0?1:0),m=a.low=m+O,a.high=k+I+(m>>>0<O>>>0?1:0),x=l.low=x+W,l.high=b+L+(x>>>0<W>>>0?1:0),A=f.low=A+j,f.high=S+U+(A>>>0<j>>>0?1:0),M=u.low=M+X,u.high=H+K+(M>>>0<X>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(i+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(l),t.HmacSHA512=e._createHmacHelper(l)}(),function(){var t=a,e=t.x64,r=e.Word,i=e.WordArray,n=t.algo,o=n.SHA512,s=n.SHA384=o.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=o._createHelper(s),t.HmacSHA384=o._createHmacHelper(s)}(),a.lib.Cipher||function(t){var e=a,r=e.lib,i=r.Base,n=r.WordArray,o=r.BufferedBlockAlgorithm,s=e.enc,c=(s.Utf8,s.Base64),h=e.algo.EvpKDF,l=r.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return\"string\"==typeof t?w:v}return function(e){return{encrypt:function(r,i,n){return t(i).encrypt(e,r,i,n)},decrypt:function(r,i,n){return t(i).decrypt(e,r,i,n)}}}}()}),f=(r.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),u=r.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=f.CBC=function(){var t=u.extend();function e(t,e,r){var i,n=this._iv;n?(i=n,this._iv=void 0):i=this._prevBlock;for(var o=0;o<r;o++)t[e+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize;e.call(this,t,r,n),i.encryptBlock(t,r),this._prevBlock=t.slice(r,r+n)}}),t.Decryptor=t.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,o=t.slice(r,r+n);i.decryptBlock(t,r),e.call(this,t,r,n),this._prevBlock=o}}),t}(),p=(e.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,i=r-t.sigBytes%r,o=i<<24|i<<16|i<<8|i,s=[],a=0;a<i;a+=4)s.push(o);var c=n.create(s,i);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},_=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:d,padding:p}),reset:function(){var t;l.reset.call(this);var e=this.cfg,r=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(i,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),r.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),y=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;return(r?n.create([1398893684,1701076831]).concat(r).concat(e):e).toString(c)},parse:function(t){var e,r=c.parse(t),i=r.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=n.create(i.slice(2,4)),i.splice(0,4),r.sigBytes-=16),_.create({ciphertext:r,salt:e})}},v=r.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i),o=n.finalize(e),s=n.cfg;return _.create({ciphertext:o,key:r,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(r,i).finalize(e.ciphertext)},_parse:function(t,e){return\"string\"==typeof t?e.parse(t,this):t}}),g=(e.kdf={}).OpenSSL={execute:function(t,e,r,i){i||(i=n.random(8));var o=h.create({keySize:e+r}).compute(t,i),s=n.create(o.words.slice(e),4*r);return o.sigBytes=4*e,_.create({key:o,iv:s,salt:i})}},w=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:g}),encrypt:function(t,e,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var o=v.encrypt.call(this,t,e,n.key,i);return o.mixIn(n),o},decrypt:function(t,e,r,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var n=i.kdf.execute(r,t.keySize,t.ivSize,e.salt);return i.iv=n.iv,v.decrypt.call(this,t,e,n.key,i)}})}(),a.mode.CFB=function(){var t=a.lib.BlockCipherMode.extend();function e(t,e,r,i){var n,o=this._iv;o?(n=o.slice(0),this._iv=void 0):n=this._prevBlock,i.encryptBlock(n,0);for(var s=0;s<r;s++)t[e+s]^=n[s]}return t.Encryptor=t.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize;e.call(this,t,r,n,i),this._prevBlock=t.slice(r,r+n)}}),t.Decryptor=t.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,o=t.slice(r,r+n);e.call(this,t,r,n,i),this._prevBlock=o}}),t}(),a.mode.ECB=((n=a.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),n.Decryptor=n.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),n),a.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,i=4*e,n=i-r%i,o=r+n-1;t.clamp(),t.words[o>>>2]|=n<<24-o%4*8,t.sigBytes+=n},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},a.pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(a.lib.WordArray.random(i-1)).concat(a.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},a.pad.Iso97971={pad:function(t,e){t.concat(a.lib.WordArray.create([2147483648],1)),a.pad.ZeroPadding.pad(t,e)},unpad:function(t){a.pad.ZeroPadding.unpad(t),t.sigBytes--}},a.mode.OFB=(r=a.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,n=this._iv,o=this._keystream;n&&(o=this._keystream=n.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var s=0;s<i;s++)t[e+s]^=o[s]}}),r.Decryptor=i,r),a.pad.NoPadding={pad:function(){},unpad:function(){}},function(t){var e=a,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),function(){var t=a,e=t.lib.BlockCipher,r=t.algo,i=[],n=[],o=[],s=[],c=[],h=[],l=[],f=[],u=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,a=0;for(e=0;e<256;e++){var p=a^a<<1^a<<2^a<<3^a<<4;p=p>>>8^255&p^99,i[r]=p,n[p]=r;var _=t[r],y=t[_],v=t[y],g=257*t[p]^16843008*p;o[r]=g<<24|g>>>8,s[r]=g<<16|g>>>16,c[r]=g<<8|g>>>24,h[r]=g,g=16843009*v^65537*y^257*_^16843008*r,l[p]=g<<24|g>>>8,f[p]=g<<16|g>>>16,u[p]=g<<8|g>>>24,d[p]=g,r?(r=_^t[t[t[v^_]]],a^=t[t[a]]):r=a=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],_=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],s=0;s<n;s++)s<r?o[s]=e[s]:(h=o[s-1],s%r?r>6&&s%r==4&&(h=i[h>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h]):(h=i[(h=h<<8|h>>>24)>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h],h^=p[s/r|0]<<24),o[s]=o[s-r]^h);for(var a=this._invKeySchedule=[],c=0;c<n;c++){if(s=n-c,c%4)var h=o[s];else h=o[s-4];a[c]=c<4||s<=4?h:l[i[h>>>24]]^f[i[h>>>16&255]]^u[i[h>>>8&255]]^d[i[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,c,h,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,f,u,d,n),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,i,n,o,s,a){for(var c=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],u=t[e+3]^r[3],d=4,p=1;p<c;p++){var _=i[h>>>24]^n[l>>>16&255]^o[f>>>8&255]^s[255&u]^r[d++],y=i[l>>>24]^n[f>>>16&255]^o[u>>>8&255]^s[255&h]^r[d++],v=i[f>>>24]^n[u>>>16&255]^o[h>>>8&255]^s[255&l]^r[d++],g=i[u>>>24]^n[h>>>16&255]^o[l>>>8&255]^s[255&f]^r[d++];h=_,l=y,f=v,u=g}_=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&u])^r[d++],y=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^r[d++],v=(a[f>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^r[d++],g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^r[d++],t[e]=_,t[e+1]=y,t[e+2]=v,t[e+3]=g},keySize:8});t.AES=e._createHelper(_)}(),function(){var t=a,e=t.lib,r=e.WordArray,i=e.BlockCipher,n=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=n.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var i=o[r]-1;e[r]=t[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],a=0;a<16;a++){var h=n[a]=[],l=c[a];for(r=0;r<24;r++)h[r/6|0]|=e[(s[r]-1+l)%28]<<31-r%6,h[4+(r/6|0)]|=e[28+(s[r+24]-1+l)%28]<<31-r%6;for(h[0]=h[0]<<1|h[0]>>>31,r=1;r<7;r++)h[r]=h[r]>>>4*(r-1)+3;h[7]=h[7]<<5|h[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=n[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],u.call(this,4,252645135),u.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),u.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=h[c][((s^n[c])&l[c])>>>0];this._lBlock=s,this._rBlock=o^a}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,u.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),u.call(this,16,65535),u.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function u(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}t.DES=i._createHelper(f);var p=n.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error(\"Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.\");var e=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),n=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=f.createEncryptor(r.create(e)),this._des2=f.createEncryptor(r.create(i)),this._des3=f.createEncryptor(r.create(n))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),function(){var t=a,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,i=this._S=[],n=0;n<256;n++)i[n]=n;n=0;for(var o=0;n<256;n++){var s=n%r,a=e[s>>>2]>>>24-s%4*8&255;o=(o+i[n]+a)%256;var c=i[n];i[n]=i[o],i[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=n.call(this)},keySize:8,ivSize:0});function n(){for(var t=this._S,e=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,i|=t[(t[e]+t[r])%256]<<24-8*n}return this._i=e,this._j=r,i}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)n.call(this)}});t.RC4Drop=e._createHelper(o)}(),\n/** @preserve\n       * Counter block mode compatible with  Dr Brian Gladman fileenc.c\n       * derived from CryptoJS.mode.CTR\n       * Jan Hruby jhruby.web@gmail.com\n       */\na.mode.CTRGladman=function(){var t=a.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,r=t>>8&255,i=255&t;255===e?(e=0,255===r?(r=0,255===i?i=0:++i):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=i}else t+=1<<24;return t}var r=t.Encryptor=t.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(s);var a=s.slice(0);i.encryptBlock(a,0);for(var c=0;c<n;c++)t[r+c]^=a[c]}});return t.Decryptor=r,t}(),function(){var t=a,e=t.lib.StreamCipher,r=t.algo,i=[],n=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var o=e.words,s=o[0],a=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;for(n[0]^=h,n[1]^=f,n[2]^=l,n[3]^=u,n[4]^=h,n[5]^=f,n[6]^=l,n[7]^=u,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)n[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,r=0;r<8;r++){var i=t[r]+e[r],s=65535&i,a=i>>>16,c=((s*s>>>17)+s*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=c^h}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),a.mode.CTR=function(){var t=a.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,n=this._iv,o=this._counter;n&&(o=this._counter=n.slice(0),this._iv=void 0);var s=o.slice(0);r.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)t[e+a]^=s[a]}});return t.Decryptor=e,t}(),function(){var t=a,e=t.lib.StreamCipher,r=t.algo,i=[],n=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var o=e.words,s=o[0],a=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;for(i[0]^=h,i[1]^=f,i[2]^=l,i[3]^=u,i[4]^=h,i[5]^=f,i[6]^=l,i[7]^=u,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)n[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,r=0;r<8;r++){var i=t[r]+e[r],s=65535&i,a=i>>>16,c=((s*s>>>17)+s*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=c^h}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),a.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},a)}));return function(){function e(r){t(this,e);var i=r.logger,n=r.isArray,o=r.isMap,s=r.isDevMode;this._isArray=n,this._isMap=o,this._isDevMode=s,i.log(\"TIMProfanityFilterPlugin.VERSION:\".concat(\"0.9.0\")),this._interceptProfanityList=[],this._interceptFilter=null,this._interceptRegExpList=[],this._replacingProfanityMap=new Map,this._replacingFilter=null,this._replacingRegExpMap=new Map,this._key=\"\",this._iv=\"\",this._decryptOptions=void 0}return r(e,[{key:\"onToken\",value:function(t){this._key=u.enc.Utf8.parse(t.slice(0,32)),this._iv=this._key,this._decryptOptions={iv:this._iv,mode:u.mode.CBC,padding:u.pad.Pkcs7}}},{key:\"onLexiconSliced\",value:function(t){if(this._isArray(t)&&0!==t.length){var e,r,i,n=a(t);try{for(n.s();!(i=n.n()).done;){var o=i.value,s=o.filterType,c=o.profanityType,h=o.profanity,l=o.replacement;e=this._getDecryptedString(h),r=this._getDecryptedString(l),1===s?1===c?this._interceptProfanityList.push(e):2===c&&this._interceptRegExpList.push(e):2===s&&(1===c?this._replacingProfanityMap.set(e,r):2===c&&this._replacingRegExpMap.set(e,r))}}catch(f){n.e(f)}finally{n.f()}}}},{key:\"_getDecryptedString\",value:function(t){var e=u.AES.decrypt(t,this._key,this._decryptOptions);return u.enc.Utf8.stringify(e).toLowerCase()}},{key:\"onLexiconCompleted\",value:function(t){this.onLexiconSliced(t),this._interceptFilter=new h({input:this._interceptProfanityList,isArray:this._isArray,isMap:this._isMap}),this._replacingFilter=new h({input:this._replacingProfanityMap,isArray:this._isArray,isMap:this._isMap}),!0===this._isDevMode&&(console.log(\"TIMProfanityFilterPlugin _interceptProfanityList ->\",this._interceptProfanityList),console.log(\"TIMProfanityFilterPlugin _interceptRegExpList ->\",this._interceptRegExpList),console.log(\"TIMProfanityFilterPlugin _replacingProfanityMap ->\",this._replacingProfanityMap),console.log(\"TIMProfanityFilterPlugin _replacingRegExpMap ->\",this._replacingRegExpMap))}},{key:\"filter\",value:function(t){var e={type:0,modifiedText:t};if(!0===this._interceptFilter.filter({text:t,replacingEnabled:!1}).isMatched)return e.type=1,e;for(var r=!1,n=0,o=this._interceptRegExpList.length;n<o;n++)if(new RegExp(this._interceptRegExpList[n],\"g\").test(t)){r=!0;break}if(r)return e.type=1,e;var s=this._replacingFilter.filter({text:t,replacingEnabled:!0});!0===s.isMatched&&(e.type=2,e.modifiedText=s.modifiedText);var c,h=e.modifiedText,l=null,f=a(this._replacingRegExpMap);try{for(f.s();!(c=f.n()).done;){var u=i(c.value,2),d=u[0],p=u[1];l=new RegExp(d,\"g\"),h=h.replace(l,p)}}catch(_){f.e(_)}finally{f.f()}return h!==t&&(e.type=2,e.modifiedText=h),e}},{key:\"reset\",value:function(){this._isArray=null,this._isMap=null,this._interceptProfanityList.length=0,this._interceptRegExpList.length=0,this._replacingProfanityMap.clear(),this._replacingRegExpMap.clear(),this._key=\"\",this._iv=\"\",this._decryptOptions={},this._interceptFilter&&this._interceptFilter.reset(),this._replacingFilter&&this._replacingFilter.reset()}}]),e}()}));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/tim-profanity-filter-plugin/index.js?");

/***/ }),

/***/ "./node_modules/tim-upload-plugin/index.js":
/*!*************************************************!*\
  !*** ./node_modules/tim-upload-plugin/index.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("var global,factory;global=this,factory=function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){s(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var f=\"undefined\"!=typeof wx&&\"function\"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),u=\"undefined\"!=typeof qq&&\"function\"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),l=\"undefined\"!=typeof tt&&\"function\"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),c=\"undefined\"!=typeof swan&&\"function\"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),y=\"undefined\"!=typeof my&&\"function\"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),d=\"undefined\"!=typeof uni&&\"undefined\"==typeof window&&\"function\"==typeof uni.requireNativePlugin,p=d&&\"ios\"===uni.getDeviceInfo().platform.toLocaleLowerCase(),g=(d&&uni.getDeviceInfo().platform.toLocaleLowerCase(),f||u||l||c||y||d),m=u?qq:l?tt:c?swan:y?my:f?wx:d?uni:{},h=function(e){if(\"object\"!==n(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return t===o};function v(e){if(null==e)return!0;if(\"boolean\"==typeof e)return!1;if(\"number\"==typeof e)return 0===e;if(\"string\"==typeof e)return 0===e.length;if(\"function\"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return\"\"===e.message;if(h(e)){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1}var b=function(){function e(){o(this,e)}return a(e,[{key:\"request\",value:function(e,t){var n=this,o=e.downloadUrl||\"\",r=(e.method||\"PUT\").toUpperCase(),a=e.url;if(e.qs){var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"&\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"=\";return v(e)?\"\":h(e)?Object.keys(e).map((function(o){var r=encodeURIComponent(o)+n;return Array.isArray(e[o])?e[o].map((function(e){return r+encodeURIComponent(e)})).join(t):r+encodeURIComponent(e[o])})).filter(Boolean).join(t):void 0}(e.qs);s&&(a+=\"\".concat(-1===a.indexOf(\"?\")?\"?\":\"&\").concat(s))}var i=new XMLHttpRequest;i.open(r,a,!0),i.responseType=e.dataType||\"text\";var f=e.headers||{};if(!v(f))for(var u in f)f.hasOwnProperty(u)&&\"content-length\"!==u.toLowerCase()&&\"user-agent\"!==u.toLowerCase()&&\"origin\"!==u.toLowerCase()&&\"host\"!==u.toLowerCase()&&i.setRequestHeader(u,f[u]);return i.onload=function(){if(200===i.status)t(null,n._xhrRes(i,n._xhrBody(i,o)));else{var e={code:i.status,message:JSON.stringify(i.responseText)};t(e,n._xhrRes(i,n._xhrBody(i)))}},i.onerror=function(e){var o=n._xhrBody(i),r={code:i.status,message:JSON.stringify(i.responseText)};o||i.statusText||0!==i.status||(e.message=\"CORS blocked or network error\"),t(r,n._xhrRes(i,o)),r=null},e.onProgress&&i.upload&&(i.upload.onprogress=function(t){var n=t.total,o=t.loaded,r=Math.floor(100*o/n);e.onProgress({total:n,loaded:o,percent:(r>=100?100:r)/100})}),i.send(e.resources),i}},{key:\"_xhrRes\",value:function(e,t){var n={};return e.getAllResponseHeaders().trim().split(\"\\n\").forEach((function(e){if(e){var t=e.indexOf(\":\"),o=e.substr(0,t).trim().toLowerCase(),r=e.substr(t+1).trim();n[o]=r}})),{statusCode:e.status,statusMessage:e.statusText,headers:n,data:t}}},{key:\"_xhrBody\",value:function(e,t){return 200===e.status&&t?{location:t}:{response:e.responseText}}}]),e}(),O=[\"unknown\",\"image\",\"video\",\"audio\",\"log\"],w=[\"name\"],S=function(){function e(){o(this,e)}return a(e,[{key:\"request\",value:function(e,n){var o=this,r=e.resources,a=void 0===r?\"\":r,s=e.headers,f=void 0===s?{}:s,u=e.url,l=e.downloadUrl,c=void 0===l?\"\":l,d=u,g=null,h=c.match(/^(https?:\\/\\/[^/]+\\/)([^/]*\\/?)(.*)$/),v=decodeURIComponent(h[3]),b=v.indexOf(\"?\")>-1?v.split(\"?\")[0]:v,S={key:e.fileKey?e.fileKey:b,success_action_status:200,\"Content-Type\":\"\"},C={};if(p){var P=u.split(\"?sign=\");if(P.length>1){var j=P[1];d=\"\".concat(P[0],\"?sign=\").concat(encodeURIComponent(\"\".concat(j))),C.sign=decodeURIComponent(j),C.signature=decodeURIComponent(j)}}var x={url:d,header:f,name:\"file\",filePath:a,formData:t(t({},S),C),timeout:e.timeout||3e5};if(y){var R=x;R.name,x=t(t({},i(R,w)),{},{fileName:\"file\",fileType:O[e.fileType]})}return(g=m.uploadFile(t(t({},x),{},{success:function(e){o._handleResponse({response:e,downloadUrl:c,callback:n})},fail:function(e){o._handleResponse({response:e,downloadUrl:c,callback:n})}}))).onProgressUpdate&&g.onProgressUpdate((function(t){e.onProgress&&e.onProgress({total:t.totalBytesExpectedToSend,loaded:t.totalBytesSent,percent:Math.floor(t.progress)/100})})),g}},{key:\"_handleResponse\",value:function(e){var n=e.downloadUrl,o=e.response,r=e.callback,a=o.header,s={};if(a)for(var i in a)a.hasOwnProperty(i)&&(s[i.toLowerCase()]=a[i]);var f=+o.statusCode;200===f?r(null,{statusCode:f,headers:s,data:t(t({},o.data),{},{location:n})}):r({code:f,message:JSON.stringify(o.data)},{statusCode:f,headers:s,data:void 0})}}]),e}();return function(){function e(){o(this,e),console.log(\"TIMUploadPlugin.VERSION: \".concat(\"1.3.0\")),this.retry=1,this.tryCount=0,this.systemClockOffset=0,this.httpRequest=g?new S:new b}return a(e,[{key:\"uploadFile\",value:function(e,t){var n=this;return this.httpRequest.request(e,(function(o,r){o&&n.tryCount<n.retry&&n.allowRetry(o)?(n.tryCount++,n.uploadFile(e,t)):(n.tryCount=0,t(o,r))}))}},{key:\"allowRetry\",value:function(e){var t=!1,n=!1;if(e){var o=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var r=e.error&&e.error.Code,a=e.error&&e.error.Message;(\"RequestTimeTooSkewed\"===r||\"AccessDenied\"===r&&\"Request has expired\"===a)&&(n=!0)}catch(f){}if(n&&o){var s=Date.now(),i=Date.parse(o);Math.abs(s+this.systemClockOffset-i)>=3e4&&(this.systemClockOffset=i-s,t=!0)}else 5===Math.floor(e.statusCode/100)&&(t=!0)}return t}}]),e}()}, true?module.exports=factory():undefined;\n\n\n//# sourceURL=webpack:///./node_modules/tim-upload-plugin/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/button/index.js":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/button/index.js ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/babel-helper-vue-jsx-merge-props */ \"./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js\");\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _utils_functional__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/functional */ \"./node_modules/vant/es/utils/functional.js\");\n/* harmony import */ var _utils_constant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/constant */ \"./node_modules/vant/es/utils/constant.js\");\n/* harmony import */ var _utils_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/router */ \"./node_modules/vant/es/utils/router.js\");\n/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ \"./node_modules/vant/es/icon/index.js\");\n/* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../loading */ \"./node_modules/vant/es/loading/index.js\");\n\n\n// Utils\n\n\n\n // Components\n\n\n // Types\n\nvar _createNamespace = Object(_utils__WEBPACK_IMPORTED_MODULE_2__[\"createNamespace\"])('button'),\n    createComponent = _createNamespace[0],\n    bem = _createNamespace[1];\n\nfunction Button(h, props, slots, ctx) {\n  var _ref;\n\n  var tag = props.tag,\n      icon = props.icon,\n      type = props.type,\n      color = props.color,\n      plain = props.plain,\n      disabled = props.disabled,\n      loading = props.loading,\n      hairline = props.hairline,\n      loadingText = props.loadingText,\n      iconPosition = props.iconPosition;\n  var style = {};\n\n  if (color) {\n    style.color = plain ? color : 'white';\n\n    if (!plain) {\n      // Use background instead of backgroundColor to make linear-gradient work\n      style.background = color;\n    } // hide border when color is linear-gradient\n\n\n    if (color.indexOf('gradient') !== -1) {\n      style.border = 0;\n    } else {\n      style.borderColor = color;\n    }\n  }\n\n  function onClick(event) {\n    if (props.loading) {\n      event.preventDefault();\n    }\n\n    if (!loading && !disabled) {\n      Object(_utils_functional__WEBPACK_IMPORTED_MODULE_3__[\"emit\"])(ctx, 'click', event);\n      Object(_utils_router__WEBPACK_IMPORTED_MODULE_5__[\"functionalRoute\"])(ctx);\n    }\n  }\n\n  function onTouchstart(event) {\n    Object(_utils_functional__WEBPACK_IMPORTED_MODULE_3__[\"emit\"])(ctx, 'touchstart', event);\n  }\n\n  var classes = [bem([type, props.size, {\n    plain: plain,\n    loading: loading,\n    disabled: disabled,\n    hairline: hairline,\n    block: props.block,\n    round: props.round,\n    square: props.square\n  }]), (_ref = {}, _ref[_utils_constant__WEBPACK_IMPORTED_MODULE_4__[\"BORDER_SURROUND\"]] = hairline, _ref)];\n\n  function renderIcon() {\n    if (loading) {\n      return slots.loading ? slots.loading() : h(_loading__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n        \"class\": bem('loading'),\n        \"attrs\": {\n          \"size\": props.loadingSize,\n          \"type\": props.loadingType,\n          \"color\": \"currentColor\"\n        }\n      });\n    }\n\n    if (slots.icon) {\n      return h(\"div\", {\n        \"class\": bem('icon')\n      }, [slots.icon()]);\n    }\n\n    if (icon) {\n      return h(_icon__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n        \"attrs\": {\n          \"name\": icon,\n          \"classPrefix\": props.iconPrefix\n        },\n        \"class\": bem('icon')\n      });\n    }\n  }\n\n  function renderContent() {\n    var content = [];\n\n    if (iconPosition === 'left') {\n      content.push(renderIcon());\n    }\n\n    var text;\n\n    if (loading) {\n      text = loadingText;\n    } else {\n      text = slots.default ? slots.default() : props.text;\n    }\n\n    if (text) {\n      content.push(h(\"span\", {\n        \"class\": bem('text')\n      }, [text]));\n    }\n\n    if (iconPosition === 'right') {\n      content.push(renderIcon());\n    }\n\n    return content;\n  }\n\n  return h(tag, _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{\n    \"style\": style,\n    \"class\": classes,\n    \"attrs\": {\n      \"type\": props.nativeType,\n      \"disabled\": disabled\n    },\n    \"on\": {\n      \"click\": onClick,\n      \"touchstart\": onTouchstart\n    }\n  }, Object(_utils_functional__WEBPACK_IMPORTED_MODULE_3__[\"inherit\"])(ctx)]), [h(\"div\", {\n    \"class\": bem('content')\n  }, [renderContent()])]);\n}\n\nButton.props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, _utils_router__WEBPACK_IMPORTED_MODULE_5__[\"routeProps\"], {\n  text: String,\n  icon: String,\n  color: String,\n  block: Boolean,\n  plain: Boolean,\n  round: Boolean,\n  square: Boolean,\n  loading: Boolean,\n  hairline: Boolean,\n  disabled: Boolean,\n  iconPrefix: String,\n  nativeType: String,\n  loadingText: String,\n  loadingType: String,\n  tag: {\n    type: String,\n    default: 'button'\n  },\n  type: {\n    type: String,\n    default: 'default'\n  },\n  size: {\n    type: String,\n    default: 'normal'\n  },\n  loadingSize: {\n    type: String,\n    default: '20px'\n  },\n  iconPosition: {\n    type: String,\n    default: 'left'\n  }\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (createComponent(Button));\n\n//# sourceURL=webpack:///./node_modules/vant/es/button/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/button/index.less":
/*!************************************************!*\
  !*** ./node_modules/vant/es/button/index.less ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/button/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"b4ed1604\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/button/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/dialog/Dialog.js":
/*!***********************************************!*\
  !*** ./node_modules/vant/es/dialog/Dialog.js ***!
  \***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/babel-helper-vue-jsx-merge-props */ \"./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js\");\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _utils_constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/constant */ \"./node_modules/vant/es/utils/constant.js\");\n/* harmony import */ var _mixins_popup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../mixins/popup */ \"./node_modules/vant/es/mixins/popup/index.js\");\n/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button */ \"./node_modules/vant/es/button/index.js\");\n/* harmony import */ var _goods_action__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../goods-action */ \"./node_modules/vant/es/goods-action/index.js\");\n/* harmony import */ var _goods_action_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../goods-action-button */ \"./node_modules/vant/es/goods-action-button/index.js\");\n\n\n\n\n\n\n\n\nvar _createNamespace = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"createNamespace\"])('dialog'),\n    createComponent = _createNamespace[0],\n    bem = _createNamespace[1],\n    t = _createNamespace[2];\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createComponent({\n  mixins: [Object(_mixins_popup__WEBPACK_IMPORTED_MODULE_3__[\"PopupMixin\"])()],\n  props: {\n    title: String,\n    theme: String,\n    width: [Number, String],\n    message: String,\n    className: null,\n    callback: Function,\n    beforeClose: Function,\n    messageAlign: String,\n    cancelButtonText: String,\n    cancelButtonColor: String,\n    confirmButtonText: String,\n    confirmButtonColor: String,\n    showCancelButton: Boolean,\n    overlay: {\n      type: Boolean,\n      default: true\n    },\n    allowHtml: {\n      type: Boolean,\n      default: true\n    },\n    transition: {\n      type: String,\n      default: 'van-dialog-bounce'\n    },\n    showConfirmButton: {\n      type: Boolean,\n      default: true\n    },\n    closeOnPopstate: {\n      type: Boolean,\n      default: true\n    },\n    closeOnClickOverlay: {\n      type: Boolean,\n      default: false\n    }\n  },\n  data: function data() {\n    return {\n      loading: {\n        confirm: false,\n        cancel: false\n      }\n    };\n  },\n  methods: {\n    onClickOverlay: function onClickOverlay() {\n      this.handleAction('overlay');\n    },\n    handleAction: function handleAction(action) {\n      var _this = this;\n\n      this.$emit(action); // show not trigger close event when hidden\n\n      if (!this.value) {\n        return;\n      }\n\n      if (this.beforeClose) {\n        this.loading[action] = true;\n        this.beforeClose(action, function (state) {\n          if (state !== false && _this.loading[action]) {\n            _this.onClose(action);\n          }\n\n          _this.loading.confirm = false;\n          _this.loading.cancel = false;\n        });\n      } else {\n        this.onClose(action);\n      }\n    },\n    onClose: function onClose(action) {\n      this.close();\n\n      if (this.callback) {\n        this.callback(action);\n      }\n    },\n    onOpened: function onOpened() {\n      var _this2 = this;\n\n      this.$emit('opened');\n      this.$nextTick(function () {\n        var _this2$$refs$dialog;\n\n        (_this2$$refs$dialog = _this2.$refs.dialog) == null ? void 0 : _this2$$refs$dialog.focus();\n      });\n    },\n    onClosed: function onClosed() {\n      this.$emit('closed');\n    },\n    onKeydown: function onKeydown(event) {\n      var _this3 = this;\n\n      if (event.key === 'Escape' || event.key === 'Enter') {\n        // skip keyboard events of child elements\n        if (event.target !== this.$refs.dialog) {\n          return;\n        }\n\n        var onEventType = {\n          Enter: this.showConfirmButton ? function () {\n            return _this3.handleAction('confirm');\n          } : _utils__WEBPACK_IMPORTED_MODULE_1__[\"noop\"],\n          Escape: this.showCancelButton ? function () {\n            return _this3.handleAction('cancel');\n          } : _utils__WEBPACK_IMPORTED_MODULE_1__[\"noop\"]\n        };\n        onEventType[event.key]();\n        this.$emit('keydown', event);\n      }\n    },\n    genRoundButtons: function genRoundButtons() {\n      var _this4 = this;\n\n      var h = this.$createElement;\n      return h(_goods_action__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n        \"class\": bem('footer')\n      }, [this.showCancelButton && h(_goods_action_button__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n        \"attrs\": {\n          \"size\": \"large\",\n          \"type\": \"warning\",\n          \"text\": this.cancelButtonText || t('cancel'),\n          \"color\": this.cancelButtonColor,\n          \"loading\": this.loading.cancel\n        },\n        \"class\": bem('cancel'),\n        \"on\": {\n          \"click\": function click() {\n            _this4.handleAction('cancel');\n          }\n        }\n      }), this.showConfirmButton && h(_goods_action_button__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n        \"attrs\": {\n          \"size\": \"large\",\n          \"type\": \"danger\",\n          \"text\": this.confirmButtonText || t('confirm'),\n          \"color\": this.confirmButtonColor,\n          \"loading\": this.loading.confirm\n        },\n        \"class\": bem('confirm'),\n        \"on\": {\n          \"click\": function click() {\n            _this4.handleAction('confirm');\n          }\n        }\n      })]);\n    },\n    genButtons: function genButtons() {\n      var _this5 = this,\n          _ref;\n\n      var h = this.$createElement;\n      var multiple = this.showCancelButton && this.showConfirmButton;\n      return h(\"div\", {\n        \"class\": [_utils_constant__WEBPACK_IMPORTED_MODULE_2__[\"BORDER_TOP\"], bem('footer')]\n      }, [this.showCancelButton && h(_button__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        \"attrs\": {\n          \"size\": \"large\",\n          \"loading\": this.loading.cancel,\n          \"text\": this.cancelButtonText || t('cancel'),\n          \"nativeType\": \"button\"\n        },\n        \"class\": bem('cancel'),\n        \"style\": {\n          color: this.cancelButtonColor\n        },\n        \"on\": {\n          \"click\": function click() {\n            _this5.handleAction('cancel');\n          }\n        }\n      }), this.showConfirmButton && h(_button__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n        \"attrs\": {\n          \"size\": \"large\",\n          \"loading\": this.loading.confirm,\n          \"text\": this.confirmButtonText || t('confirm'),\n          \"nativeType\": \"button\"\n        },\n        \"class\": [bem('confirm'), (_ref = {}, _ref[_utils_constant__WEBPACK_IMPORTED_MODULE_2__[\"BORDER_LEFT\"]] = multiple, _ref)],\n        \"style\": {\n          color: this.confirmButtonColor\n        },\n        \"on\": {\n          \"click\": function click() {\n            _this5.handleAction('confirm');\n          }\n        }\n      })]);\n    },\n    genContent: function genContent(hasTitle, messageSlot) {\n      var h = this.$createElement;\n\n      if (messageSlot) {\n        return h(\"div\", {\n          \"class\": bem('content')\n        }, [messageSlot]);\n      }\n\n      var message = this.message,\n          messageAlign = this.messageAlign;\n\n      if (message) {\n        var _bem, _domProps;\n\n        var data = {\n          class: bem('message', (_bem = {\n            'has-title': hasTitle\n          }, _bem[messageAlign] = messageAlign, _bem)),\n          domProps: (_domProps = {}, _domProps[this.allowHtml ? 'innerHTML' : 'textContent'] = message, _domProps)\n        };\n        return h(\"div\", {\n          \"class\": bem('content', {\n            isolated: !hasTitle\n          })\n        }, [h(\"div\", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{}, data]))]);\n      }\n    }\n  },\n  render: function render() {\n    var h = arguments[0];\n\n    if (!this.shouldRender) {\n      return;\n    }\n\n    var message = this.message;\n    var messageSlot = this.slots();\n    var title = this.slots('title') || this.title;\n    var Title = title && h(\"div\", {\n      \"class\": bem('header', {\n        isolated: !message && !messageSlot\n      })\n    }, [title]);\n    return h(\"transition\", {\n      \"attrs\": {\n        \"name\": this.transition\n      },\n      \"on\": {\n        \"afterEnter\": this.onOpened,\n        \"afterLeave\": this.onClosed\n      }\n    }, [h(\"div\", {\n      \"directives\": [{\n        name: \"show\",\n        value: this.value\n      }],\n      \"attrs\": {\n        \"role\": \"dialog\",\n        \"aria-labelledby\": this.title || message,\n        \"tabIndex\": 0\n      },\n      \"class\": [bem([this.theme]), this.className],\n      \"style\": {\n        width: Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"addUnit\"])(this.width)\n      },\n      \"ref\": \"dialog\",\n      \"on\": {\n        \"keydown\": this.onKeydown\n      }\n    }, [Title, this.genContent(title, messageSlot), this.theme === 'round-button' ? this.genRoundButtons() : this.genButtons()])]);\n  }\n}));\n\n//# sourceURL=webpack:///./node_modules/vant/es/dialog/Dialog.js?");

/***/ }),

/***/ "./node_modules/vant/es/dialog/index.js":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/dialog/index.js ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n/* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dialog */ \"./node_modules/vant/es/dialog/Dialog.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n\n\n\n\nvar instance;\n\nfunction isInDocument(element) {\n  return document.body.contains(element);\n}\n\nfunction initInstance() {\n  if (instance) {\n    instance.$destroy();\n  }\n\n  instance = new (vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].extend(_Dialog__WEBPACK_IMPORTED_MODULE_2__[\"default\"]))({\n    el: document.createElement('div'),\n    // avoid missing animation when first rendered\n    propsData: {\n      lazyRender: false\n    }\n  });\n  instance.$on('input', function (value) {\n    instance.value = value;\n  });\n}\n\nfunction Dialog(options) {\n  /* istanbul ignore if */\n  if (_utils__WEBPACK_IMPORTED_MODULE_3__[\"isServer\"]) {\n    return Promise.resolve();\n  }\n\n  return new Promise(function (resolve, reject) {\n    if (!instance || !isInDocument(instance.$el)) {\n      initInstance();\n    }\n\n    Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(instance, Dialog.currentOptions, options, {\n      resolve: resolve,\n      reject: reject\n    });\n  });\n}\n\nDialog.defaultOptions = {\n  value: true,\n  title: '',\n  width: '',\n  theme: null,\n  message: '',\n  overlay: true,\n  className: '',\n  allowHtml: true,\n  lockScroll: true,\n  transition: 'van-dialog-bounce',\n  beforeClose: null,\n  overlayClass: '',\n  overlayStyle: null,\n  messageAlign: '',\n  getContainer: 'body',\n  cancelButtonText: '',\n  cancelButtonColor: null,\n  confirmButtonText: '',\n  confirmButtonColor: null,\n  showConfirmButton: true,\n  showCancelButton: false,\n  closeOnPopstate: true,\n  closeOnClickOverlay: false,\n  callback: function callback(action) {\n    instance[action === 'confirm' ? 'resolve' : 'reject'](action);\n  }\n};\nDialog.alert = Dialog;\n\nDialog.confirm = function (options) {\n  return Dialog(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    showCancelButton: true\n  }, options));\n};\n\nDialog.close = function () {\n  if (instance) {\n    instance.value = false;\n  }\n};\n\nDialog.setDefaultOptions = function (options) {\n  Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(Dialog.currentOptions, options);\n};\n\nDialog.resetDefaultOptions = function () {\n  Dialog.currentOptions = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Dialog.defaultOptions);\n};\n\nDialog.resetDefaultOptions();\n\nDialog.install = function () {\n  vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(_Dialog__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n};\n\nDialog.Component = _Dialog__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].prototype.$dialog = Dialog;\n/* harmony default export */ __webpack_exports__[\"default\"] = (Dialog);\n\n//# sourceURL=webpack:///./node_modules/vant/es/dialog/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/dialog/index.less":
/*!************************************************!*\
  !*** ./node_modules/vant/es/dialog/index.less ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/dialog/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"7817d5b0\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/dialog/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/dialog/style/less.js":
/*!***************************************************!*\
  !*** ./node_modules/vant/es/dialog/style/less.js ***!
  \***************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _style_base_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/base.less */ \"./node_modules/vant/es/style/base.less\");\n/* harmony import */ var _style_base_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_base_less__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _overlay_index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../overlay/index.less */ \"./node_modules/vant/es/overlay/index.less\");\n/* harmony import */ var _overlay_index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_overlay_index_less__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _info_index_less__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../info/index.less */ \"./node_modules/vant/es/info/index.less\");\n/* harmony import */ var _info_index_less__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_info_index_less__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _icon_index_less__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../icon/index.less */ \"./node_modules/vant/es/icon/index.less\");\n/* harmony import */ var _icon_index_less__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icon_index_less__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _popup_index_less__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../popup/index.less */ \"./node_modules/vant/es/popup/index.less\");\n/* harmony import */ var _popup_index_less__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_popup_index_less__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _loading_index_less__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../loading/index.less */ \"./node_modules/vant/es/loading/index.less\");\n/* harmony import */ var _loading_index_less__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_loading_index_less__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _button_index_less__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../button/index.less */ \"./node_modules/vant/es/button/index.less\");\n/* harmony import */ var _button_index_less__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_button_index_less__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _goods_action_button_index_less__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../goods-action-button/index.less */ \"./node_modules/vant/es/goods-action-button/index.less\");\n/* harmony import */ var _goods_action_button_index_less__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_goods_action_button_index_less__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _goods_action_index_less__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../goods-action/index.less */ \"./node_modules/vant/es/goods-action/index.less\");\n/* harmony import */ var _goods_action_index_less__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_goods_action_index_less__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../index.less */ \"./node_modules/vant/es/dialog/index.less\");\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/dialog/style/less.js?");

/***/ }),

/***/ "./node_modules/vant/es/goods-action-button/index.js":
/*!***********************************************************!*\
  !*** ./node_modules/vant/es/goods-action-button/index.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _utils_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/router */ \"./node_modules/vant/es/utils/router.js\");\n/* harmony import */ var _mixins_relation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../mixins/relation */ \"./node_modules/vant/es/mixins/relation.js\");\n/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button */ \"./node_modules/vant/es/button/index.js\");\n\n\n\n\n\n\nvar _createNamespace = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"createNamespace\"])('goods-action-button'),\n    createComponent = _createNamespace[0],\n    bem = _createNamespace[1];\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createComponent({\n  mixins: [Object(_mixins_relation__WEBPACK_IMPORTED_MODULE_3__[\"ChildrenMixin\"])('vanGoodsAction')],\n  props: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, _utils_router__WEBPACK_IMPORTED_MODULE_2__[\"routeProps\"], {\n    type: String,\n    text: String,\n    icon: String,\n    color: String,\n    loading: Boolean,\n    disabled: Boolean\n  }),\n  computed: {\n    isFirst: function isFirst() {\n      var prev = this.parent && this.parent.children[this.index - 1];\n      return !prev || prev.$options.name !== this.$options.name;\n    },\n    isLast: function isLast() {\n      var next = this.parent && this.parent.children[this.index + 1];\n      return !next || next.$options.name !== this.$options.name;\n    }\n  },\n  methods: {\n    onClick: function onClick(event) {\n      this.$emit('click', event);\n      Object(_utils_router__WEBPACK_IMPORTED_MODULE_2__[\"route\"])(this.$router, this);\n    }\n  },\n  render: function render() {\n    var h = arguments[0];\n    return h(_button__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n      \"class\": bem([{\n        first: this.isFirst,\n        last: this.isLast\n      }, this.type]),\n      \"attrs\": {\n        \"size\": \"large\",\n        \"type\": this.type,\n        \"icon\": this.icon,\n        \"color\": this.color,\n        \"loading\": this.loading,\n        \"disabled\": this.disabled\n      },\n      \"on\": {\n        \"click\": this.onClick\n      }\n    }, [this.slots() || this.text]);\n  }\n}));\n\n//# sourceURL=webpack:///./node_modules/vant/es/goods-action-button/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/goods-action-button/index.less":
/*!*************************************************************!*\
  !*** ./node_modules/vant/es/goods-action-button/index.less ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/goods-action-button/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"88fd6cb4\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/goods-action-button/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/goods-action/index.js":
/*!****************************************************!*\
  !*** ./node_modules/vant/es/goods-action/index.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _mixins_relation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../mixins/relation */ \"./node_modules/vant/es/mixins/relation.js\");\n\n\n\nvar _createNamespace = Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"createNamespace\"])('goods-action'),\n    createComponent = _createNamespace[0],\n    bem = _createNamespace[1];\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (createComponent({\n  mixins: [Object(_mixins_relation__WEBPACK_IMPORTED_MODULE_1__[\"ParentMixin\"])('vanGoodsAction')],\n  props: {\n    safeAreaInsetBottom: {\n      type: Boolean,\n      default: true\n    }\n  },\n  render: function render() {\n    var h = arguments[0];\n    return h(\"div\", {\n      \"class\": bem({\n        unfit: !this.safeAreaInsetBottom\n      })\n    }, [this.slots()]);\n  }\n}));\n\n//# sourceURL=webpack:///./node_modules/vant/es/goods-action/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/goods-action/index.less":
/*!******************************************************!*\
  !*** ./node_modules/vant/es/goods-action/index.less ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/goods-action/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"0dfcf7c3\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/goods-action/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/icon/index.js":
/*!********************************************!*\
  !*** ./node_modules/vant/es/icon/index.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/babel-helper-vue-jsx-merge-props */ \"./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js\");\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _utils_functional__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/functional */ \"./node_modules/vant/es/utils/functional.js\");\n/* harmony import */ var _info__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../info */ \"./node_modules/vant/es/info/index.js\");\n\n// Utils\n\n // Components\n\n // Types\n\nvar _createNamespace = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"createNamespace\"])('icon'),\n    createComponent = _createNamespace[0],\n    bem = _createNamespace[1];\n\nfunction isImage(name) {\n  return name ? name.indexOf('/') !== -1 : false;\n} // compatible with legacy usage, should be removed in next major version\n\n\nvar LEGACY_MAP = {\n  medel: 'medal',\n  'medel-o': 'medal-o',\n  'calender-o': 'calendar-o'\n};\n\nfunction correctName(name) {\n  return name && LEGACY_MAP[name] || name;\n}\n\nfunction Icon(h, props, slots, ctx) {\n  var _props$badge;\n\n  var name = correctName(props.name);\n  var imageIcon = isImage(name);\n\n  if (false) {}\n\n  return h(props.tag, _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{\n    \"class\": [props.classPrefix, imageIcon ? '' : props.classPrefix + \"-\" + name],\n    \"style\": {\n      color: props.color,\n      fontSize: Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"addUnit\"])(props.size)\n    }\n  }, Object(_utils_functional__WEBPACK_IMPORTED_MODULE_2__[\"inherit\"])(ctx, true)]), [slots.default && slots.default(), imageIcon && h(\"img\", {\n    \"class\": bem('image'),\n    \"attrs\": {\n      \"src\": name\n    }\n  }), h(_info__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n    \"attrs\": {\n      \"dot\": props.dot,\n      \"info\": (_props$badge = props.badge) != null ? _props$badge : props.info\n    }\n  })]);\n}\n\nIcon.props = {\n  dot: Boolean,\n  name: String,\n  size: [Number, String],\n  // @deprecated\n  // should be removed in next major version\n  info: [Number, String],\n  badge: [Number, String],\n  color: String,\n  tag: {\n    type: String,\n    default: 'i'\n  },\n  classPrefix: {\n    type: String,\n    default: bem()\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (createComponent(Icon));\n\n//# sourceURL=webpack:///./node_modules/vant/es/icon/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/icon/index.less":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/icon/index.less ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/icon/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"94603f52\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/icon/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/info/index.js":
/*!********************************************!*\
  !*** ./node_modules/vant/es/info/index.js ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/babel-helper-vue-jsx-merge-props */ \"./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js\");\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _utils_functional__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/functional */ \"./node_modules/vant/es/utils/functional.js\");\n\n// Utils\n\n // Types\n\nvar _createNamespace = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"createNamespace\"])('info'),\n    createComponent = _createNamespace[0],\n    bem = _createNamespace[1];\n\nfunction Info(h, props, slots, ctx) {\n  var dot = props.dot,\n      info = props.info;\n  var showInfo = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"isDef\"])(info) && info !== '';\n\n  if (!dot && !showInfo) {\n    return;\n  }\n\n  return h(\"div\", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{\n    \"class\": bem({\n      dot: dot\n    })\n  }, Object(_utils_functional__WEBPACK_IMPORTED_MODULE_2__[\"inherit\"])(ctx, true)]), [dot ? '' : props.info]);\n}\n\nInfo.props = {\n  dot: Boolean,\n  info: [Number, String]\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (createComponent(Info));\n\n//# sourceURL=webpack:///./node_modules/vant/es/info/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/info/index.less":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/info/index.less ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/info/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"0f6df502\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/info/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/loading/index.js":
/*!***********************************************!*\
  !*** ./node_modules/vant/es/loading/index.js ***!
  \***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/babel-helper-vue-jsx-merge-props */ \"./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js\");\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _utils_functional__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/functional */ \"./node_modules/vant/es/utils/functional.js\");\n\n// Utils\n\n // Types\n\nvar _createNamespace = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"createNamespace\"])('loading'),\n    createComponent = _createNamespace[0],\n    bem = _createNamespace[1];\n\nfunction LoadingIcon(h, props) {\n  if (props.type === 'spinner') {\n    var Spin = [];\n\n    for (var i = 0; i < 12; i++) {\n      Spin.push(h(\"i\"));\n    }\n\n    return Spin;\n  }\n\n  return h(\"svg\", {\n    \"class\": bem('circular'),\n    \"attrs\": {\n      \"viewBox\": \"25 25 50 50\"\n    }\n  }, [h(\"circle\", {\n    \"attrs\": {\n      \"cx\": \"50\",\n      \"cy\": \"50\",\n      \"r\": \"20\",\n      \"fill\": \"none\"\n    }\n  })]);\n}\n\nfunction LoadingText(h, props, slots) {\n  if (slots.default) {\n    var _props$textColor;\n\n    var style = {\n      fontSize: Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"addUnit\"])(props.textSize),\n      color: (_props$textColor = props.textColor) != null ? _props$textColor : props.color\n    };\n    return h(\"span\", {\n      \"class\": bem('text'),\n      \"style\": style\n    }, [slots.default()]);\n  }\n}\n\nfunction Loading(h, props, slots, ctx) {\n  var color = props.color,\n      size = props.size,\n      type = props.type;\n  var style = {\n    color: color\n  };\n\n  if (size) {\n    var iconSize = Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"addUnit\"])(size);\n    style.width = iconSize;\n    style.height = iconSize;\n  }\n\n  return h(\"div\", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{\n    \"class\": bem([type, {\n      vertical: props.vertical\n    }])\n  }, Object(_utils_functional__WEBPACK_IMPORTED_MODULE_2__[\"inherit\"])(ctx, true)]), [h(\"span\", {\n    \"class\": bem('spinner', type),\n    \"style\": style\n  }, [LoadingIcon(h, props)]), LoadingText(h, props, slots)]);\n}\n\nLoading.props = {\n  color: String,\n  size: [Number, String],\n  vertical: Boolean,\n  textSize: [Number, String],\n  textColor: String,\n  type: {\n    type: String,\n    default: 'circular'\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (createComponent(Loading));\n\n//# sourceURL=webpack:///./node_modules/vant/es/loading/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/loading/index.less":
/*!*************************************************!*\
  !*** ./node_modules/vant/es/loading/index.less ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/loading/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"4cd1189c\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/loading/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/loading/style/less.js":
/*!****************************************************!*\
  !*** ./node_modules/vant/es/loading/style/less.js ***!
  \****************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _style_base_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/base.less */ \"./node_modules/vant/es/style/base.less\");\n/* harmony import */ var _style_base_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_base_less__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../index.less */ \"./node_modules/vant/es/loading/index.less\");\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/loading/style/less.js?");

/***/ }),

/***/ "./node_modules/vant/es/locale/index.js":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/locale/index.js ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n/* harmony import */ var _utils_deep_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/deep-assign */ \"./node_modules/vant/es/utils/deep-assign.js\");\n/* harmony import */ var _lang_zh_CN__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lang/zh-CN */ \"./node_modules/vant/es/locale/lang/zh-CN.js\");\n\n\n\nvar proto = vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype;\nvar defineReactive = vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].util.defineReactive;\ndefineReactive(proto, '$vantLang', 'zh-CN');\ndefineReactive(proto, '$vantMessages', {\n  'zh-CN': _lang_zh_CN__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  messages: function messages() {\n    return proto.$vantMessages[proto.$vantLang];\n  },\n  use: function use(lang, messages) {\n    var _this$add;\n\n    proto.$vantLang = lang;\n    this.add((_this$add = {}, _this$add[lang] = messages, _this$add));\n  },\n  add: function add(messages) {\n    if (messages === void 0) {\n      messages = {};\n    }\n\n    Object(_utils_deep_assign__WEBPACK_IMPORTED_MODULE_1__[\"deepAssign\"])(proto.$vantMessages, messages);\n  }\n});\n\n//# sourceURL=webpack:///./node_modules/vant/es/locale/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/locale/lang/zh-CN.js":
/*!***************************************************!*\
  !*** ./node_modules/vant/es/locale/lang/zh-CN.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  name: '姓名',\n  tel: '电话',\n  save: '保存',\n  confirm: '确认',\n  cancel: '取消',\n  delete: '删除',\n  complete: '完成',\n  loading: '加载中...',\n  telEmpty: '请填写电话',\n  nameEmpty: '请填写姓名',\n  nameInvalid: '请输入正确的姓名',\n  confirmDelete: '确定要删除吗',\n  telInvalid: '请输入正确的手机号',\n  vanCalendar: {\n    end: '结束',\n    start: '开始',\n    title: '日期选择',\n    confirm: '确定',\n    startEnd: '开始/结束',\n    weekdays: ['日', '一', '二', '三', '四', '五', '六'],\n    monthTitle: function monthTitle(year, month) {\n      return year + \"\\u5E74\" + month + \"\\u6708\";\n    },\n    rangePrompt: function rangePrompt(maxRange) {\n      return \"\\u9009\\u62E9\\u5929\\u6570\\u4E0D\\u80FD\\u8D85\\u8FC7 \" + maxRange + \" \\u5929\";\n    }\n  },\n  vanCascader: {\n    select: '请选择'\n  },\n  vanContactCard: {\n    addText: '添加联系人'\n  },\n  vanContactList: {\n    addText: '新建联系人'\n  },\n  vanPagination: {\n    prev: '上一页',\n    next: '下一页'\n  },\n  vanPullRefresh: {\n    pulling: '下拉即可刷新...',\n    loosing: '释放即可刷新...'\n  },\n  vanSubmitBar: {\n    label: '合计：'\n  },\n  vanCoupon: {\n    unlimited: '无使用门槛',\n    discount: function discount(_discount) {\n      return _discount + \"\\u6298\";\n    },\n    condition: function condition(_condition) {\n      return \"\\u6EE1\" + _condition + \"\\u5143\\u53EF\\u7528\";\n    }\n  },\n  vanCouponCell: {\n    title: '优惠券',\n    tips: '暂无可用',\n    count: function count(_count) {\n      return _count + \"\\u5F20\\u53EF\\u7528\";\n    }\n  },\n  vanCouponList: {\n    empty: '暂无优惠券',\n    exchange: '兑换',\n    close: '不使用优惠券',\n    enable: '可用',\n    disabled: '不可用',\n    placeholder: '请输入优惠码'\n  },\n  vanAddressEdit: {\n    area: '地区',\n    postal: '邮政编码',\n    areaEmpty: '请选择地区',\n    addressEmpty: '请填写详细地址',\n    postalEmpty: '邮政编码格式不正确',\n    defaultAddress: '设为默认收货地址',\n    telPlaceholder: '收货人手机号',\n    namePlaceholder: '收货人姓名',\n    areaPlaceholder: '选择省 / 市 / 区'\n  },\n  vanAddressEditDetail: {\n    label: '详细地址',\n    placeholder: '街道门牌、楼层房间号等信息'\n  },\n  vanAddressList: {\n    add: '新增地址'\n  }\n});\n\n//# sourceURL=webpack:///./node_modules/vant/es/locale/lang/zh-CN.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/bind-event.js":
/*!***************************************************!*\
  !*** ./node_modules/vant/es/mixins/bind-event.js ***!
  \***************************************************/
/*! exports provided: BindEventMixin */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BindEventMixin\", function() { return BindEventMixin; });\n/* harmony import */ var _utils_dom_event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/dom/event */ \"./node_modules/vant/es/utils/dom/event.js\");\n/**\n * Bind event when mounted or activated\n */\n\nvar uid = 0;\nfunction BindEventMixin(handler) {\n  var key = \"binded_\" + uid++;\n\n  function bind() {\n    if (!this[key]) {\n      handler.call(this, _utils_dom_event__WEBPACK_IMPORTED_MODULE_0__[\"on\"], true);\n      this[key] = true;\n    }\n  }\n\n  function unbind() {\n    if (this[key]) {\n      handler.call(this, _utils_dom_event__WEBPACK_IMPORTED_MODULE_0__[\"off\"], false);\n      this[key] = false;\n    }\n  }\n\n  return {\n    mounted: bind,\n    activated: bind,\n    deactivated: unbind,\n    beforeDestroy: unbind\n  };\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/bind-event.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/close-on-popstate.js":
/*!**********************************************************!*\
  !*** ./node_modules/vant/es/mixins/close-on-popstate.js ***!
  \**********************************************************/
/*! exports provided: CloseOnPopstateMixin */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CloseOnPopstateMixin\", function() { return CloseOnPopstateMixin; });\n/* harmony import */ var _utils_dom_event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/dom/event */ \"./node_modules/vant/es/utils/dom/event.js\");\n/* harmony import */ var _bind_event__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bind-event */ \"./node_modules/vant/es/mixins/bind-event.js\");\n\n\nvar CloseOnPopstateMixin = {\n  mixins: [Object(_bind_event__WEBPACK_IMPORTED_MODULE_1__[\"BindEventMixin\"])(function (bind, isBind) {\n    this.handlePopstate(isBind && this.closeOnPopstate);\n  })],\n  props: {\n    closeOnPopstate: Boolean\n  },\n  data: function data() {\n    return {\n      bindStatus: false\n    };\n  },\n  watch: {\n    closeOnPopstate: function closeOnPopstate(val) {\n      this.handlePopstate(val);\n    }\n  },\n  methods: {\n    onPopstate: function onPopstate() {\n      this.close();\n      this.shouldReopen = false;\n    },\n    handlePopstate: function handlePopstate(bind) {\n      /* istanbul ignore if */\n      if (this.$isServer) {\n        return;\n      }\n\n      if (this.bindStatus !== bind) {\n        this.bindStatus = bind;\n        var action = bind ? _utils_dom_event__WEBPACK_IMPORTED_MODULE_0__[\"on\"] : _utils_dom_event__WEBPACK_IMPORTED_MODULE_0__[\"off\"];\n        action(window, 'popstate', this.onPopstate);\n      }\n    }\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/close-on-popstate.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/popup/context.js":
/*!******************************************************!*\
  !*** ./node_modules/vant/es/mixins/popup/context.js ***!
  \******************************************************/
/*! exports provided: context */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"context\", function() { return context; });\nvar context = {\n  zIndex: 2000,\n  lockCount: 0,\n  stack: [],\n  find: function find(vm) {\n    return this.stack.filter(function (item) {\n      return item.vm === vm;\n    })[0];\n  },\n  remove: function remove(vm) {\n    var item = this.find(vm);\n    if (!item) return;\n    item.vm = null;\n    item.overlay = null;\n    var index = this.stack.indexOf(item);\n    this.stack.splice(index, 1);\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/popup/context.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/popup/index.js":
/*!****************************************************!*\
  !*** ./node_modules/vant/es/mixins/popup/index.js ***!
  \****************************************************/
/*! exports provided: popupMixinProps, PopupMixin */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"popupMixinProps\", function() { return popupMixinProps; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PopupMixin\", function() { return PopupMixin; });\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./context */ \"./node_modules/vant/es/mixins/popup/context.js\");\n/* harmony import */ var _overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./overlay */ \"./node_modules/vant/es/mixins/popup/overlay.js\");\n/* harmony import */ var _utils_dom_event__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/dom/event */ \"./node_modules/vant/es/utils/dom/event.js\");\n/* harmony import */ var _utils_dom_node__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/dom/node */ \"./node_modules/vant/es/utils/dom/node.js\");\n/* harmony import */ var _utils_dom_scroll__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/dom/scroll */ \"./node_modules/vant/es/utils/dom/scroll.js\");\n/* harmony import */ var _touch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../touch */ \"./node_modules/vant/es/mixins/touch.js\");\n/* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../portal */ \"./node_modules/vant/es/mixins/portal.js\");\n/* harmony import */ var _close_on_popstate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../close-on-popstate */ \"./node_modules/vant/es/mixins/close-on-popstate.js\");\n// Context\n\n // Utils\n\n\n\n // Mixins\n\n\n\n\nvar popupMixinProps = {\n  // Initial rendering animation\n  transitionAppear: Boolean,\n  // whether to show popup\n  value: Boolean,\n  // whether to show overlay\n  overlay: Boolean,\n  // overlay custom style\n  overlayStyle: Object,\n  // overlay custom class name\n  overlayClass: String,\n  // whether to close popup when overlay is clicked\n  closeOnClickOverlay: Boolean,\n  // z-index\n  zIndex: [Number, String],\n  // prevent body scroll\n  lockScroll: {\n    type: Boolean,\n    default: true\n  },\n  // whether to lazy render\n  lazyRender: {\n    type: Boolean,\n    default: true\n  }\n};\nfunction PopupMixin(options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  return {\n    mixins: [_touch__WEBPACK_IMPORTED_MODULE_5__[\"TouchMixin\"], _close_on_popstate__WEBPACK_IMPORTED_MODULE_7__[\"CloseOnPopstateMixin\"], Object(_portal__WEBPACK_IMPORTED_MODULE_6__[\"PortalMixin\"])({\n      afterPortal: function afterPortal() {\n        if (this.overlay) {\n          Object(_overlay__WEBPACK_IMPORTED_MODULE_1__[\"updateOverlay\"])();\n        }\n      }\n    })],\n    provide: function provide() {\n      return {\n        vanPopup: this\n      };\n    },\n    props: popupMixinProps,\n    data: function data() {\n      this.onReopenCallback = [];\n      return {\n        inited: this.value\n      };\n    },\n    computed: {\n      shouldRender: function shouldRender() {\n        return this.inited || !this.lazyRender;\n      }\n    },\n    watch: {\n      value: function value(val) {\n        var type = val ? 'open' : 'close';\n        this.inited = this.inited || this.value;\n        this[type]();\n\n        if (!options.skipToggleEvent) {\n          this.$emit(type);\n        }\n      },\n      overlay: 'renderOverlay'\n    },\n    mounted: function mounted() {\n      if (this.value) {\n        this.open();\n      }\n    },\n\n    /* istanbul ignore next */\n    activated: function activated() {\n      if (this.shouldReopen) {\n        this.$emit('input', true);\n        this.shouldReopen = false;\n      }\n    },\n    beforeDestroy: function beforeDestroy() {\n      Object(_overlay__WEBPACK_IMPORTED_MODULE_1__[\"removeOverlay\"])(this);\n\n      if (this.opened) {\n        this.removeLock();\n      }\n\n      if (this.getContainer) {\n        Object(_utils_dom_node__WEBPACK_IMPORTED_MODULE_3__[\"removeNode\"])(this.$el);\n      }\n    },\n\n    /* istanbul ignore next */\n    deactivated: function deactivated() {\n      if (this.value) {\n        this.close();\n        this.shouldReopen = true;\n      }\n    },\n    methods: {\n      open: function open() {\n        /* istanbul ignore next */\n        if (this.$isServer || this.opened) {\n          return;\n        } // cover default zIndex\n\n\n        if (this.zIndex !== undefined) {\n          _context__WEBPACK_IMPORTED_MODULE_0__[\"context\"].zIndex = this.zIndex;\n        }\n\n        this.opened = true;\n        this.renderOverlay();\n        this.addLock();\n        this.onReopenCallback.forEach(function (callback) {\n          callback();\n        });\n      },\n      addLock: function addLock() {\n        if (this.lockScroll) {\n          Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_2__[\"on\"])(document, 'touchstart', this.touchStart);\n          Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_2__[\"on\"])(document, 'touchmove', this.onTouchMove);\n\n          if (!_context__WEBPACK_IMPORTED_MODULE_0__[\"context\"].lockCount) {\n            document.body.classList.add('van-overflow-hidden');\n          }\n\n          _context__WEBPACK_IMPORTED_MODULE_0__[\"context\"].lockCount++;\n        }\n      },\n      removeLock: function removeLock() {\n        if (this.lockScroll && _context__WEBPACK_IMPORTED_MODULE_0__[\"context\"].lockCount) {\n          _context__WEBPACK_IMPORTED_MODULE_0__[\"context\"].lockCount--;\n          Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_2__[\"off\"])(document, 'touchstart', this.touchStart);\n          Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_2__[\"off\"])(document, 'touchmove', this.onTouchMove);\n\n          if (!_context__WEBPACK_IMPORTED_MODULE_0__[\"context\"].lockCount) {\n            document.body.classList.remove('van-overflow-hidden');\n          }\n        }\n      },\n      close: function close() {\n        if (!this.opened) {\n          return;\n        }\n\n        Object(_overlay__WEBPACK_IMPORTED_MODULE_1__[\"closeOverlay\"])(this);\n        this.opened = false;\n        this.removeLock();\n        this.$emit('input', false);\n      },\n      onTouchMove: function onTouchMove(event) {\n        this.touchMove(event);\n        var direction = this.deltaY > 0 ? '10' : '01';\n        var el = Object(_utils_dom_scroll__WEBPACK_IMPORTED_MODULE_4__[\"getScroller\"])(event.target, this.$el);\n        var scrollHeight = el.scrollHeight,\n            offsetHeight = el.offsetHeight,\n            scrollTop = el.scrollTop;\n        var status = '11';\n        /* istanbul ignore next */\n\n        if (scrollTop === 0) {\n          status = offsetHeight >= scrollHeight ? '00' : '01';\n        } else if (scrollTop + offsetHeight >= scrollHeight) {\n          status = '10';\n        }\n        /* istanbul ignore next */\n\n\n        if (status !== '11' && this.direction === 'vertical' && !(parseInt(status, 2) & parseInt(direction, 2))) {\n          Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_2__[\"preventDefault\"])(event, true);\n        }\n      },\n      renderOverlay: function renderOverlay() {\n        var _this = this;\n\n        if (this.$isServer || !this.value) {\n          return;\n        }\n\n        this.$nextTick(function () {\n          _this.updateZIndex(_this.overlay ? 1 : 0);\n\n          if (_this.overlay) {\n            Object(_overlay__WEBPACK_IMPORTED_MODULE_1__[\"openOverlay\"])(_this, {\n              zIndex: _context__WEBPACK_IMPORTED_MODULE_0__[\"context\"].zIndex++,\n              duration: _this.duration,\n              className: _this.overlayClass,\n              customStyle: _this.overlayStyle\n            });\n          } else {\n            Object(_overlay__WEBPACK_IMPORTED_MODULE_1__[\"closeOverlay\"])(_this);\n          }\n        });\n      },\n      updateZIndex: function updateZIndex(value) {\n        if (value === void 0) {\n          value = 0;\n        }\n\n        this.$el.style.zIndex = ++_context__WEBPACK_IMPORTED_MODULE_0__[\"context\"].zIndex + value;\n      },\n      onReopen: function onReopen(callback) {\n        this.onReopenCallback.push(callback);\n      }\n    }\n  };\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/popup/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/popup/overlay.js":
/*!******************************************************!*\
  !*** ./node_modules/vant/es/mixins/popup/overlay.js ***!
  \******************************************************/
/*! exports provided: updateOverlay, openOverlay, closeOverlay, removeOverlay */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateOverlay\", function() { return updateOverlay; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"openOverlay\", function() { return openOverlay; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"closeOverlay\", function() { return closeOverlay; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeOverlay\", function() { return removeOverlay; });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../overlay */ \"./node_modules/vant/es/overlay/index.js\");\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ \"./node_modules/vant/es/mixins/popup/context.js\");\n/* harmony import */ var _utils_functional__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/functional */ \"./node_modules/vant/es/utils/functional.js\");\n/* harmony import */ var _utils_dom_node__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/dom/node */ \"./node_modules/vant/es/utils/dom/node.js\");\n\n\n\n\n\nvar defaultConfig = {\n  className: '',\n  customStyle: {}\n};\n\nfunction mountOverlay(vm) {\n  return Object(_utils_functional__WEBPACK_IMPORTED_MODULE_3__[\"mount\"])(_overlay__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    on: {\n      // close popup when overlay clicked & closeOnClickOverlay is true\n      click: function click() {\n        vm.$emit('click-overlay');\n\n        if (vm.closeOnClickOverlay) {\n          if (vm.onClickOverlay) {\n            vm.onClickOverlay();\n          } else {\n            vm.close();\n          }\n        }\n      }\n    }\n  });\n}\n\nfunction updateOverlay(vm) {\n  var item = _context__WEBPACK_IMPORTED_MODULE_2__[\"context\"].find(vm);\n\n  if (item) {\n    var el = vm.$el;\n    var config = item.config,\n        overlay = item.overlay;\n\n    if (el && el.parentNode) {\n      el.parentNode.insertBefore(overlay.$el, el);\n    }\n\n    Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(overlay, defaultConfig, config, {\n      show: true\n    });\n  }\n}\nfunction openOverlay(vm, config) {\n  var item = _context__WEBPACK_IMPORTED_MODULE_2__[\"context\"].find(vm);\n\n  if (item) {\n    item.config = config;\n  } else {\n    var overlay = mountOverlay(vm);\n    _context__WEBPACK_IMPORTED_MODULE_2__[\"context\"].stack.push({\n      vm: vm,\n      config: config,\n      overlay: overlay\n    });\n  }\n\n  updateOverlay(vm);\n}\nfunction closeOverlay(vm) {\n  var item = _context__WEBPACK_IMPORTED_MODULE_2__[\"context\"].find(vm);\n\n  if (item) {\n    item.overlay.show = false;\n  }\n}\nfunction removeOverlay(vm) {\n  var item = _context__WEBPACK_IMPORTED_MODULE_2__[\"context\"].find(vm);\n\n  if (item) {\n    Object(_utils_dom_node__WEBPACK_IMPORTED_MODULE_4__[\"removeNode\"])(item.overlay.$el);\n    _context__WEBPACK_IMPORTED_MODULE_2__[\"context\"].remove(vm);\n  }\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/popup/overlay.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/portal.js":
/*!***********************************************!*\
  !*** ./node_modules/vant/es/mixins/portal.js ***!
  \***********************************************/
/*! exports provided: PortalMixin */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PortalMixin\", function() { return PortalMixin; });\nfunction getElement(selector) {\n  if (typeof selector === 'string') {\n    return document.querySelector(selector);\n  }\n\n  return selector();\n}\n\nfunction PortalMixin(_temp) {\n  var _ref = _temp === void 0 ? {} : _temp,\n      ref = _ref.ref,\n      afterPortal = _ref.afterPortal;\n\n  return {\n    props: {\n      getContainer: [String, Function]\n    },\n    watch: {\n      getContainer: 'portal'\n    },\n    mounted: function mounted() {\n      if (this.getContainer) {\n        this.portal();\n      }\n    },\n    methods: {\n      portal: function portal() {\n        var getContainer = this.getContainer;\n        var el = ref ? this.$refs[ref] : this.$el;\n        var container;\n\n        if (getContainer) {\n          container = getElement(getContainer);\n        } else if (this.$parent) {\n          container = this.$parent.$el;\n        }\n\n        if (container && container !== el.parentNode) {\n          container.appendChild(el);\n        }\n\n        if (afterPortal) {\n          afterPortal.call(this);\n        }\n      }\n    }\n  };\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/portal.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/relation.js":
/*!*************************************************!*\
  !*** ./node_modules/vant/es/mixins/relation.js ***!
  \*************************************************/
/*! exports provided: ChildrenMixin, ParentMixin */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ChildrenMixin\", function() { return ChildrenMixin; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ParentMixin\", function() { return ParentMixin; });\n/* harmony import */ var _utils_vnodes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/vnodes */ \"./node_modules/vant/es/utils/vnodes.js\");\n\nfunction ChildrenMixin(_parent, options) {\n  var _inject, _computed;\n\n  if (options === void 0) {\n    options = {};\n  }\n\n  var indexKey = options.indexKey || 'index';\n  return {\n    inject: (_inject = {}, _inject[_parent] = {\n      default: null\n    }, _inject),\n    computed: (_computed = {\n      parent: function parent() {\n        if (this.disableBindRelation) {\n          return null;\n        }\n\n        return this[_parent];\n      }\n    }, _computed[indexKey] = function () {\n      this.bindRelation();\n\n      if (this.parent) {\n        return this.parent.children.indexOf(this);\n      }\n\n      return null;\n    }, _computed),\n    watch: {\n      disableBindRelation: function disableBindRelation(val) {\n        if (!val) {\n          this.bindRelation();\n        }\n      }\n    },\n    mounted: function mounted() {\n      this.bindRelation();\n    },\n    beforeDestroy: function beforeDestroy() {\n      var _this = this;\n\n      if (this.parent) {\n        this.parent.children = this.parent.children.filter(function (item) {\n          return item !== _this;\n        });\n      }\n    },\n    methods: {\n      bindRelation: function bindRelation() {\n        if (!this.parent || this.parent.children.indexOf(this) !== -1) {\n          return;\n        }\n\n        var children = [].concat(this.parent.children, [this]);\n        Object(_utils_vnodes__WEBPACK_IMPORTED_MODULE_0__[\"sortChildren\"])(children, this.parent);\n        this.parent.children = children;\n      }\n    }\n  };\n}\nfunction ParentMixin(parent) {\n  return {\n    provide: function provide() {\n      var _ref;\n\n      return _ref = {}, _ref[parent] = this, _ref;\n    },\n    data: function data() {\n      return {\n        children: []\n      };\n    }\n  };\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/relation.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/slots.js":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/mixins/slots.js ***!
  \**********************************************/
/*! exports provided: SlotsMixin */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SlotsMixin\", function() { return SlotsMixin; });\n/**\n * Use scopedSlots in Vue 2.6+\n * downgrade to slots in lower version\n */\nvar SlotsMixin = {\n  methods: {\n    slots: function slots(name, props) {\n      if (name === void 0) {\n        name = 'default';\n      }\n\n      var $slots = this.$slots,\n          $scopedSlots = this.$scopedSlots;\n      var scopedSlot = $scopedSlots[name];\n\n      if (scopedSlot) {\n        return scopedSlot(props);\n      }\n\n      return $slots[name];\n    }\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/slots.js?");

/***/ }),

/***/ "./node_modules/vant/es/mixins/touch.js":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/mixins/touch.js ***!
  \**********************************************/
/*! exports provided: TouchMixin */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TouchMixin\", function() { return TouchMixin; });\n/* harmony import */ var _utils_dom_event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/dom/event */ \"./node_modules/vant/es/utils/dom/event.js\");\n\n\nfunction getDirection(x, y) {\n  if (x > y) {\n    return 'horizontal';\n  }\n\n  if (y > x) {\n    return 'vertical';\n  }\n\n  return '';\n}\n\nvar TouchMixin = {\n  data: function data() {\n    return {\n      direction: ''\n    };\n  },\n  methods: {\n    touchStart: function touchStart(event) {\n      this.resetTouchStatus();\n      this.startX = event.touches[0].clientX;\n      this.startY = event.touches[0].clientY;\n    },\n    touchMove: function touchMove(event) {\n      var touch = event.touches[0]; // safari back will set clientX to negative number\n\n      this.deltaX = touch.clientX < 0 ? 0 : touch.clientX - this.startX;\n      this.deltaY = touch.clientY - this.startY;\n      this.offsetX = Math.abs(this.deltaX);\n      this.offsetY = Math.abs(this.deltaY); // lock direction when distance is greater than a certain value\n\n      var LOCK_DIRECTION_DISTANCE = 10;\n\n      if (!this.direction || this.offsetX < LOCK_DIRECTION_DISTANCE && this.offsetY < LOCK_DIRECTION_DISTANCE) {\n        this.direction = getDirection(this.offsetX, this.offsetY);\n      }\n    },\n    resetTouchStatus: function resetTouchStatus() {\n      this.direction = '';\n      this.deltaX = 0;\n      this.deltaY = 0;\n      this.offsetX = 0;\n      this.offsetY = 0;\n    },\n    // avoid Vue 2.6 event bubble issues by manually binding events\n    // https://github.com/vant-ui/vant/issues/3015\n    bindTouchEvent: function bindTouchEvent(el) {\n      var onTouchStart = this.onTouchStart,\n          onTouchMove = this.onTouchMove,\n          onTouchEnd = this.onTouchEnd;\n      Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_0__[\"on\"])(el, 'touchstart', onTouchStart);\n      Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_0__[\"on\"])(el, 'touchmove', onTouchMove);\n\n      if (onTouchEnd) {\n        Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_0__[\"on\"])(el, 'touchend', onTouchEnd);\n        Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_0__[\"on\"])(el, 'touchcancel', onTouchEnd);\n      }\n    }\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/vant/es/mixins/touch.js?");

/***/ }),

/***/ "./node_modules/vant/es/overlay/index.js":
/*!***********************************************!*\
  !*** ./node_modules/vant/es/overlay/index.js ***!
  \***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/babel-helper-vue-jsx-merge-props */ \"./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js\");\n/* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _utils_functional__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/functional */ \"./node_modules/vant/es/utils/functional.js\");\n/* harmony import */ var _utils_dom_event__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/dom/event */ \"./node_modules/vant/es/utils/dom/event.js\");\n\n\n// Utils\n\n\n // Types\n\nvar _createNamespace = Object(_utils__WEBPACK_IMPORTED_MODULE_2__[\"createNamespace\"])('overlay'),\n    createComponent = _createNamespace[0],\n    bem = _createNamespace[1];\n\nfunction preventTouchMove(event) {\n  Object(_utils_dom_event__WEBPACK_IMPORTED_MODULE_4__[\"preventDefault\"])(event, true);\n}\n\nfunction Overlay(h, props, slots, ctx) {\n  var style = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n    zIndex: props.zIndex\n  }, props.customStyle);\n\n  if (Object(_utils__WEBPACK_IMPORTED_MODULE_2__[\"isDef\"])(props.duration)) {\n    style.animationDuration = props.duration + \"s\";\n  }\n\n  return h(\"transition\", {\n    \"attrs\": {\n      \"name\": \"van-fade\"\n    }\n  }, [h(\"div\", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{\n    \"directives\": [{\n      name: \"show\",\n      value: props.show\n    }],\n    \"style\": style,\n    \"class\": [bem(), props.className],\n    \"on\": {\n      \"touchmove\": props.lockScroll ? preventTouchMove : _utils__WEBPACK_IMPORTED_MODULE_2__[\"noop\"]\n    }\n  }, Object(_utils_functional__WEBPACK_IMPORTED_MODULE_3__[\"inherit\"])(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);\n}\n\nOverlay.props = {\n  show: Boolean,\n  zIndex: [Number, String],\n  duration: [Number, String],\n  className: null,\n  customStyle: Object,\n  lockScroll: {\n    type: Boolean,\n    default: true\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (createComponent(Overlay));\n\n//# sourceURL=webpack:///./node_modules/vant/es/overlay/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/overlay/index.less":
/*!*************************************************!*\
  !*** ./node_modules/vant/es/overlay/index.less ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/overlay/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"52e2c108\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/overlay/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/overlay/style/less.js":
/*!****************************************************!*\
  !*** ./node_modules/vant/es/overlay/style/less.js ***!
  \****************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _style_base_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/base.less */ \"./node_modules/vant/es/style/base.less\");\n/* harmony import */ var _style_base_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_base_less__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../index.less */ \"./node_modules/vant/es/overlay/index.less\");\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n//# sourceURL=webpack:///./node_modules/vant/es/overlay/style/less.js?");

/***/ }),

/***/ "./node_modules/vant/es/popup/index.less":
/*!***********************************************!*\
  !*** ./node_modules/vant/es/popup/index.less ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/popup/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"3055202c\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/popup/index.less?");

/***/ }),

/***/ "./node_modules/vant/es/style/base.less":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/style/base.less ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../../postcss-loader/src??ref--11-oneOf-3-2!../../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./base.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/es/style/base.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"4b2ab341\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/es/style/base.less?");

/***/ }),

/***/ "./node_modules/vant/es/utils/constant.js":
/*!************************************************!*\
  !*** ./node_modules/vant/es/utils/constant.js ***!
  \************************************************/
/*! exports provided: RED, BORDER, BORDER_TOP, BORDER_LEFT, BORDER_BOTTOM, BORDER_SURROUND, BORDER_TOP_BOTTOM, BORDER_UNSET_TOP_BOTTOM */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RED\", function() { return RED; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BORDER\", function() { return BORDER; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BORDER_TOP\", function() { return BORDER_TOP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BORDER_LEFT\", function() { return BORDER_LEFT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BORDER_BOTTOM\", function() { return BORDER_BOTTOM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BORDER_SURROUND\", function() { return BORDER_SURROUND; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BORDER_TOP_BOTTOM\", function() { return BORDER_TOP_BOTTOM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BORDER_UNSET_TOP_BOTTOM\", function() { return BORDER_UNSET_TOP_BOTTOM; });\n// color\nvar RED = '#ee0a24'; // border\n\nvar BORDER = 'van-hairline';\nvar BORDER_TOP = BORDER + \"--top\";\nvar BORDER_LEFT = BORDER + \"--left\";\nvar BORDER_BOTTOM = BORDER + \"--bottom\";\nvar BORDER_SURROUND = BORDER + \"--surround\";\nvar BORDER_TOP_BOTTOM = BORDER + \"--top-bottom\";\nvar BORDER_UNSET_TOP_BOTTOM = BORDER + \"-unset--top-bottom\";\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/constant.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/create/bem.js":
/*!**************************************************!*\
  !*** ./node_modules/vant/es/utils/create/bem.js ***!
  \**************************************************/
/*! exports provided: createBEM */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createBEM\", function() { return createBEM; });\n/**\n * bem helper\n * b() // 'button'\n * b('text') // 'button__text'\n * b({ disabled }) // 'button button--disabled'\n * b('text', { disabled }) // 'button__text button__text--disabled'\n * b(['disabled', 'primary']) // 'button button--disabled button--primary'\n */\nfunction gen(name, mods) {\n  if (!mods) {\n    return '';\n  }\n\n  if (typeof mods === 'string') {\n    return \" \" + name + \"--\" + mods;\n  }\n\n  if (Array.isArray(mods)) {\n    return mods.reduce(function (ret, item) {\n      return ret + gen(name, item);\n    }, '');\n  }\n\n  return Object.keys(mods).reduce(function (ret, key) {\n    return ret + (mods[key] ? gen(name, key) : '');\n  }, '');\n}\n\nfunction createBEM(name) {\n  return function (el, mods) {\n    if (el && typeof el !== 'string') {\n      mods = el;\n      el = '';\n    }\n\n    el = el ? name + \"__\" + el : name;\n    return \"\" + el + gen(el, mods);\n  };\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/create/bem.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/create/component.js":
/*!********************************************************!*\
  !*** ./node_modules/vant/es/utils/create/component.js ***!
  \********************************************************/
/*! exports provided: unifySlots, createComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"unifySlots\", function() { return unifySlots; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createComponent\", function() { return createComponent; });\n/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../locale */ \"./node_modules/vant/es/locale/index.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! .. */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _format_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../format/string */ \"./node_modules/vant/es/utils/format/string.js\");\n/* harmony import */ var _mixins_slots__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../mixins/slots */ \"./node_modules/vant/es/mixins/slots.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n/**\n * Create a basic component with common options\n */\n\n\n\n\n\n\nfunction install(Vue) {\n  var name = this.name;\n  Vue.component(name, this);\n  Vue.component(Object(_format_string__WEBPACK_IMPORTED_MODULE_2__[\"camelize\"])(\"-\" + name), this);\n} // unify slots & scopedSlots\n\n\nfunction unifySlots(context) {\n  // use data.scopedSlots in lower Vue version\n  var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};\n  var slots = context.slots();\n  Object.keys(slots).forEach(function (key) {\n    if (!scopedSlots[key]) {\n      scopedSlots[key] = function () {\n        return slots[key];\n      };\n    }\n  });\n  return scopedSlots;\n} // should be removed after Vue 3\n\nfunction transformFunctionComponent(pure) {\n  return {\n    functional: true,\n    props: pure.props,\n    model: pure.model,\n    render: function render(h, context) {\n      return pure(h, context.props, unifySlots(context), context);\n    }\n  };\n}\n\nfunction createComponent(name) {\n  return function (sfc) {\n    if (Object(___WEBPACK_IMPORTED_MODULE_1__[\"isFunction\"])(sfc)) {\n      sfc = transformFunctionComponent(sfc);\n    }\n\n    if (!sfc.functional) {\n      sfc.mixins = sfc.mixins || [];\n      sfc.mixins.push(_mixins_slots__WEBPACK_IMPORTED_MODULE_3__[\"SlotsMixin\"]);\n    }\n\n    sfc.name = name;\n    sfc.install = install;\n    return sfc;\n  };\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/create/component.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/create/i18n.js":
/*!***************************************************!*\
  !*** ./node_modules/vant/es/utils/create/i18n.js ***!
  \***************************************************/
/*! exports provided: createI18N */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createI18N\", function() { return createI18N; });\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! .. */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _format_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../format/string */ \"./node_modules/vant/es/utils/format/string.js\");\n/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../locale */ \"./node_modules/vant/es/locale/index.js\");\n\n\n\nfunction createI18N(name) {\n  var prefix = Object(_format_string__WEBPACK_IMPORTED_MODULE_1__[\"camelize\"])(name) + '.';\n  return function (path) {\n    var messages = _locale__WEBPACK_IMPORTED_MODULE_2__[\"default\"].messages();\n    var message = Object(___WEBPACK_IMPORTED_MODULE_0__[\"get\"])(messages, prefix + path) || Object(___WEBPACK_IMPORTED_MODULE_0__[\"get\"])(messages, path);\n\n    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      args[_key - 1] = arguments[_key];\n    }\n\n    return Object(___WEBPACK_IMPORTED_MODULE_0__[\"isFunction\"])(message) ? message.apply(void 0, args) : message;\n  };\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/create/i18n.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/create/index.js":
/*!****************************************************!*\
  !*** ./node_modules/vant/es/utils/create/index.js ***!
  \****************************************************/
/*! exports provided: createNamespace */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createNamespace\", function() { return createNamespace; });\n/* harmony import */ var _bem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bem */ \"./node_modules/vant/es/utils/create/bem.js\");\n/* harmony import */ var _component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./component */ \"./node_modules/vant/es/utils/create/component.js\");\n/* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./i18n */ \"./node_modules/vant/es/utils/create/i18n.js\");\n\n\n\nfunction createNamespace(name) {\n  name = 'van-' + name;\n  return [Object(_component__WEBPACK_IMPORTED_MODULE_1__[\"createComponent\"])(name), Object(_bem__WEBPACK_IMPORTED_MODULE_0__[\"createBEM\"])(name), Object(_i18n__WEBPACK_IMPORTED_MODULE_2__[\"createI18N\"])(name)];\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/create/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/deep-assign.js":
/*!***************************************************!*\
  !*** ./node_modules/vant/es/utils/deep-assign.js ***!
  \***************************************************/
/*! exports provided: deepAssign */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"deepAssign\", function() { return deepAssign; });\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! . */ \"./node_modules/vant/es/utils/index.js\");\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction assignKey(to, from, key) {\n  var val = from[key];\n\n  if (!Object(___WEBPACK_IMPORTED_MODULE_0__[\"isDef\"])(val)) {\n    return;\n  }\n\n  if (!hasOwnProperty.call(to, key) || !Object(___WEBPACK_IMPORTED_MODULE_0__[\"isObject\"])(val)) {\n    to[key] = val;\n  } else {\n    // eslint-disable-next-line @typescript-eslint/no-use-before-define\n    to[key] = deepAssign(Object(to[key]), from[key]);\n  }\n}\n\nfunction deepAssign(to, from) {\n  Object.keys(from).forEach(function (key) {\n    assignKey(to, from, key);\n  });\n  return to;\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/deep-assign.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/dom/event.js":
/*!*************************************************!*\
  !*** ./node_modules/vant/es/utils/dom/event.js ***!
  \*************************************************/
/*! exports provided: supportsPassive, on, off, stopPropagation, preventDefault */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"supportsPassive\", function() { return supportsPassive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"on\", function() { return on; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"off\", function() { return off; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"stopPropagation\", function() { return stopPropagation; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"preventDefault\", function() { return preventDefault; });\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! .. */ \"./node_modules/vant/es/utils/index.js\");\n\n// eslint-disable-next-line import/no-mutable-exports\nvar supportsPassive = false;\n\nif (!___WEBPACK_IMPORTED_MODULE_0__[\"isServer\"]) {\n  try {\n    var opts = {};\n    Object.defineProperty(opts, 'passive', {\n      // eslint-disable-next-line getter-return\n      get: function get() {\n        /* istanbul ignore next */\n        supportsPassive = true;\n      }\n    });\n    window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty\n  } catch (e) {}\n}\n\nfunction on(target, event, handler, passive) {\n  if (passive === void 0) {\n    passive = false;\n  }\n\n  if (!___WEBPACK_IMPORTED_MODULE_0__[\"isServer\"]) {\n    target.addEventListener(event, handler, supportsPassive ? {\n      capture: false,\n      passive: passive\n    } : false);\n  }\n}\nfunction off(target, event, handler) {\n  if (!___WEBPACK_IMPORTED_MODULE_0__[\"isServer\"]) {\n    target.removeEventListener(event, handler);\n  }\n}\nfunction stopPropagation(event) {\n  event.stopPropagation();\n}\nfunction preventDefault(event, isStopPropagation) {\n  /* istanbul ignore else */\n  if (typeof event.cancelable !== 'boolean' || event.cancelable) {\n    event.preventDefault();\n  }\n\n  if (isStopPropagation) {\n    stopPropagation(event);\n  }\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/dom/event.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/dom/node.js":
/*!************************************************!*\
  !*** ./node_modules/vant/es/utils/dom/node.js ***!
  \************************************************/
/*! exports provided: removeNode */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeNode\", function() { return removeNode; });\nfunction removeNode(el) {\n  var parent = el.parentNode;\n\n  if (parent) {\n    parent.removeChild(el);\n  }\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/dom/node.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/dom/scroll.js":
/*!**************************************************!*\
  !*** ./node_modules/vant/es/utils/dom/scroll.js ***!
  \**************************************************/
/*! exports provided: getScroller, getScrollTop, setScrollTop, getRootScrollTop, setRootScrollTop, getElementTop, getVisibleHeight, getVisibleTop */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getScroller\", function() { return getScroller; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getScrollTop\", function() { return getScrollTop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setScrollTop\", function() { return setScrollTop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getRootScrollTop\", function() { return getRootScrollTop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setRootScrollTop\", function() { return setRootScrollTop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getElementTop\", function() { return getElementTop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getVisibleHeight\", function() { return getVisibleHeight; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getVisibleTop\", function() { return getVisibleTop; });\nfunction isWindow(val) {\n  return val === window;\n} // get nearest scroll element\n// https://github.com/vant-ui/vant/issues/3823\n\n\nvar overflowScrollReg = /scroll|auto|overlay/i;\nfunction getScroller(el, root) {\n  if (root === void 0) {\n    root = window;\n  }\n\n  var node = el;\n\n  while (node && node.tagName !== 'HTML' && node.tagName !== 'BODY' && node.nodeType === 1 && node !== root) {\n    var _window$getComputedSt = window.getComputedStyle(node),\n        overflowY = _window$getComputedSt.overflowY;\n\n    if (overflowScrollReg.test(overflowY)) {\n      return node;\n    }\n\n    node = node.parentNode;\n  }\n\n  return root;\n}\nfunction getScrollTop(el) {\n  var top = 'scrollTop' in el ? el.scrollTop : el.pageYOffset; // iOS scroll bounce cause minus scrollTop\n\n  return Math.max(top, 0);\n}\nfunction setScrollTop(el, value) {\n  if ('scrollTop' in el) {\n    el.scrollTop = value;\n  } else {\n    el.scrollTo(el.scrollX, value);\n  }\n}\nfunction getRootScrollTop() {\n  return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;\n}\nfunction setRootScrollTop(value) {\n  setScrollTop(window, value);\n  setScrollTop(document.body, value);\n} // get distance from element top to page top or scroller top\n\nfunction getElementTop(el, scroller) {\n  if (isWindow(el)) {\n    return 0;\n  }\n\n  var scrollTop = scroller ? getScrollTop(scroller) : getRootScrollTop();\n  return el.getBoundingClientRect().top + scrollTop;\n}\nfunction getVisibleHeight(el) {\n  if (isWindow(el)) {\n    return el.innerHeight;\n  }\n\n  return el.getBoundingClientRect().height;\n}\nfunction getVisibleTop(el) {\n  if (isWindow(el)) {\n    return 0;\n  }\n\n  return el.getBoundingClientRect().top;\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/dom/scroll.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/format/string.js":
/*!*****************************************************!*\
  !*** ./node_modules/vant/es/utils/format/string.js ***!
  \*****************************************************/
/*! exports provided: camelize, padZero */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"camelize\", function() { return camelize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"padZero\", function() { return padZero; });\nvar camelizeRE = /-(\\w)/g;\nfunction camelize(str) {\n  return str.replace(camelizeRE, function (_, c) {\n    return c.toUpperCase();\n  });\n}\nfunction padZero(num, targetLength) {\n  if (targetLength === void 0) {\n    targetLength = 2;\n  }\n\n  var str = num + '';\n\n  while (str.length < targetLength) {\n    str = '0' + str;\n  }\n\n  return str;\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/format/string.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/format/unit.js":
/*!***************************************************!*\
  !*** ./node_modules/vant/es/utils/format/unit.js ***!
  \***************************************************/
/*! exports provided: addUnit, unitToPx */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addUnit\", function() { return addUnit; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"unitToPx\", function() { return unitToPx; });\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! .. */ \"./node_modules/vant/es/utils/index.js\");\n/* harmony import */ var _validate_number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../validate/number */ \"./node_modules/vant/es/utils/validate/number.js\");\n\n\nfunction addUnit(value) {\n  if (!Object(___WEBPACK_IMPORTED_MODULE_0__[\"isDef\"])(value)) {\n    return undefined;\n  }\n\n  value = String(value);\n  return Object(_validate_number__WEBPACK_IMPORTED_MODULE_1__[\"isNumeric\"])(value) ? value + \"px\" : value;\n} // cache\n\nvar rootFontSize;\n\nfunction getRootFontSize() {\n  if (!rootFontSize) {\n    var doc = document.documentElement;\n    var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;\n    rootFontSize = parseFloat(fontSize);\n  }\n\n  return rootFontSize;\n}\n\nfunction convertRem(value) {\n  value = value.replace(/rem/g, '');\n  return +value * getRootFontSize();\n}\n\nfunction convertVw(value) {\n  value = value.replace(/vw/g, '');\n  return +value * window.innerWidth / 100;\n}\n\nfunction convertVh(value) {\n  value = value.replace(/vh/g, '');\n  return +value * window.innerHeight / 100;\n}\n\nfunction unitToPx(value) {\n  if (typeof value === 'number') {\n    return value;\n  }\n\n  if (___WEBPACK_IMPORTED_MODULE_0__[\"inBrowser\"]) {\n    if (value.indexOf('rem') !== -1) {\n      return convertRem(value);\n    }\n\n    if (value.indexOf('vw') !== -1) {\n      return convertVw(value);\n    }\n\n    if (value.indexOf('vh') !== -1) {\n      return convertVh(value);\n    }\n  }\n\n  return parseFloat(value);\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/format/unit.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/functional.js":
/*!**************************************************!*\
  !*** ./node_modules/vant/es/utils/functional.js ***!
  \**************************************************/
/*! exports provided: inherit, emit, mount */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"inherit\", function() { return inherit; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"emit\", function() { return emit; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mount\", function() { return mount; });\n/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ \"./node_modules/@babel/runtime/helpers/esm/extends.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n\n\nvar inheritKey = ['ref', 'key', 'style', 'class', 'attrs', 'refInFor', 'nativeOn', 'directives', 'staticClass', 'staticStyle'];\nvar mapInheritKey = {\n  nativeOn: 'on'\n}; // inherit partial context, map nativeOn to on\n\nfunction inherit(context, inheritListeners) {\n  var result = inheritKey.reduce(function (obj, key) {\n    if (context.data[key]) {\n      obj[mapInheritKey[key] || key] = context.data[key];\n    }\n\n    return obj;\n  }, {});\n\n  if (inheritListeners) {\n    result.on = result.on || {};\n\n    Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(result.on, context.data.on);\n  }\n\n  return result;\n} // emit event\n\nfunction emit(context, eventName) {\n  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n    args[_key - 2] = arguments[_key];\n  }\n\n  var listeners = context.listeners[eventName];\n\n  if (listeners) {\n    if (Array.isArray(listeners)) {\n      listeners.forEach(function (listener) {\n        listener.apply(void 0, args);\n      });\n    } else {\n      listeners.apply(void 0, args);\n    }\n  }\n} // mount functional component\n\nfunction mount(Component, data) {\n  var instance = new vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"]({\n    el: document.createElement('div'),\n    props: Component.props,\n    render: function render(h) {\n      return h(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n        props: this.$props\n      }, data));\n    }\n  });\n  document.body.appendChild(instance.$el);\n  return instance;\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/functional.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/index.js":
/*!*********************************************!*\
  !*** ./node_modules/vant/es/utils/index.js ***!
  \*********************************************/
/*! exports provided: createNamespace, addUnit, inBrowser, isServer, noop, isDef, isFunction, isObject, isPromise, get, isEmpty */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"inBrowser\", function() { return inBrowser; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isServer\", function() { return isServer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"noop\", function() { return noop; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isDef\", function() { return isDef; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isFunction\", function() { return isFunction; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isObject\", function() { return isObject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isPromise\", function() { return isPromise; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"get\", function() { return get; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isEmpty\", function() { return isEmpty; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n/* harmony import */ var _create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create */ \"./node_modules/vant/es/utils/create/index.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createNamespace\", function() { return _create__WEBPACK_IMPORTED_MODULE_1__[\"createNamespace\"]; });\n\n/* harmony import */ var _format_unit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./format/unit */ \"./node_modules/vant/es/utils/format/unit.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"addUnit\", function() { return _format_unit__WEBPACK_IMPORTED_MODULE_2__[\"addUnit\"]; });\n\n\n\n\nvar inBrowser = typeof window !== 'undefined';\nvar isServer = vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function\n\nfunction noop() {}\nfunction isDef(val) {\n  return val !== undefined && val !== null;\n}\nfunction isFunction(val) {\n  return typeof val === 'function';\n}\nfunction isObject(val) {\n  return val !== null && typeof val === 'object';\n}\nfunction isPromise(val) {\n  return isObject(val) && isFunction(val.then) && isFunction(val.catch);\n}\nfunction get(object, path) {\n  var keys = path.split('.');\n  var result = object;\n  keys.forEach(function (key) {\n    var _result$key;\n\n    result = isObject(result) ? (_result$key = result[key]) != null ? _result$key : '' : '';\n  });\n  return result;\n}\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @function isEmpty\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n\nfunction isEmpty(value) {\n  if (value == null) {\n    return true;\n  }\n\n  if (typeof value !== 'object') {\n    return true;\n  }\n\n  return Object.keys(value).length === 0;\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/index.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/router.js":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/utils/router.js ***!
  \**********************************************/
/*! exports provided: route, functionalRoute, routeProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"route\", function() { return route; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"functionalRoute\", function() { return functionalRoute; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"routeProps\", function() { return routeProps; });\n/**\n * Vue Router support\n */\nfunction isRedundantNavigation(err) {\n  return err.name === 'NavigationDuplicated' || // compatible with vue-router@3.3\n  err.message && err.message.indexOf('redundant navigation') !== -1;\n}\n\nfunction route(router, config) {\n  var to = config.to,\n      url = config.url,\n      replace = config.replace;\n\n  if (to && router) {\n    var promise = router[replace ? 'replace' : 'push'](to);\n    /* istanbul ignore else */\n\n    if (promise && promise.catch) {\n      promise.catch(function (err) {\n        if (err && !isRedundantNavigation(err)) {\n          throw err;\n        }\n      });\n    }\n  } else if (url) {\n    replace ? location.replace(url) : location.href = url;\n  }\n}\nfunction functionalRoute(context) {\n  route(context.parent && context.parent.$router, context.props);\n}\nvar routeProps = {\n  url: String,\n  replace: Boolean,\n  to: [String, Object]\n};\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/router.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/validate/number.js":
/*!*******************************************************!*\
  !*** ./node_modules/vant/es/utils/validate/number.js ***!
  \*******************************************************/
/*! exports provided: isNumeric, isNaN */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isNumeric\", function() { return isNumeric; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isNaN\", function() { return isNaN; });\nfunction isNumeric(val) {\n  return /^\\d+(\\.\\d+)?$/.test(val);\n}\nfunction isNaN(val) {\n  if (Number.isNaN) {\n    return Number.isNaN(val);\n  } // eslint-disable-next-line no-self-compare\n\n\n  return val !== val;\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/validate/number.js?");

/***/ }),

/***/ "./node_modules/vant/es/utils/vnodes.js":
/*!**********************************************!*\
  !*** ./node_modules/vant/es/utils/vnodes.js ***!
  \**********************************************/
/*! exports provided: sortChildren */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sortChildren\", function() { return sortChildren; });\nfunction flattenVNodes(vnodes) {\n  var result = [];\n\n  function traverse(vnodes) {\n    vnodes.forEach(function (vnode) {\n      result.push(vnode);\n\n      if (vnode.componentInstance) {\n        traverse(vnode.componentInstance.$children.map(function (item) {\n          return item.$vnode;\n        }));\n      }\n\n      if (vnode.children) {\n        traverse(vnode.children);\n      }\n    });\n  }\n\n  traverse(vnodes);\n  return result;\n} // sort children instances by vnodes order\n\n\nfunction sortChildren(children, parent) {\n  var componentOptions = parent.$vnode.componentOptions;\n\n  if (!componentOptions || !componentOptions.children) {\n    return;\n  }\n\n  var vnodes = flattenVNodes(componentOptions.children);\n  children.sort(function (a, b) {\n    return vnodes.indexOf(a.$vnode) - vnodes.indexOf(b.$vnode);\n  });\n}\n\n//# sourceURL=webpack:///./node_modules/vant/es/utils/vnodes.js?");

/***/ }),

/***/ "./node_modules/vant/lib/index.less":
/*!******************************************!*\
  !*** ./node_modules/vant/lib/index.less ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../css-loader/dist/cjs.js??ref--11-oneOf-3-1!../../postcss-loader/src??ref--11-oneOf-3-2!../../less-loader/dist/cjs.js??ref--11-oneOf-3-3!./index.less */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/vant/lib/index.less\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"6444d78f\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./node_modules/vant/lib/index.less?");

/***/ }),

/***/ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js":
/*!********************************************************************!*\
  !*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return normalizeComponent; });\n/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nfunction normalizeComponent(\n  scriptExports,\n  render,\n  staticRenderFns,\n  functionalTemplate,\n  injectStyles,\n  scopeId,\n  moduleIdentifier /* server only */,\n  shadowMode /* vue-cli only */\n) {\n  // Vue.extend constructor export interop\n  var options =\n    typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n  // render functions\n  if (render) {\n    options.render = render\n    options.staticRenderFns = staticRenderFns\n    options._compiled = true\n  }\n\n  // functional template\n  if (functionalTemplate) {\n    options.functional = true\n  }\n\n  // scopedId\n  if (scopeId) {\n    options._scopeId = 'data-v-' + scopeId\n  }\n\n  var hook\n  if (moduleIdentifier) {\n    // server build\n    hook = function (context) {\n      // 2.3 injection\n      context =\n        context || // cached call\n        (this.$vnode && this.$vnode.ssrContext) || // stateful\n        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n      // 2.2 with runInNewContext: true\n      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n        context = __VUE_SSR_CONTEXT__\n      }\n      // inject component styles\n      if (injectStyles) {\n        injectStyles.call(this, context)\n      }\n      // register component module identifier for async chunk inferrence\n      if (context && context._registeredComponents) {\n        context._registeredComponents.add(moduleIdentifier)\n      }\n    }\n    // used by ssr in case component is cached and beforeCreate\n    // never gets called\n    options._ssrRegister = hook\n  } else if (injectStyles) {\n    hook = shadowMode\n      ? function () {\n          injectStyles.call(\n            this,\n            (options.functional ? this.parent : this).$root.$options.shadowRoot\n          )\n        }\n      : injectStyles\n  }\n\n  if (hook) {\n    if (options.functional) {\n      // for template-only hot-reload because in that case the render fn doesn't\n      // go through the normalizer\n      options._injectStyles = hook\n      // register for functional component in vue file\n      var originalRender = options.render\n      options.render = function renderWithStyleInjection(h, context) {\n        hook.call(context)\n        return originalRender(h, context)\n      }\n    } else {\n      // inject component registration as beforeCreate hook\n      var existing = options.beforeCreate\n      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n    }\n  }\n\n  return {\n    exports: scriptExports,\n    options: options\n  }\n}\n\n\n//# sourceURL=webpack:///./node_modules/vue-loader/lib/runtime/componentNormalizer.js?");

/***/ }),

/***/ "./node_modules/vue-router/dist/vue-router.esm.js":
/*!********************************************************!*\
  !*** ./node_modules/vue-router/dist/vue-router.esm.js ***!
  \********************************************************/
/*! exports provided: NavigationFailureType, RouterLink, RouterView, START_LOCATION, default, isNavigationFailure, version */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"NavigationFailureType\", function() { return NavigationFailureType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RouterLink\", function() { return Link; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RouterView\", function() { return View; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"START_LOCATION\", function() { return START; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return VueRouter$1; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isNavigationFailure\", function() { return isNavigationFailure; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\n/*!\n  * vue-router v3.6.5\n  * (c) 2022 Evan You\n  * @license MIT\n  */\n/*  */\n\nfunction assert (condition, message) {\n  if (!condition) {\n    throw new Error((\"[vue-router] \" + message))\n  }\n}\n\nfunction warn (condition, message) {\n  if (!condition) {\n    typeof console !== 'undefined' && console.warn((\"[vue-router] \" + message));\n  }\n}\n\nfunction extend (a, b) {\n  for (var key in b) {\n    a[key] = b[key];\n  }\n  return a\n}\n\n/*  */\n\nvar encodeReserveRE = /[!'()*]/g;\nvar encodeReserveReplacer = function (c) { return '%' + c.charCodeAt(0).toString(16); };\nvar commaRE = /%2C/g;\n\n// fixed encodeURIComponent which is more conformant to RFC3986:\n// - escapes [!'()*]\n// - preserve commas\nvar encode = function (str) { return encodeURIComponent(str)\n    .replace(encodeReserveRE, encodeReserveReplacer)\n    .replace(commaRE, ','); };\n\nfunction decode (str) {\n  try {\n    return decodeURIComponent(str)\n  } catch (err) {\n    if (true) {\n      warn(false, (\"Error decoding \\\"\" + str + \"\\\". Leaving it intact.\"));\n    }\n  }\n  return str\n}\n\nfunction resolveQuery (\n  query,\n  extraQuery,\n  _parseQuery\n) {\n  if ( extraQuery === void 0 ) extraQuery = {};\n\n  var parse = _parseQuery || parseQuery;\n  var parsedQuery;\n  try {\n    parsedQuery = parse(query || '');\n  } catch (e) {\n     true && warn(false, e.message);\n    parsedQuery = {};\n  }\n  for (var key in extraQuery) {\n    var value = extraQuery[key];\n    parsedQuery[key] = Array.isArray(value)\n      ? value.map(castQueryParamValue)\n      : castQueryParamValue(value);\n  }\n  return parsedQuery\n}\n\nvar castQueryParamValue = function (value) { return (value == null || typeof value === 'object' ? value : String(value)); };\n\nfunction parseQuery (query) {\n  var res = {};\n\n  query = query.trim().replace(/^(\\?|#|&)/, '');\n\n  if (!query) {\n    return res\n  }\n\n  query.split('&').forEach(function (param) {\n    var parts = param.replace(/\\+/g, ' ').split('=');\n    var key = decode(parts.shift());\n    var val = parts.length > 0 ? decode(parts.join('=')) : null;\n\n    if (res[key] === undefined) {\n      res[key] = val;\n    } else if (Array.isArray(res[key])) {\n      res[key].push(val);\n    } else {\n      res[key] = [res[key], val];\n    }\n  });\n\n  return res\n}\n\nfunction stringifyQuery (obj) {\n  var res = obj\n    ? Object.keys(obj)\n      .map(function (key) {\n        var val = obj[key];\n\n        if (val === undefined) {\n          return ''\n        }\n\n        if (val === null) {\n          return encode(key)\n        }\n\n        if (Array.isArray(val)) {\n          var result = [];\n          val.forEach(function (val2) {\n            if (val2 === undefined) {\n              return\n            }\n            if (val2 === null) {\n              result.push(encode(key));\n            } else {\n              result.push(encode(key) + '=' + encode(val2));\n            }\n          });\n          return result.join('&')\n        }\n\n        return encode(key) + '=' + encode(val)\n      })\n      .filter(function (x) { return x.length > 0; })\n      .join('&')\n    : null;\n  return res ? (\"?\" + res) : ''\n}\n\n/*  */\n\nvar trailingSlashRE = /\\/?$/;\n\nfunction createRoute (\n  record,\n  location,\n  redirectedFrom,\n  router\n) {\n  var stringifyQuery = router && router.options.stringifyQuery;\n\n  var query = location.query || {};\n  try {\n    query = clone(query);\n  } catch (e) {}\n\n  var route = {\n    name: location.name || (record && record.name),\n    meta: (record && record.meta) || {},\n    path: location.path || '/',\n    hash: location.hash || '',\n    query: query,\n    params: location.params || {},\n    fullPath: getFullPath(location, stringifyQuery),\n    matched: record ? formatMatch(record) : []\n  };\n  if (redirectedFrom) {\n    route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery);\n  }\n  return Object.freeze(route)\n}\n\nfunction clone (value) {\n  if (Array.isArray(value)) {\n    return value.map(clone)\n  } else if (value && typeof value === 'object') {\n    var res = {};\n    for (var key in value) {\n      res[key] = clone(value[key]);\n    }\n    return res\n  } else {\n    return value\n  }\n}\n\n// the starting route that represents the initial state\nvar START = createRoute(null, {\n  path: '/'\n});\n\nfunction formatMatch (record) {\n  var res = [];\n  while (record) {\n    res.unshift(record);\n    record = record.parent;\n  }\n  return res\n}\n\nfunction getFullPath (\n  ref,\n  _stringifyQuery\n) {\n  var path = ref.path;\n  var query = ref.query; if ( query === void 0 ) query = {};\n  var hash = ref.hash; if ( hash === void 0 ) hash = '';\n\n  var stringify = _stringifyQuery || stringifyQuery;\n  return (path || '/') + stringify(query) + hash\n}\n\nfunction isSameRoute (a, b, onlyPath) {\n  if (b === START) {\n    return a === b\n  } else if (!b) {\n    return false\n  } else if (a.path && b.path) {\n    return a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') && (onlyPath ||\n      a.hash === b.hash &&\n      isObjectEqual(a.query, b.query))\n  } else if (a.name && b.name) {\n    return (\n      a.name === b.name &&\n      (onlyPath || (\n        a.hash === b.hash &&\n      isObjectEqual(a.query, b.query) &&\n      isObjectEqual(a.params, b.params))\n      )\n    )\n  } else {\n    return false\n  }\n}\n\nfunction isObjectEqual (a, b) {\n  if ( a === void 0 ) a = {};\n  if ( b === void 0 ) b = {};\n\n  // handle null value #1566\n  if (!a || !b) { return a === b }\n  var aKeys = Object.keys(a).sort();\n  var bKeys = Object.keys(b).sort();\n  if (aKeys.length !== bKeys.length) {\n    return false\n  }\n  return aKeys.every(function (key, i) {\n    var aVal = a[key];\n    var bKey = bKeys[i];\n    if (bKey !== key) { return false }\n    var bVal = b[key];\n    // query values can be null and undefined\n    if (aVal == null || bVal == null) { return aVal === bVal }\n    // check nested equality\n    if (typeof aVal === 'object' && typeof bVal === 'object') {\n      return isObjectEqual(aVal, bVal)\n    }\n    return String(aVal) === String(bVal)\n  })\n}\n\nfunction isIncludedRoute (current, target) {\n  return (\n    current.path.replace(trailingSlashRE, '/').indexOf(\n      target.path.replace(trailingSlashRE, '/')\n    ) === 0 &&\n    (!target.hash || current.hash === target.hash) &&\n    queryIncludes(current.query, target.query)\n  )\n}\n\nfunction queryIncludes (current, target) {\n  for (var key in target) {\n    if (!(key in current)) {\n      return false\n    }\n  }\n  return true\n}\n\nfunction handleRouteEntered (route) {\n  for (var i = 0; i < route.matched.length; i++) {\n    var record = route.matched[i];\n    for (var name in record.instances) {\n      var instance = record.instances[name];\n      var cbs = record.enteredCbs[name];\n      if (!instance || !cbs) { continue }\n      delete record.enteredCbs[name];\n      for (var i$1 = 0; i$1 < cbs.length; i$1++) {\n        if (!instance._isBeingDestroyed) { cbs[i$1](instance); }\n      }\n    }\n  }\n}\n\nvar View = {\n  name: 'RouterView',\n  functional: true,\n  props: {\n    name: {\n      type: String,\n      default: 'default'\n    }\n  },\n  render: function render (_, ref) {\n    var props = ref.props;\n    var children = ref.children;\n    var parent = ref.parent;\n    var data = ref.data;\n\n    // used by devtools to display a router-view badge\n    data.routerView = true;\n\n    // directly use parent context's createElement() function\n    // so that components rendered by router-view can resolve named slots\n    var h = parent.$createElement;\n    var name = props.name;\n    var route = parent.$route;\n    var cache = parent._routerViewCache || (parent._routerViewCache = {});\n\n    // determine current view depth, also check to see if the tree\n    // has been toggled inactive but kept-alive.\n    var depth = 0;\n    var inactive = false;\n    while (parent && parent._routerRoot !== parent) {\n      var vnodeData = parent.$vnode ? parent.$vnode.data : {};\n      if (vnodeData.routerView) {\n        depth++;\n      }\n      if (vnodeData.keepAlive && parent._directInactive && parent._inactive) {\n        inactive = true;\n      }\n      parent = parent.$parent;\n    }\n    data.routerViewDepth = depth;\n\n    // render previous view if the tree is inactive and kept-alive\n    if (inactive) {\n      var cachedData = cache[name];\n      var cachedComponent = cachedData && cachedData.component;\n      if (cachedComponent) {\n        // #2301\n        // pass props\n        if (cachedData.configProps) {\n          fillPropsinData(cachedComponent, data, cachedData.route, cachedData.configProps);\n        }\n        return h(cachedComponent, data, children)\n      } else {\n        // render previous empty view\n        return h()\n      }\n    }\n\n    var matched = route.matched[depth];\n    var component = matched && matched.components[name];\n\n    // render empty node if no matched route or no config component\n    if (!matched || !component) {\n      cache[name] = null;\n      return h()\n    }\n\n    // cache component\n    cache[name] = { component: component };\n\n    // attach instance registration hook\n    // this will be called in the instance's injected lifecycle hooks\n    data.registerRouteInstance = function (vm, val) {\n      // val could be undefined for unregistration\n      var current = matched.instances[name];\n      if (\n        (val && current !== vm) ||\n        (!val && current === vm)\n      ) {\n        matched.instances[name] = val;\n      }\n    }\n\n    // also register instance in prepatch hook\n    // in case the same component instance is reused across different routes\n    ;(data.hook || (data.hook = {})).prepatch = function (_, vnode) {\n      matched.instances[name] = vnode.componentInstance;\n    };\n\n    // register instance in init hook\n    // in case kept-alive component be actived when routes changed\n    data.hook.init = function (vnode) {\n      if (vnode.data.keepAlive &&\n        vnode.componentInstance &&\n        vnode.componentInstance !== matched.instances[name]\n      ) {\n        matched.instances[name] = vnode.componentInstance;\n      }\n\n      // if the route transition has already been confirmed then we weren't\n      // able to call the cbs during confirmation as the component was not\n      // registered yet, so we call it here.\n      handleRouteEntered(route);\n    };\n\n    var configProps = matched.props && matched.props[name];\n    // save route and configProps in cache\n    if (configProps) {\n      extend(cache[name], {\n        route: route,\n        configProps: configProps\n      });\n      fillPropsinData(component, data, route, configProps);\n    }\n\n    return h(component, data, children)\n  }\n};\n\nfunction fillPropsinData (component, data, route, configProps) {\n  // resolve props\n  var propsToPass = data.props = resolveProps(route, configProps);\n  if (propsToPass) {\n    // clone to prevent mutation\n    propsToPass = data.props = extend({}, propsToPass);\n    // pass non-declared props as attrs\n    var attrs = data.attrs = data.attrs || {};\n    for (var key in propsToPass) {\n      if (!component.props || !(key in component.props)) {\n        attrs[key] = propsToPass[key];\n        delete propsToPass[key];\n      }\n    }\n  }\n}\n\nfunction resolveProps (route, config) {\n  switch (typeof config) {\n    case 'undefined':\n      return\n    case 'object':\n      return config\n    case 'function':\n      return config(route)\n    case 'boolean':\n      return config ? route.params : undefined\n    default:\n      if (true) {\n        warn(\n          false,\n          \"props in \\\"\" + (route.path) + \"\\\" is a \" + (typeof config) + \", \" +\n          \"expecting an object, function or boolean.\"\n        );\n      }\n  }\n}\n\n/*  */\n\nfunction resolvePath (\n  relative,\n  base,\n  append\n) {\n  var firstChar = relative.charAt(0);\n  if (firstChar === '/') {\n    return relative\n  }\n\n  if (firstChar === '?' || firstChar === '#') {\n    return base + relative\n  }\n\n  var stack = base.split('/');\n\n  // remove trailing segment if:\n  // - not appending\n  // - appending to trailing slash (last segment is empty)\n  if (!append || !stack[stack.length - 1]) {\n    stack.pop();\n  }\n\n  // resolve relative path\n  var segments = relative.replace(/^\\//, '').split('/');\n  for (var i = 0; i < segments.length; i++) {\n    var segment = segments[i];\n    if (segment === '..') {\n      stack.pop();\n    } else if (segment !== '.') {\n      stack.push(segment);\n    }\n  }\n\n  // ensure leading slash\n  if (stack[0] !== '') {\n    stack.unshift('');\n  }\n\n  return stack.join('/')\n}\n\nfunction parsePath (path) {\n  var hash = '';\n  var query = '';\n\n  var hashIndex = path.indexOf('#');\n  if (hashIndex >= 0) {\n    hash = path.slice(hashIndex);\n    path = path.slice(0, hashIndex);\n  }\n\n  var queryIndex = path.indexOf('?');\n  if (queryIndex >= 0) {\n    query = path.slice(queryIndex + 1);\n    path = path.slice(0, queryIndex);\n  }\n\n  return {\n    path: path,\n    query: query,\n    hash: hash\n  }\n}\n\nfunction cleanPath (path) {\n  return path.replace(/\\/(?:\\s*\\/)+/g, '/')\n}\n\nvar isarray = Array.isArray || function (arr) {\n  return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n/**\n * Expose `pathToRegexp`.\n */\nvar pathToRegexp_1 = pathToRegexp;\nvar parse_1 = parse;\nvar compile_1 = compile;\nvar tokensToFunction_1 = tokensToFunction;\nvar tokensToRegExp_1 = tokensToRegExp;\n\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\nvar PATH_REGEXP = new RegExp([\n  // Match escaped characters that would otherwise appear in future matches.\n  // This allows the user to escape special characters that won't transform.\n  '(\\\\\\\\.)',\n  // Match Express-style parameters and un-named parameters with a prefix\n  // and optional suffixes. Matches appear as:\n  //\n  // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n  // \"/route(\\\\d+)\"  => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n  // \"/*\"            => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n  '([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))'\n].join('|'), 'g');\n\n/**\n * Parse a string for the raw tokens.\n *\n * @param  {string}  str\n * @param  {Object=} options\n * @return {!Array}\n */\nfunction parse (str, options) {\n  var tokens = [];\n  var key = 0;\n  var index = 0;\n  var path = '';\n  var defaultDelimiter = options && options.delimiter || '/';\n  var res;\n\n  while ((res = PATH_REGEXP.exec(str)) != null) {\n    var m = res[0];\n    var escaped = res[1];\n    var offset = res.index;\n    path += str.slice(index, offset);\n    index = offset + m.length;\n\n    // Ignore already escaped sequences.\n    if (escaped) {\n      path += escaped[1];\n      continue\n    }\n\n    var next = str[index];\n    var prefix = res[2];\n    var name = res[3];\n    var capture = res[4];\n    var group = res[5];\n    var modifier = res[6];\n    var asterisk = res[7];\n\n    // Push the current path onto the tokens.\n    if (path) {\n      tokens.push(path);\n      path = '';\n    }\n\n    var partial = prefix != null && next != null && next !== prefix;\n    var repeat = modifier === '+' || modifier === '*';\n    var optional = modifier === '?' || modifier === '*';\n    var delimiter = res[2] || defaultDelimiter;\n    var pattern = capture || group;\n\n    tokens.push({\n      name: name || key++,\n      prefix: prefix || '',\n      delimiter: delimiter,\n      optional: optional,\n      repeat: repeat,\n      partial: partial,\n      asterisk: !!asterisk,\n      pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')\n    });\n  }\n\n  // Match any characters still remaining.\n  if (index < str.length) {\n    path += str.substr(index);\n  }\n\n  // If the path exists, push it onto the end.\n  if (path) {\n    tokens.push(path);\n  }\n\n  return tokens\n}\n\n/**\n * Compile a string to a template function for the path.\n *\n * @param  {string}             str\n * @param  {Object=}            options\n * @return {!function(Object=, Object=)}\n */\nfunction compile (str, options) {\n  return tokensToFunction(parse(str, options), options)\n}\n\n/**\n * Prettier encoding of URI path segments.\n *\n * @param  {string}\n * @return {string}\n */\nfunction encodeURIComponentPretty (str) {\n  return encodeURI(str).replace(/[\\/?#]/g, function (c) {\n    return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n  })\n}\n\n/**\n * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.\n *\n * @param  {string}\n * @return {string}\n */\nfunction encodeAsterisk (str) {\n  return encodeURI(str).replace(/[?#]/g, function (c) {\n    return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n  })\n}\n\n/**\n * Expose a method for transforming tokens into the path function.\n */\nfunction tokensToFunction (tokens, options) {\n  // Compile all the tokens into regexps.\n  var matches = new Array(tokens.length);\n\n  // Compile all the patterns before compilation.\n  for (var i = 0; i < tokens.length; i++) {\n    if (typeof tokens[i] === 'object') {\n      matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));\n    }\n  }\n\n  return function (obj, opts) {\n    var path = '';\n    var data = obj || {};\n    var options = opts || {};\n    var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;\n\n    for (var i = 0; i < tokens.length; i++) {\n      var token = tokens[i];\n\n      if (typeof token === 'string') {\n        path += token;\n\n        continue\n      }\n\n      var value = data[token.name];\n      var segment;\n\n      if (value == null) {\n        if (token.optional) {\n          // Prepend partial segment prefixes.\n          if (token.partial) {\n            path += token.prefix;\n          }\n\n          continue\n        } else {\n          throw new TypeError('Expected \"' + token.name + '\" to be defined')\n        }\n      }\n\n      if (isarray(value)) {\n        if (!token.repeat) {\n          throw new TypeError('Expected \"' + token.name + '\" to not repeat, but received `' + JSON.stringify(value) + '`')\n        }\n\n        if (value.length === 0) {\n          if (token.optional) {\n            continue\n          } else {\n            throw new TypeError('Expected \"' + token.name + '\" to not be empty')\n          }\n        }\n\n        for (var j = 0; j < value.length; j++) {\n          segment = encode(value[j]);\n\n          if (!matches[i].test(segment)) {\n            throw new TypeError('Expected all \"' + token.name + '\" to match \"' + token.pattern + '\", but received `' + JSON.stringify(segment) + '`')\n          }\n\n          path += (j === 0 ? token.prefix : token.delimiter) + segment;\n        }\n\n        continue\n      }\n\n      segment = token.asterisk ? encodeAsterisk(value) : encode(value);\n\n      if (!matches[i].test(segment)) {\n        throw new TypeError('Expected \"' + token.name + '\" to match \"' + token.pattern + '\", but received \"' + segment + '\"')\n      }\n\n      path += token.prefix + segment;\n    }\n\n    return path\n  }\n}\n\n/**\n * Escape a regular expression string.\n *\n * @param  {string} str\n * @return {string}\n */\nfunction escapeString (str) {\n  return str.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g, '\\\\$1')\n}\n\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param  {string} group\n * @return {string}\n */\nfunction escapeGroup (group) {\n  return group.replace(/([=!:$\\/()])/g, '\\\\$1')\n}\n\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param  {!RegExp} re\n * @param  {Array}   keys\n * @return {!RegExp}\n */\nfunction attachKeys (re, keys) {\n  re.keys = keys;\n  return re\n}\n\n/**\n * Get the flags for a regexp from the options.\n *\n * @param  {Object} options\n * @return {string}\n */\nfunction flags (options) {\n  return options && options.sensitive ? '' : 'i'\n}\n\n/**\n * Pull out keys from a regexp.\n *\n * @param  {!RegExp} path\n * @param  {!Array}  keys\n * @return {!RegExp}\n */\nfunction regexpToRegexp (path, keys) {\n  // Use a negative lookahead to match only capturing groups.\n  var groups = path.source.match(/\\((?!\\?)/g);\n\n  if (groups) {\n    for (var i = 0; i < groups.length; i++) {\n      keys.push({\n        name: i,\n        prefix: null,\n        delimiter: null,\n        optional: false,\n        repeat: false,\n        partial: false,\n        asterisk: false,\n        pattern: null\n      });\n    }\n  }\n\n  return attachKeys(path, keys)\n}\n\n/**\n * Transform an array into a regexp.\n *\n * @param  {!Array}  path\n * @param  {Array}   keys\n * @param  {!Object} options\n * @return {!RegExp}\n */\nfunction arrayToRegexp (path, keys, options) {\n  var parts = [];\n\n  for (var i = 0; i < path.length; i++) {\n    parts.push(pathToRegexp(path[i], keys, options).source);\n  }\n\n  var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));\n\n  return attachKeys(regexp, keys)\n}\n\n/**\n * Create a path regexp from string input.\n *\n * @param  {string}  path\n * @param  {!Array}  keys\n * @param  {!Object} options\n * @return {!RegExp}\n */\nfunction stringToRegexp (path, keys, options) {\n  return tokensToRegExp(parse(path, options), keys, options)\n}\n\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param  {!Array}          tokens\n * @param  {(Array|Object)=} keys\n * @param  {Object=}         options\n * @return {!RegExp}\n */\nfunction tokensToRegExp (tokens, keys, options) {\n  if (!isarray(keys)) {\n    options = /** @type {!Object} */ (keys || options);\n    keys = [];\n  }\n\n  options = options || {};\n\n  var strict = options.strict;\n  var end = options.end !== false;\n  var route = '';\n\n  // Iterate over the tokens and create our regexp string.\n  for (var i = 0; i < tokens.length; i++) {\n    var token = tokens[i];\n\n    if (typeof token === 'string') {\n      route += escapeString(token);\n    } else {\n      var prefix = escapeString(token.prefix);\n      var capture = '(?:' + token.pattern + ')';\n\n      keys.push(token);\n\n      if (token.repeat) {\n        capture += '(?:' + prefix + capture + ')*';\n      }\n\n      if (token.optional) {\n        if (!token.partial) {\n          capture = '(?:' + prefix + '(' + capture + '))?';\n        } else {\n          capture = prefix + '(' + capture + ')?';\n        }\n      } else {\n        capture = prefix + '(' + capture + ')';\n      }\n\n      route += capture;\n    }\n  }\n\n  var delimiter = escapeString(options.delimiter || '/');\n  var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;\n\n  // In non-strict mode we allow a slash at the end of match. If the path to\n  // match already ends with a slash, we remove it for consistency. The slash\n  // is valid at the end of a path match, not in the middle. This is important\n  // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n  if (!strict) {\n    route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';\n  }\n\n  if (end) {\n    route += '$';\n  } else {\n    // In non-ending mode, we need the capturing groups to match as much as\n    // possible by using a positive lookahead to the end or next path segment.\n    route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';\n  }\n\n  return attachKeys(new RegExp('^' + route, flags(options)), keys)\n}\n\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param  {(string|RegExp|Array)} path\n * @param  {(Array|Object)=}       keys\n * @param  {Object=}               options\n * @return {!RegExp}\n */\nfunction pathToRegexp (path, keys, options) {\n  if (!isarray(keys)) {\n    options = /** @type {!Object} */ (keys || options);\n    keys = [];\n  }\n\n  options = options || {};\n\n  if (path instanceof RegExp) {\n    return regexpToRegexp(path, /** @type {!Array} */ (keys))\n  }\n\n  if (isarray(path)) {\n    return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)\n  }\n\n  return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)\n}\npathToRegexp_1.parse = parse_1;\npathToRegexp_1.compile = compile_1;\npathToRegexp_1.tokensToFunction = tokensToFunction_1;\npathToRegexp_1.tokensToRegExp = tokensToRegExp_1;\n\n/*  */\n\n// $flow-disable-line\nvar regexpCompileCache = Object.create(null);\n\nfunction fillParams (\n  path,\n  params,\n  routeMsg\n) {\n  params = params || {};\n  try {\n    var filler =\n      regexpCompileCache[path] ||\n      (regexpCompileCache[path] = pathToRegexp_1.compile(path));\n\n    // Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}\n    // and fix #3106 so that you can work with location descriptor object having params.pathMatch equal to empty string\n    if (typeof params.pathMatch === 'string') { params[0] = params.pathMatch; }\n\n    return filler(params, { pretty: true })\n  } catch (e) {\n    if (true) {\n      // Fix #3072 no warn if `pathMatch` is string\n      warn(typeof params.pathMatch === 'string', (\"missing param for \" + routeMsg + \": \" + (e.message)));\n    }\n    return ''\n  } finally {\n    // delete the 0 if it was added\n    delete params[0];\n  }\n}\n\n/*  */\n\nfunction normalizeLocation (\n  raw,\n  current,\n  append,\n  router\n) {\n  var next = typeof raw === 'string' ? { path: raw } : raw;\n  // named target\n  if (next._normalized) {\n    return next\n  } else if (next.name) {\n    next = extend({}, raw);\n    var params = next.params;\n    if (params && typeof params === 'object') {\n      next.params = extend({}, params);\n    }\n    return next\n  }\n\n  // relative params\n  if (!next.path && next.params && current) {\n    next = extend({}, next);\n    next._normalized = true;\n    var params$1 = extend(extend({}, current.params), next.params);\n    if (current.name) {\n      next.name = current.name;\n      next.params = params$1;\n    } else if (current.matched.length) {\n      var rawPath = current.matched[current.matched.length - 1].path;\n      next.path = fillParams(rawPath, params$1, (\"path \" + (current.path)));\n    } else if (true) {\n      warn(false, \"relative params navigation requires a current route.\");\n    }\n    return next\n  }\n\n  var parsedPath = parsePath(next.path || '');\n  var basePath = (current && current.path) || '/';\n  var path = parsedPath.path\n    ? resolvePath(parsedPath.path, basePath, append || next.append)\n    : basePath;\n\n  var query = resolveQuery(\n    parsedPath.query,\n    next.query,\n    router && router.options.parseQuery\n  );\n\n  var hash = next.hash || parsedPath.hash;\n  if (hash && hash.charAt(0) !== '#') {\n    hash = \"#\" + hash;\n  }\n\n  return {\n    _normalized: true,\n    path: path,\n    query: query,\n    hash: hash\n  }\n}\n\n/*  */\n\n// work around weird flow bug\nvar toTypes = [String, Object];\nvar eventTypes = [String, Array];\n\nvar noop = function () {};\n\nvar warnedCustomSlot;\nvar warnedTagProp;\nvar warnedEventProp;\n\nvar Link = {\n  name: 'RouterLink',\n  props: {\n    to: {\n      type: toTypes,\n      required: true\n    },\n    tag: {\n      type: String,\n      default: 'a'\n    },\n    custom: Boolean,\n    exact: Boolean,\n    exactPath: Boolean,\n    append: Boolean,\n    replace: Boolean,\n    activeClass: String,\n    exactActiveClass: String,\n    ariaCurrentValue: {\n      type: String,\n      default: 'page'\n    },\n    event: {\n      type: eventTypes,\n      default: 'click'\n    }\n  },\n  render: function render (h) {\n    var this$1$1 = this;\n\n    var router = this.$router;\n    var current = this.$route;\n    var ref = router.resolve(\n      this.to,\n      current,\n      this.append\n    );\n    var location = ref.location;\n    var route = ref.route;\n    var href = ref.href;\n\n    var classes = {};\n    var globalActiveClass = router.options.linkActiveClass;\n    var globalExactActiveClass = router.options.linkExactActiveClass;\n    // Support global empty active class\n    var activeClassFallback =\n      globalActiveClass == null ? 'router-link-active' : globalActiveClass;\n    var exactActiveClassFallback =\n      globalExactActiveClass == null\n        ? 'router-link-exact-active'\n        : globalExactActiveClass;\n    var activeClass =\n      this.activeClass == null ? activeClassFallback : this.activeClass;\n    var exactActiveClass =\n      this.exactActiveClass == null\n        ? exactActiveClassFallback\n        : this.exactActiveClass;\n\n    var compareTarget = route.redirectedFrom\n      ? createRoute(null, normalizeLocation(route.redirectedFrom), null, router)\n      : route;\n\n    classes[exactActiveClass] = isSameRoute(current, compareTarget, this.exactPath);\n    classes[activeClass] = this.exact || this.exactPath\n      ? classes[exactActiveClass]\n      : isIncludedRoute(current, compareTarget);\n\n    var ariaCurrentValue = classes[exactActiveClass] ? this.ariaCurrentValue : null;\n\n    var handler = function (e) {\n      if (guardEvent(e)) {\n        if (this$1$1.replace) {\n          router.replace(location, noop);\n        } else {\n          router.push(location, noop);\n        }\n      }\n    };\n\n    var on = { click: guardEvent };\n    if (Array.isArray(this.event)) {\n      this.event.forEach(function (e) {\n        on[e] = handler;\n      });\n    } else {\n      on[this.event] = handler;\n    }\n\n    var data = { class: classes };\n\n    var scopedSlot =\n      !this.$scopedSlots.$hasNormal &&\n      this.$scopedSlots.default &&\n      this.$scopedSlots.default({\n        href: href,\n        route: route,\n        navigate: handler,\n        isActive: classes[activeClass],\n        isExactActive: classes[exactActiveClass]\n      });\n\n    if (scopedSlot) {\n      if ( true && !this.custom) {\n        !warnedCustomSlot && warn(false, 'In Vue Router 4, the v-slot API will by default wrap its content with an <a> element. Use the custom prop to remove this warning:\\n<router-link v-slot=\"{ navigate, href }\" custom></router-link>\\n');\n        warnedCustomSlot = true;\n      }\n      if (scopedSlot.length === 1) {\n        return scopedSlot[0]\n      } else if (scopedSlot.length > 1 || !scopedSlot.length) {\n        if (true) {\n          warn(\n            false,\n            (\"<router-link> with to=\\\"\" + (this.to) + \"\\\" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element.\")\n          );\n        }\n        return scopedSlot.length === 0 ? h() : h('span', {}, scopedSlot)\n      }\n    }\n\n    if (true) {\n      if ('tag' in this.$options.propsData && !warnedTagProp) {\n        warn(\n          false,\n          \"<router-link>'s tag prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link.\"\n        );\n        warnedTagProp = true;\n      }\n      if ('event' in this.$options.propsData && !warnedEventProp) {\n        warn(\n          false,\n          \"<router-link>'s event prop is deprecated and has been removed in Vue Router 4. Use the v-slot API to remove this warning: https://next.router.vuejs.org/guide/migration/#removal-of-event-and-tag-props-in-router-link.\"\n        );\n        warnedEventProp = true;\n      }\n    }\n\n    if (this.tag === 'a') {\n      data.on = on;\n      data.attrs = { href: href, 'aria-current': ariaCurrentValue };\n    } else {\n      // find the first <a> child and apply listener and href\n      var a = findAnchor(this.$slots.default);\n      if (a) {\n        // in case the <a> is a static node\n        a.isStatic = false;\n        var aData = (a.data = extend({}, a.data));\n        aData.on = aData.on || {};\n        // transform existing events in both objects into arrays so we can push later\n        for (var event in aData.on) {\n          var handler$1 = aData.on[event];\n          if (event in on) {\n            aData.on[event] = Array.isArray(handler$1) ? handler$1 : [handler$1];\n          }\n        }\n        // append new listeners for router-link\n        for (var event$1 in on) {\n          if (event$1 in aData.on) {\n            // on[event] is always a function\n            aData.on[event$1].push(on[event$1]);\n          } else {\n            aData.on[event$1] = handler;\n          }\n        }\n\n        var aAttrs = (a.data.attrs = extend({}, a.data.attrs));\n        aAttrs.href = href;\n        aAttrs['aria-current'] = ariaCurrentValue;\n      } else {\n        // doesn't have <a> child, apply listener to self\n        data.on = on;\n      }\n    }\n\n    return h(this.tag, data, this.$slots.default)\n  }\n};\n\nfunction guardEvent (e) {\n  // don't redirect with control keys\n  if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) { return }\n  // don't redirect when preventDefault called\n  if (e.defaultPrevented) { return }\n  // don't redirect on right click\n  if (e.button !== undefined && e.button !== 0) { return }\n  // don't redirect if `target=\"_blank\"`\n  if (e.currentTarget && e.currentTarget.getAttribute) {\n    var target = e.currentTarget.getAttribute('target');\n    if (/\\b_blank\\b/i.test(target)) { return }\n  }\n  // this may be a Weex event which doesn't have this method\n  if (e.preventDefault) {\n    e.preventDefault();\n  }\n  return true\n}\n\nfunction findAnchor (children) {\n  if (children) {\n    var child;\n    for (var i = 0; i < children.length; i++) {\n      child = children[i];\n      if (child.tag === 'a') {\n        return child\n      }\n      if (child.children && (child = findAnchor(child.children))) {\n        return child\n      }\n    }\n  }\n}\n\nvar _Vue;\n\nfunction install (Vue) {\n  if (install.installed && _Vue === Vue) { return }\n  install.installed = true;\n\n  _Vue = Vue;\n\n  var isDef = function (v) { return v !== undefined; };\n\n  var registerInstance = function (vm, callVal) {\n    var i = vm.$options._parentVnode;\n    if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {\n      i(vm, callVal);\n    }\n  };\n\n  Vue.mixin({\n    beforeCreate: function beforeCreate () {\n      if (isDef(this.$options.router)) {\n        this._routerRoot = this;\n        this._router = this.$options.router;\n        this._router.init(this);\n        Vue.util.defineReactive(this, '_route', this._router.history.current);\n      } else {\n        this._routerRoot = (this.$parent && this.$parent._routerRoot) || this;\n      }\n      registerInstance(this, this);\n    },\n    destroyed: function destroyed () {\n      registerInstance(this);\n    }\n  });\n\n  Object.defineProperty(Vue.prototype, '$router', {\n    get: function get () { return this._routerRoot._router }\n  });\n\n  Object.defineProperty(Vue.prototype, '$route', {\n    get: function get () { return this._routerRoot._route }\n  });\n\n  Vue.component('RouterView', View);\n  Vue.component('RouterLink', Link);\n\n  var strats = Vue.config.optionMergeStrategies;\n  // use the same hook merging strategy for route hooks\n  strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;\n}\n\n/*  */\n\nvar inBrowser = typeof window !== 'undefined';\n\n/*  */\n\nfunction createRouteMap (\n  routes,\n  oldPathList,\n  oldPathMap,\n  oldNameMap,\n  parentRoute\n) {\n  // the path list is used to control path matching priority\n  var pathList = oldPathList || [];\n  // $flow-disable-line\n  var pathMap = oldPathMap || Object.create(null);\n  // $flow-disable-line\n  var nameMap = oldNameMap || Object.create(null);\n\n  routes.forEach(function (route) {\n    addRouteRecord(pathList, pathMap, nameMap, route, parentRoute);\n  });\n\n  // ensure wildcard routes are always at the end\n  for (var i = 0, l = pathList.length; i < l; i++) {\n    if (pathList[i] === '*') {\n      pathList.push(pathList.splice(i, 1)[0]);\n      l--;\n      i--;\n    }\n  }\n\n  if (false) { var pathNames, found; }\n\n  return {\n    pathList: pathList,\n    pathMap: pathMap,\n    nameMap: nameMap\n  }\n}\n\nfunction addRouteRecord (\n  pathList,\n  pathMap,\n  nameMap,\n  route,\n  parent,\n  matchAs\n) {\n  var path = route.path;\n  var name = route.name;\n  if (true) {\n    assert(path != null, \"\\\"path\\\" is required in a route configuration.\");\n    assert(\n      typeof route.component !== 'string',\n      \"route config \\\"component\\\" for path: \" + (String(\n        path || name\n      )) + \" cannot be a \" + \"string id. Use an actual component instead.\"\n    );\n\n    warn(\n      // eslint-disable-next-line no-control-regex\n      !/[^\\u0000-\\u007F]+/.test(path),\n      \"Route with path \\\"\" + path + \"\\\" contains unencoded characters, make sure \" +\n        \"your path is correctly encoded before passing it to the router. Use \" +\n        \"encodeURI to encode static segments of your path.\"\n    );\n  }\n\n  var pathToRegexpOptions =\n    route.pathToRegexpOptions || {};\n  var normalizedPath = normalizePath(path, parent, pathToRegexpOptions.strict);\n\n  if (typeof route.caseSensitive === 'boolean') {\n    pathToRegexpOptions.sensitive = route.caseSensitive;\n  }\n\n  var record = {\n    path: normalizedPath,\n    regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),\n    components: route.components || { default: route.component },\n    alias: route.alias\n      ? typeof route.alias === 'string'\n        ? [route.alias]\n        : route.alias\n      : [],\n    instances: {},\n    enteredCbs: {},\n    name: name,\n    parent: parent,\n    matchAs: matchAs,\n    redirect: route.redirect,\n    beforeEnter: route.beforeEnter,\n    meta: route.meta || {},\n    props:\n      route.props == null\n        ? {}\n        : route.components\n          ? route.props\n          : { default: route.props }\n  };\n\n  if (route.children) {\n    // Warn if route is named, does not redirect and has a default child route.\n    // If users navigate to this route by name, the default child will\n    // not be rendered (GH Issue #629)\n    if (true) {\n      if (\n        route.name &&\n        !route.redirect &&\n        route.children.some(function (child) { return /^\\/?$/.test(child.path); })\n      ) {\n        warn(\n          false,\n          \"Named Route '\" + (route.name) + \"' has a default child route. \" +\n            \"When navigating to this named route (:to=\\\"{name: '\" + (route.name) + \"'}\\\"), \" +\n            \"the default child route will not be rendered. Remove the name from \" +\n            \"this route and use the name of the default child route for named \" +\n            \"links instead.\"\n        );\n      }\n    }\n    route.children.forEach(function (child) {\n      var childMatchAs = matchAs\n        ? cleanPath((matchAs + \"/\" + (child.path)))\n        : undefined;\n      addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);\n    });\n  }\n\n  if (!pathMap[record.path]) {\n    pathList.push(record.path);\n    pathMap[record.path] = record;\n  }\n\n  if (route.alias !== undefined) {\n    var aliases = Array.isArray(route.alias) ? route.alias : [route.alias];\n    for (var i = 0; i < aliases.length; ++i) {\n      var alias = aliases[i];\n      if ( true && alias === path) {\n        warn(\n          false,\n          (\"Found an alias with the same value as the path: \\\"\" + path + \"\\\". You have to remove that alias. It will be ignored in development.\")\n        );\n        // skip in dev to make it work\n        continue\n      }\n\n      var aliasRoute = {\n        path: alias,\n        children: route.children\n      };\n      addRouteRecord(\n        pathList,\n        pathMap,\n        nameMap,\n        aliasRoute,\n        parent,\n        record.path || '/' // matchAs\n      );\n    }\n  }\n\n  if (name) {\n    if (!nameMap[name]) {\n      nameMap[name] = record;\n    } else if ( true && !matchAs) {\n      warn(\n        false,\n        \"Duplicate named routes definition: \" +\n          \"{ name: \\\"\" + name + \"\\\", path: \\\"\" + (record.path) + \"\\\" }\"\n      );\n    }\n  }\n}\n\nfunction compileRouteRegex (\n  path,\n  pathToRegexpOptions\n) {\n  var regex = pathToRegexp_1(path, [], pathToRegexpOptions);\n  if (true) {\n    var keys = Object.create(null);\n    regex.keys.forEach(function (key) {\n      warn(\n        !keys[key.name],\n        (\"Duplicate param keys in route with path: \\\"\" + path + \"\\\"\")\n      );\n      keys[key.name] = true;\n    });\n  }\n  return regex\n}\n\nfunction normalizePath (\n  path,\n  parent,\n  strict\n) {\n  if (!strict) { path = path.replace(/\\/$/, ''); }\n  if (path[0] === '/') { return path }\n  if (parent == null) { return path }\n  return cleanPath(((parent.path) + \"/\" + path))\n}\n\n/*  */\n\n\n\nfunction createMatcher (\n  routes,\n  router\n) {\n  var ref = createRouteMap(routes);\n  var pathList = ref.pathList;\n  var pathMap = ref.pathMap;\n  var nameMap = ref.nameMap;\n\n  function addRoutes (routes) {\n    createRouteMap(routes, pathList, pathMap, nameMap);\n  }\n\n  function addRoute (parentOrRoute, route) {\n    var parent = (typeof parentOrRoute !== 'object') ? nameMap[parentOrRoute] : undefined;\n    // $flow-disable-line\n    createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);\n\n    // add aliases of parent\n    if (parent && parent.alias.length) {\n      createRouteMap(\n        // $flow-disable-line route is defined if parent is\n        parent.alias.map(function (alias) { return ({ path: alias, children: [route] }); }),\n        pathList,\n        pathMap,\n        nameMap,\n        parent\n      );\n    }\n  }\n\n  function getRoutes () {\n    return pathList.map(function (path) { return pathMap[path]; })\n  }\n\n  function match (\n    raw,\n    currentRoute,\n    redirectedFrom\n  ) {\n    var location = normalizeLocation(raw, currentRoute, false, router);\n    var name = location.name;\n\n    if (name) {\n      var record = nameMap[name];\n      if (true) {\n        warn(record, (\"Route with name '\" + name + \"' does not exist\"));\n      }\n      if (!record) { return _createRoute(null, location) }\n      var paramNames = record.regex.keys\n        .filter(function (key) { return !key.optional; })\n        .map(function (key) { return key.name; });\n\n      if (typeof location.params !== 'object') {\n        location.params = {};\n      }\n\n      if (currentRoute && typeof currentRoute.params === 'object') {\n        for (var key in currentRoute.params) {\n          if (!(key in location.params) && paramNames.indexOf(key) > -1) {\n            location.params[key] = currentRoute.params[key];\n          }\n        }\n      }\n\n      location.path = fillParams(record.path, location.params, (\"named route \\\"\" + name + \"\\\"\"));\n      return _createRoute(record, location, redirectedFrom)\n    } else if (location.path) {\n      location.params = {};\n      for (var i = 0; i < pathList.length; i++) {\n        var path = pathList[i];\n        var record$1 = pathMap[path];\n        if (matchRoute(record$1.regex, location.path, location.params)) {\n          return _createRoute(record$1, location, redirectedFrom)\n        }\n      }\n    }\n    // no match\n    return _createRoute(null, location)\n  }\n\n  function redirect (\n    record,\n    location\n  ) {\n    var originalRedirect = record.redirect;\n    var redirect = typeof originalRedirect === 'function'\n      ? originalRedirect(createRoute(record, location, null, router))\n      : originalRedirect;\n\n    if (typeof redirect === 'string') {\n      redirect = { path: redirect };\n    }\n\n    if (!redirect || typeof redirect !== 'object') {\n      if (true) {\n        warn(\n          false, (\"invalid redirect option: \" + (JSON.stringify(redirect)))\n        );\n      }\n      return _createRoute(null, location)\n    }\n\n    var re = redirect;\n    var name = re.name;\n    var path = re.path;\n    var query = location.query;\n    var hash = location.hash;\n    var params = location.params;\n    query = re.hasOwnProperty('query') ? re.query : query;\n    hash = re.hasOwnProperty('hash') ? re.hash : hash;\n    params = re.hasOwnProperty('params') ? re.params : params;\n\n    if (name) {\n      // resolved named direct\n      var targetRecord = nameMap[name];\n      if (true) {\n        assert(targetRecord, (\"redirect failed: named route \\\"\" + name + \"\\\" not found.\"));\n      }\n      return match({\n        _normalized: true,\n        name: name,\n        query: query,\n        hash: hash,\n        params: params\n      }, undefined, location)\n    } else if (path) {\n      // 1. resolve relative redirect\n      var rawPath = resolveRecordPath(path, record);\n      // 2. resolve params\n      var resolvedPath = fillParams(rawPath, params, (\"redirect route with path \\\"\" + rawPath + \"\\\"\"));\n      // 3. rematch with existing query and hash\n      return match({\n        _normalized: true,\n        path: resolvedPath,\n        query: query,\n        hash: hash\n      }, undefined, location)\n    } else {\n      if (true) {\n        warn(false, (\"invalid redirect option: \" + (JSON.stringify(redirect))));\n      }\n      return _createRoute(null, location)\n    }\n  }\n\n  function alias (\n    record,\n    location,\n    matchAs\n  ) {\n    var aliasedPath = fillParams(matchAs, location.params, (\"aliased route with path \\\"\" + matchAs + \"\\\"\"));\n    var aliasedMatch = match({\n      _normalized: true,\n      path: aliasedPath\n    });\n    if (aliasedMatch) {\n      var matched = aliasedMatch.matched;\n      var aliasedRecord = matched[matched.length - 1];\n      location.params = aliasedMatch.params;\n      return _createRoute(aliasedRecord, location)\n    }\n    return _createRoute(null, location)\n  }\n\n  function _createRoute (\n    record,\n    location,\n    redirectedFrom\n  ) {\n    if (record && record.redirect) {\n      return redirect(record, redirectedFrom || location)\n    }\n    if (record && record.matchAs) {\n      return alias(record, location, record.matchAs)\n    }\n    return createRoute(record, location, redirectedFrom, router)\n  }\n\n  return {\n    match: match,\n    addRoute: addRoute,\n    getRoutes: getRoutes,\n    addRoutes: addRoutes\n  }\n}\n\nfunction matchRoute (\n  regex,\n  path,\n  params\n) {\n  var m = path.match(regex);\n\n  if (!m) {\n    return false\n  } else if (!params) {\n    return true\n  }\n\n  for (var i = 1, len = m.length; i < len; ++i) {\n    var key = regex.keys[i - 1];\n    if (key) {\n      // Fix #1994: using * with props: true generates a param named 0\n      params[key.name || 'pathMatch'] = typeof m[i] === 'string' ? decode(m[i]) : m[i];\n    }\n  }\n\n  return true\n}\n\nfunction resolveRecordPath (path, record) {\n  return resolvePath(path, record.parent ? record.parent.path : '/', true)\n}\n\n/*  */\n\n// use User Timing api (if present) for more accurate key precision\nvar Time =\n  inBrowser && window.performance && window.performance.now\n    ? window.performance\n    : Date;\n\nfunction genStateKey () {\n  return Time.now().toFixed(3)\n}\n\nvar _key = genStateKey();\n\nfunction getStateKey () {\n  return _key\n}\n\nfunction setStateKey (key) {\n  return (_key = key)\n}\n\n/*  */\n\nvar positionStore = Object.create(null);\n\nfunction setupScroll () {\n  // Prevent browser scroll behavior on History popstate\n  if ('scrollRestoration' in window.history) {\n    window.history.scrollRestoration = 'manual';\n  }\n  // Fix for #1585 for Firefox\n  // Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678\n  // Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with\n  // window.location.protocol + '//' + window.location.host\n  // location.host contains the port and location.hostname doesn't\n  var protocolAndPath = window.location.protocol + '//' + window.location.host;\n  var absolutePath = window.location.href.replace(protocolAndPath, '');\n  // preserve existing history state as it could be overriden by the user\n  var stateCopy = extend({}, window.history.state);\n  stateCopy.key = getStateKey();\n  window.history.replaceState(stateCopy, '', absolutePath);\n  window.addEventListener('popstate', handlePopState);\n  return function () {\n    window.removeEventListener('popstate', handlePopState);\n  }\n}\n\nfunction handleScroll (\n  router,\n  to,\n  from,\n  isPop\n) {\n  if (!router.app) {\n    return\n  }\n\n  var behavior = router.options.scrollBehavior;\n  if (!behavior) {\n    return\n  }\n\n  if (true) {\n    assert(typeof behavior === 'function', \"scrollBehavior must be a function\");\n  }\n\n  // wait until re-render finishes before scrolling\n  router.app.$nextTick(function () {\n    var position = getScrollPosition();\n    var shouldScroll = behavior.call(\n      router,\n      to,\n      from,\n      isPop ? position : null\n    );\n\n    if (!shouldScroll) {\n      return\n    }\n\n    if (typeof shouldScroll.then === 'function') {\n      shouldScroll\n        .then(function (shouldScroll) {\n          scrollToPosition((shouldScroll), position);\n        })\n        .catch(function (err) {\n          if (true) {\n            assert(false, err.toString());\n          }\n        });\n    } else {\n      scrollToPosition(shouldScroll, position);\n    }\n  });\n}\n\nfunction saveScrollPosition () {\n  var key = getStateKey();\n  if (key) {\n    positionStore[key] = {\n      x: window.pageXOffset,\n      y: window.pageYOffset\n    };\n  }\n}\n\nfunction handlePopState (e) {\n  saveScrollPosition();\n  if (e.state && e.state.key) {\n    setStateKey(e.state.key);\n  }\n}\n\nfunction getScrollPosition () {\n  var key = getStateKey();\n  if (key) {\n    return positionStore[key]\n  }\n}\n\nfunction getElementPosition (el, offset) {\n  var docEl = document.documentElement;\n  var docRect = docEl.getBoundingClientRect();\n  var elRect = el.getBoundingClientRect();\n  return {\n    x: elRect.left - docRect.left - offset.x,\n    y: elRect.top - docRect.top - offset.y\n  }\n}\n\nfunction isValidPosition (obj) {\n  return isNumber(obj.x) || isNumber(obj.y)\n}\n\nfunction normalizePosition (obj) {\n  return {\n    x: isNumber(obj.x) ? obj.x : window.pageXOffset,\n    y: isNumber(obj.y) ? obj.y : window.pageYOffset\n  }\n}\n\nfunction normalizeOffset (obj) {\n  return {\n    x: isNumber(obj.x) ? obj.x : 0,\n    y: isNumber(obj.y) ? obj.y : 0\n  }\n}\n\nfunction isNumber (v) {\n  return typeof v === 'number'\n}\n\nvar hashStartsWithNumberRE = /^#\\d/;\n\nfunction scrollToPosition (shouldScroll, position) {\n  var isObject = typeof shouldScroll === 'object';\n  if (isObject && typeof shouldScroll.selector === 'string') {\n    // getElementById would still fail if the selector contains a more complicated query like #main[data-attr]\n    // but at the same time, it doesn't make much sense to select an element with an id and an extra selector\n    var el = hashStartsWithNumberRE.test(shouldScroll.selector) // $flow-disable-line\n      ? document.getElementById(shouldScroll.selector.slice(1)) // $flow-disable-line\n      : document.querySelector(shouldScroll.selector);\n\n    if (el) {\n      var offset =\n        shouldScroll.offset && typeof shouldScroll.offset === 'object'\n          ? shouldScroll.offset\n          : {};\n      offset = normalizeOffset(offset);\n      position = getElementPosition(el, offset);\n    } else if (isValidPosition(shouldScroll)) {\n      position = normalizePosition(shouldScroll);\n    }\n  } else if (isObject && isValidPosition(shouldScroll)) {\n    position = normalizePosition(shouldScroll);\n  }\n\n  if (position) {\n    // $flow-disable-line\n    if ('scrollBehavior' in document.documentElement.style) {\n      window.scrollTo({\n        left: position.x,\n        top: position.y,\n        // $flow-disable-line\n        behavior: shouldScroll.behavior\n      });\n    } else {\n      window.scrollTo(position.x, position.y);\n    }\n  }\n}\n\n/*  */\n\nvar supportsPushState =\n  inBrowser &&\n  (function () {\n    var ua = window.navigator.userAgent;\n\n    if (\n      (ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&\n      ua.indexOf('Mobile Safari') !== -1 &&\n      ua.indexOf('Chrome') === -1 &&\n      ua.indexOf('Windows Phone') === -1\n    ) {\n      return false\n    }\n\n    return window.history && typeof window.history.pushState === 'function'\n  })();\n\nfunction pushState (url, replace) {\n  saveScrollPosition();\n  // try...catch the pushState call to get around Safari\n  // DOM Exception 18 where it limits to 100 pushState calls\n  var history = window.history;\n  try {\n    if (replace) {\n      // preserve existing history state as it could be overriden by the user\n      var stateCopy = extend({}, history.state);\n      stateCopy.key = getStateKey();\n      history.replaceState(stateCopy, '', url);\n    } else {\n      history.pushState({ key: setStateKey(genStateKey()) }, '', url);\n    }\n  } catch (e) {\n    window.location[replace ? 'replace' : 'assign'](url);\n  }\n}\n\nfunction replaceState (url) {\n  pushState(url, true);\n}\n\n// When changing thing, also edit router.d.ts\nvar NavigationFailureType = {\n  redirected: 2,\n  aborted: 4,\n  cancelled: 8,\n  duplicated: 16\n};\n\nfunction createNavigationRedirectedError (from, to) {\n  return createRouterError(\n    from,\n    to,\n    NavigationFailureType.redirected,\n    (\"Redirected when going from \\\"\" + (from.fullPath) + \"\\\" to \\\"\" + (stringifyRoute(\n      to\n    )) + \"\\\" via a navigation guard.\")\n  )\n}\n\nfunction createNavigationDuplicatedError (from, to) {\n  var error = createRouterError(\n    from,\n    to,\n    NavigationFailureType.duplicated,\n    (\"Avoided redundant navigation to current location: \\\"\" + (from.fullPath) + \"\\\".\")\n  );\n  // backwards compatible with the first introduction of Errors\n  error.name = 'NavigationDuplicated';\n  return error\n}\n\nfunction createNavigationCancelledError (from, to) {\n  return createRouterError(\n    from,\n    to,\n    NavigationFailureType.cancelled,\n    (\"Navigation cancelled from \\\"\" + (from.fullPath) + \"\\\" to \\\"\" + (to.fullPath) + \"\\\" with a new navigation.\")\n  )\n}\n\nfunction createNavigationAbortedError (from, to) {\n  return createRouterError(\n    from,\n    to,\n    NavigationFailureType.aborted,\n    (\"Navigation aborted from \\\"\" + (from.fullPath) + \"\\\" to \\\"\" + (to.fullPath) + \"\\\" via a navigation guard.\")\n  )\n}\n\nfunction createRouterError (from, to, type, message) {\n  var error = new Error(message);\n  error._isRouter = true;\n  error.from = from;\n  error.to = to;\n  error.type = type;\n\n  return error\n}\n\nvar propertiesToLog = ['params', 'query', 'hash'];\n\nfunction stringifyRoute (to) {\n  if (typeof to === 'string') { return to }\n  if ('path' in to) { return to.path }\n  var location = {};\n  propertiesToLog.forEach(function (key) {\n    if (key in to) { location[key] = to[key]; }\n  });\n  return JSON.stringify(location, null, 2)\n}\n\nfunction isError (err) {\n  return Object.prototype.toString.call(err).indexOf('Error') > -1\n}\n\nfunction isNavigationFailure (err, errorType) {\n  return (\n    isError(err) &&\n    err._isRouter &&\n    (errorType == null || err.type === errorType)\n  )\n}\n\n/*  */\n\nfunction runQueue (queue, fn, cb) {\n  var step = function (index) {\n    if (index >= queue.length) {\n      cb();\n    } else {\n      if (queue[index]) {\n        fn(queue[index], function () {\n          step(index + 1);\n        });\n      } else {\n        step(index + 1);\n      }\n    }\n  };\n  step(0);\n}\n\n/*  */\n\nfunction resolveAsyncComponents (matched) {\n  return function (to, from, next) {\n    var hasAsync = false;\n    var pending = 0;\n    var error = null;\n\n    flatMapComponents(matched, function (def, _, match, key) {\n      // if it's a function and doesn't have cid attached,\n      // assume it's an async component resolve function.\n      // we are not using Vue's default async resolving mechanism because\n      // we want to halt the navigation until the incoming component has been\n      // resolved.\n      if (typeof def === 'function' && def.cid === undefined) {\n        hasAsync = true;\n        pending++;\n\n        var resolve = once(function (resolvedDef) {\n          if (isESModule(resolvedDef)) {\n            resolvedDef = resolvedDef.default;\n          }\n          // save resolved on async factory in case it's used elsewhere\n          def.resolved = typeof resolvedDef === 'function'\n            ? resolvedDef\n            : _Vue.extend(resolvedDef);\n          match.components[key] = resolvedDef;\n          pending--;\n          if (pending <= 0) {\n            next();\n          }\n        });\n\n        var reject = once(function (reason) {\n          var msg = \"Failed to resolve async component \" + key + \": \" + reason;\n           true && warn(false, msg);\n          if (!error) {\n            error = isError(reason)\n              ? reason\n              : new Error(msg);\n            next(error);\n          }\n        });\n\n        var res;\n        try {\n          res = def(resolve, reject);\n        } catch (e) {\n          reject(e);\n        }\n        if (res) {\n          if (typeof res.then === 'function') {\n            res.then(resolve, reject);\n          } else {\n            // new syntax in Vue 2.3\n            var comp = res.component;\n            if (comp && typeof comp.then === 'function') {\n              comp.then(resolve, reject);\n            }\n          }\n        }\n      }\n    });\n\n    if (!hasAsync) { next(); }\n  }\n}\n\nfunction flatMapComponents (\n  matched,\n  fn\n) {\n  return flatten(matched.map(function (m) {\n    return Object.keys(m.components).map(function (key) { return fn(\n      m.components[key],\n      m.instances[key],\n      m, key\n    ); })\n  }))\n}\n\nfunction flatten (arr) {\n  return Array.prototype.concat.apply([], arr)\n}\n\nvar hasSymbol =\n  typeof Symbol === 'function' &&\n  typeof Symbol.toStringTag === 'symbol';\n\nfunction isESModule (obj) {\n  return obj.__esModule || (hasSymbol && obj[Symbol.toStringTag] === 'Module')\n}\n\n// in Webpack 2, require.ensure now also returns a Promise\n// so the resolve/reject functions may get called an extra time\n// if the user uses an arrow function shorthand that happens to\n// return that Promise.\nfunction once (fn) {\n  var called = false;\n  return function () {\n    var args = [], len = arguments.length;\n    while ( len-- ) args[ len ] = arguments[ len ];\n\n    if (called) { return }\n    called = true;\n    return fn.apply(this, args)\n  }\n}\n\n/*  */\n\nvar History = function History (router, base) {\n  this.router = router;\n  this.base = normalizeBase(base);\n  // start with a route object that stands for \"nowhere\"\n  this.current = START;\n  this.pending = null;\n  this.ready = false;\n  this.readyCbs = [];\n  this.readyErrorCbs = [];\n  this.errorCbs = [];\n  this.listeners = [];\n};\n\nHistory.prototype.listen = function listen (cb) {\n  this.cb = cb;\n};\n\nHistory.prototype.onReady = function onReady (cb, errorCb) {\n  if (this.ready) {\n    cb();\n  } else {\n    this.readyCbs.push(cb);\n    if (errorCb) {\n      this.readyErrorCbs.push(errorCb);\n    }\n  }\n};\n\nHistory.prototype.onError = function onError (errorCb) {\n  this.errorCbs.push(errorCb);\n};\n\nHistory.prototype.transitionTo = function transitionTo (\n  location,\n  onComplete,\n  onAbort\n) {\n    var this$1$1 = this;\n\n  var route;\n  // catch redirect option https://github.com/vuejs/vue-router/issues/3201\n  try {\n    route = this.router.match(location, this.current);\n  } catch (e) {\n    this.errorCbs.forEach(function (cb) {\n      cb(e);\n    });\n    // Exception should still be thrown\n    throw e\n  }\n  var prev = this.current;\n  this.confirmTransition(\n    route,\n    function () {\n      this$1$1.updateRoute(route);\n      onComplete && onComplete(route);\n      this$1$1.ensureURL();\n      this$1$1.router.afterHooks.forEach(function (hook) {\n        hook && hook(route, prev);\n      });\n\n      // fire ready cbs once\n      if (!this$1$1.ready) {\n        this$1$1.ready = true;\n        this$1$1.readyCbs.forEach(function (cb) {\n          cb(route);\n        });\n      }\n    },\n    function (err) {\n      if (onAbort) {\n        onAbort(err);\n      }\n      if (err && !this$1$1.ready) {\n        // Initial redirection should not mark the history as ready yet\n        // because it's triggered by the redirection instead\n        // https://github.com/vuejs/vue-router/issues/3225\n        // https://github.com/vuejs/vue-router/issues/3331\n        if (!isNavigationFailure(err, NavigationFailureType.redirected) || prev !== START) {\n          this$1$1.ready = true;\n          this$1$1.readyErrorCbs.forEach(function (cb) {\n            cb(err);\n          });\n        }\n      }\n    }\n  );\n};\n\nHistory.prototype.confirmTransition = function confirmTransition (route, onComplete, onAbort) {\n    var this$1$1 = this;\n\n  var current = this.current;\n  this.pending = route;\n  var abort = function (err) {\n    // changed after adding errors with\n    // https://github.com/vuejs/vue-router/pull/3047 before that change,\n    // redirect and aborted navigation would produce an err == null\n    if (!isNavigationFailure(err) && isError(err)) {\n      if (this$1$1.errorCbs.length) {\n        this$1$1.errorCbs.forEach(function (cb) {\n          cb(err);\n        });\n      } else {\n        if (true) {\n          warn(false, 'uncaught error during route navigation:');\n        }\n        console.error(err);\n      }\n    }\n    onAbort && onAbort(err);\n  };\n  var lastRouteIndex = route.matched.length - 1;\n  var lastCurrentIndex = current.matched.length - 1;\n  if (\n    isSameRoute(route, current) &&\n    // in the case the route map has been dynamically appended to\n    lastRouteIndex === lastCurrentIndex &&\n    route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]\n  ) {\n    this.ensureURL();\n    if (route.hash) {\n      handleScroll(this.router, current, route, false);\n    }\n    return abort(createNavigationDuplicatedError(current, route))\n  }\n\n  var ref = resolveQueue(\n    this.current.matched,\n    route.matched\n  );\n    var updated = ref.updated;\n    var deactivated = ref.deactivated;\n    var activated = ref.activated;\n\n  var queue = [].concat(\n    // in-component leave guards\n    extractLeaveGuards(deactivated),\n    // global before hooks\n    this.router.beforeHooks,\n    // in-component update hooks\n    extractUpdateHooks(updated),\n    // in-config enter guards\n    activated.map(function (m) { return m.beforeEnter; }),\n    // async components\n    resolveAsyncComponents(activated)\n  );\n\n  var iterator = function (hook, next) {\n    if (this$1$1.pending !== route) {\n      return abort(createNavigationCancelledError(current, route))\n    }\n    try {\n      hook(route, current, function (to) {\n        if (to === false) {\n          // next(false) -> abort navigation, ensure current URL\n          this$1$1.ensureURL(true);\n          abort(createNavigationAbortedError(current, route));\n        } else if (isError(to)) {\n          this$1$1.ensureURL(true);\n          abort(to);\n        } else if (\n          typeof to === 'string' ||\n          (typeof to === 'object' &&\n            (typeof to.path === 'string' || typeof to.name === 'string'))\n        ) {\n          // next('/') or next({ path: '/' }) -> redirect\n          abort(createNavigationRedirectedError(current, route));\n          if (typeof to === 'object' && to.replace) {\n            this$1$1.replace(to);\n          } else {\n            this$1$1.push(to);\n          }\n        } else {\n          // confirm transition and pass on the value\n          next(to);\n        }\n      });\n    } catch (e) {\n      abort(e);\n    }\n  };\n\n  runQueue(queue, iterator, function () {\n    // wait until async components are resolved before\n    // extracting in-component enter guards\n    var enterGuards = extractEnterGuards(activated);\n    var queue = enterGuards.concat(this$1$1.router.resolveHooks);\n    runQueue(queue, iterator, function () {\n      if (this$1$1.pending !== route) {\n        return abort(createNavigationCancelledError(current, route))\n      }\n      this$1$1.pending = null;\n      onComplete(route);\n      if (this$1$1.router.app) {\n        this$1$1.router.app.$nextTick(function () {\n          handleRouteEntered(route);\n        });\n      }\n    });\n  });\n};\n\nHistory.prototype.updateRoute = function updateRoute (route) {\n  this.current = route;\n  this.cb && this.cb(route);\n};\n\nHistory.prototype.setupListeners = function setupListeners () {\n  // Default implementation is empty\n};\n\nHistory.prototype.teardown = function teardown () {\n  // clean up event listeners\n  // https://github.com/vuejs/vue-router/issues/2341\n  this.listeners.forEach(function (cleanupListener) {\n    cleanupListener();\n  });\n  this.listeners = [];\n\n  // reset current history route\n  // https://github.com/vuejs/vue-router/issues/3294\n  this.current = START;\n  this.pending = null;\n};\n\nfunction normalizeBase (base) {\n  if (!base) {\n    if (inBrowser) {\n      // respect <base> tag\n      var baseEl = document.querySelector('base');\n      base = (baseEl && baseEl.getAttribute('href')) || '/';\n      // strip full URL origin\n      base = base.replace(/^https?:\\/\\/[^\\/]+/, '');\n    } else {\n      base = '/';\n    }\n  }\n  // make sure there's the starting slash\n  if (base.charAt(0) !== '/') {\n    base = '/' + base;\n  }\n  // remove trailing slash\n  return base.replace(/\\/$/, '')\n}\n\nfunction resolveQueue (\n  current,\n  next\n) {\n  var i;\n  var max = Math.max(current.length, next.length);\n  for (i = 0; i < max; i++) {\n    if (current[i] !== next[i]) {\n      break\n    }\n  }\n  return {\n    updated: next.slice(0, i),\n    activated: next.slice(i),\n    deactivated: current.slice(i)\n  }\n}\n\nfunction extractGuards (\n  records,\n  name,\n  bind,\n  reverse\n) {\n  var guards = flatMapComponents(records, function (def, instance, match, key) {\n    var guard = extractGuard(def, name);\n    if (guard) {\n      return Array.isArray(guard)\n        ? guard.map(function (guard) { return bind(guard, instance, match, key); })\n        : bind(guard, instance, match, key)\n    }\n  });\n  return flatten(reverse ? guards.reverse() : guards)\n}\n\nfunction extractGuard (\n  def,\n  key\n) {\n  if (typeof def !== 'function') {\n    // extend now so that global mixins are applied.\n    def = _Vue.extend(def);\n  }\n  return def.options[key]\n}\n\nfunction extractLeaveGuards (deactivated) {\n  return extractGuards(deactivated, 'beforeRouteLeave', bindGuard, true)\n}\n\nfunction extractUpdateHooks (updated) {\n  return extractGuards(updated, 'beforeRouteUpdate', bindGuard)\n}\n\nfunction bindGuard (guard, instance) {\n  if (instance) {\n    return function boundRouteGuard () {\n      return guard.apply(instance, arguments)\n    }\n  }\n}\n\nfunction extractEnterGuards (\n  activated\n) {\n  return extractGuards(\n    activated,\n    'beforeRouteEnter',\n    function (guard, _, match, key) {\n      return bindEnterGuard(guard, match, key)\n    }\n  )\n}\n\nfunction bindEnterGuard (\n  guard,\n  match,\n  key\n) {\n  return function routeEnterGuard (to, from, next) {\n    return guard(to, from, function (cb) {\n      if (typeof cb === 'function') {\n        if (!match.enteredCbs[key]) {\n          match.enteredCbs[key] = [];\n        }\n        match.enteredCbs[key].push(cb);\n      }\n      next(cb);\n    })\n  }\n}\n\n/*  */\n\nvar HTML5History = /*@__PURE__*/(function (History) {\n  function HTML5History (router, base) {\n    History.call(this, router, base);\n\n    this._startLocation = getLocation(this.base);\n  }\n\n  if ( History ) HTML5History.__proto__ = History;\n  HTML5History.prototype = Object.create( History && History.prototype );\n  HTML5History.prototype.constructor = HTML5History;\n\n  HTML5History.prototype.setupListeners = function setupListeners () {\n    var this$1$1 = this;\n\n    if (this.listeners.length > 0) {\n      return\n    }\n\n    var router = this.router;\n    var expectScroll = router.options.scrollBehavior;\n    var supportsScroll = supportsPushState && expectScroll;\n\n    if (supportsScroll) {\n      this.listeners.push(setupScroll());\n    }\n\n    var handleRoutingEvent = function () {\n      var current = this$1$1.current;\n\n      // Avoiding first `popstate` event dispatched in some browsers but first\n      // history route not updated since async guard at the same time.\n      var location = getLocation(this$1$1.base);\n      if (this$1$1.current === START && location === this$1$1._startLocation) {\n        return\n      }\n\n      this$1$1.transitionTo(location, function (route) {\n        if (supportsScroll) {\n          handleScroll(router, route, current, true);\n        }\n      });\n    };\n    window.addEventListener('popstate', handleRoutingEvent);\n    this.listeners.push(function () {\n      window.removeEventListener('popstate', handleRoutingEvent);\n    });\n  };\n\n  HTML5History.prototype.go = function go (n) {\n    window.history.go(n);\n  };\n\n  HTML5History.prototype.push = function push (location, onComplete, onAbort) {\n    var this$1$1 = this;\n\n    var ref = this;\n    var fromRoute = ref.current;\n    this.transitionTo(location, function (route) {\n      pushState(cleanPath(this$1$1.base + route.fullPath));\n      handleScroll(this$1$1.router, route, fromRoute, false);\n      onComplete && onComplete(route);\n    }, onAbort);\n  };\n\n  HTML5History.prototype.replace = function replace (location, onComplete, onAbort) {\n    var this$1$1 = this;\n\n    var ref = this;\n    var fromRoute = ref.current;\n    this.transitionTo(location, function (route) {\n      replaceState(cleanPath(this$1$1.base + route.fullPath));\n      handleScroll(this$1$1.router, route, fromRoute, false);\n      onComplete && onComplete(route);\n    }, onAbort);\n  };\n\n  HTML5History.prototype.ensureURL = function ensureURL (push) {\n    if (getLocation(this.base) !== this.current.fullPath) {\n      var current = cleanPath(this.base + this.current.fullPath);\n      push ? pushState(current) : replaceState(current);\n    }\n  };\n\n  HTML5History.prototype.getCurrentLocation = function getCurrentLocation () {\n    return getLocation(this.base)\n  };\n\n  return HTML5History;\n}(History));\n\nfunction getLocation (base) {\n  var path = window.location.pathname;\n  var pathLowerCase = path.toLowerCase();\n  var baseLowerCase = base.toLowerCase();\n  // base=\"/a\" shouldn't turn path=\"/app\" into \"/a/pp\"\n  // https://github.com/vuejs/vue-router/issues/3555\n  // so we ensure the trailing slash in the base\n  if (base && ((pathLowerCase === baseLowerCase) ||\n    (pathLowerCase.indexOf(cleanPath(baseLowerCase + '/')) === 0))) {\n    path = path.slice(base.length);\n  }\n  return (path || '/') + window.location.search + window.location.hash\n}\n\n/*  */\n\nvar HashHistory = /*@__PURE__*/(function (History) {\n  function HashHistory (router, base, fallback) {\n    History.call(this, router, base);\n    // check history fallback deeplinking\n    if (fallback && checkFallback(this.base)) {\n      return\n    }\n    ensureSlash();\n  }\n\n  if ( History ) HashHistory.__proto__ = History;\n  HashHistory.prototype = Object.create( History && History.prototype );\n  HashHistory.prototype.constructor = HashHistory;\n\n  // this is delayed until the app mounts\n  // to avoid the hashchange listener being fired too early\n  HashHistory.prototype.setupListeners = function setupListeners () {\n    var this$1$1 = this;\n\n    if (this.listeners.length > 0) {\n      return\n    }\n\n    var router = this.router;\n    var expectScroll = router.options.scrollBehavior;\n    var supportsScroll = supportsPushState && expectScroll;\n\n    if (supportsScroll) {\n      this.listeners.push(setupScroll());\n    }\n\n    var handleRoutingEvent = function () {\n      var current = this$1$1.current;\n      if (!ensureSlash()) {\n        return\n      }\n      this$1$1.transitionTo(getHash(), function (route) {\n        if (supportsScroll) {\n          handleScroll(this$1$1.router, route, current, true);\n        }\n        if (!supportsPushState) {\n          replaceHash(route.fullPath);\n        }\n      });\n    };\n    var eventType = supportsPushState ? 'popstate' : 'hashchange';\n    window.addEventListener(\n      eventType,\n      handleRoutingEvent\n    );\n    this.listeners.push(function () {\n      window.removeEventListener(eventType, handleRoutingEvent);\n    });\n  };\n\n  HashHistory.prototype.push = function push (location, onComplete, onAbort) {\n    var this$1$1 = this;\n\n    var ref = this;\n    var fromRoute = ref.current;\n    this.transitionTo(\n      location,\n      function (route) {\n        pushHash(route.fullPath);\n        handleScroll(this$1$1.router, route, fromRoute, false);\n        onComplete && onComplete(route);\n      },\n      onAbort\n    );\n  };\n\n  HashHistory.prototype.replace = function replace (location, onComplete, onAbort) {\n    var this$1$1 = this;\n\n    var ref = this;\n    var fromRoute = ref.current;\n    this.transitionTo(\n      location,\n      function (route) {\n        replaceHash(route.fullPath);\n        handleScroll(this$1$1.router, route, fromRoute, false);\n        onComplete && onComplete(route);\n      },\n      onAbort\n    );\n  };\n\n  HashHistory.prototype.go = function go (n) {\n    window.history.go(n);\n  };\n\n  HashHistory.prototype.ensureURL = function ensureURL (push) {\n    var current = this.current.fullPath;\n    if (getHash() !== current) {\n      push ? pushHash(current) : replaceHash(current);\n    }\n  };\n\n  HashHistory.prototype.getCurrentLocation = function getCurrentLocation () {\n    return getHash()\n  };\n\n  return HashHistory;\n}(History));\n\nfunction checkFallback (base) {\n  var location = getLocation(base);\n  if (!/^\\/#/.test(location)) {\n    window.location.replace(cleanPath(base + '/#' + location));\n    return true\n  }\n}\n\nfunction ensureSlash () {\n  var path = getHash();\n  if (path.charAt(0) === '/') {\n    return true\n  }\n  replaceHash('/' + path);\n  return false\n}\n\nfunction getHash () {\n  // We can't use window.location.hash here because it's not\n  // consistent across browsers - Firefox will pre-decode it!\n  var href = window.location.href;\n  var index = href.indexOf('#');\n  // empty path\n  if (index < 0) { return '' }\n\n  href = href.slice(index + 1);\n\n  return href\n}\n\nfunction getUrl (path) {\n  var href = window.location.href;\n  var i = href.indexOf('#');\n  var base = i >= 0 ? href.slice(0, i) : href;\n  return (base + \"#\" + path)\n}\n\nfunction pushHash (path) {\n  if (supportsPushState) {\n    pushState(getUrl(path));\n  } else {\n    window.location.hash = path;\n  }\n}\n\nfunction replaceHash (path) {\n  if (supportsPushState) {\n    replaceState(getUrl(path));\n  } else {\n    window.location.replace(getUrl(path));\n  }\n}\n\n/*  */\n\nvar AbstractHistory = /*@__PURE__*/(function (History) {\n  function AbstractHistory (router, base) {\n    History.call(this, router, base);\n    this.stack = [];\n    this.index = -1;\n  }\n\n  if ( History ) AbstractHistory.__proto__ = History;\n  AbstractHistory.prototype = Object.create( History && History.prototype );\n  AbstractHistory.prototype.constructor = AbstractHistory;\n\n  AbstractHistory.prototype.push = function push (location, onComplete, onAbort) {\n    var this$1$1 = this;\n\n    this.transitionTo(\n      location,\n      function (route) {\n        this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index + 1).concat(route);\n        this$1$1.index++;\n        onComplete && onComplete(route);\n      },\n      onAbort\n    );\n  };\n\n  AbstractHistory.prototype.replace = function replace (location, onComplete, onAbort) {\n    var this$1$1 = this;\n\n    this.transitionTo(\n      location,\n      function (route) {\n        this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index).concat(route);\n        onComplete && onComplete(route);\n      },\n      onAbort\n    );\n  };\n\n  AbstractHistory.prototype.go = function go (n) {\n    var this$1$1 = this;\n\n    var targetIndex = this.index + n;\n    if (targetIndex < 0 || targetIndex >= this.stack.length) {\n      return\n    }\n    var route = this.stack[targetIndex];\n    this.confirmTransition(\n      route,\n      function () {\n        var prev = this$1$1.current;\n        this$1$1.index = targetIndex;\n        this$1$1.updateRoute(route);\n        this$1$1.router.afterHooks.forEach(function (hook) {\n          hook && hook(route, prev);\n        });\n      },\n      function (err) {\n        if (isNavigationFailure(err, NavigationFailureType.duplicated)) {\n          this$1$1.index = targetIndex;\n        }\n      }\n    );\n  };\n\n  AbstractHistory.prototype.getCurrentLocation = function getCurrentLocation () {\n    var current = this.stack[this.stack.length - 1];\n    return current ? current.fullPath : '/'\n  };\n\n  AbstractHistory.prototype.ensureURL = function ensureURL () {\n    // noop\n  };\n\n  return AbstractHistory;\n}(History));\n\n/*  */\n\n\n\nvar VueRouter = function VueRouter (options) {\n  if ( options === void 0 ) options = {};\n\n  if (true) {\n    warn(this instanceof VueRouter, \"Router must be called with the new operator.\");\n  }\n  this.app = null;\n  this.apps = [];\n  this.options = options;\n  this.beforeHooks = [];\n  this.resolveHooks = [];\n  this.afterHooks = [];\n  this.matcher = createMatcher(options.routes || [], this);\n\n  var mode = options.mode || 'hash';\n  this.fallback =\n    mode === 'history' && !supportsPushState && options.fallback !== false;\n  if (this.fallback) {\n    mode = 'hash';\n  }\n  if (!inBrowser) {\n    mode = 'abstract';\n  }\n  this.mode = mode;\n\n  switch (mode) {\n    case 'history':\n      this.history = new HTML5History(this, options.base);\n      break\n    case 'hash':\n      this.history = new HashHistory(this, options.base, this.fallback);\n      break\n    case 'abstract':\n      this.history = new AbstractHistory(this, options.base);\n      break\n    default:\n      if (true) {\n        assert(false, (\"invalid mode: \" + mode));\n      }\n  }\n};\n\nvar prototypeAccessors = { currentRoute: { configurable: true } };\n\nVueRouter.prototype.match = function match (raw, current, redirectedFrom) {\n  return this.matcher.match(raw, current, redirectedFrom)\n};\n\nprototypeAccessors.currentRoute.get = function () {\n  return this.history && this.history.current\n};\n\nVueRouter.prototype.init = function init (app /* Vue component instance */) {\n    var this$1$1 = this;\n\n   true &&\n    assert(\n      install.installed,\n      \"not installed. Make sure to call `Vue.use(VueRouter)` \" +\n        \"before creating root instance.\"\n    );\n\n  this.apps.push(app);\n\n  // set up app destroyed handler\n  // https://github.com/vuejs/vue-router/issues/2639\n  app.$once('hook:destroyed', function () {\n    // clean out app from this.apps array once destroyed\n    var index = this$1$1.apps.indexOf(app);\n    if (index > -1) { this$1$1.apps.splice(index, 1); }\n    // ensure we still have a main app or null if no apps\n    // we do not release the router so it can be reused\n    if (this$1$1.app === app) { this$1$1.app = this$1$1.apps[0] || null; }\n\n    if (!this$1$1.app) { this$1$1.history.teardown(); }\n  });\n\n  // main app previously initialized\n  // return as we don't need to set up new history listener\n  if (this.app) {\n    return\n  }\n\n  this.app = app;\n\n  var history = this.history;\n\n  if (history instanceof HTML5History || history instanceof HashHistory) {\n    var handleInitialScroll = function (routeOrError) {\n      var from = history.current;\n      var expectScroll = this$1$1.options.scrollBehavior;\n      var supportsScroll = supportsPushState && expectScroll;\n\n      if (supportsScroll && 'fullPath' in routeOrError) {\n        handleScroll(this$1$1, routeOrError, from, false);\n      }\n    };\n    var setupListeners = function (routeOrError) {\n      history.setupListeners();\n      handleInitialScroll(routeOrError);\n    };\n    history.transitionTo(\n      history.getCurrentLocation(),\n      setupListeners,\n      setupListeners\n    );\n  }\n\n  history.listen(function (route) {\n    this$1$1.apps.forEach(function (app) {\n      app._route = route;\n    });\n  });\n};\n\nVueRouter.prototype.beforeEach = function beforeEach (fn) {\n  return registerHook(this.beforeHooks, fn)\n};\n\nVueRouter.prototype.beforeResolve = function beforeResolve (fn) {\n  return registerHook(this.resolveHooks, fn)\n};\n\nVueRouter.prototype.afterEach = function afterEach (fn) {\n  return registerHook(this.afterHooks, fn)\n};\n\nVueRouter.prototype.onReady = function onReady (cb, errorCb) {\n  this.history.onReady(cb, errorCb);\n};\n\nVueRouter.prototype.onError = function onError (errorCb) {\n  this.history.onError(errorCb);\n};\n\nVueRouter.prototype.push = function push (location, onComplete, onAbort) {\n    var this$1$1 = this;\n\n  // $flow-disable-line\n  if (!onComplete && !onAbort && typeof Promise !== 'undefined') {\n    return new Promise(function (resolve, reject) {\n      this$1$1.history.push(location, resolve, reject);\n    })\n  } else {\n    this.history.push(location, onComplete, onAbort);\n  }\n};\n\nVueRouter.prototype.replace = function replace (location, onComplete, onAbort) {\n    var this$1$1 = this;\n\n  // $flow-disable-line\n  if (!onComplete && !onAbort && typeof Promise !== 'undefined') {\n    return new Promise(function (resolve, reject) {\n      this$1$1.history.replace(location, resolve, reject);\n    })\n  } else {\n    this.history.replace(location, onComplete, onAbort);\n  }\n};\n\nVueRouter.prototype.go = function go (n) {\n  this.history.go(n);\n};\n\nVueRouter.prototype.back = function back () {\n  this.go(-1);\n};\n\nVueRouter.prototype.forward = function forward () {\n  this.go(1);\n};\n\nVueRouter.prototype.getMatchedComponents = function getMatchedComponents (to) {\n  var route = to\n    ? to.matched\n      ? to\n      : this.resolve(to).route\n    : this.currentRoute;\n  if (!route) {\n    return []\n  }\n  return [].concat.apply(\n    [],\n    route.matched.map(function (m) {\n      return Object.keys(m.components).map(function (key) {\n        return m.components[key]\n      })\n    })\n  )\n};\n\nVueRouter.prototype.resolve = function resolve (\n  to,\n  current,\n  append\n) {\n  current = current || this.history.current;\n  var location = normalizeLocation(to, current, append, this);\n  var route = this.match(location, current);\n  var fullPath = route.redirectedFrom || route.fullPath;\n  var base = this.history.base;\n  var href = createHref(base, fullPath, this.mode);\n  return {\n    location: location,\n    route: route,\n    href: href,\n    // for backwards compat\n    normalizedTo: location,\n    resolved: route\n  }\n};\n\nVueRouter.prototype.getRoutes = function getRoutes () {\n  return this.matcher.getRoutes()\n};\n\nVueRouter.prototype.addRoute = function addRoute (parentOrRoute, route) {\n  this.matcher.addRoute(parentOrRoute, route);\n  if (this.history.current !== START) {\n    this.history.transitionTo(this.history.getCurrentLocation());\n  }\n};\n\nVueRouter.prototype.addRoutes = function addRoutes (routes) {\n  if (true) {\n    warn(false, 'router.addRoutes() is deprecated and has been removed in Vue Router 4. Use router.addRoute() instead.');\n  }\n  this.matcher.addRoutes(routes);\n  if (this.history.current !== START) {\n    this.history.transitionTo(this.history.getCurrentLocation());\n  }\n};\n\nObject.defineProperties( VueRouter.prototype, prototypeAccessors );\n\nvar VueRouter$1 = VueRouter;\n\nfunction registerHook (list, fn) {\n  list.push(fn);\n  return function () {\n    var i = list.indexOf(fn);\n    if (i > -1) { list.splice(i, 1); }\n  }\n}\n\nfunction createHref (base, fullPath, mode) {\n  var path = mode === 'hash' ? '#' + fullPath : fullPath;\n  return base ? cleanPath(base + '/' + path) : path\n}\n\n// We cannot remove this as it would be a breaking change\nVueRouter.install = install;\nVueRouter.version = '3.6.5';\nVueRouter.isNavigationFailure = isNavigationFailure;\nVueRouter.NavigationFailureType = NavigationFailureType;\nVueRouter.START_LOCATION = START;\n\nif (inBrowser && window.Vue) {\n  window.Vue.use(VueRouter);\n}\n\nvar version = '3.6.5';\n\n\n\n\n//# sourceURL=webpack:///./node_modules/vue-router/dist/vue-router.esm.js?");

/***/ }),

/***/ "./node_modules/vue-style-loader/lib/addStylesClient.js":
/*!**************************************************************!*\
  !*** ./node_modules/vue-style-loader/lib/addStylesClient.js ***!
  \**************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return addStylesClient; });\n/* harmony import */ var _listToStyles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./listToStyles */ \"./node_modules/vue-style-loader/lib/listToStyles.js\");\n/*\n  MIT License http://www.opensource.org/licenses/mit-license.php\n  Author Tobias Koppers @sokra\n  Modified by Evan You @yyx990803\n*/\n\n\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n  if (!hasDocument) {\n    throw new Error(\n    'vue-style-loader cannot be used in a non-browser environment. ' +\n    \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n  ) }\n}\n\n/*\ntype StyleObject = {\n  id: number;\n  parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n  css: string;\n  media: string;\n  sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n  [id: number]: {\n    id: number,\n    refs: number,\n    parts: Array<(obj?: StyleObjectPart) => void>\n  }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nfunction addStylesClient (parentId, list, _isProduction, _options) {\n  isProduction = _isProduction\n\n  options = _options || {}\n\n  var styles = Object(_listToStyles__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(parentId, list)\n  addStylesToDom(styles)\n\n  return function update (newList) {\n    var mayRemove = []\n    for (var i = 0; i < styles.length; i++) {\n      var item = styles[i]\n      var domStyle = stylesInDom[item.id]\n      domStyle.refs--\n      mayRemove.push(domStyle)\n    }\n    if (newList) {\n      styles = Object(_listToStyles__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(parentId, newList)\n      addStylesToDom(styles)\n    } else {\n      styles = []\n    }\n    for (var i = 0; i < mayRemove.length; i++) {\n      var domStyle = mayRemove[i]\n      if (domStyle.refs === 0) {\n        for (var j = 0; j < domStyle.parts.length; j++) {\n          domStyle.parts[j]()\n        }\n        delete stylesInDom[domStyle.id]\n      }\n    }\n  }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n  for (var i = 0; i < styles.length; i++) {\n    var item = styles[i]\n    var domStyle = stylesInDom[item.id]\n    if (domStyle) {\n      domStyle.refs++\n      for (var j = 0; j < domStyle.parts.length; j++) {\n        domStyle.parts[j](item.parts[j])\n      }\n      for (; j < item.parts.length; j++) {\n        domStyle.parts.push(addStyle(item.parts[j]))\n      }\n      if (domStyle.parts.length > item.parts.length) {\n        domStyle.parts.length = item.parts.length\n      }\n    } else {\n      var parts = []\n      for (var j = 0; j < item.parts.length; j++) {\n        parts.push(addStyle(item.parts[j]))\n      }\n      stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n    }\n  }\n}\n\nfunction createStyleElement () {\n  var styleElement = document.createElement('style')\n  styleElement.type = 'text/css'\n  head.appendChild(styleElement)\n  return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n  var update, remove\n  var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n  if (styleElement) {\n    if (isProduction) {\n      // has SSR styles and in production mode.\n      // simply do nothing.\n      return noop\n    } else {\n      // has SSR styles but in dev mode.\n      // for some reason Chrome can't handle source map in server-rendered\n      // style tags - source maps in <style> only works if the style tag is\n      // created and inserted dynamically. So we remove the server rendered\n      // styles and inject new ones.\n      styleElement.parentNode.removeChild(styleElement)\n    }\n  }\n\n  if (isOldIE) {\n    // use singleton mode for IE9.\n    var styleIndex = singletonCounter++\n    styleElement = singletonElement || (singletonElement = createStyleElement())\n    update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n    remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n  } else {\n    // use multi-style-tag mode in all other cases\n    styleElement = createStyleElement()\n    update = applyToTag.bind(null, styleElement)\n    remove = function () {\n      styleElement.parentNode.removeChild(styleElement)\n    }\n  }\n\n  update(obj)\n\n  return function updateStyle (newObj /* StyleObjectPart */) {\n    if (newObj) {\n      if (newObj.css === obj.css &&\n          newObj.media === obj.media &&\n          newObj.sourceMap === obj.sourceMap) {\n        return\n      }\n      update(obj = newObj)\n    } else {\n      remove()\n    }\n  }\n}\n\nvar replaceText = (function () {\n  var textStore = []\n\n  return function (index, replacement) {\n    textStore[index] = replacement\n    return textStore.filter(Boolean).join('\\n')\n  }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n  var css = remove ? '' : obj.css\n\n  if (styleElement.styleSheet) {\n    styleElement.styleSheet.cssText = replaceText(index, css)\n  } else {\n    var cssNode = document.createTextNode(css)\n    var childNodes = styleElement.childNodes\n    if (childNodes[index]) styleElement.removeChild(childNodes[index])\n    if (childNodes.length) {\n      styleElement.insertBefore(cssNode, childNodes[index])\n    } else {\n      styleElement.appendChild(cssNode)\n    }\n  }\n}\n\nfunction applyToTag (styleElement, obj) {\n  var css = obj.css\n  var media = obj.media\n  var sourceMap = obj.sourceMap\n\n  if (media) {\n    styleElement.setAttribute('media', media)\n  }\n  if (options.ssrId) {\n    styleElement.setAttribute(ssrIdKey, obj.id)\n  }\n\n  if (sourceMap) {\n    // https://developer.chrome.com/devtools/docs/javascript-debugging\n    // this makes source maps inside style tags work properly in Chrome\n    css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n    // http://stackoverflow.com/a/26603875\n    css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n  }\n\n  if (styleElement.styleSheet) {\n    styleElement.styleSheet.cssText = css\n  } else {\n    while (styleElement.firstChild) {\n      styleElement.removeChild(styleElement.firstChild)\n    }\n    styleElement.appendChild(document.createTextNode(css))\n  }\n}\n\n\n//# sourceURL=webpack:///./node_modules/vue-style-loader/lib/addStylesClient.js?");

/***/ }),

/***/ "./node_modules/vue-style-loader/lib/listToStyles.js":
/*!***********************************************************!*\
  !*** ./node_modules/vue-style-loader/lib/listToStyles.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return listToStyles; });\n/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nfunction listToStyles (parentId, list) {\n  var styles = []\n  var newStyles = {}\n  for (var i = 0; i < list.length; i++) {\n    var item = list[i]\n    var id = item[0]\n    var css = item[1]\n    var media = item[2]\n    var sourceMap = item[3]\n    var part = {\n      id: parentId + ':' + i,\n      css: css,\n      media: media,\n      sourceMap: sourceMap\n    }\n    if (!newStyles[id]) {\n      styles.push(newStyles[id] = { id: id, parts: [part] })\n    } else {\n      newStyles[id].parts.push(part)\n    }\n  }\n  return styles\n}\n\n\n//# sourceURL=webpack:///./node_modules/vue-style-loader/lib/listToStyles.js?");

/***/ }),

/***/ "./node_modules/vue/dist/vue.esm.js":
/*!******************************************!*\
  !*** ./node_modules/vue/dist/vue.esm.js ***!
  \******************************************/
/*! exports provided: EffectScope, computed, customRef, default, defineAsyncComponent, defineComponent, del, effectScope, getCurrentInstance, getCurrentScope, h, inject, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, mergeDefaults, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, readonly, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useListeners, useSlots, version, watch, watchEffect, watchPostEffect, watchSyncEffect */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EffectScope\", function() { return EffectScope; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"computed\", function() { return computed; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"customRef\", function() { return customRef; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Vue; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defineAsyncComponent\", function() { return defineAsyncComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"defineComponent\", function() { return defineComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"del\", function() { return del; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"effectScope\", function() { return effectScope; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getCurrentInstance\", function() { return getCurrentInstance; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getCurrentScope\", function() { return getCurrentScope; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return h; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"inject\", function() { return inject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isProxy\", function() { return isProxy; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isReactive\", function() { return isReactive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isReadonly\", function() { return isReadonly; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isRef\", function() { return isRef; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isShallow\", function() { return isShallow; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"markRaw\", function() { return markRaw; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mergeDefaults\", function() { return mergeDefaults; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"nextTick\", function() { return nextTick; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onActivated\", function() { return onActivated; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onBeforeMount\", function() { return onBeforeMount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onBeforeUnmount\", function() { return onBeforeUnmount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onBeforeUpdate\", function() { return onBeforeUpdate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onDeactivated\", function() { return onDeactivated; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onErrorCaptured\", function() { return onErrorCaptured; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onMounted\", function() { return onMounted; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onRenderTracked\", function() { return onRenderTracked; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onRenderTriggered\", function() { return onRenderTriggered; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onScopeDispose\", function() { return onScopeDispose; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onServerPrefetch\", function() { return onServerPrefetch; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onUnmounted\", function() { return onUnmounted; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"onUpdated\", function() { return onUpdated; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"provide\", function() { return provide; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"proxyRefs\", function() { return proxyRefs; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"reactive\", function() { return reactive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"readonly\", function() { return readonly; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ref\", function() { return ref$1; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"set\", function() { return set; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"shallowReactive\", function() { return shallowReactive; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"shallowReadonly\", function() { return shallowReadonly; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"shallowRef\", function() { return shallowRef; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toRaw\", function() { return toRaw; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toRef\", function() { return toRef; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toRefs\", function() { return toRefs; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"triggerRef\", function() { return triggerRef; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"unref\", function() { return unref; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useAttrs\", function() { return useAttrs; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useCssModule\", function() { return useCssModule; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useCssVars\", function() { return useCssVars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useListeners\", function() { return useListeners; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useSlots\", function() { return useSlots; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"watch\", function() { return watch; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"watchEffect\", function() { return watchEffect; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"watchPostEffect\", function() { return watchPostEffect; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"watchSyncEffect\", function() { return watchSyncEffect; });\n/*!\n * Vue.js v2.7.14\n * (c) 2014-2022 Evan You\n * Released under the MIT License.\n */\nvar emptyObject = Object.freeze({});\nvar isArray = Array.isArray;\n// These helpers produce better VM code in JS engines due to their\n// explicitness and function inlining.\nfunction isUndef(v) {\n    return v === undefined || v === null;\n}\nfunction isDef(v) {\n    return v !== undefined && v !== null;\n}\nfunction isTrue(v) {\n    return v === true;\n}\nfunction isFalse(v) {\n    return v === false;\n}\n/**\n * Check if value is primitive.\n */\nfunction isPrimitive(value) {\n    return (typeof value === 'string' ||\n        typeof value === 'number' ||\n        // $flow-disable-line\n        typeof value === 'symbol' ||\n        typeof value === 'boolean');\n}\nfunction isFunction(value) {\n    return typeof value === 'function';\n}\n/**\n * Quick object check - this is primarily used to tell\n * objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject(obj) {\n    return obj !== null && typeof obj === 'object';\n}\n/**\n * Get the raw type string of a value, e.g., [object Object].\n */\nvar _toString = Object.prototype.toString;\nfunction toRawType(value) {\n    return _toString.call(value).slice(8, -1);\n}\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject(obj) {\n    return _toString.call(obj) === '[object Object]';\n}\nfunction isRegExp(v) {\n    return _toString.call(v) === '[object RegExp]';\n}\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex(val) {\n    var n = parseFloat(String(val));\n    return n >= 0 && Math.floor(n) === n && isFinite(val);\n}\nfunction isPromise(val) {\n    return (isDef(val) &&\n        typeof val.then === 'function' &&\n        typeof val.catch === 'function');\n}\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString(val) {\n    return val == null\n        ? ''\n        : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)\n            ? JSON.stringify(val, null, 2)\n            : String(val);\n}\n/**\n * Convert an input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber(val) {\n    var n = parseFloat(val);\n    return isNaN(n) ? val : n;\n}\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap(str, expectsLowerCase) {\n    var map = Object.create(null);\n    var list = str.split(',');\n    for (var i = 0; i < list.length; i++) {\n        map[list[i]] = true;\n    }\n    return expectsLowerCase ? function (val) { return map[val.toLowerCase()]; } : function (val) { return map[val]; };\n}\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n/**\n * Check if an attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');\n/**\n * Remove an item from an array.\n */\nfunction remove$2(arr, item) {\n    var len = arr.length;\n    if (len) {\n        // fast path for the only / last item\n        if (item === arr[len - 1]) {\n            arr.length = len - 1;\n            return;\n        }\n        var index = arr.indexOf(item);\n        if (index > -1) {\n            return arr.splice(index, 1);\n        }\n    }\n}\n/**\n * Check whether an object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn(obj, key) {\n    return hasOwnProperty.call(obj, key);\n}\n/**\n * Create a cached version of a pure function.\n */\nfunction cached(fn) {\n    var cache = Object.create(null);\n    return function cachedFn(str) {\n        var hit = cache[str];\n        return hit || (cache[str] = fn(str));\n    };\n}\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n    return str.replace(camelizeRE, function (_, c) { return (c ? c.toUpperCase() : ''); });\n});\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n    return str.charAt(0).toUpperCase() + str.slice(1);\n});\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n    return str.replace(hyphenateRE, '-$1').toLowerCase();\n});\n/**\n * Simple bind polyfill for environments that do not support it,\n * e.g., PhantomJS 1.x. Technically, we don't need this anymore\n * since native bind is now performant enough in most browsers.\n * But removing it would mean breaking code that was able to run in\n * PhantomJS 1.x, so this must be kept for backward compatibility.\n */\n/* istanbul ignore next */\nfunction polyfillBind(fn, ctx) {\n    function boundFn(a) {\n        var l = arguments.length;\n        return l\n            ? l > 1\n                ? fn.apply(ctx, arguments)\n                : fn.call(ctx, a)\n            : fn.call(ctx);\n    }\n    boundFn._length = fn.length;\n    return boundFn;\n}\nfunction nativeBind(fn, ctx) {\n    return fn.bind(ctx);\n}\n// @ts-expect-error bind cannot be `undefined`\nvar bind$1 = Function.prototype.bind ? nativeBind : polyfillBind;\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray(list, start) {\n    start = start || 0;\n    var i = list.length - start;\n    var ret = new Array(i);\n    while (i--) {\n        ret[i] = list[i + start];\n    }\n    return ret;\n}\n/**\n * Mix properties into target object.\n */\nfunction extend(to, _from) {\n    for (var key in _from) {\n        to[key] = _from[key];\n    }\n    return to;\n}\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject(arr) {\n    var res = {};\n    for (var i = 0; i < arr.length; i++) {\n        if (arr[i]) {\n            extend(res, arr[i]);\n        }\n    }\n    return res;\n}\n/* eslint-disable no-unused-vars */\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).\n */\nfunction noop(a, b, c) { }\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n/* eslint-enable no-unused-vars */\n/**\n * Return the same value.\n */\nvar identity = function (_) { return _; };\n/**\n * Generate a string containing static keys from compiler modules.\n */\nfunction genStaticKeys$1(modules) {\n    return modules\n        .reduce(function (keys, m) {\n        return keys.concat(m.staticKeys || []);\n    }, [])\n        .join(',');\n}\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual(a, b) {\n    if (a === b)\n        return true;\n    var isObjectA = isObject(a);\n    var isObjectB = isObject(b);\n    if (isObjectA && isObjectB) {\n        try {\n            var isArrayA = Array.isArray(a);\n            var isArrayB = Array.isArray(b);\n            if (isArrayA && isArrayB) {\n                return (a.length === b.length &&\n                    a.every(function (e, i) {\n                        return looseEqual(e, b[i]);\n                    }));\n            }\n            else if (a instanceof Date && b instanceof Date) {\n                return a.getTime() === b.getTime();\n            }\n            else if (!isArrayA && !isArrayB) {\n                var keysA = Object.keys(a);\n                var keysB = Object.keys(b);\n                return (keysA.length === keysB.length &&\n                    keysA.every(function (key) {\n                        return looseEqual(a[key], b[key]);\n                    }));\n            }\n            else {\n                /* istanbul ignore next */\n                return false;\n            }\n        }\n        catch (e) {\n            /* istanbul ignore next */\n            return false;\n        }\n    }\n    else if (!isObjectA && !isObjectB) {\n        return String(a) === String(b);\n    }\n    else {\n        return false;\n    }\n}\n/**\n * Return the first index at which a loosely equal value can be\n * found in the array (if value is a plain object, the array must\n * contain an object of the same shape), or -1 if it is not present.\n */\nfunction looseIndexOf(arr, val) {\n    for (var i = 0; i < arr.length; i++) {\n        if (looseEqual(arr[i], val))\n            return i;\n    }\n    return -1;\n}\n/**\n * Ensure a function is called only once.\n */\nfunction once(fn) {\n    var called = false;\n    return function () {\n        if (!called) {\n            called = true;\n            fn.apply(this, arguments);\n        }\n    };\n}\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is#polyfill\nfunction hasChanged(x, y) {\n    if (x === y) {\n        return x === 0 && 1 / x !== 1 / y;\n    }\n    else {\n        return x === x || y === y;\n    }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\nvar ASSET_TYPES = ['component', 'directive', 'filter'];\nvar LIFECYCLE_HOOKS = [\n    'beforeCreate',\n    'created',\n    'beforeMount',\n    'mounted',\n    'beforeUpdate',\n    'updated',\n    'beforeDestroy',\n    'destroyed',\n    'activated',\n    'deactivated',\n    'errorCaptured',\n    'serverPrefetch',\n    'renderTracked',\n    'renderTriggered'\n];\n\nvar config = {\n    /**\n     * Option merge strategies (used in core/util/options)\n     */\n    // $flow-disable-line\n    optionMergeStrategies: Object.create(null),\n    /**\n     * Whether to suppress warnings.\n     */\n    silent: false,\n    /**\n     * Show production mode tip message on boot?\n     */\n    productionTip: \"staging\" !== 'production',\n    /**\n     * Whether to enable devtools\n     */\n    devtools: \"staging\" !== 'production',\n    /**\n     * Whether to record perf\n     */\n    performance: false,\n    /**\n     * Error handler for watcher errors\n     */\n    errorHandler: null,\n    /**\n     * Warn handler for watcher warns\n     */\n    warnHandler: null,\n    /**\n     * Ignore certain custom elements\n     */\n    ignoredElements: [],\n    /**\n     * Custom user key aliases for v-on\n     */\n    // $flow-disable-line\n    keyCodes: Object.create(null),\n    /**\n     * Check if a tag is reserved so that it cannot be registered as a\n     * component. This is platform-dependent and may be overwritten.\n     */\n    isReservedTag: no,\n    /**\n     * Check if an attribute is reserved so that it cannot be used as a component\n     * prop. This is platform-dependent and may be overwritten.\n     */\n    isReservedAttr: no,\n    /**\n     * Check if a tag is an unknown element.\n     * Platform-dependent.\n     */\n    isUnknownElement: no,\n    /**\n     * Get the namespace of an element\n     */\n    getTagNamespace: noop,\n    /**\n     * Parse the real tag name for the specific platform.\n     */\n    parsePlatformTagName: identity,\n    /**\n     * Check if an attribute must be bound using property, e.g. value\n     * Platform-dependent.\n     */\n    mustUseProp: no,\n    /**\n     * Perform updates asynchronously. Intended to be used by Vue Test Utils\n     * This will significantly reduce performance if set to false.\n     */\n    async: true,\n    /**\n     * Exposed for legacy reasons\n     */\n    _lifecycleHooks: LIFECYCLE_HOOKS\n};\n\n/**\n * unicode letters used for parsing html tags, component names and property paths.\n * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname\n * skipping \\u10000-\\uEFFFF due to it freezing up PhantomJS\n */\nvar unicodeRegExp = /a-zA-Z\\u00B7\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD/;\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved(str) {\n    var c = (str + '').charCodeAt(0);\n    return c === 0x24 || c === 0x5f;\n}\n/**\n * Define a property.\n */\nfunction def(obj, key, val, enumerable) {\n    Object.defineProperty(obj, key, {\n        value: val,\n        enumerable: !!enumerable,\n        writable: true,\n        configurable: true\n    });\n}\n/**\n * Parse simple path.\n */\nvar bailRE = new RegExp(\"[^\".concat(unicodeRegExp.source, \".$_\\\\d]\"));\nfunction parsePath(path) {\n    if (bailRE.test(path)) {\n        return;\n    }\n    var segments = path.split('.');\n    return function (obj) {\n        for (var i = 0; i < segments.length; i++) {\n            if (!obj)\n                return;\n            obj = obj[segments[i]];\n        }\n        return obj;\n    };\n}\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nUA && UA.indexOf('android') > 0;\nvar isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);\nUA && /chrome\\/\\d+/.test(UA) && !isEdge;\nUA && /phantomjs/.test(UA);\nvar isFF = UA && UA.match(/firefox\\/(\\d+)/);\n// Firefox has a \"watch\" function on Object.prototype...\n// @ts-expect-error firebox support\nvar nativeWatch = {}.watch;\nvar supportsPassive = false;\nif (inBrowser) {\n    try {\n        var opts = {};\n        Object.defineProperty(opts, 'passive', {\n            get: function () {\n                /* istanbul ignore next */\n                supportsPassive = true;\n            }\n        }); // https://github.com/facebook/flow/issues/285\n        window.addEventListener('test-passive', null, opts);\n    }\n    catch (e) { }\n}\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n    if (_isServer === undefined) {\n        /* istanbul ignore if */\n        if (!inBrowser && typeof global !== 'undefined') {\n            // detect presence of vue-server-renderer and avoid\n            // Webpack shimming the process\n            _isServer =\n                global['process'] && global['process'].env.VUE_ENV === 'server';\n        }\n        else {\n            _isServer = false;\n        }\n    }\n    return _isServer;\n};\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n/* istanbul ignore next */\nfunction isNative(Ctor) {\n    return typeof Ctor === 'function' && /native code/.test(Ctor.toString());\n}\nvar hasSymbol = typeof Symbol !== 'undefined' &&\n    isNative(Symbol) &&\n    typeof Reflect !== 'undefined' &&\n    isNative(Reflect.ownKeys);\nvar _Set; // $flow-disable-line\n/* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) {\n    // use native Set when available.\n    _Set = Set;\n}\nelse {\n    // a non-standard Set polyfill that only works with primitive keys.\n    _Set = /** @class */ (function () {\n        function Set() {\n            this.set = Object.create(null);\n        }\n        Set.prototype.has = function (key) {\n            return this.set[key] === true;\n        };\n        Set.prototype.add = function (key) {\n            this.set[key] = true;\n        };\n        Set.prototype.clear = function () {\n            this.set = Object.create(null);\n        };\n        return Set;\n    }());\n}\n\nvar currentInstance = null;\n/**\n * This is exposed for compatibility with v3 (e.g. some functions in VueUse\n * relies on it). Do not use this internally, just use `currentInstance`.\n *\n * @internal this function needs manual type declaration because it relies\n * on previously manually authored types from Vue 2\n */\nfunction getCurrentInstance() {\n    return currentInstance && { proxy: currentInstance };\n}\n/**\n * @internal\n */\nfunction setCurrentInstance(vm) {\n    if (vm === void 0) { vm = null; }\n    if (!vm)\n        currentInstance && currentInstance._scope.off();\n    currentInstance = vm;\n    vm && vm._scope.on();\n}\n\n/**\n * @internal\n */\nvar VNode = /** @class */ (function () {\n    function VNode(tag, data, children, text, elm, context, componentOptions, asyncFactory) {\n        this.tag = tag;\n        this.data = data;\n        this.children = children;\n        this.text = text;\n        this.elm = elm;\n        this.ns = undefined;\n        this.context = context;\n        this.fnContext = undefined;\n        this.fnOptions = undefined;\n        this.fnScopeId = undefined;\n        this.key = data && data.key;\n        this.componentOptions = componentOptions;\n        this.componentInstance = undefined;\n        this.parent = undefined;\n        this.raw = false;\n        this.isStatic = false;\n        this.isRootInsert = true;\n        this.isComment = false;\n        this.isCloned = false;\n        this.isOnce = false;\n        this.asyncFactory = asyncFactory;\n        this.asyncMeta = undefined;\n        this.isAsyncPlaceholder = false;\n    }\n    Object.defineProperty(VNode.prototype, \"child\", {\n        // DEPRECATED: alias for componentInstance for backwards compat.\n        /* istanbul ignore next */\n        get: function () {\n            return this.componentInstance;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    return VNode;\n}());\nvar createEmptyVNode = function (text) {\n    if (text === void 0) { text = ''; }\n    var node = new VNode();\n    node.text = text;\n    node.isComment = true;\n    return node;\n};\nfunction createTextVNode(val) {\n    return new VNode(undefined, undefined, undefined, String(val));\n}\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode(vnode) {\n    var cloned = new VNode(vnode.tag, vnode.data, \n    // #7975\n    // clone children array to avoid mutating original in case of cloning\n    // a child.\n    vnode.children && vnode.children.slice(), vnode.text, vnode.elm, vnode.context, vnode.componentOptions, vnode.asyncFactory);\n    cloned.ns = vnode.ns;\n    cloned.isStatic = vnode.isStatic;\n    cloned.key = vnode.key;\n    cloned.isComment = vnode.isComment;\n    cloned.fnContext = vnode.fnContext;\n    cloned.fnOptions = vnode.fnOptions;\n    cloned.fnScopeId = vnode.fnScopeId;\n    cloned.asyncMeta = vnode.asyncMeta;\n    cloned.isCloned = true;\n    return cloned;\n}\n\n/* not type checking this file because flow doesn't play well with Proxy */\nvar initProxy;\nif (true) {\n    var allowedGlobals_1 = makeMap('Infinity,undefined,NaN,isFinite,isNaN,' +\n        'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n        'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,' +\n        'require' // for Webpack/Browserify\n    );\n    var warnNonPresent_1 = function (target, key) {\n        warn$2(\"Property or method \\\"\".concat(key, \"\\\" is not defined on the instance but \") +\n            'referenced during render. Make sure that this property is reactive, ' +\n            'either in the data option, or for class-based components, by ' +\n            'initializing the property. ' +\n            'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.', target);\n    };\n    var warnReservedPrefix_1 = function (target, key) {\n        warn$2(\"Property \\\"\".concat(key, \"\\\" must be accessed with \\\"$data.\").concat(key, \"\\\" because \") +\n            'properties starting with \"$\" or \"_\" are not proxied in the Vue instance to ' +\n            'prevent conflicts with Vue internals. ' +\n            'See: https://v2.vuejs.org/v2/api/#data', target);\n    };\n    var hasProxy_1 = typeof Proxy !== 'undefined' && isNative(Proxy);\n    if (hasProxy_1) {\n        var isBuiltInModifier_1 = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');\n        config.keyCodes = new Proxy(config.keyCodes, {\n            set: function (target, key, value) {\n                if (isBuiltInModifier_1(key)) {\n                    warn$2(\"Avoid overwriting built-in modifier in config.keyCodes: .\".concat(key));\n                    return false;\n                }\n                else {\n                    target[key] = value;\n                    return true;\n                }\n            }\n        });\n    }\n    var hasHandler_1 = {\n        has: function (target, key) {\n            var has = key in target;\n            var isAllowed = allowedGlobals_1(key) ||\n                (typeof key === 'string' &&\n                    key.charAt(0) === '_' &&\n                    !(key in target.$data));\n            if (!has && !isAllowed) {\n                if (key in target.$data)\n                    warnReservedPrefix_1(target, key);\n                else\n                    warnNonPresent_1(target, key);\n            }\n            return has || !isAllowed;\n        }\n    };\n    var getHandler_1 = {\n        get: function (target, key) {\n            if (typeof key === 'string' && !(key in target)) {\n                if (key in target.$data)\n                    warnReservedPrefix_1(target, key);\n                else\n                    warnNonPresent_1(target, key);\n            }\n            return target[key];\n        }\n    };\n    initProxy = function initProxy(vm) {\n        if (hasProxy_1) {\n            // determine which proxy handler to use\n            var options = vm.$options;\n            var handlers = options.render && options.render._withStripped ? getHandler_1 : hasHandler_1;\n            vm._renderProxy = new Proxy(vm, handlers);\n        }\n        else {\n            vm._renderProxy = vm;\n        }\n    };\n}\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    };\r\n    return __assign.apply(this, arguments);\r\n};\n\nvar uid$2 = 0;\nvar pendingCleanupDeps = [];\nvar cleanupDeps = function () {\n    for (var i = 0; i < pendingCleanupDeps.length; i++) {\n        var dep = pendingCleanupDeps[i];\n        dep.subs = dep.subs.filter(function (s) { return s; });\n        dep._pending = false;\n    }\n    pendingCleanupDeps.length = 0;\n};\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n * @internal\n */\nvar Dep = /** @class */ (function () {\n    function Dep() {\n        // pending subs cleanup\n        this._pending = false;\n        this.id = uid$2++;\n        this.subs = [];\n    }\n    Dep.prototype.addSub = function (sub) {\n        this.subs.push(sub);\n    };\n    Dep.prototype.removeSub = function (sub) {\n        // #12696 deps with massive amount of subscribers are extremely slow to\n        // clean up in Chromium\n        // to workaround this, we unset the sub for now, and clear them on\n        // next scheduler flush.\n        this.subs[this.subs.indexOf(sub)] = null;\n        if (!this._pending) {\n            this._pending = true;\n            pendingCleanupDeps.push(this);\n        }\n    };\n    Dep.prototype.depend = function (info) {\n        if (Dep.target) {\n            Dep.target.addDep(this);\n            if ( true && info && Dep.target.onTrack) {\n                Dep.target.onTrack(__assign({ effect: Dep.target }, info));\n            }\n        }\n    };\n    Dep.prototype.notify = function (info) {\n        // stabilize the subscriber list first\n        var subs = this.subs.filter(function (s) { return s; });\n        if ( true && !config.async) {\n            // subs aren't sorted in scheduler if not running async\n            // we need to sort them now to make sure they fire in correct\n            // order\n            subs.sort(function (a, b) { return a.id - b.id; });\n        }\n        for (var i = 0, l = subs.length; i < l; i++) {\n            var sub = subs[i];\n            if ( true && info) {\n                sub.onTrigger &&\n                    sub.onTrigger(__assign({ effect: subs[i] }, info));\n            }\n            sub.update();\n        }\n    };\n    return Dep;\n}());\n// The current target watcher being evaluated.\n// This is globally unique because only one watcher\n// can be evaluated at a time.\nDep.target = null;\nvar targetStack = [];\nfunction pushTarget(target) {\n    targetStack.push(target);\n    Dep.target = target;\n}\nfunction popTarget() {\n    targetStack.pop();\n    Dep.target = targetStack[targetStack.length - 1];\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);\nvar methodsToPatch = [\n    'push',\n    'pop',\n    'shift',\n    'unshift',\n    'splice',\n    'sort',\n    'reverse'\n];\n/**\n * Intercept mutating methods and emit events\n */\nmethodsToPatch.forEach(function (method) {\n    // cache original method\n    var original = arrayProto[method];\n    def(arrayMethods, method, function mutator() {\n        var args = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            args[_i] = arguments[_i];\n        }\n        var result = original.apply(this, args);\n        var ob = this.__ob__;\n        var inserted;\n        switch (method) {\n            case 'push':\n            case 'unshift':\n                inserted = args;\n                break;\n            case 'splice':\n                inserted = args.slice(2);\n                break;\n        }\n        if (inserted)\n            ob.observeArray(inserted);\n        // notify change\n        if (true) {\n            ob.dep.notify({\n                type: \"array mutation\" /* TriggerOpTypes.ARRAY_MUTATION */,\n                target: this,\n                key: method\n            });\n        }\n        else {}\n        return result;\n    });\n});\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\nvar NO_INIITIAL_VALUE = {};\n/**\n * In some cases we may want to disable observation inside a component's\n * update computation.\n */\nvar shouldObserve = true;\nfunction toggleObserving(value) {\n    shouldObserve = value;\n}\n// ssr mock dep\nvar mockDep = {\n    notify: noop,\n    depend: noop,\n    addSub: noop,\n    removeSub: noop\n};\n/**\n * Observer class that is attached to each observed\n * object. Once attached, the observer converts the target\n * object's property keys into getter/setters that\n * collect dependencies and dispatch updates.\n */\nvar Observer = /** @class */ (function () {\n    function Observer(value, shallow, mock) {\n        if (shallow === void 0) { shallow = false; }\n        if (mock === void 0) { mock = false; }\n        this.value = value;\n        this.shallow = shallow;\n        this.mock = mock;\n        // this.value = value\n        this.dep = mock ? mockDep : new Dep();\n        this.vmCount = 0;\n        def(value, '__ob__', this);\n        if (isArray(value)) {\n            if (!mock) {\n                if (hasProto) {\n                    value.__proto__ = arrayMethods;\n                    /* eslint-enable no-proto */\n                }\n                else {\n                    for (var i = 0, l = arrayKeys.length; i < l; i++) {\n                        var key = arrayKeys[i];\n                        def(value, key, arrayMethods[key]);\n                    }\n                }\n            }\n            if (!shallow) {\n                this.observeArray(value);\n            }\n        }\n        else {\n            /**\n             * Walk through all properties and convert them into\n             * getter/setters. This method should only be called when\n             * value type is Object.\n             */\n            var keys = Object.keys(value);\n            for (var i = 0; i < keys.length; i++) {\n                var key = keys[i];\n                defineReactive(value, key, NO_INIITIAL_VALUE, undefined, shallow, mock);\n            }\n        }\n    }\n    /**\n     * Observe a list of Array items.\n     */\n    Observer.prototype.observeArray = function (value) {\n        for (var i = 0, l = value.length; i < l; i++) {\n            observe(value[i], false, this.mock);\n        }\n    };\n    return Observer;\n}());\n// helpers\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe(value, shallow, ssrMockReactivity) {\n    if (value && hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n        return value.__ob__;\n    }\n    if (shouldObserve &&\n        (ssrMockReactivity || !isServerRendering()) &&\n        (isArray(value) || isPlainObject(value)) &&\n        Object.isExtensible(value) &&\n        !value.__v_skip /* ReactiveFlags.SKIP */ &&\n        !isRef(value) &&\n        !(value instanceof VNode)) {\n        return new Observer(value, shallow, ssrMockReactivity);\n    }\n}\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive(obj, key, val, customSetter, shallow, mock) {\n    var dep = new Dep();\n    var property = Object.getOwnPropertyDescriptor(obj, key);\n    if (property && property.configurable === false) {\n        return;\n    }\n    // cater for pre-defined getter/setters\n    var getter = property && property.get;\n    var setter = property && property.set;\n    if ((!getter || setter) &&\n        (val === NO_INIITIAL_VALUE || arguments.length === 2)) {\n        val = obj[key];\n    }\n    var childOb = !shallow && observe(val, false, mock);\n    Object.defineProperty(obj, key, {\n        enumerable: true,\n        configurable: true,\n        get: function reactiveGetter() {\n            var value = getter ? getter.call(obj) : val;\n            if (Dep.target) {\n                if (true) {\n                    dep.depend({\n                        target: obj,\n                        type: \"get\" /* TrackOpTypes.GET */,\n                        key: key\n                    });\n                }\n                else {}\n                if (childOb) {\n                    childOb.dep.depend();\n                    if (isArray(value)) {\n                        dependArray(value);\n                    }\n                }\n            }\n            return isRef(value) && !shallow ? value.value : value;\n        },\n        set: function reactiveSetter(newVal) {\n            var value = getter ? getter.call(obj) : val;\n            if (!hasChanged(value, newVal)) {\n                return;\n            }\n            if ( true && customSetter) {\n                customSetter();\n            }\n            if (setter) {\n                setter.call(obj, newVal);\n            }\n            else if (getter) {\n                // #7981: for accessor properties without setter\n                return;\n            }\n            else if (!shallow && isRef(value) && !isRef(newVal)) {\n                value.value = newVal;\n                return;\n            }\n            else {\n                val = newVal;\n            }\n            childOb = !shallow && observe(newVal, false, mock);\n            if (true) {\n                dep.notify({\n                    type: \"set\" /* TriggerOpTypes.SET */,\n                    target: obj,\n                    key: key,\n                    newValue: newVal,\n                    oldValue: value\n                });\n            }\n            else {}\n        }\n    });\n    return dep;\n}\nfunction set(target, key, val) {\n    if ( true && (isUndef(target) || isPrimitive(target))) {\n        warn$2(\"Cannot set reactive property on undefined, null, or primitive value: \".concat(target));\n    }\n    if (isReadonly(target)) {\n         true && warn$2(\"Set operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n        return;\n    }\n    var ob = target.__ob__;\n    if (isArray(target) && isValidArrayIndex(key)) {\n        target.length = Math.max(target.length, key);\n        target.splice(key, 1, val);\n        // when mocking for SSR, array methods are not hijacked\n        if (ob && !ob.shallow && ob.mock) {\n            observe(val, false, true);\n        }\n        return val;\n    }\n    if (key in target && !(key in Object.prototype)) {\n        target[key] = val;\n        return val;\n    }\n    if (target._isVue || (ob && ob.vmCount)) {\n         true &&\n            warn$2('Avoid adding reactive properties to a Vue instance or its root $data ' +\n                'at runtime - declare it upfront in the data option.');\n        return val;\n    }\n    if (!ob) {\n        target[key] = val;\n        return val;\n    }\n    defineReactive(ob.value, key, val, undefined, ob.shallow, ob.mock);\n    if (true) {\n        ob.dep.notify({\n            type: \"add\" /* TriggerOpTypes.ADD */,\n            target: target,\n            key: key,\n            newValue: val,\n            oldValue: undefined\n        });\n    }\n    else {}\n    return val;\n}\nfunction del(target, key) {\n    if ( true && (isUndef(target) || isPrimitive(target))) {\n        warn$2(\"Cannot delete reactive property on undefined, null, or primitive value: \".concat(target));\n    }\n    if (isArray(target) && isValidArrayIndex(key)) {\n        target.splice(key, 1);\n        return;\n    }\n    var ob = target.__ob__;\n    if (target._isVue || (ob && ob.vmCount)) {\n         true &&\n            warn$2('Avoid deleting properties on a Vue instance or its root $data ' +\n                '- just set it to null.');\n        return;\n    }\n    if (isReadonly(target)) {\n         true &&\n            warn$2(\"Delete operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n        return;\n    }\n    if (!hasOwn(target, key)) {\n        return;\n    }\n    delete target[key];\n    if (!ob) {\n        return;\n    }\n    if (true) {\n        ob.dep.notify({\n            type: \"delete\" /* TriggerOpTypes.DELETE */,\n            target: target,\n            key: key\n        });\n    }\n    else {}\n}\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray(value) {\n    for (var e = void 0, i = 0, l = value.length; i < l; i++) {\n        e = value[i];\n        if (e && e.__ob__) {\n            e.__ob__.dep.depend();\n        }\n        if (isArray(e)) {\n            dependArray(e);\n        }\n    }\n}\n\nfunction reactive(target) {\n    makeReactive(target, false);\n    return target;\n}\n/**\n * Return a shallowly-reactive copy of the original object, where only the root\n * level properties are reactive. It also does not auto-unwrap refs (even at the\n * root level).\n */\nfunction shallowReactive(target) {\n    makeReactive(target, true);\n    def(target, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, true);\n    return target;\n}\nfunction makeReactive(target, shallow) {\n    // if trying to observe a readonly proxy, return the readonly version.\n    if (!isReadonly(target)) {\n        if (true) {\n            if (isArray(target)) {\n                warn$2(\"Avoid using Array as root value for \".concat(shallow ? \"shallowReactive()\" : \"reactive()\", \" as it cannot be tracked in watch() or watchEffect(). Use \").concat(shallow ? \"shallowRef()\" : \"ref()\", \" instead. This is a Vue-2-only limitation.\"));\n            }\n            var existingOb = target && target.__ob__;\n            if (existingOb && existingOb.shallow !== shallow) {\n                warn$2(\"Target is already a \".concat(existingOb.shallow ? \"\" : \"non-\", \"shallow reactive object, and cannot be converted to \").concat(shallow ? \"\" : \"non-\", \"shallow.\"));\n            }\n        }\n        var ob = observe(target, shallow, isServerRendering() /* ssr mock reactivity */);\n        if ( true && !ob) {\n            if (target == null || isPrimitive(target)) {\n                warn$2(\"value cannot be made reactive: \".concat(String(target)));\n            }\n            if (isCollectionType(target)) {\n                warn$2(\"Vue 2 does not support reactive collection types such as Map or Set.\");\n            }\n        }\n    }\n}\nfunction isReactive(value) {\n    if (isReadonly(value)) {\n        return isReactive(value[\"__v_raw\" /* ReactiveFlags.RAW */]);\n    }\n    return !!(value && value.__ob__);\n}\nfunction isShallow(value) {\n    return !!(value && value.__v_isShallow);\n}\nfunction isReadonly(value) {\n    return !!(value && value.__v_isReadonly);\n}\nfunction isProxy(value) {\n    return isReactive(value) || isReadonly(value);\n}\nfunction toRaw(observed) {\n    var raw = observed && observed[\"__v_raw\" /* ReactiveFlags.RAW */];\n    return raw ? toRaw(raw) : observed;\n}\nfunction markRaw(value) {\n    // non-extensible objects won't be observed anyway\n    if (Object.isExtensible(value)) {\n        def(value, \"__v_skip\" /* ReactiveFlags.SKIP */, true);\n    }\n    return value;\n}\n/**\n * @internal\n */\nfunction isCollectionType(value) {\n    var type = toRawType(value);\n    return (type === 'Map' || type === 'WeakMap' || type === 'Set' || type === 'WeakSet');\n}\n\n/**\n * @internal\n */\nvar RefFlag = \"__v_isRef\";\nfunction isRef(r) {\n    return !!(r && r.__v_isRef === true);\n}\nfunction ref$1(value) {\n    return createRef(value, false);\n}\nfunction shallowRef(value) {\n    return createRef(value, true);\n}\nfunction createRef(rawValue, shallow) {\n    if (isRef(rawValue)) {\n        return rawValue;\n    }\n    var ref = {};\n    def(ref, RefFlag, true);\n    def(ref, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, shallow);\n    def(ref, 'dep', defineReactive(ref, 'value', rawValue, null, shallow, isServerRendering()));\n    return ref;\n}\nfunction triggerRef(ref) {\n    if ( true && !ref.dep) {\n        warn$2(\"received object is not a triggerable ref.\");\n    }\n    if (true) {\n        ref.dep &&\n            ref.dep.notify({\n                type: \"set\" /* TriggerOpTypes.SET */,\n                target: ref,\n                key: 'value'\n            });\n    }\n    else {}\n}\nfunction unref(ref) {\n    return isRef(ref) ? ref.value : ref;\n}\nfunction proxyRefs(objectWithRefs) {\n    if (isReactive(objectWithRefs)) {\n        return objectWithRefs;\n    }\n    var proxy = {};\n    var keys = Object.keys(objectWithRefs);\n    for (var i = 0; i < keys.length; i++) {\n        proxyWithRefUnwrap(proxy, objectWithRefs, keys[i]);\n    }\n    return proxy;\n}\nfunction proxyWithRefUnwrap(target, source, key) {\n    Object.defineProperty(target, key, {\n        enumerable: true,\n        configurable: true,\n        get: function () {\n            var val = source[key];\n            if (isRef(val)) {\n                return val.value;\n            }\n            else {\n                var ob = val && val.__ob__;\n                if (ob)\n                    ob.dep.depend();\n                return val;\n            }\n        },\n        set: function (value) {\n            var oldValue = source[key];\n            if (isRef(oldValue) && !isRef(value)) {\n                oldValue.value = value;\n            }\n            else {\n                source[key] = value;\n            }\n        }\n    });\n}\nfunction customRef(factory) {\n    var dep = new Dep();\n    var _a = factory(function () {\n        if (true) {\n            dep.depend({\n                target: ref,\n                type: \"get\" /* TrackOpTypes.GET */,\n                key: 'value'\n            });\n        }\n        else {}\n    }, function () {\n        if (true) {\n            dep.notify({\n                target: ref,\n                type: \"set\" /* TriggerOpTypes.SET */,\n                key: 'value'\n            });\n        }\n        else {}\n    }), get = _a.get, set = _a.set;\n    var ref = {\n        get value() {\n            return get();\n        },\n        set value(newVal) {\n            set(newVal);\n        }\n    };\n    def(ref, RefFlag, true);\n    return ref;\n}\nfunction toRefs(object) {\n    if ( true && !isReactive(object)) {\n        warn$2(\"toRefs() expects a reactive object but received a plain one.\");\n    }\n    var ret = isArray(object) ? new Array(object.length) : {};\n    for (var key in object) {\n        ret[key] = toRef(object, key);\n    }\n    return ret;\n}\nfunction toRef(object, key, defaultValue) {\n    var val = object[key];\n    if (isRef(val)) {\n        return val;\n    }\n    var ref = {\n        get value() {\n            var val = object[key];\n            return val === undefined ? defaultValue : val;\n        },\n        set value(newVal) {\n            object[key] = newVal;\n        }\n    };\n    def(ref, RefFlag, true);\n    return ref;\n}\n\nvar rawToReadonlyFlag = \"__v_rawToReadonly\";\nvar rawToShallowReadonlyFlag = \"__v_rawToShallowReadonly\";\nfunction readonly(target) {\n    return createReadonly(target, false);\n}\nfunction createReadonly(target, shallow) {\n    if (!isPlainObject(target)) {\n        if (true) {\n            if (isArray(target)) {\n                warn$2(\"Vue 2 does not support readonly arrays.\");\n            }\n            else if (isCollectionType(target)) {\n                warn$2(\"Vue 2 does not support readonly collection types such as Map or Set.\");\n            }\n            else {\n                warn$2(\"value cannot be made readonly: \".concat(typeof target));\n            }\n        }\n        return target;\n    }\n    if ( true && !Object.isExtensible(target)) {\n        warn$2(\"Vue 2 does not support creating readonly proxy for non-extensible object.\");\n    }\n    // already a readonly object\n    if (isReadonly(target)) {\n        return target;\n    }\n    // already has a readonly proxy\n    var existingFlag = shallow ? rawToShallowReadonlyFlag : rawToReadonlyFlag;\n    var existingProxy = target[existingFlag];\n    if (existingProxy) {\n        return existingProxy;\n    }\n    var proxy = Object.create(Object.getPrototypeOf(target));\n    def(target, existingFlag, proxy);\n    def(proxy, \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */, true);\n    def(proxy, \"__v_raw\" /* ReactiveFlags.RAW */, target);\n    if (isRef(target)) {\n        def(proxy, RefFlag, true);\n    }\n    if (shallow || isShallow(target)) {\n        def(proxy, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, true);\n    }\n    var keys = Object.keys(target);\n    for (var i = 0; i < keys.length; i++) {\n        defineReadonlyProperty(proxy, target, keys[i], shallow);\n    }\n    return proxy;\n}\nfunction defineReadonlyProperty(proxy, target, key, shallow) {\n    Object.defineProperty(proxy, key, {\n        enumerable: true,\n        configurable: true,\n        get: function () {\n            var val = target[key];\n            return shallow || !isPlainObject(val) ? val : readonly(val);\n        },\n        set: function () {\n             true &&\n                warn$2(\"Set operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n        }\n    });\n}\n/**\n * Returns a reactive-copy of the original object, where only the root level\n * properties are readonly, and does NOT unwrap refs nor recursively convert\n * returned properties.\n * This is used for creating the props proxy object for stateful components.\n */\nfunction shallowReadonly(target) {\n    return createReadonly(target, true);\n}\n\nfunction computed(getterOrOptions, debugOptions) {\n    var getter;\n    var setter;\n    var onlyGetter = isFunction(getterOrOptions);\n    if (onlyGetter) {\n        getter = getterOrOptions;\n        setter =  true\n            ? function () {\n                warn$2('Write operation failed: computed value is readonly');\n            }\n            : undefined;\n    }\n    else {\n        getter = getterOrOptions.get;\n        setter = getterOrOptions.set;\n    }\n    var watcher = isServerRendering()\n        ? null\n        : new Watcher(currentInstance, getter, noop, { lazy: true });\n    if ( true && watcher && debugOptions) {\n        watcher.onTrack = debugOptions.onTrack;\n        watcher.onTrigger = debugOptions.onTrigger;\n    }\n    var ref = {\n        // some libs rely on the presence effect for checking computed refs\n        // from normal refs, but the implementation doesn't matter\n        effect: watcher,\n        get value() {\n            if (watcher) {\n                if (watcher.dirty) {\n                    watcher.evaluate();\n                }\n                if (Dep.target) {\n                    if ( true && Dep.target.onTrack) {\n                        Dep.target.onTrack({\n                            effect: Dep.target,\n                            target: ref,\n                            type: \"get\" /* TrackOpTypes.GET */,\n                            key: 'value'\n                        });\n                    }\n                    watcher.depend();\n                }\n                return watcher.value;\n            }\n            else {\n                return getter();\n            }\n        },\n        set value(newVal) {\n            setter(newVal);\n        }\n    };\n    def(ref, RefFlag, true);\n    def(ref, \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */, onlyGetter);\n    return ref;\n}\n\nvar mark;\nvar measure;\nif (true) {\n    var perf_1 = inBrowser && window.performance;\n    /* istanbul ignore if */\n    if (perf_1 &&\n        // @ts-ignore\n        perf_1.mark &&\n        // @ts-ignore\n        perf_1.measure &&\n        // @ts-ignore\n        perf_1.clearMarks &&\n        // @ts-ignore\n        perf_1.clearMeasures) {\n        mark = function (tag) { return perf_1.mark(tag); };\n        measure = function (name, startTag, endTag) {\n            perf_1.measure(name, startTag, endTag);\n            perf_1.clearMarks(startTag);\n            perf_1.clearMarks(endTag);\n            // perf.clearMeasures(name)\n        };\n    }\n}\n\nvar normalizeEvent = cached(function (name) {\n    var passive = name.charAt(0) === '&';\n    name = passive ? name.slice(1) : name;\n    var once = name.charAt(0) === '~'; // Prefixed last, checked first\n    name = once ? name.slice(1) : name;\n    var capture = name.charAt(0) === '!';\n    name = capture ? name.slice(1) : name;\n    return {\n        name: name,\n        once: once,\n        capture: capture,\n        passive: passive\n    };\n});\nfunction createFnInvoker(fns, vm) {\n    function invoker() {\n        var fns = invoker.fns;\n        if (isArray(fns)) {\n            var cloned = fns.slice();\n            for (var i = 0; i < cloned.length; i++) {\n                invokeWithErrorHandling(cloned[i], null, arguments, vm, \"v-on handler\");\n            }\n        }\n        else {\n            // return handler return value for single handlers\n            return invokeWithErrorHandling(fns, null, arguments, vm, \"v-on handler\");\n        }\n    }\n    invoker.fns = fns;\n    return invoker;\n}\nfunction updateListeners(on, oldOn, add, remove, createOnceHandler, vm) {\n    var name, cur, old, event;\n    for (name in on) {\n        cur = on[name];\n        old = oldOn[name];\n        event = normalizeEvent(name);\n        if (isUndef(cur)) {\n             true &&\n                warn$2(\"Invalid handler for event \\\"\".concat(event.name, \"\\\": got \") + String(cur), vm);\n        }\n        else if (isUndef(old)) {\n            if (isUndef(cur.fns)) {\n                cur = on[name] = createFnInvoker(cur, vm);\n            }\n            if (isTrue(event.once)) {\n                cur = on[name] = createOnceHandler(event.name, cur, event.capture);\n            }\n            add(event.name, cur, event.capture, event.passive, event.params);\n        }\n        else if (cur !== old) {\n            old.fns = cur;\n            on[name] = old;\n        }\n    }\n    for (name in oldOn) {\n        if (isUndef(on[name])) {\n            event = normalizeEvent(name);\n            remove(event.name, oldOn[name], event.capture);\n        }\n    }\n}\n\nfunction mergeVNodeHook(def, hookKey, hook) {\n    if (def instanceof VNode) {\n        def = def.data.hook || (def.data.hook = {});\n    }\n    var invoker;\n    var oldHook = def[hookKey];\n    function wrappedHook() {\n        hook.apply(this, arguments);\n        // important: remove merged hook to ensure it's called only once\n        // and prevent memory leak\n        remove$2(invoker.fns, wrappedHook);\n    }\n    if (isUndef(oldHook)) {\n        // no existing hook\n        invoker = createFnInvoker([wrappedHook]);\n    }\n    else {\n        /* istanbul ignore if */\n        if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n            // already a merged invoker\n            invoker = oldHook;\n            invoker.fns.push(wrappedHook);\n        }\n        else {\n            // existing plain hook\n            invoker = createFnInvoker([oldHook, wrappedHook]);\n        }\n    }\n    invoker.merged = true;\n    def[hookKey] = invoker;\n}\n\nfunction extractPropsFromVNodeData(data, Ctor, tag) {\n    // we are only extracting raw values here.\n    // validation and default values are handled in the child\n    // component itself.\n    var propOptions = Ctor.options.props;\n    if (isUndef(propOptions)) {\n        return;\n    }\n    var res = {};\n    var attrs = data.attrs, props = data.props;\n    if (isDef(attrs) || isDef(props)) {\n        for (var key in propOptions) {\n            var altKey = hyphenate(key);\n            if (true) {\n                var keyInLowerCase = key.toLowerCase();\n                if (key !== keyInLowerCase && attrs && hasOwn(attrs, keyInLowerCase)) {\n                    tip(\"Prop \\\"\".concat(keyInLowerCase, \"\\\" is passed to component \") +\n                        \"\".concat(formatComponentName(\n                        // @ts-expect-error tag is string\n                        tag || Ctor), \", but the declared prop name is\") +\n                        \" \\\"\".concat(key, \"\\\". \") +\n                        \"Note that HTML attributes are case-insensitive and camelCased \" +\n                        \"props need to use their kebab-case equivalents when using in-DOM \" +\n                        \"templates. You should probably use \\\"\".concat(altKey, \"\\\" instead of \\\"\").concat(key, \"\\\".\"));\n                }\n            }\n            checkProp(res, props, key, altKey, true) ||\n                checkProp(res, attrs, key, altKey, false);\n        }\n    }\n    return res;\n}\nfunction checkProp(res, hash, key, altKey, preserve) {\n    if (isDef(hash)) {\n        if (hasOwn(hash, key)) {\n            res[key] = hash[key];\n            if (!preserve) {\n                delete hash[key];\n            }\n            return true;\n        }\n        else if (hasOwn(hash, altKey)) {\n            res[key] = hash[altKey];\n            if (!preserve) {\n                delete hash[altKey];\n            }\n            return true;\n        }\n    }\n    return false;\n}\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array<VNode>. There are\n// two cases where extra normalization is needed:\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren(children) {\n    for (var i = 0; i < children.length; i++) {\n        if (isArray(children[i])) {\n            return Array.prototype.concat.apply([], children);\n        }\n    }\n    return children;\n}\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g. <template>, <slot>, v-for, or when the children is provided by user\n// with hand-written render functions / JSX. In such cases a full normalization\n// is needed to cater to all possible types of children values.\nfunction normalizeChildren(children) {\n    return isPrimitive(children)\n        ? [createTextVNode(children)]\n        : isArray(children)\n            ? normalizeArrayChildren(children)\n            : undefined;\n}\nfunction isTextNode(node) {\n    return isDef(node) && isDef(node.text) && isFalse(node.isComment);\n}\nfunction normalizeArrayChildren(children, nestedIndex) {\n    var res = [];\n    var i, c, lastIndex, last;\n    for (i = 0; i < children.length; i++) {\n        c = children[i];\n        if (isUndef(c) || typeof c === 'boolean')\n            continue;\n        lastIndex = res.length - 1;\n        last = res[lastIndex];\n        //  nested\n        if (isArray(c)) {\n            if (c.length > 0) {\n                c = normalizeArrayChildren(c, \"\".concat(nestedIndex || '', \"_\").concat(i));\n                // merge adjacent text nodes\n                if (isTextNode(c[0]) && isTextNode(last)) {\n                    res[lastIndex] = createTextVNode(last.text + c[0].text);\n                    c.shift();\n                }\n                res.push.apply(res, c);\n            }\n        }\n        else if (isPrimitive(c)) {\n            if (isTextNode(last)) {\n                // merge adjacent text nodes\n                // this is necessary for SSR hydration because text nodes are\n                // essentially merged when rendered to HTML strings\n                res[lastIndex] = createTextVNode(last.text + c);\n            }\n            else if (c !== '') {\n                // convert primitive to vnode\n                res.push(createTextVNode(c));\n            }\n        }\n        else {\n            if (isTextNode(c) && isTextNode(last)) {\n                // merge adjacent text nodes\n                res[lastIndex] = createTextVNode(last.text + c.text);\n            }\n            else {\n                // default key for nested array children (likely generated by v-for)\n                if (isTrue(children._isVList) &&\n                    isDef(c.tag) &&\n                    isUndef(c.key) &&\n                    isDef(nestedIndex)) {\n                    c.key = \"__vlist\".concat(nestedIndex, \"_\").concat(i, \"__\");\n                }\n                res.push(c);\n            }\n        }\n    }\n    return res;\n}\n\nvar SIMPLE_NORMALIZE = 1;\nvar ALWAYS_NORMALIZE = 2;\n// wrapper function for providing a more flexible interface\n// without getting yelled at by flow\nfunction createElement$1(context, tag, data, children, normalizationType, alwaysNormalize) {\n    if (isArray(data) || isPrimitive(data)) {\n        normalizationType = children;\n        children = data;\n        data = undefined;\n    }\n    if (isTrue(alwaysNormalize)) {\n        normalizationType = ALWAYS_NORMALIZE;\n    }\n    return _createElement(context, tag, data, children, normalizationType);\n}\nfunction _createElement(context, tag, data, children, normalizationType) {\n    if (isDef(data) && isDef(data.__ob__)) {\n         true &&\n            warn$2(\"Avoid using observed data object as vnode data: \".concat(JSON.stringify(data), \"\\n\") + 'Always create fresh vnode data objects in each render!', context);\n        return createEmptyVNode();\n    }\n    // object syntax in v-bind\n    if (isDef(data) && isDef(data.is)) {\n        tag = data.is;\n    }\n    if (!tag) {\n        // in case of component :is set to falsy value\n        return createEmptyVNode();\n    }\n    // warn against non-primitive key\n    if ( true && isDef(data) && isDef(data.key) && !isPrimitive(data.key)) {\n        warn$2('Avoid using non-primitive value as key, ' +\n            'use string/number value instead.', context);\n    }\n    // support single function children as default scoped slot\n    if (isArray(children) && isFunction(children[0])) {\n        data = data || {};\n        data.scopedSlots = { default: children[0] };\n        children.length = 0;\n    }\n    if (normalizationType === ALWAYS_NORMALIZE) {\n        children = normalizeChildren(children);\n    }\n    else if (normalizationType === SIMPLE_NORMALIZE) {\n        children = simpleNormalizeChildren(children);\n    }\n    var vnode, ns;\n    if (typeof tag === 'string') {\n        var Ctor = void 0;\n        ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);\n        if (config.isReservedTag(tag)) {\n            // platform built-in elements\n            if ( true &&\n                isDef(data) &&\n                isDef(data.nativeOn) &&\n                data.tag !== 'component') {\n                warn$2(\"The .native modifier for v-on is only valid on components but it was used on <\".concat(tag, \">.\"), context);\n            }\n            vnode = new VNode(config.parsePlatformTagName(tag), data, children, undefined, undefined, context);\n        }\n        else if ((!data || !data.pre) &&\n            isDef((Ctor = resolveAsset(context.$options, 'components', tag)))) {\n            // component\n            vnode = createComponent(Ctor, data, context, children, tag);\n        }\n        else {\n            // unknown or unlisted namespaced elements\n            // check at runtime because it may get assigned a namespace when its\n            // parent normalizes children\n            vnode = new VNode(tag, data, children, undefined, undefined, context);\n        }\n    }\n    else {\n        // direct component options / constructor\n        vnode = createComponent(tag, data, context, children);\n    }\n    if (isArray(vnode)) {\n        return vnode;\n    }\n    else if (isDef(vnode)) {\n        if (isDef(ns))\n            applyNS(vnode, ns);\n        if (isDef(data))\n            registerDeepBindings(data);\n        return vnode;\n    }\n    else {\n        return createEmptyVNode();\n    }\n}\nfunction applyNS(vnode, ns, force) {\n    vnode.ns = ns;\n    if (vnode.tag === 'foreignObject') {\n        // use default namespace inside foreignObject\n        ns = undefined;\n        force = true;\n    }\n    if (isDef(vnode.children)) {\n        for (var i = 0, l = vnode.children.length; i < l; i++) {\n            var child = vnode.children[i];\n            if (isDef(child.tag) &&\n                (isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {\n                applyNS(child, ns, force);\n            }\n        }\n    }\n}\n// ref #5318\n// necessary to ensure parent re-render when deep bindings like :style and\n// :class are used on slot nodes\nfunction registerDeepBindings(data) {\n    if (isObject(data.style)) {\n        traverse(data.style);\n    }\n    if (isObject(data.class)) {\n        traverse(data.class);\n    }\n}\n\n/**\n * Runtime helper for rendering v-for lists.\n */\nfunction renderList(val, render) {\n    var ret = null, i, l, keys, key;\n    if (isArray(val) || typeof val === 'string') {\n        ret = new Array(val.length);\n        for (i = 0, l = val.length; i < l; i++) {\n            ret[i] = render(val[i], i);\n        }\n    }\n    else if (typeof val === 'number') {\n        ret = new Array(val);\n        for (i = 0; i < val; i++) {\n            ret[i] = render(i + 1, i);\n        }\n    }\n    else if (isObject(val)) {\n        if (hasSymbol && val[Symbol.iterator]) {\n            ret = [];\n            var iterator = val[Symbol.iterator]();\n            var result = iterator.next();\n            while (!result.done) {\n                ret.push(render(result.value, ret.length));\n                result = iterator.next();\n            }\n        }\n        else {\n            keys = Object.keys(val);\n            ret = new Array(keys.length);\n            for (i = 0, l = keys.length; i < l; i++) {\n                key = keys[i];\n                ret[i] = render(val[key], key, i);\n            }\n        }\n    }\n    if (!isDef(ret)) {\n        ret = [];\n    }\n    ret._isVList = true;\n    return ret;\n}\n\n/**\n * Runtime helper for rendering <slot>\n */\nfunction renderSlot(name, fallbackRender, props, bindObject) {\n    var scopedSlotFn = this.$scopedSlots[name];\n    var nodes;\n    if (scopedSlotFn) {\n        // scoped slot\n        props = props || {};\n        if (bindObject) {\n            if ( true && !isObject(bindObject)) {\n                warn$2('slot v-bind without argument expects an Object', this);\n            }\n            props = extend(extend({}, bindObject), props);\n        }\n        nodes =\n            scopedSlotFn(props) ||\n                (isFunction(fallbackRender) ? fallbackRender() : fallbackRender);\n    }\n    else {\n        nodes =\n            this.$slots[name] ||\n                (isFunction(fallbackRender) ? fallbackRender() : fallbackRender);\n    }\n    var target = props && props.slot;\n    if (target) {\n        return this.$createElement('template', { slot: target }, nodes);\n    }\n    else {\n        return nodes;\n    }\n}\n\n/**\n * Runtime helper for resolving filters\n */\nfunction resolveFilter(id) {\n    return resolveAsset(this.$options, 'filters', id, true) || identity;\n}\n\nfunction isKeyNotMatch(expect, actual) {\n    if (isArray(expect)) {\n        return expect.indexOf(actual) === -1;\n    }\n    else {\n        return expect !== actual;\n    }\n}\n/**\n * Runtime helper for checking keyCodes from config.\n * exposed as Vue.prototype._k\n * passing in eventKeyName as last argument separately for backwards compat\n */\nfunction checkKeyCodes(eventKeyCode, key, builtInKeyCode, eventKeyName, builtInKeyName) {\n    var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;\n    if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {\n        return isKeyNotMatch(builtInKeyName, eventKeyName);\n    }\n    else if (mappedKeyCode) {\n        return isKeyNotMatch(mappedKeyCode, eventKeyCode);\n    }\n    else if (eventKeyName) {\n        return hyphenate(eventKeyName) !== key;\n    }\n    return eventKeyCode === undefined;\n}\n\n/**\n * Runtime helper for merging v-bind=\"object\" into a VNode's data.\n */\nfunction bindObjectProps(data, tag, value, asProp, isSync) {\n    if (value) {\n        if (!isObject(value)) {\n             true &&\n                warn$2('v-bind without argument expects an Object or Array value', this);\n        }\n        else {\n            if (isArray(value)) {\n                value = toObject(value);\n            }\n            var hash = void 0;\n            var _loop_1 = function (key) {\n                if (key === 'class' || key === 'style' || isReservedAttribute(key)) {\n                    hash = data;\n                }\n                else {\n                    var type = data.attrs && data.attrs.type;\n                    hash =\n                        asProp || config.mustUseProp(tag, type, key)\n                            ? data.domProps || (data.domProps = {})\n                            : data.attrs || (data.attrs = {});\n                }\n                var camelizedKey = camelize(key);\n                var hyphenatedKey = hyphenate(key);\n                if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {\n                    hash[key] = value[key];\n                    if (isSync) {\n                        var on = data.on || (data.on = {});\n                        on[\"update:\".concat(key)] = function ($event) {\n                            value[key] = $event;\n                        };\n                    }\n                }\n            };\n            for (var key in value) {\n                _loop_1(key);\n            }\n        }\n    }\n    return data;\n}\n\n/**\n * Runtime helper for rendering static trees.\n */\nfunction renderStatic(index, isInFor) {\n    var cached = this._staticTrees || (this._staticTrees = []);\n    var tree = cached[index];\n    // if has already-rendered static tree and not inside v-for,\n    // we can reuse the same tree.\n    if (tree && !isInFor) {\n        return tree;\n    }\n    // otherwise, render a fresh tree.\n    tree = cached[index] = this.$options.staticRenderFns[index].call(this._renderProxy, this._c, this // for render fns generated for functional component templates\n    );\n    markStatic$1(tree, \"__static__\".concat(index), false);\n    return tree;\n}\n/**\n * Runtime helper for v-once.\n * Effectively it means marking the node as static with a unique key.\n */\nfunction markOnce(tree, index, key) {\n    markStatic$1(tree, \"__once__\".concat(index).concat(key ? \"_\".concat(key) : \"\"), true);\n    return tree;\n}\nfunction markStatic$1(tree, key, isOnce) {\n    if (isArray(tree)) {\n        for (var i = 0; i < tree.length; i++) {\n            if (tree[i] && typeof tree[i] !== 'string') {\n                markStaticNode(tree[i], \"\".concat(key, \"_\").concat(i), isOnce);\n            }\n        }\n    }\n    else {\n        markStaticNode(tree, key, isOnce);\n    }\n}\nfunction markStaticNode(node, key, isOnce) {\n    node.isStatic = true;\n    node.key = key;\n    node.isOnce = isOnce;\n}\n\nfunction bindObjectListeners(data, value) {\n    if (value) {\n        if (!isPlainObject(value)) {\n             true && warn$2('v-on without argument expects an Object value', this);\n        }\n        else {\n            var on = (data.on = data.on ? extend({}, data.on) : {});\n            for (var key in value) {\n                var existing = on[key];\n                var ours = value[key];\n                on[key] = existing ? [].concat(existing, ours) : ours;\n            }\n        }\n    }\n    return data;\n}\n\nfunction resolveScopedSlots(fns, res, \n// the following are added in 2.6\nhasDynamicKeys, contentHashKey) {\n    res = res || { $stable: !hasDynamicKeys };\n    for (var i = 0; i < fns.length; i++) {\n        var slot = fns[i];\n        if (isArray(slot)) {\n            resolveScopedSlots(slot, res, hasDynamicKeys);\n        }\n        else if (slot) {\n            // marker for reverse proxying v-slot without scope on this.$slots\n            // @ts-expect-error\n            if (slot.proxy) {\n                // @ts-expect-error\n                slot.fn.proxy = true;\n            }\n            res[slot.key] = slot.fn;\n        }\n    }\n    if (contentHashKey) {\n        res.$key = contentHashKey;\n    }\n    return res;\n}\n\n// helper to process dynamic keys for dynamic arguments in v-bind and v-on.\nfunction bindDynamicKeys(baseObj, values) {\n    for (var i = 0; i < values.length; i += 2) {\n        var key = values[i];\n        if (typeof key === 'string' && key) {\n            baseObj[values[i]] = values[i + 1];\n        }\n        else if ( true && key !== '' && key !== null) {\n            // null is a special value for explicitly removing a binding\n            warn$2(\"Invalid value for dynamic directive argument (expected string or null): \".concat(key), this);\n        }\n    }\n    return baseObj;\n}\n// helper to dynamically append modifier runtime markers to event names.\n// ensure only append when value is already string, otherwise it will be cast\n// to string and cause the type check to miss.\nfunction prependModifier(value, symbol) {\n    return typeof value === 'string' ? symbol + value : value;\n}\n\nfunction installRenderHelpers(target) {\n    target._o = markOnce;\n    target._n = toNumber;\n    target._s = toString;\n    target._l = renderList;\n    target._t = renderSlot;\n    target._q = looseEqual;\n    target._i = looseIndexOf;\n    target._m = renderStatic;\n    target._f = resolveFilter;\n    target._k = checkKeyCodes;\n    target._b = bindObjectProps;\n    target._v = createTextVNode;\n    target._e = createEmptyVNode;\n    target._u = resolveScopedSlots;\n    target._g = bindObjectListeners;\n    target._d = bindDynamicKeys;\n    target._p = prependModifier;\n}\n\n/**\n * Runtime helper for resolving raw children VNodes into a slot object.\n */\nfunction resolveSlots(children, context) {\n    if (!children || !children.length) {\n        return {};\n    }\n    var slots = {};\n    for (var i = 0, l = children.length; i < l; i++) {\n        var child = children[i];\n        var data = child.data;\n        // remove slot attribute if the node is resolved as a Vue slot node\n        if (data && data.attrs && data.attrs.slot) {\n            delete data.attrs.slot;\n        }\n        // named slots should only be respected if the vnode was rendered in the\n        // same context.\n        if ((child.context === context || child.fnContext === context) &&\n            data &&\n            data.slot != null) {\n            var name_1 = data.slot;\n            var slot = slots[name_1] || (slots[name_1] = []);\n            if (child.tag === 'template') {\n                slot.push.apply(slot, child.children || []);\n            }\n            else {\n                slot.push(child);\n            }\n        }\n        else {\n            (slots.default || (slots.default = [])).push(child);\n        }\n    }\n    // ignore slots that contains only whitespace\n    for (var name_2 in slots) {\n        if (slots[name_2].every(isWhitespace)) {\n            delete slots[name_2];\n        }\n    }\n    return slots;\n}\nfunction isWhitespace(node) {\n    return (node.isComment && !node.asyncFactory) || node.text === ' ';\n}\n\nfunction isAsyncPlaceholder(node) {\n    // @ts-expect-error not really boolean type\n    return node.isComment && node.asyncFactory;\n}\n\nfunction normalizeScopedSlots(ownerVm, scopedSlots, normalSlots, prevScopedSlots) {\n    var res;\n    var hasNormalSlots = Object.keys(normalSlots).length > 0;\n    var isStable = scopedSlots ? !!scopedSlots.$stable : !hasNormalSlots;\n    var key = scopedSlots && scopedSlots.$key;\n    if (!scopedSlots) {\n        res = {};\n    }\n    else if (scopedSlots._normalized) {\n        // fast path 1: child component re-render only, parent did not change\n        return scopedSlots._normalized;\n    }\n    else if (isStable &&\n        prevScopedSlots &&\n        prevScopedSlots !== emptyObject &&\n        key === prevScopedSlots.$key &&\n        !hasNormalSlots &&\n        !prevScopedSlots.$hasNormal) {\n        // fast path 2: stable scoped slots w/ no normal slots to proxy,\n        // only need to normalize once\n        return prevScopedSlots;\n    }\n    else {\n        res = {};\n        for (var key_1 in scopedSlots) {\n            if (scopedSlots[key_1] && key_1[0] !== '$') {\n                res[key_1] = normalizeScopedSlot(ownerVm, normalSlots, key_1, scopedSlots[key_1]);\n            }\n        }\n    }\n    // expose normal slots on scopedSlots\n    for (var key_2 in normalSlots) {\n        if (!(key_2 in res)) {\n            res[key_2] = proxyNormalSlot(normalSlots, key_2);\n        }\n    }\n    // avoriaz seems to mock a non-extensible $scopedSlots object\n    // and when that is passed down this would cause an error\n    if (scopedSlots && Object.isExtensible(scopedSlots)) {\n        scopedSlots._normalized = res;\n    }\n    def(res, '$stable', isStable);\n    def(res, '$key', key);\n    def(res, '$hasNormal', hasNormalSlots);\n    return res;\n}\nfunction normalizeScopedSlot(vm, normalSlots, key, fn) {\n    var normalized = function () {\n        var cur = currentInstance;\n        setCurrentInstance(vm);\n        var res = arguments.length ? fn.apply(null, arguments) : fn({});\n        res =\n            res && typeof res === 'object' && !isArray(res)\n                ? [res] // single vnode\n                : normalizeChildren(res);\n        var vnode = res && res[0];\n        setCurrentInstance(cur);\n        return res &&\n            (!vnode ||\n                (res.length === 1 && vnode.isComment && !isAsyncPlaceholder(vnode))) // #9658, #10391\n            ? undefined\n            : res;\n    };\n    // this is a slot using the new v-slot syntax without scope. although it is\n    // compiled as a scoped slot, render fn users would expect it to be present\n    // on this.$slots because the usage is semantically a normal slot.\n    if (fn.proxy) {\n        Object.defineProperty(normalSlots, key, {\n            get: normalized,\n            enumerable: true,\n            configurable: true\n        });\n    }\n    return normalized;\n}\nfunction proxyNormalSlot(slots, key) {\n    return function () { return slots[key]; };\n}\n\nfunction initSetup(vm) {\n    var options = vm.$options;\n    var setup = options.setup;\n    if (setup) {\n        var ctx = (vm._setupContext = createSetupContext(vm));\n        setCurrentInstance(vm);\n        pushTarget();\n        var setupResult = invokeWithErrorHandling(setup, null, [vm._props || shallowReactive({}), ctx], vm, \"setup\");\n        popTarget();\n        setCurrentInstance();\n        if (isFunction(setupResult)) {\n            // render function\n            // @ts-ignore\n            options.render = setupResult;\n        }\n        else if (isObject(setupResult)) {\n            // bindings\n            if ( true && setupResult instanceof VNode) {\n                warn$2(\"setup() should not return VNodes directly - \" +\n                    \"return a render function instead.\");\n            }\n            vm._setupState = setupResult;\n            // __sfc indicates compiled bindings from <script setup>\n            if (!setupResult.__sfc) {\n                for (var key in setupResult) {\n                    if (!isReserved(key)) {\n                        proxyWithRefUnwrap(vm, setupResult, key);\n                    }\n                    else if (true) {\n                        warn$2(\"Avoid using variables that start with _ or $ in setup().\");\n                    }\n                }\n            }\n            else {\n                // exposed for compiled render fn\n                var proxy = (vm._setupProxy = {});\n                for (var key in setupResult) {\n                    if (key !== '__sfc') {\n                        proxyWithRefUnwrap(proxy, setupResult, key);\n                    }\n                }\n            }\n        }\n        else if ( true && setupResult !== undefined) {\n            warn$2(\"setup() should return an object. Received: \".concat(setupResult === null ? 'null' : typeof setupResult));\n        }\n    }\n}\nfunction createSetupContext(vm) {\n    var exposeCalled = false;\n    return {\n        get attrs() {\n            if (!vm._attrsProxy) {\n                var proxy = (vm._attrsProxy = {});\n                def(proxy, '_v_attr_proxy', true);\n                syncSetupProxy(proxy, vm.$attrs, emptyObject, vm, '$attrs');\n            }\n            return vm._attrsProxy;\n        },\n        get listeners() {\n            if (!vm._listenersProxy) {\n                var proxy = (vm._listenersProxy = {});\n                syncSetupProxy(proxy, vm.$listeners, emptyObject, vm, '$listeners');\n            }\n            return vm._listenersProxy;\n        },\n        get slots() {\n            return initSlotsProxy(vm);\n        },\n        emit: bind$1(vm.$emit, vm),\n        expose: function (exposed) {\n            if (true) {\n                if (exposeCalled) {\n                    warn$2(\"expose() should be called only once per setup().\", vm);\n                }\n                exposeCalled = true;\n            }\n            if (exposed) {\n                Object.keys(exposed).forEach(function (key) {\n                    return proxyWithRefUnwrap(vm, exposed, key);\n                });\n            }\n        }\n    };\n}\nfunction syncSetupProxy(to, from, prev, instance, type) {\n    var changed = false;\n    for (var key in from) {\n        if (!(key in to)) {\n            changed = true;\n            defineProxyAttr(to, key, instance, type);\n        }\n        else if (from[key] !== prev[key]) {\n            changed = true;\n        }\n    }\n    for (var key in to) {\n        if (!(key in from)) {\n            changed = true;\n            delete to[key];\n        }\n    }\n    return changed;\n}\nfunction defineProxyAttr(proxy, key, instance, type) {\n    Object.defineProperty(proxy, key, {\n        enumerable: true,\n        configurable: true,\n        get: function () {\n            return instance[type][key];\n        }\n    });\n}\nfunction initSlotsProxy(vm) {\n    if (!vm._slotsProxy) {\n        syncSetupSlots((vm._slotsProxy = {}), vm.$scopedSlots);\n    }\n    return vm._slotsProxy;\n}\nfunction syncSetupSlots(to, from) {\n    for (var key in from) {\n        to[key] = from[key];\n    }\n    for (var key in to) {\n        if (!(key in from)) {\n            delete to[key];\n        }\n    }\n}\n/**\n * @internal use manual type def because public setup context type relies on\n * legacy VNode types\n */\nfunction useSlots() {\n    return getContext().slots;\n}\n/**\n * @internal use manual type def because public setup context type relies on\n * legacy VNode types\n */\nfunction useAttrs() {\n    return getContext().attrs;\n}\n/**\n * Vue 2 only\n * @internal use manual type def because public setup context type relies on\n * legacy VNode types\n */\nfunction useListeners() {\n    return getContext().listeners;\n}\nfunction getContext() {\n    if ( true && !currentInstance) {\n        warn$2(\"useContext() called without active instance.\");\n    }\n    var vm = currentInstance;\n    return vm._setupContext || (vm._setupContext = createSetupContext(vm));\n}\n/**\n * Runtime helper for merging default declarations. Imported by compiled code\n * only.\n * @internal\n */\nfunction mergeDefaults(raw, defaults) {\n    var props = isArray(raw)\n        ? raw.reduce(function (normalized, p) { return ((normalized[p] = {}), normalized); }, {})\n        : raw;\n    for (var key in defaults) {\n        var opt = props[key];\n        if (opt) {\n            if (isArray(opt) || isFunction(opt)) {\n                props[key] = { type: opt, default: defaults[key] };\n            }\n            else {\n                opt.default = defaults[key];\n            }\n        }\n        else if (opt === null) {\n            props[key] = { default: defaults[key] };\n        }\n        else if (true) {\n            warn$2(\"props default key \\\"\".concat(key, \"\\\" has no corresponding declaration.\"));\n        }\n    }\n    return props;\n}\n\nfunction initRender(vm) {\n    vm._vnode = null; // the root of the child tree\n    vm._staticTrees = null; // v-once cached trees\n    var options = vm.$options;\n    var parentVnode = (vm.$vnode = options._parentVnode); // the placeholder node in parent tree\n    var renderContext = parentVnode && parentVnode.context;\n    vm.$slots = resolveSlots(options._renderChildren, renderContext);\n    vm.$scopedSlots = parentVnode\n        ? normalizeScopedSlots(vm.$parent, parentVnode.data.scopedSlots, vm.$slots)\n        : emptyObject;\n    // bind the createElement fn to this instance\n    // so that we get proper render context inside it.\n    // args order: tag, data, children, normalizationType, alwaysNormalize\n    // internal version is used by render functions compiled from templates\n    // @ts-expect-error\n    vm._c = function (a, b, c, d) { return createElement$1(vm, a, b, c, d, false); };\n    // normalization is always applied for the public version, used in\n    // user-written render functions.\n    // @ts-expect-error\n    vm.$createElement = function (a, b, c, d) { return createElement$1(vm, a, b, c, d, true); };\n    // $attrs & $listeners are exposed for easier HOC creation.\n    // they need to be reactive so that HOCs using them are always updated\n    var parentData = parentVnode && parentVnode.data;\n    /* istanbul ignore else */\n    if (true) {\n        defineReactive(vm, '$attrs', (parentData && parentData.attrs) || emptyObject, function () {\n            !isUpdatingChildComponent && warn$2(\"$attrs is readonly.\", vm);\n        }, true);\n        defineReactive(vm, '$listeners', options._parentListeners || emptyObject, function () {\n            !isUpdatingChildComponent && warn$2(\"$listeners is readonly.\", vm);\n        }, true);\n    }\n    else {}\n}\nvar currentRenderingInstance = null;\nfunction renderMixin(Vue) {\n    // install runtime convenience helpers\n    installRenderHelpers(Vue.prototype);\n    Vue.prototype.$nextTick = function (fn) {\n        return nextTick(fn, this);\n    };\n    Vue.prototype._render = function () {\n        var vm = this;\n        var _a = vm.$options, render = _a.render, _parentVnode = _a._parentVnode;\n        if (_parentVnode && vm._isMounted) {\n            vm.$scopedSlots = normalizeScopedSlots(vm.$parent, _parentVnode.data.scopedSlots, vm.$slots, vm.$scopedSlots);\n            if (vm._slotsProxy) {\n                syncSetupSlots(vm._slotsProxy, vm.$scopedSlots);\n            }\n        }\n        // set parent vnode. this allows render functions to have access\n        // to the data on the placeholder node.\n        vm.$vnode = _parentVnode;\n        // render self\n        var vnode;\n        try {\n            // There's no need to maintain a stack because all render fns are called\n            // separately from one another. Nested component's render fns are called\n            // when parent component is patched.\n            setCurrentInstance(vm);\n            currentRenderingInstance = vm;\n            vnode = render.call(vm._renderProxy, vm.$createElement);\n        }\n        catch (e) {\n            handleError(e, vm, \"render\");\n            // return error render result,\n            // or previous vnode to prevent render error causing blank component\n            /* istanbul ignore else */\n            if ( true && vm.$options.renderError) {\n                try {\n                    vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);\n                }\n                catch (e) {\n                    handleError(e, vm, \"renderError\");\n                    vnode = vm._vnode;\n                }\n            }\n            else {\n                vnode = vm._vnode;\n            }\n        }\n        finally {\n            currentRenderingInstance = null;\n            setCurrentInstance();\n        }\n        // if the returned array contains only a single node, allow it\n        if (isArray(vnode) && vnode.length === 1) {\n            vnode = vnode[0];\n        }\n        // return empty vnode in case the render function errored out\n        if (!(vnode instanceof VNode)) {\n            if ( true && isArray(vnode)) {\n                warn$2('Multiple root nodes returned from render function. Render function ' +\n                    'should return a single root node.', vm);\n            }\n            vnode = createEmptyVNode();\n        }\n        // set parent\n        vnode.parent = _parentVnode;\n        return vnode;\n    };\n}\n\nfunction ensureCtor(comp, base) {\n    if (comp.__esModule || (hasSymbol && comp[Symbol.toStringTag] === 'Module')) {\n        comp = comp.default;\n    }\n    return isObject(comp) ? base.extend(comp) : comp;\n}\nfunction createAsyncPlaceholder(factory, data, context, children, tag) {\n    var node = createEmptyVNode();\n    node.asyncFactory = factory;\n    node.asyncMeta = { data: data, context: context, children: children, tag: tag };\n    return node;\n}\nfunction resolveAsyncComponent(factory, baseCtor) {\n    if (isTrue(factory.error) && isDef(factory.errorComp)) {\n        return factory.errorComp;\n    }\n    if (isDef(factory.resolved)) {\n        return factory.resolved;\n    }\n    var owner = currentRenderingInstance;\n    if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {\n        // already pending\n        factory.owners.push(owner);\n    }\n    if (isTrue(factory.loading) && isDef(factory.loadingComp)) {\n        return factory.loadingComp;\n    }\n    if (owner && !isDef(factory.owners)) {\n        var owners_1 = (factory.owners = [owner]);\n        var sync_1 = true;\n        var timerLoading_1 = null;\n        var timerTimeout_1 = null;\n        owner.$on('hook:destroyed', function () { return remove$2(owners_1, owner); });\n        var forceRender_1 = function (renderCompleted) {\n            for (var i = 0, l = owners_1.length; i < l; i++) {\n                owners_1[i].$forceUpdate();\n            }\n            if (renderCompleted) {\n                owners_1.length = 0;\n                if (timerLoading_1 !== null) {\n                    clearTimeout(timerLoading_1);\n                    timerLoading_1 = null;\n                }\n                if (timerTimeout_1 !== null) {\n                    clearTimeout(timerTimeout_1);\n                    timerTimeout_1 = null;\n                }\n            }\n        };\n        var resolve = once(function (res) {\n            // cache resolved\n            factory.resolved = ensureCtor(res, baseCtor);\n            // invoke callbacks only if this is not a synchronous resolve\n            // (async resolves are shimmed as synchronous during SSR)\n            if (!sync_1) {\n                forceRender_1(true);\n            }\n            else {\n                owners_1.length = 0;\n            }\n        });\n        var reject_1 = once(function (reason) {\n             true &&\n                warn$2(\"Failed to resolve async component: \".concat(String(factory)) +\n                    (reason ? \"\\nReason: \".concat(reason) : ''));\n            if (isDef(factory.errorComp)) {\n                factory.error = true;\n                forceRender_1(true);\n            }\n        });\n        var res_1 = factory(resolve, reject_1);\n        if (isObject(res_1)) {\n            if (isPromise(res_1)) {\n                // () => Promise\n                if (isUndef(factory.resolved)) {\n                    res_1.then(resolve, reject_1);\n                }\n            }\n            else if (isPromise(res_1.component)) {\n                res_1.component.then(resolve, reject_1);\n                if (isDef(res_1.error)) {\n                    factory.errorComp = ensureCtor(res_1.error, baseCtor);\n                }\n                if (isDef(res_1.loading)) {\n                    factory.loadingComp = ensureCtor(res_1.loading, baseCtor);\n                    if (res_1.delay === 0) {\n                        factory.loading = true;\n                    }\n                    else {\n                        // @ts-expect-error NodeJS timeout type\n                        timerLoading_1 = setTimeout(function () {\n                            timerLoading_1 = null;\n                            if (isUndef(factory.resolved) && isUndef(factory.error)) {\n                                factory.loading = true;\n                                forceRender_1(false);\n                            }\n                        }, res_1.delay || 200);\n                    }\n                }\n                if (isDef(res_1.timeout)) {\n                    // @ts-expect-error NodeJS timeout type\n                    timerTimeout_1 = setTimeout(function () {\n                        timerTimeout_1 = null;\n                        if (isUndef(factory.resolved)) {\n                            reject_1( true ? \"timeout (\".concat(res_1.timeout, \"ms)\") : undefined);\n                        }\n                    }, res_1.timeout);\n                }\n            }\n        }\n        sync_1 = false;\n        // return in case resolved synchronously\n        return factory.loading ? factory.loadingComp : factory.resolved;\n    }\n}\n\nfunction getFirstComponentChild(children) {\n    if (isArray(children)) {\n        for (var i = 0; i < children.length; i++) {\n            var c = children[i];\n            if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {\n                return c;\n            }\n        }\n    }\n}\n\nfunction initEvents(vm) {\n    vm._events = Object.create(null);\n    vm._hasHookEvent = false;\n    // init parent attached events\n    var listeners = vm.$options._parentListeners;\n    if (listeners) {\n        updateComponentListeners(vm, listeners);\n    }\n}\nvar target$1;\nfunction add$1(event, fn) {\n    target$1.$on(event, fn);\n}\nfunction remove$1(event, fn) {\n    target$1.$off(event, fn);\n}\nfunction createOnceHandler$1(event, fn) {\n    var _target = target$1;\n    return function onceHandler() {\n        var res = fn.apply(null, arguments);\n        if (res !== null) {\n            _target.$off(event, onceHandler);\n        }\n    };\n}\nfunction updateComponentListeners(vm, listeners, oldListeners) {\n    target$1 = vm;\n    updateListeners(listeners, oldListeners || {}, add$1, remove$1, createOnceHandler$1, vm);\n    target$1 = undefined;\n}\nfunction eventsMixin(Vue) {\n    var hookRE = /^hook:/;\n    Vue.prototype.$on = function (event, fn) {\n        var vm = this;\n        if (isArray(event)) {\n            for (var i = 0, l = event.length; i < l; i++) {\n                vm.$on(event[i], fn);\n            }\n        }\n        else {\n            (vm._events[event] || (vm._events[event] = [])).push(fn);\n            // optimize hook:event cost by using a boolean flag marked at registration\n            // instead of a hash lookup\n            if (hookRE.test(event)) {\n                vm._hasHookEvent = true;\n            }\n        }\n        return vm;\n    };\n    Vue.prototype.$once = function (event, fn) {\n        var vm = this;\n        function on() {\n            vm.$off(event, on);\n            fn.apply(vm, arguments);\n        }\n        on.fn = fn;\n        vm.$on(event, on);\n        return vm;\n    };\n    Vue.prototype.$off = function (event, fn) {\n        var vm = this;\n        // all\n        if (!arguments.length) {\n            vm._events = Object.create(null);\n            return vm;\n        }\n        // array of events\n        if (isArray(event)) {\n            for (var i_1 = 0, l = event.length; i_1 < l; i_1++) {\n                vm.$off(event[i_1], fn);\n            }\n            return vm;\n        }\n        // specific event\n        var cbs = vm._events[event];\n        if (!cbs) {\n            return vm;\n        }\n        if (!fn) {\n            vm._events[event] = null;\n            return vm;\n        }\n        // specific handler\n        var cb;\n        var i = cbs.length;\n        while (i--) {\n            cb = cbs[i];\n            if (cb === fn || cb.fn === fn) {\n                cbs.splice(i, 1);\n                break;\n            }\n        }\n        return vm;\n    };\n    Vue.prototype.$emit = function (event) {\n        var vm = this;\n        if (true) {\n            var lowerCaseEvent = event.toLowerCase();\n            if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {\n                tip(\"Event \\\"\".concat(lowerCaseEvent, \"\\\" is emitted in component \") +\n                    \"\".concat(formatComponentName(vm), \" but the handler is registered for \\\"\").concat(event, \"\\\". \") +\n                    \"Note that HTML attributes are case-insensitive and you cannot use \" +\n                    \"v-on to listen to camelCase events when using in-DOM templates. \" +\n                    \"You should probably use \\\"\".concat(hyphenate(event), \"\\\" instead of \\\"\").concat(event, \"\\\".\"));\n            }\n        }\n        var cbs = vm._events[event];\n        if (cbs) {\n            cbs = cbs.length > 1 ? toArray(cbs) : cbs;\n            var args = toArray(arguments, 1);\n            var info = \"event handler for \\\"\".concat(event, \"\\\"\");\n            for (var i = 0, l = cbs.length; i < l; i++) {\n                invokeWithErrorHandling(cbs[i], vm, args, vm, info);\n            }\n        }\n        return vm;\n    };\n}\n\nvar activeInstance = null;\nvar isUpdatingChildComponent = false;\nfunction setActiveInstance(vm) {\n    var prevActiveInstance = activeInstance;\n    activeInstance = vm;\n    return function () {\n        activeInstance = prevActiveInstance;\n    };\n}\nfunction initLifecycle(vm) {\n    var options = vm.$options;\n    // locate first non-abstract parent\n    var parent = options.parent;\n    if (parent && !options.abstract) {\n        while (parent.$options.abstract && parent.$parent) {\n            parent = parent.$parent;\n        }\n        parent.$children.push(vm);\n    }\n    vm.$parent = parent;\n    vm.$root = parent ? parent.$root : vm;\n    vm.$children = [];\n    vm.$refs = {};\n    vm._provided = parent ? parent._provided : Object.create(null);\n    vm._watcher = null;\n    vm._inactive = null;\n    vm._directInactive = false;\n    vm._isMounted = false;\n    vm._isDestroyed = false;\n    vm._isBeingDestroyed = false;\n}\nfunction lifecycleMixin(Vue) {\n    Vue.prototype._update = function (vnode, hydrating) {\n        var vm = this;\n        var prevEl = vm.$el;\n        var prevVnode = vm._vnode;\n        var restoreActiveInstance = setActiveInstance(vm);\n        vm._vnode = vnode;\n        // Vue.prototype.__patch__ is injected in entry points\n        // based on the rendering backend used.\n        if (!prevVnode) {\n            // initial render\n            vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);\n        }\n        else {\n            // updates\n            vm.$el = vm.__patch__(prevVnode, vnode);\n        }\n        restoreActiveInstance();\n        // update __vue__ reference\n        if (prevEl) {\n            prevEl.__vue__ = null;\n        }\n        if (vm.$el) {\n            vm.$el.__vue__ = vm;\n        }\n        // if parent is an HOC, update its $el as well\n        var wrapper = vm;\n        while (wrapper &&\n            wrapper.$vnode &&\n            wrapper.$parent &&\n            wrapper.$vnode === wrapper.$parent._vnode) {\n            wrapper.$parent.$el = wrapper.$el;\n            wrapper = wrapper.$parent;\n        }\n        // updated hook is called by the scheduler to ensure that children are\n        // updated in a parent's updated hook.\n    };\n    Vue.prototype.$forceUpdate = function () {\n        var vm = this;\n        if (vm._watcher) {\n            vm._watcher.update();\n        }\n    };\n    Vue.prototype.$destroy = function () {\n        var vm = this;\n        if (vm._isBeingDestroyed) {\n            return;\n        }\n        callHook$1(vm, 'beforeDestroy');\n        vm._isBeingDestroyed = true;\n        // remove self from parent\n        var parent = vm.$parent;\n        if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {\n            remove$2(parent.$children, vm);\n        }\n        // teardown scope. this includes both the render watcher and other\n        // watchers created\n        vm._scope.stop();\n        // remove reference from data ob\n        // frozen object may not have observer.\n        if (vm._data.__ob__) {\n            vm._data.__ob__.vmCount--;\n        }\n        // call the last hook...\n        vm._isDestroyed = true;\n        // invoke destroy hooks on current rendered tree\n        vm.__patch__(vm._vnode, null);\n        // fire destroyed hook\n        callHook$1(vm, 'destroyed');\n        // turn off all instance listeners.\n        vm.$off();\n        // remove __vue__ reference\n        if (vm.$el) {\n            vm.$el.__vue__ = null;\n        }\n        // release circular reference (#6759)\n        if (vm.$vnode) {\n            vm.$vnode.parent = null;\n        }\n    };\n}\nfunction mountComponent(vm, el, hydrating) {\n    vm.$el = el;\n    if (!vm.$options.render) {\n        // @ts-expect-error invalid type\n        vm.$options.render = createEmptyVNode;\n        if (true) {\n            /* istanbul ignore if */\n            if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||\n                vm.$options.el ||\n                el) {\n                warn$2('You are using the runtime-only build of Vue where the template ' +\n                    'compiler is not available. Either pre-compile the templates into ' +\n                    'render functions, or use the compiler-included build.', vm);\n            }\n            else {\n                warn$2('Failed to mount component: template or render function not defined.', vm);\n            }\n        }\n    }\n    callHook$1(vm, 'beforeMount');\n    var updateComponent;\n    /* istanbul ignore if */\n    if ( true && config.performance && mark) {\n        updateComponent = function () {\n            var name = vm._name;\n            var id = vm._uid;\n            var startTag = \"vue-perf-start:\".concat(id);\n            var endTag = \"vue-perf-end:\".concat(id);\n            mark(startTag);\n            var vnode = vm._render();\n            mark(endTag);\n            measure(\"vue \".concat(name, \" render\"), startTag, endTag);\n            mark(startTag);\n            vm._update(vnode, hydrating);\n            mark(endTag);\n            measure(\"vue \".concat(name, \" patch\"), startTag, endTag);\n        };\n    }\n    else {\n        updateComponent = function () {\n            vm._update(vm._render(), hydrating);\n        };\n    }\n    var watcherOptions = {\n        before: function () {\n            if (vm._isMounted && !vm._isDestroyed) {\n                callHook$1(vm, 'beforeUpdate');\n            }\n        }\n    };\n    if (true) {\n        watcherOptions.onTrack = function (e) { return callHook$1(vm, 'renderTracked', [e]); };\n        watcherOptions.onTrigger = function (e) { return callHook$1(vm, 'renderTriggered', [e]); };\n    }\n    // we set this to vm._watcher inside the watcher's constructor\n    // since the watcher's initial patch may call $forceUpdate (e.g. inside child\n    // component's mounted hook), which relies on vm._watcher being already defined\n    new Watcher(vm, updateComponent, noop, watcherOptions, true /* isRenderWatcher */);\n    hydrating = false;\n    // flush buffer for flush: \"pre\" watchers queued in setup()\n    var preWatchers = vm._preWatchers;\n    if (preWatchers) {\n        for (var i = 0; i < preWatchers.length; i++) {\n            preWatchers[i].run();\n        }\n    }\n    // manually mounted instance, call mounted on self\n    // mounted is called for render-created child components in its inserted hook\n    if (vm.$vnode == null) {\n        vm._isMounted = true;\n        callHook$1(vm, 'mounted');\n    }\n    return vm;\n}\nfunction updateChildComponent(vm, propsData, listeners, parentVnode, renderChildren) {\n    if (true) {\n        isUpdatingChildComponent = true;\n    }\n    // determine whether component has slot children\n    // we need to do this before overwriting $options._renderChildren.\n    // check if there are dynamic scopedSlots (hand-written or compiled but with\n    // dynamic slot names). Static scoped slots compiled from template has the\n    // \"$stable\" marker.\n    var newScopedSlots = parentVnode.data.scopedSlots;\n    var oldScopedSlots = vm.$scopedSlots;\n    var hasDynamicScopedSlot = !!((newScopedSlots && !newScopedSlots.$stable) ||\n        (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||\n        (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key) ||\n        (!newScopedSlots && vm.$scopedSlots.$key));\n    // Any static slot children from the parent may have changed during parent's\n    // update. Dynamic scoped slots may also have changed. In such cases, a forced\n    // update is necessary to ensure correctness.\n    var needsForceUpdate = !!(renderChildren || // has new static slots\n        vm.$options._renderChildren || // has old static slots\n        hasDynamicScopedSlot);\n    var prevVNode = vm.$vnode;\n    vm.$options._parentVnode = parentVnode;\n    vm.$vnode = parentVnode; // update vm's placeholder node without re-render\n    if (vm._vnode) {\n        // update child tree's parent\n        vm._vnode.parent = parentVnode;\n    }\n    vm.$options._renderChildren = renderChildren;\n    // update $attrs and $listeners hash\n    // these are also reactive so they may trigger child update if the child\n    // used them during render\n    var attrs = parentVnode.data.attrs || emptyObject;\n    if (vm._attrsProxy) {\n        // force update if attrs are accessed and has changed since it may be\n        // passed to a child component.\n        if (syncSetupProxy(vm._attrsProxy, attrs, (prevVNode.data && prevVNode.data.attrs) || emptyObject, vm, '$attrs')) {\n            needsForceUpdate = true;\n        }\n    }\n    vm.$attrs = attrs;\n    // update listeners\n    listeners = listeners || emptyObject;\n    var prevListeners = vm.$options._parentListeners;\n    if (vm._listenersProxy) {\n        syncSetupProxy(vm._listenersProxy, listeners, prevListeners || emptyObject, vm, '$listeners');\n    }\n    vm.$listeners = vm.$options._parentListeners = listeners;\n    updateComponentListeners(vm, listeners, prevListeners);\n    // update props\n    if (propsData && vm.$options.props) {\n        toggleObserving(false);\n        var props = vm._props;\n        var propKeys = vm.$options._propKeys || [];\n        for (var i = 0; i < propKeys.length; i++) {\n            var key = propKeys[i];\n            var propOptions = vm.$options.props; // wtf flow?\n            props[key] = validateProp(key, propOptions, propsData, vm);\n        }\n        toggleObserving(true);\n        // keep a copy of raw propsData\n        vm.$options.propsData = propsData;\n    }\n    // resolve slots + force update if has children\n    if (needsForceUpdate) {\n        vm.$slots = resolveSlots(renderChildren, parentVnode.context);\n        vm.$forceUpdate();\n    }\n    if (true) {\n        isUpdatingChildComponent = false;\n    }\n}\nfunction isInInactiveTree(vm) {\n    while (vm && (vm = vm.$parent)) {\n        if (vm._inactive)\n            return true;\n    }\n    return false;\n}\nfunction activateChildComponent(vm, direct) {\n    if (direct) {\n        vm._directInactive = false;\n        if (isInInactiveTree(vm)) {\n            return;\n        }\n    }\n    else if (vm._directInactive) {\n        return;\n    }\n    if (vm._inactive || vm._inactive === null) {\n        vm._inactive = false;\n        for (var i = 0; i < vm.$children.length; i++) {\n            activateChildComponent(vm.$children[i]);\n        }\n        callHook$1(vm, 'activated');\n    }\n}\nfunction deactivateChildComponent(vm, direct) {\n    if (direct) {\n        vm._directInactive = true;\n        if (isInInactiveTree(vm)) {\n            return;\n        }\n    }\n    if (!vm._inactive) {\n        vm._inactive = true;\n        for (var i = 0; i < vm.$children.length; i++) {\n            deactivateChildComponent(vm.$children[i]);\n        }\n        callHook$1(vm, 'deactivated');\n    }\n}\nfunction callHook$1(vm, hook, args, setContext) {\n    if (setContext === void 0) { setContext = true; }\n    // #7573 disable dep collection when invoking lifecycle hooks\n    pushTarget();\n    var prev = currentInstance;\n    setContext && setCurrentInstance(vm);\n    var handlers = vm.$options[hook];\n    var info = \"\".concat(hook, \" hook\");\n    if (handlers) {\n        for (var i = 0, j = handlers.length; i < j; i++) {\n            invokeWithErrorHandling(handlers[i], vm, args || null, vm, info);\n        }\n    }\n    if (vm._hasHookEvent) {\n        vm.$emit('hook:' + hook);\n    }\n    setContext && setCurrentInstance(prev);\n    popTarget();\n}\n\nvar MAX_UPDATE_COUNT = 100;\nvar queue = [];\nvar activatedChildren = [];\nvar has = {};\nvar circular = {};\nvar waiting = false;\nvar flushing = false;\nvar index$1 = 0;\n/**\n * Reset the scheduler's state.\n */\nfunction resetSchedulerState() {\n    index$1 = queue.length = activatedChildren.length = 0;\n    has = {};\n    if (true) {\n        circular = {};\n    }\n    waiting = flushing = false;\n}\n// Async edge case #6566 requires saving the timestamp when event listeners are\n// attached. However, calling performance.now() has a perf overhead especially\n// if the page has thousands of event listeners. Instead, we take a timestamp\n// every time the scheduler flushes and use that for all event listeners\n// attached during that flush.\nvar currentFlushTimestamp = 0;\n// Async edge case fix requires storing an event listener's attach timestamp.\nvar getNow = Date.now;\n// Determine what event timestamp the browser is using. Annoyingly, the\n// timestamp can either be hi-res (relative to page load) or low-res\n// (relative to UNIX epoch), so in order to compare time we have to use the\n// same timestamp type when saving the flush timestamp.\n// All IE versions use low-res event timestamps, and have problematic clock\n// implementations (#9632)\nif (inBrowser && !isIE) {\n    var performance_1 = window.performance;\n    if (performance_1 &&\n        typeof performance_1.now === 'function' &&\n        getNow() > document.createEvent('Event').timeStamp) {\n        // if the event timestamp, although evaluated AFTER the Date.now(), is\n        // smaller than it, it means the event is using a hi-res timestamp,\n        // and we need to use the hi-res version for event listener timestamps as\n        // well.\n        getNow = function () { return performance_1.now(); };\n    }\n}\nvar sortCompareFn = function (a, b) {\n    if (a.post) {\n        if (!b.post)\n            return 1;\n    }\n    else if (b.post) {\n        return -1;\n    }\n    return a.id - b.id;\n};\n/**\n * Flush both queues and run the watchers.\n */\nfunction flushSchedulerQueue() {\n    currentFlushTimestamp = getNow();\n    flushing = true;\n    var watcher, id;\n    // Sort queue before flush.\n    // This ensures that:\n    // 1. Components are updated from parent to child. (because parent is always\n    //    created before the child)\n    // 2. A component's user watchers are run before its render watcher (because\n    //    user watchers are created before the render watcher)\n    // 3. If a component is destroyed during a parent component's watcher run,\n    //    its watchers can be skipped.\n    queue.sort(sortCompareFn);\n    // do not cache length because more watchers might be pushed\n    // as we run existing watchers\n    for (index$1 = 0; index$1 < queue.length; index$1++) {\n        watcher = queue[index$1];\n        if (watcher.before) {\n            watcher.before();\n        }\n        id = watcher.id;\n        has[id] = null;\n        watcher.run();\n        // in dev build, check and stop circular updates.\n        if ( true && has[id] != null) {\n            circular[id] = (circular[id] || 0) + 1;\n            if (circular[id] > MAX_UPDATE_COUNT) {\n                warn$2('You may have an infinite update loop ' +\n                    (watcher.user\n                        ? \"in watcher with expression \\\"\".concat(watcher.expression, \"\\\"\")\n                        : \"in a component render function.\"), watcher.vm);\n                break;\n            }\n        }\n    }\n    // keep copies of post queues before resetting state\n    var activatedQueue = activatedChildren.slice();\n    var updatedQueue = queue.slice();\n    resetSchedulerState();\n    // call component updated and activated hooks\n    callActivatedHooks(activatedQueue);\n    callUpdatedHooks(updatedQueue);\n    cleanupDeps();\n    // devtool hook\n    /* istanbul ignore if */\n    if (devtools && config.devtools) {\n        devtools.emit('flush');\n    }\n}\nfunction callUpdatedHooks(queue) {\n    var i = queue.length;\n    while (i--) {\n        var watcher = queue[i];\n        var vm = watcher.vm;\n        if (vm && vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {\n            callHook$1(vm, 'updated');\n        }\n    }\n}\n/**\n * Queue a kept-alive component that was activated during patch.\n * The queue will be processed after the entire tree has been patched.\n */\nfunction queueActivatedComponent(vm) {\n    // setting _inactive to false here so that a render function can\n    // rely on checking whether it's in an inactive tree (e.g. router-view)\n    vm._inactive = false;\n    activatedChildren.push(vm);\n}\nfunction callActivatedHooks(queue) {\n    for (var i = 0; i < queue.length; i++) {\n        queue[i]._inactive = true;\n        activateChildComponent(queue[i], true /* true */);\n    }\n}\n/**\n * Push a watcher into the watcher queue.\n * Jobs with duplicate IDs will be skipped unless it's\n * pushed when the queue is being flushed.\n */\nfunction queueWatcher(watcher) {\n    var id = watcher.id;\n    if (has[id] != null) {\n        return;\n    }\n    if (watcher === Dep.target && watcher.noRecurse) {\n        return;\n    }\n    has[id] = true;\n    if (!flushing) {\n        queue.push(watcher);\n    }\n    else {\n        // if already flushing, splice the watcher based on its id\n        // if already past its id, it will be run next immediately.\n        var i = queue.length - 1;\n        while (i > index$1 && queue[i].id > watcher.id) {\n            i--;\n        }\n        queue.splice(i + 1, 0, watcher);\n    }\n    // queue the flush\n    if (!waiting) {\n        waiting = true;\n        if ( true && !config.async) {\n            flushSchedulerQueue();\n            return;\n        }\n        nextTick(flushSchedulerQueue);\n    }\n}\n\nvar WATCHER = \"watcher\";\nvar WATCHER_CB = \"\".concat(WATCHER, \" callback\");\nvar WATCHER_GETTER = \"\".concat(WATCHER, \" getter\");\nvar WATCHER_CLEANUP = \"\".concat(WATCHER, \" cleanup\");\n// Simple effect.\nfunction watchEffect(effect, options) {\n    return doWatch(effect, null, options);\n}\nfunction watchPostEffect(effect, options) {\n    return doWatch(effect, null, ( true\n        ? __assign(__assign({}, options), { flush: 'post' }) : undefined));\n}\nfunction watchSyncEffect(effect, options) {\n    return doWatch(effect, null, ( true\n        ? __assign(__assign({}, options), { flush: 'sync' }) : undefined));\n}\n// initial value for watchers to trigger on undefined initial values\nvar INITIAL_WATCHER_VALUE = {};\n// implementation\nfunction watch(source, cb, options) {\n    if ( true && typeof cb !== 'function') {\n        warn$2(\"`watch(fn, options?)` signature has been moved to a separate API. \" +\n            \"Use `watchEffect(fn, options?)` instead. `watch` now only \" +\n            \"supports `watch(source, cb, options?) signature.\");\n    }\n    return doWatch(source, cb, options);\n}\nfunction doWatch(source, cb, _a) {\n    var _b = _a === void 0 ? emptyObject : _a, immediate = _b.immediate, deep = _b.deep, _c = _b.flush, flush = _c === void 0 ? 'pre' : _c, onTrack = _b.onTrack, onTrigger = _b.onTrigger;\n    if ( true && !cb) {\n        if (immediate !== undefined) {\n            warn$2(\"watch() \\\"immediate\\\" option is only respected when using the \" +\n                \"watch(source, callback, options?) signature.\");\n        }\n        if (deep !== undefined) {\n            warn$2(\"watch() \\\"deep\\\" option is only respected when using the \" +\n                \"watch(source, callback, options?) signature.\");\n        }\n    }\n    var warnInvalidSource = function (s) {\n        warn$2(\"Invalid watch source: \".concat(s, \". A watch source can only be a getter/effect \") +\n            \"function, a ref, a reactive object, or an array of these types.\");\n    };\n    var instance = currentInstance;\n    var call = function (fn, type, args) {\n        if (args === void 0) { args = null; }\n        return invokeWithErrorHandling(fn, null, args, instance, type);\n    };\n    var getter;\n    var forceTrigger = false;\n    var isMultiSource = false;\n    if (isRef(source)) {\n        getter = function () { return source.value; };\n        forceTrigger = isShallow(source);\n    }\n    else if (isReactive(source)) {\n        getter = function () {\n            source.__ob__.dep.depend();\n            return source;\n        };\n        deep = true;\n    }\n    else if (isArray(source)) {\n        isMultiSource = true;\n        forceTrigger = source.some(function (s) { return isReactive(s) || isShallow(s); });\n        getter = function () {\n            return source.map(function (s) {\n                if (isRef(s)) {\n                    return s.value;\n                }\n                else if (isReactive(s)) {\n                    return traverse(s);\n                }\n                else if (isFunction(s)) {\n                    return call(s, WATCHER_GETTER);\n                }\n                else {\n                     true && warnInvalidSource(s);\n                }\n            });\n        };\n    }\n    else if (isFunction(source)) {\n        if (cb) {\n            // getter with cb\n            getter = function () { return call(source, WATCHER_GETTER); };\n        }\n        else {\n            // no cb -> simple effect\n            getter = function () {\n                if (instance && instance._isDestroyed) {\n                    return;\n                }\n                if (cleanup) {\n                    cleanup();\n                }\n                return call(source, WATCHER, [onCleanup]);\n            };\n        }\n    }\n    else {\n        getter = noop;\n         true && warnInvalidSource(source);\n    }\n    if (cb && deep) {\n        var baseGetter_1 = getter;\n        getter = function () { return traverse(baseGetter_1()); };\n    }\n    var cleanup;\n    var onCleanup = function (fn) {\n        cleanup = watcher.onStop = function () {\n            call(fn, WATCHER_CLEANUP);\n        };\n    };\n    // in SSR there is no need to setup an actual effect, and it should be noop\n    // unless it's eager\n    if (isServerRendering()) {\n        // we will also not call the invalidate callback (+ runner is not set up)\n        onCleanup = noop;\n        if (!cb) {\n            getter();\n        }\n        else if (immediate) {\n            call(cb, WATCHER_CB, [\n                getter(),\n                isMultiSource ? [] : undefined,\n                onCleanup\n            ]);\n        }\n        return noop;\n    }\n    var watcher = new Watcher(currentInstance, getter, noop, {\n        lazy: true\n    });\n    watcher.noRecurse = !cb;\n    var oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\n    // overwrite default run\n    watcher.run = function () {\n        if (!watcher.active) {\n            return;\n        }\n        if (cb) {\n            // watch(source, cb)\n            var newValue = watcher.get();\n            if (deep ||\n                forceTrigger ||\n                (isMultiSource\n                    ? newValue.some(function (v, i) {\n                        return hasChanged(v, oldValue[i]);\n                    })\n                    : hasChanged(newValue, oldValue))) {\n                // cleanup before running cb again\n                if (cleanup) {\n                    cleanup();\n                }\n                call(cb, WATCHER_CB, [\n                    newValue,\n                    // pass undefined as the old value when it's changed for the first time\n                    oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,\n                    onCleanup\n                ]);\n                oldValue = newValue;\n            }\n        }\n        else {\n            // watchEffect\n            watcher.get();\n        }\n    };\n    if (flush === 'sync') {\n        watcher.update = watcher.run;\n    }\n    else if (flush === 'post') {\n        watcher.post = true;\n        watcher.update = function () { return queueWatcher(watcher); };\n    }\n    else {\n        // pre\n        watcher.update = function () {\n            if (instance && instance === currentInstance && !instance._isMounted) {\n                // pre-watcher triggered before\n                var buffer = instance._preWatchers || (instance._preWatchers = []);\n                if (buffer.indexOf(watcher) < 0)\n                    buffer.push(watcher);\n            }\n            else {\n                queueWatcher(watcher);\n            }\n        };\n    }\n    if (true) {\n        watcher.onTrack = onTrack;\n        watcher.onTrigger = onTrigger;\n    }\n    // initial run\n    if (cb) {\n        if (immediate) {\n            watcher.run();\n        }\n        else {\n            oldValue = watcher.get();\n        }\n    }\n    else if (flush === 'post' && instance) {\n        instance.$once('hook:mounted', function () { return watcher.get(); });\n    }\n    else {\n        watcher.get();\n    }\n    return function () {\n        watcher.teardown();\n    };\n}\n\nvar activeEffectScope;\nvar EffectScope = /** @class */ (function () {\n    function EffectScope(detached) {\n        if (detached === void 0) { detached = false; }\n        this.detached = detached;\n        /**\n         * @internal\n         */\n        this.active = true;\n        /**\n         * @internal\n         */\n        this.effects = [];\n        /**\n         * @internal\n         */\n        this.cleanups = [];\n        this.parent = activeEffectScope;\n        if (!detached && activeEffectScope) {\n            this.index =\n                (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\n        }\n    }\n    EffectScope.prototype.run = function (fn) {\n        if (this.active) {\n            var currentEffectScope = activeEffectScope;\n            try {\n                activeEffectScope = this;\n                return fn();\n            }\n            finally {\n                activeEffectScope = currentEffectScope;\n            }\n        }\n        else if (true) {\n            warn$2(\"cannot run an inactive effect scope.\");\n        }\n    };\n    /**\n     * This should only be called on non-detached scopes\n     * @internal\n     */\n    EffectScope.prototype.on = function () {\n        activeEffectScope = this;\n    };\n    /**\n     * This should only be called on non-detached scopes\n     * @internal\n     */\n    EffectScope.prototype.off = function () {\n        activeEffectScope = this.parent;\n    };\n    EffectScope.prototype.stop = function (fromParent) {\n        if (this.active) {\n            var i = void 0, l = void 0;\n            for (i = 0, l = this.effects.length; i < l; i++) {\n                this.effects[i].teardown();\n            }\n            for (i = 0, l = this.cleanups.length; i < l; i++) {\n                this.cleanups[i]();\n            }\n            if (this.scopes) {\n                for (i = 0, l = this.scopes.length; i < l; i++) {\n                    this.scopes[i].stop(true);\n                }\n            }\n            // nested scope, dereference from parent to avoid memory leaks\n            if (!this.detached && this.parent && !fromParent) {\n                // optimized O(1) removal\n                var last = this.parent.scopes.pop();\n                if (last && last !== this) {\n                    this.parent.scopes[this.index] = last;\n                    last.index = this.index;\n                }\n            }\n            this.parent = undefined;\n            this.active = false;\n        }\n    };\n    return EffectScope;\n}());\nfunction effectScope(detached) {\n    return new EffectScope(detached);\n}\n/**\n * @internal\n */\nfunction recordEffectScope(effect, scope) {\n    if (scope === void 0) { scope = activeEffectScope; }\n    if (scope && scope.active) {\n        scope.effects.push(effect);\n    }\n}\nfunction getCurrentScope() {\n    return activeEffectScope;\n}\nfunction onScopeDispose(fn) {\n    if (activeEffectScope) {\n        activeEffectScope.cleanups.push(fn);\n    }\n    else if (true) {\n        warn$2(\"onScopeDispose() is called when there is no active effect scope\" +\n            \" to be associated with.\");\n    }\n}\n\nfunction provide(key, value) {\n    if (!currentInstance) {\n        if (true) {\n            warn$2(\"provide() can only be used inside setup().\");\n        }\n    }\n    else {\n        // TS doesn't allow symbol as index type\n        resolveProvided(currentInstance)[key] = value;\n    }\n}\nfunction resolveProvided(vm) {\n    // by default an instance inherits its parent's provides object\n    // but when it needs to provide values of its own, it creates its\n    // own provides object using parent provides object as prototype.\n    // this way in `inject` we can simply look up injections from direct\n    // parent and let the prototype chain do the work.\n    var existing = vm._provided;\n    var parentProvides = vm.$parent && vm.$parent._provided;\n    if (parentProvides === existing) {\n        return (vm._provided = Object.create(parentProvides));\n    }\n    else {\n        return existing;\n    }\n}\nfunction inject(key, defaultValue, treatDefaultAsFactory) {\n    if (treatDefaultAsFactory === void 0) { treatDefaultAsFactory = false; }\n    // fallback to `currentRenderingInstance` so that this can be called in\n    // a functional component\n    var instance = currentInstance;\n    if (instance) {\n        // #2400\n        // to support `app.use` plugins,\n        // fallback to appContext's `provides` if the instance is at root\n        var provides = instance.$parent && instance.$parent._provided;\n        if (provides && key in provides) {\n            // TS doesn't allow symbol as index type\n            return provides[key];\n        }\n        else if (arguments.length > 1) {\n            return treatDefaultAsFactory && isFunction(defaultValue)\n                ? defaultValue.call(instance)\n                : defaultValue;\n        }\n        else if (true) {\n            warn$2(\"injection \\\"\".concat(String(key), \"\\\" not found.\"));\n        }\n    }\n    else if (true) {\n        warn$2(\"inject() can only be used inside setup() or functional components.\");\n    }\n}\n\n/**\n * @internal this function needs manual public type declaration because it relies\n * on previously manually authored types from Vue 2\n */\nfunction h(type, props, children) {\n    if (!currentInstance) {\n         true &&\n            warn$2(\"globally imported h() can only be invoked when there is an active \" +\n                \"component instance, e.g. synchronously in a component's render or setup function.\");\n    }\n    return createElement$1(currentInstance, type, props, children, 2, true);\n}\n\nfunction handleError(err, vm, info) {\n    // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.\n    // See: https://github.com/vuejs/vuex/issues/1505\n    pushTarget();\n    try {\n        if (vm) {\n            var cur = vm;\n            while ((cur = cur.$parent)) {\n                var hooks = cur.$options.errorCaptured;\n                if (hooks) {\n                    for (var i = 0; i < hooks.length; i++) {\n                        try {\n                            var capture = hooks[i].call(cur, err, vm, info) === false;\n                            if (capture)\n                                return;\n                        }\n                        catch (e) {\n                            globalHandleError(e, cur, 'errorCaptured hook');\n                        }\n                    }\n                }\n            }\n        }\n        globalHandleError(err, vm, info);\n    }\n    finally {\n        popTarget();\n    }\n}\nfunction invokeWithErrorHandling(handler, context, args, vm, info) {\n    var res;\n    try {\n        res = args ? handler.apply(context, args) : handler.call(context);\n        if (res && !res._isVue && isPromise(res) && !res._handled) {\n            res.catch(function (e) { return handleError(e, vm, info + \" (Promise/async)\"); });\n            res._handled = true;\n        }\n    }\n    catch (e) {\n        handleError(e, vm, info);\n    }\n    return res;\n}\nfunction globalHandleError(err, vm, info) {\n    if (config.errorHandler) {\n        try {\n            return config.errorHandler.call(null, err, vm, info);\n        }\n        catch (e) {\n            // if the user intentionally throws the original error in the handler,\n            // do not log it twice\n            if (e !== err) {\n                logError(e, null, 'config.errorHandler');\n            }\n        }\n    }\n    logError(err, vm, info);\n}\nfunction logError(err, vm, info) {\n    if (true) {\n        warn$2(\"Error in \".concat(info, \": \\\"\").concat(err.toString(), \"\\\"\"), vm);\n    }\n    /* istanbul ignore else */\n    if (inBrowser && typeof console !== 'undefined') {\n        console.error(err);\n    }\n    else {\n        throw err;\n    }\n}\n\n/* globals MutationObserver */\nvar isUsingMicroTask = false;\nvar callbacks = [];\nvar pending = false;\nfunction flushCallbacks() {\n    pending = false;\n    var copies = callbacks.slice(0);\n    callbacks.length = 0;\n    for (var i = 0; i < copies.length; i++) {\n        copies[i]();\n    }\n}\n// Here we have async deferring wrappers using microtasks.\n// In 2.5 we used (macro) tasks (in combination with microtasks).\n// However, it has subtle problems when state is changed right before repaint\n// (e.g. #6813, out-in transitions).\n// Also, using (macro) tasks in event handler would cause some weird behaviors\n// that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).\n// So we now use microtasks everywhere, again.\n// A major drawback of this tradeoff is that there are some scenarios\n// where microtasks have too high a priority and fire in between supposedly\n// sequential events (e.g. #4521, #6690, which have workarounds)\n// or even between bubbling of the same event (#6566).\nvar timerFunc;\n// The nextTick behavior leverages the microtask queue, which can be accessed\n// via either native Promise.then or MutationObserver.\n// MutationObserver has wider support, however it is seriously bugged in\n// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\n// completely stops working after triggering a few times... so, if native\n// Promise is available, we will use it:\n/* istanbul ignore next, $flow-disable-line */\nif (typeof Promise !== 'undefined' && isNative(Promise)) {\n    var p_1 = Promise.resolve();\n    timerFunc = function () {\n        p_1.then(flushCallbacks);\n        // In problematic UIWebViews, Promise.then doesn't completely break, but\n        // it can get stuck in a weird state where callbacks are pushed into the\n        // microtask queue but the queue isn't being flushed, until the browser\n        // needs to do some other work, e.g. handle a timer. Therefore we can\n        // \"force\" the microtask queue to be flushed by adding an empty timer.\n        if (isIOS)\n            setTimeout(noop);\n    };\n    isUsingMicroTask = true;\n}\nelse if (!isIE &&\n    typeof MutationObserver !== 'undefined' &&\n    (isNative(MutationObserver) ||\n        // PhantomJS and iOS 7.x\n        MutationObserver.toString() === '[object MutationObserverConstructor]')) {\n    // Use MutationObserver where native Promise is not available,\n    // e.g. PhantomJS, iOS7, Android 4.4\n    // (#6466 MutationObserver is unreliable in IE11)\n    var counter_1 = 1;\n    var observer = new MutationObserver(flushCallbacks);\n    var textNode_1 = document.createTextNode(String(counter_1));\n    observer.observe(textNode_1, {\n        characterData: true\n    });\n    timerFunc = function () {\n        counter_1 = (counter_1 + 1) % 2;\n        textNode_1.data = String(counter_1);\n    };\n    isUsingMicroTask = true;\n}\nelse if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {\n    // Fallback to setImmediate.\n    // Technically it leverages the (macro) task queue,\n    // but it is still a better choice than setTimeout.\n    timerFunc = function () {\n        setImmediate(flushCallbacks);\n    };\n}\nelse {\n    // Fallback to setTimeout.\n    timerFunc = function () {\n        setTimeout(flushCallbacks, 0);\n    };\n}\n/**\n * @internal\n */\nfunction nextTick(cb, ctx) {\n    var _resolve;\n    callbacks.push(function () {\n        if (cb) {\n            try {\n                cb.call(ctx);\n            }\n            catch (e) {\n                handleError(e, ctx, 'nextTick');\n            }\n        }\n        else if (_resolve) {\n            _resolve(ctx);\n        }\n    });\n    if (!pending) {\n        pending = true;\n        timerFunc();\n    }\n    // $flow-disable-line\n    if (!cb && typeof Promise !== 'undefined') {\n        return new Promise(function (resolve) {\n            _resolve = resolve;\n        });\n    }\n}\n\nfunction useCssModule(name) {\n    if (name === void 0) { name = '$style'; }\n    /* istanbul ignore else */\n    {\n        if (!currentInstance) {\n             true && warn$2(\"useCssModule must be called inside setup()\");\n            return emptyObject;\n        }\n        var mod = currentInstance[name];\n        if (!mod) {\n             true &&\n                warn$2(\"Current instance does not have CSS module named \\\"\".concat(name, \"\\\".\"));\n            return emptyObject;\n        }\n        return mod;\n    }\n}\n\n/**\n * Runtime helper for SFC's CSS variable injection feature.\n * @private\n */\nfunction useCssVars(getter) {\n    if (!inBrowser && !false)\n        return;\n    var instance = currentInstance;\n    if (!instance) {\n         true &&\n            warn$2(\"useCssVars is called without current active component instance.\");\n        return;\n    }\n    watchPostEffect(function () {\n        var el = instance.$el;\n        var vars = getter(instance, instance._setupProxy);\n        if (el && el.nodeType === 1) {\n            var style = el.style;\n            for (var key in vars) {\n                style.setProperty(\"--\".concat(key), vars[key]);\n            }\n        }\n    });\n}\n\n/**\n * v3-compatible async component API.\n * @internal the type is manually declared in <root>/types/v3-define-async-component.d.ts\n * because it relies on existing manual types\n */\nfunction defineAsyncComponent(source) {\n    if (isFunction(source)) {\n        source = { loader: source };\n    }\n    var loader = source.loader, loadingComponent = source.loadingComponent, errorComponent = source.errorComponent, _a = source.delay, delay = _a === void 0 ? 200 : _a, timeout = source.timeout, // undefined = never times out\n    _b = source.suspensible, // undefined = never times out\n    suspensible = _b === void 0 ? false : _b, // in Vue 3 default is true\n    userOnError = source.onError;\n    if ( true && suspensible) {\n        warn$2(\"The suspensiblbe option for async components is not supported in Vue2. It is ignored.\");\n    }\n    var pendingRequest = null;\n    var retries = 0;\n    var retry = function () {\n        retries++;\n        pendingRequest = null;\n        return load();\n    };\n    var load = function () {\n        var thisRequest;\n        return (pendingRequest ||\n            (thisRequest = pendingRequest =\n                loader()\n                    .catch(function (err) {\n                    err = err instanceof Error ? err : new Error(String(err));\n                    if (userOnError) {\n                        return new Promise(function (resolve, reject) {\n                            var userRetry = function () { return resolve(retry()); };\n                            var userFail = function () { return reject(err); };\n                            userOnError(err, userRetry, userFail, retries + 1);\n                        });\n                    }\n                    else {\n                        throw err;\n                    }\n                })\n                    .then(function (comp) {\n                    if (thisRequest !== pendingRequest && pendingRequest) {\n                        return pendingRequest;\n                    }\n                    if ( true && !comp) {\n                        warn$2(\"Async component loader resolved to undefined. \" +\n                            \"If you are using retry(), make sure to return its return value.\");\n                    }\n                    // interop module default\n                    if (comp &&\n                        (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) {\n                        comp = comp.default;\n                    }\n                    if ( true && comp && !isObject(comp) && !isFunction(comp)) {\n                        throw new Error(\"Invalid async component load result: \".concat(comp));\n                    }\n                    return comp;\n                })));\n    };\n    return function () {\n        var component = load();\n        return {\n            component: component,\n            delay: delay,\n            timeout: timeout,\n            error: errorComponent,\n            loading: loadingComponent\n        };\n    };\n}\n\nfunction createLifeCycle(hookName) {\n    return function (fn, target) {\n        if (target === void 0) { target = currentInstance; }\n        if (!target) {\n             true &&\n                warn$2(\"\".concat(formatName(hookName), \" is called when there is no active component instance to be \") +\n                    \"associated with. \" +\n                    \"Lifecycle injection APIs can only be used during execution of setup().\");\n            return;\n        }\n        return injectHook(target, hookName, fn);\n    };\n}\nfunction formatName(name) {\n    if (name === 'beforeDestroy') {\n        name = 'beforeUnmount';\n    }\n    else if (name === 'destroyed') {\n        name = 'unmounted';\n    }\n    return \"on\".concat(name[0].toUpperCase() + name.slice(1));\n}\nfunction injectHook(instance, hookName, fn) {\n    var options = instance.$options;\n    options[hookName] = mergeLifecycleHook(options[hookName], fn);\n}\nvar onBeforeMount = createLifeCycle('beforeMount');\nvar onMounted = createLifeCycle('mounted');\nvar onBeforeUpdate = createLifeCycle('beforeUpdate');\nvar onUpdated = createLifeCycle('updated');\nvar onBeforeUnmount = createLifeCycle('beforeDestroy');\nvar onUnmounted = createLifeCycle('destroyed');\nvar onActivated = createLifeCycle('activated');\nvar onDeactivated = createLifeCycle('deactivated');\nvar onServerPrefetch = createLifeCycle('serverPrefetch');\nvar onRenderTracked = createLifeCycle('renderTracked');\nvar onRenderTriggered = createLifeCycle('renderTriggered');\nvar injectErrorCapturedHook = createLifeCycle('errorCaptured');\nfunction onErrorCaptured(hook, target) {\n    if (target === void 0) { target = currentInstance; }\n    injectErrorCapturedHook(hook, target);\n}\n\n/**\n * Note: also update dist/vue.runtime.mjs when adding new exports to this file.\n */\nvar version = '2.7.14';\n/**\n * @internal type is manually declared in <root>/types/v3-define-component.d.ts\n */\nfunction defineComponent(options) {\n    return options;\n}\n\nvar seenObjects = new _Set();\n/**\n * Recursively traverse an object to evoke all converted\n * getters, so that every nested property inside the object\n * is collected as a \"deep\" dependency.\n */\nfunction traverse(val) {\n    _traverse(val, seenObjects);\n    seenObjects.clear();\n    return val;\n}\nfunction _traverse(val, seen) {\n    var i, keys;\n    var isA = isArray(val);\n    if ((!isA && !isObject(val)) ||\n        val.__v_skip /* ReactiveFlags.SKIP */ ||\n        Object.isFrozen(val) ||\n        val instanceof VNode) {\n        return;\n    }\n    if (val.__ob__) {\n        var depId = val.__ob__.dep.id;\n        if (seen.has(depId)) {\n            return;\n        }\n        seen.add(depId);\n    }\n    if (isA) {\n        i = val.length;\n        while (i--)\n            _traverse(val[i], seen);\n    }\n    else if (isRef(val)) {\n        _traverse(val.value, seen);\n    }\n    else {\n        keys = Object.keys(val);\n        i = keys.length;\n        while (i--)\n            _traverse(val[keys[i]], seen);\n    }\n}\n\nvar uid$1 = 0;\n/**\n * A watcher parses an expression, collects dependencies,\n * and fires callback when the expression value changes.\n * This is used for both the $watch() api and directives.\n * @internal\n */\nvar Watcher = /** @class */ (function () {\n    function Watcher(vm, expOrFn, cb, options, isRenderWatcher) {\n        recordEffectScope(this, \n        // if the active effect scope is manually created (not a component scope),\n        // prioritize it\n        activeEffectScope && !activeEffectScope._vm\n            ? activeEffectScope\n            : vm\n                ? vm._scope\n                : undefined);\n        if ((this.vm = vm) && isRenderWatcher) {\n            vm._watcher = this;\n        }\n        // options\n        if (options) {\n            this.deep = !!options.deep;\n            this.user = !!options.user;\n            this.lazy = !!options.lazy;\n            this.sync = !!options.sync;\n            this.before = options.before;\n            if (true) {\n                this.onTrack = options.onTrack;\n                this.onTrigger = options.onTrigger;\n            }\n        }\n        else {\n            this.deep = this.user = this.lazy = this.sync = false;\n        }\n        this.cb = cb;\n        this.id = ++uid$1; // uid for batching\n        this.active = true;\n        this.post = false;\n        this.dirty = this.lazy; // for lazy watchers\n        this.deps = [];\n        this.newDeps = [];\n        this.depIds = new _Set();\n        this.newDepIds = new _Set();\n        this.expression =  true ? expOrFn.toString() : undefined;\n        // parse expression for getter\n        if (isFunction(expOrFn)) {\n            this.getter = expOrFn;\n        }\n        else {\n            this.getter = parsePath(expOrFn);\n            if (!this.getter) {\n                this.getter = noop;\n                 true &&\n                    warn$2(\"Failed watching path: \\\"\".concat(expOrFn, \"\\\" \") +\n                        'Watcher only accepts simple dot-delimited paths. ' +\n                        'For full control, use a function instead.', vm);\n            }\n        }\n        this.value = this.lazy ? undefined : this.get();\n    }\n    /**\n     * Evaluate the getter, and re-collect dependencies.\n     */\n    Watcher.prototype.get = function () {\n        pushTarget(this);\n        var value;\n        var vm = this.vm;\n        try {\n            value = this.getter.call(vm, vm);\n        }\n        catch (e) {\n            if (this.user) {\n                handleError(e, vm, \"getter for watcher \\\"\".concat(this.expression, \"\\\"\"));\n            }\n            else {\n                throw e;\n            }\n        }\n        finally {\n            // \"touch\" every property so they are all tracked as\n            // dependencies for deep watching\n            if (this.deep) {\n                traverse(value);\n            }\n            popTarget();\n            this.cleanupDeps();\n        }\n        return value;\n    };\n    /**\n     * Add a dependency to this directive.\n     */\n    Watcher.prototype.addDep = function (dep) {\n        var id = dep.id;\n        if (!this.newDepIds.has(id)) {\n            this.newDepIds.add(id);\n            this.newDeps.push(dep);\n            if (!this.depIds.has(id)) {\n                dep.addSub(this);\n            }\n        }\n    };\n    /**\n     * Clean up for dependency collection.\n     */\n    Watcher.prototype.cleanupDeps = function () {\n        var i = this.deps.length;\n        while (i--) {\n            var dep = this.deps[i];\n            if (!this.newDepIds.has(dep.id)) {\n                dep.removeSub(this);\n            }\n        }\n        var tmp = this.depIds;\n        this.depIds = this.newDepIds;\n        this.newDepIds = tmp;\n        this.newDepIds.clear();\n        tmp = this.deps;\n        this.deps = this.newDeps;\n        this.newDeps = tmp;\n        this.newDeps.length = 0;\n    };\n    /**\n     * Subscriber interface.\n     * Will be called when a dependency changes.\n     */\n    Watcher.prototype.update = function () {\n        /* istanbul ignore else */\n        if (this.lazy) {\n            this.dirty = true;\n        }\n        else if (this.sync) {\n            this.run();\n        }\n        else {\n            queueWatcher(this);\n        }\n    };\n    /**\n     * Scheduler job interface.\n     * Will be called by the scheduler.\n     */\n    Watcher.prototype.run = function () {\n        if (this.active) {\n            var value = this.get();\n            if (value !== this.value ||\n                // Deep watchers and watchers on Object/Arrays should fire even\n                // when the value is the same, because the value may\n                // have mutated.\n                isObject(value) ||\n                this.deep) {\n                // set new value\n                var oldValue = this.value;\n                this.value = value;\n                if (this.user) {\n                    var info = \"callback for watcher \\\"\".concat(this.expression, \"\\\"\");\n                    invokeWithErrorHandling(this.cb, this.vm, [value, oldValue], this.vm, info);\n                }\n                else {\n                    this.cb.call(this.vm, value, oldValue);\n                }\n            }\n        }\n    };\n    /**\n     * Evaluate the value of the watcher.\n     * This only gets called for lazy watchers.\n     */\n    Watcher.prototype.evaluate = function () {\n        this.value = this.get();\n        this.dirty = false;\n    };\n    /**\n     * Depend on all deps collected by this watcher.\n     */\n    Watcher.prototype.depend = function () {\n        var i = this.deps.length;\n        while (i--) {\n            this.deps[i].depend();\n        }\n    };\n    /**\n     * Remove self from all dependencies' subscriber list.\n     */\n    Watcher.prototype.teardown = function () {\n        if (this.vm && !this.vm._isBeingDestroyed) {\n            remove$2(this.vm._scope.effects, this);\n        }\n        if (this.active) {\n            var i = this.deps.length;\n            while (i--) {\n                this.deps[i].removeSub(this);\n            }\n            this.active = false;\n            if (this.onStop) {\n                this.onStop();\n            }\n        }\n    };\n    return Watcher;\n}());\n\nvar sharedPropertyDefinition = {\n    enumerable: true,\n    configurable: true,\n    get: noop,\n    set: noop\n};\nfunction proxy(target, sourceKey, key) {\n    sharedPropertyDefinition.get = function proxyGetter() {\n        return this[sourceKey][key];\n    };\n    sharedPropertyDefinition.set = function proxySetter(val) {\n        this[sourceKey][key] = val;\n    };\n    Object.defineProperty(target, key, sharedPropertyDefinition);\n}\nfunction initState(vm) {\n    var opts = vm.$options;\n    if (opts.props)\n        initProps$1(vm, opts.props);\n    // Composition API\n    initSetup(vm);\n    if (opts.methods)\n        initMethods(vm, opts.methods);\n    if (opts.data) {\n        initData(vm);\n    }\n    else {\n        var ob = observe((vm._data = {}));\n        ob && ob.vmCount++;\n    }\n    if (opts.computed)\n        initComputed$1(vm, opts.computed);\n    if (opts.watch && opts.watch !== nativeWatch) {\n        initWatch(vm, opts.watch);\n    }\n}\nfunction initProps$1(vm, propsOptions) {\n    var propsData = vm.$options.propsData || {};\n    var props = (vm._props = shallowReactive({}));\n    // cache prop keys so that future props updates can iterate using Array\n    // instead of dynamic object key enumeration.\n    var keys = (vm.$options._propKeys = []);\n    var isRoot = !vm.$parent;\n    // root instance props should be converted\n    if (!isRoot) {\n        toggleObserving(false);\n    }\n    var _loop_1 = function (key) {\n        keys.push(key);\n        var value = validateProp(key, propsOptions, propsData, vm);\n        /* istanbul ignore else */\n        if (true) {\n            var hyphenatedKey = hyphenate(key);\n            if (isReservedAttribute(hyphenatedKey) ||\n                config.isReservedAttr(hyphenatedKey)) {\n                warn$2(\"\\\"\".concat(hyphenatedKey, \"\\\" is a reserved attribute and cannot be used as component prop.\"), vm);\n            }\n            defineReactive(props, key, value, function () {\n                if (!isRoot && !isUpdatingChildComponent) {\n                    warn$2(\"Avoid mutating a prop directly since the value will be \" +\n                        \"overwritten whenever the parent component re-renders. \" +\n                        \"Instead, use a data or computed property based on the prop's \" +\n                        \"value. Prop being mutated: \\\"\".concat(key, \"\\\"\"), vm);\n                }\n            });\n        }\n        else {}\n        // static props are already proxied on the component's prototype\n        // during Vue.extend(). We only need to proxy props defined at\n        // instantiation here.\n        if (!(key in vm)) {\n            proxy(vm, \"_props\", key);\n        }\n    };\n    for (var key in propsOptions) {\n        _loop_1(key);\n    }\n    toggleObserving(true);\n}\nfunction initData(vm) {\n    var data = vm.$options.data;\n    data = vm._data = isFunction(data) ? getData(data, vm) : data || {};\n    if (!isPlainObject(data)) {\n        data = {};\n         true &&\n            warn$2('data functions should return an object:\\n' +\n                'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function', vm);\n    }\n    // proxy data on instance\n    var keys = Object.keys(data);\n    var props = vm.$options.props;\n    var methods = vm.$options.methods;\n    var i = keys.length;\n    while (i--) {\n        var key = keys[i];\n        if (true) {\n            if (methods && hasOwn(methods, key)) {\n                warn$2(\"Method \\\"\".concat(key, \"\\\" has already been defined as a data property.\"), vm);\n            }\n        }\n        if (props && hasOwn(props, key)) {\n             true &&\n                warn$2(\"The data property \\\"\".concat(key, \"\\\" is already declared as a prop. \") +\n                    \"Use prop default value instead.\", vm);\n        }\n        else if (!isReserved(key)) {\n            proxy(vm, \"_data\", key);\n        }\n    }\n    // observe data\n    var ob = observe(data);\n    ob && ob.vmCount++;\n}\nfunction getData(data, vm) {\n    // #7573 disable dep collection when invoking data getters\n    pushTarget();\n    try {\n        return data.call(vm, vm);\n    }\n    catch (e) {\n        handleError(e, vm, \"data()\");\n        return {};\n    }\n    finally {\n        popTarget();\n    }\n}\nvar computedWatcherOptions = { lazy: true };\nfunction initComputed$1(vm, computed) {\n    // $flow-disable-line\n    var watchers = (vm._computedWatchers = Object.create(null));\n    // computed properties are just getters during SSR\n    var isSSR = isServerRendering();\n    for (var key in computed) {\n        var userDef = computed[key];\n        var getter = isFunction(userDef) ? userDef : userDef.get;\n        if ( true && getter == null) {\n            warn$2(\"Getter is missing for computed property \\\"\".concat(key, \"\\\".\"), vm);\n        }\n        if (!isSSR) {\n            // create internal watcher for the computed property.\n            watchers[key] = new Watcher(vm, getter || noop, noop, computedWatcherOptions);\n        }\n        // component-defined computed properties are already defined on the\n        // component prototype. We only need to define computed properties defined\n        // at instantiation here.\n        if (!(key in vm)) {\n            defineComputed(vm, key, userDef);\n        }\n        else if (true) {\n            if (key in vm.$data) {\n                warn$2(\"The computed property \\\"\".concat(key, \"\\\" is already defined in data.\"), vm);\n            }\n            else if (vm.$options.props && key in vm.$options.props) {\n                warn$2(\"The computed property \\\"\".concat(key, \"\\\" is already defined as a prop.\"), vm);\n            }\n            else if (vm.$options.methods && key in vm.$options.methods) {\n                warn$2(\"The computed property \\\"\".concat(key, \"\\\" is already defined as a method.\"), vm);\n            }\n        }\n    }\n}\nfunction defineComputed(target, key, userDef) {\n    var shouldCache = !isServerRendering();\n    if (isFunction(userDef)) {\n        sharedPropertyDefinition.get = shouldCache\n            ? createComputedGetter(key)\n            : createGetterInvoker(userDef);\n        sharedPropertyDefinition.set = noop;\n    }\n    else {\n        sharedPropertyDefinition.get = userDef.get\n            ? shouldCache && userDef.cache !== false\n                ? createComputedGetter(key)\n                : createGetterInvoker(userDef.get)\n            : noop;\n        sharedPropertyDefinition.set = userDef.set || noop;\n    }\n    if ( true && sharedPropertyDefinition.set === noop) {\n        sharedPropertyDefinition.set = function () {\n            warn$2(\"Computed property \\\"\".concat(key, \"\\\" was assigned to but it has no setter.\"), this);\n        };\n    }\n    Object.defineProperty(target, key, sharedPropertyDefinition);\n}\nfunction createComputedGetter(key) {\n    return function computedGetter() {\n        var watcher = this._computedWatchers && this._computedWatchers[key];\n        if (watcher) {\n            if (watcher.dirty) {\n                watcher.evaluate();\n            }\n            if (Dep.target) {\n                if ( true && Dep.target.onTrack) {\n                    Dep.target.onTrack({\n                        effect: Dep.target,\n                        target: this,\n                        type: \"get\" /* TrackOpTypes.GET */,\n                        key: key\n                    });\n                }\n                watcher.depend();\n            }\n            return watcher.value;\n        }\n    };\n}\nfunction createGetterInvoker(fn) {\n    return function computedGetter() {\n        return fn.call(this, this);\n    };\n}\nfunction initMethods(vm, methods) {\n    var props = vm.$options.props;\n    for (var key in methods) {\n        if (true) {\n            if (typeof methods[key] !== 'function') {\n                warn$2(\"Method \\\"\".concat(key, \"\\\" has type \\\"\").concat(typeof methods[key], \"\\\" in the component definition. \") +\n                    \"Did you reference the function correctly?\", vm);\n            }\n            if (props && hasOwn(props, key)) {\n                warn$2(\"Method \\\"\".concat(key, \"\\\" has already been defined as a prop.\"), vm);\n            }\n            if (key in vm && isReserved(key)) {\n                warn$2(\"Method \\\"\".concat(key, \"\\\" conflicts with an existing Vue instance method. \") +\n                    \"Avoid defining component methods that start with _ or $.\");\n            }\n        }\n        vm[key] = typeof methods[key] !== 'function' ? noop : bind$1(methods[key], vm);\n    }\n}\nfunction initWatch(vm, watch) {\n    for (var key in watch) {\n        var handler = watch[key];\n        if (isArray(handler)) {\n            for (var i = 0; i < handler.length; i++) {\n                createWatcher(vm, key, handler[i]);\n            }\n        }\n        else {\n            createWatcher(vm, key, handler);\n        }\n    }\n}\nfunction createWatcher(vm, expOrFn, handler, options) {\n    if (isPlainObject(handler)) {\n        options = handler;\n        handler = handler.handler;\n    }\n    if (typeof handler === 'string') {\n        handler = vm[handler];\n    }\n    return vm.$watch(expOrFn, handler, options);\n}\nfunction stateMixin(Vue) {\n    // flow somehow has problems with directly declared definition object\n    // when using Object.defineProperty, so we have to procedurally build up\n    // the object here.\n    var dataDef = {};\n    dataDef.get = function () {\n        return this._data;\n    };\n    var propsDef = {};\n    propsDef.get = function () {\n        return this._props;\n    };\n    if (true) {\n        dataDef.set = function () {\n            warn$2('Avoid replacing instance root $data. ' +\n                'Use nested data properties instead.', this);\n        };\n        propsDef.set = function () {\n            warn$2(\"$props is readonly.\", this);\n        };\n    }\n    Object.defineProperty(Vue.prototype, '$data', dataDef);\n    Object.defineProperty(Vue.prototype, '$props', propsDef);\n    Vue.prototype.$set = set;\n    Vue.prototype.$delete = del;\n    Vue.prototype.$watch = function (expOrFn, cb, options) {\n        var vm = this;\n        if (isPlainObject(cb)) {\n            return createWatcher(vm, expOrFn, cb, options);\n        }\n        options = options || {};\n        options.user = true;\n        var watcher = new Watcher(vm, expOrFn, cb, options);\n        if (options.immediate) {\n            var info = \"callback for immediate watcher \\\"\".concat(watcher.expression, \"\\\"\");\n            pushTarget();\n            invokeWithErrorHandling(cb, vm, [watcher.value], vm, info);\n            popTarget();\n        }\n        return function unwatchFn() {\n            watcher.teardown();\n        };\n    };\n}\n\nfunction initProvide(vm) {\n    var provideOption = vm.$options.provide;\n    if (provideOption) {\n        var provided = isFunction(provideOption)\n            ? provideOption.call(vm)\n            : provideOption;\n        if (!isObject(provided)) {\n            return;\n        }\n        var source = resolveProvided(vm);\n        // IE9 doesn't support Object.getOwnPropertyDescriptors so we have to\n        // iterate the keys ourselves.\n        var keys = hasSymbol ? Reflect.ownKeys(provided) : Object.keys(provided);\n        for (var i = 0; i < keys.length; i++) {\n            var key = keys[i];\n            Object.defineProperty(source, key, Object.getOwnPropertyDescriptor(provided, key));\n        }\n    }\n}\nfunction initInjections(vm) {\n    var result = resolveInject(vm.$options.inject, vm);\n    if (result) {\n        toggleObserving(false);\n        Object.keys(result).forEach(function (key) {\n            /* istanbul ignore else */\n            if (true) {\n                defineReactive(vm, key, result[key], function () {\n                    warn$2(\"Avoid mutating an injected value directly since the changes will be \" +\n                        \"overwritten whenever the provided component re-renders. \" +\n                        \"injection being mutated: \\\"\".concat(key, \"\\\"\"), vm);\n                });\n            }\n            else {}\n        });\n        toggleObserving(true);\n    }\n}\nfunction resolveInject(inject, vm) {\n    if (inject) {\n        // inject is :any because flow is not smart enough to figure out cached\n        var result = Object.create(null);\n        var keys = hasSymbol ? Reflect.ownKeys(inject) : Object.keys(inject);\n        for (var i = 0; i < keys.length; i++) {\n            var key = keys[i];\n            // #6574 in case the inject object is observed...\n            if (key === '__ob__')\n                continue;\n            var provideKey = inject[key].from;\n            if (provideKey in vm._provided) {\n                result[key] = vm._provided[provideKey];\n            }\n            else if ('default' in inject[key]) {\n                var provideDefault = inject[key].default;\n                result[key] = isFunction(provideDefault)\n                    ? provideDefault.call(vm)\n                    : provideDefault;\n            }\n            else if (true) {\n                warn$2(\"Injection \\\"\".concat(key, \"\\\" not found\"), vm);\n            }\n        }\n        return result;\n    }\n}\n\nvar uid = 0;\nfunction initMixin$1(Vue) {\n    Vue.prototype._init = function (options) {\n        var vm = this;\n        // a uid\n        vm._uid = uid++;\n        var startTag, endTag;\n        /* istanbul ignore if */\n        if ( true && config.performance && mark) {\n            startTag = \"vue-perf-start:\".concat(vm._uid);\n            endTag = \"vue-perf-end:\".concat(vm._uid);\n            mark(startTag);\n        }\n        // a flag to mark this as a Vue instance without having to do instanceof\n        // check\n        vm._isVue = true;\n        // avoid instances from being observed\n        vm.__v_skip = true;\n        // effect scope\n        vm._scope = new EffectScope(true /* detached */);\n        vm._scope._vm = true;\n        // merge options\n        if (options && options._isComponent) {\n            // optimize internal component instantiation\n            // since dynamic options merging is pretty slow, and none of the\n            // internal component options needs special treatment.\n            initInternalComponent(vm, options);\n        }\n        else {\n            vm.$options = mergeOptions(resolveConstructorOptions(vm.constructor), options || {}, vm);\n        }\n        /* istanbul ignore else */\n        if (true) {\n            initProxy(vm);\n        }\n        else {}\n        // expose real self\n        vm._self = vm;\n        initLifecycle(vm);\n        initEvents(vm);\n        initRender(vm);\n        callHook$1(vm, 'beforeCreate', undefined, false /* setContext */);\n        initInjections(vm); // resolve injections before data/props\n        initState(vm);\n        initProvide(vm); // resolve provide after data/props\n        callHook$1(vm, 'created');\n        /* istanbul ignore if */\n        if ( true && config.performance && mark) {\n            vm._name = formatComponentName(vm, false);\n            mark(endTag);\n            measure(\"vue \".concat(vm._name, \" init\"), startTag, endTag);\n        }\n        if (vm.$options.el) {\n            vm.$mount(vm.$options.el);\n        }\n    };\n}\nfunction initInternalComponent(vm, options) {\n    var opts = (vm.$options = Object.create(vm.constructor.options));\n    // doing this because it's faster than dynamic enumeration.\n    var parentVnode = options._parentVnode;\n    opts.parent = options.parent;\n    opts._parentVnode = parentVnode;\n    var vnodeComponentOptions = parentVnode.componentOptions;\n    opts.propsData = vnodeComponentOptions.propsData;\n    opts._parentListeners = vnodeComponentOptions.listeners;\n    opts._renderChildren = vnodeComponentOptions.children;\n    opts._componentTag = vnodeComponentOptions.tag;\n    if (options.render) {\n        opts.render = options.render;\n        opts.staticRenderFns = options.staticRenderFns;\n    }\n}\nfunction resolveConstructorOptions(Ctor) {\n    var options = Ctor.options;\n    if (Ctor.super) {\n        var superOptions = resolveConstructorOptions(Ctor.super);\n        var cachedSuperOptions = Ctor.superOptions;\n        if (superOptions !== cachedSuperOptions) {\n            // super option changed,\n            // need to resolve new options.\n            Ctor.superOptions = superOptions;\n            // check if there are any late-modified/attached options (#4976)\n            var modifiedOptions = resolveModifiedOptions(Ctor);\n            // update base extend options\n            if (modifiedOptions) {\n                extend(Ctor.extendOptions, modifiedOptions);\n            }\n            options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);\n            if (options.name) {\n                options.components[options.name] = Ctor;\n            }\n        }\n    }\n    return options;\n}\nfunction resolveModifiedOptions(Ctor) {\n    var modified;\n    var latest = Ctor.options;\n    var sealed = Ctor.sealedOptions;\n    for (var key in latest) {\n        if (latest[key] !== sealed[key]) {\n            if (!modified)\n                modified = {};\n            modified[key] = latest[key];\n        }\n    }\n    return modified;\n}\n\nfunction FunctionalRenderContext(data, props, children, parent, Ctor) {\n    var _this = this;\n    var options = Ctor.options;\n    // ensure the createElement function in functional components\n    // gets a unique context - this is necessary for correct named slot check\n    var contextVm;\n    if (hasOwn(parent, '_uid')) {\n        contextVm = Object.create(parent);\n        contextVm._original = parent;\n    }\n    else {\n        // the context vm passed in is a functional context as well.\n        // in this case we want to make sure we are able to get a hold to the\n        // real context instance.\n        contextVm = parent;\n        // @ts-ignore\n        parent = parent._original;\n    }\n    var isCompiled = isTrue(options._compiled);\n    var needNormalization = !isCompiled;\n    this.data = data;\n    this.props = props;\n    this.children = children;\n    this.parent = parent;\n    this.listeners = data.on || emptyObject;\n    this.injections = resolveInject(options.inject, parent);\n    this.slots = function () {\n        if (!_this.$slots) {\n            normalizeScopedSlots(parent, data.scopedSlots, (_this.$slots = resolveSlots(children, parent)));\n        }\n        return _this.$slots;\n    };\n    Object.defineProperty(this, 'scopedSlots', {\n        enumerable: true,\n        get: function () {\n            return normalizeScopedSlots(parent, data.scopedSlots, this.slots());\n        }\n    });\n    // support for compiled functional template\n    if (isCompiled) {\n        // exposing $options for renderStatic()\n        this.$options = options;\n        // pre-resolve slots for renderSlot()\n        this.$slots = this.slots();\n        this.$scopedSlots = normalizeScopedSlots(parent, data.scopedSlots, this.$slots);\n    }\n    if (options._scopeId) {\n        this._c = function (a, b, c, d) {\n            var vnode = createElement$1(contextVm, a, b, c, d, needNormalization);\n            if (vnode && !isArray(vnode)) {\n                vnode.fnScopeId = options._scopeId;\n                vnode.fnContext = parent;\n            }\n            return vnode;\n        };\n    }\n    else {\n        this._c = function (a, b, c, d) {\n            return createElement$1(contextVm, a, b, c, d, needNormalization);\n        };\n    }\n}\ninstallRenderHelpers(FunctionalRenderContext.prototype);\nfunction createFunctionalComponent(Ctor, propsData, data, contextVm, children) {\n    var options = Ctor.options;\n    var props = {};\n    var propOptions = options.props;\n    if (isDef(propOptions)) {\n        for (var key in propOptions) {\n            props[key] = validateProp(key, propOptions, propsData || emptyObject);\n        }\n    }\n    else {\n        if (isDef(data.attrs))\n            mergeProps(props, data.attrs);\n        if (isDef(data.props))\n            mergeProps(props, data.props);\n    }\n    var renderContext = new FunctionalRenderContext(data, props, children, contextVm, Ctor);\n    var vnode = options.render.call(null, renderContext._c, renderContext);\n    if (vnode instanceof VNode) {\n        return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext);\n    }\n    else if (isArray(vnode)) {\n        var vnodes = normalizeChildren(vnode) || [];\n        var res = new Array(vnodes.length);\n        for (var i = 0; i < vnodes.length; i++) {\n            res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);\n        }\n        return res;\n    }\n}\nfunction cloneAndMarkFunctionalResult(vnode, data, contextVm, options, renderContext) {\n    // #7817 clone node before setting fnContext, otherwise if the node is reused\n    // (e.g. it was from a cached normal slot) the fnContext causes named slots\n    // that should not be matched to match.\n    var clone = cloneVNode(vnode);\n    clone.fnContext = contextVm;\n    clone.fnOptions = options;\n    if (true) {\n        (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext =\n            renderContext;\n    }\n    if (data.slot) {\n        (clone.data || (clone.data = {})).slot = data.slot;\n    }\n    return clone;\n}\nfunction mergeProps(to, from) {\n    for (var key in from) {\n        to[camelize(key)] = from[key];\n    }\n}\n\nfunction getComponentName(options) {\n    return options.name || options.__name || options._componentTag;\n}\n// inline hooks to be invoked on component VNodes during patch\nvar componentVNodeHooks = {\n    init: function (vnode, hydrating) {\n        if (vnode.componentInstance &&\n            !vnode.componentInstance._isDestroyed &&\n            vnode.data.keepAlive) {\n            // kept-alive components, treat as a patch\n            var mountedNode = vnode; // work around flow\n            componentVNodeHooks.prepatch(mountedNode, mountedNode);\n        }\n        else {\n            var child = (vnode.componentInstance = createComponentInstanceForVnode(vnode, activeInstance));\n            child.$mount(hydrating ? vnode.elm : undefined, hydrating);\n        }\n    },\n    prepatch: function (oldVnode, vnode) {\n        var options = vnode.componentOptions;\n        var child = (vnode.componentInstance = oldVnode.componentInstance);\n        updateChildComponent(child, options.propsData, // updated props\n        options.listeners, // updated listeners\n        vnode, // new parent vnode\n        options.children // new children\n        );\n    },\n    insert: function (vnode) {\n        var context = vnode.context, componentInstance = vnode.componentInstance;\n        if (!componentInstance._isMounted) {\n            componentInstance._isMounted = true;\n            callHook$1(componentInstance, 'mounted');\n        }\n        if (vnode.data.keepAlive) {\n            if (context._isMounted) {\n                // vue-router#1212\n                // During updates, a kept-alive component's child components may\n                // change, so directly walking the tree here may call activated hooks\n                // on incorrect children. Instead we push them into a queue which will\n                // be processed after the whole patch process ended.\n                queueActivatedComponent(componentInstance);\n            }\n            else {\n                activateChildComponent(componentInstance, true /* direct */);\n            }\n        }\n    },\n    destroy: function (vnode) {\n        var componentInstance = vnode.componentInstance;\n        if (!componentInstance._isDestroyed) {\n            if (!vnode.data.keepAlive) {\n                componentInstance.$destroy();\n            }\n            else {\n                deactivateChildComponent(componentInstance, true /* direct */);\n            }\n        }\n    }\n};\nvar hooksToMerge = Object.keys(componentVNodeHooks);\nfunction createComponent(Ctor, data, context, children, tag) {\n    if (isUndef(Ctor)) {\n        return;\n    }\n    var baseCtor = context.$options._base;\n    // plain options object: turn it into a constructor\n    if (isObject(Ctor)) {\n        Ctor = baseCtor.extend(Ctor);\n    }\n    // if at this stage it's not a constructor or an async component factory,\n    // reject.\n    if (typeof Ctor !== 'function') {\n        if (true) {\n            warn$2(\"Invalid Component definition: \".concat(String(Ctor)), context);\n        }\n        return;\n    }\n    // async component\n    var asyncFactory;\n    // @ts-expect-error\n    if (isUndef(Ctor.cid)) {\n        asyncFactory = Ctor;\n        Ctor = resolveAsyncComponent(asyncFactory, baseCtor);\n        if (Ctor === undefined) {\n            // return a placeholder node for async component, which is rendered\n            // as a comment node but preserves all the raw information for the node.\n            // the information will be used for async server-rendering and hydration.\n            return createAsyncPlaceholder(asyncFactory, data, context, children, tag);\n        }\n    }\n    data = data || {};\n    // resolve constructor options in case global mixins are applied after\n    // component constructor creation\n    resolveConstructorOptions(Ctor);\n    // transform component v-model data into props & events\n    if (isDef(data.model)) {\n        // @ts-expect-error\n        transformModel(Ctor.options, data);\n    }\n    // extract props\n    // @ts-expect-error\n    var propsData = extractPropsFromVNodeData(data, Ctor, tag);\n    // functional component\n    // @ts-expect-error\n    if (isTrue(Ctor.options.functional)) {\n        return createFunctionalComponent(Ctor, propsData, data, context, children);\n    }\n    // extract listeners, since these needs to be treated as\n    // child component listeners instead of DOM listeners\n    var listeners = data.on;\n    // replace with listeners with .native modifier\n    // so it gets processed during parent component patch.\n    data.on = data.nativeOn;\n    // @ts-expect-error\n    if (isTrue(Ctor.options.abstract)) {\n        // abstract components do not keep anything\n        // other than props & listeners & slot\n        // work around flow\n        var slot = data.slot;\n        data = {};\n        if (slot) {\n            data.slot = slot;\n        }\n    }\n    // install component management hooks onto the placeholder node\n    installComponentHooks(data);\n    // return a placeholder vnode\n    // @ts-expect-error\n    var name = getComponentName(Ctor.options) || tag;\n    var vnode = new VNode(\n    // @ts-expect-error\n    \"vue-component-\".concat(Ctor.cid).concat(name ? \"-\".concat(name) : ''), data, undefined, undefined, undefined, context, \n    // @ts-expect-error\n    { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children }, asyncFactory);\n    return vnode;\n}\nfunction createComponentInstanceForVnode(\n// we know it's MountedComponentVNode but flow doesn't\nvnode, \n// activeInstance in lifecycle state\nparent) {\n    var options = {\n        _isComponent: true,\n        _parentVnode: vnode,\n        parent: parent\n    };\n    // check inline-template render functions\n    var inlineTemplate = vnode.data.inlineTemplate;\n    if (isDef(inlineTemplate)) {\n        options.render = inlineTemplate.render;\n        options.staticRenderFns = inlineTemplate.staticRenderFns;\n    }\n    return new vnode.componentOptions.Ctor(options);\n}\nfunction installComponentHooks(data) {\n    var hooks = data.hook || (data.hook = {});\n    for (var i = 0; i < hooksToMerge.length; i++) {\n        var key = hooksToMerge[i];\n        var existing = hooks[key];\n        var toMerge = componentVNodeHooks[key];\n        // @ts-expect-error\n        if (existing !== toMerge && !(existing && existing._merged)) {\n            hooks[key] = existing ? mergeHook(toMerge, existing) : toMerge;\n        }\n    }\n}\nfunction mergeHook(f1, f2) {\n    var merged = function (a, b) {\n        // flow complains about extra args which is why we use any\n        f1(a, b);\n        f2(a, b);\n    };\n    merged._merged = true;\n    return merged;\n}\n// transform component v-model info (value and callback) into\n// prop and event handler respectively.\nfunction transformModel(options, data) {\n    var prop = (options.model && options.model.prop) || 'value';\n    var event = (options.model && options.model.event) || 'input';\n    (data.attrs || (data.attrs = {}))[prop] = data.model.value;\n    var on = data.on || (data.on = {});\n    var existing = on[event];\n    var callback = data.model.callback;\n    if (isDef(existing)) {\n        if (isArray(existing)\n            ? existing.indexOf(callback) === -1\n            : existing !== callback) {\n            on[event] = [callback].concat(existing);\n        }\n    }\n    else {\n        on[event] = callback;\n    }\n}\n\nvar warn$2 = noop;\nvar tip = noop;\nvar generateComponentTrace; // work around flow check\nvar formatComponentName;\nif (true) {\n    var hasConsole_1 = typeof console !== 'undefined';\n    var classifyRE_1 = /(?:^|[-_])(\\w)/g;\n    var classify_1 = function (str) {\n        return str.replace(classifyRE_1, function (c) { return c.toUpperCase(); }).replace(/[-_]/g, '');\n    };\n    warn$2 = function (msg, vm) {\n        if (vm === void 0) { vm = currentInstance; }\n        var trace = vm ? generateComponentTrace(vm) : '';\n        if (config.warnHandler) {\n            config.warnHandler.call(null, msg, vm, trace);\n        }\n        else if (hasConsole_1 && !config.silent) {\n            console.error(\"[Vue warn]: \".concat(msg).concat(trace));\n        }\n    };\n    tip = function (msg, vm) {\n        if (hasConsole_1 && !config.silent) {\n            console.warn(\"[Vue tip]: \".concat(msg) + (vm ? generateComponentTrace(vm) : ''));\n        }\n    };\n    formatComponentName = function (vm, includeFile) {\n        if (vm.$root === vm) {\n            return '<Root>';\n        }\n        var options = isFunction(vm) && vm.cid != null\n            ? vm.options\n            : vm._isVue\n                ? vm.$options || vm.constructor.options\n                : vm;\n        var name = getComponentName(options);\n        var file = options.__file;\n        if (!name && file) {\n            var match = file.match(/([^/\\\\]+)\\.vue$/);\n            name = match && match[1];\n        }\n        return ((name ? \"<\".concat(classify_1(name), \">\") : \"<Anonymous>\") +\n            (file && includeFile !== false ? \" at \".concat(file) : ''));\n    };\n    var repeat_1 = function (str, n) {\n        var res = '';\n        while (n) {\n            if (n % 2 === 1)\n                res += str;\n            if (n > 1)\n                str += str;\n            n >>= 1;\n        }\n        return res;\n    };\n    generateComponentTrace = function (vm) {\n        if (vm._isVue && vm.$parent) {\n            var tree = [];\n            var currentRecursiveSequence = 0;\n            while (vm) {\n                if (tree.length > 0) {\n                    var last = tree[tree.length - 1];\n                    if (last.constructor === vm.constructor) {\n                        currentRecursiveSequence++;\n                        vm = vm.$parent;\n                        continue;\n                    }\n                    else if (currentRecursiveSequence > 0) {\n                        tree[tree.length - 1] = [last, currentRecursiveSequence];\n                        currentRecursiveSequence = 0;\n                    }\n                }\n                tree.push(vm);\n                vm = vm.$parent;\n            }\n            return ('\\n\\nfound in\\n\\n' +\n                tree\n                    .map(function (vm, i) {\n                    return \"\".concat(i === 0 ? '---> ' : repeat_1(' ', 5 + i * 2)).concat(isArray(vm)\n                        ? \"\".concat(formatComponentName(vm[0]), \"... (\").concat(vm[1], \" recursive calls)\")\n                        : formatComponentName(vm));\n                })\n                    .join('\\n'));\n        }\n        else {\n            return \"\\n\\n(found in \".concat(formatComponentName(vm), \")\");\n        }\n    };\n}\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n/**\n * Options with restrictions\n */\nif (true) {\n    strats.el = strats.propsData = function (parent, child, vm, key) {\n        if (!vm) {\n            warn$2(\"option \\\"\".concat(key, \"\\\" can only be used during instance \") +\n                'creation with the `new` keyword.');\n        }\n        return defaultStrat(parent, child);\n    };\n}\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData(to, from, recursive) {\n    if (recursive === void 0) { recursive = true; }\n    if (!from)\n        return to;\n    var key, toVal, fromVal;\n    var keys = hasSymbol\n        ? Reflect.ownKeys(from)\n        : Object.keys(from);\n    for (var i = 0; i < keys.length; i++) {\n        key = keys[i];\n        // in case the object is already observed...\n        if (key === '__ob__')\n            continue;\n        toVal = to[key];\n        fromVal = from[key];\n        if (!recursive || !hasOwn(to, key)) {\n            set(to, key, fromVal);\n        }\n        else if (toVal !== fromVal &&\n            isPlainObject(toVal) &&\n            isPlainObject(fromVal)) {\n            mergeData(toVal, fromVal);\n        }\n    }\n    return to;\n}\n/**\n * Data\n */\nfunction mergeDataOrFn(parentVal, childVal, vm) {\n    if (!vm) {\n        // in a Vue.extend merge, both should be functions\n        if (!childVal) {\n            return parentVal;\n        }\n        if (!parentVal) {\n            return childVal;\n        }\n        // when parentVal & childVal are both present,\n        // we need to return a function that returns the\n        // merged result of both functions... no need to\n        // check if parentVal is a function here because\n        // it has to be a function to pass previous merges.\n        return function mergedDataFn() {\n            return mergeData(isFunction(childVal) ? childVal.call(this, this) : childVal, isFunction(parentVal) ? parentVal.call(this, this) : parentVal);\n        };\n    }\n    else {\n        return function mergedInstanceDataFn() {\n            // instance merge\n            var instanceData = isFunction(childVal)\n                ? childVal.call(vm, vm)\n                : childVal;\n            var defaultData = isFunction(parentVal)\n                ? parentVal.call(vm, vm)\n                : parentVal;\n            if (instanceData) {\n                return mergeData(instanceData, defaultData);\n            }\n            else {\n                return defaultData;\n            }\n        };\n    }\n}\nstrats.data = function (parentVal, childVal, vm) {\n    if (!vm) {\n        if (childVal && typeof childVal !== 'function') {\n             true &&\n                warn$2('The \"data\" option should be a function ' +\n                    'that returns a per-instance value in component ' +\n                    'definitions.', vm);\n            return parentVal;\n        }\n        return mergeDataOrFn(parentVal, childVal);\n    }\n    return mergeDataOrFn(parentVal, childVal, vm);\n};\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeLifecycleHook(parentVal, childVal) {\n    var res = childVal\n        ? parentVal\n            ? parentVal.concat(childVal)\n            : isArray(childVal)\n                ? childVal\n                : [childVal]\n        : parentVal;\n    return res ? dedupeHooks(res) : res;\n}\nfunction dedupeHooks(hooks) {\n    var res = [];\n    for (var i = 0; i < hooks.length; i++) {\n        if (res.indexOf(hooks[i]) === -1) {\n            res.push(hooks[i]);\n        }\n    }\n    return res;\n}\nLIFECYCLE_HOOKS.forEach(function (hook) {\n    strats[hook] = mergeLifecycleHook;\n});\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets(parentVal, childVal, vm, key) {\n    var res = Object.create(parentVal || null);\n    if (childVal) {\n         true && assertObjectType(key, childVal, vm);\n        return extend(res, childVal);\n    }\n    else {\n        return res;\n    }\n}\nASSET_TYPES.forEach(function (type) {\n    strats[type + 's'] = mergeAssets;\n});\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (parentVal, childVal, vm, key) {\n    // work around Firefox's Object.prototype.watch...\n    //@ts-expect-error work around\n    if (parentVal === nativeWatch)\n        parentVal = undefined;\n    //@ts-expect-error work around\n    if (childVal === nativeWatch)\n        childVal = undefined;\n    /* istanbul ignore if */\n    if (!childVal)\n        return Object.create(parentVal || null);\n    if (true) {\n        assertObjectType(key, childVal, vm);\n    }\n    if (!parentVal)\n        return childVal;\n    var ret = {};\n    extend(ret, parentVal);\n    for (var key_1 in childVal) {\n        var parent_1 = ret[key_1];\n        var child = childVal[key_1];\n        if (parent_1 && !isArray(parent_1)) {\n            parent_1 = [parent_1];\n        }\n        ret[key_1] = parent_1 ? parent_1.concat(child) : isArray(child) ? child : [child];\n    }\n    return ret;\n};\n/**\n * Other object hashes.\n */\nstrats.props =\n    strats.methods =\n        strats.inject =\n            strats.computed =\n                function (parentVal, childVal, vm, key) {\n                    if (childVal && \"staging\" !== 'production') {\n                        assertObjectType(key, childVal, vm);\n                    }\n                    if (!parentVal)\n                        return childVal;\n                    var ret = Object.create(null);\n                    extend(ret, parentVal);\n                    if (childVal)\n                        extend(ret, childVal);\n                    return ret;\n                };\nstrats.provide = function (parentVal, childVal) {\n    if (!parentVal)\n        return childVal;\n    return function () {\n        var ret = Object.create(null);\n        mergeData(ret, isFunction(parentVal) ? parentVal.call(this) : parentVal);\n        if (childVal) {\n            mergeData(ret, isFunction(childVal) ? childVal.call(this) : childVal, false // non-recursive\n            );\n        }\n        return ret;\n    };\n};\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n    return childVal === undefined ? parentVal : childVal;\n};\n/**\n * Validate component names\n */\nfunction checkComponents(options) {\n    for (var key in options.components) {\n        validateComponentName(key);\n    }\n}\nfunction validateComponentName(name) {\n    if (!new RegExp(\"^[a-zA-Z][\\\\-\\\\.0-9_\".concat(unicodeRegExp.source, \"]*$\")).test(name)) {\n        warn$2('Invalid component name: \"' +\n            name +\n            '\". Component names ' +\n            'should conform to valid custom element name in html5 specification.');\n    }\n    if (isBuiltInTag(name) || config.isReservedTag(name)) {\n        warn$2('Do not use built-in or reserved HTML elements as component ' +\n            'id: ' +\n            name);\n    }\n}\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps(options, vm) {\n    var props = options.props;\n    if (!props)\n        return;\n    var res = {};\n    var i, val, name;\n    if (isArray(props)) {\n        i = props.length;\n        while (i--) {\n            val = props[i];\n            if (typeof val === 'string') {\n                name = camelize(val);\n                res[name] = { type: null };\n            }\n            else if (true) {\n                warn$2('props must be strings when using array syntax.');\n            }\n        }\n    }\n    else if (isPlainObject(props)) {\n        for (var key in props) {\n            val = props[key];\n            name = camelize(key);\n            res[name] = isPlainObject(val) ? val : { type: val };\n        }\n    }\n    else if (true) {\n        warn$2(\"Invalid value for option \\\"props\\\": expected an Array or an Object, \" +\n            \"but got \".concat(toRawType(props), \".\"), vm);\n    }\n    options.props = res;\n}\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject(options, vm) {\n    var inject = options.inject;\n    if (!inject)\n        return;\n    var normalized = (options.inject = {});\n    if (isArray(inject)) {\n        for (var i = 0; i < inject.length; i++) {\n            normalized[inject[i]] = { from: inject[i] };\n        }\n    }\n    else if (isPlainObject(inject)) {\n        for (var key in inject) {\n            var val = inject[key];\n            normalized[key] = isPlainObject(val)\n                ? extend({ from: key }, val)\n                : { from: val };\n        }\n    }\n    else if (true) {\n        warn$2(\"Invalid value for option \\\"inject\\\": expected an Array or an Object, \" +\n            \"but got \".concat(toRawType(inject), \".\"), vm);\n    }\n}\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives$1(options) {\n    var dirs = options.directives;\n    if (dirs) {\n        for (var key in dirs) {\n            var def = dirs[key];\n            if (isFunction(def)) {\n                dirs[key] = { bind: def, update: def };\n            }\n        }\n    }\n}\nfunction assertObjectType(name, value, vm) {\n    if (!isPlainObject(value)) {\n        warn$2(\"Invalid value for option \\\"\".concat(name, \"\\\": expected an Object, \") +\n            \"but got \".concat(toRawType(value), \".\"), vm);\n    }\n}\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions(parent, child, vm) {\n    if (true) {\n        checkComponents(child);\n    }\n    if (isFunction(child)) {\n        // @ts-expect-error\n        child = child.options;\n    }\n    normalizeProps(child, vm);\n    normalizeInject(child, vm);\n    normalizeDirectives$1(child);\n    // Apply extends and mixins on the child options,\n    // but only if it is a raw options object that isn't\n    // the result of another mergeOptions call.\n    // Only merged options has the _base property.\n    if (!child._base) {\n        if (child.extends) {\n            parent = mergeOptions(parent, child.extends, vm);\n        }\n        if (child.mixins) {\n            for (var i = 0, l = child.mixins.length; i < l; i++) {\n                parent = mergeOptions(parent, child.mixins[i], vm);\n            }\n        }\n    }\n    var options = {};\n    var key;\n    for (key in parent) {\n        mergeField(key);\n    }\n    for (key in child) {\n        if (!hasOwn(parent, key)) {\n            mergeField(key);\n        }\n    }\n    function mergeField(key) {\n        var strat = strats[key] || defaultStrat;\n        options[key] = strat(parent[key], child[key], vm, key);\n    }\n    return options;\n}\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset(options, type, id, warnMissing) {\n    /* istanbul ignore if */\n    if (typeof id !== 'string') {\n        return;\n    }\n    var assets = options[type];\n    // check local registration variations first\n    if (hasOwn(assets, id))\n        return assets[id];\n    var camelizedId = camelize(id);\n    if (hasOwn(assets, camelizedId))\n        return assets[camelizedId];\n    var PascalCaseId = capitalize(camelizedId);\n    if (hasOwn(assets, PascalCaseId))\n        return assets[PascalCaseId];\n    // fallback to prototype chain\n    var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n    if ( true && warnMissing && !res) {\n        warn$2('Failed to resolve ' + type.slice(0, -1) + ': ' + id);\n    }\n    return res;\n}\n\nfunction validateProp(key, propOptions, propsData, vm) {\n    var prop = propOptions[key];\n    var absent = !hasOwn(propsData, key);\n    var value = propsData[key];\n    // boolean casting\n    var booleanIndex = getTypeIndex(Boolean, prop.type);\n    if (booleanIndex > -1) {\n        if (absent && !hasOwn(prop, 'default')) {\n            value = false;\n        }\n        else if (value === '' || value === hyphenate(key)) {\n            // only cast empty string / same name to boolean if\n            // boolean has higher priority\n            var stringIndex = getTypeIndex(String, prop.type);\n            if (stringIndex < 0 || booleanIndex < stringIndex) {\n                value = true;\n            }\n        }\n    }\n    // check default value\n    if (value === undefined) {\n        value = getPropDefaultValue(vm, prop, key);\n        // since the default value is a fresh copy,\n        // make sure to observe it.\n        var prevShouldObserve = shouldObserve;\n        toggleObserving(true);\n        observe(value);\n        toggleObserving(prevShouldObserve);\n    }\n    if (true) {\n        assertProp(prop, key, value, vm, absent);\n    }\n    return value;\n}\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue(vm, prop, key) {\n    // no default, return undefined\n    if (!hasOwn(prop, 'default')) {\n        return undefined;\n    }\n    var def = prop.default;\n    // warn against non-factory defaults for Object & Array\n    if ( true && isObject(def)) {\n        warn$2('Invalid default value for prop \"' +\n            key +\n            '\": ' +\n            'Props with type Object/Array must use a factory function ' +\n            'to return the default value.', vm);\n    }\n    // the raw prop value was also undefined from previous render,\n    // return previous default value to avoid unnecessary watcher trigger\n    if (vm &&\n        vm.$options.propsData &&\n        vm.$options.propsData[key] === undefined &&\n        vm._props[key] !== undefined) {\n        return vm._props[key];\n    }\n    // call factory function for non-Function types\n    // a value is Function if its prototype is function even across different execution context\n    return isFunction(def) && getType(prop.type) !== 'Function'\n        ? def.call(vm)\n        : def;\n}\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp(prop, name, value, vm, absent) {\n    if (prop.required && absent) {\n        warn$2('Missing required prop: \"' + name + '\"', vm);\n        return;\n    }\n    if (value == null && !prop.required) {\n        return;\n    }\n    var type = prop.type;\n    var valid = !type || type === true;\n    var expectedTypes = [];\n    if (type) {\n        if (!isArray(type)) {\n            type = [type];\n        }\n        for (var i = 0; i < type.length && !valid; i++) {\n            var assertedType = assertType(value, type[i], vm);\n            expectedTypes.push(assertedType.expectedType || '');\n            valid = assertedType.valid;\n        }\n    }\n    var haveExpectedTypes = expectedTypes.some(function (t) { return t; });\n    if (!valid && haveExpectedTypes) {\n        warn$2(getInvalidTypeMessage(name, value, expectedTypes), vm);\n        return;\n    }\n    var validator = prop.validator;\n    if (validator) {\n        if (!validator(value)) {\n            warn$2('Invalid prop: custom validator check failed for prop \"' + name + '\".', vm);\n        }\n    }\n}\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol|BigInt)$/;\nfunction assertType(value, type, vm) {\n    var valid;\n    var expectedType = getType(type);\n    if (simpleCheckRE.test(expectedType)) {\n        var t = typeof value;\n        valid = t === expectedType.toLowerCase();\n        // for primitive wrapper objects\n        if (!valid && t === 'object') {\n            valid = value instanceof type;\n        }\n    }\n    else if (expectedType === 'Object') {\n        valid = isPlainObject(value);\n    }\n    else if (expectedType === 'Array') {\n        valid = isArray(value);\n    }\n    else {\n        try {\n            valid = value instanceof type;\n        }\n        catch (e) {\n            warn$2('Invalid prop type: \"' + String(type) + '\" is not a constructor', vm);\n            valid = false;\n        }\n    }\n    return {\n        valid: valid,\n        expectedType: expectedType\n    };\n}\nvar functionTypeCheckRE = /^\\s*function (\\w+)/;\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType(fn) {\n    var match = fn && fn.toString().match(functionTypeCheckRE);\n    return match ? match[1] : '';\n}\nfunction isSameType(a, b) {\n    return getType(a) === getType(b);\n}\nfunction getTypeIndex(type, expectedTypes) {\n    if (!isArray(expectedTypes)) {\n        return isSameType(expectedTypes, type) ? 0 : -1;\n    }\n    for (var i = 0, len = expectedTypes.length; i < len; i++) {\n        if (isSameType(expectedTypes[i], type)) {\n            return i;\n        }\n    }\n    return -1;\n}\nfunction getInvalidTypeMessage(name, value, expectedTypes) {\n    var message = \"Invalid prop: type check failed for prop \\\"\".concat(name, \"\\\".\") +\n        \" Expected \".concat(expectedTypes.map(capitalize).join(', '));\n    var expectedType = expectedTypes[0];\n    var receivedType = toRawType(value);\n    // check if we need to specify expected value\n    if (expectedTypes.length === 1 &&\n        isExplicable(expectedType) &&\n        isExplicable(typeof value) &&\n        !isBoolean(expectedType, receivedType)) {\n        message += \" with value \".concat(styleValue(value, expectedType));\n    }\n    message += \", got \".concat(receivedType, \" \");\n    // check if we need to specify received value\n    if (isExplicable(receivedType)) {\n        message += \"with value \".concat(styleValue(value, receivedType), \".\");\n    }\n    return message;\n}\nfunction styleValue(value, type) {\n    if (type === 'String') {\n        return \"\\\"\".concat(value, \"\\\"\");\n    }\n    else if (type === 'Number') {\n        return \"\".concat(Number(value));\n    }\n    else {\n        return \"\".concat(value);\n    }\n}\nvar EXPLICABLE_TYPES = ['string', 'number', 'boolean'];\nfunction isExplicable(value) {\n    return EXPLICABLE_TYPES.some(function (elem) { return value.toLowerCase() === elem; });\n}\nfunction isBoolean() {\n    var args = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        args[_i] = arguments[_i];\n    }\n    return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; });\n}\n\nfunction Vue(options) {\n    if ( true && !(this instanceof Vue)) {\n        warn$2('Vue is a constructor and should be called with the `new` keyword');\n    }\n    this._init(options);\n}\n//@ts-expect-error Vue has function type\ninitMixin$1(Vue);\n//@ts-expect-error Vue has function type\nstateMixin(Vue);\n//@ts-expect-error Vue has function type\neventsMixin(Vue);\n//@ts-expect-error Vue has function type\nlifecycleMixin(Vue);\n//@ts-expect-error Vue has function type\nrenderMixin(Vue);\n\nfunction initUse(Vue) {\n    Vue.use = function (plugin) {\n        var installedPlugins = this._installedPlugins || (this._installedPlugins = []);\n        if (installedPlugins.indexOf(plugin) > -1) {\n            return this;\n        }\n        // additional parameters\n        var args = toArray(arguments, 1);\n        args.unshift(this);\n        if (isFunction(plugin.install)) {\n            plugin.install.apply(plugin, args);\n        }\n        else if (isFunction(plugin)) {\n            plugin.apply(null, args);\n        }\n        installedPlugins.push(plugin);\n        return this;\n    };\n}\n\nfunction initMixin(Vue) {\n    Vue.mixin = function (mixin) {\n        this.options = mergeOptions(this.options, mixin);\n        return this;\n    };\n}\n\nfunction initExtend(Vue) {\n    /**\n     * Each instance constructor, including Vue, has a unique\n     * cid. This enables us to create wrapped \"child\n     * constructors\" for prototypal inheritance and cache them.\n     */\n    Vue.cid = 0;\n    var cid = 1;\n    /**\n     * Class inheritance\n     */\n    Vue.extend = function (extendOptions) {\n        extendOptions = extendOptions || {};\n        var Super = this;\n        var SuperId = Super.cid;\n        var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});\n        if (cachedCtors[SuperId]) {\n            return cachedCtors[SuperId];\n        }\n        var name = getComponentName(extendOptions) || getComponentName(Super.options);\n        if ( true && name) {\n            validateComponentName(name);\n        }\n        var Sub = function VueComponent(options) {\n            this._init(options);\n        };\n        Sub.prototype = Object.create(Super.prototype);\n        Sub.prototype.constructor = Sub;\n        Sub.cid = cid++;\n        Sub.options = mergeOptions(Super.options, extendOptions);\n        Sub['super'] = Super;\n        // For props and computed properties, we define the proxy getters on\n        // the Vue instances at extension time, on the extended prototype. This\n        // avoids Object.defineProperty calls for each instance created.\n        if (Sub.options.props) {\n            initProps(Sub);\n        }\n        if (Sub.options.computed) {\n            initComputed(Sub);\n        }\n        // allow further extension/mixin/plugin usage\n        Sub.extend = Super.extend;\n        Sub.mixin = Super.mixin;\n        Sub.use = Super.use;\n        // create asset registers, so extended classes\n        // can have their private assets too.\n        ASSET_TYPES.forEach(function (type) {\n            Sub[type] = Super[type];\n        });\n        // enable recursive self-lookup\n        if (name) {\n            Sub.options.components[name] = Sub;\n        }\n        // keep a reference to the super options at extension time.\n        // later at instantiation we can check if Super's options have\n        // been updated.\n        Sub.superOptions = Super.options;\n        Sub.extendOptions = extendOptions;\n        Sub.sealedOptions = extend({}, Sub.options);\n        // cache constructor\n        cachedCtors[SuperId] = Sub;\n        return Sub;\n    };\n}\nfunction initProps(Comp) {\n    var props = Comp.options.props;\n    for (var key in props) {\n        proxy(Comp.prototype, \"_props\", key);\n    }\n}\nfunction initComputed(Comp) {\n    var computed = Comp.options.computed;\n    for (var key in computed) {\n        defineComputed(Comp.prototype, key, computed[key]);\n    }\n}\n\nfunction initAssetRegisters(Vue) {\n    /**\n     * Create asset registration methods.\n     */\n    ASSET_TYPES.forEach(function (type) {\n        // @ts-expect-error function is not exact same type\n        Vue[type] = function (id, definition) {\n            if (!definition) {\n                return this.options[type + 's'][id];\n            }\n            else {\n                /* istanbul ignore if */\n                if ( true && type === 'component') {\n                    validateComponentName(id);\n                }\n                if (type === 'component' && isPlainObject(definition)) {\n                    // @ts-expect-error\n                    definition.name = definition.name || id;\n                    definition = this.options._base.extend(definition);\n                }\n                if (type === 'directive' && isFunction(definition)) {\n                    definition = { bind: definition, update: definition };\n                }\n                this.options[type + 's'][id] = definition;\n                return definition;\n            }\n        };\n    });\n}\n\nfunction _getComponentName(opts) {\n    return opts && (getComponentName(opts.Ctor.options) || opts.tag);\n}\nfunction matches(pattern, name) {\n    if (isArray(pattern)) {\n        return pattern.indexOf(name) > -1;\n    }\n    else if (typeof pattern === 'string') {\n        return pattern.split(',').indexOf(name) > -1;\n    }\n    else if (isRegExp(pattern)) {\n        return pattern.test(name);\n    }\n    /* istanbul ignore next */\n    return false;\n}\nfunction pruneCache(keepAliveInstance, filter) {\n    var cache = keepAliveInstance.cache, keys = keepAliveInstance.keys, _vnode = keepAliveInstance._vnode;\n    for (var key in cache) {\n        var entry = cache[key];\n        if (entry) {\n            var name_1 = entry.name;\n            if (name_1 && !filter(name_1)) {\n                pruneCacheEntry(cache, key, keys, _vnode);\n            }\n        }\n    }\n}\nfunction pruneCacheEntry(cache, key, keys, current) {\n    var entry = cache[key];\n    if (entry && (!current || entry.tag !== current.tag)) {\n        // @ts-expect-error can be undefined\n        entry.componentInstance.$destroy();\n    }\n    cache[key] = null;\n    remove$2(keys, key);\n}\nvar patternTypes = [String, RegExp, Array];\n// TODO defineComponent\nvar KeepAlive = {\n    name: 'keep-alive',\n    abstract: true,\n    props: {\n        include: patternTypes,\n        exclude: patternTypes,\n        max: [String, Number]\n    },\n    methods: {\n        cacheVNode: function () {\n            var _a = this, cache = _a.cache, keys = _a.keys, vnodeToCache = _a.vnodeToCache, keyToCache = _a.keyToCache;\n            if (vnodeToCache) {\n                var tag = vnodeToCache.tag, componentInstance = vnodeToCache.componentInstance, componentOptions = vnodeToCache.componentOptions;\n                cache[keyToCache] = {\n                    name: _getComponentName(componentOptions),\n                    tag: tag,\n                    componentInstance: componentInstance\n                };\n                keys.push(keyToCache);\n                // prune oldest entry\n                if (this.max && keys.length > parseInt(this.max)) {\n                    pruneCacheEntry(cache, keys[0], keys, this._vnode);\n                }\n                this.vnodeToCache = null;\n            }\n        }\n    },\n    created: function () {\n        this.cache = Object.create(null);\n        this.keys = [];\n    },\n    destroyed: function () {\n        for (var key in this.cache) {\n            pruneCacheEntry(this.cache, key, this.keys);\n        }\n    },\n    mounted: function () {\n        var _this = this;\n        this.cacheVNode();\n        this.$watch('include', function (val) {\n            pruneCache(_this, function (name) { return matches(val, name); });\n        });\n        this.$watch('exclude', function (val) {\n            pruneCache(_this, function (name) { return !matches(val, name); });\n        });\n    },\n    updated: function () {\n        this.cacheVNode();\n    },\n    render: function () {\n        var slot = this.$slots.default;\n        var vnode = getFirstComponentChild(slot);\n        var componentOptions = vnode && vnode.componentOptions;\n        if (componentOptions) {\n            // check pattern\n            var name_2 = _getComponentName(componentOptions);\n            var _a = this, include = _a.include, exclude = _a.exclude;\n            if (\n            // not included\n            (include && (!name_2 || !matches(include, name_2))) ||\n                // excluded\n                (exclude && name_2 && matches(exclude, name_2))) {\n                return vnode;\n            }\n            var _b = this, cache = _b.cache, keys = _b.keys;\n            var key = vnode.key == null\n                ? // same constructor may get registered as different local components\n                    // so cid alone is not enough (#3269)\n                    componentOptions.Ctor.cid +\n                        (componentOptions.tag ? \"::\".concat(componentOptions.tag) : '')\n                : vnode.key;\n            if (cache[key]) {\n                vnode.componentInstance = cache[key].componentInstance;\n                // make current key freshest\n                remove$2(keys, key);\n                keys.push(key);\n            }\n            else {\n                // delay setting the cache until update\n                this.vnodeToCache = vnode;\n                this.keyToCache = key;\n            }\n            // @ts-expect-error can vnode.data can be undefined\n            vnode.data.keepAlive = true;\n        }\n        return vnode || (slot && slot[0]);\n    }\n};\n\nvar builtInComponents = {\n    KeepAlive: KeepAlive\n};\n\nfunction initGlobalAPI(Vue) {\n    // config\n    var configDef = {};\n    configDef.get = function () { return config; };\n    if (true) {\n        configDef.set = function () {\n            warn$2('Do not replace the Vue.config object, set individual fields instead.');\n        };\n    }\n    Object.defineProperty(Vue, 'config', configDef);\n    // exposed util methods.\n    // NOTE: these are not considered part of the public API - avoid relying on\n    // them unless you are aware of the risk.\n    Vue.util = {\n        warn: warn$2,\n        extend: extend,\n        mergeOptions: mergeOptions,\n        defineReactive: defineReactive\n    };\n    Vue.set = set;\n    Vue.delete = del;\n    Vue.nextTick = nextTick;\n    // 2.6 explicit observable API\n    Vue.observable = function (obj) {\n        observe(obj);\n        return obj;\n    };\n    Vue.options = Object.create(null);\n    ASSET_TYPES.forEach(function (type) {\n        Vue.options[type + 's'] = Object.create(null);\n    });\n    // this is used to identify the \"base\" constructor to extend all plain-object\n    // components with in Weex's multi-instance scenarios.\n    Vue.options._base = Vue;\n    extend(Vue.options.components, builtInComponents);\n    initUse(Vue);\n    initMixin(Vue);\n    initExtend(Vue);\n    initAssetRegisters(Vue);\n}\n\ninitGlobalAPI(Vue);\nObject.defineProperty(Vue.prototype, '$isServer', {\n    get: isServerRendering\n});\nObject.defineProperty(Vue.prototype, '$ssrContext', {\n    get: function () {\n        /* istanbul ignore next */\n        return this.$vnode && this.$vnode.ssrContext;\n    }\n});\n// expose FunctionalRenderContext for ssr runtime helper installation\nObject.defineProperty(Vue, 'FunctionalRenderContext', {\n    value: FunctionalRenderContext\n});\nVue.version = version;\n\n// these are reserved for web because they are directly compiled away\n// during template compilation\nvar isReservedAttr = makeMap('style,class');\n// attributes that should be using props for binding\nvar acceptValue = makeMap('input,textarea,option,select,progress');\nvar mustUseProp = function (tag, type, attr) {\n    return ((attr === 'value' && acceptValue(tag) && type !== 'button') ||\n        (attr === 'selected' && tag === 'option') ||\n        (attr === 'checked' && tag === 'input') ||\n        (attr === 'muted' && tag === 'video'));\n};\nvar isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');\nvar isValidContentEditableValue = makeMap('events,caret,typing,plaintext-only');\nvar convertEnumeratedValue = function (key, value) {\n    return isFalsyAttrValue(value) || value === 'false'\n        ? 'false'\n        : // allow arbitrary string value for contenteditable\n            key === 'contenteditable' && isValidContentEditableValue(value)\n                ? value\n                : 'true';\n};\nvar isBooleanAttr = makeMap('allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +\n    'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +\n    'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +\n    'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +\n    'required,reversed,scoped,seamless,selected,sortable,' +\n    'truespeed,typemustmatch,visible');\nvar xlinkNS = 'http://www.w3.org/1999/xlink';\nvar isXlink = function (name) {\n    return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink';\n};\nvar getXlinkProp = function (name) {\n    return isXlink(name) ? name.slice(6, name.length) : '';\n};\nvar isFalsyAttrValue = function (val) {\n    return val == null || val === false;\n};\n\nfunction genClassForVnode(vnode) {\n    var data = vnode.data;\n    var parentNode = vnode;\n    var childNode = vnode;\n    while (isDef(childNode.componentInstance)) {\n        childNode = childNode.componentInstance._vnode;\n        if (childNode && childNode.data) {\n            data = mergeClassData(childNode.data, data);\n        }\n    }\n    // @ts-expect-error parentNode.parent not VNodeWithData\n    while (isDef((parentNode = parentNode.parent))) {\n        if (parentNode && parentNode.data) {\n            data = mergeClassData(data, parentNode.data);\n        }\n    }\n    return renderClass(data.staticClass, data.class);\n}\nfunction mergeClassData(child, parent) {\n    return {\n        staticClass: concat(child.staticClass, parent.staticClass),\n        class: isDef(child.class) ? [child.class, parent.class] : parent.class\n    };\n}\nfunction renderClass(staticClass, dynamicClass) {\n    if (isDef(staticClass) || isDef(dynamicClass)) {\n        return concat(staticClass, stringifyClass(dynamicClass));\n    }\n    /* istanbul ignore next */\n    return '';\n}\nfunction concat(a, b) {\n    return a ? (b ? a + ' ' + b : a) : b || '';\n}\nfunction stringifyClass(value) {\n    if (Array.isArray(value)) {\n        return stringifyArray(value);\n    }\n    if (isObject(value)) {\n        return stringifyObject(value);\n    }\n    if (typeof value === 'string') {\n        return value;\n    }\n    /* istanbul ignore next */\n    return '';\n}\nfunction stringifyArray(value) {\n    var res = '';\n    var stringified;\n    for (var i = 0, l = value.length; i < l; i++) {\n        if (isDef((stringified = stringifyClass(value[i]))) && stringified !== '') {\n            if (res)\n                res += ' ';\n            res += stringified;\n        }\n    }\n    return res;\n}\nfunction stringifyObject(value) {\n    var res = '';\n    for (var key in value) {\n        if (value[key]) {\n            if (res)\n                res += ' ';\n            res += key;\n        }\n    }\n    return res;\n}\n\nvar namespaceMap = {\n    svg: 'http://www.w3.org/2000/svg',\n    math: 'http://www.w3.org/1998/Math/MathML'\n};\nvar isHTMLTag = makeMap('html,body,base,head,link,meta,style,title,' +\n    'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +\n    'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +\n    'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +\n    's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +\n    'embed,object,param,source,canvas,script,noscript,del,ins,' +\n    'caption,col,colgroup,table,thead,tbody,td,th,tr,' +\n    'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +\n    'output,progress,select,textarea,' +\n    'details,dialog,menu,menuitem,summary,' +\n    'content,element,shadow,template,blockquote,iframe,tfoot');\n// this map is intentionally selective, only covering SVG elements that may\n// contain child elements.\nvar isSVG = makeMap('svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +\n    'foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +\n    'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view', true);\nvar isPreTag = function (tag) { return tag === 'pre'; };\nvar isReservedTag = function (tag) {\n    return isHTMLTag(tag) || isSVG(tag);\n};\nfunction getTagNamespace(tag) {\n    if (isSVG(tag)) {\n        return 'svg';\n    }\n    // basic support for MathML\n    // note it doesn't support other MathML elements being component roots\n    if (tag === 'math') {\n        return 'math';\n    }\n}\nvar unknownElementCache = Object.create(null);\nfunction isUnknownElement(tag) {\n    /* istanbul ignore if */\n    if (!inBrowser) {\n        return true;\n    }\n    if (isReservedTag(tag)) {\n        return false;\n    }\n    tag = tag.toLowerCase();\n    /* istanbul ignore if */\n    if (unknownElementCache[tag] != null) {\n        return unknownElementCache[tag];\n    }\n    var el = document.createElement(tag);\n    if (tag.indexOf('-') > -1) {\n        // http://stackoverflow.com/a/28210364/1070244\n        return (unknownElementCache[tag] =\n            el.constructor === window.HTMLUnknownElement ||\n                el.constructor === window.HTMLElement);\n    }\n    else {\n        return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()));\n    }\n}\nvar isTextInputType = makeMap('text,number,password,search,email,tel,url');\n\n/**\n * Query an element selector if it's not an element already.\n */\nfunction query(el) {\n    if (typeof el === 'string') {\n        var selected = document.querySelector(el);\n        if (!selected) {\n             true && warn$2('Cannot find element: ' + el);\n            return document.createElement('div');\n        }\n        return selected;\n    }\n    else {\n        return el;\n    }\n}\n\nfunction createElement(tagName, vnode) {\n    var elm = document.createElement(tagName);\n    if (tagName !== 'select') {\n        return elm;\n    }\n    // false or null will remove the attribute but undefined will not\n    if (vnode.data &&\n        vnode.data.attrs &&\n        vnode.data.attrs.multiple !== undefined) {\n        elm.setAttribute('multiple', 'multiple');\n    }\n    return elm;\n}\nfunction createElementNS(namespace, tagName) {\n    return document.createElementNS(namespaceMap[namespace], tagName);\n}\nfunction createTextNode(text) {\n    return document.createTextNode(text);\n}\nfunction createComment(text) {\n    return document.createComment(text);\n}\nfunction insertBefore(parentNode, newNode, referenceNode) {\n    parentNode.insertBefore(newNode, referenceNode);\n}\nfunction removeChild(node, child) {\n    node.removeChild(child);\n}\nfunction appendChild(node, child) {\n    node.appendChild(child);\n}\nfunction parentNode(node) {\n    return node.parentNode;\n}\nfunction nextSibling(node) {\n    return node.nextSibling;\n}\nfunction tagName(node) {\n    return node.tagName;\n}\nfunction setTextContent(node, text) {\n    node.textContent = text;\n}\nfunction setStyleScope(node, scopeId) {\n    node.setAttribute(scopeId, '');\n}\n\nvar nodeOps = /*#__PURE__*/Object.freeze({\n  __proto__: null,\n  createElement: createElement,\n  createElementNS: createElementNS,\n  createTextNode: createTextNode,\n  createComment: createComment,\n  insertBefore: insertBefore,\n  removeChild: removeChild,\n  appendChild: appendChild,\n  parentNode: parentNode,\n  nextSibling: nextSibling,\n  tagName: tagName,\n  setTextContent: setTextContent,\n  setStyleScope: setStyleScope\n});\n\nvar ref = {\n    create: function (_, vnode) {\n        registerRef(vnode);\n    },\n    update: function (oldVnode, vnode) {\n        if (oldVnode.data.ref !== vnode.data.ref) {\n            registerRef(oldVnode, true);\n            registerRef(vnode);\n        }\n    },\n    destroy: function (vnode) {\n        registerRef(vnode, true);\n    }\n};\nfunction registerRef(vnode, isRemoval) {\n    var ref = vnode.data.ref;\n    if (!isDef(ref))\n        return;\n    var vm = vnode.context;\n    var refValue = vnode.componentInstance || vnode.elm;\n    var value = isRemoval ? null : refValue;\n    var $refsValue = isRemoval ? undefined : refValue;\n    if (isFunction(ref)) {\n        invokeWithErrorHandling(ref, vm, [value], vm, \"template ref function\");\n        return;\n    }\n    var isFor = vnode.data.refInFor;\n    var _isString = typeof ref === 'string' || typeof ref === 'number';\n    var _isRef = isRef(ref);\n    var refs = vm.$refs;\n    if (_isString || _isRef) {\n        if (isFor) {\n            var existing = _isString ? refs[ref] : ref.value;\n            if (isRemoval) {\n                isArray(existing) && remove$2(existing, refValue);\n            }\n            else {\n                if (!isArray(existing)) {\n                    if (_isString) {\n                        refs[ref] = [refValue];\n                        setSetupRef(vm, ref, refs[ref]);\n                    }\n                    else {\n                        ref.value = [refValue];\n                    }\n                }\n                else if (!existing.includes(refValue)) {\n                    existing.push(refValue);\n                }\n            }\n        }\n        else if (_isString) {\n            if (isRemoval && refs[ref] !== refValue) {\n                return;\n            }\n            refs[ref] = $refsValue;\n            setSetupRef(vm, ref, value);\n        }\n        else if (_isRef) {\n            if (isRemoval && ref.value !== refValue) {\n                return;\n            }\n            ref.value = value;\n        }\n        else if (true) {\n            warn$2(\"Invalid template ref type: \".concat(typeof ref));\n        }\n    }\n}\nfunction setSetupRef(_a, key, val) {\n    var _setupState = _a._setupState;\n    if (_setupState && hasOwn(_setupState, key)) {\n        if (isRef(_setupState[key])) {\n            _setupState[key].value = val;\n        }\n        else {\n            _setupState[key] = val;\n        }\n    }\n}\n\n/**\n * Virtual DOM patching algorithm based on Snabbdom by\n * Simon Friis Vindum (@paldepind)\n * Licensed under the MIT License\n * https://github.com/paldepind/snabbdom/blob/master/LICENSE\n *\n * modified by Evan You (@yyx990803)\n *\n * Not type-checking this because this file is perf-critical and the cost\n * of making flow understand it is not worth it.\n */\nvar emptyNode = new VNode('', {}, []);\nvar hooks = ['create', 'activate', 'update', 'remove', 'destroy'];\nfunction sameVnode(a, b) {\n    return (a.key === b.key &&\n        a.asyncFactory === b.asyncFactory &&\n        ((a.tag === b.tag &&\n            a.isComment === b.isComment &&\n            isDef(a.data) === isDef(b.data) &&\n            sameInputType(a, b)) ||\n            (isTrue(a.isAsyncPlaceholder) && isUndef(b.asyncFactory.error))));\n}\nfunction sameInputType(a, b) {\n    if (a.tag !== 'input')\n        return true;\n    var i;\n    var typeA = isDef((i = a.data)) && isDef((i = i.attrs)) && i.type;\n    var typeB = isDef((i = b.data)) && isDef((i = i.attrs)) && i.type;\n    return typeA === typeB || (isTextInputType(typeA) && isTextInputType(typeB));\n}\nfunction createKeyToOldIdx(children, beginIdx, endIdx) {\n    var i, key;\n    var map = {};\n    for (i = beginIdx; i <= endIdx; ++i) {\n        key = children[i].key;\n        if (isDef(key))\n            map[key] = i;\n    }\n    return map;\n}\nfunction createPatchFunction(backend) {\n    var i, j;\n    var cbs = {};\n    var modules = backend.modules, nodeOps = backend.nodeOps;\n    for (i = 0; i < hooks.length; ++i) {\n        cbs[hooks[i]] = [];\n        for (j = 0; j < modules.length; ++j) {\n            if (isDef(modules[j][hooks[i]])) {\n                cbs[hooks[i]].push(modules[j][hooks[i]]);\n            }\n        }\n    }\n    function emptyNodeAt(elm) {\n        return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm);\n    }\n    function createRmCb(childElm, listeners) {\n        function remove() {\n            if (--remove.listeners === 0) {\n                removeNode(childElm);\n            }\n        }\n        remove.listeners = listeners;\n        return remove;\n    }\n    function removeNode(el) {\n        var parent = nodeOps.parentNode(el);\n        // element may have already been removed due to v-html / v-text\n        if (isDef(parent)) {\n            nodeOps.removeChild(parent, el);\n        }\n    }\n    function isUnknownElement(vnode, inVPre) {\n        return (!inVPre &&\n            !vnode.ns &&\n            !(config.ignoredElements.length &&\n                config.ignoredElements.some(function (ignore) {\n                    return isRegExp(ignore)\n                        ? ignore.test(vnode.tag)\n                        : ignore === vnode.tag;\n                })) &&\n            config.isUnknownElement(vnode.tag));\n    }\n    var creatingElmInVPre = 0;\n    function createElm(vnode, insertedVnodeQueue, parentElm, refElm, nested, ownerArray, index) {\n        if (isDef(vnode.elm) && isDef(ownerArray)) {\n            // This vnode was used in a previous render!\n            // now it's used as a new node, overwriting its elm would cause\n            // potential patch errors down the road when it's used as an insertion\n            // reference node. Instead, we clone the node on-demand before creating\n            // associated DOM element for it.\n            vnode = ownerArray[index] = cloneVNode(vnode);\n        }\n        vnode.isRootInsert = !nested; // for transition enter check\n        if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {\n            return;\n        }\n        var data = vnode.data;\n        var children = vnode.children;\n        var tag = vnode.tag;\n        if (isDef(tag)) {\n            if (true) {\n                if (data && data.pre) {\n                    creatingElmInVPre++;\n                }\n                if (isUnknownElement(vnode, creatingElmInVPre)) {\n                    warn$2('Unknown custom element: <' +\n                        tag +\n                        '> - did you ' +\n                        'register the component correctly? For recursive components, ' +\n                        'make sure to provide the \"name\" option.', vnode.context);\n                }\n            }\n            vnode.elm = vnode.ns\n                ? nodeOps.createElementNS(vnode.ns, tag)\n                : nodeOps.createElement(tag, vnode);\n            setScope(vnode);\n            createChildren(vnode, children, insertedVnodeQueue);\n            if (isDef(data)) {\n                invokeCreateHooks(vnode, insertedVnodeQueue);\n            }\n            insert(parentElm, vnode.elm, refElm);\n            if ( true && data && data.pre) {\n                creatingElmInVPre--;\n            }\n        }\n        else if (isTrue(vnode.isComment)) {\n            vnode.elm = nodeOps.createComment(vnode.text);\n            insert(parentElm, vnode.elm, refElm);\n        }\n        else {\n            vnode.elm = nodeOps.createTextNode(vnode.text);\n            insert(parentElm, vnode.elm, refElm);\n        }\n    }\n    function createComponent(vnode, insertedVnodeQueue, parentElm, refElm) {\n        var i = vnode.data;\n        if (isDef(i)) {\n            var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;\n            if (isDef((i = i.hook)) && isDef((i = i.init))) {\n                i(vnode, false /* hydrating */);\n            }\n            // after calling the init hook, if the vnode is a child component\n            // it should've created a child instance and mounted it. the child\n            // component also has set the placeholder vnode's elm.\n            // in that case we can just return the element and be done.\n            if (isDef(vnode.componentInstance)) {\n                initComponent(vnode, insertedVnodeQueue);\n                insert(parentElm, vnode.elm, refElm);\n                if (isTrue(isReactivated)) {\n                    reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);\n                }\n                return true;\n            }\n        }\n    }\n    function initComponent(vnode, insertedVnodeQueue) {\n        if (isDef(vnode.data.pendingInsert)) {\n            insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);\n            vnode.data.pendingInsert = null;\n        }\n        vnode.elm = vnode.componentInstance.$el;\n        if (isPatchable(vnode)) {\n            invokeCreateHooks(vnode, insertedVnodeQueue);\n            setScope(vnode);\n        }\n        else {\n            // empty component root.\n            // skip all element-related modules except for ref (#3455)\n            registerRef(vnode);\n            // make sure to invoke the insert hook\n            insertedVnodeQueue.push(vnode);\n        }\n    }\n    function reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm) {\n        var i;\n        // hack for #4339: a reactivated component with inner transition\n        // does not trigger because the inner node's created hooks are not called\n        // again. It's not ideal to involve module-specific logic in here but\n        // there doesn't seem to be a better way to do it.\n        var innerNode = vnode;\n        while (innerNode.componentInstance) {\n            innerNode = innerNode.componentInstance._vnode;\n            if (isDef((i = innerNode.data)) && isDef((i = i.transition))) {\n                for (i = 0; i < cbs.activate.length; ++i) {\n                    cbs.activate[i](emptyNode, innerNode);\n                }\n                insertedVnodeQueue.push(innerNode);\n                break;\n            }\n        }\n        // unlike a newly created component,\n        // a reactivated keep-alive component doesn't insert itself\n        insert(parentElm, vnode.elm, refElm);\n    }\n    function insert(parent, elm, ref) {\n        if (isDef(parent)) {\n            if (isDef(ref)) {\n                if (nodeOps.parentNode(ref) === parent) {\n                    nodeOps.insertBefore(parent, elm, ref);\n                }\n            }\n            else {\n                nodeOps.appendChild(parent, elm);\n            }\n        }\n    }\n    function createChildren(vnode, children, insertedVnodeQueue) {\n        if (isArray(children)) {\n            if (true) {\n                checkDuplicateKeys(children);\n            }\n            for (var i_1 = 0; i_1 < children.length; ++i_1) {\n                createElm(children[i_1], insertedVnodeQueue, vnode.elm, null, true, children, i_1);\n            }\n        }\n        else if (isPrimitive(vnode.text)) {\n            nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));\n        }\n    }\n    function isPatchable(vnode) {\n        while (vnode.componentInstance) {\n            vnode = vnode.componentInstance._vnode;\n        }\n        return isDef(vnode.tag);\n    }\n    function invokeCreateHooks(vnode, insertedVnodeQueue) {\n        for (var i_2 = 0; i_2 < cbs.create.length; ++i_2) {\n            cbs.create[i_2](emptyNode, vnode);\n        }\n        i = vnode.data.hook; // Reuse variable\n        if (isDef(i)) {\n            if (isDef(i.create))\n                i.create(emptyNode, vnode);\n            if (isDef(i.insert))\n                insertedVnodeQueue.push(vnode);\n        }\n    }\n    // set scope id attribute for scoped CSS.\n    // this is implemented as a special case to avoid the overhead\n    // of going through the normal attribute patching process.\n    function setScope(vnode) {\n        var i;\n        if (isDef((i = vnode.fnScopeId))) {\n            nodeOps.setStyleScope(vnode.elm, i);\n        }\n        else {\n            var ancestor = vnode;\n            while (ancestor) {\n                if (isDef((i = ancestor.context)) && isDef((i = i.$options._scopeId))) {\n                    nodeOps.setStyleScope(vnode.elm, i);\n                }\n                ancestor = ancestor.parent;\n            }\n        }\n        // for slot content they should also get the scopeId from the host instance.\n        if (isDef((i = activeInstance)) &&\n            i !== vnode.context &&\n            i !== vnode.fnContext &&\n            isDef((i = i.$options._scopeId))) {\n            nodeOps.setStyleScope(vnode.elm, i);\n        }\n    }\n    function addVnodes(parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {\n        for (; startIdx <= endIdx; ++startIdx) {\n            createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm, false, vnodes, startIdx);\n        }\n    }\n    function invokeDestroyHook(vnode) {\n        var i, j;\n        var data = vnode.data;\n        if (isDef(data)) {\n            if (isDef((i = data.hook)) && isDef((i = i.destroy)))\n                i(vnode);\n            for (i = 0; i < cbs.destroy.length; ++i)\n                cbs.destroy[i](vnode);\n        }\n        if (isDef((i = vnode.children))) {\n            for (j = 0; j < vnode.children.length; ++j) {\n                invokeDestroyHook(vnode.children[j]);\n            }\n        }\n    }\n    function removeVnodes(vnodes, startIdx, endIdx) {\n        for (; startIdx <= endIdx; ++startIdx) {\n            var ch = vnodes[startIdx];\n            if (isDef(ch)) {\n                if (isDef(ch.tag)) {\n                    removeAndInvokeRemoveHook(ch);\n                    invokeDestroyHook(ch);\n                }\n                else {\n                    // Text node\n                    removeNode(ch.elm);\n                }\n            }\n        }\n    }\n    function removeAndInvokeRemoveHook(vnode, rm) {\n        if (isDef(rm) || isDef(vnode.data)) {\n            var i_3;\n            var listeners = cbs.remove.length + 1;\n            if (isDef(rm)) {\n                // we have a recursively passed down rm callback\n                // increase the listeners count\n                rm.listeners += listeners;\n            }\n            else {\n                // directly removing\n                rm = createRmCb(vnode.elm, listeners);\n            }\n            // recursively invoke hooks on child component root node\n            if (isDef((i_3 = vnode.componentInstance)) &&\n                isDef((i_3 = i_3._vnode)) &&\n                isDef(i_3.data)) {\n                removeAndInvokeRemoveHook(i_3, rm);\n            }\n            for (i_3 = 0; i_3 < cbs.remove.length; ++i_3) {\n                cbs.remove[i_3](vnode, rm);\n            }\n            if (isDef((i_3 = vnode.data.hook)) && isDef((i_3 = i_3.remove))) {\n                i_3(vnode, rm);\n            }\n            else {\n                rm();\n            }\n        }\n        else {\n            removeNode(vnode.elm);\n        }\n    }\n    function updateChildren(parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {\n        var oldStartIdx = 0;\n        var newStartIdx = 0;\n        var oldEndIdx = oldCh.length - 1;\n        var oldStartVnode = oldCh[0];\n        var oldEndVnode = oldCh[oldEndIdx];\n        var newEndIdx = newCh.length - 1;\n        var newStartVnode = newCh[0];\n        var newEndVnode = newCh[newEndIdx];\n        var oldKeyToIdx, idxInOld, vnodeToMove, refElm;\n        // removeOnly is a special flag used only by <transition-group>\n        // to ensure removed elements stay in correct relative positions\n        // during leaving transitions\n        var canMove = !removeOnly;\n        if (true) {\n            checkDuplicateKeys(newCh);\n        }\n        while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {\n            if (isUndef(oldStartVnode)) {\n                oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left\n            }\n            else if (isUndef(oldEndVnode)) {\n                oldEndVnode = oldCh[--oldEndIdx];\n            }\n            else if (sameVnode(oldStartVnode, newStartVnode)) {\n                patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);\n                oldStartVnode = oldCh[++oldStartIdx];\n                newStartVnode = newCh[++newStartIdx];\n            }\n            else if (sameVnode(oldEndVnode, newEndVnode)) {\n                patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);\n                oldEndVnode = oldCh[--oldEndIdx];\n                newEndVnode = newCh[--newEndIdx];\n            }\n            else if (sameVnode(oldStartVnode, newEndVnode)) {\n                // Vnode moved right\n                patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);\n                canMove &&\n                    nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));\n                oldStartVnode = oldCh[++oldStartIdx];\n                newEndVnode = newCh[--newEndIdx];\n            }\n            else if (sameVnode(oldEndVnode, newStartVnode)) {\n                // Vnode moved left\n                patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);\n                canMove &&\n                    nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);\n                oldEndVnode = oldCh[--oldEndIdx];\n                newStartVnode = newCh[++newStartIdx];\n            }\n            else {\n                if (isUndef(oldKeyToIdx))\n                    oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx);\n                idxInOld = isDef(newStartVnode.key)\n                    ? oldKeyToIdx[newStartVnode.key]\n                    : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);\n                if (isUndef(idxInOld)) {\n                    // New element\n                    createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);\n                }\n                else {\n                    vnodeToMove = oldCh[idxInOld];\n                    if (sameVnode(vnodeToMove, newStartVnode)) {\n                        patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);\n                        oldCh[idxInOld] = undefined;\n                        canMove &&\n                            nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm);\n                    }\n                    else {\n                        // same key but different element. treat as new element\n                        createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);\n                    }\n                }\n                newStartVnode = newCh[++newStartIdx];\n            }\n        }\n        if (oldStartIdx > oldEndIdx) {\n            refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;\n            addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);\n        }\n        else if (newStartIdx > newEndIdx) {\n            removeVnodes(oldCh, oldStartIdx, oldEndIdx);\n        }\n    }\n    function checkDuplicateKeys(children) {\n        var seenKeys = {};\n        for (var i_4 = 0; i_4 < children.length; i_4++) {\n            var vnode = children[i_4];\n            var key = vnode.key;\n            if (isDef(key)) {\n                if (seenKeys[key]) {\n                    warn$2(\"Duplicate keys detected: '\".concat(key, \"'. This may cause an update error.\"), vnode.context);\n                }\n                else {\n                    seenKeys[key] = true;\n                }\n            }\n        }\n    }\n    function findIdxInOld(node, oldCh, start, end) {\n        for (var i_5 = start; i_5 < end; i_5++) {\n            var c = oldCh[i_5];\n            if (isDef(c) && sameVnode(node, c))\n                return i_5;\n        }\n    }\n    function patchVnode(oldVnode, vnode, insertedVnodeQueue, ownerArray, index, removeOnly) {\n        if (oldVnode === vnode) {\n            return;\n        }\n        if (isDef(vnode.elm) && isDef(ownerArray)) {\n            // clone reused vnode\n            vnode = ownerArray[index] = cloneVNode(vnode);\n        }\n        var elm = (vnode.elm = oldVnode.elm);\n        if (isTrue(oldVnode.isAsyncPlaceholder)) {\n            if (isDef(vnode.asyncFactory.resolved)) {\n                hydrate(oldVnode.elm, vnode, insertedVnodeQueue);\n            }\n            else {\n                vnode.isAsyncPlaceholder = true;\n            }\n            return;\n        }\n        // reuse element for static trees.\n        // note we only do this if the vnode is cloned -\n        // if the new node is not cloned it means the render functions have been\n        // reset by the hot-reload-api and we need to do a proper re-render.\n        if (isTrue(vnode.isStatic) &&\n            isTrue(oldVnode.isStatic) &&\n            vnode.key === oldVnode.key &&\n            (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))) {\n            vnode.componentInstance = oldVnode.componentInstance;\n            return;\n        }\n        var i;\n        var data = vnode.data;\n        if (isDef(data) && isDef((i = data.hook)) && isDef((i = i.prepatch))) {\n            i(oldVnode, vnode);\n        }\n        var oldCh = oldVnode.children;\n        var ch = vnode.children;\n        if (isDef(data) && isPatchable(vnode)) {\n            for (i = 0; i < cbs.update.length; ++i)\n                cbs.update[i](oldVnode, vnode);\n            if (isDef((i = data.hook)) && isDef((i = i.update)))\n                i(oldVnode, vnode);\n        }\n        if (isUndef(vnode.text)) {\n            if (isDef(oldCh) && isDef(ch)) {\n                if (oldCh !== ch)\n                    updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly);\n            }\n            else if (isDef(ch)) {\n                if (true) {\n                    checkDuplicateKeys(ch);\n                }\n                if (isDef(oldVnode.text))\n                    nodeOps.setTextContent(elm, '');\n                addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);\n            }\n            else if (isDef(oldCh)) {\n                removeVnodes(oldCh, 0, oldCh.length - 1);\n            }\n            else if (isDef(oldVnode.text)) {\n                nodeOps.setTextContent(elm, '');\n            }\n        }\n        else if (oldVnode.text !== vnode.text) {\n            nodeOps.setTextContent(elm, vnode.text);\n        }\n        if (isDef(data)) {\n            if (isDef((i = data.hook)) && isDef((i = i.postpatch)))\n                i(oldVnode, vnode);\n        }\n    }\n    function invokeInsertHook(vnode, queue, initial) {\n        // delay insert hooks for component root nodes, invoke them after the\n        // element is really inserted\n        if (isTrue(initial) && isDef(vnode.parent)) {\n            vnode.parent.data.pendingInsert = queue;\n        }\n        else {\n            for (var i_6 = 0; i_6 < queue.length; ++i_6) {\n                queue[i_6].data.hook.insert(queue[i_6]);\n            }\n        }\n    }\n    var hydrationBailed = false;\n    // list of modules that can skip create hook during hydration because they\n    // are already rendered on the client or has no need for initialization\n    // Note: style is excluded because it relies on initial clone for future\n    // deep updates (#7063).\n    var isRenderedModule = makeMap('attrs,class,staticClass,staticStyle,key');\n    // Note: this is a browser-only function so we can assume elms are DOM nodes.\n    function hydrate(elm, vnode, insertedVnodeQueue, inVPre) {\n        var i;\n        var tag = vnode.tag, data = vnode.data, children = vnode.children;\n        inVPre = inVPre || (data && data.pre);\n        vnode.elm = elm;\n        if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {\n            vnode.isAsyncPlaceholder = true;\n            return true;\n        }\n        // assert node match\n        if (true) {\n            if (!assertNodeMatch(elm, vnode, inVPre)) {\n                return false;\n            }\n        }\n        if (isDef(data)) {\n            if (isDef((i = data.hook)) && isDef((i = i.init)))\n                i(vnode, true /* hydrating */);\n            if (isDef((i = vnode.componentInstance))) {\n                // child component. it should have hydrated its own tree.\n                initComponent(vnode, insertedVnodeQueue);\n                return true;\n            }\n        }\n        if (isDef(tag)) {\n            if (isDef(children)) {\n                // empty element, allow client to pick up and populate children\n                if (!elm.hasChildNodes()) {\n                    createChildren(vnode, children, insertedVnodeQueue);\n                }\n                else {\n                    // v-html and domProps: innerHTML\n                    if (isDef((i = data)) &&\n                        isDef((i = i.domProps)) &&\n                        isDef((i = i.innerHTML))) {\n                        if (i !== elm.innerHTML) {\n                            /* istanbul ignore if */\n                            if ( true &&\n                                typeof console !== 'undefined' &&\n                                !hydrationBailed) {\n                                hydrationBailed = true;\n                                console.warn('Parent: ', elm);\n                                console.warn('server innerHTML: ', i);\n                                console.warn('client innerHTML: ', elm.innerHTML);\n                            }\n                            return false;\n                        }\n                    }\n                    else {\n                        // iterate and compare children lists\n                        var childrenMatch = true;\n                        var childNode = elm.firstChild;\n                        for (var i_7 = 0; i_7 < children.length; i_7++) {\n                            if (!childNode ||\n                                !hydrate(childNode, children[i_7], insertedVnodeQueue, inVPre)) {\n                                childrenMatch = false;\n                                break;\n                            }\n                            childNode = childNode.nextSibling;\n                        }\n                        // if childNode is not null, it means the actual childNodes list is\n                        // longer than the virtual children list.\n                        if (!childrenMatch || childNode) {\n                            /* istanbul ignore if */\n                            if ( true &&\n                                typeof console !== 'undefined' &&\n                                !hydrationBailed) {\n                                hydrationBailed = true;\n                                console.warn('Parent: ', elm);\n                                console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);\n                            }\n                            return false;\n                        }\n                    }\n                }\n            }\n            if (isDef(data)) {\n                var fullInvoke = false;\n                for (var key in data) {\n                    if (!isRenderedModule(key)) {\n                        fullInvoke = true;\n                        invokeCreateHooks(vnode, insertedVnodeQueue);\n                        break;\n                    }\n                }\n                if (!fullInvoke && data['class']) {\n                    // ensure collecting deps for deep class bindings for future updates\n                    traverse(data['class']);\n                }\n            }\n        }\n        else if (elm.data !== vnode.text) {\n            elm.data = vnode.text;\n        }\n        return true;\n    }\n    function assertNodeMatch(node, vnode, inVPre) {\n        if (isDef(vnode.tag)) {\n            return (vnode.tag.indexOf('vue-component') === 0 ||\n                (!isUnknownElement(vnode, inVPre) &&\n                    vnode.tag.toLowerCase() ===\n                        (node.tagName && node.tagName.toLowerCase())));\n        }\n        else {\n            return node.nodeType === (vnode.isComment ? 8 : 3);\n        }\n    }\n    return function patch(oldVnode, vnode, hydrating, removeOnly) {\n        if (isUndef(vnode)) {\n            if (isDef(oldVnode))\n                invokeDestroyHook(oldVnode);\n            return;\n        }\n        var isInitialPatch = false;\n        var insertedVnodeQueue = [];\n        if (isUndef(oldVnode)) {\n            // empty mount (likely as component), create new root element\n            isInitialPatch = true;\n            createElm(vnode, insertedVnodeQueue);\n        }\n        else {\n            var isRealElement = isDef(oldVnode.nodeType);\n            if (!isRealElement && sameVnode(oldVnode, vnode)) {\n                // patch existing root node\n                patchVnode(oldVnode, vnode, insertedVnodeQueue, null, null, removeOnly);\n            }\n            else {\n                if (isRealElement) {\n                    // mounting to a real element\n                    // check if this is server-rendered content and if we can perform\n                    // a successful hydration.\n                    if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {\n                        oldVnode.removeAttribute(SSR_ATTR);\n                        hydrating = true;\n                    }\n                    if (isTrue(hydrating)) {\n                        if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {\n                            invokeInsertHook(vnode, insertedVnodeQueue, true);\n                            return oldVnode;\n                        }\n                        else if (true) {\n                            warn$2('The client-side rendered virtual DOM tree is not matching ' +\n                                'server-rendered content. This is likely caused by incorrect ' +\n                                'HTML markup, for example nesting block-level elements inside ' +\n                                '<p>, or missing <tbody>. Bailing hydration and performing ' +\n                                'full client-side render.');\n                        }\n                    }\n                    // either not server-rendered, or hydration failed.\n                    // create an empty node and replace it\n                    oldVnode = emptyNodeAt(oldVnode);\n                }\n                // replacing existing element\n                var oldElm = oldVnode.elm;\n                var parentElm = nodeOps.parentNode(oldElm);\n                // create new node\n                createElm(vnode, insertedVnodeQueue, \n                // extremely rare edge case: do not insert if old element is in a\n                // leaving transition. Only happens when combining transition +\n                // keep-alive + HOCs. (#4590)\n                oldElm._leaveCb ? null : parentElm, nodeOps.nextSibling(oldElm));\n                // update parent placeholder node element, recursively\n                if (isDef(vnode.parent)) {\n                    var ancestor = vnode.parent;\n                    var patchable = isPatchable(vnode);\n                    while (ancestor) {\n                        for (var i_8 = 0; i_8 < cbs.destroy.length; ++i_8) {\n                            cbs.destroy[i_8](ancestor);\n                        }\n                        ancestor.elm = vnode.elm;\n                        if (patchable) {\n                            for (var i_9 = 0; i_9 < cbs.create.length; ++i_9) {\n                                cbs.create[i_9](emptyNode, ancestor);\n                            }\n                            // #6513\n                            // invoke insert hooks that may have been merged by create hooks.\n                            // e.g. for directives that uses the \"inserted\" hook.\n                            var insert_1 = ancestor.data.hook.insert;\n                            if (insert_1.merged) {\n                                // start at index 1 to avoid re-invoking component mounted hook\n                                for (var i_10 = 1; i_10 < insert_1.fns.length; i_10++) {\n                                    insert_1.fns[i_10]();\n                                }\n                            }\n                        }\n                        else {\n                            registerRef(ancestor);\n                        }\n                        ancestor = ancestor.parent;\n                    }\n                }\n                // destroy old node\n                if (isDef(parentElm)) {\n                    removeVnodes([oldVnode], 0, 0);\n                }\n                else if (isDef(oldVnode.tag)) {\n                    invokeDestroyHook(oldVnode);\n                }\n            }\n        }\n        invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);\n        return vnode.elm;\n    };\n}\n\nvar directives$1 = {\n    create: updateDirectives,\n    update: updateDirectives,\n    destroy: function unbindDirectives(vnode) {\n        // @ts-expect-error emptyNode is not VNodeWithData\n        updateDirectives(vnode, emptyNode);\n    }\n};\nfunction updateDirectives(oldVnode, vnode) {\n    if (oldVnode.data.directives || vnode.data.directives) {\n        _update(oldVnode, vnode);\n    }\n}\nfunction _update(oldVnode, vnode) {\n    var isCreate = oldVnode === emptyNode;\n    var isDestroy = vnode === emptyNode;\n    var oldDirs = normalizeDirectives(oldVnode.data.directives, oldVnode.context);\n    var newDirs = normalizeDirectives(vnode.data.directives, vnode.context);\n    var dirsWithInsert = [];\n    var dirsWithPostpatch = [];\n    var key, oldDir, dir;\n    for (key in newDirs) {\n        oldDir = oldDirs[key];\n        dir = newDirs[key];\n        if (!oldDir) {\n            // new directive, bind\n            callHook(dir, 'bind', vnode, oldVnode);\n            if (dir.def && dir.def.inserted) {\n                dirsWithInsert.push(dir);\n            }\n        }\n        else {\n            // existing directive, update\n            dir.oldValue = oldDir.value;\n            dir.oldArg = oldDir.arg;\n            callHook(dir, 'update', vnode, oldVnode);\n            if (dir.def && dir.def.componentUpdated) {\n                dirsWithPostpatch.push(dir);\n            }\n        }\n    }\n    if (dirsWithInsert.length) {\n        var callInsert = function () {\n            for (var i = 0; i < dirsWithInsert.length; i++) {\n                callHook(dirsWithInsert[i], 'inserted', vnode, oldVnode);\n            }\n        };\n        if (isCreate) {\n            mergeVNodeHook(vnode, 'insert', callInsert);\n        }\n        else {\n            callInsert();\n        }\n    }\n    if (dirsWithPostpatch.length) {\n        mergeVNodeHook(vnode, 'postpatch', function () {\n            for (var i = 0; i < dirsWithPostpatch.length; i++) {\n                callHook(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);\n            }\n        });\n    }\n    if (!isCreate) {\n        for (key in oldDirs) {\n            if (!newDirs[key]) {\n                // no longer present, unbind\n                callHook(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);\n            }\n        }\n    }\n}\nvar emptyModifiers = Object.create(null);\nfunction normalizeDirectives(dirs, vm) {\n    var res = Object.create(null);\n    if (!dirs) {\n        // $flow-disable-line\n        return res;\n    }\n    var i, dir;\n    for (i = 0; i < dirs.length; i++) {\n        dir = dirs[i];\n        if (!dir.modifiers) {\n            // $flow-disable-line\n            dir.modifiers = emptyModifiers;\n        }\n        res[getRawDirName(dir)] = dir;\n        if (vm._setupState && vm._setupState.__sfc) {\n            var setupDef = dir.def || resolveAsset(vm, '_setupState', 'v-' + dir.name);\n            if (typeof setupDef === 'function') {\n                dir.def = {\n                    bind: setupDef,\n                    update: setupDef,\n                };\n            }\n            else {\n                dir.def = setupDef;\n            }\n        }\n        dir.def = dir.def || resolveAsset(vm.$options, 'directives', dir.name, true);\n    }\n    // $flow-disable-line\n    return res;\n}\nfunction getRawDirName(dir) {\n    return (dir.rawName || \"\".concat(dir.name, \".\").concat(Object.keys(dir.modifiers || {}).join('.')));\n}\nfunction callHook(dir, hook, vnode, oldVnode, isDestroy) {\n    var fn = dir.def && dir.def[hook];\n    if (fn) {\n        try {\n            fn(vnode.elm, dir, vnode, oldVnode, isDestroy);\n        }\n        catch (e) {\n            handleError(e, vnode.context, \"directive \".concat(dir.name, \" \").concat(hook, \" hook\"));\n        }\n    }\n}\n\nvar baseModules = [ref, directives$1];\n\nfunction updateAttrs(oldVnode, vnode) {\n    var opts = vnode.componentOptions;\n    if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {\n        return;\n    }\n    if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {\n        return;\n    }\n    var key, cur, old;\n    var elm = vnode.elm;\n    var oldAttrs = oldVnode.data.attrs || {};\n    var attrs = vnode.data.attrs || {};\n    // clone observed objects, as the user probably wants to mutate it\n    if (isDef(attrs.__ob__) || isTrue(attrs._v_attr_proxy)) {\n        attrs = vnode.data.attrs = extend({}, attrs);\n    }\n    for (key in attrs) {\n        cur = attrs[key];\n        old = oldAttrs[key];\n        if (old !== cur) {\n            setAttr(elm, key, cur, vnode.data.pre);\n        }\n    }\n    // #4391: in IE9, setting type can reset value for input[type=radio]\n    // #6666: IE/Edge forces progress value down to 1 before setting a max\n    /* istanbul ignore if */\n    if ((isIE || isEdge) && attrs.value !== oldAttrs.value) {\n        setAttr(elm, 'value', attrs.value);\n    }\n    for (key in oldAttrs) {\n        if (isUndef(attrs[key])) {\n            if (isXlink(key)) {\n                elm.removeAttributeNS(xlinkNS, getXlinkProp(key));\n            }\n            else if (!isEnumeratedAttr(key)) {\n                elm.removeAttribute(key);\n            }\n        }\n    }\n}\nfunction setAttr(el, key, value, isInPre) {\n    if (isInPre || el.tagName.indexOf('-') > -1) {\n        baseSetAttr(el, key, value);\n    }\n    else if (isBooleanAttr(key)) {\n        // set attribute for blank value\n        // e.g. <option disabled>Select one</option>\n        if (isFalsyAttrValue(value)) {\n            el.removeAttribute(key);\n        }\n        else {\n            // technically allowfullscreen is a boolean attribute for <iframe>,\n            // but Flash expects a value of \"true\" when used on <embed> tag\n            value = key === 'allowfullscreen' && el.tagName === 'EMBED' ? 'true' : key;\n            el.setAttribute(key, value);\n        }\n    }\n    else if (isEnumeratedAttr(key)) {\n        el.setAttribute(key, convertEnumeratedValue(key, value));\n    }\n    else if (isXlink(key)) {\n        if (isFalsyAttrValue(value)) {\n            el.removeAttributeNS(xlinkNS, getXlinkProp(key));\n        }\n        else {\n            el.setAttributeNS(xlinkNS, key, value);\n        }\n    }\n    else {\n        baseSetAttr(el, key, value);\n    }\n}\nfunction baseSetAttr(el, key, value) {\n    if (isFalsyAttrValue(value)) {\n        el.removeAttribute(key);\n    }\n    else {\n        // #7138: IE10 & 11 fires input event when setting placeholder on\n        // <textarea>... block the first input event and remove the blocker\n        // immediately.\n        /* istanbul ignore if */\n        if (isIE &&\n            !isIE9 &&\n            el.tagName === 'TEXTAREA' &&\n            key === 'placeholder' &&\n            value !== '' &&\n            !el.__ieph) {\n            var blocker_1 = function (e) {\n                e.stopImmediatePropagation();\n                el.removeEventListener('input', blocker_1);\n            };\n            el.addEventListener('input', blocker_1);\n            // $flow-disable-line\n            el.__ieph = true; /* IE placeholder patched */\n        }\n        el.setAttribute(key, value);\n    }\n}\nvar attrs = {\n    create: updateAttrs,\n    update: updateAttrs\n};\n\nfunction updateClass(oldVnode, vnode) {\n    var el = vnode.elm;\n    var data = vnode.data;\n    var oldData = oldVnode.data;\n    if (isUndef(data.staticClass) &&\n        isUndef(data.class) &&\n        (isUndef(oldData) ||\n            (isUndef(oldData.staticClass) && isUndef(oldData.class)))) {\n        return;\n    }\n    var cls = genClassForVnode(vnode);\n    // handle transition classes\n    var transitionClass = el._transitionClasses;\n    if (isDef(transitionClass)) {\n        cls = concat(cls, stringifyClass(transitionClass));\n    }\n    // set the class\n    if (cls !== el._prevClass) {\n        el.setAttribute('class', cls);\n        el._prevClass = cls;\n    }\n}\nvar klass$1 = {\n    create: updateClass,\n    update: updateClass\n};\n\nvar validDivisionCharRE = /[\\w).+\\-_$\\]]/;\nfunction parseFilters(exp) {\n    var inSingle = false;\n    var inDouble = false;\n    var inTemplateString = false;\n    var inRegex = false;\n    var curly = 0;\n    var square = 0;\n    var paren = 0;\n    var lastFilterIndex = 0;\n    var c, prev, i, expression, filters;\n    for (i = 0; i < exp.length; i++) {\n        prev = c;\n        c = exp.charCodeAt(i);\n        if (inSingle) {\n            if (c === 0x27 && prev !== 0x5c)\n                inSingle = false;\n        }\n        else if (inDouble) {\n            if (c === 0x22 && prev !== 0x5c)\n                inDouble = false;\n        }\n        else if (inTemplateString) {\n            if (c === 0x60 && prev !== 0x5c)\n                inTemplateString = false;\n        }\n        else if (inRegex) {\n            if (c === 0x2f && prev !== 0x5c)\n                inRegex = false;\n        }\n        else if (c === 0x7c && // pipe\n            exp.charCodeAt(i + 1) !== 0x7c &&\n            exp.charCodeAt(i - 1) !== 0x7c &&\n            !curly &&\n            !square &&\n            !paren) {\n            if (expression === undefined) {\n                // first filter, end of expression\n                lastFilterIndex = i + 1;\n                expression = exp.slice(0, i).trim();\n            }\n            else {\n                pushFilter();\n            }\n        }\n        else {\n            switch (c) {\n                case 0x22:\n                    inDouble = true;\n                    break; // \"\n                case 0x27:\n                    inSingle = true;\n                    break; // '\n                case 0x60:\n                    inTemplateString = true;\n                    break; // `\n                case 0x28:\n                    paren++;\n                    break; // (\n                case 0x29:\n                    paren--;\n                    break; // )\n                case 0x5b:\n                    square++;\n                    break; // [\n                case 0x5d:\n                    square--;\n                    break; // ]\n                case 0x7b:\n                    curly++;\n                    break; // {\n                case 0x7d:\n                    curly--;\n                    break; // }\n            }\n            if (c === 0x2f) {\n                // /\n                var j = i - 1;\n                var p \n                // find first non-whitespace prev char\n                = void 0;\n                // find first non-whitespace prev char\n                for (; j >= 0; j--) {\n                    p = exp.charAt(j);\n                    if (p !== ' ')\n                        break;\n                }\n                if (!p || !validDivisionCharRE.test(p)) {\n                    inRegex = true;\n                }\n            }\n        }\n    }\n    if (expression === undefined) {\n        expression = exp.slice(0, i).trim();\n    }\n    else if (lastFilterIndex !== 0) {\n        pushFilter();\n    }\n    function pushFilter() {\n        (filters || (filters = [])).push(exp.slice(lastFilterIndex, i).trim());\n        lastFilterIndex = i + 1;\n    }\n    if (filters) {\n        for (i = 0; i < filters.length; i++) {\n            expression = wrapFilter(expression, filters[i]);\n        }\n    }\n    return expression;\n}\nfunction wrapFilter(exp, filter) {\n    var i = filter.indexOf('(');\n    if (i < 0) {\n        // _f: resolveFilter\n        return \"_f(\\\"\".concat(filter, \"\\\")(\").concat(exp, \")\");\n    }\n    else {\n        var name_1 = filter.slice(0, i);\n        var args = filter.slice(i + 1);\n        return \"_f(\\\"\".concat(name_1, \"\\\")(\").concat(exp).concat(args !== ')' ? ',' + args : args);\n    }\n}\n\n/* eslint-disable no-unused-vars */\nfunction baseWarn(msg, range) {\n    console.error(\"[Vue compiler]: \".concat(msg));\n}\n/* eslint-enable no-unused-vars */\nfunction pluckModuleFunction(modules, key) {\n    return modules ? modules.map(function (m) { return m[key]; }).filter(function (_) { return _; }) : [];\n}\nfunction addProp(el, name, value, range, dynamic) {\n    (el.props || (el.props = [])).push(rangeSetItem({ name: name, value: value, dynamic: dynamic }, range));\n    el.plain = false;\n}\nfunction addAttr(el, name, value, range, dynamic) {\n    var attrs = dynamic\n        ? el.dynamicAttrs || (el.dynamicAttrs = [])\n        : el.attrs || (el.attrs = []);\n    attrs.push(rangeSetItem({ name: name, value: value, dynamic: dynamic }, range));\n    el.plain = false;\n}\n// add a raw attr (use this in preTransforms)\nfunction addRawAttr(el, name, value, range) {\n    el.attrsMap[name] = value;\n    el.attrsList.push(rangeSetItem({ name: name, value: value }, range));\n}\nfunction addDirective(el, name, rawName, value, arg, isDynamicArg, modifiers, range) {\n    (el.directives || (el.directives = [])).push(rangeSetItem({\n        name: name,\n        rawName: rawName,\n        value: value,\n        arg: arg,\n        isDynamicArg: isDynamicArg,\n        modifiers: modifiers\n    }, range));\n    el.plain = false;\n}\nfunction prependModifierMarker(symbol, name, dynamic) {\n    return dynamic ? \"_p(\".concat(name, \",\\\"\").concat(symbol, \"\\\")\") : symbol + name; // mark the event as captured\n}\nfunction addHandler(el, name, value, modifiers, important, warn, range, dynamic) {\n    modifiers = modifiers || emptyObject;\n    // warn prevent and passive modifier\n    /* istanbul ignore if */\n    if ( true && warn && modifiers.prevent && modifiers.passive) {\n        warn(\"passive and prevent can't be used together. \" +\n            \"Passive handler can't prevent default event.\", range);\n    }\n    // normalize click.right and click.middle since they don't actually fire\n    // this is technically browser-specific, but at least for now browsers are\n    // the only target envs that have right/middle clicks.\n    if (modifiers.right) {\n        if (dynamic) {\n            name = \"(\".concat(name, \")==='click'?'contextmenu':(\").concat(name, \")\");\n        }\n        else if (name === 'click') {\n            name = 'contextmenu';\n            delete modifiers.right;\n        }\n    }\n    else if (modifiers.middle) {\n        if (dynamic) {\n            name = \"(\".concat(name, \")==='click'?'mouseup':(\").concat(name, \")\");\n        }\n        else if (name === 'click') {\n            name = 'mouseup';\n        }\n    }\n    // check capture modifier\n    if (modifiers.capture) {\n        delete modifiers.capture;\n        name = prependModifierMarker('!', name, dynamic);\n    }\n    if (modifiers.once) {\n        delete modifiers.once;\n        name = prependModifierMarker('~', name, dynamic);\n    }\n    /* istanbul ignore if */\n    if (modifiers.passive) {\n        delete modifiers.passive;\n        name = prependModifierMarker('&', name, dynamic);\n    }\n    var events;\n    if (modifiers.native) {\n        delete modifiers.native;\n        events = el.nativeEvents || (el.nativeEvents = {});\n    }\n    else {\n        events = el.events || (el.events = {});\n    }\n    var newHandler = rangeSetItem({ value: value.trim(), dynamic: dynamic }, range);\n    if (modifiers !== emptyObject) {\n        newHandler.modifiers = modifiers;\n    }\n    var handlers = events[name];\n    /* istanbul ignore if */\n    if (Array.isArray(handlers)) {\n        important ? handlers.unshift(newHandler) : handlers.push(newHandler);\n    }\n    else if (handlers) {\n        events[name] = important ? [newHandler, handlers] : [handlers, newHandler];\n    }\n    else {\n        events[name] = newHandler;\n    }\n    el.plain = false;\n}\nfunction getRawBindingAttr(el, name) {\n    return (el.rawAttrsMap[':' + name] ||\n        el.rawAttrsMap['v-bind:' + name] ||\n        el.rawAttrsMap[name]);\n}\nfunction getBindingAttr(el, name, getStatic) {\n    var dynamicValue = getAndRemoveAttr(el, ':' + name) || getAndRemoveAttr(el, 'v-bind:' + name);\n    if (dynamicValue != null) {\n        return parseFilters(dynamicValue);\n    }\n    else if (getStatic !== false) {\n        var staticValue = getAndRemoveAttr(el, name);\n        if (staticValue != null) {\n            return JSON.stringify(staticValue);\n        }\n    }\n}\n// note: this only removes the attr from the Array (attrsList) so that it\n// doesn't get processed by processAttrs.\n// By default it does NOT remove it from the map (attrsMap) because the map is\n// needed during codegen.\nfunction getAndRemoveAttr(el, name, removeFromMap) {\n    var val;\n    if ((val = el.attrsMap[name]) != null) {\n        var list = el.attrsList;\n        for (var i = 0, l = list.length; i < l; i++) {\n            if (list[i].name === name) {\n                list.splice(i, 1);\n                break;\n            }\n        }\n    }\n    if (removeFromMap) {\n        delete el.attrsMap[name];\n    }\n    return val;\n}\nfunction getAndRemoveAttrByRegex(el, name) {\n    var list = el.attrsList;\n    for (var i = 0, l = list.length; i < l; i++) {\n        var attr = list[i];\n        if (name.test(attr.name)) {\n            list.splice(i, 1);\n            return attr;\n        }\n    }\n}\nfunction rangeSetItem(item, range) {\n    if (range) {\n        if (range.start != null) {\n            item.start = range.start;\n        }\n        if (range.end != null) {\n            item.end = range.end;\n        }\n    }\n    return item;\n}\n\n/**\n * Cross-platform code generation for component v-model\n */\nfunction genComponentModel(el, value, modifiers) {\n    var _a = modifiers || {}, number = _a.number, trim = _a.trim;\n    var baseValueExpression = '$$v';\n    var valueExpression = baseValueExpression;\n    if (trim) {\n        valueExpression =\n            \"(typeof \".concat(baseValueExpression, \" === 'string'\") +\n                \"? \".concat(baseValueExpression, \".trim()\") +\n                \": \".concat(baseValueExpression, \")\");\n    }\n    if (number) {\n        valueExpression = \"_n(\".concat(valueExpression, \")\");\n    }\n    var assignment = genAssignmentCode(value, valueExpression);\n    el.model = {\n        value: \"(\".concat(value, \")\"),\n        expression: JSON.stringify(value),\n        callback: \"function (\".concat(baseValueExpression, \") {\").concat(assignment, \"}\")\n    };\n}\n/**\n * Cross-platform codegen helper for generating v-model value assignment code.\n */\nfunction genAssignmentCode(value, assignment) {\n    var res = parseModel(value);\n    if (res.key === null) {\n        return \"\".concat(value, \"=\").concat(assignment);\n    }\n    else {\n        return \"$set(\".concat(res.exp, \", \").concat(res.key, \", \").concat(assignment, \")\");\n    }\n}\n/**\n * Parse a v-model expression into a base path and a final key segment.\n * Handles both dot-path and possible square brackets.\n *\n * Possible cases:\n *\n * - test\n * - test[key]\n * - test[test1[key]]\n * - test[\"a\"][key]\n * - xxx.test[a[a].test1[key]]\n * - test.xxx.a[\"asa\"][test1[key]]\n *\n */\nvar len, str, chr, index, expressionPos, expressionEndPos;\nfunction parseModel(val) {\n    // Fix https://github.com/vuejs/vue/pull/7730\n    // allow v-model=\"obj.val \" (trailing whitespace)\n    val = val.trim();\n    len = val.length;\n    if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {\n        index = val.lastIndexOf('.');\n        if (index > -1) {\n            return {\n                exp: val.slice(0, index),\n                key: '\"' + val.slice(index + 1) + '\"'\n            };\n        }\n        else {\n            return {\n                exp: val,\n                key: null\n            };\n        }\n    }\n    str = val;\n    index = expressionPos = expressionEndPos = 0;\n    while (!eof()) {\n        chr = next();\n        /* istanbul ignore if */\n        if (isStringStart(chr)) {\n            parseString(chr);\n        }\n        else if (chr === 0x5b) {\n            parseBracket(chr);\n        }\n    }\n    return {\n        exp: val.slice(0, expressionPos),\n        key: val.slice(expressionPos + 1, expressionEndPos)\n    };\n}\nfunction next() {\n    return str.charCodeAt(++index);\n}\nfunction eof() {\n    return index >= len;\n}\nfunction isStringStart(chr) {\n    return chr === 0x22 || chr === 0x27;\n}\nfunction parseBracket(chr) {\n    var inBracket = 1;\n    expressionPos = index;\n    while (!eof()) {\n        chr = next();\n        if (isStringStart(chr)) {\n            parseString(chr);\n            continue;\n        }\n        if (chr === 0x5b)\n            inBracket++;\n        if (chr === 0x5d)\n            inBracket--;\n        if (inBracket === 0) {\n            expressionEndPos = index;\n            break;\n        }\n    }\n}\nfunction parseString(chr) {\n    var stringQuote = chr;\n    while (!eof()) {\n        chr = next();\n        if (chr === stringQuote) {\n            break;\n        }\n    }\n}\n\nvar warn$1;\n// in some cases, the event used has to be determined at runtime\n// so we used some reserved tokens during compile.\nvar RANGE_TOKEN = '__r';\nvar CHECKBOX_RADIO_TOKEN = '__c';\nfunction model$1(el, dir, _warn) {\n    warn$1 = _warn;\n    var value = dir.value;\n    var modifiers = dir.modifiers;\n    var tag = el.tag;\n    var type = el.attrsMap.type;\n    if (true) {\n        // inputs with type=\"file\" are read only and setting the input's\n        // value will throw an error.\n        if (tag === 'input' && type === 'file') {\n            warn$1(\"<\".concat(el.tag, \" v-model=\\\"\").concat(value, \"\\\" type=\\\"file\\\">:\\n\") +\n                \"File inputs are read only. Use a v-on:change listener instead.\", el.rawAttrsMap['v-model']);\n        }\n    }\n    if (el.component) {\n        genComponentModel(el, value, modifiers);\n        // component v-model doesn't need extra runtime\n        return false;\n    }\n    else if (tag === 'select') {\n        genSelect(el, value, modifiers);\n    }\n    else if (tag === 'input' && type === 'checkbox') {\n        genCheckboxModel(el, value, modifiers);\n    }\n    else if (tag === 'input' && type === 'radio') {\n        genRadioModel(el, value, modifiers);\n    }\n    else if (tag === 'input' || tag === 'textarea') {\n        genDefaultModel(el, value, modifiers);\n    }\n    else if (!config.isReservedTag(tag)) {\n        genComponentModel(el, value, modifiers);\n        // component v-model doesn't need extra runtime\n        return false;\n    }\n    else if (true) {\n        warn$1(\"<\".concat(el.tag, \" v-model=\\\"\").concat(value, \"\\\">: \") +\n            \"v-model is not supported on this element type. \" +\n            \"If you are working with contenteditable, it's recommended to \" +\n            'wrap a library dedicated for that purpose inside a custom component.', el.rawAttrsMap['v-model']);\n    }\n    // ensure runtime directive metadata\n    return true;\n}\nfunction genCheckboxModel(el, value, modifiers) {\n    var number = modifiers && modifiers.number;\n    var valueBinding = getBindingAttr(el, 'value') || 'null';\n    var trueValueBinding = getBindingAttr(el, 'true-value') || 'true';\n    var falseValueBinding = getBindingAttr(el, 'false-value') || 'false';\n    addProp(el, 'checked', \"Array.isArray(\".concat(value, \")\") +\n        \"?_i(\".concat(value, \",\").concat(valueBinding, \")>-1\") +\n        (trueValueBinding === 'true'\n            ? \":(\".concat(value, \")\")\n            : \":_q(\".concat(value, \",\").concat(trueValueBinding, \")\")));\n    addHandler(el, 'change', \"var $$a=\".concat(value, \",\") +\n        '$$el=$event.target,' +\n        \"$$c=$$el.checked?(\".concat(trueValueBinding, \"):(\").concat(falseValueBinding, \");\") +\n        'if(Array.isArray($$a)){' +\n        \"var $$v=\".concat(number ? '_n(' + valueBinding + ')' : valueBinding, \",\") +\n        '$$i=_i($$a,$$v);' +\n        \"if($$el.checked){$$i<0&&(\".concat(genAssignmentCode(value, '$$a.concat([$$v])'), \")}\") +\n        \"else{$$i>-1&&(\".concat(genAssignmentCode(value, '$$a.slice(0,$$i).concat($$a.slice($$i+1))'), \")}\") +\n        \"}else{\".concat(genAssignmentCode(value, '$$c'), \"}\"), null, true);\n}\nfunction genRadioModel(el, value, modifiers) {\n    var number = modifiers && modifiers.number;\n    var valueBinding = getBindingAttr(el, 'value') || 'null';\n    valueBinding = number ? \"_n(\".concat(valueBinding, \")\") : valueBinding;\n    addProp(el, 'checked', \"_q(\".concat(value, \",\").concat(valueBinding, \")\"));\n    addHandler(el, 'change', genAssignmentCode(value, valueBinding), null, true);\n}\nfunction genSelect(el, value, modifiers) {\n    var number = modifiers && modifiers.number;\n    var selectedVal = \"Array.prototype.filter\" +\n        \".call($event.target.options,function(o){return o.selected})\" +\n        \".map(function(o){var val = \\\"_value\\\" in o ? o._value : o.value;\" +\n        \"return \".concat(number ? '_n(val)' : 'val', \"})\");\n    var assignment = '$event.target.multiple ? $$selectedVal : $$selectedVal[0]';\n    var code = \"var $$selectedVal = \".concat(selectedVal, \";\");\n    code = \"\".concat(code, \" \").concat(genAssignmentCode(value, assignment));\n    addHandler(el, 'change', code, null, true);\n}\nfunction genDefaultModel(el, value, modifiers) {\n    var type = el.attrsMap.type;\n    // warn if v-bind:value conflicts with v-model\n    // except for inputs with v-bind:type\n    if (true) {\n        var value_1 = el.attrsMap['v-bind:value'] || el.attrsMap[':value'];\n        var typeBinding = el.attrsMap['v-bind:type'] || el.attrsMap[':type'];\n        if (value_1 && !typeBinding) {\n            var binding = el.attrsMap['v-bind:value'] ? 'v-bind:value' : ':value';\n            warn$1(\"\".concat(binding, \"=\\\"\").concat(value_1, \"\\\" conflicts with v-model on the same element \") +\n                'because the latter already expands to a value binding internally', el.rawAttrsMap[binding]);\n        }\n    }\n    var _a = modifiers || {}, lazy = _a.lazy, number = _a.number, trim = _a.trim;\n    var needCompositionGuard = !lazy && type !== 'range';\n    var event = lazy ? 'change' : type === 'range' ? RANGE_TOKEN : 'input';\n    var valueExpression = '$event.target.value';\n    if (trim) {\n        valueExpression = \"$event.target.value.trim()\";\n    }\n    if (number) {\n        valueExpression = \"_n(\".concat(valueExpression, \")\");\n    }\n    var code = genAssignmentCode(value, valueExpression);\n    if (needCompositionGuard) {\n        code = \"if($event.target.composing)return;\".concat(code);\n    }\n    addProp(el, 'value', \"(\".concat(value, \")\"));\n    addHandler(el, event, code, null, true);\n    if (trim || number) {\n        addHandler(el, 'blur', '$forceUpdate()');\n    }\n}\n\n// normalize v-model event tokens that can only be determined at runtime.\n// it's important to place the event as the first in the array because\n// the whole point is ensuring the v-model callback gets called before\n// user-attached handlers.\nfunction normalizeEvents(on) {\n    /* istanbul ignore if */\n    if (isDef(on[RANGE_TOKEN])) {\n        // IE input[type=range] only supports `change` event\n        var event_1 = isIE ? 'change' : 'input';\n        on[event_1] = [].concat(on[RANGE_TOKEN], on[event_1] || []);\n        delete on[RANGE_TOKEN];\n    }\n    // This was originally intended to fix #4521 but no longer necessary\n    // after 2.5. Keeping it for backwards compat with generated code from < 2.4\n    /* istanbul ignore if */\n    if (isDef(on[CHECKBOX_RADIO_TOKEN])) {\n        on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || []);\n        delete on[CHECKBOX_RADIO_TOKEN];\n    }\n}\nvar target;\nfunction createOnceHandler(event, handler, capture) {\n    var _target = target; // save current target element in closure\n    return function onceHandler() {\n        var res = handler.apply(null, arguments);\n        if (res !== null) {\n            remove(event, onceHandler, capture, _target);\n        }\n    };\n}\n// #9446: Firefox <= 53 (in particular, ESR 52) has incorrect Event.timeStamp\n// implementation and does not fire microtasks in between event propagation, so\n// safe to exclude.\nvar useMicrotaskFix = isUsingMicroTask && !(isFF && Number(isFF[1]) <= 53);\nfunction add(name, handler, capture, passive) {\n    // async edge case #6566: inner click event triggers patch, event handler\n    // attached to outer element during patch, and triggered again. This\n    // happens because browsers fire microtask ticks between event propagation.\n    // the solution is simple: we save the timestamp when a handler is attached,\n    // and the handler would only fire if the event passed to it was fired\n    // AFTER it was attached.\n    if (useMicrotaskFix) {\n        var attachedTimestamp_1 = currentFlushTimestamp;\n        var original_1 = handler;\n        //@ts-expect-error\n        handler = original_1._wrapper = function (e) {\n            if (\n            // no bubbling, should always fire.\n            // this is just a safety net in case event.timeStamp is unreliable in\n            // certain weird environments...\n            e.target === e.currentTarget ||\n                // event is fired after handler attachment\n                e.timeStamp >= attachedTimestamp_1 ||\n                // bail for environments that have buggy event.timeStamp implementations\n                // #9462 iOS 9 bug: event.timeStamp is 0 after history.pushState\n                // #9681 QtWebEngine event.timeStamp is negative value\n                e.timeStamp <= 0 ||\n                // #9448 bail if event is fired in another document in a multi-page\n                // electron/nw.js app, since event.timeStamp will be using a different\n                // starting reference\n                e.target.ownerDocument !== document) {\n                return original_1.apply(this, arguments);\n            }\n        };\n    }\n    target.addEventListener(name, handler, supportsPassive ? { capture: capture, passive: passive } : capture);\n}\nfunction remove(name, handler, capture, _target) {\n    (_target || target).removeEventListener(name, \n    //@ts-expect-error\n    handler._wrapper || handler, capture);\n}\nfunction updateDOMListeners(oldVnode, vnode) {\n    if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {\n        return;\n    }\n    var on = vnode.data.on || {};\n    var oldOn = oldVnode.data.on || {};\n    // vnode is empty when removing all listeners,\n    // and use old vnode dom element\n    target = vnode.elm || oldVnode.elm;\n    normalizeEvents(on);\n    updateListeners(on, oldOn, add, remove, createOnceHandler, vnode.context);\n    target = undefined;\n}\nvar events = {\n    create: updateDOMListeners,\n    update: updateDOMListeners,\n    // @ts-expect-error emptyNode has actually data\n    destroy: function (vnode) { return updateDOMListeners(vnode, emptyNode); }\n};\n\nvar svgContainer;\nfunction updateDOMProps(oldVnode, vnode) {\n    if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {\n        return;\n    }\n    var key, cur;\n    var elm = vnode.elm;\n    var oldProps = oldVnode.data.domProps || {};\n    var props = vnode.data.domProps || {};\n    // clone observed objects, as the user probably wants to mutate it\n    if (isDef(props.__ob__) || isTrue(props._v_attr_proxy)) {\n        props = vnode.data.domProps = extend({}, props);\n    }\n    for (key in oldProps) {\n        if (!(key in props)) {\n            elm[key] = '';\n        }\n    }\n    for (key in props) {\n        cur = props[key];\n        // ignore children if the node has textContent or innerHTML,\n        // as these will throw away existing DOM nodes and cause removal errors\n        // on subsequent patches (#3360)\n        if (key === 'textContent' || key === 'innerHTML') {\n            if (vnode.children)\n                vnode.children.length = 0;\n            if (cur === oldProps[key])\n                continue;\n            // #6601 work around Chrome version <= 55 bug where single textNode\n            // replaced by innerHTML/textContent retains its parentNode property\n            if (elm.childNodes.length === 1) {\n                elm.removeChild(elm.childNodes[0]);\n            }\n        }\n        if (key === 'value' && elm.tagName !== 'PROGRESS') {\n            // store value as _value as well since\n            // non-string values will be stringified\n            elm._value = cur;\n            // avoid resetting cursor position when value is the same\n            var strCur = isUndef(cur) ? '' : String(cur);\n            if (shouldUpdateValue(elm, strCur)) {\n                elm.value = strCur;\n            }\n        }\n        else if (key === 'innerHTML' &&\n            isSVG(elm.tagName) &&\n            isUndef(elm.innerHTML)) {\n            // IE doesn't support innerHTML for SVG elements\n            svgContainer = svgContainer || document.createElement('div');\n            svgContainer.innerHTML = \"<svg>\".concat(cur, \"</svg>\");\n            var svg = svgContainer.firstChild;\n            while (elm.firstChild) {\n                elm.removeChild(elm.firstChild);\n            }\n            while (svg.firstChild) {\n                elm.appendChild(svg.firstChild);\n            }\n        }\n        else if (\n        // skip the update if old and new VDOM state is the same.\n        // `value` is handled separately because the DOM value may be temporarily\n        // out of sync with VDOM state due to focus, composition and modifiers.\n        // This  #4521 by skipping the unnecessary `checked` update.\n        cur !== oldProps[key]) {\n            // some property updates can throw\n            // e.g. `value` on <progress> w/ non-finite value\n            try {\n                elm[key] = cur;\n            }\n            catch (e) { }\n        }\n    }\n}\nfunction shouldUpdateValue(elm, checkVal) {\n    return (\n    //@ts-expect-error\n    !elm.composing &&\n        (elm.tagName === 'OPTION' ||\n            isNotInFocusAndDirty(elm, checkVal) ||\n            isDirtyWithModifiers(elm, checkVal)));\n}\nfunction isNotInFocusAndDirty(elm, checkVal) {\n    // return true when textbox (.number and .trim) loses focus and its value is\n    // not equal to the updated value\n    var notInFocus = true;\n    // #6157\n    // work around IE bug when accessing document.activeElement in an iframe\n    try {\n        notInFocus = document.activeElement !== elm;\n    }\n    catch (e) { }\n    return notInFocus && elm.value !== checkVal;\n}\nfunction isDirtyWithModifiers(elm, newVal) {\n    var value = elm.value;\n    var modifiers = elm._vModifiers; // injected by v-model runtime\n    if (isDef(modifiers)) {\n        if (modifiers.number) {\n            return toNumber(value) !== toNumber(newVal);\n        }\n        if (modifiers.trim) {\n            return value.trim() !== newVal.trim();\n        }\n    }\n    return value !== newVal;\n}\nvar domProps = {\n    create: updateDOMProps,\n    update: updateDOMProps\n};\n\nvar parseStyleText = cached(function (cssText) {\n    var res = {};\n    var listDelimiter = /;(?![^(]*\\))/g;\n    var propertyDelimiter = /:(.+)/;\n    cssText.split(listDelimiter).forEach(function (item) {\n        if (item) {\n            var tmp = item.split(propertyDelimiter);\n            tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());\n        }\n    });\n    return res;\n});\n// merge static and dynamic style data on the same vnode\nfunction normalizeStyleData(data) {\n    var style = normalizeStyleBinding(data.style);\n    // static style is pre-processed into an object during compilation\n    // and is always a fresh object, so it's safe to merge into it\n    return data.staticStyle ? extend(data.staticStyle, style) : style;\n}\n// normalize possible array / string values into Object\nfunction normalizeStyleBinding(bindingStyle) {\n    if (Array.isArray(bindingStyle)) {\n        return toObject(bindingStyle);\n    }\n    if (typeof bindingStyle === 'string') {\n        return parseStyleText(bindingStyle);\n    }\n    return bindingStyle;\n}\n/**\n * parent component style should be after child's\n * so that parent component's style could override it\n */\nfunction getStyle(vnode, checkChild) {\n    var res = {};\n    var styleData;\n    if (checkChild) {\n        var childNode = vnode;\n        while (childNode.componentInstance) {\n            childNode = childNode.componentInstance._vnode;\n            if (childNode &&\n                childNode.data &&\n                (styleData = normalizeStyleData(childNode.data))) {\n                extend(res, styleData);\n            }\n        }\n    }\n    if ((styleData = normalizeStyleData(vnode.data))) {\n        extend(res, styleData);\n    }\n    var parentNode = vnode;\n    // @ts-expect-error parentNode.parent not VNodeWithData\n    while ((parentNode = parentNode.parent)) {\n        if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {\n            extend(res, styleData);\n        }\n    }\n    return res;\n}\n\nvar cssVarRE = /^--/;\nvar importantRE = /\\s*!important$/;\nvar setProp = function (el, name, val) {\n    /* istanbul ignore if */\n    if (cssVarRE.test(name)) {\n        el.style.setProperty(name, val);\n    }\n    else if (importantRE.test(val)) {\n        el.style.setProperty(hyphenate(name), val.replace(importantRE, ''), 'important');\n    }\n    else {\n        var normalizedName = normalize(name);\n        if (Array.isArray(val)) {\n            // Support values array created by autoprefixer, e.g.\n            // {display: [\"-webkit-box\", \"-ms-flexbox\", \"flex\"]}\n            // Set them one by one, and the browser will only set those it can recognize\n            for (var i = 0, len = val.length; i < len; i++) {\n                el.style[normalizedName] = val[i];\n            }\n        }\n        else {\n            el.style[normalizedName] = val;\n        }\n    }\n};\nvar vendorNames = ['Webkit', 'Moz', 'ms'];\nvar emptyStyle;\nvar normalize = cached(function (prop) {\n    emptyStyle = emptyStyle || document.createElement('div').style;\n    prop = camelize(prop);\n    if (prop !== 'filter' && prop in emptyStyle) {\n        return prop;\n    }\n    var capName = prop.charAt(0).toUpperCase() + prop.slice(1);\n    for (var i = 0; i < vendorNames.length; i++) {\n        var name_1 = vendorNames[i] + capName;\n        if (name_1 in emptyStyle) {\n            return name_1;\n        }\n    }\n});\nfunction updateStyle(oldVnode, vnode) {\n    var data = vnode.data;\n    var oldData = oldVnode.data;\n    if (isUndef(data.staticStyle) &&\n        isUndef(data.style) &&\n        isUndef(oldData.staticStyle) &&\n        isUndef(oldData.style)) {\n        return;\n    }\n    var cur, name;\n    var el = vnode.elm;\n    var oldStaticStyle = oldData.staticStyle;\n    var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};\n    // if static style exists, stylebinding already merged into it when doing normalizeStyleData\n    var oldStyle = oldStaticStyle || oldStyleBinding;\n    var style = normalizeStyleBinding(vnode.data.style) || {};\n    // store normalized style under a different key for next diff\n    // make sure to clone it if it's reactive, since the user likely wants\n    // to mutate it.\n    vnode.data.normalizedStyle = isDef(style.__ob__) ? extend({}, style) : style;\n    var newStyle = getStyle(vnode, true);\n    for (name in oldStyle) {\n        if (isUndef(newStyle[name])) {\n            setProp(el, name, '');\n        }\n    }\n    for (name in newStyle) {\n        cur = newStyle[name];\n        if (cur !== oldStyle[name]) {\n            // ie9 setting to null has no effect, must use empty string\n            setProp(el, name, cur == null ? '' : cur);\n        }\n    }\n}\nvar style$1 = {\n    create: updateStyle,\n    update: updateStyle\n};\n\nvar whitespaceRE$1 = /\\s+/;\n/**\n * Add class with compatibility for SVG since classList is not supported on\n * SVG elements in IE\n */\nfunction addClass(el, cls) {\n    /* istanbul ignore if */\n    if (!cls || !(cls = cls.trim())) {\n        return;\n    }\n    /* istanbul ignore else */\n    if (el.classList) {\n        if (cls.indexOf(' ') > -1) {\n            cls.split(whitespaceRE$1).forEach(function (c) { return el.classList.add(c); });\n        }\n        else {\n            el.classList.add(cls);\n        }\n    }\n    else {\n        var cur = \" \".concat(el.getAttribute('class') || '', \" \");\n        if (cur.indexOf(' ' + cls + ' ') < 0) {\n            el.setAttribute('class', (cur + cls).trim());\n        }\n    }\n}\n/**\n * Remove class with compatibility for SVG since classList is not supported on\n * SVG elements in IE\n */\nfunction removeClass(el, cls) {\n    /* istanbul ignore if */\n    if (!cls || !(cls = cls.trim())) {\n        return;\n    }\n    /* istanbul ignore else */\n    if (el.classList) {\n        if (cls.indexOf(' ') > -1) {\n            cls.split(whitespaceRE$1).forEach(function (c) { return el.classList.remove(c); });\n        }\n        else {\n            el.classList.remove(cls);\n        }\n        if (!el.classList.length) {\n            el.removeAttribute('class');\n        }\n    }\n    else {\n        var cur = \" \".concat(el.getAttribute('class') || '', \" \");\n        var tar = ' ' + cls + ' ';\n        while (cur.indexOf(tar) >= 0) {\n            cur = cur.replace(tar, ' ');\n        }\n        cur = cur.trim();\n        if (cur) {\n            el.setAttribute('class', cur);\n        }\n        else {\n            el.removeAttribute('class');\n        }\n    }\n}\n\nfunction resolveTransition(def) {\n    if (!def) {\n        return;\n    }\n    /* istanbul ignore else */\n    if (typeof def === 'object') {\n        var res = {};\n        if (def.css !== false) {\n            extend(res, autoCssTransition(def.name || 'v'));\n        }\n        extend(res, def);\n        return res;\n    }\n    else if (typeof def === 'string') {\n        return autoCssTransition(def);\n    }\n}\nvar autoCssTransition = cached(function (name) {\n    return {\n        enterClass: \"\".concat(name, \"-enter\"),\n        enterToClass: \"\".concat(name, \"-enter-to\"),\n        enterActiveClass: \"\".concat(name, \"-enter-active\"),\n        leaveClass: \"\".concat(name, \"-leave\"),\n        leaveToClass: \"\".concat(name, \"-leave-to\"),\n        leaveActiveClass: \"\".concat(name, \"-leave-active\")\n    };\n});\nvar hasTransition = inBrowser && !isIE9;\nvar TRANSITION = 'transition';\nvar ANIMATION = 'animation';\n// Transition property/event sniffing\nvar transitionProp = 'transition';\nvar transitionEndEvent = 'transitionend';\nvar animationProp = 'animation';\nvar animationEndEvent = 'animationend';\nif (hasTransition) {\n    /* istanbul ignore if */\n    if (window.ontransitionend === undefined &&\n        window.onwebkittransitionend !== undefined) {\n        transitionProp = 'WebkitTransition';\n        transitionEndEvent = 'webkitTransitionEnd';\n    }\n    if (window.onanimationend === undefined &&\n        window.onwebkitanimationend !== undefined) {\n        animationProp = 'WebkitAnimation';\n        animationEndEvent = 'webkitAnimationEnd';\n    }\n}\n// binding to window is necessary to make hot reload work in IE in strict mode\nvar raf = inBrowser\n    ? window.requestAnimationFrame\n        ? window.requestAnimationFrame.bind(window)\n        : setTimeout\n    : /* istanbul ignore next */ function (/* istanbul ignore next */ fn) { return fn(); };\nfunction nextFrame(fn) {\n    raf(function () {\n        // @ts-expect-error\n        raf(fn);\n    });\n}\nfunction addTransitionClass(el, cls) {\n    var transitionClasses = el._transitionClasses || (el._transitionClasses = []);\n    if (transitionClasses.indexOf(cls) < 0) {\n        transitionClasses.push(cls);\n        addClass(el, cls);\n    }\n}\nfunction removeTransitionClass(el, cls) {\n    if (el._transitionClasses) {\n        remove$2(el._transitionClasses, cls);\n    }\n    removeClass(el, cls);\n}\nfunction whenTransitionEnds(el, expectedType, cb) {\n    var _a = getTransitionInfo(el, expectedType), type = _a.type, timeout = _a.timeout, propCount = _a.propCount;\n    if (!type)\n        return cb();\n    var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;\n    var ended = 0;\n    var end = function () {\n        el.removeEventListener(event, onEnd);\n        cb();\n    };\n    var onEnd = function (e) {\n        if (e.target === el) {\n            if (++ended >= propCount) {\n                end();\n            }\n        }\n    };\n    setTimeout(function () {\n        if (ended < propCount) {\n            end();\n        }\n    }, timeout + 1);\n    el.addEventListener(event, onEnd);\n}\nvar transformRE = /\\b(transform|all)(,|$)/;\nfunction getTransitionInfo(el, expectedType) {\n    var styles = window.getComputedStyle(el);\n    // JSDOM may return undefined for transition properties\n    var transitionDelays = (styles[transitionProp + 'Delay'] || '').split(', ');\n    var transitionDurations = (styles[transitionProp + 'Duration'] || '').split(', ');\n    var transitionTimeout = getTimeout(transitionDelays, transitionDurations);\n    var animationDelays = (styles[animationProp + 'Delay'] || '').split(', ');\n    var animationDurations = (styles[animationProp + 'Duration'] || '').split(', ');\n    var animationTimeout = getTimeout(animationDelays, animationDurations);\n    var type;\n    var timeout = 0;\n    var propCount = 0;\n    /* istanbul ignore if */\n    if (expectedType === TRANSITION) {\n        if (transitionTimeout > 0) {\n            type = TRANSITION;\n            timeout = transitionTimeout;\n            propCount = transitionDurations.length;\n        }\n    }\n    else if (expectedType === ANIMATION) {\n        if (animationTimeout > 0) {\n            type = ANIMATION;\n            timeout = animationTimeout;\n            propCount = animationDurations.length;\n        }\n    }\n    else {\n        timeout = Math.max(transitionTimeout, animationTimeout);\n        type =\n            timeout > 0\n                ? transitionTimeout > animationTimeout\n                    ? TRANSITION\n                    : ANIMATION\n                : null;\n        propCount = type\n            ? type === TRANSITION\n                ? transitionDurations.length\n                : animationDurations.length\n            : 0;\n    }\n    var hasTransform = type === TRANSITION && transformRE.test(styles[transitionProp + 'Property']);\n    return {\n        type: type,\n        timeout: timeout,\n        propCount: propCount,\n        hasTransform: hasTransform\n    };\n}\nfunction getTimeout(delays, durations) {\n    /* istanbul ignore next */\n    while (delays.length < durations.length) {\n        delays = delays.concat(delays);\n    }\n    return Math.max.apply(null, durations.map(function (d, i) {\n        return toMs(d) + toMs(delays[i]);\n    }));\n}\n// Old versions of Chromium (below 61.0.3163.100) formats floating pointer numbers\n// in a locale-dependent way, using a comma instead of a dot.\n// If comma is not replaced with a dot, the input will be rounded down (i.e. acting\n// as a floor function) causing unexpected behaviors\nfunction toMs(s) {\n    return Number(s.slice(0, -1).replace(',', '.')) * 1000;\n}\n\nfunction enter(vnode, toggleDisplay) {\n    var el = vnode.elm;\n    // call leave callback now\n    if (isDef(el._leaveCb)) {\n        el._leaveCb.cancelled = true;\n        el._leaveCb();\n    }\n    var data = resolveTransition(vnode.data.transition);\n    if (isUndef(data)) {\n        return;\n    }\n    /* istanbul ignore if */\n    if (isDef(el._enterCb) || el.nodeType !== 1) {\n        return;\n    }\n    var css = data.css, type = data.type, enterClass = data.enterClass, enterToClass = data.enterToClass, enterActiveClass = data.enterActiveClass, appearClass = data.appearClass, appearToClass = data.appearToClass, appearActiveClass = data.appearActiveClass, beforeEnter = data.beforeEnter, enter = data.enter, afterEnter = data.afterEnter, enterCancelled = data.enterCancelled, beforeAppear = data.beforeAppear, appear = data.appear, afterAppear = data.afterAppear, appearCancelled = data.appearCancelled, duration = data.duration;\n    // activeInstance will always be the <transition> component managing this\n    // transition. One edge case to check is when the <transition> is placed\n    // as the root node of a child component. In that case we need to check\n    // <transition>'s parent for appear check.\n    var context = activeInstance;\n    var transitionNode = activeInstance.$vnode;\n    while (transitionNode && transitionNode.parent) {\n        context = transitionNode.context;\n        transitionNode = transitionNode.parent;\n    }\n    var isAppear = !context._isMounted || !vnode.isRootInsert;\n    if (isAppear && !appear && appear !== '') {\n        return;\n    }\n    var startClass = isAppear && appearClass ? appearClass : enterClass;\n    var activeClass = isAppear && appearActiveClass ? appearActiveClass : enterActiveClass;\n    var toClass = isAppear && appearToClass ? appearToClass : enterToClass;\n    var beforeEnterHook = isAppear ? beforeAppear || beforeEnter : beforeEnter;\n    var enterHook = isAppear ? (isFunction(appear) ? appear : enter) : enter;\n    var afterEnterHook = isAppear ? afterAppear || afterEnter : afterEnter;\n    var enterCancelledHook = isAppear\n        ? appearCancelled || enterCancelled\n        : enterCancelled;\n    var explicitEnterDuration = toNumber(isObject(duration) ? duration.enter : duration);\n    if ( true && explicitEnterDuration != null) {\n        checkDuration(explicitEnterDuration, 'enter', vnode);\n    }\n    var expectsCSS = css !== false && !isIE9;\n    var userWantsControl = getHookArgumentsLength(enterHook);\n    var cb = (el._enterCb = once(function () {\n        if (expectsCSS) {\n            removeTransitionClass(el, toClass);\n            removeTransitionClass(el, activeClass);\n        }\n        // @ts-expect-error\n        if (cb.cancelled) {\n            if (expectsCSS) {\n                removeTransitionClass(el, startClass);\n            }\n            enterCancelledHook && enterCancelledHook(el);\n        }\n        else {\n            afterEnterHook && afterEnterHook(el);\n        }\n        el._enterCb = null;\n    }));\n    if (!vnode.data.show) {\n        // remove pending leave element on enter by injecting an insert hook\n        mergeVNodeHook(vnode, 'insert', function () {\n            var parent = el.parentNode;\n            var pendingNode = parent && parent._pending && parent._pending[vnode.key];\n            if (pendingNode &&\n                pendingNode.tag === vnode.tag &&\n                pendingNode.elm._leaveCb) {\n                pendingNode.elm._leaveCb();\n            }\n            enterHook && enterHook(el, cb);\n        });\n    }\n    // start enter transition\n    beforeEnterHook && beforeEnterHook(el);\n    if (expectsCSS) {\n        addTransitionClass(el, startClass);\n        addTransitionClass(el, activeClass);\n        nextFrame(function () {\n            removeTransitionClass(el, startClass);\n            // @ts-expect-error\n            if (!cb.cancelled) {\n                addTransitionClass(el, toClass);\n                if (!userWantsControl) {\n                    if (isValidDuration(explicitEnterDuration)) {\n                        setTimeout(cb, explicitEnterDuration);\n                    }\n                    else {\n                        whenTransitionEnds(el, type, cb);\n                    }\n                }\n            }\n        });\n    }\n    if (vnode.data.show) {\n        toggleDisplay && toggleDisplay();\n        enterHook && enterHook(el, cb);\n    }\n    if (!expectsCSS && !userWantsControl) {\n        cb();\n    }\n}\nfunction leave(vnode, rm) {\n    var el = vnode.elm;\n    // call enter callback now\n    if (isDef(el._enterCb)) {\n        el._enterCb.cancelled = true;\n        el._enterCb();\n    }\n    var data = resolveTransition(vnode.data.transition);\n    if (isUndef(data) || el.nodeType !== 1) {\n        return rm();\n    }\n    /* istanbul ignore if */\n    if (isDef(el._leaveCb)) {\n        return;\n    }\n    var css = data.css, type = data.type, leaveClass = data.leaveClass, leaveToClass = data.leaveToClass, leaveActiveClass = data.leaveActiveClass, beforeLeave = data.beforeLeave, leave = data.leave, afterLeave = data.afterLeave, leaveCancelled = data.leaveCancelled, delayLeave = data.delayLeave, duration = data.duration;\n    var expectsCSS = css !== false && !isIE9;\n    var userWantsControl = getHookArgumentsLength(leave);\n    var explicitLeaveDuration = toNumber(isObject(duration) ? duration.leave : duration);\n    if ( true && isDef(explicitLeaveDuration)) {\n        checkDuration(explicitLeaveDuration, 'leave', vnode);\n    }\n    var cb = (el._leaveCb = once(function () {\n        if (el.parentNode && el.parentNode._pending) {\n            el.parentNode._pending[vnode.key] = null;\n        }\n        if (expectsCSS) {\n            removeTransitionClass(el, leaveToClass);\n            removeTransitionClass(el, leaveActiveClass);\n        }\n        // @ts-expect-error\n        if (cb.cancelled) {\n            if (expectsCSS) {\n                removeTransitionClass(el, leaveClass);\n            }\n            leaveCancelled && leaveCancelled(el);\n        }\n        else {\n            rm();\n            afterLeave && afterLeave(el);\n        }\n        el._leaveCb = null;\n    }));\n    if (delayLeave) {\n        delayLeave(performLeave);\n    }\n    else {\n        performLeave();\n    }\n    function performLeave() {\n        // the delayed leave may have already been cancelled\n        // @ts-expect-error\n        if (cb.cancelled) {\n            return;\n        }\n        // record leaving element\n        if (!vnode.data.show && el.parentNode) {\n            (el.parentNode._pending || (el.parentNode._pending = {}))[vnode.key] =\n                vnode;\n        }\n        beforeLeave && beforeLeave(el);\n        if (expectsCSS) {\n            addTransitionClass(el, leaveClass);\n            addTransitionClass(el, leaveActiveClass);\n            nextFrame(function () {\n                removeTransitionClass(el, leaveClass);\n                // @ts-expect-error\n                if (!cb.cancelled) {\n                    addTransitionClass(el, leaveToClass);\n                    if (!userWantsControl) {\n                        if (isValidDuration(explicitLeaveDuration)) {\n                            setTimeout(cb, explicitLeaveDuration);\n                        }\n                        else {\n                            whenTransitionEnds(el, type, cb);\n                        }\n                    }\n                }\n            });\n        }\n        leave && leave(el, cb);\n        if (!expectsCSS && !userWantsControl) {\n            cb();\n        }\n    }\n}\n// only used in dev mode\nfunction checkDuration(val, name, vnode) {\n    if (typeof val !== 'number') {\n        warn$2(\"<transition> explicit \".concat(name, \" duration is not a valid number - \") +\n            \"got \".concat(JSON.stringify(val), \".\"), vnode.context);\n    }\n    else if (isNaN(val)) {\n        warn$2(\"<transition> explicit \".concat(name, \" duration is NaN - \") +\n            'the duration expression might be incorrect.', vnode.context);\n    }\n}\nfunction isValidDuration(val) {\n    return typeof val === 'number' && !isNaN(val);\n}\n/**\n * Normalize a transition hook's argument length. The hook may be:\n * - a merged hook (invoker) with the original in .fns\n * - a wrapped component method (check ._length)\n * - a plain function (.length)\n */\nfunction getHookArgumentsLength(fn) {\n    if (isUndef(fn)) {\n        return false;\n    }\n    // @ts-expect-error\n    var invokerFns = fn.fns;\n    if (isDef(invokerFns)) {\n        // invoker\n        return getHookArgumentsLength(Array.isArray(invokerFns) ? invokerFns[0] : invokerFns);\n    }\n    else {\n        // @ts-expect-error\n        return (fn._length || fn.length) > 1;\n    }\n}\nfunction _enter(_, vnode) {\n    if (vnode.data.show !== true) {\n        enter(vnode);\n    }\n}\nvar transition = inBrowser\n    ? {\n        create: _enter,\n        activate: _enter,\n        remove: function (vnode, rm) {\n            /* istanbul ignore else */\n            if (vnode.data.show !== true) {\n                // @ts-expect-error\n                leave(vnode, rm);\n            }\n            else {\n                rm();\n            }\n        }\n    }\n    : {};\n\nvar platformModules = [attrs, klass$1, events, domProps, style$1, transition];\n\n// the directive module should be applied last, after all\n// built-in modules have been applied.\nvar modules$1 = platformModules.concat(baseModules);\nvar patch = createPatchFunction({ nodeOps: nodeOps, modules: modules$1 });\n\n/**\n * Not type checking this file because flow doesn't like attaching\n * properties to Elements.\n */\n/* istanbul ignore if */\nif (isIE9) {\n    // http://www.matts411.com/post/internet-explorer-9-oninput/\n    document.addEventListener('selectionchange', function () {\n        var el = document.activeElement;\n        // @ts-expect-error\n        if (el && el.vmodel) {\n            trigger(el, 'input');\n        }\n    });\n}\nvar directive = {\n    inserted: function (el, binding, vnode, oldVnode) {\n        if (vnode.tag === 'select') {\n            // #6903\n            if (oldVnode.elm && !oldVnode.elm._vOptions) {\n                mergeVNodeHook(vnode, 'postpatch', function () {\n                    directive.componentUpdated(el, binding, vnode);\n                });\n            }\n            else {\n                setSelected(el, binding, vnode.context);\n            }\n            el._vOptions = [].map.call(el.options, getValue);\n        }\n        else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {\n            el._vModifiers = binding.modifiers;\n            if (!binding.modifiers.lazy) {\n                el.addEventListener('compositionstart', onCompositionStart);\n                el.addEventListener('compositionend', onCompositionEnd);\n                // Safari < 10.2 & UIWebView doesn't fire compositionend when\n                // switching focus before confirming composition choice\n                // this also fixes the issue where some browsers e.g. iOS Chrome\n                // fires \"change\" instead of \"input\" on autocomplete.\n                el.addEventListener('change', onCompositionEnd);\n                /* istanbul ignore if */\n                if (isIE9) {\n                    el.vmodel = true;\n                }\n            }\n        }\n    },\n    componentUpdated: function (el, binding, vnode) {\n        if (vnode.tag === 'select') {\n            setSelected(el, binding, vnode.context);\n            // in case the options rendered by v-for have changed,\n            // it's possible that the value is out-of-sync with the rendered options.\n            // detect such cases and filter out values that no longer has a matching\n            // option in the DOM.\n            var prevOptions_1 = el._vOptions;\n            var curOptions_1 = (el._vOptions = [].map.call(el.options, getValue));\n            if (curOptions_1.some(function (o, i) { return !looseEqual(o, prevOptions_1[i]); })) {\n                // trigger change event if\n                // no matching option found for at least one value\n                var needReset = el.multiple\n                    ? binding.value.some(function (v) { return hasNoMatchingOption(v, curOptions_1); })\n                    : binding.value !== binding.oldValue &&\n                        hasNoMatchingOption(binding.value, curOptions_1);\n                if (needReset) {\n                    trigger(el, 'change');\n                }\n            }\n        }\n    }\n};\nfunction setSelected(el, binding, vm) {\n    actuallySetSelected(el, binding, vm);\n    /* istanbul ignore if */\n    if (isIE || isEdge) {\n        setTimeout(function () {\n            actuallySetSelected(el, binding, vm);\n        }, 0);\n    }\n}\nfunction actuallySetSelected(el, binding, vm) {\n    var value = binding.value;\n    var isMultiple = el.multiple;\n    if (isMultiple && !Array.isArray(value)) {\n         true &&\n            warn$2(\"<select multiple v-model=\\\"\".concat(binding.expression, \"\\\"> \") +\n                \"expects an Array value for its binding, but got \".concat(Object.prototype.toString\n                    .call(value)\n                    .slice(8, -1)), vm);\n        return;\n    }\n    var selected, option;\n    for (var i = 0, l = el.options.length; i < l; i++) {\n        option = el.options[i];\n        if (isMultiple) {\n            selected = looseIndexOf(value, getValue(option)) > -1;\n            if (option.selected !== selected) {\n                option.selected = selected;\n            }\n        }\n        else {\n            if (looseEqual(getValue(option), value)) {\n                if (el.selectedIndex !== i) {\n                    el.selectedIndex = i;\n                }\n                return;\n            }\n        }\n    }\n    if (!isMultiple) {\n        el.selectedIndex = -1;\n    }\n}\nfunction hasNoMatchingOption(value, options) {\n    return options.every(function (o) { return !looseEqual(o, value); });\n}\nfunction getValue(option) {\n    return '_value' in option ? option._value : option.value;\n}\nfunction onCompositionStart(e) {\n    e.target.composing = true;\n}\nfunction onCompositionEnd(e) {\n    // prevent triggering an input event for no reason\n    if (!e.target.composing)\n        return;\n    e.target.composing = false;\n    trigger(e.target, 'input');\n}\nfunction trigger(el, type) {\n    var e = document.createEvent('HTMLEvents');\n    e.initEvent(type, true, true);\n    el.dispatchEvent(e);\n}\n\n// recursively search for possible transition defined inside the component root\nfunction locateNode(vnode) {\n    // @ts-expect-error\n    return vnode.componentInstance && (!vnode.data || !vnode.data.transition)\n        ? locateNode(vnode.componentInstance._vnode)\n        : vnode;\n}\nvar show = {\n    bind: function (el, _a, vnode) {\n        var value = _a.value;\n        vnode = locateNode(vnode);\n        var transition = vnode.data && vnode.data.transition;\n        var originalDisplay = (el.__vOriginalDisplay =\n            el.style.display === 'none' ? '' : el.style.display);\n        if (value && transition) {\n            vnode.data.show = true;\n            enter(vnode, function () {\n                el.style.display = originalDisplay;\n            });\n        }\n        else {\n            el.style.display = value ? originalDisplay : 'none';\n        }\n    },\n    update: function (el, _a, vnode) {\n        var value = _a.value, oldValue = _a.oldValue;\n        /* istanbul ignore if */\n        if (!value === !oldValue)\n            return;\n        vnode = locateNode(vnode);\n        var transition = vnode.data && vnode.data.transition;\n        if (transition) {\n            vnode.data.show = true;\n            if (value) {\n                enter(vnode, function () {\n                    el.style.display = el.__vOriginalDisplay;\n                });\n            }\n            else {\n                leave(vnode, function () {\n                    el.style.display = 'none';\n                });\n            }\n        }\n        else {\n            el.style.display = value ? el.__vOriginalDisplay : 'none';\n        }\n    },\n    unbind: function (el, binding, vnode, oldVnode, isDestroy) {\n        if (!isDestroy) {\n            el.style.display = el.__vOriginalDisplay;\n        }\n    }\n};\n\nvar platformDirectives = {\n    model: directive,\n    show: show\n};\n\n// Provides transition support for a single element/component.\nvar transitionProps = {\n    name: String,\n    appear: Boolean,\n    css: Boolean,\n    mode: String,\n    type: String,\n    enterClass: String,\n    leaveClass: String,\n    enterToClass: String,\n    leaveToClass: String,\n    enterActiveClass: String,\n    leaveActiveClass: String,\n    appearClass: String,\n    appearActiveClass: String,\n    appearToClass: String,\n    duration: [Number, String, Object]\n};\n// in case the child is also an abstract component, e.g. <keep-alive>\n// we want to recursively retrieve the real component to be rendered\nfunction getRealChild(vnode) {\n    var compOptions = vnode && vnode.componentOptions;\n    if (compOptions && compOptions.Ctor.options.abstract) {\n        return getRealChild(getFirstComponentChild(compOptions.children));\n    }\n    else {\n        return vnode;\n    }\n}\nfunction extractTransitionData(comp) {\n    var data = {};\n    var options = comp.$options;\n    // props\n    for (var key in options.propsData) {\n        data[key] = comp[key];\n    }\n    // events.\n    // extract listeners and pass them directly to the transition methods\n    var listeners = options._parentListeners;\n    for (var key in listeners) {\n        data[camelize(key)] = listeners[key];\n    }\n    return data;\n}\nfunction placeholder(h, rawChild) {\n    // @ts-expect-error\n    if (/\\d-keep-alive$/.test(rawChild.tag)) {\n        return h('keep-alive', {\n            props: rawChild.componentOptions.propsData\n        });\n    }\n}\nfunction hasParentTransition(vnode) {\n    while ((vnode = vnode.parent)) {\n        if (vnode.data.transition) {\n            return true;\n        }\n    }\n}\nfunction isSameChild(child, oldChild) {\n    return oldChild.key === child.key && oldChild.tag === child.tag;\n}\nvar isNotTextNode = function (c) { return c.tag || isAsyncPlaceholder(c); };\nvar isVShowDirective = function (d) { return d.name === 'show'; };\nvar Transition = {\n    name: 'transition',\n    props: transitionProps,\n    abstract: true,\n    render: function (h) {\n        var _this = this;\n        var children = this.$slots.default;\n        if (!children) {\n            return;\n        }\n        // filter out text nodes (possible whitespaces)\n        children = children.filter(isNotTextNode);\n        /* istanbul ignore if */\n        if (!children.length) {\n            return;\n        }\n        // warn multiple elements\n        if ( true && children.length > 1) {\n            warn$2('<transition> can only be used on a single element. Use ' +\n                '<transition-group> for lists.', this.$parent);\n        }\n        var mode = this.mode;\n        // warn invalid mode\n        if ( true && mode && mode !== 'in-out' && mode !== 'out-in') {\n            warn$2('invalid <transition> mode: ' + mode, this.$parent);\n        }\n        var rawChild = children[0];\n        // if this is a component root node and the component's\n        // parent container node also has transition, skip.\n        if (hasParentTransition(this.$vnode)) {\n            return rawChild;\n        }\n        // apply transition data to child\n        // use getRealChild() to ignore abstract components e.g. keep-alive\n        var child = getRealChild(rawChild);\n        /* istanbul ignore if */\n        if (!child) {\n            return rawChild;\n        }\n        if (this._leaving) {\n            return placeholder(h, rawChild);\n        }\n        // ensure a key that is unique to the vnode type and to this transition\n        // component instance. This key will be used to remove pending leaving nodes\n        // during entering.\n        var id = \"__transition-\".concat(this._uid, \"-\");\n        child.key =\n            child.key == null\n                ? child.isComment\n                    ? id + 'comment'\n                    : id + child.tag\n                : isPrimitive(child.key)\n                    ? String(child.key).indexOf(id) === 0\n                        ? child.key\n                        : id + child.key\n                    : child.key;\n        var data = ((child.data || (child.data = {})).transition =\n            extractTransitionData(this));\n        var oldRawChild = this._vnode;\n        var oldChild = getRealChild(oldRawChild);\n        // mark v-show\n        // so that the transition module can hand over the control to the directive\n        if (child.data.directives && child.data.directives.some(isVShowDirective)) {\n            child.data.show = true;\n        }\n        if (oldChild &&\n            oldChild.data &&\n            !isSameChild(child, oldChild) &&\n            !isAsyncPlaceholder(oldChild) &&\n            // #6687 component root is a comment node\n            !(oldChild.componentInstance &&\n                oldChild.componentInstance._vnode.isComment)) {\n            // replace old child transition data with fresh one\n            // important for dynamic transitions!\n            var oldData = (oldChild.data.transition = extend({}, data));\n            // handle transition mode\n            if (mode === 'out-in') {\n                // return placeholder node and queue update when leave finishes\n                this._leaving = true;\n                mergeVNodeHook(oldData, 'afterLeave', function () {\n                    _this._leaving = false;\n                    _this.$forceUpdate();\n                });\n                return placeholder(h, rawChild);\n            }\n            else if (mode === 'in-out') {\n                if (isAsyncPlaceholder(child)) {\n                    return oldRawChild;\n                }\n                var delayedLeave_1;\n                var performLeave = function () {\n                    delayedLeave_1();\n                };\n                mergeVNodeHook(data, 'afterEnter', performLeave);\n                mergeVNodeHook(data, 'enterCancelled', performLeave);\n                mergeVNodeHook(oldData, 'delayLeave', function (leave) {\n                    delayedLeave_1 = leave;\n                });\n            }\n        }\n        return rawChild;\n    }\n};\n\n// Provides transition support for list items.\nvar props = extend({\n    tag: String,\n    moveClass: String\n}, transitionProps);\ndelete props.mode;\nvar TransitionGroup = {\n    props: props,\n    beforeMount: function () {\n        var _this = this;\n        var update = this._update;\n        this._update = function (vnode, hydrating) {\n            var restoreActiveInstance = setActiveInstance(_this);\n            // force removing pass\n            _this.__patch__(_this._vnode, _this.kept, false, // hydrating\n            true // removeOnly (!important, avoids unnecessary moves)\n            );\n            _this._vnode = _this.kept;\n            restoreActiveInstance();\n            update.call(_this, vnode, hydrating);\n        };\n    },\n    render: function (h) {\n        var tag = this.tag || this.$vnode.data.tag || 'span';\n        var map = Object.create(null);\n        var prevChildren = (this.prevChildren = this.children);\n        var rawChildren = this.$slots.default || [];\n        var children = (this.children = []);\n        var transitionData = extractTransitionData(this);\n        for (var i = 0; i < rawChildren.length; i++) {\n            var c = rawChildren[i];\n            if (c.tag) {\n                if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {\n                    children.push(c);\n                    map[c.key] = c;\n                    (c.data || (c.data = {})).transition = transitionData;\n                }\n                else if (true) {\n                    var opts = c.componentOptions;\n                    var name_1 = opts\n                        ? getComponentName(opts.Ctor.options) || opts.tag || ''\n                        : c.tag;\n                    warn$2(\"<transition-group> children must be keyed: <\".concat(name_1, \">\"));\n                }\n            }\n        }\n        if (prevChildren) {\n            var kept = [];\n            var removed = [];\n            for (var i = 0; i < prevChildren.length; i++) {\n                var c = prevChildren[i];\n                c.data.transition = transitionData;\n                // @ts-expect-error .getBoundingClientRect is not typed in Node\n                c.data.pos = c.elm.getBoundingClientRect();\n                if (map[c.key]) {\n                    kept.push(c);\n                }\n                else {\n                    removed.push(c);\n                }\n            }\n            this.kept = h(tag, null, kept);\n            this.removed = removed;\n        }\n        return h(tag, null, children);\n    },\n    updated: function () {\n        var children = this.prevChildren;\n        var moveClass = this.moveClass || (this.name || 'v') + '-move';\n        if (!children.length || !this.hasMove(children[0].elm, moveClass)) {\n            return;\n        }\n        // we divide the work into three loops to avoid mixing DOM reads and writes\n        // in each iteration - which helps prevent layout thrashing.\n        children.forEach(callPendingCbs);\n        children.forEach(recordPosition);\n        children.forEach(applyTranslation);\n        // force reflow to put everything in position\n        // assign to this to avoid being removed in tree-shaking\n        // $flow-disable-line\n        this._reflow = document.body.offsetHeight;\n        children.forEach(function (c) {\n            if (c.data.moved) {\n                var el_1 = c.elm;\n                var s = el_1.style;\n                addTransitionClass(el_1, moveClass);\n                s.transform = s.WebkitTransform = s.transitionDuration = '';\n                el_1.addEventListener(transitionEndEvent, (el_1._moveCb = function cb(e) {\n                    if (e && e.target !== el_1) {\n                        return;\n                    }\n                    if (!e || /transform$/.test(e.propertyName)) {\n                        el_1.removeEventListener(transitionEndEvent, cb);\n                        el_1._moveCb = null;\n                        removeTransitionClass(el_1, moveClass);\n                    }\n                }));\n            }\n        });\n    },\n    methods: {\n        hasMove: function (el, moveClass) {\n            /* istanbul ignore if */\n            if (!hasTransition) {\n                return false;\n            }\n            /* istanbul ignore if */\n            if (this._hasMove) {\n                return this._hasMove;\n            }\n            // Detect whether an element with the move class applied has\n            // CSS transitions. Since the element may be inside an entering\n            // transition at this very moment, we make a clone of it and remove\n            // all other transition classes applied to ensure only the move class\n            // is applied.\n            var clone = el.cloneNode();\n            if (el._transitionClasses) {\n                el._transitionClasses.forEach(function (cls) {\n                    removeClass(clone, cls);\n                });\n            }\n            addClass(clone, moveClass);\n            clone.style.display = 'none';\n            this.$el.appendChild(clone);\n            var info = getTransitionInfo(clone);\n            this.$el.removeChild(clone);\n            return (this._hasMove = info.hasTransform);\n        }\n    }\n};\nfunction callPendingCbs(c) {\n    /* istanbul ignore if */\n    if (c.elm._moveCb) {\n        c.elm._moveCb();\n    }\n    /* istanbul ignore if */\n    if (c.elm._enterCb) {\n        c.elm._enterCb();\n    }\n}\nfunction recordPosition(c) {\n    c.data.newPos = c.elm.getBoundingClientRect();\n}\nfunction applyTranslation(c) {\n    var oldPos = c.data.pos;\n    var newPos = c.data.newPos;\n    var dx = oldPos.left - newPos.left;\n    var dy = oldPos.top - newPos.top;\n    if (dx || dy) {\n        c.data.moved = true;\n        var s = c.elm.style;\n        s.transform = s.WebkitTransform = \"translate(\".concat(dx, \"px,\").concat(dy, \"px)\");\n        s.transitionDuration = '0s';\n    }\n}\n\nvar platformComponents = {\n    Transition: Transition,\n    TransitionGroup: TransitionGroup\n};\n\n// install platform specific utils\nVue.config.mustUseProp = mustUseProp;\nVue.config.isReservedTag = isReservedTag;\nVue.config.isReservedAttr = isReservedAttr;\nVue.config.getTagNamespace = getTagNamespace;\nVue.config.isUnknownElement = isUnknownElement;\n// install platform runtime directives & components\nextend(Vue.options.directives, platformDirectives);\nextend(Vue.options.components, platformComponents);\n// install platform patch function\nVue.prototype.__patch__ = inBrowser ? patch : noop;\n// public mount method\nVue.prototype.$mount = function (el, hydrating) {\n    el = el && inBrowser ? query(el) : undefined;\n    return mountComponent(this, el, hydrating);\n};\n// devtools global hook\n/* istanbul ignore next */\nif (inBrowser) {\n    setTimeout(function () {\n        if (config.devtools) {\n            if (devtools) {\n                devtools.emit('init', Vue);\n            }\n            else if (true) {\n                // @ts-expect-error\n                console[console.info ? 'info' : 'log']('Download the Vue Devtools extension for a better development experience:\\n' +\n                    'https://github.com/vuejs/vue-devtools');\n            }\n        }\n        if ( true &&\n            config.productionTip !== false &&\n            typeof console !== 'undefined') {\n            // @ts-expect-error\n            console[console.info ? 'info' : 'log'](\"You are running Vue in development mode.\\n\" +\n                \"Make sure to turn on production mode when deploying for production.\\n\" +\n                \"See more tips at https://vuejs.org/guide/deployment.html\");\n        }\n    }, 0);\n}\n\nvar defaultTagRE = /\\{\\{((?:.|\\r?\\n)+?)\\}\\}/g;\nvar regexEscapeRE = /[-.*+?^${}()|[\\]\\/\\\\]/g;\nvar buildRegex = cached(function (delimiters) {\n    var open = delimiters[0].replace(regexEscapeRE, '\\\\$&');\n    var close = delimiters[1].replace(regexEscapeRE, '\\\\$&');\n    return new RegExp(open + '((?:.|\\\\n)+?)' + close, 'g');\n});\nfunction parseText(text, delimiters) {\n    //@ts-expect-error\n    var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;\n    if (!tagRE.test(text)) {\n        return;\n    }\n    var tokens = [];\n    var rawTokens = [];\n    var lastIndex = (tagRE.lastIndex = 0);\n    var match, index, tokenValue;\n    while ((match = tagRE.exec(text))) {\n        index = match.index;\n        // push text token\n        if (index > lastIndex) {\n            rawTokens.push((tokenValue = text.slice(lastIndex, index)));\n            tokens.push(JSON.stringify(tokenValue));\n        }\n        // tag token\n        var exp = parseFilters(match[1].trim());\n        tokens.push(\"_s(\".concat(exp, \")\"));\n        rawTokens.push({ '@binding': exp });\n        lastIndex = index + match[0].length;\n    }\n    if (lastIndex < text.length) {\n        rawTokens.push((tokenValue = text.slice(lastIndex)));\n        tokens.push(JSON.stringify(tokenValue));\n    }\n    return {\n        expression: tokens.join('+'),\n        tokens: rawTokens\n    };\n}\n\nfunction transformNode$1(el, options) {\n    var warn = options.warn || baseWarn;\n    var staticClass = getAndRemoveAttr(el, 'class');\n    if ( true && staticClass) {\n        var res = parseText(staticClass, options.delimiters);\n        if (res) {\n            warn(\"class=\\\"\".concat(staticClass, \"\\\": \") +\n                'Interpolation inside attributes has been removed. ' +\n                'Use v-bind or the colon shorthand instead. For example, ' +\n                'instead of <div class=\"{{ val }}\">, use <div :class=\"val\">.', el.rawAttrsMap['class']);\n        }\n    }\n    if (staticClass) {\n        el.staticClass = JSON.stringify(staticClass.replace(/\\s+/g, ' ').trim());\n    }\n    var classBinding = getBindingAttr(el, 'class', false /* getStatic */);\n    if (classBinding) {\n        el.classBinding = classBinding;\n    }\n}\nfunction genData$2(el) {\n    var data = '';\n    if (el.staticClass) {\n        data += \"staticClass:\".concat(el.staticClass, \",\");\n    }\n    if (el.classBinding) {\n        data += \"class:\".concat(el.classBinding, \",\");\n    }\n    return data;\n}\nvar klass = {\n    staticKeys: ['staticClass'],\n    transformNode: transformNode$1,\n    genData: genData$2\n};\n\nfunction transformNode(el, options) {\n    var warn = options.warn || baseWarn;\n    var staticStyle = getAndRemoveAttr(el, 'style');\n    if (staticStyle) {\n        /* istanbul ignore if */\n        if (true) {\n            var res = parseText(staticStyle, options.delimiters);\n            if (res) {\n                warn(\"style=\\\"\".concat(staticStyle, \"\\\": \") +\n                    'Interpolation inside attributes has been removed. ' +\n                    'Use v-bind or the colon shorthand instead. For example, ' +\n                    'instead of <div style=\"{{ val }}\">, use <div :style=\"val\">.', el.rawAttrsMap['style']);\n            }\n        }\n        el.staticStyle = JSON.stringify(parseStyleText(staticStyle));\n    }\n    var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);\n    if (styleBinding) {\n        el.styleBinding = styleBinding;\n    }\n}\nfunction genData$1(el) {\n    var data = '';\n    if (el.staticStyle) {\n        data += \"staticStyle:\".concat(el.staticStyle, \",\");\n    }\n    if (el.styleBinding) {\n        data += \"style:(\".concat(el.styleBinding, \"),\");\n    }\n    return data;\n}\nvar style = {\n    staticKeys: ['staticStyle'],\n    transformNode: transformNode,\n    genData: genData$1\n};\n\nvar decoder;\nvar he = {\n    decode: function (html) {\n        decoder = decoder || document.createElement('div');\n        decoder.innerHTML = html;\n        return decoder.textContent;\n    }\n};\n\nvar isUnaryTag = makeMap('area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +\n    'link,meta,param,source,track,wbr');\n// Elements that you can, intentionally, leave open\n// (and which close themselves)\nvar canBeLeftOpenTag = makeMap('colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source');\n// HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3\n// Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content\nvar isNonPhrasingTag = makeMap('address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +\n    'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +\n    'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +\n    'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +\n    'title,tr,track');\n\n/**\n * Not type-checking this file because it's mostly vendor code.\n */\n// Regular Expressions for parsing tags and attributes\nvar attribute = /^\\s*([^\\s\"'<>\\/=]+)(?:\\s*(=)\\s*(?:\"([^\"]*)\"+|'([^']*)'+|([^\\s\"'=<>`]+)))?/;\nvar dynamicArgAttribute = /^\\s*((?:v-[\\w-]+:|@|:|#)\\[[^=]+?\\][^\\s\"'<>\\/=]*)(?:\\s*(=)\\s*(?:\"([^\"]*)\"+|'([^']*)'+|([^\\s\"'=<>`]+)))?/;\nvar ncname = \"[a-zA-Z_][\\\\-\\\\.0-9_a-zA-Z\".concat(unicodeRegExp.source, \"]*\");\nvar qnameCapture = \"((?:\".concat(ncname, \"\\\\:)?\").concat(ncname, \")\");\nvar startTagOpen = new RegExp(\"^<\".concat(qnameCapture));\nvar startTagClose = /^\\s*(\\/?)>/;\nvar endTag = new RegExp(\"^<\\\\/\".concat(qnameCapture, \"[^>]*>\"));\nvar doctype = /^<!DOCTYPE [^>]+>/i;\n// #7298: escape - to avoid being passed as HTML comment when inlined in page\nvar comment = /^<!\\--/;\nvar conditionalComment = /^<!\\[/;\n// Special Elements (can contain anything)\nvar isPlainTextElement = makeMap('script,style,textarea', true);\nvar reCache = {};\nvar decodingMap = {\n    '&lt;': '<',\n    '&gt;': '>',\n    '&quot;': '\"',\n    '&amp;': '&',\n    '&#10;': '\\n',\n    '&#9;': '\\t',\n    '&#39;': \"'\"\n};\nvar encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;\nvar encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;\n// #5992\nvar isIgnoreNewlineTag = makeMap('pre,textarea', true);\nvar shouldIgnoreFirstNewline = function (tag, html) {\n    return tag && isIgnoreNewlineTag(tag) && html[0] === '\\n';\n};\nfunction decodeAttr(value, shouldDecodeNewlines) {\n    var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;\n    return value.replace(re, function (match) { return decodingMap[match]; });\n}\nfunction parseHTML(html, options) {\n    var stack = [];\n    var expectHTML = options.expectHTML;\n    var isUnaryTag = options.isUnaryTag || no;\n    var canBeLeftOpenTag = options.canBeLeftOpenTag || no;\n    var index = 0;\n    var last, lastTag;\n    var _loop_1 = function () {\n        last = html;\n        // Make sure we're not in a plaintext content element like script/style\n        if (!lastTag || !isPlainTextElement(lastTag)) {\n            var textEnd = html.indexOf('<');\n            if (textEnd === 0) {\n                // Comment:\n                if (comment.test(html)) {\n                    var commentEnd = html.indexOf('-->');\n                    if (commentEnd >= 0) {\n                        if (options.shouldKeepComment && options.comment) {\n                            options.comment(html.substring(4, commentEnd), index, index + commentEnd + 3);\n                        }\n                        advance(commentEnd + 3);\n                        return \"continue\";\n                    }\n                }\n                // http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment\n                if (conditionalComment.test(html)) {\n                    var conditionalEnd = html.indexOf(']>');\n                    if (conditionalEnd >= 0) {\n                        advance(conditionalEnd + 2);\n                        return \"continue\";\n                    }\n                }\n                // Doctype:\n                var doctypeMatch = html.match(doctype);\n                if (doctypeMatch) {\n                    advance(doctypeMatch[0].length);\n                    return \"continue\";\n                }\n                // End tag:\n                var endTagMatch = html.match(endTag);\n                if (endTagMatch) {\n                    var curIndex = index;\n                    advance(endTagMatch[0].length);\n                    parseEndTag(endTagMatch[1], curIndex, index);\n                    return \"continue\";\n                }\n                // Start tag:\n                var startTagMatch = parseStartTag();\n                if (startTagMatch) {\n                    handleStartTag(startTagMatch);\n                    if (shouldIgnoreFirstNewline(startTagMatch.tagName, html)) {\n                        advance(1);\n                    }\n                    return \"continue\";\n                }\n            }\n            var text = void 0, rest = void 0, next = void 0;\n            if (textEnd >= 0) {\n                rest = html.slice(textEnd);\n                while (!endTag.test(rest) &&\n                    !startTagOpen.test(rest) &&\n                    !comment.test(rest) &&\n                    !conditionalComment.test(rest)) {\n                    // < in plain text, be forgiving and treat it as text\n                    next = rest.indexOf('<', 1);\n                    if (next < 0)\n                        break;\n                    textEnd += next;\n                    rest = html.slice(textEnd);\n                }\n                text = html.substring(0, textEnd);\n            }\n            if (textEnd < 0) {\n                text = html;\n            }\n            if (text) {\n                advance(text.length);\n            }\n            if (options.chars && text) {\n                options.chars(text, index - text.length, index);\n            }\n        }\n        else {\n            var endTagLength_1 = 0;\n            var stackedTag_1 = lastTag.toLowerCase();\n            var reStackedTag = reCache[stackedTag_1] ||\n                (reCache[stackedTag_1] = new RegExp('([\\\\s\\\\S]*?)(</' + stackedTag_1 + '[^>]*>)', 'i'));\n            var rest = html.replace(reStackedTag, function (all, text, endTag) {\n                endTagLength_1 = endTag.length;\n                if (!isPlainTextElement(stackedTag_1) && stackedTag_1 !== 'noscript') {\n                    text = text\n                        .replace(/<!\\--([\\s\\S]*?)-->/g, '$1') // #7298\n                        .replace(/<!\\[CDATA\\[([\\s\\S]*?)]]>/g, '$1');\n                }\n                if (shouldIgnoreFirstNewline(stackedTag_1, text)) {\n                    text = text.slice(1);\n                }\n                if (options.chars) {\n                    options.chars(text);\n                }\n                return '';\n            });\n            index += html.length - rest.length;\n            html = rest;\n            parseEndTag(stackedTag_1, index - endTagLength_1, index);\n        }\n        if (html === last) {\n            options.chars && options.chars(html);\n            if ( true && !stack.length && options.warn) {\n                options.warn(\"Mal-formatted tag at end of template: \\\"\".concat(html, \"\\\"\"), {\n                    start: index + html.length\n                });\n            }\n            return \"break\";\n        }\n    };\n    while (html) {\n        var state_1 = _loop_1();\n        if (state_1 === \"break\")\n            break;\n    }\n    // Clean up any remaining tags\n    parseEndTag();\n    function advance(n) {\n        index += n;\n        html = html.substring(n);\n    }\n    function parseStartTag() {\n        var start = html.match(startTagOpen);\n        if (start) {\n            var match = {\n                tagName: start[1],\n                attrs: [],\n                start: index\n            };\n            advance(start[0].length);\n            var end = void 0, attr = void 0;\n            while (!(end = html.match(startTagClose)) &&\n                (attr = html.match(dynamicArgAttribute) || html.match(attribute))) {\n                attr.start = index;\n                advance(attr[0].length);\n                attr.end = index;\n                match.attrs.push(attr);\n            }\n            if (end) {\n                match.unarySlash = end[1];\n                advance(end[0].length);\n                match.end = index;\n                return match;\n            }\n        }\n    }\n    function handleStartTag(match) {\n        var tagName = match.tagName;\n        var unarySlash = match.unarySlash;\n        if (expectHTML) {\n            if (lastTag === 'p' && isNonPhrasingTag(tagName)) {\n                parseEndTag(lastTag);\n            }\n            if (canBeLeftOpenTag(tagName) && lastTag === tagName) {\n                parseEndTag(tagName);\n            }\n        }\n        var unary = isUnaryTag(tagName) || !!unarySlash;\n        var l = match.attrs.length;\n        var attrs = new Array(l);\n        for (var i = 0; i < l; i++) {\n            var args = match.attrs[i];\n            var value = args[3] || args[4] || args[5] || '';\n            var shouldDecodeNewlines = tagName === 'a' && args[1] === 'href'\n                ? options.shouldDecodeNewlinesForHref\n                : options.shouldDecodeNewlines;\n            attrs[i] = {\n                name: args[1],\n                value: decodeAttr(value, shouldDecodeNewlines)\n            };\n            if ( true && options.outputSourceRange) {\n                attrs[i].start = args.start + args[0].match(/^\\s*/).length;\n                attrs[i].end = args.end;\n            }\n        }\n        if (!unary) {\n            stack.push({\n                tag: tagName,\n                lowerCasedTag: tagName.toLowerCase(),\n                attrs: attrs,\n                start: match.start,\n                end: match.end\n            });\n            lastTag = tagName;\n        }\n        if (options.start) {\n            options.start(tagName, attrs, unary, match.start, match.end);\n        }\n    }\n    function parseEndTag(tagName, start, end) {\n        var pos, lowerCasedTagName;\n        if (start == null)\n            start = index;\n        if (end == null)\n            end = index;\n        // Find the closest opened tag of the same type\n        if (tagName) {\n            lowerCasedTagName = tagName.toLowerCase();\n            for (pos = stack.length - 1; pos >= 0; pos--) {\n                if (stack[pos].lowerCasedTag === lowerCasedTagName) {\n                    break;\n                }\n            }\n        }\n        else {\n            // If no tag name is provided, clean shop\n            pos = 0;\n        }\n        if (pos >= 0) {\n            // Close all the open elements, up the stack\n            for (var i = stack.length - 1; i >= pos; i--) {\n                if ( true && (i > pos || !tagName) && options.warn) {\n                    options.warn(\"tag <\".concat(stack[i].tag, \"> has no matching end tag.\"), {\n                        start: stack[i].start,\n                        end: stack[i].end\n                    });\n                }\n                if (options.end) {\n                    options.end(stack[i].tag, start, end);\n                }\n            }\n            // Remove the open elements from the stack\n            stack.length = pos;\n            lastTag = pos && stack[pos - 1].tag;\n        }\n        else if (lowerCasedTagName === 'br') {\n            if (options.start) {\n                options.start(tagName, [], true, start, end);\n            }\n        }\n        else if (lowerCasedTagName === 'p') {\n            if (options.start) {\n                options.start(tagName, [], false, start, end);\n            }\n            if (options.end) {\n                options.end(tagName, start, end);\n            }\n        }\n    }\n}\n\nvar onRE = /^@|^v-on:/;\nvar dirRE = /^v-|^@|^:|^#/;\nvar forAliasRE = /([\\s\\S]*?)\\s+(?:in|of)\\s+([\\s\\S]*)/;\nvar forIteratorRE = /,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/;\nvar stripParensRE = /^\\(|\\)$/g;\nvar dynamicArgRE = /^\\[.*\\]$/;\nvar argRE = /:(.*)$/;\nvar bindRE = /^:|^\\.|^v-bind:/;\nvar modifierRE = /\\.[^.\\]]+(?=[^\\]]*$)/g;\nvar slotRE = /^v-slot(:|$)|^#/;\nvar lineBreakRE = /[\\r\\n]/;\nvar whitespaceRE = /[ \\f\\t\\r\\n]+/g;\nvar invalidAttributeRE = /[\\s\"'<>\\/=]/;\nvar decodeHTMLCached = cached(he.decode);\nvar emptySlotScopeToken = \"_empty_\";\n// configurable state\nvar warn;\nvar delimiters;\nvar transforms;\nvar preTransforms;\nvar postTransforms;\nvar platformIsPreTag;\nvar platformMustUseProp;\nvar platformGetTagNamespace;\nvar maybeComponent;\nfunction createASTElement(tag, attrs, parent) {\n    return {\n        type: 1,\n        tag: tag,\n        attrsList: attrs,\n        attrsMap: makeAttrsMap(attrs),\n        rawAttrsMap: {},\n        parent: parent,\n        children: []\n    };\n}\n/**\n * Convert HTML string to AST.\n */\nfunction parse(template, options) {\n    warn = options.warn || baseWarn;\n    platformIsPreTag = options.isPreTag || no;\n    platformMustUseProp = options.mustUseProp || no;\n    platformGetTagNamespace = options.getTagNamespace || no;\n    var isReservedTag = options.isReservedTag || no;\n    maybeComponent = function (el) {\n        return !!(el.component ||\n            el.attrsMap[':is'] ||\n            el.attrsMap['v-bind:is'] ||\n            !(el.attrsMap.is ? isReservedTag(el.attrsMap.is) : isReservedTag(el.tag)));\n    };\n    transforms = pluckModuleFunction(options.modules, 'transformNode');\n    preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');\n    postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');\n    delimiters = options.delimiters;\n    var stack = [];\n    var preserveWhitespace = options.preserveWhitespace !== false;\n    var whitespaceOption = options.whitespace;\n    var root;\n    var currentParent;\n    var inVPre = false;\n    var inPre = false;\n    var warned = false;\n    function warnOnce(msg, range) {\n        if (!warned) {\n            warned = true;\n            warn(msg, range);\n        }\n    }\n    function closeElement(element) {\n        trimEndingWhitespace(element);\n        if (!inVPre && !element.processed) {\n            element = processElement(element, options);\n        }\n        // tree management\n        if (!stack.length && element !== root) {\n            // allow root elements with v-if, v-else-if and v-else\n            if (root.if && (element.elseif || element.else)) {\n                if (true) {\n                    checkRootConstraints(element);\n                }\n                addIfCondition(root, {\n                    exp: element.elseif,\n                    block: element\n                });\n            }\n            else if (true) {\n                warnOnce(\"Component template should contain exactly one root element. \" +\n                    \"If you are using v-if on multiple elements, \" +\n                    \"use v-else-if to chain them instead.\", { start: element.start });\n            }\n        }\n        if (currentParent && !element.forbidden) {\n            if (element.elseif || element.else) {\n                processIfConditions(element, currentParent);\n            }\n            else {\n                if (element.slotScope) {\n                    // scoped slot\n                    // keep it in the children list so that v-else(-if) conditions can\n                    // find it as the prev node.\n                    var name_1 = element.slotTarget || '\"default\"';\n                    (currentParent.scopedSlots || (currentParent.scopedSlots = {}))[name_1] = element;\n                }\n                currentParent.children.push(element);\n                element.parent = currentParent;\n            }\n        }\n        // final children cleanup\n        // filter out scoped slots\n        element.children = element.children.filter(function (c) { return !c.slotScope; });\n        // remove trailing whitespace node again\n        trimEndingWhitespace(element);\n        // check pre state\n        if (element.pre) {\n            inVPre = false;\n        }\n        if (platformIsPreTag(element.tag)) {\n            inPre = false;\n        }\n        // apply post-transforms\n        for (var i = 0; i < postTransforms.length; i++) {\n            postTransforms[i](element, options);\n        }\n    }\n    function trimEndingWhitespace(el) {\n        // remove trailing whitespace node\n        if (!inPre) {\n            var lastNode = void 0;\n            while ((lastNode = el.children[el.children.length - 1]) &&\n                lastNode.type === 3 &&\n                lastNode.text === ' ') {\n                el.children.pop();\n            }\n        }\n    }\n    function checkRootConstraints(el) {\n        if (el.tag === 'slot' || el.tag === 'template') {\n            warnOnce(\"Cannot use <\".concat(el.tag, \"> as component root element because it may \") +\n                'contain multiple nodes.', { start: el.start });\n        }\n        if (el.attrsMap.hasOwnProperty('v-for')) {\n            warnOnce('Cannot use v-for on stateful component root element because ' +\n                'it renders multiple elements.', el.rawAttrsMap['v-for']);\n        }\n    }\n    parseHTML(template, {\n        warn: warn,\n        expectHTML: options.expectHTML,\n        isUnaryTag: options.isUnaryTag,\n        canBeLeftOpenTag: options.canBeLeftOpenTag,\n        shouldDecodeNewlines: options.shouldDecodeNewlines,\n        shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,\n        shouldKeepComment: options.comments,\n        outputSourceRange: options.outputSourceRange,\n        start: function (tag, attrs, unary, start, end) {\n            // check namespace.\n            // inherit parent ns if there is one\n            var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);\n            // handle IE svg bug\n            /* istanbul ignore if */\n            if (isIE && ns === 'svg') {\n                attrs = guardIESVGBug(attrs);\n            }\n            var element = createASTElement(tag, attrs, currentParent);\n            if (ns) {\n                element.ns = ns;\n            }\n            if (true) {\n                if (options.outputSourceRange) {\n                    element.start = start;\n                    element.end = end;\n                    element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {\n                        cumulated[attr.name] = attr;\n                        return cumulated;\n                    }, {});\n                }\n                attrs.forEach(function (attr) {\n                    if (invalidAttributeRE.test(attr.name)) {\n                        warn(\"Invalid dynamic argument expression: attribute names cannot contain \" +\n                            \"spaces, quotes, <, >, / or =.\", options.outputSourceRange\n                            ? {\n                                start: attr.start + attr.name.indexOf(\"[\"),\n                                end: attr.start + attr.name.length\n                            }\n                            : undefined);\n                    }\n                });\n            }\n            if (isForbiddenTag(element) && !isServerRendering()) {\n                element.forbidden = true;\n                 true &&\n                    warn('Templates should only be responsible for mapping the state to the ' +\n                        'UI. Avoid placing tags with side-effects in your templates, such as ' +\n                        \"<\".concat(tag, \">\") +\n                        ', as they will not be parsed.', { start: element.start });\n            }\n            // apply pre-transforms\n            for (var i = 0; i < preTransforms.length; i++) {\n                element = preTransforms[i](element, options) || element;\n            }\n            if (!inVPre) {\n                processPre(element);\n                if (element.pre) {\n                    inVPre = true;\n                }\n            }\n            if (platformIsPreTag(element.tag)) {\n                inPre = true;\n            }\n            if (inVPre) {\n                processRawAttrs(element);\n            }\n            else if (!element.processed) {\n                // structural directives\n                processFor(element);\n                processIf(element);\n                processOnce(element);\n            }\n            if (!root) {\n                root = element;\n                if (true) {\n                    checkRootConstraints(root);\n                }\n            }\n            if (!unary) {\n                currentParent = element;\n                stack.push(element);\n            }\n            else {\n                closeElement(element);\n            }\n        },\n        end: function (tag, start, end) {\n            var element = stack[stack.length - 1];\n            // pop stack\n            stack.length -= 1;\n            currentParent = stack[stack.length - 1];\n            if ( true && options.outputSourceRange) {\n                element.end = end;\n            }\n            closeElement(element);\n        },\n        chars: function (text, start, end) {\n            if (!currentParent) {\n                if (true) {\n                    if (text === template) {\n                        warnOnce('Component template requires a root element, rather than just text.', { start: start });\n                    }\n                    else if ((text = text.trim())) {\n                        warnOnce(\"text \\\"\".concat(text, \"\\\" outside root element will be ignored.\"), {\n                            start: start\n                        });\n                    }\n                }\n                return;\n            }\n            // IE textarea placeholder bug\n            /* istanbul ignore if */\n            if (isIE &&\n                currentParent.tag === 'textarea' &&\n                currentParent.attrsMap.placeholder === text) {\n                return;\n            }\n            var children = currentParent.children;\n            if (inPre || text.trim()) {\n                text = isTextTag(currentParent)\n                    ? text\n                    : decodeHTMLCached(text);\n            }\n            else if (!children.length) {\n                // remove the whitespace-only node right after an opening tag\n                text = '';\n            }\n            else if (whitespaceOption) {\n                if (whitespaceOption === 'condense') {\n                    // in condense mode, remove the whitespace node if it contains\n                    // line break, otherwise condense to a single space\n                    text = lineBreakRE.test(text) ? '' : ' ';\n                }\n                else {\n                    text = ' ';\n                }\n            }\n            else {\n                text = preserveWhitespace ? ' ' : '';\n            }\n            if (text) {\n                if (!inPre && whitespaceOption === 'condense') {\n                    // condense consecutive whitespaces into single space\n                    text = text.replace(whitespaceRE, ' ');\n                }\n                var res = void 0;\n                var child = void 0;\n                if (!inVPre && text !== ' ' && (res = parseText(text, delimiters))) {\n                    child = {\n                        type: 2,\n                        expression: res.expression,\n                        tokens: res.tokens,\n                        text: text\n                    };\n                }\n                else if (text !== ' ' ||\n                    !children.length ||\n                    children[children.length - 1].text !== ' ') {\n                    child = {\n                        type: 3,\n                        text: text\n                    };\n                }\n                if (child) {\n                    if ( true && options.outputSourceRange) {\n                        child.start = start;\n                        child.end = end;\n                    }\n                    children.push(child);\n                }\n            }\n        },\n        comment: function (text, start, end) {\n            // adding anything as a sibling to the root node is forbidden\n            // comments should still be allowed, but ignored\n            if (currentParent) {\n                var child = {\n                    type: 3,\n                    text: text,\n                    isComment: true\n                };\n                if ( true && options.outputSourceRange) {\n                    child.start = start;\n                    child.end = end;\n                }\n                currentParent.children.push(child);\n            }\n        }\n    });\n    return root;\n}\nfunction processPre(el) {\n    if (getAndRemoveAttr(el, 'v-pre') != null) {\n        el.pre = true;\n    }\n}\nfunction processRawAttrs(el) {\n    var list = el.attrsList;\n    var len = list.length;\n    if (len) {\n        var attrs = (el.attrs = new Array(len));\n        for (var i = 0; i < len; i++) {\n            attrs[i] = {\n                name: list[i].name,\n                value: JSON.stringify(list[i].value)\n            };\n            if (list[i].start != null) {\n                attrs[i].start = list[i].start;\n                attrs[i].end = list[i].end;\n            }\n        }\n    }\n    else if (!el.pre) {\n        // non root node in pre blocks with no attributes\n        el.plain = true;\n    }\n}\nfunction processElement(element, options) {\n    processKey(element);\n    // determine whether this is a plain element after\n    // removing structural attributes\n    element.plain =\n        !element.key && !element.scopedSlots && !element.attrsList.length;\n    processRef(element);\n    processSlotContent(element);\n    processSlotOutlet(element);\n    processComponent(element);\n    for (var i = 0; i < transforms.length; i++) {\n        element = transforms[i](element, options) || element;\n    }\n    processAttrs(element);\n    return element;\n}\nfunction processKey(el) {\n    var exp = getBindingAttr(el, 'key');\n    if (exp) {\n        if (true) {\n            if (el.tag === 'template') {\n                warn(\"<template> cannot be keyed. Place the key on real elements instead.\", getRawBindingAttr(el, 'key'));\n            }\n            if (el.for) {\n                var iterator = el.iterator2 || el.iterator1;\n                var parent_1 = el.parent;\n                if (iterator &&\n                    iterator === exp &&\n                    parent_1 &&\n                    parent_1.tag === 'transition-group') {\n                    warn(\"Do not use v-for index as key on <transition-group> children, \" +\n                        \"this is the same as not using keys.\", getRawBindingAttr(el, 'key'), true /* tip */);\n                }\n            }\n        }\n        el.key = exp;\n    }\n}\nfunction processRef(el) {\n    var ref = getBindingAttr(el, 'ref');\n    if (ref) {\n        el.ref = ref;\n        el.refInFor = checkInFor(el);\n    }\n}\nfunction processFor(el) {\n    var exp;\n    if ((exp = getAndRemoveAttr(el, 'v-for'))) {\n        var res = parseFor(exp);\n        if (res) {\n            extend(el, res);\n        }\n        else if (true) {\n            warn(\"Invalid v-for expression: \".concat(exp), el.rawAttrsMap['v-for']);\n        }\n    }\n}\nfunction parseFor(exp) {\n    var inMatch = exp.match(forAliasRE);\n    if (!inMatch)\n        return;\n    var res = {};\n    res.for = inMatch[2].trim();\n    var alias = inMatch[1].trim().replace(stripParensRE, '');\n    var iteratorMatch = alias.match(forIteratorRE);\n    if (iteratorMatch) {\n        res.alias = alias.replace(forIteratorRE, '').trim();\n        res.iterator1 = iteratorMatch[1].trim();\n        if (iteratorMatch[2]) {\n            res.iterator2 = iteratorMatch[2].trim();\n        }\n    }\n    else {\n        res.alias = alias;\n    }\n    return res;\n}\nfunction processIf(el) {\n    var exp = getAndRemoveAttr(el, 'v-if');\n    if (exp) {\n        el.if = exp;\n        addIfCondition(el, {\n            exp: exp,\n            block: el\n        });\n    }\n    else {\n        if (getAndRemoveAttr(el, 'v-else') != null) {\n            el.else = true;\n        }\n        var elseif = getAndRemoveAttr(el, 'v-else-if');\n        if (elseif) {\n            el.elseif = elseif;\n        }\n    }\n}\nfunction processIfConditions(el, parent) {\n    var prev = findPrevElement(parent.children);\n    if (prev && prev.if) {\n        addIfCondition(prev, {\n            exp: el.elseif,\n            block: el\n        });\n    }\n    else if (true) {\n        warn(\"v-\".concat(el.elseif ? 'else-if=\"' + el.elseif + '\"' : 'else', \" \") +\n            \"used on element <\".concat(el.tag, \"> without corresponding v-if.\"), el.rawAttrsMap[el.elseif ? 'v-else-if' : 'v-else']);\n    }\n}\nfunction findPrevElement(children) {\n    var i = children.length;\n    while (i--) {\n        if (children[i].type === 1) {\n            return children[i];\n        }\n        else {\n            if ( true && children[i].text !== ' ') {\n                warn(\"text \\\"\".concat(children[i].text.trim(), \"\\\" between v-if and v-else(-if) \") +\n                    \"will be ignored.\", children[i]);\n            }\n            children.pop();\n        }\n    }\n}\nfunction addIfCondition(el, condition) {\n    if (!el.ifConditions) {\n        el.ifConditions = [];\n    }\n    el.ifConditions.push(condition);\n}\nfunction processOnce(el) {\n    var once = getAndRemoveAttr(el, 'v-once');\n    if (once != null) {\n        el.once = true;\n    }\n}\n// handle content being passed to a component as slot,\n// e.g. <template slot=\"xxx\">, <div slot-scope=\"xxx\">\nfunction processSlotContent(el) {\n    var slotScope;\n    if (el.tag === 'template') {\n        slotScope = getAndRemoveAttr(el, 'scope');\n        /* istanbul ignore if */\n        if ( true && slotScope) {\n            warn(\"the \\\"scope\\\" attribute for scoped slots have been deprecated and \" +\n                \"replaced by \\\"slot-scope\\\" since 2.5. The new \\\"slot-scope\\\" attribute \" +\n                \"can also be used on plain elements in addition to <template> to \" +\n                \"denote scoped slots.\", el.rawAttrsMap['scope'], true);\n        }\n        el.slotScope = slotScope || getAndRemoveAttr(el, 'slot-scope');\n    }\n    else if ((slotScope = getAndRemoveAttr(el, 'slot-scope'))) {\n        /* istanbul ignore if */\n        if ( true && el.attrsMap['v-for']) {\n            warn(\"Ambiguous combined usage of slot-scope and v-for on <\".concat(el.tag, \"> \") +\n                \"(v-for takes higher priority). Use a wrapper <template> for the \" +\n                \"scoped slot to make it clearer.\", el.rawAttrsMap['slot-scope'], true);\n        }\n        el.slotScope = slotScope;\n    }\n    // slot=\"xxx\"\n    var slotTarget = getBindingAttr(el, 'slot');\n    if (slotTarget) {\n        el.slotTarget = slotTarget === '\"\"' ? '\"default\"' : slotTarget;\n        el.slotTargetDynamic = !!(el.attrsMap[':slot'] || el.attrsMap['v-bind:slot']);\n        // preserve slot as an attribute for native shadow DOM compat\n        // only for non-scoped slots.\n        if (el.tag !== 'template' && !el.slotScope) {\n            addAttr(el, 'slot', slotTarget, getRawBindingAttr(el, 'slot'));\n        }\n    }\n    // 2.6 v-slot syntax\n    {\n        if (el.tag === 'template') {\n            // v-slot on <template>\n            var slotBinding = getAndRemoveAttrByRegex(el, slotRE);\n            if (slotBinding) {\n                if (true) {\n                    if (el.slotTarget || el.slotScope) {\n                        warn(\"Unexpected mixed usage of different slot syntaxes.\", el);\n                    }\n                    if (el.parent && !maybeComponent(el.parent)) {\n                        warn(\"<template v-slot> can only appear at the root level inside \" +\n                            \"the receiving component\", el);\n                    }\n                }\n                var _a = getSlotName(slotBinding), name_2 = _a.name, dynamic = _a.dynamic;\n                el.slotTarget = name_2;\n                el.slotTargetDynamic = dynamic;\n                el.slotScope = slotBinding.value || emptySlotScopeToken; // force it into a scoped slot for perf\n            }\n        }\n        else {\n            // v-slot on component, denotes default slot\n            var slotBinding = getAndRemoveAttrByRegex(el, slotRE);\n            if (slotBinding) {\n                if (true) {\n                    if (!maybeComponent(el)) {\n                        warn(\"v-slot can only be used on components or <template>.\", slotBinding);\n                    }\n                    if (el.slotScope || el.slotTarget) {\n                        warn(\"Unexpected mixed usage of different slot syntaxes.\", el);\n                    }\n                    if (el.scopedSlots) {\n                        warn(\"To avoid scope ambiguity, the default slot should also use \" +\n                            \"<template> syntax when there are other named slots.\", slotBinding);\n                    }\n                }\n                // add the component's children to its default slot\n                var slots = el.scopedSlots || (el.scopedSlots = {});\n                var _b = getSlotName(slotBinding), name_3 = _b.name, dynamic = _b.dynamic;\n                var slotContainer_1 = (slots[name_3] = createASTElement('template', [], el));\n                slotContainer_1.slotTarget = name_3;\n                slotContainer_1.slotTargetDynamic = dynamic;\n                slotContainer_1.children = el.children.filter(function (c) {\n                    if (!c.slotScope) {\n                        c.parent = slotContainer_1;\n                        return true;\n                    }\n                });\n                slotContainer_1.slotScope = slotBinding.value || emptySlotScopeToken;\n                // remove children as they are returned from scopedSlots now\n                el.children = [];\n                // mark el non-plain so data gets generated\n                el.plain = false;\n            }\n        }\n    }\n}\nfunction getSlotName(binding) {\n    var name = binding.name.replace(slotRE, '');\n    if (!name) {\n        if (binding.name[0] !== '#') {\n            name = 'default';\n        }\n        else if (true) {\n            warn(\"v-slot shorthand syntax requires a slot name.\", binding);\n        }\n    }\n    return dynamicArgRE.test(name)\n        ? // dynamic [name]\n            { name: name.slice(1, -1), dynamic: true }\n        : // static name\n            { name: \"\\\"\".concat(name, \"\\\"\"), dynamic: false };\n}\n// handle <slot/> outlets\nfunction processSlotOutlet(el) {\n    if (el.tag === 'slot') {\n        el.slotName = getBindingAttr(el, 'name');\n        if ( true && el.key) {\n            warn(\"`key` does not work on <slot> because slots are abstract outlets \" +\n                \"and can possibly expand into multiple elements. \" +\n                \"Use the key on a wrapping element instead.\", getRawBindingAttr(el, 'key'));\n        }\n    }\n}\nfunction processComponent(el) {\n    var binding;\n    if ((binding = getBindingAttr(el, 'is'))) {\n        el.component = binding;\n    }\n    if (getAndRemoveAttr(el, 'inline-template') != null) {\n        el.inlineTemplate = true;\n    }\n}\nfunction processAttrs(el) {\n    var list = el.attrsList;\n    var i, l, name, rawName, value, modifiers, syncGen, isDynamic;\n    for (i = 0, l = list.length; i < l; i++) {\n        name = rawName = list[i].name;\n        value = list[i].value;\n        if (dirRE.test(name)) {\n            // mark element as dynamic\n            el.hasBindings = true;\n            // modifiers\n            modifiers = parseModifiers(name.replace(dirRE, ''));\n            // support .foo shorthand syntax for the .prop modifier\n            if (modifiers) {\n                name = name.replace(modifierRE, '');\n            }\n            if (bindRE.test(name)) {\n                // v-bind\n                name = name.replace(bindRE, '');\n                value = parseFilters(value);\n                isDynamic = dynamicArgRE.test(name);\n                if (isDynamic) {\n                    name = name.slice(1, -1);\n                }\n                if ( true && value.trim().length === 0) {\n                    warn(\"The value for a v-bind expression cannot be empty. Found in \\\"v-bind:\".concat(name, \"\\\"\"));\n                }\n                if (modifiers) {\n                    if (modifiers.prop && !isDynamic) {\n                        name = camelize(name);\n                        if (name === 'innerHtml')\n                            name = 'innerHTML';\n                    }\n                    if (modifiers.camel && !isDynamic) {\n                        name = camelize(name);\n                    }\n                    if (modifiers.sync) {\n                        syncGen = genAssignmentCode(value, \"$event\");\n                        if (!isDynamic) {\n                            addHandler(el, \"update:\".concat(camelize(name)), syncGen, null, false, warn, list[i]);\n                            if (hyphenate(name) !== camelize(name)) {\n                                addHandler(el, \"update:\".concat(hyphenate(name)), syncGen, null, false, warn, list[i]);\n                            }\n                        }\n                        else {\n                            // handler w/ dynamic event name\n                            addHandler(el, \"\\\"update:\\\"+(\".concat(name, \")\"), syncGen, null, false, warn, list[i], true // dynamic\n                            );\n                        }\n                    }\n                }\n                if ((modifiers && modifiers.prop) ||\n                    (!el.component && platformMustUseProp(el.tag, el.attrsMap.type, name))) {\n                    addProp(el, name, value, list[i], isDynamic);\n                }\n                else {\n                    addAttr(el, name, value, list[i], isDynamic);\n                }\n            }\n            else if (onRE.test(name)) {\n                // v-on\n                name = name.replace(onRE, '');\n                isDynamic = dynamicArgRE.test(name);\n                if (isDynamic) {\n                    name = name.slice(1, -1);\n                }\n                addHandler(el, name, value, modifiers, false, warn, list[i], isDynamic);\n            }\n            else {\n                // normal directives\n                name = name.replace(dirRE, '');\n                // parse arg\n                var argMatch = name.match(argRE);\n                var arg = argMatch && argMatch[1];\n                isDynamic = false;\n                if (arg) {\n                    name = name.slice(0, -(arg.length + 1));\n                    if (dynamicArgRE.test(arg)) {\n                        arg = arg.slice(1, -1);\n                        isDynamic = true;\n                    }\n                }\n                addDirective(el, name, rawName, value, arg, isDynamic, modifiers, list[i]);\n                if ( true && name === 'model') {\n                    checkForAliasModel(el, value);\n                }\n            }\n        }\n        else {\n            // literal attribute\n            if (true) {\n                var res = parseText(value, delimiters);\n                if (res) {\n                    warn(\"\".concat(name, \"=\\\"\").concat(value, \"\\\": \") +\n                        'Interpolation inside attributes has been removed. ' +\n                        'Use v-bind or the colon shorthand instead. For example, ' +\n                        'instead of <div id=\"{{ val }}\">, use <div :id=\"val\">.', list[i]);\n                }\n            }\n            addAttr(el, name, JSON.stringify(value), list[i]);\n            // #6887 firefox doesn't update muted state if set via attribute\n            // even immediately after element creation\n            if (!el.component &&\n                name === 'muted' &&\n                platformMustUseProp(el.tag, el.attrsMap.type, name)) {\n                addProp(el, name, 'true', list[i]);\n            }\n        }\n    }\n}\nfunction checkInFor(el) {\n    var parent = el;\n    while (parent) {\n        if (parent.for !== undefined) {\n            return true;\n        }\n        parent = parent.parent;\n    }\n    return false;\n}\nfunction parseModifiers(name) {\n    var match = name.match(modifierRE);\n    if (match) {\n        var ret_1 = {};\n        match.forEach(function (m) {\n            ret_1[m.slice(1)] = true;\n        });\n        return ret_1;\n    }\n}\nfunction makeAttrsMap(attrs) {\n    var map = {};\n    for (var i = 0, l = attrs.length; i < l; i++) {\n        if ( true && map[attrs[i].name] && !isIE && !isEdge) {\n            warn('duplicate attribute: ' + attrs[i].name, attrs[i]);\n        }\n        map[attrs[i].name] = attrs[i].value;\n    }\n    return map;\n}\n// for script (e.g. type=\"x/template\") or style, do not decode content\nfunction isTextTag(el) {\n    return el.tag === 'script' || el.tag === 'style';\n}\nfunction isForbiddenTag(el) {\n    return (el.tag === 'style' ||\n        (el.tag === 'script' &&\n            (!el.attrsMap.type || el.attrsMap.type === 'text/javascript')));\n}\nvar ieNSBug = /^xmlns:NS\\d+/;\nvar ieNSPrefix = /^NS\\d+:/;\n/* istanbul ignore next */\nfunction guardIESVGBug(attrs) {\n    var res = [];\n    for (var i = 0; i < attrs.length; i++) {\n        var attr = attrs[i];\n        if (!ieNSBug.test(attr.name)) {\n            attr.name = attr.name.replace(ieNSPrefix, '');\n            res.push(attr);\n        }\n    }\n    return res;\n}\nfunction checkForAliasModel(el, value) {\n    var _el = el;\n    while (_el) {\n        if (_el.for && _el.alias === value) {\n            warn(\"<\".concat(el.tag, \" v-model=\\\"\").concat(value, \"\\\">: \") +\n                \"You are binding v-model directly to a v-for iteration alias. \" +\n                \"This will not be able to modify the v-for source array because \" +\n                \"writing to the alias is like modifying a function local variable. \" +\n                \"Consider using an array of objects and use v-model on an object property instead.\", el.rawAttrsMap['v-model']);\n        }\n        _el = _el.parent;\n    }\n}\n\n/**\n * Expand input[v-model] with dynamic type bindings into v-if-else chains\n * Turn this:\n *   <input v-model=\"data[type]\" :type=\"type\">\n * into this:\n *   <input v-if=\"type === 'checkbox'\" type=\"checkbox\" v-model=\"data[type]\">\n *   <input v-else-if=\"type === 'radio'\" type=\"radio\" v-model=\"data[type]\">\n *   <input v-else :type=\"type\" v-model=\"data[type]\">\n */\nfunction preTransformNode(el, options) {\n    if (el.tag === 'input') {\n        var map = el.attrsMap;\n        if (!map['v-model']) {\n            return;\n        }\n        var typeBinding = void 0;\n        if (map[':type'] || map['v-bind:type']) {\n            typeBinding = getBindingAttr(el, 'type');\n        }\n        if (!map.type && !typeBinding && map['v-bind']) {\n            typeBinding = \"(\".concat(map['v-bind'], \").type\");\n        }\n        if (typeBinding) {\n            var ifCondition = getAndRemoveAttr(el, 'v-if', true);\n            var ifConditionExtra = ifCondition ? \"&&(\".concat(ifCondition, \")\") : \"\";\n            var hasElse = getAndRemoveAttr(el, 'v-else', true) != null;\n            var elseIfCondition = getAndRemoveAttr(el, 'v-else-if', true);\n            // 1. checkbox\n            var branch0 = cloneASTElement(el);\n            // process for on the main node\n            processFor(branch0);\n            addRawAttr(branch0, 'type', 'checkbox');\n            processElement(branch0, options);\n            branch0.processed = true; // prevent it from double-processed\n            branch0.if = \"(\".concat(typeBinding, \")==='checkbox'\") + ifConditionExtra;\n            addIfCondition(branch0, {\n                exp: branch0.if,\n                block: branch0\n            });\n            // 2. add radio else-if condition\n            var branch1 = cloneASTElement(el);\n            getAndRemoveAttr(branch1, 'v-for', true);\n            addRawAttr(branch1, 'type', 'radio');\n            processElement(branch1, options);\n            addIfCondition(branch0, {\n                exp: \"(\".concat(typeBinding, \")==='radio'\") + ifConditionExtra,\n                block: branch1\n            });\n            // 3. other\n            var branch2 = cloneASTElement(el);\n            getAndRemoveAttr(branch2, 'v-for', true);\n            addRawAttr(branch2, ':type', typeBinding);\n            processElement(branch2, options);\n            addIfCondition(branch0, {\n                exp: ifCondition,\n                block: branch2\n            });\n            if (hasElse) {\n                branch0.else = true;\n            }\n            else if (elseIfCondition) {\n                branch0.elseif = elseIfCondition;\n            }\n            return branch0;\n        }\n    }\n}\nfunction cloneASTElement(el) {\n    return createASTElement(el.tag, el.attrsList.slice(), el.parent);\n}\nvar model = {\n    preTransformNode: preTransformNode\n};\n\nvar modules = [klass, style, model];\n\nfunction text(el, dir) {\n    if (dir.value) {\n        addProp(el, 'textContent', \"_s(\".concat(dir.value, \")\"), dir);\n    }\n}\n\nfunction html(el, dir) {\n    if (dir.value) {\n        addProp(el, 'innerHTML', \"_s(\".concat(dir.value, \")\"), dir);\n    }\n}\n\nvar directives = {\n    model: model$1,\n    text: text,\n    html: html\n};\n\nvar baseOptions = {\n    expectHTML: true,\n    modules: modules,\n    directives: directives,\n    isPreTag: isPreTag,\n    isUnaryTag: isUnaryTag,\n    mustUseProp: mustUseProp,\n    canBeLeftOpenTag: canBeLeftOpenTag,\n    isReservedTag: isReservedTag,\n    getTagNamespace: getTagNamespace,\n    staticKeys: genStaticKeys$1(modules)\n};\n\nvar isStaticKey;\nvar isPlatformReservedTag;\nvar genStaticKeysCached = cached(genStaticKeys);\n/**\n * Goal of the optimizer: walk the generated template AST tree\n * and detect sub-trees that are purely static, i.e. parts of\n * the DOM that never needs to change.\n *\n * Once we detect these sub-trees, we can:\n *\n * 1. Hoist them into constants, so that we no longer need to\n *    create fresh nodes for them on each re-render;\n * 2. Completely skip them in the patching process.\n */\nfunction optimize(root, options) {\n    if (!root)\n        return;\n    isStaticKey = genStaticKeysCached(options.staticKeys || '');\n    isPlatformReservedTag = options.isReservedTag || no;\n    // first pass: mark all non-static nodes.\n    markStatic(root);\n    // second pass: mark static roots.\n    markStaticRoots(root, false);\n}\nfunction genStaticKeys(keys) {\n    return makeMap('type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap' +\n        (keys ? ',' + keys : ''));\n}\nfunction markStatic(node) {\n    node.static = isStatic(node);\n    if (node.type === 1) {\n        // do not make component slot content static. this avoids\n        // 1. components not able to mutate slot nodes\n        // 2. static slot content fails for hot-reloading\n        if (!isPlatformReservedTag(node.tag) &&\n            node.tag !== 'slot' &&\n            node.attrsMap['inline-template'] == null) {\n            return;\n        }\n        for (var i = 0, l = node.children.length; i < l; i++) {\n            var child = node.children[i];\n            markStatic(child);\n            if (!child.static) {\n                node.static = false;\n            }\n        }\n        if (node.ifConditions) {\n            for (var i = 1, l = node.ifConditions.length; i < l; i++) {\n                var block = node.ifConditions[i].block;\n                markStatic(block);\n                if (!block.static) {\n                    node.static = false;\n                }\n            }\n        }\n    }\n}\nfunction markStaticRoots(node, isInFor) {\n    if (node.type === 1) {\n        if (node.static || node.once) {\n            node.staticInFor = isInFor;\n        }\n        // For a node to qualify as a static root, it should have children that\n        // are not just static text. Otherwise the cost of hoisting out will\n        // outweigh the benefits and it's better off to just always render it fresh.\n        if (node.static &&\n            node.children.length &&\n            !(node.children.length === 1 && node.children[0].type === 3)) {\n            node.staticRoot = true;\n            return;\n        }\n        else {\n            node.staticRoot = false;\n        }\n        if (node.children) {\n            for (var i = 0, l = node.children.length; i < l; i++) {\n                markStaticRoots(node.children[i], isInFor || !!node.for);\n            }\n        }\n        if (node.ifConditions) {\n            for (var i = 1, l = node.ifConditions.length; i < l; i++) {\n                markStaticRoots(node.ifConditions[i].block, isInFor);\n            }\n        }\n    }\n}\nfunction isStatic(node) {\n    if (node.type === 2) {\n        // expression\n        return false;\n    }\n    if (node.type === 3) {\n        // text\n        return true;\n    }\n    return !!(node.pre ||\n        (!node.hasBindings && // no dynamic bindings\n            !node.if &&\n            !node.for && // not v-if or v-for or v-else\n            !isBuiltInTag(node.tag) && // not a built-in\n            isPlatformReservedTag(node.tag) && // not a component\n            !isDirectChildOfTemplateFor(node) &&\n            Object.keys(node).every(isStaticKey)));\n}\nfunction isDirectChildOfTemplateFor(node) {\n    while (node.parent) {\n        node = node.parent;\n        if (node.tag !== 'template') {\n            return false;\n        }\n        if (node.for) {\n            return true;\n        }\n    }\n    return false;\n}\n\nvar fnExpRE = /^([\\w$_]+|\\([^)]*?\\))\\s*=>|^function(?:\\s+[\\w$]+)?\\s*\\(/;\nvar fnInvokeRE = /\\([^)]*?\\);*$/;\nvar simplePathRE = /^[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*|\\['[^']*?']|\\[\"[^\"]*?\"]|\\[\\d+]|\\[[A-Za-z_$][\\w$]*])*$/;\n// KeyboardEvent.keyCode aliases\nvar keyCodes = {\n    esc: 27,\n    tab: 9,\n    enter: 13,\n    space: 32,\n    up: 38,\n    left: 37,\n    right: 39,\n    down: 40,\n    delete: [8, 46]\n};\n// KeyboardEvent.key aliases\nvar keyNames = {\n    // #7880: IE11 and Edge use `Esc` for Escape key name.\n    esc: ['Esc', 'Escape'],\n    tab: 'Tab',\n    enter: 'Enter',\n    // #9112: IE11 uses `Spacebar` for Space key name.\n    space: [' ', 'Spacebar'],\n    // #7806: IE11 uses key names without `Arrow` prefix for arrow keys.\n    up: ['Up', 'ArrowUp'],\n    left: ['Left', 'ArrowLeft'],\n    right: ['Right', 'ArrowRight'],\n    down: ['Down', 'ArrowDown'],\n    // #9112: IE11 uses `Del` for Delete key name.\n    delete: ['Backspace', 'Delete', 'Del']\n};\n// #4868: modifiers that prevent the execution of the listener\n// need to explicitly return null so that we can determine whether to remove\n// the listener for .once\nvar genGuard = function (condition) { return \"if(\".concat(condition, \")return null;\"); };\nvar modifierCode = {\n    stop: '$event.stopPropagation();',\n    prevent: '$event.preventDefault();',\n    self: genGuard(\"$event.target !== $event.currentTarget\"),\n    ctrl: genGuard(\"!$event.ctrlKey\"),\n    shift: genGuard(\"!$event.shiftKey\"),\n    alt: genGuard(\"!$event.altKey\"),\n    meta: genGuard(\"!$event.metaKey\"),\n    left: genGuard(\"'button' in $event && $event.button !== 0\"),\n    middle: genGuard(\"'button' in $event && $event.button !== 1\"),\n    right: genGuard(\"'button' in $event && $event.button !== 2\")\n};\nfunction genHandlers(events, isNative) {\n    var prefix = isNative ? 'nativeOn:' : 'on:';\n    var staticHandlers = \"\";\n    var dynamicHandlers = \"\";\n    for (var name_1 in events) {\n        var handlerCode = genHandler(events[name_1]);\n        //@ts-expect-error\n        if (events[name_1] && events[name_1].dynamic) {\n            dynamicHandlers += \"\".concat(name_1, \",\").concat(handlerCode, \",\");\n        }\n        else {\n            staticHandlers += \"\\\"\".concat(name_1, \"\\\":\").concat(handlerCode, \",\");\n        }\n    }\n    staticHandlers = \"{\".concat(staticHandlers.slice(0, -1), \"}\");\n    if (dynamicHandlers) {\n        return prefix + \"_d(\".concat(staticHandlers, \",[\").concat(dynamicHandlers.slice(0, -1), \"])\");\n    }\n    else {\n        return prefix + staticHandlers;\n    }\n}\nfunction genHandler(handler) {\n    if (!handler) {\n        return 'function(){}';\n    }\n    if (Array.isArray(handler)) {\n        return \"[\".concat(handler.map(function (handler) { return genHandler(handler); }).join(','), \"]\");\n    }\n    var isMethodPath = simplePathRE.test(handler.value);\n    var isFunctionExpression = fnExpRE.test(handler.value);\n    var isFunctionInvocation = simplePathRE.test(handler.value.replace(fnInvokeRE, ''));\n    if (!handler.modifiers) {\n        if (isMethodPath || isFunctionExpression) {\n            return handler.value;\n        }\n        return \"function($event){\".concat(isFunctionInvocation ? \"return \".concat(handler.value) : handler.value, \"}\"); // inline statement\n    }\n    else {\n        var code = '';\n        var genModifierCode = '';\n        var keys = [];\n        var _loop_1 = function (key) {\n            if (modifierCode[key]) {\n                genModifierCode += modifierCode[key];\n                // left/right\n                if (keyCodes[key]) {\n                    keys.push(key);\n                }\n            }\n            else if (key === 'exact') {\n                var modifiers_1 = handler.modifiers;\n                genModifierCode += genGuard(['ctrl', 'shift', 'alt', 'meta']\n                    .filter(function (keyModifier) { return !modifiers_1[keyModifier]; })\n                    .map(function (keyModifier) { return \"$event.\".concat(keyModifier, \"Key\"); })\n                    .join('||'));\n            }\n            else {\n                keys.push(key);\n            }\n        };\n        for (var key in handler.modifiers) {\n            _loop_1(key);\n        }\n        if (keys.length) {\n            code += genKeyFilter(keys);\n        }\n        // Make sure modifiers like prevent and stop get executed after key filtering\n        if (genModifierCode) {\n            code += genModifierCode;\n        }\n        var handlerCode = isMethodPath\n            ? \"return \".concat(handler.value, \".apply(null, arguments)\")\n            : isFunctionExpression\n                ? \"return (\".concat(handler.value, \").apply(null, arguments)\")\n                : isFunctionInvocation\n                    ? \"return \".concat(handler.value)\n                    : handler.value;\n        return \"function($event){\".concat(code).concat(handlerCode, \"}\");\n    }\n}\nfunction genKeyFilter(keys) {\n    return (\n    // make sure the key filters only apply to KeyboardEvents\n    // #9441: can't use 'keyCode' in $event because Chrome autofill fires fake\n    // key events that do not have keyCode property...\n    \"if(!$event.type.indexOf('key')&&\" +\n        \"\".concat(keys.map(genFilterCode).join('&&'), \")return null;\"));\n}\nfunction genFilterCode(key) {\n    var keyVal = parseInt(key, 10);\n    if (keyVal) {\n        return \"$event.keyCode!==\".concat(keyVal);\n    }\n    var keyCode = keyCodes[key];\n    var keyName = keyNames[key];\n    return (\"_k($event.keyCode,\" +\n        \"\".concat(JSON.stringify(key), \",\") +\n        \"\".concat(JSON.stringify(keyCode), \",\") +\n        \"$event.key,\" +\n        \"\".concat(JSON.stringify(keyName)) +\n        \")\");\n}\n\nfunction on(el, dir) {\n    if ( true && dir.modifiers) {\n        warn$2(\"v-on without argument does not support modifiers.\");\n    }\n    el.wrapListeners = function (code) { return \"_g(\".concat(code, \",\").concat(dir.value, \")\"); };\n}\n\nfunction bind(el, dir) {\n    el.wrapData = function (code) {\n        return \"_b(\".concat(code, \",'\").concat(el.tag, \"',\").concat(dir.value, \",\").concat(dir.modifiers && dir.modifiers.prop ? 'true' : 'false').concat(dir.modifiers && dir.modifiers.sync ? ',true' : '', \")\");\n    };\n}\n\nvar baseDirectives = {\n    on: on,\n    bind: bind,\n    cloak: noop\n};\n\nvar CodegenState = /** @class */ (function () {\n    function CodegenState(options) {\n        this.options = options;\n        this.warn = options.warn || baseWarn;\n        this.transforms = pluckModuleFunction(options.modules, 'transformCode');\n        this.dataGenFns = pluckModuleFunction(options.modules, 'genData');\n        this.directives = extend(extend({}, baseDirectives), options.directives);\n        var isReservedTag = options.isReservedTag || no;\n        this.maybeComponent = function (el) {\n            return !!el.component || !isReservedTag(el.tag);\n        };\n        this.onceId = 0;\n        this.staticRenderFns = [];\n        this.pre = false;\n    }\n    return CodegenState;\n}());\nfunction generate(ast, options) {\n    var state = new CodegenState(options);\n    // fix #11483, Root level <script> tags should not be rendered.\n    var code = ast\n        ? ast.tag === 'script'\n            ? 'null'\n            : genElement(ast, state)\n        : '_c(\"div\")';\n    return {\n        render: \"with(this){return \".concat(code, \"}\"),\n        staticRenderFns: state.staticRenderFns\n    };\n}\nfunction genElement(el, state) {\n    if (el.parent) {\n        el.pre = el.pre || el.parent.pre;\n    }\n    if (el.staticRoot && !el.staticProcessed) {\n        return genStatic(el, state);\n    }\n    else if (el.once && !el.onceProcessed) {\n        return genOnce(el, state);\n    }\n    else if (el.for && !el.forProcessed) {\n        return genFor(el, state);\n    }\n    else if (el.if && !el.ifProcessed) {\n        return genIf(el, state);\n    }\n    else if (el.tag === 'template' && !el.slotTarget && !state.pre) {\n        return genChildren(el, state) || 'void 0';\n    }\n    else if (el.tag === 'slot') {\n        return genSlot(el, state);\n    }\n    else {\n        // component or element\n        var code = void 0;\n        if (el.component) {\n            code = genComponent(el.component, el, state);\n        }\n        else {\n            var data = void 0;\n            var maybeComponent = state.maybeComponent(el);\n            if (!el.plain || (el.pre && maybeComponent)) {\n                data = genData(el, state);\n            }\n            var tag \n            // check if this is a component in <script setup>\n            = void 0;\n            // check if this is a component in <script setup>\n            var bindings = state.options.bindings;\n            if (maybeComponent && bindings && bindings.__isScriptSetup !== false) {\n                tag = checkBindingType(bindings, el.tag);\n            }\n            if (!tag)\n                tag = \"'\".concat(el.tag, \"'\");\n            var children = el.inlineTemplate ? null : genChildren(el, state, true);\n            code = \"_c(\".concat(tag).concat(data ? \",\".concat(data) : '' // data\n            ).concat(children ? \",\".concat(children) : '' // children\n            , \")\");\n        }\n        // module transforms\n        for (var i = 0; i < state.transforms.length; i++) {\n            code = state.transforms[i](el, code);\n        }\n        return code;\n    }\n}\nfunction checkBindingType(bindings, key) {\n    var camelName = camelize(key);\n    var PascalName = capitalize(camelName);\n    var checkType = function (type) {\n        if (bindings[key] === type) {\n            return key;\n        }\n        if (bindings[camelName] === type) {\n            return camelName;\n        }\n        if (bindings[PascalName] === type) {\n            return PascalName;\n        }\n    };\n    var fromConst = checkType(\"setup-const\" /* BindingTypes.SETUP_CONST */) ||\n        checkType(\"setup-reactive-const\" /* BindingTypes.SETUP_REACTIVE_CONST */);\n    if (fromConst) {\n        return fromConst;\n    }\n    var fromMaybeRef = checkType(\"setup-let\" /* BindingTypes.SETUP_LET */) ||\n        checkType(\"setup-ref\" /* BindingTypes.SETUP_REF */) ||\n        checkType(\"setup-maybe-ref\" /* BindingTypes.SETUP_MAYBE_REF */);\n    if (fromMaybeRef) {\n        return fromMaybeRef;\n    }\n}\n// hoist static sub-trees out\nfunction genStatic(el, state) {\n    el.staticProcessed = true;\n    // Some elements (templates) need to behave differently inside of a v-pre\n    // node.  All pre nodes are static roots, so we can use this as a location to\n    // wrap a state change and reset it upon exiting the pre node.\n    var originalPreState = state.pre;\n    if (el.pre) {\n        state.pre = el.pre;\n    }\n    state.staticRenderFns.push(\"with(this){return \".concat(genElement(el, state), \"}\"));\n    state.pre = originalPreState;\n    return \"_m(\".concat(state.staticRenderFns.length - 1).concat(el.staticInFor ? ',true' : '', \")\");\n}\n// v-once\nfunction genOnce(el, state) {\n    el.onceProcessed = true;\n    if (el.if && !el.ifProcessed) {\n        return genIf(el, state);\n    }\n    else if (el.staticInFor) {\n        var key = '';\n        var parent_1 = el.parent;\n        while (parent_1) {\n            if (parent_1.for) {\n                key = parent_1.key;\n                break;\n            }\n            parent_1 = parent_1.parent;\n        }\n        if (!key) {\n             true &&\n                state.warn(\"v-once can only be used inside v-for that is keyed. \", el.rawAttrsMap['v-once']);\n            return genElement(el, state);\n        }\n        return \"_o(\".concat(genElement(el, state), \",\").concat(state.onceId++, \",\").concat(key, \")\");\n    }\n    else {\n        return genStatic(el, state);\n    }\n}\nfunction genIf(el, state, altGen, altEmpty) {\n    el.ifProcessed = true; // avoid recursion\n    return genIfConditions(el.ifConditions.slice(), state, altGen, altEmpty);\n}\nfunction genIfConditions(conditions, state, altGen, altEmpty) {\n    if (!conditions.length) {\n        return altEmpty || '_e()';\n    }\n    var condition = conditions.shift();\n    if (condition.exp) {\n        return \"(\".concat(condition.exp, \")?\").concat(genTernaryExp(condition.block), \":\").concat(genIfConditions(conditions, state, altGen, altEmpty));\n    }\n    else {\n        return \"\".concat(genTernaryExp(condition.block));\n    }\n    // v-if with v-once should generate code like (a)?_m(0):_m(1)\n    function genTernaryExp(el) {\n        return altGen\n            ? altGen(el, state)\n            : el.once\n                ? genOnce(el, state)\n                : genElement(el, state);\n    }\n}\nfunction genFor(el, state, altGen, altHelper) {\n    var exp = el.for;\n    var alias = el.alias;\n    var iterator1 = el.iterator1 ? \",\".concat(el.iterator1) : '';\n    var iterator2 = el.iterator2 ? \",\".concat(el.iterator2) : '';\n    if ( true &&\n        state.maybeComponent(el) &&\n        el.tag !== 'slot' &&\n        el.tag !== 'template' &&\n        !el.key) {\n        state.warn(\"<\".concat(el.tag, \" v-for=\\\"\").concat(alias, \" in \").concat(exp, \"\\\">: component lists rendered with \") +\n            \"v-for should have explicit keys. \" +\n            \"See https://v2.vuejs.org/v2/guide/list.html#key for more info.\", el.rawAttrsMap['v-for'], true /* tip */);\n    }\n    el.forProcessed = true; // avoid recursion\n    return (\"\".concat(altHelper || '_l', \"((\").concat(exp, \"),\") +\n        \"function(\".concat(alias).concat(iterator1).concat(iterator2, \"){\") +\n        \"return \".concat((altGen || genElement)(el, state)) +\n        '})');\n}\nfunction genData(el, state) {\n    var data = '{';\n    // directives first.\n    // directives may mutate the el's other properties before they are generated.\n    var dirs = genDirectives(el, state);\n    if (dirs)\n        data += dirs + ',';\n    // key\n    if (el.key) {\n        data += \"key:\".concat(el.key, \",\");\n    }\n    // ref\n    if (el.ref) {\n        data += \"ref:\".concat(el.ref, \",\");\n    }\n    if (el.refInFor) {\n        data += \"refInFor:true,\";\n    }\n    // pre\n    if (el.pre) {\n        data += \"pre:true,\";\n    }\n    // record original tag name for components using \"is\" attribute\n    if (el.component) {\n        data += \"tag:\\\"\".concat(el.tag, \"\\\",\");\n    }\n    // module data generation functions\n    for (var i = 0; i < state.dataGenFns.length; i++) {\n        data += state.dataGenFns[i](el);\n    }\n    // attributes\n    if (el.attrs) {\n        data += \"attrs:\".concat(genProps(el.attrs), \",\");\n    }\n    // DOM props\n    if (el.props) {\n        data += \"domProps:\".concat(genProps(el.props), \",\");\n    }\n    // event handlers\n    if (el.events) {\n        data += \"\".concat(genHandlers(el.events, false), \",\");\n    }\n    if (el.nativeEvents) {\n        data += \"\".concat(genHandlers(el.nativeEvents, true), \",\");\n    }\n    // slot target\n    // only for non-scoped slots\n    if (el.slotTarget && !el.slotScope) {\n        data += \"slot:\".concat(el.slotTarget, \",\");\n    }\n    // scoped slots\n    if (el.scopedSlots) {\n        data += \"\".concat(genScopedSlots(el, el.scopedSlots, state), \",\");\n    }\n    // component v-model\n    if (el.model) {\n        data += \"model:{value:\".concat(el.model.value, \",callback:\").concat(el.model.callback, \",expression:\").concat(el.model.expression, \"},\");\n    }\n    // inline-template\n    if (el.inlineTemplate) {\n        var inlineTemplate = genInlineTemplate(el, state);\n        if (inlineTemplate) {\n            data += \"\".concat(inlineTemplate, \",\");\n        }\n    }\n    data = data.replace(/,$/, '') + '}';\n    // v-bind dynamic argument wrap\n    // v-bind with dynamic arguments must be applied using the same v-bind object\n    // merge helper so that class/style/mustUseProp attrs are handled correctly.\n    if (el.dynamicAttrs) {\n        data = \"_b(\".concat(data, \",\\\"\").concat(el.tag, \"\\\",\").concat(genProps(el.dynamicAttrs), \")\");\n    }\n    // v-bind data wrap\n    if (el.wrapData) {\n        data = el.wrapData(data);\n    }\n    // v-on data wrap\n    if (el.wrapListeners) {\n        data = el.wrapListeners(data);\n    }\n    return data;\n}\nfunction genDirectives(el, state) {\n    var dirs = el.directives;\n    if (!dirs)\n        return;\n    var res = 'directives:[';\n    var hasRuntime = false;\n    var i, l, dir, needRuntime;\n    for (i = 0, l = dirs.length; i < l; i++) {\n        dir = dirs[i];\n        needRuntime = true;\n        var gen = state.directives[dir.name];\n        if (gen) {\n            // compile-time directive that manipulates AST.\n            // returns true if it also needs a runtime counterpart.\n            needRuntime = !!gen(el, dir, state.warn);\n        }\n        if (needRuntime) {\n            hasRuntime = true;\n            res += \"{name:\\\"\".concat(dir.name, \"\\\",rawName:\\\"\").concat(dir.rawName, \"\\\"\").concat(dir.value\n                ? \",value:(\".concat(dir.value, \"),expression:\").concat(JSON.stringify(dir.value))\n                : '').concat(dir.arg ? \",arg:\".concat(dir.isDynamicArg ? dir.arg : \"\\\"\".concat(dir.arg, \"\\\"\")) : '').concat(dir.modifiers ? \",modifiers:\".concat(JSON.stringify(dir.modifiers)) : '', \"},\");\n        }\n    }\n    if (hasRuntime) {\n        return res.slice(0, -1) + ']';\n    }\n}\nfunction genInlineTemplate(el, state) {\n    var ast = el.children[0];\n    if ( true && (el.children.length !== 1 || ast.type !== 1)) {\n        state.warn('Inline-template components must have exactly one child element.', { start: el.start });\n    }\n    if (ast && ast.type === 1) {\n        var inlineRenderFns = generate(ast, state.options);\n        return \"inlineTemplate:{render:function(){\".concat(inlineRenderFns.render, \"},staticRenderFns:[\").concat(inlineRenderFns.staticRenderFns\n            .map(function (code) { return \"function(){\".concat(code, \"}\"); })\n            .join(','), \"]}\");\n    }\n}\nfunction genScopedSlots(el, slots, state) {\n    // by default scoped slots are considered \"stable\", this allows child\n    // components with only scoped slots to skip forced updates from parent.\n    // but in some cases we have to bail-out of this optimization\n    // for example if the slot contains dynamic names, has v-if or v-for on them...\n    var needsForceUpdate = el.for ||\n        Object.keys(slots).some(function (key) {\n            var slot = slots[key];\n            return (slot.slotTargetDynamic || slot.if || slot.for || containsSlotChild(slot) // is passing down slot from parent which may be dynamic\n            );\n        });\n    // #9534: if a component with scoped slots is inside a conditional branch,\n    // it's possible for the same component to be reused but with different\n    // compiled slot content. To avoid that, we generate a unique key based on\n    // the generated code of all the slot contents.\n    var needsKey = !!el.if;\n    // OR when it is inside another scoped slot or v-for (the reactivity may be\n    // disconnected due to the intermediate scope variable)\n    // #9438, #9506\n    // TODO: this can be further optimized by properly analyzing in-scope bindings\n    // and skip force updating ones that do not actually use scope variables.\n    if (!needsForceUpdate) {\n        var parent_2 = el.parent;\n        while (parent_2) {\n            if ((parent_2.slotScope && parent_2.slotScope !== emptySlotScopeToken) ||\n                parent_2.for) {\n                needsForceUpdate = true;\n                break;\n            }\n            if (parent_2.if) {\n                needsKey = true;\n            }\n            parent_2 = parent_2.parent;\n        }\n    }\n    var generatedSlots = Object.keys(slots)\n        .map(function (key) { return genScopedSlot(slots[key], state); })\n        .join(',');\n    return \"scopedSlots:_u([\".concat(generatedSlots, \"]\").concat(needsForceUpdate ? \",null,true\" : \"\").concat(!needsForceUpdate && needsKey ? \",null,false,\".concat(hash(generatedSlots)) : \"\", \")\");\n}\nfunction hash(str) {\n    var hash = 5381;\n    var i = str.length;\n    while (i) {\n        hash = (hash * 33) ^ str.charCodeAt(--i);\n    }\n    return hash >>> 0;\n}\nfunction containsSlotChild(el) {\n    if (el.type === 1) {\n        if (el.tag === 'slot') {\n            return true;\n        }\n        return el.children.some(containsSlotChild);\n    }\n    return false;\n}\nfunction genScopedSlot(el, state) {\n    var isLegacySyntax = el.attrsMap['slot-scope'];\n    if (el.if && !el.ifProcessed && !isLegacySyntax) {\n        return genIf(el, state, genScopedSlot, \"null\");\n    }\n    if (el.for && !el.forProcessed) {\n        return genFor(el, state, genScopedSlot);\n    }\n    var slotScope = el.slotScope === emptySlotScopeToken ? \"\" : String(el.slotScope);\n    var fn = \"function(\".concat(slotScope, \"){\") +\n        \"return \".concat(el.tag === 'template'\n            ? el.if && isLegacySyntax\n                ? \"(\".concat(el.if, \")?\").concat(genChildren(el, state) || 'undefined', \":undefined\")\n                : genChildren(el, state) || 'undefined'\n            : genElement(el, state), \"}\");\n    // reverse proxy v-slot without scope on this.$slots\n    var reverseProxy = slotScope ? \"\" : \",proxy:true\";\n    return \"{key:\".concat(el.slotTarget || \"\\\"default\\\"\", \",fn:\").concat(fn).concat(reverseProxy, \"}\");\n}\nfunction genChildren(el, state, checkSkip, altGenElement, altGenNode) {\n    var children = el.children;\n    if (children.length) {\n        var el_1 = children[0];\n        // optimize single v-for\n        if (children.length === 1 &&\n            el_1.for &&\n            el_1.tag !== 'template' &&\n            el_1.tag !== 'slot') {\n            var normalizationType_1 = checkSkip\n                ? state.maybeComponent(el_1)\n                    ? \",1\"\n                    : \",0\"\n                : \"\";\n            return \"\".concat((altGenElement || genElement)(el_1, state)).concat(normalizationType_1);\n        }\n        var normalizationType = checkSkip\n            ? getNormalizationType(children, state.maybeComponent)\n            : 0;\n        var gen_1 = altGenNode || genNode;\n        return \"[\".concat(children.map(function (c) { return gen_1(c, state); }).join(','), \"]\").concat(normalizationType ? \",\".concat(normalizationType) : '');\n    }\n}\n// determine the normalization needed for the children array.\n// 0: no normalization needed\n// 1: simple normalization needed (possible 1-level deep nested array)\n// 2: full normalization needed\nfunction getNormalizationType(children, maybeComponent) {\n    var res = 0;\n    for (var i = 0; i < children.length; i++) {\n        var el = children[i];\n        if (el.type !== 1) {\n            continue;\n        }\n        if (needsNormalization(el) ||\n            (el.ifConditions &&\n                el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) {\n            res = 2;\n            break;\n        }\n        if (maybeComponent(el) ||\n            (el.ifConditions && el.ifConditions.some(function (c) { return maybeComponent(c.block); }))) {\n            res = 1;\n        }\n    }\n    return res;\n}\nfunction needsNormalization(el) {\n    return el.for !== undefined || el.tag === 'template' || el.tag === 'slot';\n}\nfunction genNode(node, state) {\n    if (node.type === 1) {\n        return genElement(node, state);\n    }\n    else if (node.type === 3 && node.isComment) {\n        return genComment(node);\n    }\n    else {\n        return genText(node);\n    }\n}\nfunction genText(text) {\n    return \"_v(\".concat(text.type === 2\n        ? text.expression // no need for () because already wrapped in _s()\n        : transformSpecialNewlines(JSON.stringify(text.text)), \")\");\n}\nfunction genComment(comment) {\n    return \"_e(\".concat(JSON.stringify(comment.text), \")\");\n}\nfunction genSlot(el, state) {\n    var slotName = el.slotName || '\"default\"';\n    var children = genChildren(el, state);\n    var res = \"_t(\".concat(slotName).concat(children ? \",function(){return \".concat(children, \"}\") : '');\n    var attrs = el.attrs || el.dynamicAttrs\n        ? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({\n            // slot props are camelized\n            name: camelize(attr.name),\n            value: attr.value,\n            dynamic: attr.dynamic\n        }); }))\n        : null;\n    var bind = el.attrsMap['v-bind'];\n    if ((attrs || bind) && !children) {\n        res += \",null\";\n    }\n    if (attrs) {\n        res += \",\".concat(attrs);\n    }\n    if (bind) {\n        res += \"\".concat(attrs ? '' : ',null', \",\").concat(bind);\n    }\n    return res + ')';\n}\n// componentName is el.component, take it as argument to shun flow's pessimistic refinement\nfunction genComponent(componentName, el, state) {\n    var children = el.inlineTemplate ? null : genChildren(el, state, true);\n    return \"_c(\".concat(componentName, \",\").concat(genData(el, state)).concat(children ? \",\".concat(children) : '', \")\");\n}\nfunction genProps(props) {\n    var staticProps = \"\";\n    var dynamicProps = \"\";\n    for (var i = 0; i < props.length; i++) {\n        var prop = props[i];\n        var value = transformSpecialNewlines(prop.value);\n        if (prop.dynamic) {\n            dynamicProps += \"\".concat(prop.name, \",\").concat(value, \",\");\n        }\n        else {\n            staticProps += \"\\\"\".concat(prop.name, \"\\\":\").concat(value, \",\");\n        }\n    }\n    staticProps = \"{\".concat(staticProps.slice(0, -1), \"}\");\n    if (dynamicProps) {\n        return \"_d(\".concat(staticProps, \",[\").concat(dynamicProps.slice(0, -1), \"])\");\n    }\n    else {\n        return staticProps;\n    }\n}\n// #3895, #4268\nfunction transformSpecialNewlines(text) {\n    return text.replace(/\\u2028/g, '\\\\u2028').replace(/\\u2029/g, '\\\\u2029');\n}\n\n// these keywords should not appear inside expressions, but operators like\n// typeof, instanceof and in are allowed\nvar prohibitedKeywordRE = new RegExp('\\\\b' +\n    ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +\n        'super,throw,while,yield,delete,export,import,return,switch,default,' +\n        'extends,finally,continue,debugger,function,arguments')\n        .split(',')\n        .join('\\\\b|\\\\b') +\n    '\\\\b');\n// these unary operators should not be used as property/method names\nvar unaryOperatorsRE = new RegExp('\\\\b' +\n    'delete,typeof,void'.split(',').join('\\\\s*\\\\([^\\\\)]*\\\\)|\\\\b') +\n    '\\\\s*\\\\([^\\\\)]*\\\\)');\n// strip strings in expressions\nvar stripStringRE = /'(?:[^'\\\\]|\\\\.)*'|\"(?:[^\"\\\\]|\\\\.)*\"|`(?:[^`\\\\]|\\\\.)*\\$\\{|\\}(?:[^`\\\\]|\\\\.)*`|`(?:[^`\\\\]|\\\\.)*`/g;\n// detect problematic expressions in a template\nfunction detectErrors(ast, warn) {\n    if (ast) {\n        checkNode(ast, warn);\n    }\n}\nfunction checkNode(node, warn) {\n    if (node.type === 1) {\n        for (var name_1 in node.attrsMap) {\n            if (dirRE.test(name_1)) {\n                var value = node.attrsMap[name_1];\n                if (value) {\n                    var range = node.rawAttrsMap[name_1];\n                    if (name_1 === 'v-for') {\n                        checkFor(node, \"v-for=\\\"\".concat(value, \"\\\"\"), warn, range);\n                    }\n                    else if (name_1 === 'v-slot' || name_1[0] === '#') {\n                        checkFunctionParameterExpression(value, \"\".concat(name_1, \"=\\\"\").concat(value, \"\\\"\"), warn, range);\n                    }\n                    else if (onRE.test(name_1)) {\n                        checkEvent(value, \"\".concat(name_1, \"=\\\"\").concat(value, \"\\\"\"), warn, range);\n                    }\n                    else {\n                        checkExpression(value, \"\".concat(name_1, \"=\\\"\").concat(value, \"\\\"\"), warn, range);\n                    }\n                }\n            }\n        }\n        if (node.children) {\n            for (var i = 0; i < node.children.length; i++) {\n                checkNode(node.children[i], warn);\n            }\n        }\n    }\n    else if (node.type === 2) {\n        checkExpression(node.expression, node.text, warn, node);\n    }\n}\nfunction checkEvent(exp, text, warn, range) {\n    var stripped = exp.replace(stripStringRE, '');\n    var keywordMatch = stripped.match(unaryOperatorsRE);\n    if (keywordMatch && stripped.charAt(keywordMatch.index - 1) !== '$') {\n        warn(\"avoid using JavaScript unary operator as property name: \" +\n            \"\\\"\".concat(keywordMatch[0], \"\\\" in expression \").concat(text.trim()), range);\n    }\n    checkExpression(exp, text, warn, range);\n}\nfunction checkFor(node, text, warn, range) {\n    checkExpression(node.for || '', text, warn, range);\n    checkIdentifier(node.alias, 'v-for alias', text, warn, range);\n    checkIdentifier(node.iterator1, 'v-for iterator', text, warn, range);\n    checkIdentifier(node.iterator2, 'v-for iterator', text, warn, range);\n}\nfunction checkIdentifier(ident, type, text, warn, range) {\n    if (typeof ident === 'string') {\n        try {\n            new Function(\"var \".concat(ident, \"=_\"));\n        }\n        catch (e) {\n            warn(\"invalid \".concat(type, \" \\\"\").concat(ident, \"\\\" in expression: \").concat(text.trim()), range);\n        }\n    }\n}\nfunction checkExpression(exp, text, warn, range) {\n    try {\n        new Function(\"return \".concat(exp));\n    }\n    catch (e) {\n        var keywordMatch = exp\n            .replace(stripStringRE, '')\n            .match(prohibitedKeywordRE);\n        if (keywordMatch) {\n            warn(\"avoid using JavaScript keyword as property name: \" +\n                \"\\\"\".concat(keywordMatch[0], \"\\\"\\n  Raw expression: \").concat(text.trim()), range);\n        }\n        else {\n            warn(\"invalid expression: \".concat(e.message, \" in\\n\\n\") +\n                \"    \".concat(exp, \"\\n\\n\") +\n                \"  Raw expression: \".concat(text.trim(), \"\\n\"), range);\n        }\n    }\n}\nfunction checkFunctionParameterExpression(exp, text, warn, range) {\n    try {\n        new Function(exp, '');\n    }\n    catch (e) {\n        warn(\"invalid function parameter expression: \".concat(e.message, \" in\\n\\n\") +\n            \"    \".concat(exp, \"\\n\\n\") +\n            \"  Raw expression: \".concat(text.trim(), \"\\n\"), range);\n    }\n}\n\nvar range = 2;\nfunction generateCodeFrame(source, start, end) {\n    if (start === void 0) { start = 0; }\n    if (end === void 0) { end = source.length; }\n    var lines = source.split(/\\r?\\n/);\n    var count = 0;\n    var res = [];\n    for (var i = 0; i < lines.length; i++) {\n        count += lines[i].length + 1;\n        if (count >= start) {\n            for (var j = i - range; j <= i + range || end > count; j++) {\n                if (j < 0 || j >= lines.length)\n                    continue;\n                res.push(\"\".concat(j + 1).concat(repeat(\" \", 3 - String(j + 1).length), \"|  \").concat(lines[j]));\n                var lineLength = lines[j].length;\n                if (j === i) {\n                    // push underline\n                    var pad = start - (count - lineLength) + 1;\n                    var length_1 = end > count ? lineLength - pad : end - start;\n                    res.push(\"   |  \" + repeat(\" \", pad) + repeat(\"^\", length_1));\n                }\n                else if (j > i) {\n                    if (end > count) {\n                        var length_2 = Math.min(end - count, lineLength);\n                        res.push(\"   |  \" + repeat(\"^\", length_2));\n                    }\n                    count += lineLength + 1;\n                }\n            }\n            break;\n        }\n    }\n    return res.join('\\n');\n}\nfunction repeat(str, n) {\n    var result = '';\n    if (n > 0) {\n        // eslint-disable-next-line no-constant-condition\n        while (true) {\n            // eslint-disable-line\n            if (n & 1)\n                result += str;\n            n >>>= 1;\n            if (n <= 0)\n                break;\n            str += str;\n        }\n    }\n    return result;\n}\n\nfunction createFunction(code, errors) {\n    try {\n        return new Function(code);\n    }\n    catch (err) {\n        errors.push({ err: err, code: code });\n        return noop;\n    }\n}\nfunction createCompileToFunctionFn(compile) {\n    var cache = Object.create(null);\n    return function compileToFunctions(template, options, vm) {\n        options = extend({}, options);\n        var warn = options.warn || warn$2;\n        delete options.warn;\n        /* istanbul ignore if */\n        if (true) {\n            // detect possible CSP restriction\n            try {\n                new Function('return 1');\n            }\n            catch (e) {\n                if (e.toString().match(/unsafe-eval|CSP/)) {\n                    warn('It seems you are using the standalone build of Vue.js in an ' +\n                        'environment with Content Security Policy that prohibits unsafe-eval. ' +\n                        'The template compiler cannot work in this environment. Consider ' +\n                        'relaxing the policy to allow unsafe-eval or pre-compiling your ' +\n                        'templates into render functions.');\n                }\n            }\n        }\n        // check cache\n        var key = options.delimiters\n            ? String(options.delimiters) + template\n            : template;\n        if (cache[key]) {\n            return cache[key];\n        }\n        // compile\n        var compiled = compile(template, options);\n        // check compilation errors/tips\n        if (true) {\n            if (compiled.errors && compiled.errors.length) {\n                if (options.outputSourceRange) {\n                    compiled.errors.forEach(function (e) {\n                        warn(\"Error compiling template:\\n\\n\".concat(e.msg, \"\\n\\n\") +\n                            generateCodeFrame(template, e.start, e.end), vm);\n                    });\n                }\n                else {\n                    warn(\"Error compiling template:\\n\\n\".concat(template, \"\\n\\n\") +\n                        compiled.errors.map(function (e) { return \"- \".concat(e); }).join('\\n') +\n                        '\\n', vm);\n                }\n            }\n            if (compiled.tips && compiled.tips.length) {\n                if (options.outputSourceRange) {\n                    compiled.tips.forEach(function (e) { return tip(e.msg, vm); });\n                }\n                else {\n                    compiled.tips.forEach(function (msg) { return tip(msg, vm); });\n                }\n            }\n        }\n        // turn code into functions\n        var res = {};\n        var fnGenErrors = [];\n        res.render = createFunction(compiled.render, fnGenErrors);\n        res.staticRenderFns = compiled.staticRenderFns.map(function (code) {\n            return createFunction(code, fnGenErrors);\n        });\n        // check function generation errors.\n        // this should only happen if there is a bug in the compiler itself.\n        // mostly for codegen development use\n        /* istanbul ignore if */\n        if (true) {\n            if ((!compiled.errors || !compiled.errors.length) && fnGenErrors.length) {\n                warn(\"Failed to generate render function:\\n\\n\" +\n                    fnGenErrors\n                        .map(function (_a) {\n                        var err = _a.err, code = _a.code;\n                        return \"\".concat(err.toString(), \" in\\n\\n\").concat(code, \"\\n\");\n                    })\n                        .join('\\n'), vm);\n            }\n        }\n        return (cache[key] = res);\n    };\n}\n\nfunction createCompilerCreator(baseCompile) {\n    return function createCompiler(baseOptions) {\n        function compile(template, options) {\n            var finalOptions = Object.create(baseOptions);\n            var errors = [];\n            var tips = [];\n            var warn = function (msg, range, tip) {\n                (tip ? tips : errors).push(msg);\n            };\n            if (options) {\n                if ( true && options.outputSourceRange) {\n                    // $flow-disable-line\n                    var leadingSpaceLength_1 = template.match(/^\\s*/)[0].length;\n                    warn = function (msg, range, tip) {\n                        var data = typeof msg === 'string' ? { msg: msg } : msg;\n                        if (range) {\n                            if (range.start != null) {\n                                data.start = range.start + leadingSpaceLength_1;\n                            }\n                            if (range.end != null) {\n                                data.end = range.end + leadingSpaceLength_1;\n                            }\n                        }\n                        (tip ? tips : errors).push(data);\n                    };\n                }\n                // merge custom modules\n                if (options.modules) {\n                    finalOptions.modules = (baseOptions.modules || []).concat(options.modules);\n                }\n                // merge custom directives\n                if (options.directives) {\n                    finalOptions.directives = extend(Object.create(baseOptions.directives || null), options.directives);\n                }\n                // copy other options\n                for (var key in options) {\n                    if (key !== 'modules' && key !== 'directives') {\n                        finalOptions[key] = options[key];\n                    }\n                }\n            }\n            finalOptions.warn = warn;\n            var compiled = baseCompile(template.trim(), finalOptions);\n            if (true) {\n                detectErrors(compiled.ast, warn);\n            }\n            compiled.errors = errors;\n            compiled.tips = tips;\n            return compiled;\n        }\n        return {\n            compile: compile,\n            compileToFunctions: createCompileToFunctionFn(compile)\n        };\n    };\n}\n\n// `createCompilerCreator` allows creating compilers that use alternative\n// parser/optimizer/codegen, e.g the SSR optimizing compiler.\n// Here we just export a default compiler using the default parts.\nvar createCompiler = createCompilerCreator(function baseCompile(template, options) {\n    var ast = parse(template.trim(), options);\n    if (options.optimize !== false) {\n        optimize(ast, options);\n    }\n    var code = generate(ast, options);\n    return {\n        ast: ast,\n        render: code.render,\n        staticRenderFns: code.staticRenderFns\n    };\n});\n\nvar _a = createCompiler(baseOptions), compileToFunctions = _a.compileToFunctions;\n\n// check whether current browser encodes a char inside attribute values\nvar div;\nfunction getShouldDecode(href) {\n    div = div || document.createElement('div');\n    div.innerHTML = href ? \"<a href=\\\"\\n\\\"/>\" : \"<div a=\\\"\\n\\\"/>\";\n    return div.innerHTML.indexOf('&#10;') > 0;\n}\n// #3663: IE encodes newlines inside attribute values while other browsers don't\nvar shouldDecodeNewlines = inBrowser ? getShouldDecode(false) : false;\n// #6828: chrome encodes content in a[href]\nvar shouldDecodeNewlinesForHref = inBrowser\n    ? getShouldDecode(true)\n    : false;\n\nvar idToTemplate = cached(function (id) {\n    var el = query(id);\n    return el && el.innerHTML;\n});\nvar mount = Vue.prototype.$mount;\nVue.prototype.$mount = function (el, hydrating) {\n    el = el && query(el);\n    /* istanbul ignore if */\n    if (el === document.body || el === document.documentElement) {\n         true &&\n            warn$2(\"Do not mount Vue to <html> or <body> - mount to normal elements instead.\");\n        return this;\n    }\n    var options = this.$options;\n    // resolve template/el and convert to render function\n    if (!options.render) {\n        var template = options.template;\n        if (template) {\n            if (typeof template === 'string') {\n                if (template.charAt(0) === '#') {\n                    template = idToTemplate(template);\n                    /* istanbul ignore if */\n                    if ( true && !template) {\n                        warn$2(\"Template element not found or is empty: \".concat(options.template), this);\n                    }\n                }\n            }\n            else if (template.nodeType) {\n                template = template.innerHTML;\n            }\n            else {\n                if (true) {\n                    warn$2('invalid template option:' + template, this);\n                }\n                return this;\n            }\n        }\n        else if (el) {\n            // @ts-expect-error\n            template = getOuterHTML(el);\n        }\n        if (template) {\n            /* istanbul ignore if */\n            if ( true && config.performance && mark) {\n                mark('compile');\n            }\n            var _a = compileToFunctions(template, {\n                outputSourceRange: \"staging\" !== 'production',\n                shouldDecodeNewlines: shouldDecodeNewlines,\n                shouldDecodeNewlinesForHref: shouldDecodeNewlinesForHref,\n                delimiters: options.delimiters,\n                comments: options.comments\n            }, this), render = _a.render, staticRenderFns = _a.staticRenderFns;\n            options.render = render;\n            options.staticRenderFns = staticRenderFns;\n            /* istanbul ignore if */\n            if ( true && config.performance && mark) {\n                mark('compile end');\n                measure(\"vue \".concat(this._name, \" compile\"), 'compile', 'compile end');\n            }\n        }\n    }\n    return mount.call(this, el, hydrating);\n};\n/**\n * Get outerHTML of elements, taking care\n * of SVG elements in IE as well.\n */\nfunction getOuterHTML(el) {\n    if (el.outerHTML) {\n        return el.outerHTML;\n    }\n    else {\n        var container = document.createElement('div');\n        container.appendChild(el.cloneNode(true));\n        return container.innerHTML;\n    }\n}\nVue.compile = compileToFunctions;\n\n\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/vue/dist/vue.esm.js?");

/***/ }),

/***/ "./node_modules/vuex/dist/vuex.esm.js":
/*!********************************************!*\
  !*** ./node_modules/vuex/dist/vuex.esm.js ***!
  \********************************************/
/*! exports provided: default, Store, createLogger, createNamespacedHelpers, install, mapActions, mapGetters, mapMutations, mapState */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Store\", function() { return Store; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createLogger\", function() { return createLogger; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createNamespacedHelpers\", function() { return createNamespacedHelpers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"install\", function() { return install; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mapActions\", function() { return mapActions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mapGetters\", function() { return mapGetters; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mapMutations\", function() { return mapMutations; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mapState\", function() { return mapState; });\n/*!\n * vuex v3.6.2\n * (c) 2021 Evan You\n * @license MIT\n */\nfunction applyMixin (Vue) {\n  var version = Number(Vue.version.split('.')[0]);\n\n  if (version >= 2) {\n    Vue.mixin({ beforeCreate: vuexInit });\n  } else {\n    // override init and inject vuex init procedure\n    // for 1.x backwards compatibility.\n    var _init = Vue.prototype._init;\n    Vue.prototype._init = function (options) {\n      if ( options === void 0 ) options = {};\n\n      options.init = options.init\n        ? [vuexInit].concat(options.init)\n        : vuexInit;\n      _init.call(this, options);\n    };\n  }\n\n  /**\n   * Vuex init hook, injected into each instances init hooks list.\n   */\n\n  function vuexInit () {\n    var options = this.$options;\n    // store injection\n    if (options.store) {\n      this.$store = typeof options.store === 'function'\n        ? options.store()\n        : options.store;\n    } else if (options.parent && options.parent.$store) {\n      this.$store = options.parent.$store;\n    }\n  }\n}\n\nvar target = typeof window !== 'undefined'\n  ? window\n  : typeof global !== 'undefined'\n    ? global\n    : {};\nvar devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\nfunction devtoolPlugin (store) {\n  if (!devtoolHook) { return }\n\n  store._devtoolHook = devtoolHook;\n\n  devtoolHook.emit('vuex:init', store);\n\n  devtoolHook.on('vuex:travel-to-state', function (targetState) {\n    store.replaceState(targetState);\n  });\n\n  store.subscribe(function (mutation, state) {\n    devtoolHook.emit('vuex:mutation', mutation, state);\n  }, { prepend: true });\n\n  store.subscribeAction(function (action, state) {\n    devtoolHook.emit('vuex:action', action, state);\n  }, { prepend: true });\n}\n\n/**\n * Get the first item that pass the test\n * by second argument function\n *\n * @param {Array} list\n * @param {Function} f\n * @return {*}\n */\nfunction find (list, f) {\n  return list.filter(f)[0]\n}\n\n/**\n * Deep copy the given object considering circular structure.\n * This function caches all nested objects and its copies.\n * If it detects circular structure, use cached copy to avoid infinite loop.\n *\n * @param {*} obj\n * @param {Array<Object>} cache\n * @return {*}\n */\nfunction deepCopy (obj, cache) {\n  if ( cache === void 0 ) cache = [];\n\n  // just return if obj is immutable value\n  if (obj === null || typeof obj !== 'object') {\n    return obj\n  }\n\n  // if obj is hit, it is in circular structure\n  var hit = find(cache, function (c) { return c.original === obj; });\n  if (hit) {\n    return hit.copy\n  }\n\n  var copy = Array.isArray(obj) ? [] : {};\n  // put the copy into cache at first\n  // because we want to refer it in recursive deepCopy\n  cache.push({\n    original: obj,\n    copy: copy\n  });\n\n  Object.keys(obj).forEach(function (key) {\n    copy[key] = deepCopy(obj[key], cache);\n  });\n\n  return copy\n}\n\n/**\n * forEach for object\n */\nfunction forEachValue (obj, fn) {\n  Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });\n}\n\nfunction isObject (obj) {\n  return obj !== null && typeof obj === 'object'\n}\n\nfunction isPromise (val) {\n  return val && typeof val.then === 'function'\n}\n\nfunction assert (condition, msg) {\n  if (!condition) { throw new Error((\"[vuex] \" + msg)) }\n}\n\nfunction partial (fn, arg) {\n  return function () {\n    return fn(arg)\n  }\n}\n\n// Base data struct for store's module, package with some attribute and method\nvar Module = function Module (rawModule, runtime) {\n  this.runtime = runtime;\n  // Store some children item\n  this._children = Object.create(null);\n  // Store the origin module object which passed by programmer\n  this._rawModule = rawModule;\n  var rawState = rawModule.state;\n\n  // Store the origin module's state\n  this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};\n};\n\nvar prototypeAccessors = { namespaced: { configurable: true } };\n\nprototypeAccessors.namespaced.get = function () {\n  return !!this._rawModule.namespaced\n};\n\nModule.prototype.addChild = function addChild (key, module) {\n  this._children[key] = module;\n};\n\nModule.prototype.removeChild = function removeChild (key) {\n  delete this._children[key];\n};\n\nModule.prototype.getChild = function getChild (key) {\n  return this._children[key]\n};\n\nModule.prototype.hasChild = function hasChild (key) {\n  return key in this._children\n};\n\nModule.prototype.update = function update (rawModule) {\n  this._rawModule.namespaced = rawModule.namespaced;\n  if (rawModule.actions) {\n    this._rawModule.actions = rawModule.actions;\n  }\n  if (rawModule.mutations) {\n    this._rawModule.mutations = rawModule.mutations;\n  }\n  if (rawModule.getters) {\n    this._rawModule.getters = rawModule.getters;\n  }\n};\n\nModule.prototype.forEachChild = function forEachChild (fn) {\n  forEachValue(this._children, fn);\n};\n\nModule.prototype.forEachGetter = function forEachGetter (fn) {\n  if (this._rawModule.getters) {\n    forEachValue(this._rawModule.getters, fn);\n  }\n};\n\nModule.prototype.forEachAction = function forEachAction (fn) {\n  if (this._rawModule.actions) {\n    forEachValue(this._rawModule.actions, fn);\n  }\n};\n\nModule.prototype.forEachMutation = function forEachMutation (fn) {\n  if (this._rawModule.mutations) {\n    forEachValue(this._rawModule.mutations, fn);\n  }\n};\n\nObject.defineProperties( Module.prototype, prototypeAccessors );\n\nvar ModuleCollection = function ModuleCollection (rawRootModule) {\n  // register root module (Vuex.Store options)\n  this.register([], rawRootModule, false);\n};\n\nModuleCollection.prototype.get = function get (path) {\n  return path.reduce(function (module, key) {\n    return module.getChild(key)\n  }, this.root)\n};\n\nModuleCollection.prototype.getNamespace = function getNamespace (path) {\n  var module = this.root;\n  return path.reduce(function (namespace, key) {\n    module = module.getChild(key);\n    return namespace + (module.namespaced ? key + '/' : '')\n  }, '')\n};\n\nModuleCollection.prototype.update = function update$1 (rawRootModule) {\n  update([], this.root, rawRootModule);\n};\n\nModuleCollection.prototype.register = function register (path, rawModule, runtime) {\n    var this$1 = this;\n    if ( runtime === void 0 ) runtime = true;\n\n  if ((true)) {\n    assertRawModule(path, rawModule);\n  }\n\n  var newModule = new Module(rawModule, runtime);\n  if (path.length === 0) {\n    this.root = newModule;\n  } else {\n    var parent = this.get(path.slice(0, -1));\n    parent.addChild(path[path.length - 1], newModule);\n  }\n\n  // register nested modules\n  if (rawModule.modules) {\n    forEachValue(rawModule.modules, function (rawChildModule, key) {\n      this$1.register(path.concat(key), rawChildModule, runtime);\n    });\n  }\n};\n\nModuleCollection.prototype.unregister = function unregister (path) {\n  var parent = this.get(path.slice(0, -1));\n  var key = path[path.length - 1];\n  var child = parent.getChild(key);\n\n  if (!child) {\n    if ((true)) {\n      console.warn(\n        \"[vuex] trying to unregister module '\" + key + \"', which is \" +\n        \"not registered\"\n      );\n    }\n    return\n  }\n\n  if (!child.runtime) {\n    return\n  }\n\n  parent.removeChild(key);\n};\n\nModuleCollection.prototype.isRegistered = function isRegistered (path) {\n  var parent = this.get(path.slice(0, -1));\n  var key = path[path.length - 1];\n\n  if (parent) {\n    return parent.hasChild(key)\n  }\n\n  return false\n};\n\nfunction update (path, targetModule, newModule) {\n  if ((true)) {\n    assertRawModule(path, newModule);\n  }\n\n  // update target module\n  targetModule.update(newModule);\n\n  // update nested modules\n  if (newModule.modules) {\n    for (var key in newModule.modules) {\n      if (!targetModule.getChild(key)) {\n        if ((true)) {\n          console.warn(\n            \"[vuex] trying to add a new module '\" + key + \"' on hot reloading, \" +\n            'manual reload is needed'\n          );\n        }\n        return\n      }\n      update(\n        path.concat(key),\n        targetModule.getChild(key),\n        newModule.modules[key]\n      );\n    }\n  }\n}\n\nvar functionAssert = {\n  assert: function (value) { return typeof value === 'function'; },\n  expected: 'function'\n};\n\nvar objectAssert = {\n  assert: function (value) { return typeof value === 'function' ||\n    (typeof value === 'object' && typeof value.handler === 'function'); },\n  expected: 'function or object with \"handler\" function'\n};\n\nvar assertTypes = {\n  getters: functionAssert,\n  mutations: functionAssert,\n  actions: objectAssert\n};\n\nfunction assertRawModule (path, rawModule) {\n  Object.keys(assertTypes).forEach(function (key) {\n    if (!rawModule[key]) { return }\n\n    var assertOptions = assertTypes[key];\n\n    forEachValue(rawModule[key], function (value, type) {\n      assert(\n        assertOptions.assert(value),\n        makeAssertionMessage(path, key, type, value, assertOptions.expected)\n      );\n    });\n  });\n}\n\nfunction makeAssertionMessage (path, key, type, value, expected) {\n  var buf = key + \" should be \" + expected + \" but \\\"\" + key + \".\" + type + \"\\\"\";\n  if (path.length > 0) {\n    buf += \" in module \\\"\" + (path.join('.')) + \"\\\"\";\n  }\n  buf += \" is \" + (JSON.stringify(value)) + \".\";\n  return buf\n}\n\nvar Vue; // bind on install\n\nvar Store = function Store (options) {\n  var this$1 = this;\n  if ( options === void 0 ) options = {};\n\n  // Auto install if it is not done yet and `window` has `Vue`.\n  // To allow users to avoid auto-installation in some cases,\n  // this code should be placed here. See #731\n  if (!Vue && typeof window !== 'undefined' && window.Vue) {\n    install(window.Vue);\n  }\n\n  if ((true)) {\n    assert(Vue, \"must call Vue.use(Vuex) before creating a store instance.\");\n    assert(typeof Promise !== 'undefined', \"vuex requires a Promise polyfill in this browser.\");\n    assert(this instanceof Store, \"store must be called with the new operator.\");\n  }\n\n  var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];\n  var strict = options.strict; if ( strict === void 0 ) strict = false;\n\n  // store internal state\n  this._committing = false;\n  this._actions = Object.create(null);\n  this._actionSubscribers = [];\n  this._mutations = Object.create(null);\n  this._wrappedGetters = Object.create(null);\n  this._modules = new ModuleCollection(options);\n  this._modulesNamespaceMap = Object.create(null);\n  this._subscribers = [];\n  this._watcherVM = new Vue();\n  this._makeLocalGettersCache = Object.create(null);\n\n  // bind commit and dispatch to self\n  var store = this;\n  var ref = this;\n  var dispatch = ref.dispatch;\n  var commit = ref.commit;\n  this.dispatch = function boundDispatch (type, payload) {\n    return dispatch.call(store, type, payload)\n  };\n  this.commit = function boundCommit (type, payload, options) {\n    return commit.call(store, type, payload, options)\n  };\n\n  // strict mode\n  this.strict = strict;\n\n  var state = this._modules.root.state;\n\n  // init root module.\n  // this also recursively registers all sub-modules\n  // and collects all module getters inside this._wrappedGetters\n  installModule(this, state, [], this._modules.root);\n\n  // initialize the store vm, which is responsible for the reactivity\n  // (also registers _wrappedGetters as computed properties)\n  resetStoreVM(this, state);\n\n  // apply plugins\n  plugins.forEach(function (plugin) { return plugin(this$1); });\n\n  var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;\n  if (useDevtools) {\n    devtoolPlugin(this);\n  }\n};\n\nvar prototypeAccessors$1 = { state: { configurable: true } };\n\nprototypeAccessors$1.state.get = function () {\n  return this._vm._data.$$state\n};\n\nprototypeAccessors$1.state.set = function (v) {\n  if ((true)) {\n    assert(false, \"use store.replaceState() to explicit replace store state.\");\n  }\n};\n\nStore.prototype.commit = function commit (_type, _payload, _options) {\n    var this$1 = this;\n\n  // check object-style commit\n  var ref = unifyObjectStyle(_type, _payload, _options);\n    var type = ref.type;\n    var payload = ref.payload;\n    var options = ref.options;\n\n  var mutation = { type: type, payload: payload };\n  var entry = this._mutations[type];\n  if (!entry) {\n    if ((true)) {\n      console.error((\"[vuex] unknown mutation type: \" + type));\n    }\n    return\n  }\n  this._withCommit(function () {\n    entry.forEach(function commitIterator (handler) {\n      handler(payload);\n    });\n  });\n\n  this._subscribers\n    .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n    .forEach(function (sub) { return sub(mutation, this$1.state); });\n\n  if (\n    ( true) &&\n    options && options.silent\n  ) {\n    console.warn(\n      \"[vuex] mutation type: \" + type + \". Silent option has been removed. \" +\n      'Use the filter functionality in the vue-devtools'\n    );\n  }\n};\n\nStore.prototype.dispatch = function dispatch (_type, _payload) {\n    var this$1 = this;\n\n  // check object-style dispatch\n  var ref = unifyObjectStyle(_type, _payload);\n    var type = ref.type;\n    var payload = ref.payload;\n\n  var action = { type: type, payload: payload };\n  var entry = this._actions[type];\n  if (!entry) {\n    if ((true)) {\n      console.error((\"[vuex] unknown action type: \" + type));\n    }\n    return\n  }\n\n  try {\n    this._actionSubscribers\n      .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n      .filter(function (sub) { return sub.before; })\n      .forEach(function (sub) { return sub.before(action, this$1.state); });\n  } catch (e) {\n    if ((true)) {\n      console.warn(\"[vuex] error in before action subscribers: \");\n      console.error(e);\n    }\n  }\n\n  var result = entry.length > 1\n    ? Promise.all(entry.map(function (handler) { return handler(payload); }))\n    : entry[0](payload);\n\n  return new Promise(function (resolve, reject) {\n    result.then(function (res) {\n      try {\n        this$1._actionSubscribers\n          .filter(function (sub) { return sub.after; })\n          .forEach(function (sub) { return sub.after(action, this$1.state); });\n      } catch (e) {\n        if ((true)) {\n          console.warn(\"[vuex] error in after action subscribers: \");\n          console.error(e);\n        }\n      }\n      resolve(res);\n    }, function (error) {\n      try {\n        this$1._actionSubscribers\n          .filter(function (sub) { return sub.error; })\n          .forEach(function (sub) { return sub.error(action, this$1.state, error); });\n      } catch (e) {\n        if ((true)) {\n          console.warn(\"[vuex] error in error action subscribers: \");\n          console.error(e);\n        }\n      }\n      reject(error);\n    });\n  })\n};\n\nStore.prototype.subscribe = function subscribe (fn, options) {\n  return genericSubscribe(fn, this._subscribers, options)\n};\n\nStore.prototype.subscribeAction = function subscribeAction (fn, options) {\n  var subs = typeof fn === 'function' ? { before: fn } : fn;\n  return genericSubscribe(subs, this._actionSubscribers, options)\n};\n\nStore.prototype.watch = function watch (getter, cb, options) {\n    var this$1 = this;\n\n  if ((true)) {\n    assert(typeof getter === 'function', \"store.watch only accepts a function.\");\n  }\n  return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)\n};\n\nStore.prototype.replaceState = function replaceState (state) {\n    var this$1 = this;\n\n  this._withCommit(function () {\n    this$1._vm._data.$$state = state;\n  });\n};\n\nStore.prototype.registerModule = function registerModule (path, rawModule, options) {\n    if ( options === void 0 ) options = {};\n\n  if (typeof path === 'string') { path = [path]; }\n\n  if ((true)) {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n    assert(path.length > 0, 'cannot register the root module by using registerModule.');\n  }\n\n  this._modules.register(path, rawModule);\n  installModule(this, this.state, path, this._modules.get(path), options.preserveState);\n  // reset store to update getters...\n  resetStoreVM(this, this.state);\n};\n\nStore.prototype.unregisterModule = function unregisterModule (path) {\n    var this$1 = this;\n\n  if (typeof path === 'string') { path = [path]; }\n\n  if ((true)) {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n  }\n\n  this._modules.unregister(path);\n  this._withCommit(function () {\n    var parentState = getNestedState(this$1.state, path.slice(0, -1));\n    Vue.delete(parentState, path[path.length - 1]);\n  });\n  resetStore(this);\n};\n\nStore.prototype.hasModule = function hasModule (path) {\n  if (typeof path === 'string') { path = [path]; }\n\n  if ((true)) {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n  }\n\n  return this._modules.isRegistered(path)\n};\n\nStore.prototype.hotUpdate = function hotUpdate (newOptions) {\n  this._modules.update(newOptions);\n  resetStore(this, true);\n};\n\nStore.prototype._withCommit = function _withCommit (fn) {\n  var committing = this._committing;\n  this._committing = true;\n  fn();\n  this._committing = committing;\n};\n\nObject.defineProperties( Store.prototype, prototypeAccessors$1 );\n\nfunction genericSubscribe (fn, subs, options) {\n  if (subs.indexOf(fn) < 0) {\n    options && options.prepend\n      ? subs.unshift(fn)\n      : subs.push(fn);\n  }\n  return function () {\n    var i = subs.indexOf(fn);\n    if (i > -1) {\n      subs.splice(i, 1);\n    }\n  }\n}\n\nfunction resetStore (store, hot) {\n  store._actions = Object.create(null);\n  store._mutations = Object.create(null);\n  store._wrappedGetters = Object.create(null);\n  store._modulesNamespaceMap = Object.create(null);\n  var state = store.state;\n  // init all modules\n  installModule(store, state, [], store._modules.root, true);\n  // reset vm\n  resetStoreVM(store, state, hot);\n}\n\nfunction resetStoreVM (store, state, hot) {\n  var oldVm = store._vm;\n\n  // bind store public getters\n  store.getters = {};\n  // reset local getters cache\n  store._makeLocalGettersCache = Object.create(null);\n  var wrappedGetters = store._wrappedGetters;\n  var computed = {};\n  forEachValue(wrappedGetters, function (fn, key) {\n    // use computed to leverage its lazy-caching mechanism\n    // direct inline function use will lead to closure preserving oldVm.\n    // using partial to return function with only arguments preserved in closure environment.\n    computed[key] = partial(fn, store);\n    Object.defineProperty(store.getters, key, {\n      get: function () { return store._vm[key]; },\n      enumerable: true // for local getters\n    });\n  });\n\n  // use a Vue instance to store the state tree\n  // suppress warnings just in case the user has added\n  // some funky global mixins\n  var silent = Vue.config.silent;\n  Vue.config.silent = true;\n  store._vm = new Vue({\n    data: {\n      $$state: state\n    },\n    computed: computed\n  });\n  Vue.config.silent = silent;\n\n  // enable strict mode for new vm\n  if (store.strict) {\n    enableStrictMode(store);\n  }\n\n  if (oldVm) {\n    if (hot) {\n      // dispatch changes in all subscribed watchers\n      // to force getter re-evaluation for hot reloading.\n      store._withCommit(function () {\n        oldVm._data.$$state = null;\n      });\n    }\n    Vue.nextTick(function () { return oldVm.$destroy(); });\n  }\n}\n\nfunction installModule (store, rootState, path, module, hot) {\n  var isRoot = !path.length;\n  var namespace = store._modules.getNamespace(path);\n\n  // register in namespace map\n  if (module.namespaced) {\n    if (store._modulesNamespaceMap[namespace] && (\"staging\" !== 'production')) {\n      console.error((\"[vuex] duplicate namespace \" + namespace + \" for the namespaced module \" + (path.join('/'))));\n    }\n    store._modulesNamespaceMap[namespace] = module;\n  }\n\n  // set state\n  if (!isRoot && !hot) {\n    var parentState = getNestedState(rootState, path.slice(0, -1));\n    var moduleName = path[path.length - 1];\n    store._withCommit(function () {\n      if ((true)) {\n        if (moduleName in parentState) {\n          console.warn(\n            (\"[vuex] state field \\\"\" + moduleName + \"\\\" was overridden by a module with the same name at \\\"\" + (path.join('.')) + \"\\\"\")\n          );\n        }\n      }\n      Vue.set(parentState, moduleName, module.state);\n    });\n  }\n\n  var local = module.context = makeLocalContext(store, namespace, path);\n\n  module.forEachMutation(function (mutation, key) {\n    var namespacedType = namespace + key;\n    registerMutation(store, namespacedType, mutation, local);\n  });\n\n  module.forEachAction(function (action, key) {\n    var type = action.root ? key : namespace + key;\n    var handler = action.handler || action;\n    registerAction(store, type, handler, local);\n  });\n\n  module.forEachGetter(function (getter, key) {\n    var namespacedType = namespace + key;\n    registerGetter(store, namespacedType, getter, local);\n  });\n\n  module.forEachChild(function (child, key) {\n    installModule(store, rootState, path.concat(key), child, hot);\n  });\n}\n\n/**\n * make localized dispatch, commit, getters and state\n * if there is no namespace, just use root ones\n */\nfunction makeLocalContext (store, namespace, path) {\n  var noNamespace = namespace === '';\n\n  var local = {\n    dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n      var args = unifyObjectStyle(_type, _payload, _options);\n      var payload = args.payload;\n      var options = args.options;\n      var type = args.type;\n\n      if (!options || !options.root) {\n        type = namespace + type;\n        if (( true) && !store._actions[type]) {\n          console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n          return\n        }\n      }\n\n      return store.dispatch(type, payload)\n    },\n\n    commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n      var args = unifyObjectStyle(_type, _payload, _options);\n      var payload = args.payload;\n      var options = args.options;\n      var type = args.type;\n\n      if (!options || !options.root) {\n        type = namespace + type;\n        if (( true) && !store._mutations[type]) {\n          console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n          return\n        }\n      }\n\n      store.commit(type, payload, options);\n    }\n  };\n\n  // getters and state object must be gotten lazily\n  // because they will be changed by vm update\n  Object.defineProperties(local, {\n    getters: {\n      get: noNamespace\n        ? function () { return store.getters; }\n        : function () { return makeLocalGetters(store, namespace); }\n    },\n    state: {\n      get: function () { return getNestedState(store.state, path); }\n    }\n  });\n\n  return local\n}\n\nfunction makeLocalGetters (store, namespace) {\n  if (!store._makeLocalGettersCache[namespace]) {\n    var gettersProxy = {};\n    var splitPos = namespace.length;\n    Object.keys(store.getters).forEach(function (type) {\n      // skip if the target getter is not match this namespace\n      if (type.slice(0, splitPos) !== namespace) { return }\n\n      // extract local getter type\n      var localType = type.slice(splitPos);\n\n      // Add a port to the getters proxy.\n      // Define as getter property because\n      // we do not want to evaluate the getters in this time.\n      Object.defineProperty(gettersProxy, localType, {\n        get: function () { return store.getters[type]; },\n        enumerable: true\n      });\n    });\n    store._makeLocalGettersCache[namespace] = gettersProxy;\n  }\n\n  return store._makeLocalGettersCache[namespace]\n}\n\nfunction registerMutation (store, type, handler, local) {\n  var entry = store._mutations[type] || (store._mutations[type] = []);\n  entry.push(function wrappedMutationHandler (payload) {\n    handler.call(store, local.state, payload);\n  });\n}\n\nfunction registerAction (store, type, handler, local) {\n  var entry = store._actions[type] || (store._actions[type] = []);\n  entry.push(function wrappedActionHandler (payload) {\n    var res = handler.call(store, {\n      dispatch: local.dispatch,\n      commit: local.commit,\n      getters: local.getters,\n      state: local.state,\n      rootGetters: store.getters,\n      rootState: store.state\n    }, payload);\n    if (!isPromise(res)) {\n      res = Promise.resolve(res);\n    }\n    if (store._devtoolHook) {\n      return res.catch(function (err) {\n        store._devtoolHook.emit('vuex:error', err);\n        throw err\n      })\n    } else {\n      return res\n    }\n  });\n}\n\nfunction registerGetter (store, type, rawGetter, local) {\n  if (store._wrappedGetters[type]) {\n    if ((true)) {\n      console.error((\"[vuex] duplicate getter key: \" + type));\n    }\n    return\n  }\n  store._wrappedGetters[type] = function wrappedGetter (store) {\n    return rawGetter(\n      local.state, // local state\n      local.getters, // local getters\n      store.state, // root state\n      store.getters // root getters\n    )\n  };\n}\n\nfunction enableStrictMode (store) {\n  store._vm.$watch(function () { return this._data.$$state }, function () {\n    if ((true)) {\n      assert(store._committing, \"do not mutate vuex store state outside mutation handlers.\");\n    }\n  }, { deep: true, sync: true });\n}\n\nfunction getNestedState (state, path) {\n  return path.reduce(function (state, key) { return state[key]; }, state)\n}\n\nfunction unifyObjectStyle (type, payload, options) {\n  if (isObject(type) && type.type) {\n    options = payload;\n    payload = type;\n    type = type.type;\n  }\n\n  if ((true)) {\n    assert(typeof type === 'string', (\"expects string as the type, but found \" + (typeof type) + \".\"));\n  }\n\n  return { type: type, payload: payload, options: options }\n}\n\nfunction install (_Vue) {\n  if (Vue && _Vue === Vue) {\n    if ((true)) {\n      console.error(\n        '[vuex] already installed. Vue.use(Vuex) should be called only once.'\n      );\n    }\n    return\n  }\n  Vue = _Vue;\n  applyMixin(Vue);\n}\n\n/**\n * Reduce the code which written in Vue.js for getting the state.\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.\n * @param {Object}\n */\nvar mapState = normalizeNamespace(function (namespace, states) {\n  var res = {};\n  if (( true) && !isValidMap(states)) {\n    console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(states).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedState () {\n      var state = this.$store.state;\n      var getters = this.$store.getters;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapState', namespace);\n        if (!module) {\n          return\n        }\n        state = module.context.state;\n        getters = module.context.getters;\n      }\n      return typeof val === 'function'\n        ? val.call(this, state, getters)\n        : state[val]\n    };\n    // mark vuex getter for devtools\n    res[key].vuex = true;\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for committing the mutation\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapMutations = normalizeNamespace(function (namespace, mutations) {\n  var res = {};\n  if (( true) && !isValidMap(mutations)) {\n    console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(mutations).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedMutation () {\n      var args = [], len = arguments.length;\n      while ( len-- ) args[ len ] = arguments[ len ];\n\n      // Get the commit method from store\n      var commit = this.$store.commit;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);\n        if (!module) {\n          return\n        }\n        commit = module.context.commit;\n      }\n      return typeof val === 'function'\n        ? val.apply(this, [commit].concat(args))\n        : commit.apply(this.$store, [val].concat(args))\n    };\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for getting the getters\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} getters\n * @return {Object}\n */\nvar mapGetters = normalizeNamespace(function (namespace, getters) {\n  var res = {};\n  if (( true) && !isValidMap(getters)) {\n    console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(getters).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    // The namespace has been mutated by normalizeNamespace\n    val = namespace + val;\n    res[key] = function mappedGetter () {\n      if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {\n        return\n      }\n      if (( true) && !(val in this.$store.getters)) {\n        console.error((\"[vuex] unknown getter: \" + val));\n        return\n      }\n      return this.$store.getters[val]\n    };\n    // mark vuex getter for devtools\n    res[key].vuex = true;\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for dispatch the action\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapActions = normalizeNamespace(function (namespace, actions) {\n  var res = {};\n  if (( true) && !isValidMap(actions)) {\n    console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(actions).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedAction () {\n      var args = [], len = arguments.length;\n      while ( len-- ) args[ len ] = arguments[ len ];\n\n      // get dispatch function from store\n      var dispatch = this.$store.dispatch;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapActions', namespace);\n        if (!module) {\n          return\n        }\n        dispatch = module.context.dispatch;\n      }\n      return typeof val === 'function'\n        ? val.apply(this, [dispatch].concat(args))\n        : dispatch.apply(this.$store, [val].concat(args))\n    };\n  });\n  return res\n});\n\n/**\n * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object\n * @param {String} namespace\n * @return {Object}\n */\nvar createNamespacedHelpers = function (namespace) { return ({\n  mapState: mapState.bind(null, namespace),\n  mapGetters: mapGetters.bind(null, namespace),\n  mapMutations: mapMutations.bind(null, namespace),\n  mapActions: mapActions.bind(null, namespace)\n}); };\n\n/**\n * Normalize the map\n * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]\n * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]\n * @param {Array|Object} map\n * @return {Object}\n */\nfunction normalizeMap (map) {\n  if (!isValidMap(map)) {\n    return []\n  }\n  return Array.isArray(map)\n    ? map.map(function (key) { return ({ key: key, val: key }); })\n    : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })\n}\n\n/**\n * Validate whether given map is valid or not\n * @param {*} map\n * @return {Boolean}\n */\nfunction isValidMap (map) {\n  return Array.isArray(map) || isObject(map)\n}\n\n/**\n * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.\n * @param {Function} fn\n * @return {Function}\n */\nfunction normalizeNamespace (fn) {\n  return function (namespace, map) {\n    if (typeof namespace !== 'string') {\n      map = namespace;\n      namespace = '';\n    } else if (namespace.charAt(namespace.length - 1) !== '/') {\n      namespace += '/';\n    }\n    return fn(namespace, map)\n  }\n}\n\n/**\n * Search a special module from store by namespace. if module not exist, print error message.\n * @param {Object} store\n * @param {String} helper\n * @param {String} namespace\n * @return {Object}\n */\nfunction getModuleByNamespace (store, helper, namespace) {\n  var module = store._modulesNamespaceMap[namespace];\n  if (( true) && !module) {\n    console.error((\"[vuex] module namespace not found in \" + helper + \"(): \" + namespace));\n  }\n  return module\n}\n\n// Credits: borrowed code from fcomb/redux-logger\n\nfunction createLogger (ref) {\n  if ( ref === void 0 ) ref = {};\n  var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;\n  var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };\n  var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };\n  var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };\n  var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };\n  var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };\n  var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;\n  var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;\n  var logger = ref.logger; if ( logger === void 0 ) logger = console;\n\n  return function (store) {\n    var prevState = deepCopy(store.state);\n\n    if (typeof logger === 'undefined') {\n      return\n    }\n\n    if (logMutations) {\n      store.subscribe(function (mutation, state) {\n        var nextState = deepCopy(state);\n\n        if (filter(mutation, prevState, nextState)) {\n          var formattedTime = getFormattedTime();\n          var formattedMutation = mutationTransformer(mutation);\n          var message = \"mutation \" + (mutation.type) + formattedTime;\n\n          startMessage(logger, message, collapsed);\n          logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));\n          logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);\n          logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));\n          endMessage(logger);\n        }\n\n        prevState = nextState;\n      });\n    }\n\n    if (logActions) {\n      store.subscribeAction(function (action, state) {\n        if (actionFilter(action, state)) {\n          var formattedTime = getFormattedTime();\n          var formattedAction = actionTransformer(action);\n          var message = \"action \" + (action.type) + formattedTime;\n\n          startMessage(logger, message, collapsed);\n          logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);\n          endMessage(logger);\n        }\n      });\n    }\n  }\n}\n\nfunction startMessage (logger, message, collapsed) {\n  var startMessage = collapsed\n    ? logger.groupCollapsed\n    : logger.group;\n\n  // render\n  try {\n    startMessage.call(logger, message);\n  } catch (e) {\n    logger.log(message);\n  }\n}\n\nfunction endMessage (logger) {\n  try {\n    logger.groupEnd();\n  } catch (e) {\n    logger.log('—— log end ——');\n  }\n}\n\nfunction getFormattedTime () {\n  var time = new Date();\n  return (\" @ \" + (pad(time.getHours(), 2)) + \":\" + (pad(time.getMinutes(), 2)) + \":\" + (pad(time.getSeconds(), 2)) + \".\" + (pad(time.getMilliseconds(), 3)))\n}\n\nfunction repeat (str, times) {\n  return (new Array(times + 1)).join(str)\n}\n\nfunction pad (num, maxLength) {\n  return repeat('0', maxLength - num.toString().length) + num\n}\n\nvar index = {\n  Store: Store,\n  install: install,\n  version: '3.6.2',\n  mapState: mapState,\n  mapMutations: mapMutations,\n  mapGetters: mapGetters,\n  mapActions: mapActions,\n  createNamespacedHelpers: createNamespacedHelpers,\n  createLogger: createLogger\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (index);\n\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/vuex/dist/vuex.esm.js?");

/***/ }),

/***/ "./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack:///(webpack)/buildin/global.js?");

/***/ })

}]);