/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunkbos_core"] = self["webpackChunkbos_core"] || []).push([[768],{

/***/ "./src/actions/doActions.ts":
/*!**********************************!*\
  !*** ./src/actions/doActions.ts ***!
  \**********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   doAction: function() { return /* binding */ doAction; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _sysActions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sysActions */ \"./src/actions/sysActions.ts\");\n/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type */ \"./src/actions/type.ts\");\n\n\n\nvar MAPPER = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_0___default())([[_type__WEBPACK_IMPORTED_MODULE_2__.SHOW_FORM, _sysActions__WEBPACK_IMPORTED_MODULE_1__.showForm], [_type__WEBPACK_IMPORTED_MODULE_2__.F5_REFRESH, _sysActions__WEBPACK_IMPORTED_MODULE_1__.f5Refresh], [_type__WEBPACK_IMPORTED_MODULE_2__.SHOW_CONFIRM, _sysActions__WEBPACK_IMPORTED_MODULE_1__.showConfirm], [_type__WEBPACK_IMPORTED_MODULE_2__.SHOW_ERR_MSG, _sysActions__WEBPACK_IMPORTED_MODULE_1__.showErrMsg], [_type__WEBPACK_IMPORTED_MODULE_2__.SHOW_MESSAGE, _sysActions__WEBPACK_IMPORTED_MODULE_1__.showSysMessage], [_type__WEBPACK_IMPORTED_MODULE_2__.SHOW_NOTIFICATION_MSG, _sysActions__WEBPACK_IMPORTED_MODULE_1__.showNotificationMsg], [_type__WEBPACK_IMPORTED_MODULE_2__.SEND_DYNAMIC_FORM_ACTION, _sysActions__WEBPACK_IMPORTED_MODULE_1__.sendDynamicFormAction], [_type__WEBPACK_IMPORTED_MODULE_2__.SET_HOME_CONFIG, _sysActions__WEBPACK_IMPORTED_MODULE_1__.setHomeConfig], [_type__WEBPACK_IMPORTED_MODULE_2__.SET_INTERVAL, _sysActions__WEBPACK_IMPORTED_MODULE_1__.setInterval], [_type__WEBPACK_IMPORTED_MODULE_2__.SET_FORM_STATUS, _sysActions__WEBPACK_IMPORTED_MODULE_1__.setFormStatus], [_type__WEBPACK_IMPORTED_MODULE_2__.CLEAN_FIELD_TIPS, _sysActions__WEBPACK_IMPORTED_MODULE_1__.cleanFieldTips], [_type__WEBPACK_IMPORTED_MODULE_2__.UPDATE, _sysActions__WEBPACK_IMPORTED_MODULE_1__.update], [_type__WEBPACK_IMPORTED_MODULE_2__.INVOKE_CONTROL_METHOD, _sysActions__WEBPACK_IMPORTED_MODULE_1__.invokeContorlMethod], [_type__WEBPACK_IMPORTED_MODULE_2__.EXECUTE_CLIENT_COMMAND, _sysActions__WEBPACK_IMPORTED_MODULE_1__.executeClientCommand], [_type__WEBPACK_IMPORTED_MODULE_2__.SET_CAPTION, _sysActions__WEBPACK_IMPORTED_MODULE_1__.setCaption], [_type__WEBPACK_IMPORTED_MODULE_2__.SHOW_DIALOG, _sysActions__WEBPACK_IMPORTED_MODULE_1__.showDialog], [_type__WEBPACK_IMPORTED_MODULE_2__.UPDATE_META_DATA, _sysActions__WEBPACK_IMPORTED_MODULE_1__.updateMetaData], [_type__WEBPACK_IMPORTED_MODULE_2__.SET_VISIBLE, _sysActions__WEBPACK_IMPORTED_MODULE_1__.setVisible], [_type__WEBPACK_IMPORTED_MODULE_2__.SET_CSRF, _sysActions__WEBPACK_IMPORTED_MODULE_1__.setCsrf], [_type__WEBPACK_IMPORTED_MODULE_2__.SET_PK_ID, _sysActions__WEBPACK_IMPORTED_MODULE_1__.setPkId], [_type__WEBPACK_IMPORTED_MODULE_2__.OPEN_URL, _sysActions__WEBPACK_IMPORTED_MODULE_1__.openUrl], [_type__WEBPACK_IMPORTED_MODULE_2__.REFRESH_FORM_META_DATA, _sysActions__WEBPACK_IMPORTED_MODULE_1__.refreshFormMetaData], [_type__WEBPACK_IMPORTED_MODULE_2__.CLOSE_FORM, _sysActions__WEBPACK_IMPORTED_MODULE_1__.closeWindow], [_type__WEBPACK_IMPORTED_MODULE_2__.SET_CONTROL_STATUS, _sysActions__WEBPACK_IMPORTED_MODULE_1__.setControlStatus]]);\n\n/**\n * 执行指令,指令调度中心\n * @param ac 返回的指令内容\n * @param pageId\n */\nfunction doAction(action, param, pageId) {\n  // console.log(action, pageId)\n  if (MAPPER.get(action)) {\n    var _MAPPER$get;\n    (_MAPPER$get = MAPPER.get(action)) === null || _MAPPER$get === void 0 || _MAPPER$get({\n      pageId: pageId,\n      param: param\n    });\n  } else {\n    console.warn('do action', action, param);\n  }\n}\n\n//# sourceURL=webpack://bos-core/./src/actions/doActions.ts?");

/***/ }),

/***/ "./src/actions/fetchData.ts":
/*!**********************************!*\
  !*** ./src/actions/fetchData.ts ***!
  \**********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   batchInvokeAction: function() { return /* binding */ batchInvokeAction; },\n/* harmony export */   getConfig: function() { return /* binding */ getConfig; },\n/* harmony export */   getMetaData: function() { return /* binding */ getMetaData; },\n/* harmony export */   getUserLanguage: function() { return /* binding */ getUserLanguage; },\n/* harmony export */   releaseRootPage: function() { return /* binding */ releaseRootPage; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.promise.js */ \"../../node_modules/core-js/modules/es.promise.js\");\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_24__);\n/* harmony import */ var _ajax__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @/ajax */ \"./src/ajax/index.js\");\n/* harmony import */ var _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @/store/GlobalData */ \"./src/store/GlobalData.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n/* harmony import */ var _doActions__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./doActions */ \"./src/actions/doActions.ts\");\n/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./type */ \"./src/actions/type.ts\");\n/* harmony import */ var _ajax_signature__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../ajax/signature */ \"./src/ajax/signature.ts\");\n/* harmony import */ var _userAction__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./userAction */ \"./src/actions/userAction.ts\");\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * 请求用户语言信息\n */\nfunction getUserLanguage() {\n  return _getUserLanguage.apply(this, arguments);\n}\n/**\n * 释放根节点表单\n */\nfunction _getUserLanguage() {\n  _getUserLanguage = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_8__[\"default\"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9___default().mark(function _callee() {\n    var url, res;\n    return _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9___default().wrap(function _callee$(_context5) {\n      while (1) switch (_context5.prev = _context5.next) {\n        case 0:\n          url = 'getUserLanguage.do';\n          _context5.next = 3;\n          return (0,_ajax__WEBPACK_IMPORTED_MODULE_25__.get)(url, {});\n        case 3:\n          res = _context5.sent;\n          return _context5.abrupt(\"return\", res.data);\n        case 5:\n        case \"end\":\n          return _context5.stop();\n      }\n    }, _callee);\n  }));\n  return _getUserLanguage.apply(this, arguments);\n}\nfunction releaseRootPage() {\n  var rootId = _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].get(_type__WEBPACK_IMPORTED_MODULE_29__.ROOT_PAGE);\n  if (!rootId) return;\n  var url = \"form/releaseRootPage.do?rootpage=\".concat(rootId, \"&bypageid=false\");\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].del(_type__WEBPACK_IMPORTED_MODULE_29__.ROOT_PAGE);\n  (0,_ajax__WEBPACK_IMPORTED_MODULE_25__.get)(url, {}).catch(function (err) {\n    console.log('releaseRootPage', rootId, err);\n  });\n}\n/**\n * 获取配置信息\n * @param args\n * @returns\n */\nfunction getConfig(_x) {\n  return _getConfig.apply(this, arguments);\n}\n\n// 对数据保存并格式化META数据\nfunction _getConfig() {\n  _getConfig = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_8__[\"default\"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9___default().mark(function _callee2(args) {\n    var encode, url, res, csrf, _res$data, _pageId, parentPageId, lang, parentConfig;\n    return _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9___default().wrap(function _callee2$(_context6) {\n      while (1) switch (_context6.prev = _context6.next) {\n        case 0:\n          args = _objectSpread(_objectSpread({}, args), {}, {\n            flag: (0,_utils__WEBPACK_IMPORTED_MODULE_27__.getRandom)()\n          });\n          encode = _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_20___default()(args);\n          url = 'form/getConfig.do';\n          _context6.prev = 3;\n          _context6.next = 6;\n          return (0,_ajax__WEBPACK_IMPORTED_MODULE_25__.get)(url, {\n            params: encode,\n            random: (0,_utils__WEBPACK_IMPORTED_MODULE_27__.getRandomValues)()\n          });\n        case 6:\n          res = _context6.sent;\n          csrf = res.headers['kd-csrf-token'];\n          (0,_ajax_signature__WEBPACK_IMPORTED_MODULE_30__.fetchClientServerDiffTime)(res);\n          _res$data = res.data, _pageId = _res$data.pageId, parentPageId = _res$data.parentPageId, lang = _res$data.lang;\n          if (parentPageId) {\n            parentConfig = _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].getData(parentPageId, 'config');\n            parentConfig.subPageId = _pageId;\n          }\n          // if (/^root/.test(pageId)) { // 根节点\n          _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].set(_type__WEBPACK_IMPORTED_MODULE_29__.GLOBAL_CRSF_TOKEN, csrf); // 保存请求token\n          _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].set(_type__WEBPACK_IMPORTED_MODULE_29__.ROOT_PAGE, _pageId); // 保存root page id\n          _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].set(_type__WEBPACK_IMPORTED_MODULE_29__.USER_LANGUAGE, lang); // 保存语言\n          // }\n          _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].setData(_pageId, 'config', res.data);\n          return _context6.abrupt(\"return\", res.data);\n        case 18:\n          _context6.prev = 18;\n          _context6.t0 = _context6[\"catch\"](3);\n          throw new Error(_context6.t0);\n        case 21:\n        case \"end\":\n          return _context6.stop();\n      }\n    }, _callee2, null, [[3, 18]]);\n  }));\n  return _getConfig.apply(this, arguments);\n}\nfunction setMetaAndDoAction(res, config) {\n  var _ref = config || {},\n    pageId = _ref.pageId,\n    openStyle = _ref.openStyle,\n    formId = _ref.formId,\n    parentPageId = _ref.parentPageId;\n  // 父节点，根据showType\n  var parentId = openStyle.showType === _type__WEBPACK_IMPORTED_MODULE_29__.SHOW_TYPE.InContainer ? openStyle.targetKey : '';\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].setData(pageId, 'meta', res);\n  // 必须在localstorage后面，formatMetaData会对数据扁平化处理\n  var newMeta = _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].formatMetaData(res, parentId, pageId);\n  // 根据showType控制是否弹窗\n  if (openStyle.showType === _type__WEBPACK_IMPORTED_MODULE_29__.SHOW_TYPE.Modal) {\n    // dialog弹窗\n    // 错误弹窗不处理\n    formId !== 'bos_error' && (0,_doActions__WEBPACK_IMPORTED_MODULE_28__.doAction)(_type__WEBPACK_IMPORTED_MODULE_29__.SHOW_DIALOG, newMeta, pageId);\n    // console.warn('ShowType:6 数据暂不处理', 'formId:', formId)\n  } else {\n    // console.log('setMetaAndDoAction', pageId)\n    openStyle.showType === _type__WEBPACK_IMPORTED_MODULE_29__.SHOW_TYPE.InContainer ? (0,_doActions__WEBPACK_IMPORTED_MODULE_28__.doAction)(_type__WEBPACK_IMPORTED_MODULE_29__.REFRESH_FORM_META_DATA, _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_19___default()(newMeta), parentPageId || pageId) // 发布最新数据\n    : (0,_doActions__WEBPACK_IMPORTED_MODULE_28__.doAction)(_type__WEBPACK_IMPORTED_MODULE_29__.UPDATE_META_DATA, _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_19___default()(newMeta), pageId); // 发布最新数据\n  }\n}\n\n/**\n * 获取元数据信息\n * @param pageId\n * @returns\n */\nfunction getMetaData(_x2) {\n  return _getMetaData.apply(this, arguments);\n}\n\n/**\n * 请求Batch Invoke\n * @param args 队列内的参数 pageId, url, params\n */\nfunction _getMetaData() {\n  _getMetaData = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_8__[\"default\"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9___default().mark(function _callee3(pageId) {\n    var url, config, version, formId, ver, meta, res, params, _res, cache;\n    return _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_9___default().wrap(function _callee3$(_context7) {\n      while (1) switch (_context7.prev = _context7.next) {\n        case 0:\n          url = 'nocode/getMetadata.do';\n          config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].getData(pageId, 'config');\n          version = config.version;\n          formId = config.formId.replace('bos.', ''); // 父节点\n          // const parentId = openStyle.showType === 3 ? openStyle.targetKey : ''\n          // 版本号\n          ver = window.localStorage.getItem(\"bos-core-\".concat(formId, \"-v\"));\n          if (!(ver === version)) {\n            _context7.next = 16;\n            break;\n          }\n          _context7.next = 8;\n          return window.localStorage.getItem(\"bos-core-\".concat(formId));\n        case 8:\n          _context7.t0 = _context7.sent;\n          if (_context7.t0) {\n            _context7.next = 11;\n            break;\n          }\n          _context7.t0 = '';\n        case 11:\n          meta = _context7.t0;\n          res = JSON.parse(meta);\n          setMetaAndDoAction(res, config);\n          _context7.next = 29;\n          break;\n        case 16:\n          _context7.prev = 16;\n          params = {\n            fid: formId,\n            version: version\n          };\n          _context7.next = 20;\n          return (0,_ajax__WEBPACK_IMPORTED_MODULE_25__.get)(url, params);\n        case 20:\n          _res = _context7.sent;\n          cache = _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_20___default()(_res.data); // setMetaAndDoAction会对数据格式重新定义，所以cache需要先定义\n          setMetaAndDoAction(_res.data, config);\n          _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_24___default().all([\n          // 转成异步保存，以捕获异常\n          window.localStorage.setItem(\"bos-core-\".concat(formId), cache), window.localStorage.setItem(\"bos-core-\".concat(formId, \"-v\"), version)]).then(function () {\n            (0,_utils__WEBPACK_IMPORTED_MODULE_27__.dispatchCustomEvent)('storage'); // 通知form数据有更新\n          }).catch(function (err) {\n            // localStorage.setItem可能会报错，需要捕获异常，同时清空缓存\n            window.localStorage.clear();\n            console.error(err);\n          });\n          _context7.next = 29;\n          break;\n        case 26:\n          _context7.prev = 26;\n          _context7.t1 = _context7[\"catch\"](16);\n          throw new Error(_context7.t1);\n        case 29:\n        case \"end\":\n          return _context7.stop();\n      }\n    }, _callee3, null, [[16, 26]]);\n  }));\n  return _getMetaData.apply(this, arguments);\n}\nfunction batchInvoke(_ref2) {\n  var pageId = _ref2.pageId,\n    url = _ref2.url,\n    data = _ref2.data,\n    callback = _ref2.callback;\n  // console.log('batch invoke', pageId, url, params)\n  var pending = batchInvokeQueue.get(_type__WEBPACK_IMPORTED_MODULE_29__.AJAX_PENDING);\n  data.params = encodeURIComponent(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_20___default()(data.params)); // 参数加密\n  var start = Date.now();\n  (0,_ajax__WEBPACK_IMPORTED_MODULE_25__.post)(url, data).then(function (res) {\n    var actions = res.data;\n    actions.forEach(function (ac) {\n      return (0,_doActions__WEBPACK_IMPORTED_MODULE_28__.doAction)(ac.a, ac.p, pageId);\n    }); // 执行指令\n    pending.delete(pageId); // 将请求完的pageId移出队列\n    callback === null || callback === void 0 || callback(res, pageId);\n    // 埋点\n    (0,_userAction__WEBPACK_IMPORTED_MODULE_31__[\"default\"])(data, start);\n  }).catch(function (error) {\n    callback === null || callback === void 0 || callback(error, pageId);\n    throw new Error(error);\n  });\n}\n\n// 请求队列，在请求之前需要做相应判断\n// 相同pageId请求，合并请求参数\n// 当前请求列表有子页面时或当前页面正在请求时，不能发起请求\nvar batchInvokeQueue = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_21___default())().set(_type__WEBPACK_IMPORTED_MODULE_29__.AJAX_WAITING, new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_21___default())()) // 等待中，方便查询当前pageId请求\n.set(_type__WEBPACK_IMPORTED_MODULE_29__.AJAX_PENDING, new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_21___default())()); // 请求中，方便查询正在请求的pageId\n\n/**\n * 将batchInvoke请求放入wait队列\n * @param\n * @returns\n */\nfunction batchInvokeAction(_ref3) {\n  var _context, _context2;\n  var action = _ref3.action,\n    pageId = _ref3.pageId,\n    _ref3$controlId = _ref3.controlId,\n    controlId = _ref3$controlId === void 0 ? '' : _ref3$controlId,\n    _ref3$args = _ref3.args,\n    args = _ref3$args === void 0 ? [] : _ref3$args,\n    _ref3$postData = _ref3.postData,\n    postData = _ref3$postData === void 0 ? [] : _ref3$postData,\n    callback = _ref3.callback,\n    enforce = _ref3.enforce;\n  var form = _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].getData(pageId);\n  var _form$config = form.config,\n    appId = _form$config.appId,\n    subPageId = _form$config.subPageId;\n  var formId = form.config.formId.replace('bos.', '');\n  postData = postData.length > 0 ? postData : _store_GlobalData__WEBPACK_IMPORTED_MODULE_26__[\"default\"].getPostData(pageId);\n  var url = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_22___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_22___default()(_context2 = \"form/batchInvokeAction.do?appId=\".concat(appId, \"&f=\")).call(_context2, formId, \"&ac=\")).call(_context, action);\n  var param = {\n    key: controlId,\n    methodName: action,\n    args: args,\n    postData: postData\n  };\n  if (enforce) {\n    // 请求不排队发送\n    return batchInvoke({\n      pageId: pageId,\n      url: url,\n      data: {\n        pageId: pageId,\n        formId: formId,\n        params: [param]\n      },\n      callback: callback\n    });\n  }\n  var waiting = batchInvokeQueue.get(_type__WEBPACK_IMPORTED_MODULE_29__.AJAX_WAITING);\n  var pending = batchInvokeQueue.get(_type__WEBPACK_IMPORTED_MODULE_29__.AJAX_PENDING);\n  var waitItem = waiting.get(pageId);\n  var pendItem = pending.get(pageId);\n  if (!waitItem) {\n    var data = {\n      pageId: pageId,\n      formId: formId,\n      params: [param]\n    };\n    waiting.set(pageId, {\n      action: action,\n      pageId: pageId,\n      subPageId: subPageId,\n      controlId: controlId,\n      url: url,\n      data: data,\n      callback: callback\n    });\n  } else {\n    // 相同pageId请求\n    // const isWaiting = waitItem.controlId === controlId && waitItem.action === action\n    var isPending = pendItem && pendItem.controlId === controlId && pendItem.action === action;\n    if (isPending) {\n      var _context3, _context4;\n      // 当等待列表或请求列表内包含了相同page/控件/指令请求时，丢弃请求\n      console.warn(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_22___default()(_context3 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_22___default()(_context4 = \"\\u4E0A\\u6B21action\\u670D\\u52A1\\u5668\\u6CA1\\u6709\\u8FD4\\u56DE\\uFF0C\\u672C\\u6B21action\\u4E22\\u5F03:\".concat(pageId, \" : \")).call(_context4, controlId, \" : \")).call(_context3, action));\n      return false;\n    } else {\n      // 合并请求参数\n      waitItem.data.params.push(param);\n    }\n  }\n}\n\n/**\n * 每隔10ms轮询batch inoke队列内的请求\n * 自执行函数,setInterval比较耗性能\n */\n(function loop() {\n  _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_23___default()(function () {\n    var waiting = batchInvokeQueue.get(_type__WEBPACK_IMPORTED_MODULE_29__.AJAX_WAITING);\n    var pending = batchInvokeQueue.get(_type__WEBPACK_IMPORTED_MODULE_29__.AJAX_PENDING);\n    waiting.size > 0 && waiting.forEach(function (item, pageId) {\n      if (!pending.get(item.pageId) && !pending.get(item.subPageId)) {\n        // 当前请求列表有子页面时或当前页面正在请求时，不能发起请求\n        waiting.delete(pageId);\n        pending.set(item.pageId, item);\n        batchInvoke(item);\n      }\n    });\n    loop();\n  }, 10);\n})();\n\n//# sourceURL=webpack://bos-core/./src/actions/fetchData.ts?");

/***/ }),

/***/ "./src/actions/index.ts":
/*!******************************!*\
  !*** ./src/actions/index.ts ***!
  \******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_10__);\n\n\n\n\n\n\n\n\n\n\n\n/**\n * 指令中心类 - 管理控件指令\n * 控件指令通过发布订阅模式执行，主线程模式\n * @author cxf\n * @create 2022-08-15\n */\nvar Actions = /*#__PURE__*/function () {\n  // 指令队列\n  function Actions() {\n    (0,_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, Actions);\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, \"listener\", void 0);\n    // 监听者\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, \"instance\", void 0);\n    // 实例\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, \"taskQueue\", void 0);\n    this.listener = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n    this.taskQueue = [];\n  }\n\n  // 获取单例\n  (0,_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(Actions, [{\n    key: \"getInstance\",\n    value: function getInstance() {\n      if (!this.instance) {\n        this.instance = new Actions();\n        this.instance.run();\n      }\n      return this.instance;\n    }\n\n    /**\n     * 注册控件指令\n     * @param topic 关键字\n     * @param pageId 页面ID\n     * @param controlId 控件ID\n     * @param handle 所要执行的函数\n     */\n  }, {\n    key: \"regist\",\n    value: function regist(topic, pageId, controlId, handle) {\n      var _context;\n      // 主话题\n      var obj = this.listener.get(topic);\n      // 子话题, 页面ID+控件ID\n      var tag = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context = \"\".concat(pageId, \"-\")).call(_context, controlId);\n      if (!obj) {\n        var list = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())().set(tag, [handle]);\n        this.listener.set(topic, list);\n      } else {\n        var _context2;\n        var _list = obj.get(tag) || [];\n        obj.set(tag, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context2 = []).call(_context2, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_list), [handle]));\n        // this.listener.set(topic, obj)\n      }\n    }\n\n    /**\n     * 移除控件指令\n     * @param topic 订阅话题\n     * @param pageId 页面ID\n     * @param controlId 控件ID\n     * @param callback 所要移除的函数\n     */\n  }, {\n    key: \"remove\",\n    value: function remove(topic, pageId, controlId, callback) {\n      var _context3, _this$listener;\n      var tag = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context3 = \"\".concat(pageId, \"-\")).call(_context3, controlId);\n      var list = (_this$listener = this.listener) === null || _this$listener === void 0 || (_this$listener = _this$listener.get(topic)) === null || _this$listener === void 0 ? void 0 : _this$listener.get(tag);\n      if (list && list.length) {\n        _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_8___default()(list).call(list, _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9___default()(list).call(list, callback) >>> 0, 1);\n        // this.listener?.get(topic).delete(tag)\n      }\n    }\n\n    /**\n     * 发布话题内容\n     * @param topic 订阅话题\n     * @param param 参数\n     */\n  }, {\n    key: \"emit\",\n    value: function emit(topic, pageId, controlId, param) {\n      this.taskQueue.push({\n        topic: topic,\n        pageId: pageId,\n        controlId: controlId,\n        param: param\n      });\n    }\n    /**\n     * 发布话题内容\n     * @param topic 订阅话题\n     * @param param 参数\n     */\n  }, {\n    key: \"clean\",\n    value: function clean() {\n      this.listener = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n      this.taskQueue = [];\n    }\n\n    /**\n     * 循环执行队列内的指令\n     **/\n  }, {\n    key: \"run\",\n    value: function run() {\n      var _this = this;\n      _babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_10___default()(function () {\n        // this.taskQueue.length > 0 && this.taskQueue.forEach((item:QueueFace, index:number) => {\n        //   const { topic, pageId, controlId, param } = item\n        //   const tag:string = `${pageId}-${controlId}`\n        //   const list:any[] = this.listener.get(topic)?.get(tag)\n        //   if (list && list.length) {\n        //     list.forEach((handle:(info:any)=>void) => handle(param))\n        //     this.taskQueue.splice(index, 1) // 删除指令\n        //   }\n        // })\n        if (_this.taskQueue.length) {\n          var _context4, _this$listener$get;\n          var item = _this.taskQueue.shift(); // 用堆的思路，先进先出（先执行），取第一个\n          var _topic = item.topic,\n            _pageId = item.pageId,\n            _controlId = item.controlId,\n            _param = item.param;\n          var tag = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context4 = \"\".concat(_pageId, \"-\")).call(_context4, _controlId);\n          var list = (_this$listener$get = _this.listener.get(_topic)) === null || _this$listener$get === void 0 ? void 0 : _this$listener$get.get(tag);\n          if (list && list.length) {\n            // 有人监听\n            list.forEach(function (handle) {\n              return handle(_param);\n            });\n          } else {\n            _this.taskQueue.push(item); // 无人监听时，重新丢回队列尾部\n          }\n        }\n        // loop\n        _this.run();\n      }, 0);\n    }\n  }]);\n  return Actions;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (new Actions().getInstance());\n\n//# sourceURL=webpack://bos-core/./src/actions/index.ts?");

/***/ }),

/***/ "./src/actions/sysActions.ts":
/*!***********************************!*\
  !*** ./src/actions/sysActions.ts ***!
  \***********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   cleanFieldTips: function() { return /* binding */ cleanFieldTips; },\n/* harmony export */   closeWindow: function() { return /* binding */ closeWindow; },\n/* harmony export */   executeClientCommand: function() { return /* binding */ executeClientCommand; },\n/* harmony export */   f5Refresh: function() { return /* binding */ f5Refresh; },\n/* harmony export */   invokeContorlMethod: function() { return /* binding */ invokeContorlMethod; },\n/* harmony export */   openUrl: function() { return /* binding */ openUrl; },\n/* harmony export */   refreshFormMetaData: function() { return /* binding */ refreshFormMetaData; },\n/* harmony export */   sendDynamicFormAction: function() { return /* binding */ sendDynamicFormAction; },\n/* harmony export */   setCaption: function() { return /* binding */ setCaption; },\n/* harmony export */   setControlStatus: function() { return /* binding */ setControlStatus; },\n/* harmony export */   setCsrf: function() { return /* binding */ setCsrf; },\n/* harmony export */   setFormStatus: function() { return /* binding */ setFormStatus; },\n/* harmony export */   setHomeConfig: function() { return /* binding */ setHomeConfig; },\n/* harmony export */   setInterval: function() { return /* binding */ setInterval; },\n/* harmony export */   setPkId: function() { return /* binding */ setPkId; },\n/* harmony export */   setVisible: function() { return /* binding */ setVisible; },\n/* harmony export */   showConfirm: function() { return /* binding */ showConfirm; },\n/* harmony export */   showDialog: function() { return /* binding */ showDialog; },\n/* harmony export */   showErrMsg: function() { return /* binding */ showErrMsg; },\n/* harmony export */   showForm: function() { return /* binding */ showForm; },\n/* harmony export */   showNotificationMsg: function() { return /* binding */ showNotificationMsg; },\n/* harmony export */   showSysMessage: function() { return /* binding */ showSysMessage; },\n/* harmony export */   update: function() { return /* binding */ update; },\n/* harmony export */   updateMetaData: function() { return /* binding */ updateMetaData; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _fetchData__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./fetchData */ \"./src/actions/fetchData.ts\");\n/* harmony import */ var _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/store/GlobalData */ \"./src/store/GlobalData.ts\");\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../actions */ \"./src/actions/index.ts\");\n/* harmony import */ var _actions_type__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../actions/type */ \"./src/actions/type.ts\");\n/* harmony import */ var _doActions__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./doActions */ \"./src/actions/doActions.ts\");\n/* harmony import */ var _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n\n\n/**\n * 发布最新数据\n * @param args\n */\nfunction updateMetaData(args) {\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.UPDATE_META_DATA, args.param);\n}\n\n/**\n * 根据PAGE_ID发布最新数据\n * 需要使用Actions类的堆栈能力，以防组件未注册已经发送广播\n * @param args\n */\nfunction refreshFormMetaData(args) {\n  var pageId = args.pageId,\n    param = args.param;\n  _actions__WEBPACK_IMPORTED_MODULE_14__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.REFRESH_FORM_META_DATA, pageId, '', param);\n}\n\n/**\n * 显示form信息，包含getMetaData和batchInvoke(loaddata)\n * @param args\n */\nfunction showForm(args) {\n  var param = args.param;\n  console.log('show form', args);\n  param.forEach(function (item) {\n    _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].setData(item.pageId, 'config', item);\n    (0,_fetchData__WEBPACK_IMPORTED_MODULE_12__.getMetaData)(item.pageId);\n    (0,_fetchData__WEBPACK_IMPORTED_MODULE_12__.batchInvokeAction)({\n      action: 'loadData',\n      pageId: item.pageId\n    });\n  });\n}\nfunction showConfirm(args) {\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.SYSTEM_MESSAGE, {\n    type: _actions_type__WEBPACK_IMPORTED_MODULE_15__.SHOW_CONFIRM,\n    payload: args\n  });\n}\n/**\n * 根据showform指令，显示弹窗\n * @param args\n */\nfunction showDialog(args) {\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.SYSTEM_MESSAGE, {\n    type: _actions_type__WEBPACK_IMPORTED_MODULE_15__.SHOW_DIALOG,\n    payload: args\n  });\n}\n\n/**\n * 显示错误信息\n * @param args\n */\nfunction showErrMsg(args) {\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.SYSTEM_MESSAGE, {\n    type: _actions_type__WEBPACK_IMPORTED_MODULE_15__.SHOW_ERR_MSG,\n    payload: args\n  });\n}\n/**\n * 显示系统信息\n * @param args\n */\nfunction showSysMessage(args) {\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.SYSTEM_MESSAGE, {\n    type: _actions_type__WEBPACK_IMPORTED_MODULE_15__.SHOW_MESSAGE,\n    payload: args\n  });\n}\n\n/**\n * 显示提示信息\n * @param args\n */\nvar notifictionType = [0, 2, 1, 3];\nfunction showNotificationMsg(args) {\n  // console.log('showNotificationMsg', args)\n  var pageId = args.pageId,\n    param = args.param;\n  // 苍穹错误类型重新映射, 0：success, 2：warning, 1：error\n  var info = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(param).call(param, function (item) {\n    return _objectSpread(_objectSpread({}, item), {}, {\n      type: notifictionType[item.type]\n    });\n  });\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.SYSTEM_MESSAGE, {\n    type: _actions_type__WEBPACK_IMPORTED_MODULE_15__.SHOW_NOTIFICATION_MSG,\n    payload: {\n      pageId: pageId,\n      param: info\n    }\n  });\n}\n\n/**\n * 关闭表单\n * @param args\n */\nfunction closeWindow(args) {\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.SYSTEM_MESSAGE, {\n    type: _actions_type__WEBPACK_IMPORTED_MODULE_15__.CLOSE_FORM,\n    payload: args\n  });\n}\n\n/**\n * 异步返回结果，如：点击保存按钮返回结果\n * @param args\n */\nfunction sendDynamicFormAction(args) {\n  Array.isArray(args.param) && args.param.forEach(function (info) {\n    var actions = info.actions;\n    Array.isArray(actions) && actions.forEach(function (ac) {\n      (0,_doActions__WEBPACK_IMPORTED_MODULE_16__.doAction)(ac.a, ac.p, info.pageId);\n    });\n  });\n}\n/**\n * 设置系统版本指令\n * @param args\n */\nfunction setHomeConfig(args) {\n  // console.log('setHomeConfig', args)\n}\n\n/**\n * set head beat\n * @param args 参数\n */\nfunction setInterval(args) {\n  // console.log('setInterval', args)\n}\n/**\n * (服务端动态指令): 设置单据状态\n * @param args 参数\n */\nfunction setFormStatus(_ref) {\n  var pageId = _ref.pageId,\n    param = _ref.param;\n  var key = ['addNew', 'edit', 'view'][param[0]]; // 状态\n  var allPageId = _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].getAllPagesId(); // 所有表单的pageId\n  var config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].getData(pageId, 'config');\n  var showType = config.openStyle.showType;\n  config.status = key;\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].setData(pageId, 'config', config);\n  // 判断是否为父节点, showType 为 0|6\n  var isParent = showType === _actions_type__WEBPACK_IMPORTED_MODULE_15__.SHOW_TYPE.Modal || showType === _actions_type__WEBPACK_IMPORTED_MODULE_15__.SHOW_TYPE.Default;\n  // 遍历所有表单\n  if (isParent) {\n    allPageId.forEach(function (item) {\n      var conf = _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].getData(item, 'config');\n      // 过滤掉为6的子节点, 需要判断conf为空的情况\n      if (conf && (conf === null || conf === void 0 ? void 0 : conf.parentPageId) === pageId && conf.openStyle.showType !== _actions_type__WEBPACK_IMPORTED_MODULE_15__.SHOW_TYPE.Modal) {\n        conf.status = key;\n        _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].setData(item, 'config', conf);\n      }\n    });\n  } else {\n    // 为子节点时，同时更新父节点状态\n    var parentConfig = _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].getData(config === null || config === void 0 ? void 0 : config.parentPageId, 'config');\n    parentConfig.status = key;\n    _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].setData(config === null || config === void 0 ? void 0 : config.parentPageId, 'config', parentConfig);\n    // 标记状态为完成，\n    // 用于无代码平台调用batchInvoke时须onload之后才能执行\n    _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].setData(_store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_15__.ROOT_PAGE), 'loading', 'onload');\n  }\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_17__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.REFRESH_FORM_STATUS, isParent ? {\n    pageId: pageId,\n    param: param\n  } : {\n    pageId: config === null || config === void 0 ? void 0 : config.parentPageId,\n    param: param\n  });\n}\n\n/**\n * 根据pageId，清除当前页面的字段校验数据\n * @param args 参数pageId, param\n */\nfunction cleanFieldTips(args) {\n  // console.log('cleanFieldTips', args)\n}\n/**\n * 控制控件显示隐藏\n * @param args 参数\n */\nfunction setVisible(args) {\n  console.log('setVisible', args);\n}\n\n/**\n * 设置标题\n * @param args 参数\n */\nfunction setCaption(args) {\n  // console.log('setCaption', args)\n  var param = args.param;\n  document.title = param.args[0];\n}\n\n/**\n * 设置标题\n * @param args 参数\n */\nfunction setCsrf(args) {\n  console.log('setCsrf', args);\n  var pageId = args.pageId,\n    param = args.param;\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].setData(pageId, 'token', param);\n}\n\n/**\n * 客户端指令\n * @param args 参数\n */\nfunction executeClientCommand(args) {\n  // console.log('executeClientCommand', args)\n  var pageId = args.pageId,\n    param = args.param;\n  param.forEach(function (item) {\n    return (0,_doActions__WEBPACK_IMPORTED_MODULE_16__.doAction)(item.cmdName, item, pageId);\n  });\n}\n\n/**\n * 控件自定义方法，需要对相同控件进行指令合并\n * @param args 参数 pageId, param\n */\nfunction invokeContorlMethod(args) {\n  // console.log('invokeContorlMethod', args)\n  var pageId = args.pageId,\n    param = args.param;\n  var list = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_9___default())();\n  param.forEach(function (item) {\n    // 合并相同控件指令，减少控件内部render次数\n    if (!list.get(item.key)) {\n      list.set(item.key, [item]);\n    } else {\n      list.get(item.key).push(item);\n    }\n  });\n  list.forEach(function (item, key) {\n    return _actions__WEBPACK_IMPORTED_MODULE_14__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.INVOKE_CONTROL_METHOD, pageId, key, item);\n  });\n}\n\n/**\n * U指令函数\n * @param args\n */\nfunction update(args) {\n  // console.log('update', args)\n  var pageId = args.pageId,\n    param = args.param;\n  var data = _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].getData(pageId, 'data') || {};\n  param.forEach(function (item) {\n    data[item.k] = data[item.k] || {};\n    data[item.k].value = item.v;\n    _actions__WEBPACK_IMPORTED_MODULE_14__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.UPDATE, pageId, item.k, item);\n  });\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_13__[\"default\"].setData(pageId, 'data', data);\n}\nfunction openUrl(args) {\n  var pageId = args.pageId,\n    param = args.param;\n  if (typeof param === 'string') {\n    (0,_utils__WEBPACK_IMPORTED_MODULE_18__.openUrlAction)(param);\n  } else if (Array.isArray(param)) {\n    param.forEach(function (url) {\n      return (0,_utils__WEBPACK_IMPORTED_MODULE_18__.openUrlAction)(url);\n    });\n  }\n}\n/**\n * 用户录入表单后，平台将生成的pk id返回\n * @param param0\n */\nfunction setPkId(_ref2) {\n  var pageId = _ref2.pageId,\n    param = _ref2.param;\n  console.log('setPkId', param);\n}\n\n/**\n * 设置控件状态\n * @param args\n */\nfunction setControlStatus(args) {\n  var pageId = args.pageId,\n    param = args.param;\n  var data = {};\n  param.forEach(function (item) {\n    data[item.k] = {};\n    data[item.k].value = item.v;\n    _actions__WEBPACK_IMPORTED_MODULE_14__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_15__.SET_CONTROL_STATUS, pageId, item.k, item);\n  });\n}\n\n/**\n * 刷新页面\n * 场景：长时间未操作\n * @param args\n */\nfunction f5Refresh() {\n  window.location.reload();\n}\n\n//# sourceURL=webpack://bos-core/./src/actions/sysActions.ts?");

/***/ }),

/***/ "./src/actions/type.ts":
/*!*****************************!*\
  !*** ./src/actions/type.ts ***!
  \*****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ADD_ACTION: function() { return /* binding */ ADD_ACTION; },\n/* harmony export */   AJAX_FULFILLED: function() { return /* binding */ AJAX_FULFILLED; },\n/* harmony export */   AJAX_PENDING: function() { return /* binding */ AJAX_PENDING; },\n/* harmony export */   AJAX_REJECTED: function() { return /* binding */ AJAX_REJECTED; },\n/* harmony export */   AJAX_WAITING: function() { return /* binding */ AJAX_WAITING; },\n/* harmony export */   CLEAN_FIELD_TIPS: function() { return /* binding */ CLEAN_FIELD_TIPS; },\n/* harmony export */   CLOSE_FORM: function() { return /* binding */ CLOSE_FORM; },\n/* harmony export */   EXECUTE_CLIENT_COMMAND: function() { return /* binding */ EXECUTE_CLIENT_COMMAND; },\n/* harmony export */   F5_REFRESH: function() { return /* binding */ F5_REFRESH; },\n/* harmony export */   FORM_STATUS: function() { return /* binding */ FORM_STATUS; },\n/* harmony export */   GLOBAL_CRSF_TOKEN: function() { return /* binding */ GLOBAL_CRSF_TOKEN; },\n/* harmony export */   INVOKE: function() { return /* binding */ INVOKE; },\n/* harmony export */   INVOKE_CONTROL_METHOD: function() { return /* binding */ INVOKE_CONTROL_METHOD; },\n/* harmony export */   OPEN_URL: function() { return /* binding */ OPEN_URL; },\n/* harmony export */   POST_DATA: function() { return /* binding */ POST_DATA; },\n/* harmony export */   REFRESH_FORM: function() { return /* binding */ REFRESH_FORM; },\n/* harmony export */   REFRESH_FORM_META_DATA: function() { return /* binding */ REFRESH_FORM_META_DATA; },\n/* harmony export */   REFRESH_FORM_STATUS: function() { return /* binding */ REFRESH_FORM_STATUS; },\n/* harmony export */   REFRESH_PAGE: function() { return /* binding */ REFRESH_PAGE; },\n/* harmony export */   ROOT_PAGE: function() { return /* binding */ ROOT_PAGE; },\n/* harmony export */   ROOT_PAGE_CONFIG: function() { return /* binding */ ROOT_PAGE_CONFIG; },\n/* harmony export */   ROOT_PAGE_OPTIONS: function() { return /* binding */ ROOT_PAGE_OPTIONS; },\n/* harmony export */   SEND_DYNAMIC_FORM_ACTION: function() { return /* binding */ SEND_DYNAMIC_FORM_ACTION; },\n/* harmony export */   SET_CAPTION: function() { return /* binding */ SET_CAPTION; },\n/* harmony export */   SET_CONTROL_STATUS: function() { return /* binding */ SET_CONTROL_STATUS; },\n/* harmony export */   SET_CSRF: function() { return /* binding */ SET_CSRF; },\n/* harmony export */   SET_FORM_STATUS: function() { return /* binding */ SET_FORM_STATUS; },\n/* harmony export */   SET_HOME_CONFIG: function() { return /* binding */ SET_HOME_CONFIG; },\n/* harmony export */   SET_INTERVAL: function() { return /* binding */ SET_INTERVAL; },\n/* harmony export */   SET_PK_ID: function() { return /* binding */ SET_PK_ID; },\n/* harmony export */   SET_VISIBLE: function() { return /* binding */ SET_VISIBLE; },\n/* harmony export */   SHOW_CONFIRM: function() { return /* binding */ SHOW_CONFIRM; },\n/* harmony export */   SHOW_DIALOG: function() { return /* binding */ SHOW_DIALOG; },\n/* harmony export */   SHOW_ERR_MSG: function() { return /* binding */ SHOW_ERR_MSG; },\n/* harmony export */   SHOW_FORM: function() { return /* binding */ SHOW_FORM; },\n/* harmony export */   SHOW_MESSAGE: function() { return /* binding */ SHOW_MESSAGE; },\n/* harmony export */   SHOW_NOTIFICATION_MSG: function() { return /* binding */ SHOW_NOTIFICATION_MSG; },\n/* harmony export */   SHOW_TYPE: function() { return /* binding */ SHOW_TYPE; },\n/* harmony export */   SYSTEM_MESSAGE: function() { return /* binding */ SYSTEM_MESSAGE; },\n/* harmony export */   UPDATE: function() { return /* binding */ UPDATE; },\n/* harmony export */   UPDATE_CONTROL_DATA: function() { return /* binding */ UPDATE_CONTROL_DATA; },\n/* harmony export */   UPDATE_META_DATA: function() { return /* binding */ UPDATE_META_DATA; },\n/* harmony export */   USER_LANGUAGE: function() { return /* binding */ USER_LANGUAGE; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0__);\n\n/**\n * 系统后台指令\n */\nvar SHOW_FORM = 'showForm'; // 显示表单\nvar SHOW_CONFIRM = 'showConfirm'; // 显示表单\nvar SHOW_ERR_MSG = 'showErrMsg'; // 显示表单\nvar SHOW_NOTIFICATION_MSG = 'ShowNotificationMsg'; // 显示表单\nvar SEND_DYNAMIC_FORM_ACTION = 'sendDynamicFormAction'; // 显示表单\nvar REFRESH_FORM_META_DATA = 'refreshFormMetaData'; // 更新表单Meta数据\nvar REFRESH_FORM_STATUS = 'refreshFormStatus'; // 刷新表单状态\nvar REFRESH_FORM = 'refreshForm'; // 刷新表单\nvar F5_REFRESH = 'f5Refresh'; // 刷新表单\n\nvar CLOSE_FORM = 'closeWindow'; // 关闭窗口，可以是modal,drower等\nvar SET_HOME_CONFIG = 'setHomeConfig'; // 设置系统版本\nvar SET_INTERVAL = 'setInterval'; //\nvar SET_FORM_STATUS = 'setFormStatus'; //\nvar UPDATE = 'u'; // 更新控件值\nvar CLEAN_FIELD_TIPS = 'cleanFieldTips'; // 清除tips\nvar SET_CSRF = 'setCsrf'; // 设置加密TOKEN\nvar SET_VISIBLE = 'setVisible'; // 设置显示隐藏\nvar INVOKE_CONTROL_METHOD = 'InvokeControlMethod'; // 设置显示隐藏\nvar EXECUTE_CLIENT_COMMAND = 'executeClientCommand'; // 客户端指令\nvar SET_CAPTION = 'setCaption'; // 设置标题\nvar SHOW_DIALOG = 'showDialog'; // 显示弹窗\nvar SHOW_MESSAGE = 'showMessage'; // 显示系统消息\nvar SYSTEM_MESSAGE = 'systemMessage'; // 客户端指令\nvar OPEN_URL = 'openUrl';\nvar GLOBAL_CRSF_TOKEN = 'global_crsf_token';\nvar SET_PK_ID = 'setPkId'; // 平台返回的PK ID\nvar SET_CONTROL_STATUS = 'setControlState'; // 设置控件状态\n\n// 自定义\nvar ROOT_PAGE = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('根Page Id');\nvar ROOT_PAGE_CONFIG = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('页面配置信息');\nvar ROOT_PAGE_OPTIONS = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('控件label排版方式');\nvar USER_LANGUAGE = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('用户语言');\nvar REFRESH_PAGE = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('刷新页面');\n\n// store数据监听KEY\nvar UPDATE_META_DATA = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('更新Meta树');\nvar UPDATE_CONTROL_DATA = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('更新控件Data数据');\n\n// 控件调用render center函数更新数据或执行指令\nvar INVOKE = 'INVOKE'; // 指令\nvar POST_DATA = 'POST_DATA'; // 请求post数据\n\nvar ADD_ACTION = 'ADD_ACTION'; // 添加指令\n\n// 请求状态\nvar AJAX_WAITING = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('请求排队中');\nvar AJAX_PENDING = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('请求进行中');\nvar AJAX_FULFILLED = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('请求完成');\nvar AJAX_REJECTED = _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_0___default()('请求失败');\nvar SHOW_TYPE = {\n  Default: 0,\n  NewTabPage: 1,\n  InContainer: 3,\n  Floating: 4,\n  NonModal: 5,\n  Modal: 6,\n  MainNewTabPage: 7,\n  InCurrentForm: 8,\n  FloatingAutoHide: 9,\n  NewWindow: 10,\n  InIFrame: 11,\n  // 在IFrame控件中打开子窗体\n  RobotFloat: 12,\n  // 客户大会演示使用机器人弹窗方式\n  ToolTips: 13 // tips方式显示表单\n};\nvar FORM_STATUS = {\n  addNew: 0,\n  edit: 1,\n  view: 2\n};\n\n//# sourceURL=webpack://bos-core/./src/actions/type.ts?");

/***/ }),

/***/ "./src/actions/userAction.ts":
/*!***********************************!*\
  !*** ./src/actions/userAction.ts ***!
  \***********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _store_GlobalData__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/store/GlobalData */ \"./src/store/GlobalData.ts\");\n/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./type */ \"./src/actions/type.ts\");\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_5___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_6___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n\n\n\n/**\n * 用户点击事件\n * @param data 请求参数\n * @param start 请求开始时间\n */\nfunction userClickAction(data, start) {\n  var _ref = _store_GlobalData__WEBPACK_IMPORTED_MODULE_11__[\"default\"].get(_type__WEBPACK_IMPORTED_MODULE_12__.ROOT_PAGE_OPTIONS) || {},\n    sendUiData = _ref.sendUiData;\n  var config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getData(data.pageId, 'config');\n  var meta = _store_GlobalData__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getControlMetaById(data.pageId, data.key);\n  sendUiData === null || sendUiData === void 0 || sendUiData({\n    cost: Date.now() - start,\n    eventName: 'click',\n    page: data.pageId,\n    prePage: (meta === null || meta === void 0 ? void 0 : meta.parentPageId) || '',\n    controlId: data.key,\n    controlType: (meta === null || meta === void 0 ? void 0 : meta.type) || '',\n    type: 'click',\n    action: ''\n  }, config);\n}\n\n/**\n * load data事件\n * @param data 请求参数\n * @param start 请求开始时间\n */\nfunction loadDataAction(data, start) {\n  var _ref2 = _store_GlobalData__WEBPACK_IMPORTED_MODULE_11__[\"default\"].get(_type__WEBPACK_IMPORTED_MODULE_12__.ROOT_PAGE_OPTIONS) || {},\n    sendUiData = _ref2.sendUiData;\n  var config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getData(data.pageId, 'config');\n  sendUiData === null || sendUiData === void 0 || sendUiData({\n    cost: Date.now() - start,\n    eventName: 'loadData',\n    page: data.pageId,\n    prePage: (config === null || config === void 0 ? void 0 : config.parentPageId) || ''\n  }, config);\n}\nvar MAPPER = {\n  click: userClickAction,\n  loadData: loadDataAction\n};\nfunction userAction(data, start) {\n  var pageId = data.pageId,\n    formId = data.formId,\n    params = data.params;\n  var newParams = JSON.parse(decodeURIComponent(params));\n  newParams.forEach(function (param) {\n    var _MAPPER$param$methodN;\n    MAPPER === null || MAPPER === void 0 || (_MAPPER$param$methodN = MAPPER[param.methodName]) === null || _MAPPER$param$methodN === void 0 || _MAPPER$param$methodN.call(MAPPER, _objectSpread({\n      pageId: pageId,\n      formId: formId\n    }, param), start);\n  });\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (userAction);\n\n//# sourceURL=webpack://bos-core/./src/actions/userAction.ts?");

/***/ }),

/***/ "./src/ajax/axios.js":
/*!***************************!*\
  !*** ./src/ajax/axios.js ***!
  \***************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var kd_libs_axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! kd_libs/axios */ \"webpack/container/remote/kd_libs/axios\");\n/* harmony import */ var kd_libs_axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(kd_libs_axios__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _signature__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./signature */ \"./src/ajax/signature.ts\");\n\n\n\n\n\n/**\n * 基本信息\n */\nvar service = kd_libs_axios__WEBPACK_IMPORTED_MODULE_2___default().create({\n  baseURL: window.__domainurl__ || '',\n  timeout: 60 * 1000\n});\n\n/**\n * 请求拦截，可以添加头信息\n */\nservice.interceptors.request.use(function (config) {\n  (0,_signature__WEBPACK_IMPORTED_MODULE_3__.setHeaders)(config);\n  return config;\n}, function (err) {\n  _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0___default().reject(err);\n});\n\n/**\n * 返回内容拦截\n * @returns Promise\n */\nservice.interceptors.response.use(function (res) {\n  var status = res.status,\n    data = res.data;\n  if (status === 200) {\n    if (data.error_code !== 100 && !data.RedirectURL) {\n      // 登录过期\n      return _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0___default().resolve(res);\n    } else {\n      var _context;\n      window.location.href = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(_context = \"\".concat(window.__domainurl__, \"login.html?redirect=\")).call(_context, encodeURIComponent(window.location.href));\n    }\n  } else {\n    return _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0___default().reject(res);\n  }\n}, function (err) {\n  throw new Error('require error:', err);\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (service);\n\n//# sourceURL=webpack://bos-core/./src/ajax/axios.js?");

/***/ }),

/***/ "./src/ajax/index.js":
/*!***************************!*\
  !*** ./src/ajax/index.js ***!
  \***************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   cacheGet: function() { return /* binding */ cacheGet; },\n/* harmony export */   get: function() { return /* binding */ get; },\n/* harmony export */   post: function() { return /* binding */ post; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _axios__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./axios */ \"./src/ajax/axios.js\");\n\n\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n// import FormData from 'form-data'\n\nvar Caches = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11___default())(); // 请求缓存池\n/**\n * get 方法封装\n * @param {String} url\n * @param {Object} data\n * @returns Promise\n */\nfunction get(url) {\n  var _context, _context2;\n  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  if (window.NOCODE_SHARE_ID) url = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12___default()(_context2 = \"\".concat(url)).call(_context2, _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_13___default()(url).call(url, '?') > 0 ? '&' : '?', \"noCodeShareId=\")).call(_context, window.NOCODE_SHARE_ID);\n  var headers = _objectSpread({\n    'Content-Type': 'text/json;charset=utf-8;'\n  }, header);\n  return new (_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14___default())(function (resolve, reject) {\n    _axios__WEBPACK_IMPORTED_MODULE_16__[\"default\"].get(url, {\n      params: data,\n      headers: headers\n    }, header).then(function (res) {\n      return resolve(res);\n    }).catch(function (err) {\n      return reject(err);\n    });\n  });\n}\n\n/**\n * 缓存get 方法封装\n * @param {String} url  请求URL\n * @param {Object} data 请求参数\n * @param {Number} time 缓存时长，默认1分钟\n * @returns Promise\n */\nfunction cacheGet(url) {\n  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  var time = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1 * 60 * 1000;\n  return new (_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14___default())(function (resolve, reject) {\n    var _context3;\n    var key = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12___default()(_context3 = \"\".concat(url)).call(_context3, _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_15___default()(data));\n    var cache = Caches.get(key);\n    console.log(cache, Date.now() - (cache === null || cache === void 0 ? void 0 : cache.time));\n    if (cache && Date.now() - cache.time < time) {\n      resolve(cache.data);\n    } else {\n      _axios__WEBPACK_IMPORTED_MODULE_16__[\"default\"].get(url, {\n        params: data\n      }).then(function (res) {\n        Caches.set(key, {\n          data: res,\n          time: Date.now()\n        });\n        resolve(res);\n      }).catch(function (err) {\n        return reject(err);\n      });\n    }\n  });\n}\n\n/**\n * Post 方法封装\n * @param {String} url\n * @param {Object} data\n * @returns Promise\n */\nfunction post(url) {\n  var _context4, _context5;\n  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  if (window.NOCODE_SHARE_ID) url = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12___default()(_context4 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12___default()(_context5 = \"\".concat(url)).call(_context5, _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_13___default()(url).call(url, '?') > 0 ? '&' : '?', \"noCodeShareId=\")).call(_context4, window.NOCODE_SHARE_ID);\n  var headers = _objectSpread({\n    'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;'\n  }, header);\n  var data = [];\n  // console.log(params)\n  for (var key in params) {\n    var _context6;\n    data.push(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_12___default()(_context6 = \"\".concat(key, \"=\")).call(_context6, params[key]));\n  }\n  return new (_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14___default())(function (resolve, reject) {\n    _axios__WEBPACK_IMPORTED_MODULE_16__[\"default\"].post(url, data.join('&'), {\n      headers: headers\n    }).then(function (res) {\n      return resolve(res);\n    }, function (err) {\n      return reject(err);\n    });\n  });\n}\n\n//# sourceURL=webpack://bos-core/./src/ajax/index.js?");

/***/ }),

/***/ "./src/ajax/signature.ts":
/*!*******************************!*\
  !*** ./src/ajax/signature.ts ***!
  \*******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   decode: function() { return /* binding */ decode; },\n/* harmony export */   fetchClientServerDiffTime: function() { return /* binding */ fetchClientServerDiffTime; },\n/* harmony export */   getClientServerDiffTime: function() { return /* binding */ getClientServerDiffTime; },\n/* harmony export */   getEncryptContent: function() { return /* binding */ getEncryptContent; },\n/* harmony export */   getMessageDigest: function() { return /* binding */ getMessageDigest; },\n/* harmony export */   setHeaders: function() { return /* binding */ setHeaders; },\n/* harmony export */   setSignature: function() { return /* binding */ setSignature; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_number_is_nan__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/number/is-nan */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_number_is_nan__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_number_is_nan__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.string.match.js */ \"../../node_modules/core-js/modules/es.string.match.js\");\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n/* harmony import */ var core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var kd_libs_crypto_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! kd_libs/crypto-js */ \"webpack/container/remote/kd_libs/crypto-js\");\n/* harmony import */ var kd_libs_crypto_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(kd_libs_crypto_js__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var crypto_js_sha256__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! crypto-js/sha256 */ \"../../node_modules/crypto-js/sha256.js\");\n/* harmony import */ var crypto_js_sha256__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(crypto_js_sha256__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var _store_GlobalData__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @/store/GlobalData */ \"./src/store/GlobalData.ts\");\n/* harmony import */ var _actions_type__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../actions/type */ \"./src/actions/type.ts\");\n/* harmony import */ var _utils_trace__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @/utils/trace */ \"./src/utils/trace.js\");\n\nvar _window$location$sear;\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_6___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_7___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * 请求签名加密文件\n */\n\nvar headersCacher = {}; // 缓存内容\nvar DATE = 'date'; // cacher内关键字常量\nvar KD_DATA_CENTER = (_window$location$sear = window.location.search) === null || _window$location$sear === void 0 || (_window$location$sear = _window$location$sear.match(/(^|&|\\?)kdcdc=([^&]*)(&|$)/i)) === null || _window$location$sear === void 0 ? void 0 : _window$location$sear[2]; // 数据中心\n\n// 对内容进行解密\nfunction decode(params) {\n  try {\n    return decodeURIComponent(params);\n  } catch (error) {\n    console.error('decode error', params);\n    return params;\n  }\n}\n// 对内容进行加密\nvar getMessageDigest = function getMessageDigest(message) {\n  var hashDigest = crypto_js_sha256__WEBPACK_IMPORTED_MODULE_19___default()(message);\n  var stringDigest = hashDigest.toString((kd_libs_crypto_js__WEBPACK_IMPORTED_MODULE_18___default().enc).Hex);\n  return stringDigest;\n};\n\n// 获取服务器与浏览器之间的时间差 ms\nfunction fetchClientServerDiffTime(response) {\n  if (!headersCacher[DATE]) {\n    var responseHeader = response.headers;\n    var date = responseHeader[DATE];\n    var time = new Date(date).getTime();\n    var currentTime = Date.now();\n    headersCacher[DATE] = currentTime - (_babel_runtime_corejs3_core_js_stable_number_is_nan__WEBPACK_IMPORTED_MODULE_8___default()(time) ? 0 : time);\n  }\n  return headersCacher[DATE];\n}\n// 获取与服务端时间差 ms\nfunction getClientServerDiffTime() {\n  return headersCacher[DATE] || 0;\n}\n\n/**\n * ajax请求内容加密\n * @param {*} body post请求内容\n * @param {*} headers post请求头\n * @param {*} token csrf的token值\n * @returns  对称加密后内容\n */\nfunction getEncryptContent(token) {\n  var body = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  var headers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  if (typeof body !== 'string') return '';\n  var paramKey = 'params=';\n  var paramIndex = _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9___default()(body).call(body, paramKey);\n  if (paramIndex === -1) {\n    // 后台检查invokeAction指令，其他.do不检查\n    return '';\n  }\n  var params = body.substr(paramIndex + paramKey.length);\n  var decodeParams = decode(params);\n  var length = decodeParams.length > 300 ? 300 : decodeParams.length;\n  var clientServerDiffTime = getClientServerDiffTime();\n  var clientStartTime = headers['client-start-time'];\n  var message = clientStartTime + token + clientServerDiffTime + decodeParams.substr(0, length);\n  return getMessageDigest(message) + clientServerDiffTime;\n}\n\n/**\n * 请求增加签名\n * @param headers 请求头信息\n * @param body 请求参数内容\n */\nfunction setSignature(headers, body) {\n  var csrf = _store_GlobalData__WEBPACK_IMPORTED_MODULE_20__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_21__.GLOBAL_CRSF_TOKEN); // 使用ROOT TOKEN\n  if (csrf) {\n    // 基于csrf标志来开启加密post内容\n    var signature = getEncryptContent(csrf, body || '', headers); // ie下，body 可能为 null\n    if (signature) {\n      headers.signature = signature;\n    }\n  }\n}\n\n/**\n * 根据pageId配置pagesign\n * @param headers 请求头\n * @param bodyString 请求参数\n */\nfunction setPageSignature(headers) {\n  var bodyString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  if (Object.prototype.toString.call(bodyString) === '[object String]') {\n    var _bodyString$split$fin, _context;\n    var pageId = (_bodyString$split$fin = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_10___default()(_context = bodyString.split('&')).call(_context, function (item) {\n      return _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_11___default()(item).call(item, 'pageId=');\n    })) === null || _bodyString$split$fin === void 0 ? void 0 : _bodyString$split$fin.substr(7);\n    if (pageId) {\n      // 根据pageId查找从setCsrf指令返回的token\n      var csrf = _store_GlobalData__WEBPACK_IMPORTED_MODULE_20__[\"default\"].getData(pageId, 'token');\n      if (csrf) {\n        headers.pagesign = csrf;\n      }\n    }\n  }\n}\n\n/**\n * 配置kd-csrf-token值\n * @param headers\n */\nfunction setCsrfToken(headers) {\n  headers['kd-csrf-token'] = _store_GlobalData__WEBPACK_IMPORTED_MODULE_20__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_21__.GLOBAL_CRSF_TOKEN);\n}\n\n/**\n * 配置头信息\n * @param config\n */\nfunction setHeaders(config) {\n  config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {\n    cqappid: 'bos',\n    ajax: 'true',\n    'client-start-time': Date.now(),\n    traceId: (0,_utils_trace__WEBPACK_IMPORTED_MODULE_22__[\"default\"])()\n  });\n  setCsrfToken(config.headers);\n  setSignature(config.headers, config.data); // 内容签名\n  setPageSignature(config.headers, config.data); // 设置签名TOKEN\n  if (KD_DATA_CENTER) config.headers.kdcdc = KD_DATA_CENTER; // 添加数据中心标识\n}\n\n//# sourceURL=webpack://bos-core/./src/ajax/signature.ts?");

/***/ }),

/***/ "./src/bootstrap.tsx":
/*!***************************!*\
  !*** ./src/bootstrap.tsx ***!
  \***************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var kd_libs_react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\n/* harmony import */ var kd_libs_react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react_dom__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _render_RenderCenter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./render/RenderCenter */ \"./src/render/RenderCenter.tsx\");\n\n\n\n// import '@kdcloudjs/kdesign/dist/kdesign.css'\n\nkd_libs_react_dom__WEBPACK_IMPORTED_MODULE_1___default().render( /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_render_RenderCenter__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null), document.querySelector('#app'));\n\n//# sourceURL=webpack://bos-core/./src/bootstrap.tsx?");

/***/ }),

/***/ "./src/error/SysError.tsx":
/*!********************************!*\
  !*** ./src/error/SysError.tsx ***!
  \********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NetError: function() { return /* binding */ NetError; }\n/* harmony export */ });\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _assets_img_net_error_png__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @@/assets/img/net-error.png */ \"./assets/img/net-error.png\");\n\n// import styles from '@@/assets/css/error.less'\n\nfunction NetError() {\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    style: {\n      display: 'flex',\n      flexDirection: 'column',\n      alignItems: 'center',\n      justifyContent: 'center',\n      height: '100%',\n      fontSize: '14px'\n    }\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"img\", {\n    src: _assets_img_net_error_png__WEBPACK_IMPORTED_MODULE_1__,\n    width: 280,\n    height: 160,\n    style: {\n      marginBottom: '20px'\n    },\n    alt: \"\"\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, \"\\u5F88\\u62B1\\u6B49\\uFF0C\\u7CFB\\u7EDF\\u51FA\\u73B0\\u9519\\u8BEF\\u4EE5\\u81F4\\u65E0\\u6CD5\\u4F7F\\u7528\\uFF0C\\u8BF7\\u7A0D\\u540E\\u518D\\u8BD5\"));\n}\n\n//# sourceURL=webpack://bos-core/./src/error/SysError.tsx?");

/***/ }),

/***/ "./src/hooks/remote.config.js":
/*!************************************!*\
  !*** ./src/hooks/remote.config.js ***!
  \************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\nvar HOST = window.__kd_cdnPath__ || window.__domainurl__;\nvar config = {\n  components: {\n    url: \"\".concat(HOST + \"ncp\", \"/nocode-component/nocodeComponentEntry.js\"),\n    scope: 'nocode_component'\n  }\n};\nif (true) {\n  _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(config).forEach(function (key) {\n    var _context, _context2;\n    var _config = config[key];\n    _config.url = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1___default()(_context = _config.url).call(_context, 0, -3) + '.dev' + _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_1___default()(_context2 = _config.url).call(_context2, -3) + \"?v=\".concat(1729258286574);\n  });\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (config);\n\n//# sourceURL=webpack://bos-core/./src/hooks/remote.config.js?");

/***/ }),

/***/ "./src/hooks/useDynamicScript.js":
/*!***************************************!*\
  !*** ./src/hooks/useDynamicScript.js ***!
  \***************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_5__);\n\n\n\n\n\n/*\n * @Author: cxf\n * @Email: jinrui_fang@kingdee.com\n * @Date: 2022-02-18 09:37:31\n * @Last Modified by: fjr\n * @LastEditTime: 2022-02-18 14:19:40\n * @Description: ...\n */\n\n\n// 将远程入口文件注入到html头部\nvar urlCache = new (_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_3___default())(); // url地址缓存\nvar resolveUrlCache = new (_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_3___default())(); // url地址缓存\nvar resolveUrlCallbacksMap = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_4___default())();\nvar useDynamicScript = function useDynamicScript(url, scope) {\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    ready = _useState2[0],\n    setReady = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useState)(false),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState3, 2),\n    errorLoading = _useState4[0],\n    setErrorLoading = _useState4[1];\n  // console.log(url,scope)\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {\n    if (!url) return;\n    if (resolveUrlCache.has(url) || window[scope]) {\n      // 如果已缓存，直接返回\n      setReady(true);\n      setErrorLoading(false);\n      return;\n    }\n    if (urlCache.has(url)) {\n      if (!resolveUrlCallbacksMap.has(url)) {\n        resolveUrlCallbacksMap.set(url, []);\n      }\n      var callbacks = resolveUrlCallbacksMap.get(url);\n      callbacks.push([function () {\n        setReady(true);\n      }, function () {\n        setReady(false);\n        setErrorLoading(true);\n      }]);\n      return;\n    }\n    // 在这个位置存地址，异步同时引入多个组件的时候，可能还未ready\n    urlCache.add(url);\n    setReady(false);\n    setErrorLoading(false);\n    var element = document.createElement('script');\n    element.src = url;\n    element.type = 'text/javascript';\n    element.async = true;\n    element.onload = function () {\n      // urlCache.add(url); // 在这个位置存地址，会引发多次插入脚本问题\n      resolveUrlCache.add(url); // 在这个位置存地址，异步同时引入多个组件的时候，可能还未ready\n      setReady(true);\n      if (resolveUrlCallbacksMap.has(url)) {\n        var _callbacks = resolveUrlCallbacksMap.get(url);\n        _callbacks.forEach(function (_ref) {\n          var _ref2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_ref, 1),\n            resolveCallback = _ref2[0];\n          return resolveCallback();\n        });\n        resolveUrlCallbacksMap.delete(url);\n      }\n    };\n    document.head.appendChild(element);\n    element.onerror = function () {\n      setReady(false);\n      setErrorLoading(true);\n      if (resolveUrlCallbacksMap.has(url)) {\n        var _callbacks2 = resolveUrlCallbacksMap.get(url);\n        _callbacks2.forEach(function (_ref3) {\n          var _ref4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_ref3, 2),\n            _c = _ref4[0],\n            rejectCallback = _ref4[1];\n          return rejectCallback();\n        });\n        resolveUrlCallbacksMap.delete(url);\n      }\n    };\n    return function () {\n      urlCache.delete(url);\n      resolveUrlCallbacksMap.delete(url);\n      document.head.removeChild(element);\n    };\n  }, [url]);\n  return {\n    errorLoading: errorLoading,\n    ready: ready\n  };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useDynamicScript);\n\n//# sourceURL=webpack://bos-core/./src/hooks/useDynamicScript.js?");

/***/ }),

/***/ "./src/hooks/useFederationModule.js":
/*!******************************************!*\
  !*** ./src/hooks/useFederationModule.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   useFederatedModule: function() { return /* binding */ useFederatedModule; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _useDynamicScript_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useDynamicScript.js */ \"./src/hooks/useDynamicScript.js\");\n/* harmony import */ var _remote_config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./remote.config.js */ \"./src/hooks/remote.config.js\");\n\n\n\n\n\n\n\n\n/**\n *\n * @param {*} scope\n * @param {*} module\n * @returns Module\n */\nfunction loadModule(configKey, module) {\n  var scope = _remote_config_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"][configKey].scope;\n  return /*#__PURE__*/(0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee() {\n    var container, factory, Module;\n    return _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          _context.prev = 0;\n          _context.next = 3;\n          return __webpack_require__.I(\"default\");\n        case 3:\n          container = window[scope]; // or get the container somewhere else\n          // Initialize the container, it may provide shared modules\n          _context.next = 6;\n          return container.init(__webpack_require__.S.default);\n        case 6:\n          _context.next = 11;\n          break;\n        case 8:\n          _context.prev = 8;\n          _context.t0 = _context[\"catch\"](0);\n          console.log(_context.t0);\n        case 11:\n          _context.next = 13;\n          return window[scope].get(module);\n        case 13:\n          factory = _context.sent;\n          Module = factory();\n          return _context.abrupt(\"return\", Module);\n        case 16:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee, null, [[0, 8]]);\n  }));\n}\nvar componentCache = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_2___default())();\nvar useFederatedModule = function useFederatedModule(configKey) {\n  var _context2, _context3;\n  var module = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"./Main\";\n  var _remoteConfig$configK = _remote_config_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"][configKey],\n    url = _remoteConfig$configK.url,\n    scope = _remoteConfig$configK.scope;\n  var key = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context3 = \"\".concat(url, \"-\")).call(_context3, scope, \"-\")).call(_context2, module);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useState)(function () {\n      return componentCache.get(key) || null;\n    }),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    Component = _useState2[0],\n    setComponent = _useState2[1];\n  var _useDynamicScript = (0,_useDynamicScript_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(url, scope),\n    ready = _useDynamicScript.ready,\n    errorLoading = _useDynamicScript.errorLoading;\n  var isMountRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useRef)(false);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {\n    if (!isMountRef.current) {\n      isMountRef.current = true;\n      return;\n    }\n    if (Component) setComponent(null);\n    // Only recalculate when key changes\n  }, [key]);\n  // console.log('useFederatedModule',module,Component)\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {\n    if (ready && !Component) {\n      loadModule(configKey, module)().then(function (resolveModule) {\n        var Comp = resolveModule;\n        componentCache.set(key, Comp);\n        setComponent(Comp);\n      });\n    }\n    // key includes all dependencies (scope/module)\n  }, [Component, ready, key]);\n  return {\n    errorLoading: errorLoading,\n    Component: Component\n  };\n};\n\n//# sourceURL=webpack://bos-core/./src/hooks/useFederationModule.js?");

/***/ }),

/***/ "./src/render/ComponentModel.tsx":
/*!***************************************!*\
  !*** ./src/render/ComponentModel.tsx ***!
  \***************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Global: function() { return /* binding */ Global; },\n/* harmony export */   addControlAction: function() { return /* binding */ addControlAction; },\n/* harmony export */   addEventListener: function() { return /* binding */ addEventListener; },\n/* harmony export */   batchInvoke: function() { return /* binding */ batchInvoke; },\n/* harmony export */   batchInvokeWithForce: function() { return /* binding */ batchInvokeWithForce; },\n/* harmony export */   emitEvent: function() { return /* binding */ emitEvent; },\n/* harmony export */   fetchControlData: function() { return /* binding */ fetchControlData; },\n/* harmony export */   getAllMeta: function() { return /* binding */ getAllMeta; },\n/* harmony export */   getConfig: function() { return /* binding */ getConfig; },\n/* harmony export */   getControlData: function() { return /* binding */ getControlData; },\n/* harmony export */   getControlMeta: function() { return /* binding */ getControlMeta; },\n/* harmony export */   getControlText: function() { return /* binding */ getControlText; },\n/* harmony export */   getFileServer: function() { return /* binding */ getFileServer; },\n/* harmony export */   getFormStatus: function() { return /* binding */ getFormStatus; },\n/* harmony export */   getGlobal: function() { return /* binding */ getGlobal; },\n/* harmony export */   getPageConfig: function() { return /* binding */ getPageConfig; },\n/* harmony export */   getPageOptions: function() { return /* binding */ getPageOptions; },\n/* harmony export */   getRootPageId: function() { return /* binding */ getRootPageId; },\n/* harmony export */   setGlobal: function() { return /* binding */ setGlobal; },\n/* harmony export */   setPostData: function() { return /* binding */ setPostData; },\n/* harmony export */   useControlActionListener: function() { return /* binding */ useControlActionListener; },\n/* harmony export */   useEventListener: function() { return /* binding */ useEventListener; },\n/* harmony export */   useInvokeControlMethod: function() { return /* binding */ useInvokeControlMethod; },\n/* harmony export */   useRefreshFormMeta: function() { return /* binding */ useRefreshFormMeta; },\n/* harmony export */   useRefreshFormStatus: function() { return /* binding */ useRefreshFormStatus; },\n/* harmony export */   useUpdateControlStates: function() { return /* binding */ useUpdateControlStates; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/store/GlobalData */ \"./src/store/GlobalData.ts\");\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/actions */ \"./src/actions/index.ts\");\n/* harmony import */ var _actions_fetchData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/actions/fetchData */ \"./src/actions/fetchData.ts\");\n/* harmony import */ var _actions_type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/actions/type */ \"./src/actions/type.ts\");\n/* harmony import */ var _utils_eventEmit__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.ts\");\n/* harmony import */ var _ajax__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/ajax */ \"./src/ajax/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * 暴露给子系统的相应接口,如component系统\n * @author cxf\n * @create 20220826\n */\n\n/**\n * 全局数据\n */\nvar Global = {\n  get rootId() {\n    // 根节点ID\n    return _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_8__.ROOT_PAGE);\n  },\n  get token() {\n    return _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_8__.GLOBAL_CRSF_TOKEN);\n  }\n};\n/**\n * 获取config属性配置信息\n */\nvar getPageConfig = function getPageConfig() {\n  return _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_8__.ROOT_PAGE_CONFIG);\n};\n/**\n * 获取options属性配置信息\n * 表单labal排版方式\n * @param pageId 页面ID\n */\nvar getPageOptions = function getPageOptions() {\n  return _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_8__.ROOT_PAGE_OPTIONS);\n};\n/**\n * 根据page id获取配置信息\n * @param pageId 页面ID\n */\nvar getConfig = function getConfig(pageId) {\n  var id = pageId || getRootPageId();\n  var config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getData(id, 'config');\n  if (!pageId) {\n    var _getPageOptions;\n    // 不传pageId则获取根表单的config信息，它信息更加丰富\n    // 外部有传入rootConfig则以外部的config信息为准\n    var rootConfig = (_getPageOptions = getPageOptions()) === null || _getPageOptions === void 0 ? void 0 : _getPageOptions.rootConfig;\n    return rootConfig || config;\n  }\n  return config;\n};\n\n/**\n * 获取根status, edit|view(编辑态/查看态)\n */\n// export const getPageStatus = () => {\n//   const root = getRootPageId()\n//   const status = GlobalData.getData(root, 'config').status\n//   return status\n// }\n/**\n * 根据PAGE_ID获取表单状态\n * @returns\n */\nvar getFormStatus = function getFormStatus(pageId) {\n  var mapper = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(_actions_type__WEBPACK_IMPORTED_MODULE_8__.FORM_STATUS);\n  var id = pageId || getRootPageId();\n  var formStatus = _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getData(id, 'config').status;\n  return typeof formStatus === 'number' ? mapper[formStatus] : formStatus;\n};\n/**\n * 获取根节点page id\n */\nvar getRootPageId = function getRootPageId() {\n  return _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_8__.ROOT_PAGE);\n};\n\n/**\n * 注册组件指令侦听\n * @param pageId 页面ID\n * @param controlId 控件ID\n * @param action 指令名\n * @param callback 回调函数\n */\nvar addControlAction = function addControlAction(action, pageId, controlId, callback) {\n  // const key = `${pageId}-${controlId}`\n  _actions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].regist(action, pageId, controlId, callback);\n  return function () {\n    _actions__WEBPACK_IMPORTED_MODULE_6__[\"default\"].remove(action, pageId, controlId, callback);\n  };\n};\n\n/**\n * 注册事件侦听\n * @param key 关键字\n * @param callback 回调函数\n * @returns 移除函数\n */\nvar addEventListener = function addEventListener(key, callback) {\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_9__[\"default\"].on(key, callback);\n  return function () {\n    _utils_eventEmit__WEBPACK_IMPORTED_MODULE_9__[\"default\"].off(key, callback);\n  };\n};\n\n/**\n * 发布事件\n * 为解决组件未注册时，指令已经发布的问题，需要保存数据\n * @param key 关键字\n * @param value 回调函数\n * @param save 是否需要保存\n */\nvar emitEvent = function emitEvent(key, value) {\n  var save = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_9__[\"default\"].emit(key, value);\n  if (save) _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].set(key, value); // 保存数据，解决组件未注册时，指令已经发布问题\n};\n\n/**\n * 发布全局数据\n * @param key 关键字\n * @param value 值\n */\nvar setGlobal = function setGlobal(key, value) {\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].set(key, value);\n};\n\n/**\n * 获取全局数据\n * @param key 关键字\n**/\nvar getGlobal = function getGlobal(key) {\n  return _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].get(key);\n};\n\n/**\n * 控件向bos发指令\n * @param action 指令名\n * @param pageId 页面ID\n * @param controlId 控件ID\n * @param args 参数\n * @param postData post data\n * @param callback 强制提交\n */\nfunction batchInvoke(action, pageId, controlId) {\n  var args = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n  var postData = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];\n  var callback = arguments.length > 5 ? arguments[5] : undefined;\n  (0,_actions_fetchData__WEBPACK_IMPORTED_MODULE_7__.batchInvokeAction)({\n    action: action,\n    pageId: pageId,\n    controlId: controlId,\n    args: args,\n    postData: postData,\n    callback: callback\n  });\n}\n\n/**\n * 带强制请求的batchInvoke\n */\n\nfunction batchInvokeWithForce(_ref) {\n  var action = _ref.action,\n    pageId = _ref.pageId,\n    controlId = _ref.controlId,\n    _ref$args = _ref.args,\n    args = _ref$args === void 0 ? [] : _ref$args,\n    _ref$postData = _ref.postData,\n    postData = _ref$postData === void 0 ? [] : _ref$postData,\n    callback = _ref.callback,\n    _ref$enforce = _ref.enforce,\n    enforce = _ref$enforce === void 0 ? false : _ref$enforce;\n  (0,_actions_fetchData__WEBPACK_IMPORTED_MODULE_7__.batchInvokeAction)({\n    action: action,\n    pageId: pageId,\n    controlId: controlId,\n    args: args,\n    postData: postData,\n    callback: callback,\n    enforce: enforce\n  });\n}\n\n/**\n * 设置post data\n * @param pageId 页面ID\n * @param controlId 控件ID\n * @param value 值\n */\nfunction setPostData(pageId, controlId, value) {\n  if (!pageId) pageId = getRootPageId();\n  var formData = _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getData(pageId);\n  if (!formData) return;\n  var _formData$data = formData.data,\n    data = _formData$data === void 0 ? {} : _formData$data,\n    _formData$post = formData.post,\n    post = _formData$post === void 0 ? [] : _formData$post;\n  // const key = `${pageId}-${controlId}`\n  data[controlId] = data[controlId] || {};\n  data[controlId].value = value;\n  if (!_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default()(post).call(post, controlId)) post.push(controlId);\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].setData(pageId, 'post', post);\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].setData(pageId, 'data', data);\n}\n/**\n * 获取所有Meta数据\n * @returns Map\n */\nfunction getAllMeta() {\n  return _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getAllMeta();\n}\n/**\n * 根据pageId,controlId获取Data数据\n * @param pageId 页面ID\n * @param controlId 控件ID\n * @returns any\n */\nfunction getControlData(pageId, controlId) {\n  return _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getData(pageId, 'data')[controlId];\n}\n/**\n * 根据pageId,controlId获取Meta数据\n * @param pageId 页面ID\n * @param controlId 控件ID\n * @returns any\n */\nfunction getControlMeta(pageId, controlId) {\n  var _context;\n  var metas = _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].metaData;\n  // const formId = GlobalData.getData(pageId, 'config')?.formId\n  var key = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = \"\".concat(pageId, \"-\")).call(_context, controlId);\n  return metas.get(key);\n}\n/**\n * 根据传入的info,返回相应语言文本\n * @param info 语言对像\n * @returns string\n */\nfunction getControlText(info) {\n  var lang = _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_8__.USER_LANGUAGE) || 'zh_CN';\n  return (info === null || info === void 0 ? void 0 : info[lang]) || '';\n}\n\n/**\n * 根据传入的pageId,返回(visible、locked)状态\n * @param pageId 页面ID\n * @param value 值\n * @returns boolean\n */\n// export function checkMetaStatus (pageId:string, value:number|undefined) {\n//   const formStatus = GlobalData.getData(pageId, 'status')\n//   value = value || 63\n//   return (value >> formStatus & 1) === 1\n// }\n\n// let mapper:any = null\n\n/**\n * 工厂类 -- 根据type返回组件\n * @param args meta数据\n * @returns React.Component\n */\n// function Factory ({ meta }:{meta:any}) {\n//   const Component = mapper[meta.type || 'flexpanel']\n//   // 后端返回不存在的类型的时候，应该有个兼容，这里是把类型显示出来\n//   if (!Component) return meta.type\n//   return (\n//     <React.Suspense fallback={<></>}>\n//       <Component controlMeta={meta} />\n//     </React.Suspense>\n//   )\n// }\n\n/**\n   * 获取子节点\n   * @param id 父节点ID\n   * @param component 所有组件\n   * @returns\n   */\n// export function getChildren (control: any, component:any = null) {\n//   // 满足 父节点ID === 当前控件ID 以及 （控件pageId === 节点pageId 或 控件pageId === 节点父节点pageId\n//   const meta = GlobalData.metaData // meta树\n//   if (component) mapper = component\n//   const childrens:any[] = [] // 返回子节点\n//   const { pageId, id } = control\n//   meta.forEach((val:any, key:string) => {\n//     if (val.parentId === id && (pageId === val.pageId || pageId === val.parentPageId)) {\n//       childrens.push(<Factory key={key} meta={val} columnSpan={val?.columnSpan ?? 1} />)\n//     }\n//   })\n//   return childrens\n// }\n\n/**\n * 获取图片附件服务器地址\n * @param type 图片附件\n * @returns string\n */\nfunction getFileServer(type) {\n  // const root = getRootPageId()\n  // if (type === 'attachment') return getConfig(root).attachmentserver\n  // return getConfig(root).imageurl\n  var config = getConfig();\n  var service = {\n    attachment: config.attachmentserver,\n    picture: config.imageurl\n  };\n  return type ? service[type] || '' : service;\n}\n\n/**\n * 获取附件预览类型，废弃，使用getConfig代替\n */\n// export function getRootConfig () {\n//   const root = getRoot()\n//   const { rootConfig } = GlobalData.get(ROOT_PAGE_OPTIONS) || {}\n//   return rootConfig || getConfig(root)\n// }\n\n/**\n * 控件请求函数\n */\n\nfunction fetchControlData(_ref2) {\n  var pageId = _ref2.pageId,\n    url = _ref2.url,\n    _ref2$params = _ref2.params,\n    params = _ref2$params === void 0 ? {} : _ref2$params,\n    _ref2$type = _ref2.type,\n    type = _ref2$type === void 0 ? 'post' : _ref2$type;\n  var headers = {\n    'Content-Type': 'text/json;charset=utf-8;',\n    'kd-csrf-token': _store_GlobalData__WEBPACK_IMPORTED_MODULE_5__[\"default\"].get(\"\".concat(pageId, \"-csrf\"))\n  };\n  var FN = type === 'post' ? _ajax__WEBPACK_IMPORTED_MODULE_10__.post : _ajax__WEBPACK_IMPORTED_MODULE_10__.get;\n  return new (_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_3___default())(function (resolve, reject) {\n    FN(url, params, headers).then(function (res) {\n      return resolve(res);\n    }).catch(function (err) {\n      return reject(err);\n    });\n  });\n}\n\n/**\n * 控件事件侦听HOOK\n * @param key\n * @param meta\n * @param callback\n */\nfunction useControlActionListener(key, meta, callback) {\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {\n    var rmUpdateListener = addControlAction(key, meta.pageId, (meta === null || meta === void 0 ? void 0 : meta.id) || '', callback);\n    return function () {\n      rmUpdateListener === null || rmUpdateListener === void 0 || rmUpdateListener();\n    };\n  }, [key, meta, callback]);\n}\n\n/**\n * U指令更新HOOK\n * @param meta\n * @returns\n */\nfunction useUpdateControlStates(meta, callback) {\n  useControlActionListener(_actions_type__WEBPACK_IMPORTED_MODULE_8__.UPDATE, meta, callback);\n}\n\n/**\n * InvokeControlMethod指令\n * @param meta\n * @returns\n */\nfunction useInvokeControlMethod(meta, callback) {\n  useControlActionListener(_actions_type__WEBPACK_IMPORTED_MODULE_8__.INVOKE_CONTROL_METHOD, meta, callback);\n}\n\n/**\n * 刷新表单meta信息\n * @param meta\n * @returns\n */\nfunction useRefreshFormMeta(meta, callback) {\n  useControlActionListener(_actions_type__WEBPACK_IMPORTED_MODULE_8__.REFRESH_FORM_META_DATA, meta, callback);\n}\n\n/**\n * 事件侦听HOOKS\n * @param meta\n * @returns\n */\nfunction useEventListener(key, callback) {\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {\n    addEventListener(key, callback);\n  }, [key, callback]);\n}\n\n/**\n * 事件侦听HOOKS\n * @param meta\n * @returns\n */\nfunction useRefreshFormStatus(callback) {\n  useEventListener(_actions_type__WEBPACK_IMPORTED_MODULE_8__.REFRESH_FORM_STATUS, callback);\n}\n\n//# sourceURL=webpack://bos-core/./src/render/ComponentModel.tsx?");

/***/ }),

/***/ "./src/render/RenderCenter.tsx":
/*!*************************************!*\
  !*** ./src/render/RenderCenter.tsx ***!
  \*************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/actions */ \"./src/actions/index.ts\");\n/* harmony import */ var _actions_fetchData__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/actions/fetchData */ \"./src/actions/fetchData.ts\");\n/* harmony import */ var _actions_doActions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/actions/doActions */ \"./src/actions/doActions.ts\");\n/* harmony import */ var _actions_type__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @/actions/type */ \"./src/actions/type.ts\");\n/* harmony import */ var _hooks_useFederationModule__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/hooks/useFederationModule */ \"./src/hooks/useFederationModule.js\");\n/* harmony import */ var _store_GlobalData__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/store/GlobalData */ \"./src/store/GlobalData.ts\");\n/* harmony import */ var _ComponentModel__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ComponentModel */ \"./src/render/ComponentModel.tsx\");\n/* harmony import */ var _RenderHandle__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./RenderHandle */ \"./src/render/RenderHandle.ts\");\n/* harmony import */ var _utils_eventEmit__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.ts\");\n/* harmony import */ var _error_SysError__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../error/SysError */ \"./src/error/SysError.tsx\");\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_9___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_10___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-01-05 10:27:12\n * @LastEditTime: 2023-02-21 10:03:36\n * @Last Modified by: jianhang_he\n */\n\n// import isEqual from 'lodash/isEqual'\n\n\n\n\n\n\n\n\n\n\n/**\n * 业务入口\n * @param props config/style\n * @returns\n */\nvar RenderCenter = function RenderCenter(props) {\n  var config = props.config,\n    device = props.device,\n    onRef = props.onRef,\n    options = props.options;\n  var _ref = options || {},\n    rootConfig = _ref.rootConfig,\n    onStatusChange = _ref.onStatusChange,\n    metaTransform = _ref.metaTransform;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useState)(new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11___default())()),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(_useState, 2),\n    allMeta = _useState2[0],\n    setAllMeta = _useState2[1];\n  // const [language, setLanguage] = useState('zh_CN')\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useState)(false),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(_useState3, 2),\n    loadError = _useState4[0],\n    setLoadError = _useState4[1];\n  var _useReducer = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useReducer)(function (x) {\n      return x + 1;\n    }, 0),\n    _useReducer2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(_useReducer, 2),\n    forceUpdate = _useReducer2[1];\n  var _useFederatedModule = (0,_hooks_useFederationModule__WEBPACK_IMPORTED_MODULE_17__.useFederatedModule)('components', device === 'mobile' ? './Mob' : './Web'),\n    Component = _useFederatedModule.Component;\n  // const configRef = useRef({}) // 防止不必要的请求\n  var closeWindow = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useRef)({}); // 管理所有弹窗，以pageId为key\n\n  /**\n   * 抛出需要被调用的函数\n   */\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useImperativeHandle)(onRef, function () {\n    return _objectSpread(_objectSpread({}, _RenderHandle__WEBPACK_IMPORTED_MODULE_20__), {}, {\n      loadPage: loadPage,\n      cleanPage: cleanPage\n    });\n  }, []);\n\n  /**\n   * 更新meta数据\n   */\n  var setMetaData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function (meta) {\n    setAllMeta(new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_11___default())(meta)); // clone meta数据\n  }, []);\n\n  /**\n   * 刷新页面\n   * @param v 表示从哪里触发的刷新，无实际用途\n   */\n  var refreshPage = function refreshPage(info) {\n    var _info$param;\n    var rootId = _store_GlobalData__WEBPACK_IMPORTED_MODULE_18__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_16__.ROOT_PAGE);\n    var status = info === null || info === void 0 || (_info$param = info.param) === null || _info$param === void 0 ? void 0 : _info$param[0];\n    status = typeof status === 'number' ? ['addNew', 'edit', 'view'][status] : status;\n    if (info.pageId === rootId) {\n      forceUpdate();\n      onStatusChange === null || onStatusChange === void 0 || onStatusChange(status || 'addNew');\n    }\n  };\n\n  // 清除数据\n  var cleanPage = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function () {\n    _actions__WEBPACK_IMPORTED_MODULE_13__[\"default\"].clean();\n    _store_GlobalData__WEBPACK_IMPORTED_MODULE_18__[\"default\"].clean();\n  }, []);\n\n  /**\n   * 初始化，将init抛出给父组件调用\n   * @param config {appId, formId, targetFormId, pkId, procInstId}\n  */\n  var loadPage = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function (config) {\n    (0,_actions_fetchData__WEBPACK_IMPORTED_MODULE_14__.releaseRootPage)();\n    if (rootConfig) {\n      config.rootPageId = (rootConfig === null || rootConfig === void 0 ? void 0 : rootConfig.pageId) || '';\n    }\n    _store_GlobalData__WEBPACK_IMPORTED_MODULE_18__[\"default\"].set(_actions_type__WEBPACK_IMPORTED_MODULE_16__.ROOT_PAGE_CONFIG, config);\n    (0,_actions_fetchData__WEBPACK_IMPORTED_MODULE_14__.getConfig)(config).then(function (res) {\n      var pageId = res.pageId;\n      if (pageId) {\n        (0,_actions_doActions__WEBPACK_IMPORTED_MODULE_15__.doAction)(_actions_type__WEBPACK_IMPORTED_MODULE_16__.SHOW_FORM, [res], pageId); // 执行show form,以便请求数据\n      } else {\n        setLoadError(true);\n      }\n    });\n  }, [_actions_fetchData__WEBPACK_IMPORTED_MODULE_14__.releaseRootPage, _actions_fetchData__WEBPACK_IMPORTED_MODULE_14__.getConfig, _actions_doActions__WEBPACK_IMPORTED_MODULE_15__.doAction, options]);\n\n  // 发送用户行为数据\n  var sendUiData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function (data) {\n    var _options$sendUiData;\n    var pageId = data.pageId;\n    var config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_18__[\"default\"].getData(pageId, 'config');\n    options === null || options === void 0 || (_options$sendUiData = options.sendUiData) === null || _options$sendUiData === void 0 || _options$sendUiData.call(options, data, config);\n  }, [options === null || options === void 0 ? void 0 : options.sendUiData]);\n\n  // 系统消息函数映射表\n  var MAPPER = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useMemo)(function () {\n    if (Component) {\n      var showErrMsg = Component.showErrMsg,\n        showConfirm = Component.showConfirm,\n        showNotificationMsg = Component.showNotificationMsg,\n        showModalForm = Component.showModalForm,\n        showMessage = Component.showMessage;\n      return (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({}, _actions_type__WEBPACK_IMPORTED_MODULE_16__.SHOW_DIALOG, showModalForm), _actions_type__WEBPACK_IMPORTED_MODULE_16__.SHOW_CONFIRM, showConfirm), _actions_type__WEBPACK_IMPORTED_MODULE_16__.SHOW_ERR_MSG, showErrMsg), _actions_type__WEBPACK_IMPORTED_MODULE_16__.SHOW_MESSAGE, showMessage), _actions_type__WEBPACK_IMPORTED_MODULE_16__.SHOW_NOTIFICATION_MSG, showNotificationMsg);\n    } else {\n      return {};\n    }\n  }, [Component]);\n\n  /**\n   * 显示系统消息\n   */\n  var showSysMessage = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function (args) {\n    var _MAPPER$type, _closeWindow$current$, _closeWindow$current, _MAPPER$type2;\n    console.log('showSysMessage', args);\n    var type = args.type,\n      payload = args.payload;\n    switch (type) {\n      case _actions_type__WEBPACK_IMPORTED_MODULE_16__.SHOW_DIALOG:\n        // 打开弹窗\n        closeWindow.current[payload.pageId] = (_MAPPER$type = MAPPER[type]) === null || _MAPPER$type === void 0 ? void 0 : _MAPPER$type.call(MAPPER, payload, _ComponentModel__WEBPACK_IMPORTED_MODULE_19__);\n        break;\n      case _actions_type__WEBPACK_IMPORTED_MODULE_16__.CLOSE_FORM:\n        // 关闭表单，popup\n        (_closeWindow$current$ = (_closeWindow$current = closeWindow.current)[payload.pageId]) === null || _closeWindow$current$ === void 0 || _closeWindow$current$.call(_closeWindow$current);\n        delete closeWindow.current[payload.pageId]; // 关闭弹窗之后需要将函数还原成默认值\n        break;\n      default:\n        (_MAPPER$type2 = MAPPER[type]) === null || _MAPPER$type2 === void 0 || _MAPPER$type2.call(MAPPER, payload, _ComponentModel__WEBPACK_IMPORTED_MODULE_19__);\n        break;\n    }\n  }, [MAPPER]);\n\n  // showSysMessage里的Mapper会变，需要监听变化\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useEffect)(function () {\n    _utils_eventEmit__WEBPACK_IMPORTED_MODULE_21__[\"default\"].on(_actions_type__WEBPACK_IMPORTED_MODULE_16__.SYSTEM_MESSAGE, showSysMessage); // 侦听系统消息\n    return function () {\n      _utils_eventEmit__WEBPACK_IMPORTED_MODULE_21__[\"default\"].off(_actions_type__WEBPACK_IMPORTED_MODULE_16__.SYSTEM_MESSAGE, showSysMessage); // 取消系统消息\n    };\n  }, [showSysMessage]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useEffect)(function () {\n    _utils_eventEmit__WEBPACK_IMPORTED_MODULE_21__[\"default\"].on(_actions_type__WEBPACK_IMPORTED_MODULE_16__.UPDATE_META_DATA, setMetaData);\n    _utils_eventEmit__WEBPACK_IMPORTED_MODULE_21__[\"default\"].on(_actions_type__WEBPACK_IMPORTED_MODULE_16__.REFRESH_FORM_STATUS, refreshPage);\n    return function () {\n      _utils_eventEmit__WEBPACK_IMPORTED_MODULE_21__[\"default\"].off(_actions_type__WEBPACK_IMPORTED_MODULE_16__.UPDATE_META_DATA, setMetaData); // 取消监听\n      _utils_eventEmit__WEBPACK_IMPORTED_MODULE_21__[\"default\"].off(_actions_type__WEBPACK_IMPORTED_MODULE_16__.REFRESH_FORM_STATUS, refreshPage); // 取消监听\n      (0,_actions_fetchData__WEBPACK_IMPORTED_MODULE_14__.releaseRootPage)(); // 释放表单，弹窗时可以触发\n      // cleanPage() // 待验证\n    };\n  }, []);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useEffect)(function () {\n    _store_GlobalData__WEBPACK_IMPORTED_MODULE_18__[\"default\"].set(_actions_type__WEBPACK_IMPORTED_MODULE_16__.ROOT_PAGE_OPTIONS, options || {});\n  }, [options]);\n  // 不再使用依赖更新来触发页面刷新\n  // 使用loadPage函数由父组件主动发起刷新\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useLayoutEffect)(function () {\n    // 防止不必要请求\n    // if (!config || isEqual(configRef.current, config)) return\n    // configRef.current = config\n    config && loadPage(config);\n    options && _store_GlobalData__WEBPACK_IMPORTED_MODULE_18__[\"default\"].set(_actions_type__WEBPACK_IMPORTED_MODULE_16__.ROOT_PAGE_OPTIONS, options || {});\n  }, []);\n  console.log('rendercenter', Component);\n  if (loadError) {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(_error_SysError__WEBPACK_IMPORTED_MODULE_22__.NetError, null);\n  } else {\n    return (\n      // 减少渲染,长度>0及远程模块加载后渲染页面\n      allMeta.size > 0 && Component && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(Component.Main, {\n        meta: allMeta,\n        metaTransform: metaTransform,\n        model: _objectSpread(_objectSpread({}, _ComponentModel__WEBPACK_IMPORTED_MODULE_19__), {}, {\n          sendUiData: sendUiData\n        }),\n        pageId: _ComponentModel__WEBPACK_IMPORTED_MODULE_19__.getRootPageId(),\n        options: options\n      })\n    );\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (RenderCenter);\n\n//# sourceURL=webpack://bos-core/./src/render/RenderCenter.tsx?");

/***/ }),

/***/ "./src/render/RenderHandle.ts":
/*!************************************!*\
  !*** ./src/render/RenderHandle.ts ***!
  \************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   addAction: function() { return /* binding */ addAction; },\n/* harmony export */   addEventListener: function() { return /* binding */ addEventListener; },\n/* harmony export */   doAction: function() { return /* binding */ doAction; },\n/* harmony export */   getControlText: function() { return /* binding */ getControlText; },\n/* harmony export */   getPageStatus: function() { return /* binding */ getPageStatus; },\n/* harmony export */   invokeHandle: function() { return /* binding */ invokeHandle; },\n/* harmony export */   invokeWithForce: function() { return /* binding */ invokeWithForce; },\n/* harmony export */   publishEvent: function() { return /* binding */ publishEvent; },\n/* harmony export */   releasePage: function() { return /* binding */ releasePage; },\n/* harmony export */   setFormStatus: function() { return /* binding */ setFormStatus; },\n/* harmony export */   setPageStatus: function() { return /* binding */ setPageStatus; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _utils_eventEmit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.ts\");\n/* harmony import */ var _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/store/GlobalData */ \"./src/store/GlobalData.ts\");\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/actions */ \"./src/actions/index.ts\");\n/* harmony import */ var _actions_fetchData__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../actions/fetchData */ \"./src/actions/fetchData.ts\");\n/* harmony import */ var _actions_type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/actions/type */ \"./src/actions/type.ts\");\n/* harmony import */ var _actions_doActions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../actions/doActions */ \"./src/actions/doActions.ts\");\n\n\n\n\n\n\n\n\n\n// import { emitEvent } from './ComponentModel'\n\n/**\n * 存放父组件访问BOS-core的函数\n * @author cxf\n * @create 20220824\n * @example const bosRef = React.createRef(); bosRef.current.invokeHandle(...)\n */\n\n/**\n * 执行batchInvoke\n * @param action 指令名\n * @param controlId 控件ID\n * @param args 参数\n * @param postData post data\n * @param callback 回调\n * @param enforce 强制请求\n */\nfunction invokeHandle(action, controlId) {\n  var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n  var postData = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n  var callback = arguments.length > 4 ? arguments[4] : undefined;\n  var enforce = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n  var pageId = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_6__.ROOT_PAGE);\n  var loading = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getData(pageId, 'loading');\n  console.log('invokeHandle', loading);\n\n  // 页面含子页面加载完才能执行操作\n  if (!pageId) return;\n  if (loading !== 'onload') {\n    callback === null || callback === void 0 || callback({\n      errorCode: '1001'\n    }); // 页面加载中，不能发送请求\n    return;\n  }\n  // console.log('invokeHandle', GlobalData.get(pageId))\n  (0,_actions_fetchData__WEBPACK_IMPORTED_MODULE_5__.batchInvokeAction)({\n    action: action,\n    pageId: pageId,\n    controlId: controlId,\n    args: args,\n    postData: postData,\n    callback: callback,\n    enforce: enforce\n  });\n}\n\n/**\n * 带强制发送请求\n */\n\nfunction invokeWithForce(_ref) {\n  var action = _ref.action,\n    controlId = _ref.controlId,\n    _ref$args = _ref.args,\n    args = _ref$args === void 0 ? [] : _ref$args,\n    _ref$postData = _ref.postData,\n    postData = _ref$postData === void 0 ? [] : _ref$postData,\n    callback = _ref.callback,\n    _ref$enforce = _ref.enforce,\n    enforce = _ref$enforce === void 0 ? false : _ref$enforce;\n  var pageId = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_6__.ROOT_PAGE);\n  if (!pageId) return;\n  (0,_actions_fetchData__WEBPACK_IMPORTED_MODULE_5__.batchInvokeAction)({\n    action: action,\n    pageId: pageId,\n    controlId: controlId,\n    args: args,\n    postData: postData,\n    callback: callback,\n    enforce: enforce\n  });\n}\n/**\n * 添加业务指令侦听\n * @param action 指令名\n * @param controlId 控件ID\n * @param callback 回调\n */\nfunction addAction(action, controlId, callback) {\n  var pageId = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_6__.ROOT_PAGE);\n  if (!pageId) return;\n  _actions__WEBPACK_IMPORTED_MODULE_4__[\"default\"].regist(action, pageId, controlId, callback);\n}\n\n/**\n * 事件侦听\n * @param key 事件名\n * @param callback 回调\n */\nfunction addEventListener(key, callback) {\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_2__[\"default\"].on(key, callback);\n  return function () {\n    _utils_eventEmit__WEBPACK_IMPORTED_MODULE_2__[\"default\"].off(key, callback);\n  };\n}\n\n/**\n * 事件发布\n * @param key 事件名\n * @param value 值\n * @param save 数据是否全局保存，用于解决发布时还未注册侦听\n */\nfunction publishEvent(key, value) {\n  var save = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n  // console.log('emit', key, value)\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_2__[\"default\"].emit(key, value);\n  if (save) _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].set(key, value); // 保存数据，解决组件未注册时，指令已经发布问题\n}\n\n/**\n * 设置所有页面统一状态\n * @param key 页面状态\n */\nfunction setPageStatus() {\n  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'edit';\n  var allPageId = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getAllPagesId();\n  var root = [];\n  if (!allPageId.length) return;\n  allPageId.forEach(function (item) {\n    var config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getData(item, 'config');\n    var showType = config.openStyle.showType;\n    if (showType === _actions_type__WEBPACK_IMPORTED_MODULE_6__.SHOW_TYPE.Modal || showType === _actions_type__WEBPACK_IMPORTED_MODULE_6__.SHOW_TYPE.Default) {\n      root.push(item);\n    }\n    config.status = key;\n    _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setData(item, 'config', config);\n  });\n  root.forEach(function (item) {\n    return _utils_eventEmit__WEBPACK_IMPORTED_MODULE_2__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_6__.REFRESH_FORM_STATUS, {\n      pageId: item,\n      param: [key]\n    });\n  });\n}\n/**\n * 设置表单状态\n * @param key 状态\n */\nfunction setFormStatus() {\n  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'edit';\n  var pageId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_6__.ROOT_PAGE);\n  // console.log('setPageStatus', key, pageId)\n  if (!pageId) return false;\n  var allPageId = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getAllPagesId();\n  // const meta = GlobalData.getAllMeta()\n  var config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getData(pageId, 'config');\n  var showType = config.openStyle.showType;\n  config.status = key;\n  _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setData(pageId, 'config', config);\n  var isParent = showType === _actions_type__WEBPACK_IMPORTED_MODULE_6__.SHOW_TYPE.Modal || showType === _actions_type__WEBPACK_IMPORTED_MODULE_6__.SHOW_TYPE.Default;\n  // const rootId = isParent ? pageId : config.parentPageId\n  // 遍历所有form\n  if (isParent) {\n    allPageId.forEach(function (item) {\n      var conf = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getData(item, 'config');\n      // 当前showtype 为0时，过滤掉为6的子节点\n      if (conf.parentPageId === pageId && conf.openStyle.showType !== _actions_type__WEBPACK_IMPORTED_MODULE_6__.SHOW_TYPE.Modal) {\n        conf.status = key;\n        _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setData(item, 'config', conf);\n      }\n    });\n  } else {\n    // 为子节点时，同时更新父节点状态\n    var parentConfig = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getData(config.parentPageId, 'config');\n    parentConfig.status = key;\n    _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setData(config.parentPageId, 'config', parentConfig);\n  }\n  _utils_eventEmit__WEBPACK_IMPORTED_MODULE_2__[\"default\"].emit(_actions_type__WEBPACK_IMPORTED_MODULE_6__.REFRESH_FORM_STATUS, isParent ? {\n    pageId: pageId,\n    param: [key]\n  } : {\n    pageId: config.parentPageId,\n    param: [key]\n  });\n}\n/**\n * 设置页面状态\n * @param key 页面状态\n */\nfunction getPageStatus() {\n  var root = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_6__.ROOT_PAGE);\n  if (!root) return false;\n  var config = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getData(root, 'config');\n  return config.status;\n}\n\n/**\n * 释放表单\n */\nfunction releasePage() {\n  (0,_actions_fetchData__WEBPACK_IMPORTED_MODULE_5__.releaseRootPage)();\n}\n\n/**\n * 根据传入的info,返回相应语言文本\n * @param info 语言对像\n * @returns string\n */\nfunction getControlText(info) {\n  var lang = _store_GlobalData__WEBPACK_IMPORTED_MODULE_3__[\"default\"].get(_actions_type__WEBPACK_IMPORTED_MODULE_6__.USER_LANGUAGE) || 'zh_CN';\n  return (info === null || info === void 0 ? void 0 : info[lang]) || '';\n}\n\n/**\n * 发送页面指令\n * @param action 页面指令\n * @param value 值\n * @param pageId 页面ID\n */\nfunction doAction(action, value) {\n  var pageId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n  (0,_actions_doActions__WEBPACK_IMPORTED_MODULE_7__.doAction)(action, value, pageId);\n}\n\n//# sourceURL=webpack://bos-core/./src/render/RenderHandle.ts?");

/***/ }),

/***/ "./src/store/GlobalData.ts":
/*!*********************************!*\
  !*** ./src/store/GlobalData.ts ***!
  \*********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_keys__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_keys__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_keys__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _actions_type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../actions/type */ \"./src/actions/type.ts\");\n\n\n\n\n\n\n\n\n\n\n\n/**\n * 全局数据\n * @author cxf\n * @time 20220807\n */\nvar GlobalData = /*#__PURE__*/function () {\n  // dom树\n  function GlobalData() {\n    (0,_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this, GlobalData);\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, \"instance\", void 0);\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, \"shareData\", void 0);\n    // 全局数据\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, \"forms\", void 0);\n    // form列表\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this, \"metaData\", void 0);\n    this.shareData = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())(); // 全局数据列表\n    this.forms = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())(); // 全局form列表\n    this.instance = null; // 实例\n    this.metaData = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n  }\n\n  /**\n   * 获取实例\n   * @returns\n   */\n  (0,_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(GlobalData, [{\n    key: \"getInstance\",\n    value: function getInstance() {\n      if (!this.instance) {\n        this.instance = new GlobalData();\n      }\n      return this.instance;\n    }\n\n    /**\n     * 设置全局数据\n     * @param key 关键字\n     * @param value 值\n     */\n  }, {\n    key: \"set\",\n    value: function set(key, value) {\n      this.shareData.set(key, value);\n    }\n\n    /**\n     * 获取全局数据\n     * @param key 关键字\n     * @returns value\n     */\n  }, {\n    key: \"get\",\n    value: function get(key) {\n      return this.shareData.get(key);\n    }\n\n    /**\n     * 根据关键字删除缓存数据\n     * @param key 关键字\n     * @returns value\n     */\n  }, {\n    key: \"del\",\n    value: function del(key) {\n      return this.shareData.delete(key);\n    }\n  }, {\n    key: \"clean\",\n    value: function clean() {\n      this.shareData = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n      this.forms = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n      this.metaData = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n    }\n\n    /**\n     * 设置forms数据\n     * @param pageId 页面ID\n     * @param type 类型, meta,config,data,post,lock\n     * @param value 值\n     */\n  }, {\n    key: \"setData\",\n    value: function setData(pageId, type, value) {\n      var data = this.forms.get(pageId) || {};\n      data[type] = value;\n      this.forms.set(pageId, data);\n    }\n\n    /**\n     * 获取forms数据\n     * @param pageId 关键字\n     * @param type 关键字\n     * @returns value\n     */\n  }, {\n    key: \"getData\",\n    value: function getData(pageId, type) {\n      return !type ? this.forms.get(pageId) : this.forms.get(pageId)[type];\n    }\n\n    // 获取所有页面ID\n  }, {\n    key: \"getAllPagesId\",\n    value: function getAllPagesId() {\n      var _context;\n      return (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_babel_runtime_corejs3_core_js_stable_instance_keys__WEBPACK_IMPORTED_MODULE_7___default()(_context = this.forms).call(_context));\n    }\n\n    // 获取所有meta信息\n  }, {\n    key: \"getAllMeta\",\n    value: function getAllMeta() {\n      return this.metaData;\n    }\n\n    // 根据控件ID，pageId获取meta数据\n  }, {\n    key: \"getControlMetaById\",\n    value: function getControlMetaById(pageId, controlId) {\n      var _context2;\n      return this.metaData.get(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default()(_context2 = \"\".concat(pageId, \"-\")).call(_context2, controlId));\n    }\n\n    /**\n     * 删除forms数据\n     * @param pageId 关键字\n     * @param type 关键字\n     * @returns value\n     */\n  }, {\n    key: \"delData\",\n    value: function delData(pageId, type) {\n      if (!type) {\n        this.forms.delete(pageId);\n      } else {\n        var form = this.forms.get(pageId);\n        delete form[type];\n      }\n    }\n\n    /**\n     * 删除所有数据\n     */\n  }, {\n    key: \"delAllData\",\n    value: function delAllData() {\n      this.forms = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n      this.metaData = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n      this.shareData = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_6___default())();\n    }\n\n    /**\n     * 设置meta树\n     * @param meta meta数据\n     * @param parentId 父节点ID\n     * @param pageId 当前控件所处的pageId\n     */\n  }, {\n    key: \"formatMetaData\",\n    value: function formatMetaData(meta) {\n      var parentId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n      var pageId = arguments.length > 2 ? arguments[2] : undefined;\n      // const flat = this.flattenMeta([meta], parentId, pageId)\n      // this.metaData = this.metaData.concat(flat) // 合并数据\n      // console.log('formatMetaData', meta)\n      this.flattenMeta([meta], parentId, pageId);\n      // console.log('formatMetaData', this.metaData)\n      return this.metaData;\n    }\n\n    /**\n     * 获取所有post参数\n     * @param pageId 当前控件所处ID\n     * @returns Array\n     */\n  }, {\n    key: \"getPostData\",\n    value: function getPostData(pageId) {\n      var _form$post,\n        _this = this;\n      var postData = [{}, []];\n      var form = this.forms.get(pageId);\n      if (form !== null && form !== void 0 && form.post && (form === null || form === void 0 || (_form$post = form.post) === null || _form$post === void 0 ? void 0 : _form$post.length) > 0) {\n        postData = this.formatPost(form);\n      }\n      this.forms.forEach(function (item, key) {\n        var _item$config;\n        if ((item === null || item === void 0 || (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.parentPageId) === pageId) {\n          var post = {};\n          post[key] = _this.formatPost(item);\n          postData.push(post);\n        }\n      });\n      return postData;\n    }\n\n    /**\n     * 格式化post数据\n     * @param node form数据，含post,data,meta,config信息\n     */\n  }, {\n    key: \"formatPost\",\n    value: function formatPost(node) {\n      var param = [];\n      node.post && node.post.forEach(function (id) {\n        var data = node.data[id];\n        param.push({\n          k: id,\n          v: data.value,\n          r: -1\n        });\n      });\n      return [{}, param];\n    }\n\n    /**\n     * 扁平化数据\n     * @param meta 需要扁平化的元数据\n     * @param parentId 父节点容器id\n     * @param pageId 当前控件所处pageId\n     * @param result 扁平化后的数据, 非必填\n     */\n  }, {\n    key: \"flattenMeta\",\n    value: function flattenMeta(meta, parentId, pageId) {\n      var _this2 = this;\n      // form数据\n      var formData = this.forms.get(pageId);\n      // 初始化data数据\n      formData.data = (formData === null || formData === void 0 ? void 0 : formData.data) || {};\n      // 轮询扁平化数据\n      meta.forEach(function (control) {\n        // control有可能是空对象\n        if (_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9___default()(control).length) {\n          var _formData$config, _formData$config2, _context3;\n          control.parentId = parentId; // 父控件ID\n          // 模态弹窗，应断开showform的父子关系\n          control.parentPageId = ((_formData$config = formData.config) === null || _formData$config === void 0 || (_formData$config = _formData$config.openStyle) === null || _formData$config === void 0 ? void 0 : _formData$config.showType) !== _actions_type__WEBPACK_IMPORTED_MODULE_10__.SHOW_TYPE.Modal ? ((_formData$config2 = formData.config) === null || _formData$config2 === void 0 ? void 0 : _formData$config2.parentPageId) || '' : ''; // 父节点PAGE ID\n          control.pageId = pageId; // 当前PAGE ID\n          // 控件ID->控件类型映射\n          if (control.id) formData.data[control.id] = {\n            type: control.type\n          };\n          _this2.forms.set(pageId, formData);\n          if (!!(control !== null && control !== void 0 && control.items) && !!(control !== null && control !== void 0 && control.items.length)) {\n            // 如果有子节点再次扁平化处理\n            // result.concat(this.flattenMeta(control.items, control.id, pageId, result))\n            _this2.flattenMeta(control.items, control.id, pageId);\n          }\n          delete control.items;\n          // result.push(control)\n          // 关键字必须使用pageId+controlId\n          var key = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default()(_context3 = \"\".concat(pageId, \"-\")).call(_context3, control.id);\n          _this2.metaData.set(key, control);\n        }\n      });\n      // return result\n    }\n  }]);\n  return GlobalData;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (new GlobalData().getInstance());\n\n//# sourceURL=webpack://bos-core/./src/store/GlobalData.ts?");

/***/ }),

/***/ "./src/utils/eventEmit.ts":
/*!********************************!*\
  !*** ./src/utils/eventEmit.ts ***!
  \********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n\n\n/**\n * 发布订阅者类\n * @author cxf\n * @time 20220807\n */\nvar EventEmit = /*#__PURE__*/function () {\n  // 实例\n  function EventEmit() {\n    (0,_babel_runtime_corejs3_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this, EventEmit);\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, \"listener\", void 0);\n    // 监听列表\n    (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this, \"instance\", void 0);\n    this.listener = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_5___default())();\n    this.instance = null;\n  }\n\n  // 获取单例\n  (0,_babel_runtime_corejs3_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(EventEmit, [{\n    key: \"getInstance\",\n    value: function getInstance() {\n      if (!this.instance) {\n        this.instance = new EventEmit();\n      }\n      return this.instance;\n    }\n\n    /**\n    * 监听\n    * @param type 关键字\n    * @param hendle 回调函数\n    */\n  }, {\n    key: \"on\",\n    value: function on(type, handle) {\n      var arr = this.listener.get(type);\n      if (!arr) {\n        this.listener.set(type, [handle]);\n      } else {\n        arr.push(handle);\n        this.listener.set(type, arr);\n      }\n    }\n\n    /**\n    * 发布\n    * @param type 关键字\n    * @param params 要发布的内容\n    */\n  }, {\n    key: \"emit\",\n    value: function emit(type, params) {\n      var arr = this.listener.get(type);\n      if (arr) {\n        arr.forEach(function (handle) {\n          return handle(params);\n        });\n      }\n    }\n\n    /**\n    * 取消监听\n    * @param type 关键字\n    * @param handle 监听时的回调函数\n    */\n  }, {\n    key: \"off\",\n    value: function off(type, handle) {\n      var arr = this.listener.get(type);\n      if (arr) {\n        _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_6___default()(arr).call(arr, _babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_7___default()(arr).call(arr, handle) >>> 0, 1);\n      }\n    }\n  }]);\n  return EventEmit;\n}();\n/* harmony default export */ __webpack_exports__[\"default\"] = (new EventEmit().getInstance());\n\n//# sourceURL=webpack://bos-core/./src/utils/eventEmit.ts?");

/***/ }),

/***/ "./src/utils/index.ts":
/*!****************************!*\
  !*** ./src/utils/index.ts ***!
  \****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   dispatchCustomEvent: function() { return /* binding */ dispatchCustomEvent; },\n/* harmony export */   getRandom: function() { return /* binding */ getRandom; },\n/* harmony export */   getRandomValues: function() { return /* binding */ getRandomValues; },\n/* harmony export */   openUrlAction: function() { return /* binding */ openUrlAction; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array-buffer.slice.js */ \"../../node_modules/core-js/modules/es.array-buffer.slice.js\");\n/* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.match.js */ \"../../node_modules/core-js/modules/es.string.match.js\");\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n/* harmony import */ var core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_typed_array_uint32_array_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.typed-array.uint32-array.js */ \"../../node_modules/core-js/modules/es.typed-array.uint32-array.js\");\n/* harmony import */ var core_js_modules_es_typed_array_uint32_array_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_uint32_array_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.typed-array.copy-within.js */ \"../../node_modules/core-js/modules/es.typed-array.copy-within.js\");\n/* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.typed-array.every.js */ \"../../node_modules/core-js/modules/es.typed-array.every.js\");\n/* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.typed-array.fill.js */ \"../../node_modules/core-js/modules/es.typed-array.fill.js\");\n/* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.typed-array.filter.js */ \"../../node_modules/core-js/modules/es.typed-array.filter.js\");\n/* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.typed-array.find.js */ \"../../node_modules/core-js/modules/es.typed-array.find.js\");\n/* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.typed-array.find-index.js */ \"../../node_modules/core-js/modules/es.typed-array.find-index.js\");\n/* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.typed-array.for-each.js */ \"../../node_modules/core-js/modules/es.typed-array.for-each.js\");\n/* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.typed-array.includes.js */ \"../../node_modules/core-js/modules/es.typed-array.includes.js\");\n/* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.typed-array.index-of.js */ \"../../node_modules/core-js/modules/es.typed-array.index-of.js\");\n/* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.typed-array.iterator.js */ \"../../node_modules/core-js/modules/es.typed-array.iterator.js\");\n/* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.typed-array.join.js */ \"../../node_modules/core-js/modules/es.typed-array.join.js\");\n/* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.typed-array.last-index-of.js */ \"../../node_modules/core-js/modules/es.typed-array.last-index-of.js\");\n/* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.typed-array.map.js */ \"../../node_modules/core-js/modules/es.typed-array.map.js\");\n/* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/es.typed-array.reduce.js */ \"../../node_modules/core-js/modules/es.typed-array.reduce.js\");\n/* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! core-js/modules/es.typed-array.reduce-right.js */ \"../../node_modules/core-js/modules/es.typed-array.reduce-right.js\");\n/* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! core-js/modules/es.typed-array.reverse.js */ \"../../node_modules/core-js/modules/es.typed-array.reverse.js\");\n/* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_24__);\n/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! core-js/modules/es.typed-array.set.js */ \"../../node_modules/core-js/modules/es.typed-array.set.js\");\n/* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_25__);\n/* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! core-js/modules/es.typed-array.slice.js */ \"../../node_modules/core-js/modules/es.typed-array.slice.js\");\n/* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_26__);\n/* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! core-js/modules/es.typed-array.some.js */ \"../../node_modules/core-js/modules/es.typed-array.some.js\");\n/* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_27__);\n/* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! core-js/modules/es.typed-array.sort.js */ \"../../node_modules/core-js/modules/es.typed-array.sort.js\");\n/* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_28__);\n/* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! core-js/modules/es.typed-array.subarray.js */ \"../../node_modules/core-js/modules/es.typed-array.subarray.js\");\n/* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_29__);\n/* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! core-js/modules/es.typed-array.to-locale-string.js */ \"../../node_modules/core-js/modules/es.typed-array.to-locale-string.js\");\n/* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_30__);\n/* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! core-js/modules/es.typed-array.to-string.js */ \"../../node_modules/core-js/modules/es.typed-array.to-string.js\");\n/* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_31__);\nvar _window$location$sear;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-06-25 09:33:01\n * @LastEditTime: 2023-09-14 11:18:06\n * @Last Modified by: jianhang_he\n */\n/**\n * 生成请求flag\n * @param length 长度\n * @returns\n */\nfunction getRandom() {\n  var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16;\n  var str = Math.random().toString(36).substr(2);\n  if (str.length >= length) {\n    return str.substr(0, length);\n  }\n  str += getRandom(length - str.length);\n  return str;\n}\nvar isIE = function isIE() {\n  return !!navigator.userAgent.match(/Trident\\/(\\d+)/);\n};\nvar isEdge = function isEdge() {\n  return !!navigator.userAgent.match(/Edge\\/(\\d+)/);\n};\nvar KD_DATA_CENTER = (_window$location$sear = window.location.search) === null || _window$location$sear === void 0 || (_window$location$sear = _window$location$sear.match(/(^|&|\\?)kdcdc=([^&]*)(&|$)/i)) === null || _window$location$sear === void 0 ? void 0 : _window$location$sear[2]; // 数据中心\n\nfunction openUrlAction(url) {\n  var newWindow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n  var newWndStr = '_blank';\n  var newUrl = url;\n  if (KD_DATA_CENTER) {\n    var str = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(url).call(url, '?') ? '&' : '?';\n    newUrl = url + str + 'kdcdc=' + KD_DATA_CENTER;\n  }\n  if (!newWindow) {\n    newWndStr = '_self';\n  }\n  if (isIE() || isEdge()) {\n    // 解决window.open在ie无法获取referrer问题\n    var linkEle = document.createElement('a');\n    linkEle.href = newUrl;\n    linkEle.target = newWndStr;\n    document.body.appendChild(linkEle);\n    linkEle.click();\n    document.body.removeChild(linkEle);\n    return;\n  }\n  window.open(newUrl, newWndStr); // 打开失败或者被拦截，newWnd=null\n}\nfunction getRandomValues() {\n  var crypto = window.crypto || window.webkitCrypto || window.mozCrypto || window.oCrypto || window.msCrypto;\n  return crypto.getRandomValues(new Uint32Array(1))[0];\n}\n\n/**\n * 发布自定义事件（解决IE下没有Event构造函数）\n * @param key\n */\nvar dispatchCustomEvent = function dispatchCustomEvent(key) {\n  var event = null;\n  if (typeof Event === 'function') {\n    event = new Event(key);\n  } else {\n    event = document.createEvent('Event');\n    event.initEvent(key, true, true);\n  }\n  window.dispatchEvent(event);\n};\n\n//# sourceURL=webpack://bos-core/./src/utils/index.ts?");

/***/ }),

/***/ "./src/utils/long.js":
/*!***************************!*\
  !*** ./src/utils/long.js ***!
  \***************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _indexOfInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\");\nvar _parseInt = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-int */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.sub.js */ \"../../node_modules/core-js/modules/es.string.sub.js\");\nmodule.exports = Long;\n\n/**\n * wasm optimizations, to do native i64 multiplication and divide\n */\nvar wasm = null;\n/*\ntry {\n  wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([\n    0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11\n  ])), {}).exports;\n} catch (e) {\n  // no wasm support :(\n}\n*/\n/**\n * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.\n *  See the from* functions below for more convenient ways of constructing Longs.\n * @exports Long\n * @class A Long class for representing a 64 bit two's-complement integer value.\n * @param {number} low The low (signed) 32 bits of the long\n * @param {number} high The high (signed) 32 bits of the long\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\n * @constructor\n */\nfunction Long(low, high, unsigned) {\n  /**\n     * The low 32 bits as a signed value.\n     * @type {number}\n     */\n  this.low = low | 0;\n\n  /**\n     * The high 32 bits as a signed value.\n     * @type {number}\n     */\n  this.high = high | 0;\n\n  /**\n     * Whether unsigned or not.\n     * @type {boolean}\n     */\n  this.unsigned = !!unsigned;\n}\n\n// The internal representation of a long is the two given signed, 32-bit values.\n// We use 32-bit pieces because these are the size of integers on which\n// Javascript performs bit-operations.  For operations like addition and\n// multiplication, we split each number into 16 bit pieces, which can easily be\n// multiplied within Javascript's floating-point representation without overflow\n// or change in sign.\n//\n// In the algorithms below, we frequently reduce the negative case to the\n// positive case by negating the input(s) and then post-processing the result.\n// Note that we must ALWAYS check specially whether those values are MIN_VALUE\n// (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as\n// a positive number, it overflows back into a negative).  Not handling this\n// case would often result in infinite recursion.\n//\n// Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*\n// methods on which they depend.\n\n/**\n * An indicator used to reliably determine if an object is a Long or not.\n * @type {boolean}\n * @const\n * @private\n */\n// Long.prototype.__isLong__\n\n_Object$defineProperty(Long.prototype, '__isLong__', {\n  value: true\n});\n\n/**\n * @function\n * @param {*} obj Object\n * @returns {boolean}\n * @inner\n */\nfunction isLong(obj) {\n  return (obj && obj.__isLong__) === true;\n}\n\n/**\n * Tests if the specified object is a Long.\n * @function\n * @param {*} obj Object\n * @returns {boolean}\n */\nLong.isLong = isLong;\n\n/**\n * A cache of the Long representations of small integer values.\n * @type {!Object}\n * @inner\n */\nvar INT_CACHE = {};\n\n/**\n * A cache of the Long representations of small unsigned integer values.\n * @type {!Object}\n * @inner\n */\nvar UINT_CACHE = {};\n\n/**\n * @param {number} value\n * @param {boolean=} unsigned\n * @returns {!Long}\n * @inner\n */\nfunction fromInt(value, unsigned) {\n  var obj, cachedObj, cache;\n  if (unsigned) {\n    value >>>= 0;\n    if (cache = value >= 0 && value < 256) {\n      cachedObj = UINT_CACHE[value];\n      if (cachedObj) {\n        return cachedObj;\n      }\n    }\n    obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);\n    if (cache) {\n      UINT_CACHE[value] = obj;\n    }\n    return obj;\n  } else {\n    value |= 0;\n    if (cache = value >= -128 && value < 128) {\n      cachedObj = INT_CACHE[value];\n      if (cachedObj) {\n        return cachedObj;\n      }\n    }\n    obj = fromBits(value, value < 0 ? -1 : 0, false);\n    if (cache) {\n      INT_CACHE[value] = obj;\n    }\n    return obj;\n  }\n}\n\n/**\n * Returns a Long representing the given 32 bit integer value.\n * @function\n * @param {number} value The 32 bit integer in question\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\n * @returns {!Long} The corresponding Long value\n */\nLong.fromInt = fromInt;\n\n/**\n * @param {number} value\n * @param {boolean=} unsigned\n * @returns {!Long}\n * @inner\n */\nfunction fromNumber(value, unsigned) {\n  if (isNaN(value)) {\n    return unsigned ? UZERO : ZERO;\n  }\n  if (unsigned) {\n    if (value < 0) {\n      return UZERO;\n    }\n    if (value >= TWO_PWR_64_DBL) {\n      return MAX_UNSIGNED_VALUE;\n    }\n  } else {\n    if (value <= -TWO_PWR_63_DBL) {\n      return MIN_VALUE;\n    }\n    if (value + 1 >= TWO_PWR_63_DBL) {\n      return MAX_VALUE;\n    }\n  }\n  if (value < 0) {\n    return fromNumber(-value, unsigned).neg();\n  }\n  return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);\n}\n\n/**\n * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.\n * @function\n * @param {number} value The number in question\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\n * @returns {!Long} The corresponding Long value\n */\nLong.fromNumber = fromNumber;\n\n/**\n * @param {number} lowBits\n * @param {number} highBits\n * @param {boolean=} unsigned\n * @returns {!Long}\n * @inner\n */\nfunction fromBits(lowBits, highBits, unsigned) {\n  return new Long(lowBits, highBits, unsigned);\n}\n\n/**\n * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is\n *  assumed to use 32 bits.\n * @function\n * @param {number} lowBits The low 32 bits\n * @param {number} highBits The high 32 bits\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\n * @returns {!Long} The corresponding Long value\n */\nLong.fromBits = fromBits;\n\n/**\n * @function\n * @param {number} base\n * @param {number} exponent\n * @returns {number}\n * @inner\n */\nvar pow_dbl = Math.pow; // Used 4 times (4*8 to 15+4)\n\n/**\n * @param {string} str\n * @param {(boolean|number)=} unsigned\n * @param {number=} radix\n * @returns {!Long}\n * @inner\n */\nfunction fromString(str, unsigned, radix) {\n  if (str.length === 0) {\n    throw Error('empty string');\n  }\n  if (str === 'NaN' || str === 'Infinity' || str === '+Infinity' || str === '-Infinity') {\n    return ZERO;\n  }\n  if (typeof unsigned === 'number') {\n    // For goog.math.long compatibility\n    radix = unsigned;\n    unsigned = false;\n  } else {\n    unsigned = !!unsigned;\n  }\n  radix = radix || 10;\n  if (radix < 2 || radix > 36) {\n    throw RangeError('radix');\n  }\n  var p;\n  if ((p = _indexOfInstanceProperty(str).call(str, '-')) > 0) {\n    throw Error('interior hyphen');\n  } else if (p === 0) {\n    return fromString(str.substring(1), unsigned, radix).neg();\n  }\n\n  // Do several (8) digits each time through the loop, so as to\n  // minimize the calls to the very expensive emulated div.\n  var radixToPower = fromNumber(pow_dbl(radix, 8));\n  var result = ZERO;\n  for (var i = 0; i < str.length; i += 8) {\n    var size = Math.min(8, str.length - i);\n    var value = _parseInt(str.substring(i, i + size), radix);\n    if (size < 8) {\n      var power = fromNumber(pow_dbl(radix, size));\n      result = result.mul(power).add(fromNumber(value));\n    } else {\n      result = result.mul(radixToPower);\n      result = result.add(fromNumber(value));\n    }\n  }\n  result.unsigned = unsigned;\n  return result;\n}\n\n/**\n * Returns a Long representation of the given string, written using the specified radix.\n * @function\n * @param {string} str The textual representation of the Long\n * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed\n * @param {number=} radix The radix in which the text is written (2-36), defaults to 10\n * @returns {!Long} The corresponding Long value\n */\nLong.fromString = fromString;\n\n/**\n * @function\n * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val\n * @param {boolean=} unsigned\n * @returns {!Long}\n * @inner\n */\nfunction fromValue(val, unsigned) {\n  if (typeof val === 'number') {\n    return fromNumber(val, unsigned);\n  }\n  if (typeof val === 'string') {\n    return fromString(val, unsigned);\n  }\n  // Throws for non-objects, converts non-instanceof Long:\n  return fromBits(val.low, val.high, typeof unsigned === 'boolean' ? unsigned : val.unsigned);\n}\n\n/**\n * Converts the specified value to a Long using the appropriate from* function for its type.\n * @function\n * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val Value\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\n * @returns {!Long}\n */\nLong.fromValue = fromValue;\n\n// NOTE: the compiler should inline these constant values below and then remove these variables, so there should be\n// no runtime penalty for these.\n\n/**\n * @type {number}\n * @const\n * @inner\n */\nvar TWO_PWR_16_DBL = 1 << 16;\n\n/**\n * @type {number}\n * @const\n * @inner\n */\nvar TWO_PWR_24_DBL = 1 << 24;\n\n/**\n * @type {number}\n * @const\n * @inner\n */\nvar TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;\n\n/**\n * @type {number}\n * @const\n * @inner\n */\nvar TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;\n\n/**\n * @type {number}\n * @const\n * @inner\n */\nvar TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;\n\n/**\n * @type {!Long}\n * @const\n * @inner\n */\nvar TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);\n\n/**\n * @type {!Long}\n * @inner\n */\nvar ZERO = fromInt(0);\n\n/**\n * Signed zero.\n * @type {!Long}\n */\nLong.ZERO = ZERO;\n\n/**\n * @type {!Long}\n * @inner\n */\nvar UZERO = fromInt(0, true);\n\n/**\n * Unsigned zero.\n * @type {!Long}\n */\nLong.UZERO = UZERO;\n\n/**\n * @type {!Long}\n * @inner\n */\nvar ONE = fromInt(1);\n\n/**\n * Signed one.\n * @type {!Long}\n */\nLong.ONE = ONE;\n\n/**\n * @type {!Long}\n * @inner\n */\nvar UONE = fromInt(1, true);\n\n/**\n * Unsigned one.\n * @type {!Long}\n */\nLong.UONE = UONE;\n\n/**\n * @type {!Long}\n * @inner\n */\nvar NEG_ONE = fromInt(-1);\n\n/**\n * Signed negative one.\n * @type {!Long}\n */\nLong.NEG_ONE = NEG_ONE;\n\n/**\n * @type {!Long}\n * @inner\n */\nvar MAX_VALUE = fromBits(0xFFFFFFFF | 0, 0x7FFFFFFF | 0, false);\n\n/**\n * Maximum signed value.\n * @type {!Long}\n */\nLong.MAX_VALUE = MAX_VALUE;\n\n/**\n * @type {!Long}\n * @inner\n */\nvar MAX_UNSIGNED_VALUE = fromBits(0xFFFFFFFF | 0, 0xFFFFFFFF | 0, true);\n\n/**\n * Maximum unsigned value.\n * @type {!Long}\n */\nLong.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;\n\n/**\n * @type {!Long}\n * @inner\n */\nvar MIN_VALUE = fromBits(0, 0x80000000 | 0, false);\n\n/**\n * Minimum signed value.\n * @type {!Long}\n */\nLong.MIN_VALUE = MIN_VALUE;\n\n/**\n * @alias Long.prototype\n * @inner\n */\nvar LongPrototype = Long.prototype;\n\n/**\n * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.\n * @this {!Long}\n * @returns {number}\n */\nLongPrototype.toInt = function toInt() {\n  return this.unsigned ? this.low >>> 0 : this.low;\n};\n\n/**\n * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).\n * @this {!Long}\n * @returns {number}\n */\nLongPrototype.toNumber = function toNumber() {\n  if (this.unsigned) {\n    return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);\n  }\n  return this.high * TWO_PWR_32_DBL + (this.low >>> 0);\n};\n\n/**\n * Converts the Long to a string written in the specified radix.\n * @this {!Long}\n * @param {number=} radix Radix (2-36), defaults to 10\n * @returns {string}\n * @override\n * @throws {RangeError} If `radix` is out of range\n */\nLongPrototype.toString = function toString(radix) {\n  radix = radix || 10;\n  if (radix < 2 || radix > 36) {\n    throw RangeError('radix');\n  }\n  if (this.isZero()) {\n    return '0';\n  }\n  if (this.isNegative()) {\n    // Unsigned Longs are never negative\n    if (this.eq(MIN_VALUE)) {\n      // We need to change the Long value before it can be negated, so we remove\n      // the bottom-most digit in this base and then recurse to do the rest.\n      var radixLong = fromNumber(radix);\n      var div = this.div(radixLong);\n      var rem1 = div.mul(radixLong).sub(this);\n      return div.toString(radix) + rem1.toInt().toString(radix);\n    } else {\n      return '-' + this.neg().toString(radix);\n    }\n  }\n\n  // Do several (6) digits each time through the loop, so as to\n  // minimize the calls to the very expensive emulated div.\n  var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned);\n  var rem = this;\n  var result = '';\n  while (true) {\n    var remDiv = rem.div(radixToPower);\n    var intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0;\n    var digits = intval.toString(radix);\n    rem = remDiv;\n    if (rem.isZero()) {\n      return digits + result;\n    } else {\n      while (digits.length < 6) {\n        digits = '0' + digits;\n      }\n      result = '' + digits + result;\n    }\n  }\n};\n\n/**\n * Gets the high 32 bits as a signed integer.\n * @this {!Long}\n * @returns {number} Signed high bits\n */\nLongPrototype.getHighBits = function getHighBits() {\n  return this.high;\n};\n\n/**\n * Gets the high 32 bits as an unsigned integer.\n * @this {!Long}\n * @returns {number} Unsigned high bits\n */\nLongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {\n  return this.high >>> 0;\n};\n\n/**\n * Gets the low 32 bits as a signed integer.\n * @this {!Long}\n * @returns {number} Signed low bits\n */\nLongPrototype.getLowBits = function getLowBits() {\n  return this.low;\n};\n\n/**\n * Gets the low 32 bits as an unsigned integer.\n * @this {!Long}\n * @returns {number} Unsigned low bits\n */\nLongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {\n  return this.low >>> 0;\n};\n\n/**\n * Gets the number of bits needed to represent the absolute value of this Long.\n * @this {!Long}\n * @returns {number}\n */\nLongPrototype.getNumBitsAbs = function getNumBitsAbs() {\n  if (this.isNegative())\n    // Unsigned Longs are never negative\n    {\n      return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();\n    }\n  var val = this.high != 0 ? this.high : this.low;\n  for (var bit = 31; bit > 0; bit--) {\n    if ((val & 1 << bit) != 0) {\n      break;\n    }\n  }\n  return this.high != 0 ? bit + 33 : bit + 1;\n};\n\n/**\n * Tests if this Long's value equals zero.\n * @this {!Long}\n * @returns {boolean}\n */\nLongPrototype.isZero = function isZero() {\n  return this.high === 0 && this.low === 0;\n};\n\n/**\n * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.\n * @returns {boolean}\n */\nLongPrototype.eqz = LongPrototype.isZero;\n\n/**\n * Tests if this Long's value is negative.\n * @this {!Long}\n * @returns {boolean}\n */\nLongPrototype.isNegative = function isNegative() {\n  return !this.unsigned && this.high < 0;\n};\n\n/**\n * Tests if this Long's value is positive.\n * @this {!Long}\n * @returns {boolean}\n */\nLongPrototype.isPositive = function isPositive() {\n  return this.unsigned || this.high >= 0;\n};\n\n/**\n * Tests if this Long's value is odd.\n * @this {!Long}\n * @returns {boolean}\n */\nLongPrototype.isOdd = function isOdd() {\n  return (this.low & 1) === 1;\n};\n\n/**\n * Tests if this Long's value is even.\n * @this {!Long}\n * @returns {boolean}\n */\nLongPrototype.isEven = function isEven() {\n  return (this.low & 1) === 0;\n};\n\n/**\n * Tests if this Long's value equals the specified's.\n * @this {!Long}\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.equals = function equals(other) {\n  if (!isLong(other)) {\n    other = fromValue(other);\n  }\n  if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1) {\n    return false;\n  }\n  return this.high === other.high && this.low === other.low;\n};\n\n/**\n * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.eq = LongPrototype.equals;\n\n/**\n * Tests if this Long's value differs from the specified's.\n * @this {!Long}\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.notEquals = function notEquals(other) {\n  return !this.eq( /* validates */other);\n};\n\n/**\n * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.neq = LongPrototype.notEquals;\n\n/**\n * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.ne = LongPrototype.notEquals;\n\n/**\n * Tests if this Long's value is less than the specified's.\n * @this {!Long}\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.lessThan = function lessThan(other) {\n  return this.comp( /* validates */other) < 0;\n};\n\n/**\n * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.lt = LongPrototype.lessThan;\n\n/**\n * Tests if this Long's value is less than or equal the specified's.\n * @this {!Long}\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {\n  return this.comp( /* validates */other) <= 0;\n};\n\n/**\n * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.lte = LongPrototype.lessThanOrEqual;\n\n/**\n * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.le = LongPrototype.lessThanOrEqual;\n\n/**\n * Tests if this Long's value is greater than the specified's.\n * @this {!Long}\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.greaterThan = function greaterThan(other) {\n  return this.comp( /* validates */other) > 0;\n};\n\n/**\n * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.gt = LongPrototype.greaterThan;\n\n/**\n * Tests if this Long's value is greater than or equal the specified's.\n * @this {!Long}\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {\n  return this.comp( /* validates */other) >= 0;\n};\n\n/**\n * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.gte = LongPrototype.greaterThanOrEqual;\n\n/**\n * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {boolean}\n */\nLongPrototype.ge = LongPrototype.greaterThanOrEqual;\n\n/**\n * Compares this Long's value with the specified's.\n * @this {!Long}\n * @param {!Long|number|string} other Other value\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\n *  if the given one is greater\n */\nLongPrototype.compare = function compare(other) {\n  if (!isLong(other)) {\n    other = fromValue(other);\n  }\n  if (this.eq(other)) {\n    return 0;\n  }\n  var thisNeg = this.isNegative();\n  var otherNeg = other.isNegative();\n  if (thisNeg && !otherNeg) {\n    return -1;\n  }\n  if (!thisNeg && otherNeg) {\n    return 1;\n  }\n  // At this point the sign bits are the same\n  if (!this.unsigned) {\n    return this.sub(other).isNegative() ? -1 : 1;\n  }\n  // Both are positive if at least one is unsigned\n  return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;\n};\n\n/**\n * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.\n * @function\n * @param {!Long|number|string} other Other value\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\n *  if the given one is greater\n */\nLongPrototype.comp = LongPrototype.compare;\n\n/**\n * Negates this Long's value.\n * @this {!Long}\n * @returns {!Long} Negated Long\n */\nLongPrototype.negate = function negate() {\n  if (!this.unsigned && this.eq(MIN_VALUE)) {\n    return MIN_VALUE;\n  }\n  return this.not().add(ONE);\n};\n\n/**\n * Negates this Long's value. This is an alias of {@link Long#negate}.\n * @function\n * @returns {!Long} Negated Long\n */\nLongPrototype.neg = LongPrototype.negate;\n\n/**\n * Returns the sum of this and the specified Long.\n * @this {!Long}\n * @param {!Long|number|string} addend Addend\n * @returns {!Long} Sum\n */\nLongPrototype.add = function add(addend) {\n  if (!isLong(addend)) {\n    addend = fromValue(addend);\n  }\n\n  // Divide each number into 4 chunks of 16 bits, and then sum the chunks.\n\n  var a48 = this.high >>> 16;\n  var a32 = this.high & 0xFFFF;\n  var a16 = this.low >>> 16;\n  var a00 = this.low & 0xFFFF;\n  var b48 = addend.high >>> 16;\n  var b32 = addend.high & 0xFFFF;\n  var b16 = addend.low >>> 16;\n  var b00 = addend.low & 0xFFFF;\n  var c48 = 0;\n  var c32 = 0;\n  var c16 = 0;\n  var c00 = 0;\n  c00 += a00 + b00;\n  c16 += c00 >>> 16;\n  c00 &= 0xFFFF;\n  c16 += a16 + b16;\n  c32 += c16 >>> 16;\n  c16 &= 0xFFFF;\n  c32 += a32 + b32;\n  c48 += c32 >>> 16;\n  c32 &= 0xFFFF;\n  c48 += a48 + b48;\n  c48 &= 0xFFFF;\n  return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);\n};\n\n/**\n * Returns the difference of this and the specified Long.\n * @this {!Long}\n * @param {!Long|number|string} subtrahend Subtrahend\n * @returns {!Long} Difference\n */\nLongPrototype.subtract = function subtract(subtrahend) {\n  if (!isLong(subtrahend)) {\n    subtrahend = fromValue(subtrahend);\n  }\n  return this.add(subtrahend.neg());\n};\n\n/**\n * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.\n * @function\n * @param {!Long|number|string} subtrahend Subtrahend\n * @returns {!Long} Difference\n */\nLongPrototype.sub = LongPrototype.subtract;\n\n/**\n * Returns the product of this and the specified Long.\n * @this {!Long}\n * @param {!Long|number|string} multiplier Multiplier\n * @returns {!Long} Product\n */\nLongPrototype.multiply = function multiply(multiplier) {\n  if (this.isZero()) {\n    return ZERO;\n  }\n  if (!isLong(multiplier)) {\n    multiplier = fromValue(multiplier);\n  }\n\n  // use wasm support if present\n  if (wasm) {\n    var low = wasm.mul(this.low, this.high, multiplier.low, multiplier.high);\n    return fromBits(low, wasm.get_high(), this.unsigned);\n  }\n  if (multiplier.isZero()) {\n    return ZERO;\n  }\n  if (this.eq(MIN_VALUE)) {\n    return multiplier.isOdd() ? MIN_VALUE : ZERO;\n  }\n  if (multiplier.eq(MIN_VALUE)) {\n    return this.isOdd() ? MIN_VALUE : ZERO;\n  }\n  if (this.isNegative()) {\n    if (multiplier.isNegative()) {\n      return this.neg().mul(multiplier.neg());\n    } else {\n      return this.neg().mul(multiplier).neg();\n    }\n  } else if (multiplier.isNegative()) {\n    return this.mul(multiplier.neg()).neg();\n  }\n\n  // If both longs are small, use float multiplication\n  if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24)) {\n    return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);\n  }\n\n  // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.\n  // We can skip products that would overflow.\n\n  var a48 = this.high >>> 16;\n  var a32 = this.high & 0xFFFF;\n  var a16 = this.low >>> 16;\n  var a00 = this.low & 0xFFFF;\n  var b48 = multiplier.high >>> 16;\n  var b32 = multiplier.high & 0xFFFF;\n  var b16 = multiplier.low >>> 16;\n  var b00 = multiplier.low & 0xFFFF;\n  var c48 = 0;\n  var c32 = 0;\n  var c16 = 0;\n  var c00 = 0;\n  c00 += a00 * b00;\n  c16 += c00 >>> 16;\n  c00 &= 0xFFFF;\n  c16 += a16 * b00;\n  c32 += c16 >>> 16;\n  c16 &= 0xFFFF;\n  c16 += a00 * b16;\n  c32 += c16 >>> 16;\n  c16 &= 0xFFFF;\n  c32 += a32 * b00;\n  c48 += c32 >>> 16;\n  c32 &= 0xFFFF;\n  c32 += a16 * b16;\n  c48 += c32 >>> 16;\n  c32 &= 0xFFFF;\n  c32 += a00 * b32;\n  c48 += c32 >>> 16;\n  c32 &= 0xFFFF;\n  c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;\n  c48 &= 0xFFFF;\n  return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);\n};\n\n/**\n * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.\n * @function\n * @param {!Long|number|string} multiplier Multiplier\n * @returns {!Long} Product\n */\nLongPrototype.mul = LongPrototype.multiply;\n\n/**\n * Returns this Long divided by the specified. The result is signed if this Long is signed or\n *  unsigned if this Long is unsigned.\n * @this {!Long}\n * @param {!Long|number|string} divisor Divisor\n * @returns {!Long} Quotient\n */\nLongPrototype.divide = function divide(divisor) {\n  if (!isLong(divisor)) {\n    divisor = fromValue(divisor);\n  }\n  if (divisor.isZero()) {\n    throw Error('division by zero');\n  }\n\n  // use wasm support if present\n  if (wasm) {\n    // guard against signed division overflow: the largest\n    // negative number / -1 would be 1 larger than the largest\n    // positive number, due to two's complement.\n    if (!this.unsigned && this.high === -0x80000000 && divisor.low === -1 && divisor.high === -1) {\n      // be consistent with non-wasm code path\n      return this;\n    }\n    var low = (this.unsigned ? wasm.div_u : wasm.div_s)(this.low, this.high, divisor.low, divisor.high);\n    return fromBits(low, wasm.get_high(), this.unsigned);\n  }\n  if (this.isZero()) {\n    return this.unsigned ? UZERO : ZERO;\n  }\n  var approx, rem, res;\n  if (!this.unsigned) {\n    // This section is only relevant for signed longs and is derived from the\n    // closure library as a whole.\n    if (this.eq(MIN_VALUE)) {\n      if (divisor.eq(ONE) || divisor.eq(NEG_ONE)) {\n        return MIN_VALUE;\n      } // recall that -MIN_VALUE == MIN_VALUE\n      else if (divisor.eq(MIN_VALUE)) {\n        return ONE;\n      } else {\n        // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.\n        var halfThis = this.shr(1);\n        approx = halfThis.div(divisor).shl(1);\n        if (approx.eq(ZERO)) {\n          return divisor.isNegative() ? ONE : NEG_ONE;\n        } else {\n          rem = this.sub(divisor.mul(approx));\n          res = approx.add(rem.div(divisor));\n          return res;\n        }\n      }\n    } else if (divisor.eq(MIN_VALUE)) {\n      return this.unsigned ? UZERO : ZERO;\n    }\n    if (this.isNegative()) {\n      if (divisor.isNegative()) {\n        return this.neg().div(divisor.neg());\n      }\n      return this.neg().div(divisor).neg();\n    } else if (divisor.isNegative()) {\n      return this.div(divisor.neg()).neg();\n    }\n    res = ZERO;\n  } else {\n    // The algorithm below has not been made for unsigned longs. It's therefore\n    // required to take special care of the MSB prior to running it.\n    if (!divisor.unsigned) {\n      divisor = divisor.toUnsigned();\n    }\n    if (divisor.gt(this)) {\n      return UZERO;\n    }\n    if (divisor.gt(this.shru(1)))\n      // 15 >>> 1 = 7 ; with divisor = 8 ; true\n      {\n        return UONE;\n      }\n    res = UZERO;\n  }\n\n  // Repeat the following until the remainder is less than other:  find a\n  // floating-point that approximates remainder / other *from below*, add this\n  // into the result, and subtract it from the remainder.  It is critical that\n  // the approximate value is less than or equal to the real value so that the\n  // remainder never becomes negative.\n  rem = this;\n  while (rem.gte(divisor)) {\n    // Approximate the result of division. This may be a little greater or\n    // smaller than the actual value.\n    approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));\n\n    // We will tweak the approximate result by changing it in the 48-th digit or\n    // the smallest non-fractional digit, whichever is larger.\n    var log2 = Math.ceil(Math.log(approx) / Math.LN2);\n    var delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48);\n\n    // Decrease the approximation until it is smaller than the remainder.  Note\n    // that if it is too large, the product overflows and is negative.\n\n    var approxRes = fromNumber(approx);\n    var approxRem = approxRes.mul(divisor);\n    while (approxRem.isNegative() || approxRem.gt(rem)) {\n      approx -= delta;\n      approxRes = fromNumber(approx, this.unsigned);\n      approxRem = approxRes.mul(divisor);\n    }\n\n    // We know the answer can't be zero... and actually, zero would cause\n    // infinite recursion since we would make no progress.\n    if (approxRes.isZero()) {\n      approxRes = ONE;\n    }\n    res = res.add(approxRes);\n    rem = rem.sub(approxRem);\n  }\n  return res;\n};\n\n/**\n * Returns this Long divided by the specified. This is an alias of {@link Long#divide}.\n * @function\n * @param {!Long|number|string} divisor Divisor\n * @returns {!Long} Quotient\n */\nLongPrototype.div = LongPrototype.divide;\n\n/**\n * Returns this Long modulo the specified.\n * @this {!Long}\n * @param {!Long|number|string} divisor Divisor\n * @returns {!Long} Remainder\n */\nLongPrototype.modulo = function modulo(divisor) {\n  if (!isLong(divisor)) {\n    divisor = fromValue(divisor);\n  }\n\n  // use wasm support if present\n  if (wasm) {\n    var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(this.low, this.high, divisor.low, divisor.high);\n    return fromBits(low, wasm.get_high(), this.unsigned);\n  }\n  return this.sub(this.div(divisor).mul(divisor));\n};\n\n/**\n * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.\n * @function\n * @param {!Long|number|string} divisor Divisor\n * @returns {!Long} Remainder\n */\nLongPrototype.mod = LongPrototype.modulo;\n\n/**\n * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.\n * @function\n * @param {!Long|number|string} divisor Divisor\n * @returns {!Long} Remainder\n */\nLongPrototype.rem = LongPrototype.modulo;\n\n/**\n * Returns the bitwise NOT of this Long.\n * @this {!Long}\n * @returns {!Long}\n */\nLongPrototype.not = function not() {\n  return fromBits(~this.low, ~this.high, this.unsigned);\n};\n\n/**\n * Returns the bitwise AND of this Long and the specified.\n * @this {!Long}\n * @param {!Long|number|string} other Other Long\n * @returns {!Long}\n */\nLongPrototype.and = function and(other) {\n  if (!isLong(other)) {\n    other = fromValue(other);\n  }\n  return fromBits(this.low & other.low, this.high & other.high, this.unsigned);\n};\n\n/**\n * Returns the bitwise OR of this Long and the specified.\n * @this {!Long}\n * @param {!Long|number|string} other Other Long\n * @returns {!Long}\n */\nLongPrototype.or = function or(other) {\n  if (!isLong(other)) {\n    other = fromValue(other);\n  }\n  return fromBits(this.low | other.low, this.high | other.high, this.unsigned);\n};\n\n/**\n * Returns the bitwise XOR of this Long and the given one.\n * @this {!Long}\n * @param {!Long|number|string} other Other Long\n * @returns {!Long}\n */\nLongPrototype.xor = function xor(other) {\n  if (!isLong(other)) {\n    other = fromValue(other);\n  }\n  return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);\n};\n\n/**\n * Returns this Long with bits shifted to the left by the given amount.\n * @this {!Long}\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Shifted Long\n */\nLongPrototype.shiftLeft = function shiftLeft(numBits) {\n  if (isLong(numBits)) {\n    numBits = numBits.toInt();\n  }\n  if ((numBits &= 63) === 0) {\n    return this;\n  } else if (numBits < 32) {\n    return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);\n  } else {\n    return fromBits(0, this.low << numBits - 32, this.unsigned);\n  }\n};\n\n/**\n * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.\n * @function\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Shifted Long\n */\nLongPrototype.shl = LongPrototype.shiftLeft;\n\n/**\n * Returns this Long with bits arithmetically shifted to the right by the given amount.\n * @this {!Long}\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Shifted Long\n */\nLongPrototype.shiftRight = function shiftRight(numBits) {\n  if (isLong(numBits)) {\n    numBits = numBits.toInt();\n  }\n  if ((numBits &= 63) === 0) {\n    return this;\n  } else if (numBits < 32) {\n    return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);\n  } else {\n    return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);\n  }\n};\n\n/**\n * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.\n * @function\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Shifted Long\n */\nLongPrototype.shr = LongPrototype.shiftRight;\n\n/**\n * Returns this Long with bits logically shifted to the right by the given amount.\n * @this {!Long}\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Shifted Long\n */\nLongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {\n  if (isLong(numBits)) numBits = numBits.toInt();\n  if ((numBits &= 63) === 0) return this;\n  if (numBits < 32) return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >>> numBits, this.unsigned);\n  if (numBits === 32) return fromBits(this.high, 0, this.unsigned);\n  return fromBits(this.high >>> numBits - 32, 0, this.unsigned);\n};\n\n/**\n * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.\n * @function\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Shifted Long\n */\nLongPrototype.shru = LongPrototype.shiftRightUnsigned;\n\n/**\n * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.\n * @function\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Shifted Long\n */\nLongPrototype.shr_u = LongPrototype.shiftRightUnsigned;\n\n/**\n * Returns this Long with bits rotated to the left by the given amount.\n * @this {!Long}\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Rotated Long\n */\nLongPrototype.rotateLeft = function rotateLeft(numBits) {\n  var b;\n  if (isLong(numBits)) numBits = numBits.toInt();\n  if ((numBits &= 63) === 0) return this;\n  if (numBits === 32) return fromBits(this.high, this.low, this.unsigned);\n  if (numBits < 32) {\n    b = 32 - numBits;\n    return fromBits(this.low << numBits | this.high >>> b, this.high << numBits | this.low >>> b, this.unsigned);\n  }\n  numBits -= 32;\n  b = 32 - numBits;\n  return fromBits(this.high << numBits | this.low >>> b, this.low << numBits | this.high >>> b, this.unsigned);\n};\n/**\n * Returns this Long with bits rotated to the left by the given amount. This is an alias of {@link Long#rotateLeft}.\n * @function\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Rotated Long\n */\nLongPrototype.rotl = LongPrototype.rotateLeft;\n\n/**\n * Returns this Long with bits rotated to the right by the given amount.\n * @this {!Long}\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Rotated Long\n */\nLongPrototype.rotateRight = function rotateRight(numBits) {\n  var b;\n  if (isLong(numBits)) numBits = numBits.toInt();\n  if ((numBits &= 63) === 0) return this;\n  if (numBits === 32) return fromBits(this.high, this.low, this.unsigned);\n  if (numBits < 32) {\n    b = 32 - numBits;\n    return fromBits(this.high << b | this.low >>> numBits, this.low << b | this.high >>> numBits, this.unsigned);\n  }\n  numBits -= 32;\n  b = 32 - numBits;\n  return fromBits(this.low << b | this.high >>> numBits, this.high << b | this.low >>> numBits, this.unsigned);\n};\n/**\n * Returns this Long with bits rotated to the right by the given amount. This is an alias of {@link Long#rotateRight}.\n * @function\n * @param {number|!Long} numBits Number of bits\n * @returns {!Long} Rotated Long\n */\nLongPrototype.rotr = LongPrototype.rotateRight;\n\n/**\n * Converts this Long to signed.\n * @this {!Long}\n * @returns {!Long} Signed long\n */\nLongPrototype.toSigned = function toSigned() {\n  if (!this.unsigned) {\n    return this;\n  }\n  return fromBits(this.low, this.high, false);\n};\n\n/**\n * Converts this Long to unsigned.\n * @this {!Long}\n * @returns {!Long} Unsigned long\n */\nLongPrototype.toUnsigned = function toUnsigned() {\n  if (this.unsigned) {\n    return this;\n  }\n  return fromBits(this.low, this.high, true);\n};\n\n/**\n * Converts this Long to its byte representation.\n * @param {boolean=} le Whether little or big endian, defaults to big endian\n * @this {!Long}\n * @returns {!Array.<number>} Byte representation\n */\nLongPrototype.toBytes = function toBytes(le) {\n  return le ? this.toBytesLE() : this.toBytesBE();\n};\n\n/**\n * Converts this Long to its little endian byte representation.\n * @this {!Long}\n * @returns {!Array.<number>} Little endian byte representation\n */\nLongPrototype.toBytesLE = function toBytesLE() {\n  var hi = this.high;\n  var lo = this.low;\n  return [lo & 0xff, lo >>> 8 & 0xff, lo >>> 16 & 0xff, lo >>> 24, hi & 0xff, hi >>> 8 & 0xff, hi >>> 16 & 0xff, hi >>> 24];\n};\n\n/**\n * Converts this Long to its big endian byte representation.\n * @this {!Long}\n * @returns {!Array.<number>} Big endian byte representation\n */\nLongPrototype.toBytesBE = function toBytesBE() {\n  var hi = this.high;\n  var lo = this.low;\n  return [hi >>> 24, hi >>> 16 & 0xff, hi >>> 8 & 0xff, hi & 0xff, lo >>> 24, lo >>> 16 & 0xff, lo >>> 8 & 0xff, lo & 0xff];\n};\n\n/**\n * Creates a Long from its byte representation.\n * @param {!Array.<number>} bytes Byte representation\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\n * @param {boolean=} le Whether little or big endian, defaults to big endian\n * @returns {Long} The corresponding Long value\n */\nLong.fromBytes = function fromBytes(bytes, unsigned, le) {\n  return le ? Long.fromBytesLE(bytes, unsigned) : Long.fromBytesBE(bytes, unsigned);\n};\n\n/**\n * Creates a Long from its little endian byte representation.\n * @param {!Array.<number>} bytes Little endian byte representation\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\n * @returns {Long} The corresponding Long value\n */\nLong.fromBytesLE = function fromBytesLE(bytes, unsigned) {\n  return new Long(bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24, bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24, unsigned);\n};\n\n/**\n * Creates a Long from its big endian byte representation.\n * @param {!Array.<number>} bytes Big endian byte representation\n * @param {boolean=} unsigned Whether unsigned or not, defaults to signed\n * @returns {Long} The corresponding Long value\n */\nLong.fromBytesBE = function fromBytesBE(bytes, unsigned) {\n  return new Long(bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7], bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], unsigned);\n};\n\n//# sourceURL=webpack://bos-core/./src/utils/long.js?");

/***/ }),

/***/ "./src/utils/tools.ts":
/*!****************************!*\
  !*** ./src/utils/tools.ts ***!
  \****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   fetchData: function() { return /* binding */ fetchData; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _ajax_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/ajax/axios */ \"./src/ajax/axios.js\");\n/* harmony import */ var _store_GlobalData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/store/GlobalData */ \"./src/store/GlobalData.ts\");\n\n\n\n\n/**\n * 给第三方提供axios get方法封装\n * @param pageId 页面ID\n * @param url 接口地址\n * @param data 参数\n * @returns Promise\n */\nfunction fetchData(pageId, url) {\n  var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  // console.log(pageId, url, data)\n  var headers = {\n    'Content-Type': 'text/json;charset=utf-8;',\n    'kd-csrf-token': _store_GlobalData__WEBPACK_IMPORTED_MODULE_2__[\"default\"].get(\"\".concat(pageId, \"-csrf\"))\n  };\n  return new (_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_0___default())(function (resolve, reject) {\n    _ajax_axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(url, {\n      params: data,\n      headers: headers\n    }).then(function (res) {\n      return resolve(res);\n    }).catch(function (err) {\n      return reject(err);\n    });\n  });\n}\n\n//# sourceURL=webpack://bos-core/./src/utils/tools.ts?");

/***/ }),

/***/ "./src/utils/trace.js":
/*!****************************!*\
  !*** ./src/utils/trace.js ***!
  \****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_parse_int__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-int */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_parse_int__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_parse_int__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _long__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./long */ \"./src/utils/long.js\");\n/* harmony import */ var _long__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_long__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\nfunction Trace() {\n  this.seedUniquifier = 8682522807148012;\n  this.multiplier = 0x5DEECE66D;\n  this.addend = 0xB;\n  // 下面算法得到65535,java里是1L<<48 得到281474976710655\n  // this.mask = (1 << 48) - 1;\n  this.mask = 281474976710655;\n  this.seed = 0;\n  this.step = 1;\n  // this.seed = (this.seedUniquifier ^ this.multiplier) & this.mask;\n\n  this.fseedUniquifier = function () {\n    var next = this.seedUniquifier * 181783497276652981;\n    this.seedUniquifier = next;\n    return next;\n  };\n  this.initialScramble = function (seed) {\n    return (seed ^ this.multiplier) & this.mask;\n  };\n  this.nextLong = function () {\n    var date = new Date();\n    var time1 = date.getTime();\n    this.seed = this.initialScramble(this.fseedUniquifier() ^ time1 + Math.round(Math.random() * 100));\n    // console.log(\"seed:\"+this.seed);\n    // var v1 = (this.next(32) << 32);\n    // var val = v1 + this.next(32);\n    // return val;\n    var longVal = new (_long__WEBPACK_IMPORTED_MODULE_3___default())('0x' + this.next(32, false), '0x' + this.next(32, true), true);\n    // console.log(longVal)\n    var a = longVal.toString(16);\n    return a;\n    // return this.next(32,true)+this.next(32,false);\n  };\n  this.next = function (bits, high) {\n    var oldseed = this.seed;\n    var nextseed = oldseed * this.multiplier + this.addend & this.mask;\n    // nextseed = (nextseed * this.multiplier + this.addend) & this.mask;\n    this.seed = nextseed;\n    // console.log(\"nextseed:\"+nextseed);\n    nextseed = Math.abs(nextseed) + Math.round(Math.random() * 100) + this.step;\n    this.step++;\n    if (this.step >= 999999) {\n      this.step = 1;\n    }\n    // console.log(nextseed.toString(16))\n    // console.log(nextseed.toString(2))\n\n    var b = nextseed.toString(2);\n    // if (high) {\n    //   // while(b.length<31){\n    //   //\tb=\"1\"+b;\n    //   // }\n    //   // b=\"0\"+b;\n    //   while (b.length < 32) {\n    //     b = '0' + b\n    //   }\n    // } else {\n    //   while (b.length < 32) {\n    //     // var p =  Math.round(Math.random())+\"\";\n    //     b = '0' + b\n    //   }\n    //   // console.log(\"v:\"+b)\n    // }\n    while (b.length < 32) {\n      // var p =  Math.round(Math.random())+\"\";\n      b = '0' + b;\n    }\n    // console.log(b)\n    nextseed = _babel_runtime_corejs3_core_js_stable_parse_int__WEBPACK_IMPORTED_MODULE_0___default()(b, 2);\n\n    // nextseed = nextseed& 4294967295\n    // console.log(nextseed)\n    // console.log(nextseed.toString(16))\n    // return nextseed >>> (48 - bits)\n    return nextseed.toString(16);\n  };\n  this.traceId = function () {\n    return this.nextLong();\n  };\n}\nfunction getTraceId() {\n  return new Trace().traceId();\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (getTraceId);\n\n//# sourceURL=webpack://bos-core/./src/utils/trace.js?");

/***/ }),

/***/ "./assets/img/net-error.png":
/*!**********************************!*\
  !*** ./assets/img/net-error.png ***!
  \**********************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
eval("module.exports = __webpack_require__.p + \"ncp/bos-core/images/140473d6517e1b134f82.png\";\n\n//# sourceURL=webpack://bos-core/./assets/img/net-error.png?");

/***/ })

}]);