diff --git a/apaas-custom-mydemo/apaas-custom-mydemo.common.js b/apaas-custom-mydemo/apaas-custom-mydemo.common.js index 1b01275..350c5d5 100644 --- a/apaas-custom-mydemo/apaas-custom-mydemo.common.js +++ b/apaas-custom-mydemo/apaas-custom-mydemo.common.js @@ -132,17 +132,6 @@ module.exports = // extracted by mini-css-extract-plugin -/***/ }), - -/***/ "0aa7": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("18d5"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ - - /***/ }), /***/ "0b3e": @@ -477,13 +466,6 @@ var encodeBase64 = (function () { /***/ }), -/***/ "18d5": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - /***/ "1ee1": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -4163,6 +4145,17 @@ function isnan (val) { /* unused harmony reexport * */ +/***/ }), + +/***/ "bf95": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_1f206660_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e762"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_1f206660_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_1f206660_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + + /***/ }), /***/ "c58d": @@ -4334,6 +4327,13 @@ module.exports = g; /* unused harmony reexport * */ +/***/ }), + +/***/ "e762": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + /***/ }), /***/ "e781": @@ -154623,17 +154623,23 @@ var permissionManagement_component = normalizeComponent( ) /* harmony default export */ var permissionManagement = (permissionManagement_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"523a9bcb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=template&id=5285ad22&scoped=true& -var roleMemberManagementvue_type_template_id_5285ad22_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"role-member-management-page custom-page"},[_c('div',{staticClass:"page-header"},[_c('div',{staticClass:"header-left"},[_c('el-button',{staticClass:"back-button",attrs:{"type":"text","icon":"el-icon-arrow-left"},on:{"click":_vm.handleBack}},[_vm._v(" 返回 ")]),_c('div',{staticClass:"title-info"},[_c('span',{staticClass:"title"},[_vm._v("人员管理")]),_c('span',{staticClass:"role-tip"},[_vm._v("当前选择角色:"),_c('span',{staticClass:"role-name"},[_vm._v(_vm._s(_vm.roleName))])])])],1)]),_c('div',{staticClass:"page-content"},[_c('div',{staticClass:"search-section"},[_c('div',{staticClass:"search-form"},[_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("成员名称")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入成员名称","clearable":""},model:{value:(_vm.searchForm.memberName),callback:function ($$v) {_vm.$set(_vm.searchForm, "memberName", $$v)},expression:"searchForm.memberName"}})],1),_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("成员编码")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入成员编码","clearable":""},model:{value:(_vm.searchForm.memberCode),callback:function ($$v) {_vm.$set(_vm.searchForm, "memberCode", $$v)},expression:"searchForm.memberCode"}})],1),_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("部门")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入部门","clearable":""},model:{value:(_vm.searchForm.department),callback:function ($$v) {_vm.$set(_vm.searchForm, "department", $$v)},expression:"searchForm.department"}})],1),_c('div',{staticClass:"search-actions"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.handleSearch}},[_vm._v(" 查询 ")]),_c('el-button',{on:{"click":_vm.handleReset}},[_vm._v(" 重置 ")])],1)])]),_c('div',{staticClass:"action-section"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.handleAddMember}},[_vm._v(" 添加成员 ")]),_c('el-button',{attrs:{"disabled":_vm.selectedMembers.length === 0},on:{"click":_vm.handleDeleteMember}},[_vm._v(" 删除成员 ")])],1),_c('div',{staticClass:"table-section"},[_c('el-table',{ref:"memberTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"border":""},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"55","align":"center"}}),_c('el-table-column',{attrs:{"type":"index","label":"序号","width":"60","align":"center"}}),_c('el-table-column',{attrs:{"prop":"username","label":"成员名称","min-width":"120","align":"center"}}),_c('el-table-column',{attrs:{"prop":"userNumber","label":"成员编码","min-width":"120","align":"center"}}),_c('el-table-column',{attrs:{"label":"部门","min-width":"200","align":"center","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){ +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"523a9bcb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=template&id=1f206660&scoped=true& +var roleMemberManagementvue_type_template_id_1f206660_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"role-member-management-page custom-page"},[_c('div',{staticClass:"page-header"},[_c('div',{staticClass:"header-left"},[_c('el-button',{staticClass:"back-button",attrs:{"type":"text","icon":"el-icon-arrow-left"},on:{"click":_vm.handleBack}},[_vm._v(" 返回 ")]),_c('div',{staticClass:"title-info"},[_c('span',{staticClass:"title"},[_vm._v("人员管理")]),_c('span',{staticClass:"role-tip"},[_vm._v("当前选择角色:"),_c('span',{staticClass:"role-name"},[_vm._v(_vm._s(_vm.roleName))])])])],1)]),_c('div',{staticClass:"page-content"},[_c('div',{staticClass:"search-section"},[_c('div',{staticClass:"search-form"},[_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("成员名称")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入成员名称","clearable":""},model:{value:(_vm.searchForm.memberName),callback:function ($$v) {_vm.$set(_vm.searchForm, "memberName", $$v)},expression:"searchForm.memberName"}})],1),_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("成员编码")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入成员编码","clearable":""},model:{value:(_vm.searchForm.memberCode),callback:function ($$v) {_vm.$set(_vm.searchForm, "memberCode", $$v)},expression:"searchForm.memberCode"}})],1),_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("部门")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入部门","clearable":""},model:{value:(_vm.searchForm.department),callback:function ($$v) {_vm.$set(_vm.searchForm, "department", $$v)},expression:"searchForm.department"}})],1),_c('div',{staticClass:"search-actions"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.handleSearch}},[_vm._v(" 查询 ")]),_c('el-button',{on:{"click":_vm.handleReset}},[_vm._v(" 重置 ")])],1)])]),_c('div',{staticClass:"action-section"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.handleAddMember}},[_vm._v(" 添加成员 ")]),_c('el-button',{attrs:{"disabled":_vm.selectedMembers.length === 0},on:{"click":_vm.handleDeleteMember}},[_vm._v(" 删除成员 ")])],1),_c('div',{staticClass:"table-section"},[_c('el-table',{ref:"memberTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"border":""},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"55","align":"center"}}),_c('el-table-column',{attrs:{"type":"index","label":"序号","width":"60","align":"center"}}),_c('el-table-column',{attrs:{"prop":"username","label":"成员名称","min-width":"120","align":"center"}}),_c('el-table-column',{attrs:{"prop":"userNumber","label":"成员编码","min-width":"120","align":"center"}}),_c('el-table-column',{attrs:{"label":"部门","min-width":"200","align":"center","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){ var row = ref.row; return [_vm._v(" "+_vm._s(_vm.formatDepartment(row))+" ")]}}])})],1),_c('div',{staticClass:"pagination-section"},[_c('el-pagination',{attrs:{"current-page":_vm.pagination.currentPage,"page-sizes":[10, 20, 50, 100],"page-size":_vm.pagination.pageSize,"total":_vm.pagination.total,"layout":"total, sizes, prev, pager, next, jumper"},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1)],1)]),_c('el-dialog',{attrs:{"title":"添加成员","visible":_vm.addMemberDialogVisible,"width":"600px","close-on-click-modal":false,"append-to-body":""},on:{"update:visible":function($event){_vm.addMemberDialogVisible=$event},"close":_vm.handleAddMemberDialogClose}},[_c('el-form',{ref:"addMemberForm",attrs:{"model":_vm.addMemberFormData,"label-width":"100px"}},[_c('el-form-item',{attrs:{"label":"搜索人员:"}},[_c('el-select',{staticStyle:{"width":"100%"},attrs:{"filterable":"","remote":"","multiple":"","reserve-keyword":"","placeholder":"请输入人员姓名进行搜索","remote-method":_vm.queryPerson,"loading":_vm.personSearchLoading},model:{value:(_vm.addMemberFormData.selectedUsers),callback:function ($$v) {_vm.$set(_vm.addMemberFormData, "selectedUsers", $$v)},expression:"addMemberFormData.selectedUsers"}},_vm._l((_vm.personOptions),function(person){return _c('el-option',{key:person.userNumber,attrs:{"value":person.userId,"label":person.username}},[_c('span',[_vm._v(_vm._s(person.username))]),_c('span',{staticStyle:{"float":"right","color":"#8492a6","font-size":"12px"}},[_vm._v(_vm._s(person.userNumber))])])}),1)],1)],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":_vm.handleAddMemberDialogClose}},[_vm._v(" 取消 ")]),_c('el-button',{attrs:{"type":"primary","loading":_vm.addMemberSubmitting},on:{"click":_vm.handleAddMemberSubmit}},[_vm._v(" 确定 ")])],1)],1)],1)} -var roleMemberManagementvue_type_template_id_5285ad22_scoped_true_staticRenderFns = [] +var roleMemberManagementvue_type_template_id_1f206660_scoped_true_staticRenderFns = [] -// CONCATENATED MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=template&id=5285ad22&scoped=true& +// CONCATENATED MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=template&id=1f206660&scoped=true& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=script&lang=js& function roleMemberManagementvue_type_script_lang_js_typeof(obj) { "@babel/helpers - typeof"; return roleMemberManagementvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, roleMemberManagementvue_type_script_lang_js_typeof(obj); } +function roleMemberManagementvue_type_script_lang_js_toConsumableArray(arr) { return roleMemberManagementvue_type_script_lang_js_arrayWithoutHoles(arr) || roleMemberManagementvue_type_script_lang_js_iterableToArray(arr) || roleMemberManagementvue_type_script_lang_js_unsupportedIterableToArray(arr) || roleMemberManagementvue_type_script_lang_js_nonIterableSpread(); } +function roleMemberManagementvue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function roleMemberManagementvue_type_script_lang_js_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return roleMemberManagementvue_type_script_lang_js_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return roleMemberManagementvue_type_script_lang_js_arrayLikeToArray(o, minLen); } +function roleMemberManagementvue_type_script_lang_js_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function roleMemberManagementvue_type_script_lang_js_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return roleMemberManagementvue_type_script_lang_js_arrayLikeToArray(arr); } +function roleMemberManagementvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function roleMemberManagementvue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function roleMemberManagementvue_type_script_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? roleMemberManagementvue_type_script_lang_js_ownKeys(Object(source), !0).forEach(function (key) { roleMemberManagementvue_type_script_lang_js_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : roleMemberManagementvue_type_script_lang_js_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function roleMemberManagementvue_type_script_lang_js_defineProperty(obj, key, value) { key = roleMemberManagementvue_type_script_lang_js_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } @@ -154812,6 +154818,7 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { department: '' }, tableData: [], + allMembers: [], selectedMembers: [], pagination: { currentPage: 1, @@ -154899,25 +154906,15 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { if (resp && resp.data) { var respData = resp.data; var personArray = respData['人员'] || respData.person || []; - - // 解析人员数组 - // 格式:["周杰-ID:100771324098969075712-userNumber:yc90117846-department:"] var members = []; personArray.forEach(function (personStr) { if (typeof personStr === 'string') { - // 提取用户名(第一个 - 之前) var nameMatch = personStr.match(/^([^-]+)/); var username = nameMatch ? nameMatch[1] : ''; - - // 提取ID var idMatch = personStr.match(/ID:([^-]+)/); var userId = idMatch ? idMatch[1] : ''; - - // 提取userNumber(成员编码) var userNumberMatch = personStr.match(/userNumber:([^-]+)/); var userNumber = userNumberMatch ? userNumberMatch[1] : ''; - - // 提取department(部门) var deptMatch = personStr.match(/department:(.+)$/); var department = deptMatch ? deptMatch[1] : ''; if (username && userId) { @@ -154925,14 +154922,12 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { userId: userId, username: username, userNumber: userNumber, - // 成员编码(用户工号) - department: department // 部门 + department: department }); } } }); - - // 应用搜索过滤 + _this2.allMembers = members; var filteredMembers = members; if (_this2.searchForm.memberName) { filteredMembers = filteredMembers.filter(function (m) { @@ -154949,19 +154944,19 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { return m.department && m.department.includes(_this2.searchForm.department); }); } - - // 分页处理 _this2.pagination.total = filteredMembers.length; var startIndex = (_this2.pagination.currentPage - 1) * _this2.pagination.pageSize; var endIndex = startIndex + _this2.pagination.pageSize; _this2.tableData = filteredMembers.slice(startIndex, endIndex); } else { + _this2.allMembers = []; _this2.tableData = []; _this2.pagination.total = 0; } }).asyncErrorCatch(function (err) { console.error('加载成员列表失败:', err); _this2.$message.error('加载成员列表失败,请稍后重试'); + _this2.allMembers = []; _this2.tableData = []; _this2.pagination.total = 0; }); @@ -155017,11 +155012,23 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { return; } this.addMemberSubmitting = true; - // 使用现有接口绑定角色和用户 + var existingUserIds = this.allMembers.map(function (m) { + return m.userId; + }); + var newUserIds = this.addMemberFormData.selectedUsers.filter(function (id) { + return !existingUserIds.includes(id); + }); + var allUserIds = [].concat(roleMemberManagementvue_type_script_lang_js_toConsumableArray(existingUserIds), roleMemberManagementvue_type_script_lang_js_toConsumableArray(newUserIds)); + var userOrDept = allUserIds.map(function (userId) { + return { + userOrDeptId: userId, + isDept: 0 + }; + }); var request = roleMemberManagementvue_type_script_lang_js_objectSpread(roleMemberManagementvue_type_script_lang_js_objectSpread({}, src_api.GET_ROLE_PERMISSION_BING), {}, { data: { - roleID: this.roleId, - userIDs: this.addMemberFormData.selectedUsers + roleId: this.roleId, + userOrDept: userOrDept } }); this.$request(request).asyncThen(function (resp) { @@ -155037,18 +155044,27 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { }, deleteMembers: function deleteMembers() { var _this5 = this; - var userIds = this.selectedMembers.map(function (member) { + var deleteUserIds = this.selectedMembers.map(function (member) { return member.userId; }); - // 使用现有接口删除角色用户绑定 - var request = roleMemberManagementvue_type_script_lang_js_objectSpread(roleMemberManagementvue_type_script_lang_js_objectSpread({}, src_api.DELETE_ROLE_PERMISSION), {}, { - params: { - roleID: this.roleId, - userIDs: userIds.join(',') + var retainUsers = this.allMembers.filter(function (member) { + return !deleteUserIds.includes(member.userId); + }); + var userOrDept = retainUsers.map(function (user) { + return { + userOrDeptId: user.userId, + isDept: 0 + }; + }); + var request = roleMemberManagementvue_type_script_lang_js_objectSpread(roleMemberManagementvue_type_script_lang_js_objectSpread({}, src_api.GET_ROLE_PERMISSION_BING), {}, { + data: { + roleId: this.roleId, + userOrDept: userOrDept } }); this.$request(request).asyncThen(function (resp) { _this5.$message.success('删除成员成功'); + _this5.selectedMembers = []; _this5.loadMemberList(); }).asyncErrorCatch(function (err) { console.error('删除成员失败:', err); @@ -155059,8 +155075,8 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { }); // CONCATENATED MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=script&lang=js& /* harmony default export */ var custom_page_roleMemberManagementvue_type_script_lang_js_ = (roleMemberManagementvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=style&index=0&id=5285ad22&prod&lang=scss&scoped=true& -var roleMemberManagementvue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped_true_ = __webpack_require__("0aa7"); +// EXTERNAL MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=style&index=0&id=1f206660&prod&lang=scss&scoped=true& +var roleMemberManagementvue_type_style_index_0_id_1f206660_prod_lang_scss_scoped_true_ = __webpack_require__("bf95"); // CONCATENATED MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue @@ -155073,11 +155089,11 @@ var roleMemberManagementvue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped var roleMemberManagement_component = normalizeComponent( custom_page_roleMemberManagementvue_type_script_lang_js_, - roleMemberManagementvue_type_template_id_5285ad22_scoped_true_render, - roleMemberManagementvue_type_template_id_5285ad22_scoped_true_staticRenderFns, + roleMemberManagementvue_type_template_id_1f206660_scoped_true_render, + roleMemberManagementvue_type_template_id_1f206660_scoped_true_staticRenderFns, false, null, - "5285ad22", + "1f206660", null ) diff --git a/apaas-custom-mydemo/apaas-custom-mydemo.css b/apaas-custom-mydemo/apaas-custom-mydemo.css index 84378d7..71ae19b 100644 --- a/apaas-custom-mydemo/apaas-custom-mydemo.css +++ b/apaas-custom-mydemo/apaas-custom-mydemo.css @@ -1 +1 @@ -h2{color:#00f}.search-date .el-date-editor.el-input__inner{max-width:100%}.search-date .el-date-editor .el-range__icon{margin-bottom:8px}.search-number .range-item{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.search-number .range-item .range-item-divide{padding:0 8px}.edit-modal .el-form{padding:20px 0}.edit-modal .dialog-footer{text-align:right;padding-top:20px}.custom-page .page-search-panel{padding:8px 20px 24px 20px}.custom-page .page-search-panel .search-list{max-width:calc(100% - 140px)}.custom-page .page-search-panel .search-list .search-component{width:calc(25% - 32px);padding:24px 0;padding-right:32px;padding-bottom:0}.custom-page .page-search-panel .search-list .search-component .el-form-item{margin-bottom:0}.custom-page .page-search-panel .search-list .search-component .el-form-item .el-form-item__label{font-size:12px;line-height:unset;margin-bottom:8px}.custom-page .page-search-panel .search-list .search-component .el-form-item__content{font-size:12px;line-height:32px}.custom-page .page-search-panel .search-button-group{bottom:24px}.version-modal .version-list{padding:20px 0;max-height:400px;overflow-y:auto}.version-modal .version-list .version-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ebeef5}.version-modal .version-list .version-item:last-child{border-bottom:none}.version-modal .version-list .version-item .version-link{color:#409eff;text-decoration:underline;cursor:pointer;font-size:14px}.version-modal .version-list .version-item .version-link:hover{color:#66b1ff}.version-modal .version-list .version-item .version-status{color:#303133;font-size:14px}.version-modal .version-list .version-tip{text-align:center;color:#909399;font-size:14px;padding:20px 0}.back-button{padding:0!important}.header-item .label{font-size:14px!important;font-weight:500!important;color:#303133!important}.header-item .value{font-size:14px!important;font-weight:300!important}::v-deep .el-cascader{width:100%}::v-deep .el-cascader .el-cascader__tags{-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}::v-deep .el-cascader .el-input__inner{height:32px;line-height:32px}::v-deep .el-cascader__dropdown{min-width:200px!important;max-width:500px;z-index:3000!important;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px;overflow:visible}::v-deep .el-cascader__dropdown .el-cascader__suggestion-list{min-width:200px!important;max-width:500px;padding:6px 0}::v-deep .el-cascader__dropdown .el-cascader-menu{min-width:180px;max-width:300px;border-right:1px solid #e4e7ed}::v-deep .el-cascader__dropdown .el-cascader-menu:last-child{border-right:none}::v-deep .el-cascader__dropdown .el-cascader-menu__wrap{max-height:300px;overflow-y:auto;overflow-x:hidden}::v-deep .el-cascader__dropdown .el-scrollbar .el-scrollbar__wrap{overflow-x:hidden!important;overflow-y:auto!important;max-height:300px}::v-deep .el-cascader__dropdown .el-scrollbar .el-scrollbar__bar.is-vertical{right:0;width:6px}::v-deep .el-cascader__dropdown .el-scrollbar .el-scrollbar__bar.is-vertical .el-scrollbar__thumb{background-color:rgba(144,147,153,.3);border-radius:3px}::v-deep .el-cascader__dropdown .el-scrollbar .el-scrollbar__bar.is-vertical .el-scrollbar__thumb:hover{background-color:rgba(144,147,153,.5)}::v-deep .el-cascader__dropdown .el-cascader-panel{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:4px;overflow:hidden}::v-deep .el-cascader__dropdown .el-cascader-menu__item{height:34px;line-height:34px;padding:0 20px;font-size:14px;color:#606266;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;-webkit-transition:background-color .25s;transition:background-color .25s}::v-deep .el-cascader__dropdown .el-cascader-menu__item:hover{background-color:#f5f7fa}::v-deep .el-cascader__dropdown .el-cascader-menu__item.is-active{color:#409eff;font-weight:500;background-color:#ecf5ff}::v-deep .el-cascader__dropdown .el-cascader-menu__item.is-disabled{color:#c0c4cc;cursor:not-allowed;background-color:#fff}.custom-page{overflow:hidden}.custom-page .page-header{z-index:10}.custom-page .page-header .header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px}.custom-page .page-header .header-left .back-button{padding:0;margin-right:8px;font-size:14px;color:#000;cursor:pointer;pointer-events:auto}.custom-page .page-header .header-left .back-button:hover{color:#000}.custom-page .page-header .header-left .back-button i{margin-right:4px}.custom-page .page-header .header-left .header-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.custom-page .page-header .header-left .header-item .label{color:#303133;font-size:16px!important}.custom-page .page-header .header-left .header-item .value{color:#303133;font-size:16px!important;font-weight:500!important;max-width:180px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-page .page-header .header-left .version-select-item .label{width:50px!important}.custom-page .page-header .header-left .version-select-item .version-select{width:150px;margin-left:8px}.custom-page .page-header .header-left .version-select-item .version-select :deep(.el-input__inner){height:32px;line-height:32px;font-size:14px}.custom-page .page-header .header-right{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px}.custom-page .page-search-panel .search-fields{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;gap:12px}.custom-page .page-search-panel .search-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:40px;width:100%}.custom-page .page-search-panel .search-field .field-label{min-width:64px;text-align:right}.custom-page .page-search-panel .search-field .el-input,.custom-page .page-search-panel .search-field .el-select{width:160px}.custom-page .page-search-panel .search-field :deep(.el-input__inner),.custom-page .page-search-panel .search-field :deep(.el-select .el-input__inner){height:32px;line-height:32px}.custom-page .page-search-panel .search-actions{margin-left:auto}.custom-page .page-search-panel .search-actions :deep(.el-button){padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.custom-page .page-data-list{padding:10px!important;overflow:auto}.custom-page .page-data-list.has-footer{padding-bottom:80px}.custom-page .page-approval-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:0;padding:20px;overflow-y:auto;overflow-x:hidden;background:#fff}.custom-page .page-approval-content.has-footer{padding-bottom:80px}.custom-page .operation-links .link-separator{display:inline-block}.custom-page .operation-links .deleted-text{color:#f56c6c;font-size:14px;font-weight:500}.custom-page .page-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:16px 20px;background:#fff;border-top:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:10}.custom-page .page-footer .footer-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px}::v-deep .el-dialog__wrapper,::v-deep .el-dialog__wrapper .v-modal{z-index:2000!important}::v-deep .el-dialog{z-index:2001!important}::v-deep .el-dialog,::v-deep .el-dialog__body{position:relative;pointer-events:auto!important}::v-deep .el-dialog__body{z-index:2002!important}::v-deep .param-edit-dialog .el-dialog__body{height:450px;overflow-y:auto;padding:20px}::v-deep .param-edit-dialog .el-form .el-row{margin-bottom:0}::v-deep .param-edit-dialog .el-form .el-col .el-form-item,::v-deep .param-edit-dialog .el-form .el-form-item{margin-bottom:18px}::v-deep .param-edit-dialog .el-form .el-cascader{width:100%}::v-deep .param-edit-dialog .el-form .el-cascader .el-input__inner{height:32px;line-height:32px}::v-deep .el-dialog__wrapper .el-cascader__dropdown{z-index:3000!important}.right-button{border:1px solid #027aff!important;color:#027aff!important}.right-button--primary{background:#027aff!important;color:#fff!important}.search-table{min-height:380px!important}:deep(.block-table) .row-deleted,:deep(.block-table) .row-deleted td{background-color:#fef0f0!important}.required-mark{color:#f56c6c;margin-left:4px}.approval-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:20px;width:100%}.approval-content .approval-table-section{display:block}.approval-content .approval-description{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-top:10px}.approval-content .approval-description .description-label{font-size:16px;line-height:24px;font-weight:bolder;margin-bottom:8px!important;color:#303133}.approval-content .approval-process-title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-bottom:20px}.approval-content .approval-process-title .description-label{font-size:16px;line-height:24px;font-weight:bolder;margin-bottom:8px!important;color:#303133;gap:12px}.approval-content .approval-process-title .description-label .step-actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;-ms-flex-negative:0;flex-shrink:0}.approval-content .approval-process-title .description-label .step-actions .cancel-step-btn,.approval-content .approval-process-title .description-label .step-actions .edit-step-btn,.approval-content .approval-process-title .description-label .step-actions .save-step-btn{padding:0;font-size:12px;color:#409eff}.approval-content .approval-process-title .description-label .step-actions .cancel-step-btn:hover,.approval-content .approval-process-title .description-label .step-actions .edit-step-btn:hover,.approval-content .approval-process-title .description-label .step-actions .save-step-btn:hover{color:#66b1ff}.approval-content .approval-process-title .description-label .step-actions .cancel-step-btn{color:#909399}.approval-content .approval-process-title .description-label .step-actions .cancel-step-btn:hover{color:#a6a9ad}.approval-content .approval-workflow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}.approval-content .approval-workflow .workflow-title{font-size:14px;font-weight:600;color:#303133}.approval-content .approval-workflow .workflow-table{width:100%}.approval-content .approval-workflow .workflow-table .workflow-table-content{width:100%;border-collapse:collapse;border:1px solid #ebeef5}.approval-content .approval-workflow .workflow-table .workflow-table-content thead{background:#f5f7fa}.approval-content .approval-workflow .workflow-table .workflow-table-content thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5}.approval-content .approval-workflow .workflow-table .workflow-table-content thead th.step-name-col{width:120px}.approval-content .approval-workflow .workflow-table .workflow-table-content thead th.handler-col{width:auto}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row:not(:last-child){border-bottom:1px solid #ebeef5}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell{padding:12px 16px;vertical-align:middle}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name{font-size:14px;color:#303133}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name .required-mark{color:#f56c6c;margin-left:4px}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell{padding:12px 16px;vertical-align:middle}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select{width:100%;min-width:200px}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select :deep(.el-input__inner){height:32px;line-height:32px}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select :deep(.el-tag){margin:2px 4px 2px 0}::v-deep .department-select-dialog .el-dialog{height:500px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}::v-deep .department-select-dialog .el-dialog__body{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:20px;flex-direction:column}.department-dialog-content,::v-deep .department-select-dialog .el-dialog__body{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column}.department-dialog-content{flex-direction:column;height:100%}.department-dialog-content .department-search-input{margin-bottom:16px;-ms-flex-negative:0;flex-shrink:0}.department-dialog-content .department-tree-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden;border:1px solid #ebeef5;border-radius:4px;padding:8px;max-height:400px}.approval-progress-section{margin-top:20px;padding:20px;background:#fff;border-radius:4px}.approval-progress-section .section-title{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px}.approval-progress-section .approval-timeline{padding:20px 5px;max-height:450px;overflow-y:auto}.approval-progress-section .timeline-item-content .node-title{font-size:14px;font-weight:500;color:#303133;margin-bottom:8px}.approval-progress-section .timeline-item-content .node-content .node-info{margin-bottom:8px}.approval-progress-section .timeline-item-content .node-content .node-info .node-user{font-size:14px;color:#606266;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.approval-progress-section .timeline-item-content .node-content .node-info .node-user .node-time{font-size:12px;color:#909399}.approval-progress-section .timeline-item-content .node-content .node-status{display:inline-block;padding:2px 8px;border-radius:2px;font-size:12px;margin-bottom:8px}.approval-progress-section .timeline-item-content .node-content .node-status.status-approve,.approval-progress-section .timeline-item-content .node-content .node-status.status-pass{background-color:#f0f9ff;color:#67c23a}.approval-progress-section .timeline-item-content .node-content .node-status.status-reject{background-color:#fef0f0;color:#f56c6c}.approval-progress-section .timeline-item-content .node-content .node-status.status-approving{background-color:#fdf6ec;color:#e6a23c}.approval-progress-section .timeline-item-content .node-content .node-status.status-default,.approval-progress-section .timeline-item-content .node-content .node-status.status-pending{background-color:#f4f4f5;color:#909399}.approval-progress-section .timeline-item-content .node-content .node-status.status-initiate,.approval-progress-section .timeline-item-content .node-content .node-status.status-return{background-color:#ecf5ff;color:#409eff}.approval-progress-section .timeline-item-content .node-content .node-opinion{font-size:13px;color:#606266;margin-top:8px;padding:8px;background-color:#f5f7fa;border-radius:4px}.approval-progress-section .empty-progress{padding:40px 0;text-align:center}.approval-progress-section .empty-progress .empty-text{font-size:14px;color:#909399}.import-uploader,.import-uploader .el-upload,.import-uploader .el-upload-dragger{width:100%}.import-btn{color:#027aff;border-color:#027aff;background-color:#fff}.custom-page .page-header{width:calc(100% - 40px)!important;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px;padding-right:30px}.custom-page .page-header .title{font-weight:500;font-size:18px!important;margin:0}.custom-page .page-header .operation{gap:8px}.custom-page .page-search-panel .search-field{-webkit-box-flex:1;-ms-flex:1 1 calc(33.33333% - 21.33333px);flex:1 1 calc(33.33333% - 21.33333px);min-width:260px}.custom-page .page-search-panel .search-field .field-label{font-size:16px;min-width:80px;text-align:right!important;-moz-text-align-last:right!important;text-align-last:right!important}.custom-page .page-search-panel .search-field .el-input,.custom-page .page-search-panel .search-field .el-select{width:220px}.custom-page .page-search-panel .search-actions{-webkit-box-flex:1;-ms-flex:1 1 calc(33.33333% - 21.33333px);flex:1 1 calc(33.33333% - 21.33333px);min-width:260px}.custom-page .page-data-list{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:10px;background:#f7f7f7}.custom-page .status-tag{padding:2px;height:18px;line-height:18px;width:100px;font-size:14px;width:70px;white-space:nowrap}.custom-page .status-tag.status-published{background-color:#00b66a}.custom-page .status-tag.status-reviewing{background-color:#ffa72b}.custom-page .status-tag.status-history{background-color:#4b82f0}.custom-page .status-tag.status-draft{background-color:#909399}.custom-page .operation-links{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;gap:0}.custom-page .operation-links .el-link{font-size:14px}.custom-page .operation-links .link-separator{width:4px;height:14px}.custom-page .error-list{white-space:pre-line;word-break:break-word}.status-tag{border-radius:50px!important}.el-scrollbar{max-width:300px!important}.el-popper{min-width:300px!important}.operation{-webkit-box-pack:start!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.order-dialog-content .order-table{width:100%}.order-dialog-content .order-tip{padding:8px 12px;background:#f4f4f5;border-radius:4px}.order-dialog-content ::v-deep .el-table__body tr{cursor:move;-webkit-transition:all .3s;transition:all .3s}.order-dialog-content ::v-deep .el-table__body tr:hover{background-color:#f5f7fa}.order-dialog-content ::v-deep .el-table__body tr[draggable=true]{cursor:move}.batch-modify-responsible-modal .batch-modify-content{padding:20px 0;display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px;min-height:400px;max-height:600px}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel{width:250px;-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;border-right:1px solid #ebeef5;padding-right:20px;overflow:hidden}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;min-height:0}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:8px 12px;background:#f5f7fa;border-radius:4px;margin-bottom:8px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .collapse-icon{font-size:12px;color:#909399;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .collapse-icon:hover{color:#409eff}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .category-title{font-size:14px;font-weight:600;color:#303133}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .category-count{font-size:12px;color:#909399;background:#fff;padding:2px 8px;border-radius:10px}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;padding:0 8px;max-height:300px}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item{padding:6px 10px;margin-bottom:4px;border-radius:4px;font-size:13px;color:#606266;cursor:pointer;-webkit-transition:all .3s;transition:all .3s}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item:hover{background:#f5f7fa}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.distributed{border-left:3px solid #67c23a;background:#f0f9ff}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.temp-saved{border-left:3px solid #e6a23c;background:#fdf6ec}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.temp-saved.clickable{cursor:pointer}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.temp-saved.clickable:hover{background:#faecd8;-webkit-transform:translateX(2px);transform:translateX(2px)}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.undistributed{border-left:3px solid #909399;background:#f5f7fa}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .empty-tip{text-align:center;color:#c0c4cc;font-size:12px;padding:20px 0}.batch-modify-responsible-modal .batch-modify-content .right-form-panel{-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:0;overflow-y:auto}.batch-modify-responsible-modal .batch-modify-content .el-form .el-form-item{margin-bottom:20px}.batch-modify-responsible-modal .dialog-footer{text-align:right;padding-top:20px}.batch-modify-responsible-modal .handler-select{width:100%}.batch-modify-responsible-modal .department-tree-search{margin-bottom:15px}.batch-modify-responsible-modal .department-tree{max-height:400px;overflow-y:auto}.user-id-text{margin-right:30px}.engine-detail-page{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.engine-detail-page .page-header{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:56px;position:relative;width:100%;min-height:56px;background:#fff;border-bottom:1px solid #ebeef5;padding:0 20px}.engine-detail-page .page-header,.engine-detail-page .page-header .header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.engine-detail-page .page-header .header-left{gap:12px;-webkit-box-flex:1;-ms-flex:1;flex:1}.engine-detail-page .page-header .header-left .label{width:50px!important}.engine-detail-page .page-header .header-left .back-button{padding:0;font-size:14px;color:#409eff;cursor:pointer;pointer-events:auto}.engine-detail-page .page-header .header-left .back-button:hover{color:#66b1ff}.engine-detail-page .page-header .header-left .back-button i{margin-right:4px}.engine-detail-page .page-header .header-left .title{color:#303133;font-weight:700;margin:0;font-size:18px}.engine-detail-page .page-header .operation{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.engine-detail-page .detail-body{padding:16px 20px 24px 20px;-ms-flex:1;flex:1;overflow:hidden!important}.engine-detail-page .detail-body,.engine-detail-page .page-approval-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;min-height:0}.engine-detail-page .page-approval-content{background:#fff;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;padding:20px;overflow-y:auto;overflow-x:hidden}.engine-detail-page .block-section{border-radius:8px;padding:24px 24px 16px 24px;margin-bottom:24px;background:#fff}.engine-detail-page .block-section .section-title{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px}.engine-detail-page .info-grid .label{font-size:16px;color:#909399}.engine-detail-page .info-grid .value{font-size:16px;color:#303133;font-weight:500}.engine-detail-page .info-grid .info-item-full{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.engine-detail-page .info-grid .info-item-full .label{min-width:100px}.engine-detail-page .info-grid .info-item-full .label .required-mark{color:#f56c6c;margin-left:4px}.engine-detail-page .info-grid .info-item-full .process-title-input,.engine-detail-page .info-grid .info-item-full .value{-webkit-box-flex:1;-ms-flex:1;flex:1}.engine-detail-page .info-grid .info-item-full .process-title-input ::v-deep .el-input__inner{height:32px;line-height:32px}.engine-detail-page .info-grid .info-row{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.engine-detail-page .info-grid .info-row .info-item{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.engine-detail-page .info-grid .info-row .info-item .label{min-width:100px}.engine-detail-page .page-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:16px 20px;background:#fff;border-top:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:10}.engine-detail-page .page-footer .footer-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px}.engine-detail-page .left-tree-panel{width:230px;background:#fff;border:1px solid #ebeef5;padding:8px;font-size:14px;overflow-y:auto!important}.engine-detail-page .left-tree-panel .tree-search-header{margin-bottom:8px}.engine-detail-page .left-tree-panel .tree-search-header .search-mode-switch{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.engine-detail-page .left-tree-panel .tree-search-header .search-mode-switch ::v-deep .el-radio-button{-webkit-box-flex:1;-ms-flex:1;flex:1}.engine-detail-page .left-tree-panel .tree-search-header .search-mode-switch ::v-deep .el-radio-button .el-radio-button__inner{width:100%;padding:5px 8px;font-size:12px}.engine-detail-page .left-tree-panel .tree-search{margin-bottom:8px}.engine-detail-page .left-tree-panel .tree-actions{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;margin-bottom:8px}.engine-detail-page .left-tree-panel .tree-actions .el-button{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:5px 8px;font-size:12px}.engine-detail-page .left-tree-panel .custom-tree-node{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px}.engine-detail-page .left-tree-panel .red-tip{color:#f56c6c;white-space:pre-line}.engine-detail-page .right-content{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#fff;padding:20px;margin-left:20px;overflow:auto!important}.engine-detail-page .section{margin-bottom:24px;background:#fff}.engine-detail-page .section-title{font-weight:700;font-size:16px;color:#303133;margin:0 0 16px 0;padding:0}.engine-detail-page .grid{border:1px solid #ebeef5;border-radius:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:100%}.engine-detail-page .grid-header{display:grid;grid-template-columns:340px 100px 120px 140px 200px 120px;background:#f5f7fa;border-bottom:1px solid #ebeef5}.engine-detail-page .grid-header.without-parameter-source{grid-template-columns:340px 100px 120px 200px 120px}.engine-detail-page .grid-header.edit-mode{grid-template-columns:340px 100px minmax(220px,1fr) 200px}.engine-detail-page .grid-header.edit-mode.without-parameter-source{grid-template-columns:340px 100px minmax(220px,1fr)}.engine-detail-page .grid-header.dispatch-mode{grid-template-columns:340px 100px 120px 140px 140px 100px 140px}.engine-detail-page .grid-header.dispatch-mode.without-parameter-source{grid-template-columns:340px 100px 120px 140px 100px 140px}.engine-detail-page .grid-header.dispatch-filler-mode{grid-template-columns:340px 100px 120px 140px 140px 100px 140px}.engine-detail-page .grid-header.dispatch-filler-mode.without-parameter-source{grid-template-columns:340px 100px 120px 140px 100px 140px}.engine-detail-page .grid-row{display:grid;grid-template-columns:340px 100px 120px 140px 200px 120px;border-bottom:1px solid #ebeef5;background:#fff}.engine-detail-page .grid-row.without-parameter-source{grid-template-columns:340px 100px 120px 200px 120px}.engine-detail-page .grid-row.edit-mode{grid-template-columns:340px 100px minmax(220px,1fr) 200px}.engine-detail-page .grid-row.edit-mode.without-parameter-source{grid-template-columns:340px 100px minmax(220px,1fr)}.engine-detail-page .grid-row.dispatch-mode{grid-template-columns:340px 100px 120px 140px 140px 100px 140px}.engine-detail-page .grid-row.dispatch-mode.without-parameter-source{grid-template-columns:340px 100px 120px 140px 100px 140px}.engine-detail-page .grid-row.dispatch-filler-mode{grid-template-columns:340px 100px 120px 140px 140px 100px 140px}.engine-detail-page .grid-row.dispatch-filler-mode.without-parameter-source{grid-template-columns:340px 100px 120px 140px 100px 140px}.engine-detail-page .whole-engine-grid .whole-engine-header{grid-template-columns:340px 100px minmax(220px,1fr) 200px}.engine-detail-page .whole-engine-grid .whole-engine-header.without-parameter-source{grid-template-columns:340px 100px minmax(220px,1fr)}.engine-detail-page .whole-engine-grid .whole-engine-row{grid-template-columns:340px 100px minmax(220px,1fr) 200px}.engine-detail-page .whole-engine-grid .whole-engine-row.without-parameter-source{grid-template-columns:340px 100px minmax(220px,1fr)}.engine-detail-page .grid-row:last-child{border-bottom:none}.engine-detail-page .cell{padding:12px 16px;border-right:1px solid #ebeef5;font-size:14px;color:#303133;text-align:left;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.engine-detail-page .cell:last-child{border-right:none}.engine-detail-page .header-cell{background:#f5f7fa;color:#606266;font-weight:400;font-size:14px}.engine-detail-page .cell ::v-deep .el-select:not(.responsible-select){width:100%}.engine-detail-page .cell ::v-deep .el-select:not(.responsible-select) .el-input__inner{border:none;padding:0;background:transparent;text-align:left;height:auto;line-height:normal}.engine-detail-page .cell ::v-deep .el-select:not(.responsible-select) .el-input__suffix{right:0}.engine-detail-page .cell .param-input{width:100%}.engine-detail-page .cell .param-input ::v-deep .el-input__inner{height:32px;line-height:32px;border:1px solid #dcdfe6;border-radius:4px}.engine-detail-page .cell .param-input ::v-deep .el-input__inner:focus{border-color:#409eff}.engine-detail-page .cell .responsible-select{width:100%}.engine-detail-page .cell .responsible-select ::v-deep .el-input__inner{height:32px!important;line-height:32px!important;border:1px solid #dcdfe6!important;border-radius:4px!important;background:#fff!important;padding:0 30px 0 15px!important}.engine-detail-page .cell .responsible-select ::v-deep .el-input__inner:focus{border-color:#409eff!important}.engine-detail-page .header-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;margin-right:16px}.engine-detail-page .header-item .label{color:#303133;width:40px!important;font-size:14px}.engine-detail-page .header-item .value{color:#303133;font-size:14px;font-weight:500}.engine-detail-page .approval-content{gap:20px;width:100%}.engine-detail-page .approval-content,.engine-detail-page .approval-content .approval-change-table{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.engine-detail-page .approval-content .approval-change-table{gap:12px}.engine-detail-page .approval-content .approval-change-table .change-table-title{font-size:14px;font-weight:600;color:#303133}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper{width:100%;overflow-x:auto}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content{width:100%;border-collapse:collapse;border:1px solid #ebeef5;background:#fff}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead{display:table;width:100%;table-layout:fixed;background:#f5f7fa}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;white-space:nowrap}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th:last-child{border-right:none}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-engine-model-name{min-width:120px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-subsystem-name{min-width:150px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-parameter-type{min-width:120px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-parts-name{min-width:100px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-parameter-name{width:340px;min-width:340px;max-width:340px;-webkit-box-sizing:border-box;box-sizing:border-box}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-parameter-value{min-width:120px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-common{min-width:200px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody{display:block;max-height:450px;overflow-y:auto;overflow-x:hidden}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row{display:table;width:100%;table-layout:fixed}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row:not(:last-child){border-bottom:1px solid #ebeef5}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row:hover{background:#f5f7fa}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row td{padding:12px 16px;font-size:14px;color:#606266;border-right:1px solid #ebeef5;vertical-align:middle}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row td:last-child{border-right:none}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row td.col-parameter-name{width:340px;min-width:340px;max-width:340px;-webkit-box-sizing:border-box;box-sizing:border-box}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row td.col-common{color:#f56c6c}.engine-detail-page .approval-content .approval-description{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-top:10px}.engine-detail-page .approval-content .approval-description .description-label{font-size:14px;font-weight:600;margin-bottom:8px;color:#303133}.engine-detail-page .approval-content .approval-description .workflow-title-label{font-size:16px;font-weight:600;margin-bottom:8px}.engine-detail-page .approval-content .approval-workflow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}.engine-detail-page .approval-content .approval-workflow .workflow-title{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.engine-detail-page .approval-content .approval-workflow .workflow-table{width:100%}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content{width:100%;border-collapse:collapse;border:1px solid #ebeef5}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content thead{background:#f5f7fa}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content thead th.step-name-col{width:120px}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content thead th.handler-col{width:auto}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row:not(:last-child){border-bottom:1px solid #ebeef5}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell{padding:12px 16px;vertical-align:middle}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name{font-size:14px;color:#303133}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name .required-mark{color:#f56c6c;margin-left:4px}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell{padding:12px 16px;vertical-align:middle}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select{width:100%;min-width:200px}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select ::v-deep .el-input__inner{height:32px;line-height:32px}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select ::v-deep .el-tag{margin:2px 4px 2px 0}.whole-engine-params-section{margin-bottom:24px;background:#fff}.whole-engine-params-section .section-title{font-weight:700;font-size:16px;color:#303133;margin:0 0 16px 0;padding:0}.whole-engine-params-section .whole-engine-params-table{border:1px solid #ebeef5;border-radius:0;overflow-x:auto}.whole-engine-params-section .whole-engine-params-table .whole-engine-table{width:100%;border-collapse:collapse}.whole-engine-params-section .whole-engine-params-table .whole-engine-table thead{background:#f5f7fa}.whole-engine-params-section .whole-engine-params-table .whole-engine-table thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;white-space:nowrap}.whole-engine-params-section .whole-engine-params-table .whole-engine-table thead th:last-child{border-right:none}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr{border-bottom:1px solid #ebeef5;background:#fff}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr:hover{background:#f5f7fa}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr:last-child{border-bottom:none}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr td{padding:12px 16px;font-size:14px;color:#606266;border-right:1px solid #ebeef5;vertical-align:middle}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr td:last-child{border-right:none}.whole-engine-params-section .status-tag{display:inline-block;padding:2px 8px;border-radius:2px;font-size:12px;line-height:1.5}.whole-engine-params-section .status-tag.status-done{background:#67c23a;color:#fff}.whole-engine-params-section .status-tag.status-partial{background:#e6a23c;color:#fff}.whole-engine-params-section .status-tag.status-pending{background:#f5f7fa;color:#606266}:deep(.el-tree-node__content){padding-left:10px!important}.distributed-status{color:#f56c6c;font-weight:500}.add-engine-model-modal .add-engine-form{padding:20px 0;height:calc(70vh - 120px)!important;overflow-y:auto!important}.add-engine-model-modal .add-engine-form .form-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0}.add-engine-model-modal .add-engine-form .form-row .el-form-item{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:20px;margin-bottom:20px}.add-engine-model-modal .add-engine-form .form-row .el-form-item:last-child{margin-right:0}.add-engine-model-modal .dialog-footer{text-align:right;padding-top:20px}.custom-page .page-header .operation{-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.custom-page .page-header .operation .import-button{background:#fff;border:1px solid #409eff;color:#409eff;padding:8px 16px;border-radius:4px;font-size:14px}.custom-page .page-header .operation .import-button:hover{background:#b3d8ff;border-color:#66b1ff;color:#409eff}.custom-page .page-header .operation .import-button:active{background:#409eff;color:#fff}.custom-page .page-header .operation .add-button{padding:8px 16px;border-radius:4px;font-size:14px}.custom-page .status-tag{padding:2px 8px;border-radius:2px}.custom-page .status-tag.status-done{background:#67c23a;color:#fff}.custom-page .status-tag.status-partial{background:#e6a23c;color:#fff}.custom-page .status-tag.status-pending{background:#f5f7fa;color:#606266}.custom-page .import-uploader,.custom-page .import-uploader .el-upload,.custom-page .import-uploader .el-upload-dragger{width:100%}.link-separator{width:4px;height:14px}.app-loading{position:absolute;top:42%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-loading .loading-gif{width:60%;height:60%}.app-ie :not(font){font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.model-query-tab[data-v-54c378cc]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.model-query-tab .check-data-panel[data-v-54c378cc]{padding:16px 20px;margin-bottom:0;border-bottom:1px solid #cbccce}.model-query-tab .check-data-panel .panel-header[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.model-query-tab .check-data-panel .panel-header .header-right[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-ms-flex-negative:0;flex-shrink:0}.model-query-tab .check-data-panel .panel-header .header-right .favorites-label[data-v-54c378cc]{font-size:14px;color:#303133;white-space:nowrap}.model-query-tab .check-data-panel .panel-header .header-right .favorites-select[data-v-54c378cc]{width:200px}.model-query-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-54c378cc]{background:#fff;border:1px solid #409eff;color:#409eff;padding:8px 16px;border-radius:4px;font-size:14px}.model-query-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-54c378cc]:hover{background:#ecf5ff;border-color:#66b1ff;color:#66b1ff}.model-query-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-54c378cc]:active{background:#409eff;color:#fff}.model-query-tab .check-data-panel .panel-header .header-right .add-favorite-button[data-v-54c378cc]{padding:8px 16px;border-radius:4px;font-size:14px}.model-query-tab .model-query-content[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;background:#f5f7fa;height:calc(100vh - 160px)}.model-query-tab .model-query-content .left-param-panel[data-v-54c378cc]{width:230px;background:#fff;border:1px solid #ebeef5;padding:12px;font-size:14px;overflow-y:auto!important;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;height:calc(100% - 30px)}.model-query-tab .model-query-content .left-param-panel .tree-search-header[data-v-54c378cc]{margin-bottom:8px}.model-query-tab .model-query-content .left-param-panel .tree-search-header .search-mode-switch[data-v-54c378cc]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.model-query-tab .model-query-content .left-param-panel .tree-search-header .search-mode-switch[data-v-54c378cc] .el-radio-button{-webkit-box-flex:1;-ms-flex:1;flex:1}.model-query-tab .model-query-content .left-param-panel .tree-search-header .search-mode-switch[data-v-54c378cc] .el-radio-button .el-radio-button__inner{width:100%;padding:5px 8px;font-size:12px}.model-query-tab .model-query-content .left-param-panel .tree-search[data-v-54c378cc]{margin-bottom:8px}.model-query-tab .model-query-content .left-param-panel .tree-select-actions[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:8px;-ms-flex-negative:0;flex-shrink:0}.model-query-tab .model-query-content .left-param-panel .tree-select-actions .tree-select-checkbox[data-v-54c378cc] .el-checkbox__label{font-size:12px;padding-left:6px}.model-query-tab .model-query-content .left-param-panel .custom-tree-node[data-v-54c378cc]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px}.model-query-tab .model-query-content .left-param-panel .red-tip[data-v-54c378cc]{color:#f56c6c;white-space:pre-line}.model-query-tab .model-query-content .right-comparison-panel[data-v-54c378cc]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;background:#fff;height:100%}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper[data-v-54c378cc]{width:100%;height:100%;max-height:100%;overflow:auto}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table[data-v-54c378cc]{width:100%;border-collapse:collapse;min-width:800px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead[data-v-54c378cc]{background:#f5f7fa}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th[data-v-54c378cc]{padding:12px;text-align:left;border:1px solid #ebeef5;font-weight:500;font-size:14px;color:#303133;position:sticky;top:0;background:#f5f7fa;z-index:8}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.subsystem-column[data-v-54c378cc]{width:120px;min-width:120px;left:0;z-index:15}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.parts-column[data-v-54c378cc]{width:140px;min-width:140px;left:120px;z-index:15}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.param-column[data-v-54c378cc]{width:200px;min-width:200px;left:260px;z-index:15}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.unit-column[data-v-54c378cc]{width:80px;min-width:80px;left:460px;z-index:15}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.model-column[data-v-54c378cc]{min-width:180px;text-align:center;z-index:8}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.add-column[data-v-54c378cc]{min-width:150px;text-align:center;z-index:8}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.add-column span[data-v-54c378cc]{font-size:16px;font-weight:bolder;color:#000}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;position:relative}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .model-image[data-v-54c378cc]{width:120px;height:80px;-o-object-fit:contain;object-fit:contain;border-radius:4px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .model-name[data-v-54c378cc]{font-size:14px;color:#303133}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .model-remove[data-v-54c378cc]{position:absolute;top:-8px;right:-8px;cursor:pointer;color:#909399;font-size:16px;background:#fff;border-radius:50%;width:20px;height:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .model-remove[data-v-54c378cc]:hover{color:#f56c6c;background:#fef0f0}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .add-model-placeholder[data-v-54c378cc]{width:120px;height:80px;border:2px dashed #dcdfe6;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:#909399;-webkit-transition:all .3s;transition:all .3s}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .add-model-placeholder[data-v-54c378cc]:hover{border-color:#409eff;color:#409eff;background:#ecf5ff}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .add-model-placeholder i[data-v-54c378cc]{font-size:24px;margin-bottom:4px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .add-model-placeholder span[data-v-54c378cc]{font-size:14px;color:#000;font-weight:bolder}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr:hover td.param-column[data-v-54c378cc],.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr:hover td.parts-column[data-v-54c378cc],.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr:hover td.subsystem-column[data-v-54c378cc],.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr:hover td.unit-column[data-v-54c378cc],.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr[data-v-54c378cc]:hover{background:#f5f7fa}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td[data-v-54c378cc]{padding:12px;border:1px solid #ebeef5;font-size:14px;color:#606266}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.subsystem-column[data-v-54c378cc]{position:sticky;left:0;background:#fff;z-index:5}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.parts-column[data-v-54c378cc]{position:sticky;left:120px;background:#fff;z-index:5}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.param-column[data-v-54c378cc]{position:sticky;left:260px;background:#fff;z-index:5;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.param-column .param-name[data-v-54c378cc]{-webkit-box-flex:1;-ms-flex:1;flex:1}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.param-column .param-config-icon[data-v-54c378cc]{cursor:pointer;color:#909399;font-size:14px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.param-column .param-config-icon[data-v-54c378cc]:hover{color:#409eff}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.unit-column[data-v-54c378cc]{position:sticky;left:460px;background:#fff;z-index:5;text-align:center}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.model-column[data-v-54c378cc]{text-align:center}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.add-column[data-v-54c378cc]{background:#fafafa}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.add-column span[data-v-54c378cc]{font-size:16px;font-weight:bolder;color:#000}.model-query-tab .hidden-params-button[data-v-54c378cc],.model-query-tab .hidden-params-dropdown[data-v-54c378cc]{margin-left:12px}.model-query-tab .hidden-params-button .hidden-count[data-v-54c378cc]{margin-left:4px;color:#f56c6c;font-weight:500}.model-query-tab .model-select-dialog .model-search-input[data-v-54c378cc]{margin-bottom:16px}.model-query-tab .model-select-dialog .model-list-wrapper .el-table[data-v-54c378cc]{border:1px solid #ebeef5}.model-query-tab .hidden-params-dialog-content .empty-hint[data-v-54c378cc]{text-align:center;padding:40px 0;color:#909399;font-size:14px}.model-query-tab .hidden-params-dialog-content .hidden-params-header[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #ebeef5}.v-modal[data-v-54c378cc]{display:none!important}[data-v-54c378cc] .el-button{line-height:.85!important}.report-detail[data-v-a279c7d0]{height:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.report-detail .detail-panel[data-v-a279c7d0],.report-detail[data-v-a279c7d0]{width:100%;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex}.report-detail .detail-panel[data-v-a279c7d0]{border-radius:12px;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.report-detail .detail-header[data-v-a279c7d0]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:24px 32px 16px 32px;border-bottom:1px solid #ebeef5}.report-detail .detail-header .header-left[data-v-a279c7d0],.report-detail .detail-header[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.report-detail .detail-header .header-left[data-v-a279c7d0]{gap:16px}.report-detail .detail-header .header-right[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.report-detail .detail-header .back-button[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#606266}.report-detail .detail-header .back-button[data-v-a279c7d0] .el-icon-arrow-left{font-size:16px}.report-detail .detail-header .header-info[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px}.report-detail .detail-header .header-info .title[data-v-a279c7d0]{font-size:20px;font-weight:600;color:#303133}.report-detail .detail-header .header-info .subtitle[data-v-a279c7d0]{font-size:14px;color:#909399}.report-detail .detail-content[data-v-a279c7d0]{padding:24px 32px 40px 32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:auto;gap:24px}.report-detail .detail-content.has-footer[data-v-a279c7d0]{padding-bottom:100px}.report-detail .block-section[data-v-a279c7d0]{border-radius:8px;padding:24px 24px 16px 24px}.report-detail .block-section .section-title[data-v-a279c7d0]{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px}.report-detail .info-grid .label[data-v-a279c7d0]{font-size:16px;color:#909399}.report-detail .info-grid .value[data-v-a279c7d0]{font-size:16px;color:#303133;font-weight:500}.report-detail .info-grid .info-item-full[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.report-detail .info-grid .info-item-full .label[data-v-a279c7d0]{min-width:100px}.report-detail .info-grid .info-item-full .value[data-v-a279c7d0]{-webkit-box-flex:1;-ms-flex:1;flex:1}.report-detail .info-grid .info-item-full .process-title-value-wrapper[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.report-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-a279c7d0]{cursor:pointer;color:#909399;font-size:14px;-webkit-transition:color .3s;transition:color .3s;-ms-flex-negative:0;flex-shrink:0}.report-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-a279c7d0]:hover{color:#409eff}.report-detail .info-grid .info-item-full .process-title-input-wrapper[data-v-a279c7d0]{-webkit-box-flex:1;-ms-flex:1;flex:1}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding-right:8px}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon{cursor:pointer;font-size:16px;-webkit-transition:color .3s;transition:color .3s}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon.el-icon-check{color:#67c23a}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon.el-icon-check:hover{color:#529b2e}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon.el-icon-close{color:#909399}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon.el-icon-close:hover{color:#606266}.report-detail .info-grid .info-row[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.report-detail .info-grid .info-row .info-item[data-v-a279c7d0]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.report-detail .info-grid .info-row .info-item .label[data-v-a279c7d0]{min-width:100px}.report-detail .info-grid[data-v-a279c7d0]:not(:has(.info-item-full)):not(:has(.info-row)){display:grid;grid-template-columns:repeat(2,1fr);border:1px solid #ebeef5;border-radius:4px;overflow:hidden}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;border-right:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item[data-v-a279c7d0]:nth-child(2n){border-right:none}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item[data-v-a279c7d0]:nth-last-child(-n+2){border-bottom:none}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item .label[data-v-a279c7d0]{font-size:16px;color:#303133;background:#f5f7fa;padding:12px 16px;min-width:140px;width:140px;text-align:right;border-right:1px solid #ebeef5;font-weight:500;-ms-flex-negative:0;flex-shrink:0}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item .value[data-v-a279c7d0]{font-size:14px;color:#303133;padding:12px 16px;-webkit-box-flex:1;-ms-flex:1;flex:1;word-break:break-word}.report-detail .description-block[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;font-size:14px;color:#606266;margin-top:16px}.report-detail .description-block .label[data-v-a279c7d0]{color:#909399}.report-detail .description-block .value[data-v-a279c7d0]{-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:pre-line;word-break:break-word}.report-detail .approval-timeline[data-v-a279c7d0]{padding:20px 0}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline{padding-left:0}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item{padding-bottom:24px}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item:last-child{padding-bottom:0}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item .el-timeline-item__node{width:12px;height:12px;left:0;top:4px;border:2px solid #fff;-webkit-box-shadow:0 0 0 2px #409eff;box-shadow:0 0 0 2px #409eff}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item .el-timeline-item__wrapper{top:0;padding-left:28px}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item .el-timeline-item__wrapper .el-timeline-item__content{padding-top:0}.report-detail .timeline-item-content[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:0}.report-detail .timeline-item-content .node-title[data-v-a279c7d0]{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.report-detail .timeline-item-content .node-content[data-v-a279c7d0]{background:#f4f7fc;border-radius:4px;padding:12px;gap:8px}.report-detail .timeline-item-content .node-content[data-v-a279c7d0],.report-detail .timeline-item-content .node-info[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.report-detail .timeline-item-content .node-info[data-v-a279c7d0]{gap:4px;font-size:13px;color:#606266}.report-detail .timeline-item-content .node-user[data-v-a279c7d0]{color:#303133;font-weight:500}.report-detail .timeline-item-content .node-time[data-v-a279c7d0]{color:#909399;font-size:12px;margin-left:8px}.report-detail .timeline-item-content .node-status[data-v-a279c7d0]{display:inline-block;font-size:13px;font-weight:500;border-radius:2px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.report-detail .timeline-item-content .node-status.status-approve[data-v-a279c7d0],.report-detail .timeline-item-content .node-status.status-initiate[data-v-a279c7d0],.report-detail .timeline-item-content .node-status.status-pass[data-v-a279c7d0]{color:#67c23a;background:transparent}.report-detail .timeline-item-content .node-status.status-msg[data-v-a279c7d0]{color:#409eff;background:transparent}.report-detail .timeline-item-content .node-status.status-reject[data-v-a279c7d0]{color:#f56c6c;background:transparent}.report-detail .timeline-item-content .node-status.status-approving[data-v-a279c7d0],.report-detail .timeline-item-content .node-status.status-pending[data-v-a279c7d0]{color:#e6a23c;background:transparent}.report-detail .timeline-item-content .node-status.status-default[data-v-a279c7d0]{color:#909399;background:transparent}.report-detail .timeline-item-content .node-opinion[data-v-a279c7d0]{font-size:13px;color:#000;line-height:1.6}.report-detail .empty-progress[data-v-a279c7d0]{text-align:center;padding:40px 20px;color:#909399;font-size:14px}.report-detail .empty-progress .empty-text[data-v-a279c7d0]{display:inline-block}.report-detail-fade-enter-active[data-v-a279c7d0],.report-detail-fade-leave-active[data-v-a279c7d0]{-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.report-detail-fade-enter[data-v-a279c7d0],.report-detail-fade-leave-to[data-v-a279c7d0]{opacity:0}[data-v-a279c7d0] .el-timeline-item__tail{left:7px;top:3px}.dialog-body-wrapper[data-v-a279c7d0]{max-height:70vh;overflow-y:auto;padding-right:10px}.approval-workflow[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-top:20px}.approval-workflow .workflow-title[data-v-a279c7d0]{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.approval-workflow .workflow-table[data-v-a279c7d0]{width:100%}.approval-workflow .workflow-table .workflow-table-content[data-v-a279c7d0]{width:100%;border-collapse:collapse;border:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content thead[data-v-a279c7d0]{background:#f5f7fa}.approval-workflow .workflow-table .workflow-table-content thead th[data-v-a279c7d0]{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content thead th.step-name-col[data-v-a279c7d0]{width:120px}.approval-workflow .workflow-table .workflow-table-content thead th.handler-col[data-v-a279c7d0]{width:auto}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row[data-v-a279c7d0]:not(:last-child){border-bottom:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell[data-v-a279c7d0]{padding:12px 16px;vertical-align:middle}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name[data-v-a279c7d0]{font-size:14px;color:#303133}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name .required-mark[data-v-a279c7d0]{color:#f56c6c;margin-left:4px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell[data-v-a279c7d0]{padding:12px 16px;vertical-align:middle}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select[data-v-a279c7d0]{width:100%;min-width:200px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select[data-v-a279c7d0] .el-input__inner{height:32px;line-height:32px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select[data-v-a279c7d0] .el-tag{margin:2px 4px 2px 0}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-display[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-display .handler-tag[data-v-a279c7d0]{display:inline-block;padding:4px 12px;background:#f0f2f5;border:1px solid #e4e7ed;border-radius:4px;font-size:14px;color:#606266}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-empty[data-v-a279c7d0]{color:#909399;font-size:14px}.el-select-dropdown__item[data-v-a279c7d0]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-a279c7d0]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-a279c7d0]{color:#909399!important;display:inline-block;margin-left:20px;text-align:right!important}[data-v-a279c7d0] .el-upload-dragger{width:100%;height:180px}[data-v-a279c7d0] .el-form-item{margin-bottom:18px}.launch-section[data-v-a279c7d0]{margin-top:24px}.launch-content[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:20px}.page-footer[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:16px 32px;background:#fff;border-top:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:10}.page-footer .footer-buttons[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px}.required-mark[data-v-a279c7d0]{color:#f56c6c;margin-left:4px}.return-node-dialog-content[data-v-a279c7d0]{padding:10px 0}.return-node-dialog-content .empty-hint[data-v-a279c7d0]{text-align:center;padding:40px 0;color:#909399;font-size:14px}.return-node-dialog-content .return-node-list[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;max-height:300px;overflow-y:auto;margin-bottom:16px}.return-node-dialog-content .return-node-list .return-node-item[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px;border:1px solid #ebeef5;border-radius:4px;-webkit-transition:all .3s;transition:all .3s}.return-node-dialog-content .return-node-list .return-node-item[data-v-a279c7d0]:hover{border-color:#409eff;background:#ecf5ff}.return-node-dialog-content .return-node-list .return-node-item .node-info[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px;margin-left:8px}.return-node-dialog-content .return-node-list .return-node-item .node-info .node-title[data-v-a279c7d0]{font-size:14px;font-weight:500;color:#303133}.return-node-dialog-content .return-node-list .return-node-item .node-info .node-user[data-v-a279c7d0]{font-size:12px;color:#909399}.return-node-dialog-content .return-opinion-section[data-v-a279c7d0]{margin-top:16px;padding-top:16px;border-top:1px solid #ebeef5}.return-node-dialog-content .return-opinion-section .opinion-label[data-v-a279c7d0]{margin-bottom:8px;font-size:14px;color:#606266;font-weight:500}[data-v-a279c7d0] .el-button{line-height:.85!important}.custom-page .page-data-list{background:#fff}.benchmark-report-tab[data-v-1e4bdbcb]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.benchmark-report-tab .page-search-panel[data-v-1e4bdbcb]{background:#fff;padding:16px 24px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;gap:16px}.benchmark-report-tab .page-search-panel .search-fields[data-v-1e4bdbcb],.benchmark-report-tab .page-search-panel[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.benchmark-report-tab .page-search-panel .search-fields[data-v-1e4bdbcb]{gap:12px}.benchmark-report-tab .page-search-panel .search-row[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:40px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%}.benchmark-report-tab .page-search-panel .search-field[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.benchmark-report-tab .page-search-panel .search-field .field-label[data-v-1e4bdbcb]{font-size:14px;font-weight:600;color:#303133;white-space:nowrap;min-width:64px;text-align:right}.benchmark-report-tab .page-search-panel .search-field .el-input[data-v-1e4bdbcb],.benchmark-report-tab .page-search-panel .search-field .el-select[data-v-1e4bdbcb]{width:160px}.benchmark-report-tab .page-search-panel .search-field[data-v-1e4bdbcb] :deep(.el-input__inner),.benchmark-report-tab .page-search-panel .search-field[data-v-1e4bdbcb] :deep(.el-select .el-input__inner){height:32px;line-height:32px}.benchmark-report-tab .page-search-panel .search-actions[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;margin-left:auto}.benchmark-report-tab .page-search-panel .search-actions[data-v-1e4bdbcb] :deep(.el-button){padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.benchmark-report-tab .page-search-panel .search-row[data-v-1e4bdbcb]:not(:last-child){-webkit-box-align:center;-ms-flex-align:center;align-items:center}.benchmark-report-tab .batch-action-panel[data-v-1e4bdbcb]{background:#fff;padding:16px 20px;margin-top:0;border-bottom:1px solid #ebeef5}.benchmark-report-tab .batch-action-panel .el-button[data-v-1e4bdbcb]{padding:8px 16px;font-size:14px;border-radius:4px;height:32px;line-height:1}.benchmark-report-tab .page-data-list[data-v-1e4bdbcb]{padding:20px;background:#f5f7fa;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.benchmark-report-tab .page-data-list .operation-links[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.benchmark-report-tab .page-data-list .operation-links .el-link[data-v-1e4bdbcb]{font-size:14px}.apaas-custom-check-data[data-v-7efe03a6]{overflow-y:auto;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.apaas-custom-check-data .tab-header[data-v-7efe03a6]{background:#fff;padding:0 20px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__header{margin:0;border-bottom:none}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__nav-wrap:after{height:1px;background-color:#ebeef5}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__item{height:48px;line-height:48px;font-size:14px;color:#606266}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__item.is-active{color:#409eff;font-weight:500}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__item:hover{color:#409eff}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__active-bar{background-color:#409eff}.apaas-custom-check-data .tab-content[data-v-7efe03a6],.statistics-tab[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.statistics-tab .page-search-panel[data-v-7efe03a6]{background:#fff;padding:16px 24px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;gap:16px}.statistics-tab .page-search-panel .search-fields[data-v-7efe03a6],.statistics-tab .page-search-panel[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.statistics-tab .page-search-panel .search-fields[data-v-7efe03a6]{gap:12px;width:100%}.statistics-tab .page-search-panel .search-row[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:10px;width:100%}.statistics-tab .page-search-panel .search-actions[data-v-7efe03a6],.statistics-tab .page-search-panel .search-field[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1 1 calc(33.33333% - 16px);flex:1 1 calc(33.33333% - 16px);min-width:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.statistics-tab .page-search-panel .search-field .field-label[data-v-7efe03a6]{font-size:14px;font-weight:600;color:#303133;white-space:nowrap;min-width:64px!important;text-align:right}.statistics-tab .page-search-panel .search-field .el-input[data-v-7efe03a6],.statistics-tab .page-search-panel .search-field .el-select[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1;flex:1}.statistics-tab .page-search-panel .search-field[data-v-7efe03a6] :deep(.el-input__inner),.statistics-tab .page-search-panel .search-field[data-v-7efe03a6] :deep(.el-select .el-input__inner){height:32px;line-height:32px}.statistics-tab .page-search-panel .range-field .range-input-group[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;-webkit-box-flex:1;-ms-flex:1;flex:1}.statistics-tab .page-search-panel .range-field .range-input[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1;flex:1}.statistics-tab .page-search-panel .range-field .range-separator[data-v-7efe03a6]{color:#606266;line-height:32px;font-size:14px}.statistics-tab .page-search-panel .search-actions[data-v-7efe03a6]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.statistics-tab .page-search-panel[data-v-7efe03a6] :deep(.el-button){padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.statistics-tab .favorites-panel[data-v-7efe03a6]{background:#fff;padding:16px 20px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .favorites-panel .header-right[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .favorites-panel .header-right .favorites-label[data-v-7efe03a6]{font-size:14px;color:#303133;white-space:nowrap}.statistics-tab .favorites-panel .header-right .favorites-select[data-v-7efe03a6]{width:200px}.statistics-tab .favorites-panel .header-right .update-favorite-button[data-v-7efe03a6]{background:#fff;border:1px solid #409eff;color:#409eff;padding:8px 16px;border-radius:4px;font-size:14px}.statistics-tab .favorites-panel .header-right .update-favorite-button[data-v-7efe03a6]:hover{background:#ecf5ff;border-color:#66b1ff;color:#66b1ff}.statistics-tab .favorites-panel .header-right .update-favorite-button[data-v-7efe03a6]:active{background:#409eff;color:#fff}.statistics-tab .favorites-panel .header-right .add-favorite-button[data-v-7efe03a6]{padding:8px 16px;border-radius:4px;font-size:14px}.statistics-tab .check-data-panel[data-v-7efe03a6]{padding:16px 20px;margin-bottom:0;border-bottom:1px solid #cbccce}.statistics-tab .check-data-panel .panel-header[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.statistics-tab .check-data-panel .panel-header .panel-title[data-v-7efe03a6]{font-size:18px;font-weight:500;color:#303133;margin:0;line-height:1}.statistics-tab .check-data-panel .panel-header .header-right[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .check-data-panel .panel-header .header-right .favorites-label[data-v-7efe03a6]{font-size:14px;color:#303133;white-space:nowrap}.statistics-tab .check-data-panel .panel-header .header-right .favorites-select[data-v-7efe03a6]{width:200px}.statistics-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-7efe03a6]{background:#fff;border:1px solid #409eff;color:#409eff;padding:8px 16px;border-radius:4px;font-size:14px}.statistics-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-7efe03a6]:hover{background:#ecf5ff;border-color:#66b1ff;color:#66b1ff}.statistics-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-7efe03a6]:active{background:#409eff;color:#fff}.statistics-tab .check-data-panel .panel-header .header-right .add-favorite-button[data-v-7efe03a6]{padding:8px 16px;border-radius:4px;font-size:14px}.statistics-tab .chart-management-panel[data-v-7efe03a6]{background:transparent;margin-top:16px;margin-left:20px;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;-ms-flex-negative:0;flex-shrink:0;min-height:56px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.statistics-tab .floating-panel[data-v-7efe03a6]{position:fixed;right:20px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1000;-webkit-transition:all .3s ease;transition:all .3s ease}.statistics-tab .floating-panel .floating-panel-toggle[data-v-7efe03a6]{width:48px;height:48px;background:#409eff;border-radius:50%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-box-shadow:0 4px 12px rgba(64,158,255,.4);box-shadow:0 4px 12px rgba(64,158,255,.4);-webkit-transition:all .3s ease;transition:all .3s ease;color:#fff;font-size:20px}.statistics-tab .floating-panel .floating-panel-toggle[data-v-7efe03a6]:hover{background:#66b1ff;-webkit-box-shadow:0 6px 16px rgba(64,158,255,.5);box-shadow:0 6px 16px rgba(64,158,255,.5);-webkit-transform:scale(1.1);transform:scale(1.1)}.statistics-tab .floating-panel .floating-panel-content[data-v-7efe03a6]{position:absolute;right:60px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:#fff;border-radius:8px;-webkit-box-shadow:0 4px 20px rgba(0,0,0,.15);box-shadow:0 4px 20px rgba(0,0,0,.15);padding:12px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;min-width:120px;white-space:nowrap}.statistics-tab .floating-panel .floating-panel-content[data-v-7efe03a6] .el-button{width:100%;min-width:120px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:10px 16px;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:0!important}.statistics-tab .floating-panel .floating-panel-content[data-v-7efe03a6] .el-button i{margin-right:8px;width:16px;-ms-flex-negative:0;flex-shrink:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.statistics-tab .floating-panel.expanded .floating-panel-toggle[data-v-7efe03a6]{background:#f56c6c}.statistics-tab .floating-panel.expanded .floating-panel-toggle[data-v-7efe03a6]:hover{background:#f78989}.statistics-tab .empty-chart-area[data-v-7efe03a6]{min-height:2px;padding:0!important;margin:0!important;-webkit-box-shadow:none!important;box-shadow:none!important;border-radius:0!important;background:transparent!important}.statistics-tab .chart-area[data-v-7efe03a6]{background:#fff;margin:20px;margin-top:10px;min-height:2px;padding:20px;border-radius:4px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-ms-flex-negative:0;flex-shrink:0}.statistics-tab .chart-area .chart-header[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #ebeef5;position:relative}.statistics-tab .chart-area .chart-header .chart-title-section[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-ms-flex:1;flex:1}.statistics-tab .chart-area .chart-header .chart-title-section .title-edit-icon[data-v-7efe03a6]{margin-left:8px;cursor:pointer;color:#909399;font-size:14px}.statistics-tab .chart-area .chart-header .chart-title-section .title-input[data-v-7efe03a6]{width:200px}.statistics-tab .chart-area .chart-header .chart-title-section .title-input[data-v-7efe03a6] .el-input__inner{border:none;border-bottom:1px solid #409eff;border-radius:0;padding-left:0}.statistics-tab .chart-area .chart-header .chart-title-section .chart-title[data-v-7efe03a6]{font-size:16px;font-weight:500;cursor:pointer;padding:4px 8px}.statistics-tab .chart-area .chart-header .chart-title-section .chart-title[data-v-7efe03a6]:hover{color:#409eff;background:#f5f7fa;border-radius:4px}.statistics-tab .chart-area .chart-header .chart-header-right[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .chart-area .chart-header .chart-header-right .el-button[data-v-7efe03a6]{margin-left:0}.statistics-tab .chart-area .chart-header .chart-header-right .download-button[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;cursor:pointer;color:#909399;padding:4px 8px;border-radius:4px;font-size:14px;-webkit-transition:all .3s;transition:all .3s}.statistics-tab .chart-area .chart-header .chart-header-right .download-button[data-v-7efe03a6]:hover{color:#409eff;background:#f5f7fa}.statistics-tab .chart-area .chart-header .chart-header-right .download-button i[data-v-7efe03a6]{font-size:14px}.statistics-tab .chart-area .chart-header .chart-header-right .delete-button[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;cursor:pointer;color:#909399;padding:4px 8px;border-radius:4px;font-size:14px;-webkit-transition:all .3s;transition:all .3s}.statistics-tab .chart-area .chart-header .chart-header-right .delete-button[data-v-7efe03a6]:hover{color:#f56c6c;background:#f5f7fa}.statistics-tab .chart-area .chart-header .chart-header-right .delete-button i[data-v-7efe03a6]{font-size:14px}.statistics-tab .chart-area .chart-config[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px 24px;margin-bottom:20px;padding:16px;background:#f5f7fa;border-radius:4px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .chart-area .chart-config .config-item .config-label[data-v-7efe03a6]{font-size:14px;white-space:nowrap;min-width:70px;color:#606266}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .el-select{width:150px;height:32px}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select{width:250px!important}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-input__inner{height:32px}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-select__input{display:inline-block!important;visibility:visible!important;opacity:1!important}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-select__tags{max-height:none}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-tag{max-width:160px;-webkit-box-sizing:border-box;box-sizing:border-box}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-tag .el-select__tags-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-select__tags-text{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .el-select .el-input__inner{height:32px}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .el-button{margin-left:0}.statistics-tab .chart-area .chart-config .config-item .y-axis-range-input[data-v-7efe03a6]{width:100px}.statistics-tab .chart-area .chart-config .config-item .range-separator[data-v-7efe03a6]{margin:0 8px;color:#606266}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6]{width:370px}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6] .y-axis-param-select{width:280px!important}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6] .y-axis-param-select .el-input__inner{height:32px}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6] .y-axis-param-select .el-select__input{display:inline-block!important;visibility:visible!important;opacity:1!important}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6] .y-axis-param-select .el-select__tags{max-height:none}.statistics-tab .chart-area .chart-wrapper[data-v-7efe03a6]{position:relative}.statistics-tab .chart-area .chart-wrapper .chart-resize-handle[data-v-7efe03a6]{position:absolute;bottom:0;left:0;right:0;height:8px;cursor:row-resize;z-index:5;background:transparent;-webkit-transition:background .2s;transition:background .2s}.statistics-tab .chart-area .chart-wrapper .chart-resize-handle[data-v-7efe03a6]:hover{background:rgba(64,158,255,.2)}.statistics-tab .chart-area .chart-wrapper .chart-resize-handle[data-v-7efe03a6]:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:40px;height:4px;background:#dcdfe6;border-radius:2px;-webkit-transition:background .2s;transition:background .2s}.statistics-tab .chart-area .chart-wrapper .chart-resize-handle[data-v-7efe03a6]:hover:before{background:#409eff}.statistics-tab .chart-area .chart-container[data-v-7efe03a6]{width:100%;min-height:200px}.statistics-tab .formula-dialog-content[data-v-7efe03a6]{height:100%;overflow-y:auto;overflow-x:hidden}.statistics-tab .formula-dialog-content .selected-params-display[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px;padding:8px;background:#f5f7fa;border-radius:4px;min-height:32px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.statistics-tab .formula-dialog-content .selected-params-display .selected-param-tag[data-v-7efe03a6]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 8px;background:#e8f5e9;border:1px solid #67c23a;border-radius:3px;font-size:12px;color:#67c23a;line-height:1.5}.statistics-tab .formula-dialog-content .formula-builder[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;position:relative;padding-top:30px}.statistics-tab .formula-dialog-content .formula-builder .builder-help[data-v-7efe03a6]{position:absolute;top:0;right:0;z-index:10}.statistics-tab .formula-dialog-content .formula-builder .builder-help .help-button[data-v-7efe03a6]{color:#409eff;font-size:12px;padding:4px 8px;border:none;background:transparent}.statistics-tab .formula-dialog-content .formula-builder .builder-help .help-button[data-v-7efe03a6]:hover{color:#66b1ff}.statistics-tab .formula-dialog-content .formula-builder .builder-help .help-button i[data-v-7efe03a6]{margin-right:4px}.statistics-tab .formula-dialog-content .draggable-items[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;padding:12px;background:#f5f7fa;border-radius:4px;border:1px solid #dcdfe6;-ms-flex-wrap:wrap;flex-wrap:wrap}.statistics-tab .formula-dialog-content .items-section[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:150px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:6px}.statistics-tab .formula-dialog-content .items-section .section-title[data-v-7efe03a6]{font-size:12px;font-weight:600;color:#303133;margin-bottom:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px}.statistics-tab .formula-dialog-content .items-section .section-title .section-tip[data-v-7efe03a6]{font-size:10px;font-weight:400;color:#909399}.statistics-tab .formula-dialog-content .items-section .items-container[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.statistics-tab .formula-dialog-content .items-section .empty-tip[data-v-7efe03a6]{font-size:12px;color:#909399;padding:4px 0}.statistics-tab .formula-dialog-content .items-section .number-section-container[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;width:100%}.statistics-tab .formula-dialog-content .items-section .number-input-row[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;width:100%}.statistics-tab .formula-dialog-content .items-section .number-input-row .number-label[data-v-7efe03a6]{font-size:12px;font-weight:600;color:#303133;white-space:nowrap}.statistics-tab .formula-dialog-content .items-section .number-input-row[data-v-7efe03a6] .el-button,.statistics-tab .formula-dialog-content .items-section .number-input-row[data-v-7efe03a6] .el-input-number{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.statistics-tab .formula-dialog-content .items-section .recent-numbers[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px;margin-top:0}.statistics-tab .formula-dialog-content .draggable-item[data-v-7efe03a6]{padding:4px 8px;background:#fff;border:1px solid #dcdfe6;border-radius:3px;cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:12px;color:#303133;-webkit-transition:all .2s;transition:all .2s;line-height:1.5}.statistics-tab .formula-dialog-content .draggable-item[data-v-7efe03a6]:hover{background:#ecf5ff;border-color:#409eff;color:#409eff;-webkit-transform:translateY(-1px);transform:translateY(-1px);-webkit-box-shadow:0 1px 4px rgba(64,158,255,.2);box-shadow:0 1px 4px rgba(64,158,255,.2)}.statistics-tab .formula-dialog-content .draggable-item.param-item[data-v-7efe03a6]{background:#e8f5e9;border-color:#67c23a;color:#67c23a;font-size:11px}.statistics-tab .formula-dialog-content .draggable-item.param-item[data-v-7efe03a6]:hover{background:#c8e6c9;border-color:#67c23a}.statistics-tab .formula-dialog-content .draggable-item.operator-item[data-v-7efe03a6]{background:#fff3e0;border-color:#e6a23c;color:#e6a23c;font-weight:600}.statistics-tab .formula-dialog-content .draggable-item.operator-item[data-v-7efe03a6]:hover{background:#ffe0b2;border-color:#e6a23c}.statistics-tab .formula-dialog-content .draggable-item.bracket-item[data-v-7efe03a6]{background:#f3e5f5;border-color:#9c27b0;color:#9c27b0;font-weight:600;font-size:14px;padding:4px 10px}.statistics-tab .formula-dialog-content .draggable-item.bracket-item[data-v-7efe03a6]:hover{background:#e1bee7;border-color:#9c27b0}.statistics-tab .formula-dialog-content .draggable-item.number-item[data-v-7efe03a6]{background:#e3f2fd;border-color:#2196f3;color:#2196f3}.statistics-tab .formula-dialog-content .draggable-item.number-item[data-v-7efe03a6]:hover{background:#bbdefb;border-color:#2196f3}.statistics-tab .formula-dialog-content .formula-preview-area[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px}.statistics-tab .formula-dialog-content .formula-preview-area .preview-title[data-v-7efe03a6]{font-size:12px;font-weight:600;color:#303133}.statistics-tab .formula-dialog-content .formula-preview-area .preview-container[data-v-7efe03a6]{min-height:60px;padding:10px;background:#f5f7fa;border:2px dashed #dcdfe6;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start}.statistics-tab .formula-dialog-content .formula-preview-area .preview-container.drag-over[data-v-7efe03a6]{border-color:#409eff;background:#ecf5ff}.statistics-tab .formula-dialog-content .formula-preview-area .empty-preview[data-v-7efe03a6]{width:100%;text-align:center;color:#909399;font-size:12px;padding:15px 0}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item[data-v-7efe03a6]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;padding:4px 8px;background:#fff;border:1px solid #dcdfe6;border-radius:3px;font-size:12px;position:relative;line-height:1.5;cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .2s;transition:all .2s}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item[data-v-7efe03a6]:hover{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.1);box-shadow:0 2px 8px rgba(0,0,0,.1);-webkit-transform:translateY(-1px);transform:translateY(-1px)}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-dragging[data-v-7efe03a6]{opacity:.5;-webkit-transform:scale(.95);transform:scale(.95)}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.drag-over[data-v-7efe03a6]{border-color:#409eff;border-width:2px;-webkit-box-shadow:0 0 8px rgba(64,158,255,.4);box-shadow:0 0 8px rgba(64,158,255,.4)}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-param[data-v-7efe03a6]{background:#e8f5e9;border-color:#67c23a;color:#67c23a;font-size:11px}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-operator[data-v-7efe03a6]{background:#fff3e0;border-color:#e6a23c;color:#e6a23c;font-weight:600}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-bracket[data-v-7efe03a6]{background:#f3e5f5;border-color:#9c27b0;color:#9c27b0;font-weight:600;font-size:14px;padding:4px 10px}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-number[data-v-7efe03a6]{background:#e3f2fd;border-color:#2196f3;color:#2196f3}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item .item-content[data-v-7efe03a6]{line-height:1.5}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item .remove-btn[data-v-7efe03a6]{cursor:pointer;color:#909399;font-size:10px;padding:1px;border-radius:50%;-webkit-transition:all .2s;transition:all .2s;margin-left:2px}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item .remove-btn[data-v-7efe03a6]:hover{color:#f56c6c;background:#fef0f0}.statistics-tab .formula-dialog-content .formula-preview-area .preview-actions[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:6px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.statistics-tab .formula-dialog-content .formula-preview-area .preview-actions[data-v-7efe03a6] .el-button{padding:6px 12px;font-size:12px}[data-v-7efe03a6] .el-tag--light{margin-right:5px!important}.search-field[data-v-7efe03a6]{-webkit-box-flex:1!important;-ms-flex:1 1 calc(25% - 7.5px)!important;flex:1 1 calc(25% - 7.5px)!important;max-width:calc(25% - 15px)!important}.search-field[data-v-7efe03a6] .el-select .el-tag{max-width:70px;font-size:12px!important;color:#909399!important;background:#ecedee!important;-webkit-box-sizing:border-box;box-sizing:border-box}.search-field[data-v-7efe03a6] .el-select .el-tag .el-select__tags-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.search-field[data-v-7efe03a6] .el-select .el-select__tags-text{max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.chart-config[data-v-7efe03a6] .el-select .el-tag{max-width:160px;-webkit-box-sizing:border-box;box-sizing:border-box}.chart-config[data-v-7efe03a6] .el-select .el-tag .el-select__tags-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.chart-config[data-v-7efe03a6] .el-select .el-select__tags-text{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.formula-dialog[data-v-7efe03a6] .el-dialog{height:70vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.formula-dialog[data-v-7efe03a6] .el-dialog__header{-ms-flex-negative:0;flex-shrink:0;padding:20px 20px 10px}.formula-dialog[data-v-7efe03a6] .el-dialog__body{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;padding:20px}.formula-dialog[data-v-7efe03a6] .el-dialog__footer{-ms-flex-negative:0;flex-shrink:0;padding:10px 20px 20px;border-top:1px solid #ebeef5}[data-v-7efe03a6] .el-button{line-height:.85!important}[data-v-7efe03a6] .formula-help-popover .help-content p{margin:0;font-size:14px;line-height:1.6;color:#303133}[data-v-7efe03a6] .model-select-dialog{padding:20px 0}[data-v-7efe03a6] .model-select-dialog .transfer-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-v-7efe03a6] .model-select-dialog .transfer-item .transfer-item-label{font-size:14px;color:#303133}[data-v-7efe03a6] .model-select-dialog .el-transfer-panel__header .el-input,[data-v-7efe03a6] .model-select-dialog .el-transfer-panel__header .el-input .el-input__inner{width:260px}[data-v-7efe03a6] .model-select-dialog .el-transfer-panel__body{height:300px}[data-v-7efe03a6] .model-select-dialog .el-transfer-panel__list{height:230px;overflow-y:auto;padding:0 10px}[data-v-7efe03a6] .model-select-dialog .el-transfer__buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 20px}[data-v-7efe03a6] .model-select-dialog .el-transfer__buttons .el-button{margin:0;margin-bottom:10px}[data-v-7efe03a6] .model-select-dialog .el-transfer__buttons .el-button:last-child{margin-bottom:0}[data-v-7efe03a6] .el-transfer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[data-v-7efe03a6] .el-transfer-panel{width:300px!important}[data-v-7efe03a6] .el-transfer-panel .el-input{width:260px!important}.apaas-custom-report-check[data-v-9b434c4a]{width:100%;height:100%;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.apaas-custom-report-check .page-search-panel[data-v-9b434c4a]{display:-webkit-box;display:-ms-flexbox;display:flex;background:#fff;padding:8px 20px 24px 20px;position:relative;-ms-flex-negative:0;flex-shrink:0}.apaas-custom-report-check .page-search-panel .search-list[data-v-9b434c4a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;max-width:calc(100% - 140px);-ms-flex-wrap:wrap;flex-wrap:wrap}.apaas-custom-report-check .page-search-panel .search-list .search-component[data-v-9b434c4a]{width:calc(25% - 32px);padding:24px 0;padding-right:32px;padding-bottom:0;margin-bottom:0}.apaas-custom-report-check .page-search-panel .search-list .search-component[data-v-9b434c4a] .el-form-item{margin-bottom:0}.apaas-custom-report-check .page-search-panel .search-list .search-component[data-v-9b434c4a] .el-form-item .el-form-item__label{font-size:12px;line-height:unset;margin-bottom:8px;color:#303133}.apaas-custom-report-check .page-search-panel .search-list .search-component[data-v-9b434c4a] .el-form-item__content{font-size:12px;line-height:32px}.apaas-custom-report-check .page-search-panel .search-button-group[data-v-9b434c4a]{position:absolute;bottom:24px;right:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.apaas-custom-report-check .page-search-panel .search-button-group .search-tip[data-v-9b434c4a]{color:#f56c6c;font-size:12px;margin-left:8px}.apaas-custom-report-check .page-data-list[data-v-9b434c4a]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.apaas-custom-report-check .page-data-list .x-empty-page[data-v-9b434c4a]{top:0}.apaas-custom-report-check .page-data-list[data-v-9b434c4a] .el-link--primary{color:#409eff;font-size:14px;text-decoration:none}.apaas-custom-report-check .page-data-list[data-v-9b434c4a] .el-link--primary:hover{color:#66b1ff;text-decoration:underline}[data-v-9b434c4a] .el-button{line-height:.85!important}.custom-page .page-header .operation{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.custom-page .toolbar{background:#fff;padding:0 20px 12px 20px;-ms-flex-negative:0;flex-shrink:0}.file-list{margin-top:10px}.file-list .file-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:8px 0;border-bottom:1px solid #ebeef5}.file-list .file-item .el-icon-document{color:#909399;font-size:16px;margin-right:8px}.file-list .file-item .file-name{-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px;color:#606266}.file-list .file-item .file-remove{cursor:pointer;color:#909399;margin-left:10px}.file-list .file-item .file-remove:hover{color:#409eff}.dialog-body-wrapper{max-height:70vh;overflow-y:auto;padding-right:10px}::v-deep .create-report-dialog .el-dialog__body{padding:20px 20px 10px 20px;max-height:70vh;overflow-y:auto}::v-deep .el-upload-dragger{width:100%;height:180px}::v-deep .el-form-item{margin-bottom:18px}.approval-workflow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-top:20px}.approval-workflow .workflow-title{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.approval-workflow .workflow-table{width:100%}.approval-workflow .workflow-table .workflow-table-content{width:100%;border-collapse:collapse;border:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content thead{background:#f5f7fa}.approval-workflow .workflow-table .workflow-table-content thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content thead th.step-name-col{width:120px}.approval-workflow .workflow-table .workflow-table-content thead th.handler-col{width:auto}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row:not(:last-child){border-bottom:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell{padding:12px 16px;vertical-align:middle}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name{font-size:14px;color:#303133}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name .required-mark{color:#f56c6c;margin-left:4px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell{padding:12px 16px;vertical-align:middle}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select{width:100%;min-width:200px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select ::v-deep .el-input__inner{height:32px;line-height:32px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select ::v-deep .el-tag{margin:2px 4px 2px 0}.page-search-panel{background:#fff;padding:16px 24px!important;border-bottom:1px solid #ebeef5!important;-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;gap:16px}.page-search-panel .search-actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;gap:12px}.page-search-panel .search-actions ::v-deep .el-button{padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.searched-fields{max-height:200px!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;-webkit-box-orient:horizontal!important;-webkit-box-direction:normal!important;-ms-flex-direction:row!important;flex-direction:row!important;gap:16px 32px!important;width:100%!important}.searched-field,.searched-fields{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.searched-field{-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center!important;gap:12px!important;-webkit-box-flex:1!important;-ms-flex:1 1 calc(25% - 24px)!important;flex:1 1 calc(25% - 24px)!important;max-width:calc(25% - 32px)!important}.searched-field .fielded-label{font-size:14px;font-weight:600;color:#303133;white-space:nowrap;min-width:80px!important;text-align:right;-moz-text-align-last:right;text-align-last:right;text-justify:inter-ideograph}.searched-field .el-input,.searched-field .el-select{width:170px}.searched-field ::v-deep .el-input__inner,.searched-field ::v-deep .el-select .el-input__inner{height:32px;line-height:32px}.el-select-dropdown__item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text{text-align:right!important}.approval-progress-detail[data-v-3047f45e]{width:100%;min-height:100%;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.approval-progress-detail .detail-panel[data-v-3047f45e]{width:100%;background:#fff;border-radius:12px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.approval-progress-detail .detail-header[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:24px 32px 16px 32px;border-bottom:1px solid #ebeef5}.approval-progress-detail .detail-header .header-left[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:16px;-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .detail-header .header-right[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.approval-progress-detail .detail-header .back-button[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#606266}.approval-progress-detail .detail-header .back-button[data-v-3047f45e] .el-icon-arrow-left{font-size:16px}.approval-progress-detail .detail-header .header-info[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px}.approval-progress-detail .detail-header .header-info .title[data-v-3047f45e]{font-size:20px;font-weight:600;color:#303133}.approval-progress-detail .detail-header .header-info .subtitle[data-v-3047f45e]{font-size:14px;color:#909399}.approval-progress-detail .detail-content[data-v-3047f45e]{padding:24px 32px 40px 32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px}.approval-progress-detail .block-section[data-v-3047f45e]{border-radius:8px;padding:12px 24px 16px 12px}.approval-progress-detail .block-section .section-title[data-v-3047f45e]{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.approval-progress-detail .block-section .section-title .collapse-icon[data-v-3047f45e]{font-size:14px;color:#909399;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.approval-progress-detail .block-section .section-title .collapse-icon[data-v-3047f45e]:hover{color:#409eff}.approval-progress-detail .info-grid .label[data-v-3047f45e]{font-size:16px;color:#909399}.approval-progress-detail .info-grid .value[data-v-3047f45e]{font-size:16px;color:#303133;font-weight:500}.approval-progress-detail .info-grid .info-item-full[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .info-item-full .label[data-v-3047f45e]{min-width:100px}.approval-progress-detail .info-grid .info-item-full .value[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-3047f45e]{cursor:pointer;color:#909399;font-size:14px;-webkit-transition:color .3s;transition:color .3s;-ms-flex-negative:0;flex-shrink:0}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-3047f45e]:hover{color:#409eff}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding-right:8px}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon{cursor:pointer;font-size:16px;-webkit-transition:color .3s;transition:color .3s}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon.el-icon-check{color:#67c23a}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon.el-icon-check:hover{color:#529b2e}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon.el-icon-close{color:#909399}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon.el-icon-close:hover{color:#606266}.approval-progress-detail .info-grid .info-row[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .info-row .info-item[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .info-grid .info-row .info-item .label[data-v-3047f45e]{min-width:100px}.approval-progress-detail .info-grid .theme-info-item[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .theme-info-item .value[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .remain-info[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .info-grid .remain-info .info-item[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .change-table[data-v-3047f45e]{width:100%;margin-bottom:16px;max-height:500px;overflow-y:hidden}.approval-progress-detail .change-table[data-v-3047f45e] .el-table__header-wrapper th{background:#f0f2f5;color:#606266;font-weight:500}.approval-progress-detail .change-table[data-v-3047f45e] .el-table__body-wrapper{max-height:500px;overflow-y:auto}.approval-progress-detail .pagination-wrapper[data-v-3047f45e]{margin-top:16px;margin-bottom:16px;padding-right:0}.approval-progress-detail .pagination-wrapper[data-v-3047f45e],.approval-progress-detail .pagination-wrapper[data-v-3047f45e] .el-pagination{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.approval-progress-detail .pagination-wrapper[data-v-3047f45e] .el-pagination .el-select .el-input{width:100px!important}.approval-progress-detail .modify-details-text[data-v-3047f45e]{white-space:pre-line;word-break:break-word}.approval-progress-detail .change-tag[data-v-3047f45e]{display:inline-block;padding:4px 8px;border-radius:12px;font-size:12px;line-height:1;background:#f4f4f5;color:#909399}.approval-progress-detail .change-create[data-v-3047f45e]{background:#f0f9eb;color:#67c23a}.approval-progress-detail .change-update[data-v-3047f45e]{background:#ecf5ff;color:#409eff}.approval-progress-detail .change-delete[data-v-3047f45e]{background:#fef0f0;color:#f56c6c}.approval-progress-detail .description-block[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;font-size:14px;color:#606266}.approval-progress-detail .description-block .label[data-v-3047f45e]{color:#909399}.approval-progress-detail .approval-timeline[data-v-3047f45e]{padding:20px 5px;max-height:400px;overflow-y:auto}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline{padding-left:0}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item{padding-bottom:24px}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item:last-child{padding-bottom:0}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item .el-timeline-item__node{width:12px;height:12px;left:0;top:4px;border:2px solid #fff;-webkit-box-shadow:0 0 0 2px #409eff;box-shadow:0 0 0 2px #409eff}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item .el-timeline-item__wrapper{top:0;padding-left:28px}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item .el-timeline-item__wrapper .el-timeline-item__content{padding-top:0}.approval-progress-detail .timeline-item-content[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:0}.approval-progress-detail .timeline-item-content .node-title[data-v-3047f45e]{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.approval-progress-detail .timeline-item-content .node-content[data-v-3047f45e]{background:#f4f7fc;border-radius:4px;padding:12px;gap:8px}.approval-progress-detail .timeline-item-content .node-content[data-v-3047f45e],.approval-progress-detail .timeline-item-content .node-info[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.approval-progress-detail .timeline-item-content .node-info[data-v-3047f45e]{gap:4px;font-size:13px;color:#606266}.approval-progress-detail .timeline-item-content .node-user[data-v-3047f45e]{color:#303133;font-weight:500}.approval-progress-detail .timeline-item-content .node-time[data-v-3047f45e]{color:#909399;font-size:12px;margin-left:8px}.approval-progress-detail .timeline-item-content .node-status[data-v-3047f45e]{display:inline-block;font-size:13px;font-weight:500;border-radius:2px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.approval-progress-detail .timeline-item-content .node-status.status-approve[data-v-3047f45e],.approval-progress-detail .timeline-item-content .node-status.status-initiate[data-v-3047f45e],.approval-progress-detail .timeline-item-content .node-status.status-pass[data-v-3047f45e]{color:#67c23a;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-reject[data-v-3047f45e]{color:#f56c6c;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-approving[data-v-3047f45e],.approval-progress-detail .timeline-item-content .node-status.status-pending[data-v-3047f45e]{color:#e6a23c;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-default[data-v-3047f45e]{color:#909399;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-return[data-v-3047f45e]{color:#409eff;background:transparent}.approval-progress-detail .timeline-item-content .node-opinion[data-v-3047f45e]{font-size:13px;color:#000;line-height:1.6}.approval-progress-detail .empty-progress[data-v-3047f45e]{text-align:center;padding:40px 20px;color:#909399;font-size:14px}.approval-progress-detail .empty-progress .empty-text[data-v-3047f45e]{display:inline-block}.approval-progress-fade-enter-active[data-v-3047f45e],.approval-progress-fade-leave-active[data-v-3047f45e]{-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.approval-progress-fade-enter[data-v-3047f45e],.approval-progress-fade-leave-to[data-v-3047f45e]{opacity:0}[data-v-3047f45e] .el-timeline-item__tail{left:7px;top:3px}.return-node-dialog-content[data-v-3047f45e]{padding:10px 0}.return-node-dialog-content .empty-hint[data-v-3047f45e]{text-align:center;padding:40px 0;color:#909399;font-size:14px}.return-node-dialog-content .return-node-list[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;max-height:300px;overflow-y:auto;margin-bottom:16px}.return-node-dialog-content .return-node-list .return-node-item[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px;border:1px solid #ebeef5;border-radius:4px;-webkit-transition:all .3s;transition:all .3s}.return-node-dialog-content .return-node-list .return-node-item[data-v-3047f45e]:hover{border-color:#409eff;background:#ecf5ff}.return-node-dialog-content .return-node-list .return-node-item .node-info[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px;margin-left:8px}.return-node-dialog-content .return-node-list .return-node-item .node-info .node-title[data-v-3047f45e]{font-size:14px;font-weight:500;color:#303133}.return-node-dialog-content .return-node-list .return-node-item .node-info .node-user[data-v-3047f45e]{font-size:12px;color:#909399}.return-node-dialog-content .return-opinion-section[data-v-3047f45e]{margin-top:16px;padding-top:16px;border-top:1px solid #ebeef5}.return-node-dialog-content .return-opinion-section .opinion-label[data-v-3047f45e]{margin-bottom:8px;font-size:14px;color:#606266;font-weight:500}[data-v-3047f45e] .el-button{line-height:.85!important}.pagination-select-dropdown{width:110px!important;min-width:110px!important;max-width:110px!important}.pagination-select-dropdown .el-select-dropdown__wrap{max-height:200px}.pagination-select-dropdown .el-select-dropdown__item{width:100%;text-align:left;padding:0 10px}::v-deep .el-select-dropdown__item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text{color:#303133!important;display:inline-block;text-align:left!important}.user-id-text{color:#909399!important;display:inline-block;margin-left:20px;text-align:right!important}.custom-page .page-header{overflow:auto}.custom-page .page-header .title{font-size:18px}.custom-page .page-search-panel{padding:16px 24px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}.custom-page .page-search-panel .search-fields{max-height:200px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:16px 32px;width:100%}.custom-page .page-search-panel .search-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-webkit-box-flex:1!important;-ms-flex:1 1 calc(25% - 24px)!important;flex:1 1 calc(25% - 24px)!important;max-width:calc(25% - 32px)!important}.custom-page .page-search-panel .search-field .field-label{font-size:14px;font-weight:600;color:#303133;white-space:nowrap;min-width:80px!important;text-align:justify;-moz-text-align-last:justify;text-align-last:justify;text-justify:inter-ideograph}.custom-page .page-search-panel .search-field .el-input,.custom-page .page-search-panel .search-field .el-select{width:170px}.custom-page .page-search-panel .search-field ::v-deep .el-input__inner,.custom-page .page-search-panel .search-field ::v-deep .el-select .el-input__inner{height:32px;line-height:32px}.custom-page .page-search-panel .search-actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;gap:12px}.custom-page .page-search-panel .search-actions ::v-deep .el-button{padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.custom-page .status-tag{padding:4px 12px}.custom-page .status-tag.status-withdrawn{background:#f56c6c;color:#fff}.manager-data-page[data-v-7ef84f50]{width:100%;height:100%;padding:20px;background:#fff}.manager-data-page .page-content[data-v-7ef84f50],.manager-data-page[data-v-7ef84f50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.manager-data-page .page-content[data-v-7ef84f50]{gap:16px}.manager-data-page .header-section[data-v-7ef84f50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-ms-flex-wrap:wrap;flex-wrap:wrap}.manager-data-page .header-section .comment-text[data-v-7ef84f50]{color:#909399;font-size:14px}.manager-data-page .header-section .title[data-v-7ef84f50]{color:#303133;font-weight:700;margin-left:20px;font-size:18px}.manager-data-page .header-section .search-section[data-v-7ef84f50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.manager-data-page .table-section[data-v-7ef84f50]{width:100%}.manager-data-page .table-section .table-toolbar[data-v-7ef84f50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px}.manager-data-page .pagination-section[data-v-7ef84f50]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.manager-data-page .link-separator[data-v-7ef84f50]{margin:0 8px;color:#dcdfe6}.manager-data-page .footer-comment[data-v-7ef84f50]{margin-top:16px}.manager-data-page .footer-comment .red-comment[data-v-7ef84f50]{color:#f56c6c;font-size:14px}[data-v-7ef84f50] .el-popper{width:auto!important}.page-content[data-v-7ef84f50]{width:calc(100% - 80px)!important}.handler-select[data-v-7ef84f50]{width:100%}.el-select-dropdown__item[data-v-7ef84f50]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-7ef84f50]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-7ef84f50]{color:#909399!important;display:inline-block;margin-left:20px;margin-right:30px;text-align:right!important}.department-tree-search[data-v-7ef84f50]{margin-bottom:16px}.department-tree[data-v-7ef84f50]{max-height:400px;overflow-y:auto;border:1px solid #ebeef5;border-radius:4px;padding:8px}.import-uploader .el-upload-dragger[data-v-7ef84f50],.import-uploader .el-upload[data-v-7ef84f50],.import-uploader[data-v-7ef84f50]{width:100%}[data-v-7ef84f50] .el-button{line-height:.85!important}.filler-data-page[data-v-05e52e5d]{width:100%;height:100%;padding:20px;background:#fff}.filler-data-page .page-content[data-v-05e52e5d],.filler-data-page[data-v-05e52e5d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.filler-data-page .page-content[data-v-05e52e5d]{gap:16px}.filler-data-page .header-section[data-v-05e52e5d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.filler-data-page .header-section .comment-text[data-v-05e52e5d]{color:#909399;font-size:14px}.filler-data-page .table-section[data-v-05e52e5d]{width:100%}.filler-data-page .table-section .table-toolbar[data-v-05e52e5d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px}.filler-data-page .pagination-section[data-v-05e52e5d]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.filler-data-page .link-separator[data-v-05e52e5d]{margin:0 8px;color:#dcdfe6}.filler-data-page .footer-comment[data-v-05e52e5d]{margin-top:16px}.filler-data-page .footer-comment .red-comment[data-v-05e52e5d]{color:#f56c6c;font-size:14px}[data-v-05e52e5d] .el-popper{width:auto!important}.page-content[data-v-05e52e5d]{width:calc(100% - 80px)!important}.el-select-dropdown__item[data-v-05e52e5d]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-05e52e5d]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-05e52e5d]{color:#909399!important;display:inline-block;margin-left:20px;text-align:right!important}.department-tree-search[data-v-05e52e5d]{margin-bottom:16px}.department-tree[data-v-05e52e5d]{max-height:400px;overflow-y:auto;border:1px solid #ebeef5;border-radius:4px;padding:8px}.approval-progress-detail[data-v-9071b4da]{width:100%;height:100%;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.approval-progress-detail .detail-panel[data-v-9071b4da]{width:100%;background:#fff;border-radius:12px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.approval-progress-detail .detail-header[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:24px 32px 16px 32px;border-bottom:1px solid #ebeef5}.approval-progress-detail .detail-header .header-left[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:16px}.approval-progress-detail .detail-header .header-right[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.approval-progress-detail .detail-header .back-button[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#606266}.approval-progress-detail .detail-header .back-button[data-v-9071b4da] .el-icon-arrow-left{font-size:16px}.approval-progress-detail .detail-header .header-info[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px}.approval-progress-detail .detail-header .header-info .title[data-v-9071b4da]{font-size:20px;font-weight:600;color:#303133}.approval-progress-detail .detail-header .header-info .subtitle[data-v-9071b4da]{font-size:14px;color:#909399}.approval-progress-detail .detail-content[data-v-9071b4da]{padding:24px 32px 40px 32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:auto;gap:24px}.approval-progress-detail .block-section[data-v-9071b4da]{border-radius:8px;padding:24px 24px 16px 24px}.approval-progress-detail .block-section .section-title[data-v-9071b4da]{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px}.approval-progress-detail .info-grid .label[data-v-9071b4da]{font-size:16px;color:#909399}.approval-progress-detail .info-grid .value[data-v-9071b4da]{font-size:16px;color:#303133;font-weight:500}.approval-progress-detail .info-grid .info-item-full[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .info-item-full .label[data-v-9071b4da]{min-width:100px}.approval-progress-detail .info-grid .info-item-full .value[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-9071b4da]{cursor:pointer;color:#909399;font-size:14px;-webkit-transition:color .3s;transition:color .3s;-ms-flex-negative:0;flex-shrink:0}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-9071b4da]:hover{color:#409eff}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding-right:8px}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon{cursor:pointer;font-size:16px;-webkit-transition:color .3s;transition:color .3s}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon.el-icon-check{color:#67c23a}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon.el-icon-check:hover{color:#529b2e}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon.el-icon-close{color:#909399}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon.el-icon-close:hover{color:#606266}.approval-progress-detail .info-grid .info-row[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .info-row .info-item[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .info-grid .info-row .info-item .label[data-v-9071b4da]{min-width:100px}.approval-progress-detail .info-grid .theme-info-item[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .theme-info-item .value[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .remain-info[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .info-grid .remain-info .info-item[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .change-table[data-v-9071b4da]{width:100%;margin-bottom:16px}.approval-progress-detail .change-table[data-v-9071b4da] .el-table__header-wrapper th{background:#f0f2f5;color:#606266;font-weight:500}.approval-progress-detail .pagination-wrapper[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-top:16px;margin-bottom:16px}.approval-progress-detail .modify-details-text[data-v-9071b4da]{white-space:pre-line;word-break:break-word}.approval-progress-detail .change-tag[data-v-9071b4da]{display:inline-block;padding:4px 8px;border-radius:12px;font-size:12px;line-height:1;background:#f4f4f5;color:#909399}.approval-progress-detail .change-create[data-v-9071b4da]{background:#f0f9eb;color:#67c23a}.approval-progress-detail .change-update[data-v-9071b4da]{background:#ecf5ff;color:#409eff}.approval-progress-detail .change-delete[data-v-9071b4da]{background:#fef0f0;color:#f56c6c}.approval-progress-detail .description-block[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;font-size:14px;color:#606266}.approval-progress-detail .description-block .label[data-v-9071b4da]{color:#909399}.approval-progress-detail .approval-timeline[data-v-9071b4da]{padding:20px 5px;max-height:450px;overflow-y:auto}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline{padding-left:0}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item{padding-bottom:24px}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item:last-child{padding-bottom:0}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item .el-timeline-item__node{width:12px;height:12px;left:0;top:4px;border:2px solid #fff;-webkit-box-shadow:0 0 0 2px #409eff;box-shadow:0 0 0 2px #409eff}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item .el-timeline-item__wrapper{top:0;padding-left:28px}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item .el-timeline-item__wrapper .el-timeline-item__content{padding-top:0}.approval-progress-detail .timeline-item-content[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:0}.approval-progress-detail .timeline-item-content .node-title[data-v-9071b4da]{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.approval-progress-detail .timeline-item-content .node-content[data-v-9071b4da]{background:#f4f7fc;border-radius:4px;padding:12px;gap:8px}.approval-progress-detail .timeline-item-content .node-content[data-v-9071b4da],.approval-progress-detail .timeline-item-content .node-info[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.approval-progress-detail .timeline-item-content .node-info[data-v-9071b4da]{gap:4px;font-size:13px;color:#606266}.approval-progress-detail .timeline-item-content .node-user[data-v-9071b4da]{color:#303133;font-weight:500}.approval-progress-detail .timeline-item-content .node-time[data-v-9071b4da]{color:#909399;font-size:12px;margin-left:8px}.approval-progress-detail .timeline-item-content .node-status[data-v-9071b4da]{display:inline-block;font-size:13px;font-weight:500;border-radius:2px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.approval-progress-detail .timeline-item-content .node-status.status-approve[data-v-9071b4da],.approval-progress-detail .timeline-item-content .node-status.status-initiate[data-v-9071b4da],.approval-progress-detail .timeline-item-content .node-status.status-pass[data-v-9071b4da]{color:#67c23a;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-reject[data-v-9071b4da]{color:#f56c6c;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-approving[data-v-9071b4da],.approval-progress-detail .timeline-item-content .node-status.status-pending[data-v-9071b4da]{color:#e6a23c;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-default[data-v-9071b4da]{color:#909399;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-return[data-v-9071b4da]{color:#409eff;background:transparent}.approval-progress-detail .timeline-item-content .node-opinion[data-v-9071b4da]{font-size:13px;color:#000;line-height:1.6}.approval-progress-detail .empty-progress[data-v-9071b4da]{text-align:center;padding:40px 20px;color:#909399;font-size:14px}.approval-progress-detail .empty-progress .empty-text[data-v-9071b4da]{display:inline-block}.approval-progress-detail .return-node-dialog-content[data-v-9071b4da]{padding:10px 0}.approval-progress-detail .return-node-dialog-content .empty-hint[data-v-9071b4da]{text-align:center;padding:40px 0;color:#909399;font-size:14px}.approval-progress-detail .return-node-dialog-content .return-node-list[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;max-height:300px;overflow-y:auto;margin-bottom:16px}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px;border:1px solid #ebeef5;border-radius:4px;-webkit-transition:all .3s;transition:all .3s}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item[data-v-9071b4da]:hover{border-color:#409eff;background:#ecf5ff}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item .node-info[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px;margin-left:8px}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item .node-info .node-title[data-v-9071b4da]{font-size:14px;font-weight:500;color:#303133}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item .node-info .node-user[data-v-9071b4da]{font-size:12px;color:#909399}.return-opinion-section[data-v-9071b4da]{margin-top:16px!important;border-top:1px solid #ebeef5}.return-opinion-section .opinion-label[data-v-9071b4da]{margin-bottom:5px!important;margin-top:5px!important;font-size:14px;color:#606266;font-weight:500}.approval-progress-fade-enter-active[data-v-9071b4da],.approval-progress-fade-leave-active[data-v-9071b4da]{-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.approval-progress-fade-enter[data-v-9071b4da],.approval-progress-fade-leave-to[data-v-9071b4da]{opacity:0}[data-v-9071b4da] .el-timeline-item__tail{left:7px;top:3px}[data-v-9071b4da] .el-button{line-height:.85!important}.custom-page{overflow-y:auto}.custom-page .page-search-panel{display:-webkit-box;display:-ms-flexbox;display:flex;background:#fff;padding:16px 20px 16px 20px;position:relative;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.custom-page .page-search-panel .search-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-16px;margin-bottom:16px}.custom-page .page-search-panel .search-list .search-component{width:calc(25% - 16px);padding:0 16px 16px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item{margin-bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__label{font-size:14px;line-height:1.5;color:#303133;padding:0;text-align:left;width:100%!important;margin-bottom:8px;height:auto;display:block;float:none}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content{font-size:14px;line-height:32px;margin-left:0!important;width:100%}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content .el-input,.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content .el-select{width:100%}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content .el-input .el-input__inner,.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content .el-select .el-input__inner{height:32px;line-height:32px}.custom-page .page-search-panel .search-button-group{position:absolute;bottom:16px;right:20px;display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px}.custom-page .page-search-panel .search-button-group ::v-deep .el-button{padding:8px 16px;font-size:14px;border-radius:4px;height:32px;line-height:1}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--default{border-color:#409eff;color:#409eff;background:#fff}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--default:hover{background:#ecf5ff;border-color:#66b1ff;color:#66b1ff}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--default:active{background:#409eff;color:#fff}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--primary{background:#409eff;border-color:#409eff;color:#fff}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--primary:hover{background:#66b1ff;border-color:#66b1ff}.custom-page .status-tag{display:inline-block;padding:4px 8px;border-radius:20px;font-size:12px;line-height:1.5;color:#fff}.custom-page .status-tag.status-approving{background:#e6a23c;color:#fff}.custom-page .status-tag.status-approved{background:#67c23a;color:#fff}.custom-page .status-tag.status-rejected{background:#f56c6c;color:#fff}.custom-page .status-tag.status-default{background:#f5f7fa;color:#606266}.custom-page .link-divider{margin:0 8px;color:#dcdfe6}.custom-page .model-detail-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;flex-direction:column;min-height:0}.custom-page,.custom-page .model-detail-wrapper{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column}.custom-page{overflow-y:auto!important;flex-direction:column}.custom-page .page-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:56px;position:relative;width:100%;min-height:56px;background:#fff;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0}.custom-page .page-header .title{color:#303133;font-weight:700;margin-left:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px}.custom-page .page-header .operation{display:-webkit-box;display:-ms-flexbox;display:flex;min-width:330px;-webkit-box-pack:end!important;-ms-flex-pack:end!important;justify-content:flex-end!important;margin-right:20px}.custom-page .page-data-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:0;padding:20px}.custom-page .page-data-list .x-empty-page{top:0}.custom-page .engine-check-wrapper,.custom-page .engine-detail-wrapper{width:100%;height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.custom-page .approval-progress-detail-wrapper,.custom-page .report-detail-wrapper{width:100%;height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:0}::v-deep .el-button{line-height:.85!important}.manager-data-page[data-v-429f96d2]{width:100%;height:100%;padding:20px;background:#fff}.manager-data-page .page-content[data-v-429f96d2],.manager-data-page[data-v-429f96d2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.manager-data-page .page-content[data-v-429f96d2]{gap:16px}.manager-data-page .header-section[data-v-429f96d2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.manager-data-page .header-section .comment-text[data-v-429f96d2]{color:#909399;font-size:14px}.manager-data-page .header-section .title[data-v-429f96d2]{color:#303133;font-weight:700;margin-left:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:18px}.manager-data-page .table-section[data-v-429f96d2]{width:100%}.manager-data-page .table-section .perms-cell[data-v-429f96d2]{white-space:pre-line;text-align:left}.manager-data-page .table-section .table-toolbar[data-v-429f96d2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px}.manager-data-page .pagination-section[data-v-429f96d2]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.manager-data-page .link-separator[data-v-429f96d2]{margin:0 8px;color:#dcdfe6}.manager-data-page .footer-comment[data-v-429f96d2]{margin-top:16px}.manager-data-page .footer-comment .red-comment[data-v-429f96d2]{color:#f56c6c;font-size:14px}[data-v-429f96d2] .el-popper{width:auto!important}.page-content[data-v-429f96d2]{width:calc(100% - 80px)!important}.handler-select[data-v-429f96d2]{width:100%}.el-select-dropdown__item[data-v-429f96d2]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-429f96d2]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-429f96d2]{color:#909399!important;display:inline-block;margin-left:20px;margin-right:30px;text-align:right!important}.department-tree-search[data-v-429f96d2]{margin-bottom:16px}.department-tree[data-v-429f96d2]{max-height:400px;overflow-y:auto;border:1px solid #ebeef5;border-radius:4px;padding:8px}.import-uploader .el-upload-dragger[data-v-429f96d2],.import-uploader .el-upload[data-v-429f96d2],.import-uploader[data-v-429f96d2]{width:100%}[data-v-429f96d2] .el-button{line-height:.85!important}[data-v-429f96d2] .searched-fields{display:-webkit-box;display:-ms-flexbox;display:flex;gap:6px!important}.permission-management-page[data-v-cb2bc482]{width:100%;height:100%;padding:20px;background:#fff}.permission-management-page .page-content[data-v-cb2bc482],.permission-management-page[data-v-cb2bc482]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.permission-management-page .page-content[data-v-cb2bc482]{gap:16px}.permission-management-page .header-section[data-v-cb2bc482]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.permission-management-page .table-section[data-v-cb2bc482]{width:100%}.permission-management-page .table-section .table-toolbar[data-v-cb2bc482]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px}.permission-management-page .pagination-section[data-v-cb2bc482]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.permission-management-page .link-separator[data-v-cb2bc482]{margin:0 8px;color:#dcdfe6}[data-v-cb2bc482] .person-select .el-select__input{display:inline-block!important;visibility:visible!important;opacity:1!important;-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:80px!important;width:auto!important}[data-v-cb2bc482] .person-select .el-select__tags{max-width:calc(100% - 30px);-ms-flex-wrap:nowrap;flex-wrap:nowrap}[data-v-cb2bc482] .person-select .el-tag{max-width:90px}[data-v-cb2bc482] .person-select .el-tag .el-select__tags-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}[data-v-cb2bc482] .person-select .el-select-dropdown__item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-cb2bc482]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-cb2bc482]{color:#909399!important;display:inline-block;margin-left:20px;margin-right:30px;text-align:right!important}[data-v-cb2bc482] .permission-config-dialog .el-dialog__body{padding:20px}[data-v-cb2bc482] .permission-config-dialog .permission-config-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:500px}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;border:1px solid #dcdfe6;border-radius:4px;padding:10px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .tree-search-input{margin-bottom:10px}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px;width:100%}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label .type-tag{font-size:12px;padding:2px 6px;border-radius:2px;color:#fff;white-space:nowrap}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label .type-tag.menu-tag{background-color:#909399}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label .type-tag.subsystem-tag{background-color:#409eff}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label .type-tag.parameter-tag{background-color:#67c23a}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .permission-checkboxes{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:16px;margin-left:12px;-ms-flex-negative:0;flex-shrink:0}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .permission-checkboxes ::v-deep .el-checkbox{margin-right:0}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .permission-checkboxes ::v-deep .el-checkbox .el-checkbox__label{font-size:12px;padding-left:4px}[data-v-cb2bc482] .el-popper{width:auto!important}.page-content[data-v-cb2bc482]{width:calc(100% - 80px)!important}[data-v-cb2bc482] .el-button{line-height:.85!important}.role-member-management-page .page-header[data-v-5285ad22]{padding:20px;background:#fff;border-bottom:1px solid #ebeef5}.role-member-management-page .page-header .header-left[data-v-5285ad22]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px}.role-member-management-page .page-header .header-left .back-button[data-v-5285ad22]{font-size:16px;color:#409eff}.role-member-management-page .page-header .header-left .title-info[data-v-5285ad22]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px}.role-member-management-page .page-header .header-left .title-info .title[data-v-5285ad22]{font-size:18px;font-weight:600;color:#303133}.role-member-management-page .page-header .header-left .title-info .role-tip[data-v-5285ad22]{font-size:14px;color:#606266}.role-member-management-page .page-header .header-left .title-info .role-tip .role-name[data-v-5285ad22]{color:#f56c6c;font-weight:600}.role-member-management-page .page-content[data-v-5285ad22]{padding:20px}.role-member-management-page .page-content .search-section[data-v-5285ad22]{background:#fff;padding:20px;border-radius:4px;margin-bottom:20px}.role-member-management-page .page-content .search-section .search-form[data-v-5285ad22]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px;-ms-flex-wrap:wrap;flex-wrap:wrap}.role-member-management-page .page-content .search-section .search-form .search-item[data-v-5285ad22]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px}.role-member-management-page .page-content .search-section .search-form .search-item .label[data-v-5285ad22]{font-size:14px;color:#606266;white-space:nowrap}.role-member-management-page .page-content .search-section .search-form .search-actions[data-v-5285ad22]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px}.role-member-management-page .page-content .action-section[data-v-5285ad22]{margin-bottom:20px}.role-member-management-page .page-content .table-section[data-v-5285ad22]{background:#fff;padding:20px;border-radius:4px}.role-member-management-page .page-content .table-section .pagination-section[data-v-5285ad22]{margin-top:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.x-app-layout .layout-middle .layout-center .menu-switch{width:14px;height:80px;padding-right:2px;border-top-right-radius:18px;border-bottom-right-radius:18px;border:1px solid #fff;border-left:0;background-color:#fff;position:absolute;top:calc(50vh - 87px);left:-20px;-webkit-transform:translateX(120%);transform:translateX(120%);cursor:pointer;opacity:.5;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:500;border:1px solid #dcdfe6;border-left:none}.x-app-layout .layout-middle .layout-center .menu-switch:hover{background-color:#fff;opacity:1;-webkit-box-shadow:2px 0 4px 0 #dcdfe6;box-shadow:2px 0 4px 0 #dcdfe6} \ No newline at end of file +h2{color:#00f}.search-date .el-date-editor.el-input__inner{max-width:100%}.search-date .el-date-editor .el-range__icon{margin-bottom:8px}.search-number .range-item{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.search-number .range-item .range-item-divide{padding:0 8px}.edit-modal .el-form{padding:20px 0}.edit-modal .dialog-footer{text-align:right;padding-top:20px}.custom-page .page-search-panel{padding:8px 20px 24px 20px}.custom-page .page-search-panel .search-list{max-width:calc(100% - 140px)}.custom-page .page-search-panel .search-list .search-component{width:calc(25% - 32px);padding:24px 0;padding-right:32px;padding-bottom:0}.custom-page .page-search-panel .search-list .search-component .el-form-item{margin-bottom:0}.custom-page .page-search-panel .search-list .search-component .el-form-item .el-form-item__label{font-size:12px;line-height:unset;margin-bottom:8px}.custom-page .page-search-panel .search-list .search-component .el-form-item__content{font-size:12px;line-height:32px}.custom-page .page-search-panel .search-button-group{bottom:24px}.version-modal .version-list{padding:20px 0;max-height:400px;overflow-y:auto}.version-modal .version-list .version-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ebeef5}.version-modal .version-list .version-item:last-child{border-bottom:none}.version-modal .version-list .version-item .version-link{color:#409eff;text-decoration:underline;cursor:pointer;font-size:14px}.version-modal .version-list .version-item .version-link:hover{color:#66b1ff}.version-modal .version-list .version-item .version-status{color:#303133;font-size:14px}.version-modal .version-list .version-tip{text-align:center;color:#909399;font-size:14px;padding:20px 0}.back-button{padding:0!important}.header-item .label{font-size:14px!important;font-weight:500!important;color:#303133!important}.header-item .value{font-size:14px!important;font-weight:300!important}::v-deep .el-cascader{width:100%}::v-deep .el-cascader .el-cascader__tags{-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}::v-deep .el-cascader .el-input__inner{height:32px;line-height:32px}::v-deep .el-cascader__dropdown{min-width:200px!important;max-width:500px;z-index:3000!important;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px;overflow:visible}::v-deep .el-cascader__dropdown .el-cascader__suggestion-list{min-width:200px!important;max-width:500px;padding:6px 0}::v-deep .el-cascader__dropdown .el-cascader-menu{min-width:180px;max-width:300px;border-right:1px solid #e4e7ed}::v-deep .el-cascader__dropdown .el-cascader-menu:last-child{border-right:none}::v-deep .el-cascader__dropdown .el-cascader-menu__wrap{max-height:300px;overflow-y:auto;overflow-x:hidden}::v-deep .el-cascader__dropdown .el-scrollbar .el-scrollbar__wrap{overflow-x:hidden!important;overflow-y:auto!important;max-height:300px}::v-deep .el-cascader__dropdown .el-scrollbar .el-scrollbar__bar.is-vertical{right:0;width:6px}::v-deep .el-cascader__dropdown .el-scrollbar .el-scrollbar__bar.is-vertical .el-scrollbar__thumb{background-color:rgba(144,147,153,.3);border-radius:3px}::v-deep .el-cascader__dropdown .el-scrollbar .el-scrollbar__bar.is-vertical .el-scrollbar__thumb:hover{background-color:rgba(144,147,153,.5)}::v-deep .el-cascader__dropdown .el-cascader-panel{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:4px;overflow:hidden}::v-deep .el-cascader__dropdown .el-cascader-menu__item{height:34px;line-height:34px;padding:0 20px;font-size:14px;color:#606266;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;-webkit-transition:background-color .25s;transition:background-color .25s}::v-deep .el-cascader__dropdown .el-cascader-menu__item:hover{background-color:#f5f7fa}::v-deep .el-cascader__dropdown .el-cascader-menu__item.is-active{color:#409eff;font-weight:500;background-color:#ecf5ff}::v-deep .el-cascader__dropdown .el-cascader-menu__item.is-disabled{color:#c0c4cc;cursor:not-allowed;background-color:#fff}.custom-page{overflow:hidden}.custom-page .page-header{z-index:10}.custom-page .page-header .header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px}.custom-page .page-header .header-left .back-button{padding:0;margin-right:8px;font-size:14px;color:#000;cursor:pointer;pointer-events:auto}.custom-page .page-header .header-left .back-button:hover{color:#000}.custom-page .page-header .header-left .back-button i{margin-right:4px}.custom-page .page-header .header-left .header-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.custom-page .page-header .header-left .header-item .label{color:#303133;font-size:16px!important}.custom-page .page-header .header-left .header-item .value{color:#303133;font-size:16px!important;font-weight:500!important;max-width:180px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-page .page-header .header-left .version-select-item .label{width:50px!important}.custom-page .page-header .header-left .version-select-item .version-select{width:150px;margin-left:8px}.custom-page .page-header .header-left .version-select-item .version-select :deep(.el-input__inner){height:32px;line-height:32px;font-size:14px}.custom-page .page-header .header-right{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px}.custom-page .page-search-panel .search-fields{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;gap:12px}.custom-page .page-search-panel .search-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:40px;width:100%}.custom-page .page-search-panel .search-field .field-label{min-width:64px;text-align:right}.custom-page .page-search-panel .search-field .el-input,.custom-page .page-search-panel .search-field .el-select{width:160px}.custom-page .page-search-panel .search-field :deep(.el-input__inner),.custom-page .page-search-panel .search-field :deep(.el-select .el-input__inner){height:32px;line-height:32px}.custom-page .page-search-panel .search-actions{margin-left:auto}.custom-page .page-search-panel .search-actions :deep(.el-button){padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.custom-page .page-data-list{padding:10px!important;overflow:auto}.custom-page .page-data-list.has-footer{padding-bottom:80px}.custom-page .page-approval-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:0;padding:20px;overflow-y:auto;overflow-x:hidden;background:#fff}.custom-page .page-approval-content.has-footer{padding-bottom:80px}.custom-page .operation-links .link-separator{display:inline-block}.custom-page .operation-links .deleted-text{color:#f56c6c;font-size:14px;font-weight:500}.custom-page .page-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:16px 20px;background:#fff;border-top:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:10}.custom-page .page-footer .footer-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px}::v-deep .el-dialog__wrapper,::v-deep .el-dialog__wrapper .v-modal{z-index:2000!important}::v-deep .el-dialog{z-index:2001!important}::v-deep .el-dialog,::v-deep .el-dialog__body{position:relative;pointer-events:auto!important}::v-deep .el-dialog__body{z-index:2002!important}::v-deep .param-edit-dialog .el-dialog__body{height:450px;overflow-y:auto;padding:20px}::v-deep .param-edit-dialog .el-form .el-row{margin-bottom:0}::v-deep .param-edit-dialog .el-form .el-col .el-form-item,::v-deep .param-edit-dialog .el-form .el-form-item{margin-bottom:18px}::v-deep .param-edit-dialog .el-form .el-cascader{width:100%}::v-deep .param-edit-dialog .el-form .el-cascader .el-input__inner{height:32px;line-height:32px}::v-deep .el-dialog__wrapper .el-cascader__dropdown{z-index:3000!important}.right-button{border:1px solid #027aff!important;color:#027aff!important}.right-button--primary{background:#027aff!important;color:#fff!important}.search-table{min-height:380px!important}:deep(.block-table) .row-deleted,:deep(.block-table) .row-deleted td{background-color:#fef0f0!important}.required-mark{color:#f56c6c;margin-left:4px}.approval-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:20px;width:100%}.approval-content .approval-table-section{display:block}.approval-content .approval-description{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-top:10px}.approval-content .approval-description .description-label{font-size:16px;line-height:24px;font-weight:bolder;margin-bottom:8px!important;color:#303133}.approval-content .approval-process-title{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-bottom:20px}.approval-content .approval-process-title .description-label{font-size:16px;line-height:24px;font-weight:bolder;margin-bottom:8px!important;color:#303133;gap:12px}.approval-content .approval-process-title .description-label .step-actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;-ms-flex-negative:0;flex-shrink:0}.approval-content .approval-process-title .description-label .step-actions .cancel-step-btn,.approval-content .approval-process-title .description-label .step-actions .edit-step-btn,.approval-content .approval-process-title .description-label .step-actions .save-step-btn{padding:0;font-size:12px;color:#409eff}.approval-content .approval-process-title .description-label .step-actions .cancel-step-btn:hover,.approval-content .approval-process-title .description-label .step-actions .edit-step-btn:hover,.approval-content .approval-process-title .description-label .step-actions .save-step-btn:hover{color:#66b1ff}.approval-content .approval-process-title .description-label .step-actions .cancel-step-btn{color:#909399}.approval-content .approval-process-title .description-label .step-actions .cancel-step-btn:hover{color:#a6a9ad}.approval-content .approval-workflow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}.approval-content .approval-workflow .workflow-title{font-size:14px;font-weight:600;color:#303133}.approval-content .approval-workflow .workflow-table{width:100%}.approval-content .approval-workflow .workflow-table .workflow-table-content{width:100%;border-collapse:collapse;border:1px solid #ebeef5}.approval-content .approval-workflow .workflow-table .workflow-table-content thead{background:#f5f7fa}.approval-content .approval-workflow .workflow-table .workflow-table-content thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5}.approval-content .approval-workflow .workflow-table .workflow-table-content thead th.step-name-col{width:120px}.approval-content .approval-workflow .workflow-table .workflow-table-content thead th.handler-col{width:auto}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row:not(:last-child){border-bottom:1px solid #ebeef5}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell{padding:12px 16px;vertical-align:middle}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name{font-size:14px;color:#303133}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name .required-mark{color:#f56c6c;margin-left:4px}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell{padding:12px 16px;vertical-align:middle}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select{width:100%;min-width:200px}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select :deep(.el-input__inner){height:32px;line-height:32px}.approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select :deep(.el-tag){margin:2px 4px 2px 0}::v-deep .department-select-dialog .el-dialog{height:500px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}::v-deep .department-select-dialog .el-dialog__body{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:20px;flex-direction:column}.department-dialog-content,::v-deep .department-select-dialog .el-dialog__body{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column}.department-dialog-content{flex-direction:column;height:100%}.department-dialog-content .department-search-input{margin-bottom:16px;-ms-flex-negative:0;flex-shrink:0}.department-dialog-content .department-tree-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;overflow-x:hidden;border:1px solid #ebeef5;border-radius:4px;padding:8px;max-height:400px}.approval-progress-section{margin-top:20px;padding:20px;background:#fff;border-radius:4px}.approval-progress-section .section-title{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px}.approval-progress-section .approval-timeline{padding:20px 5px;max-height:450px;overflow-y:auto}.approval-progress-section .timeline-item-content .node-title{font-size:14px;font-weight:500;color:#303133;margin-bottom:8px}.approval-progress-section .timeline-item-content .node-content .node-info{margin-bottom:8px}.approval-progress-section .timeline-item-content .node-content .node-info .node-user{font-size:14px;color:#606266;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.approval-progress-section .timeline-item-content .node-content .node-info .node-user .node-time{font-size:12px;color:#909399}.approval-progress-section .timeline-item-content .node-content .node-status{display:inline-block;padding:2px 8px;border-radius:2px;font-size:12px;margin-bottom:8px}.approval-progress-section .timeline-item-content .node-content .node-status.status-approve,.approval-progress-section .timeline-item-content .node-content .node-status.status-pass{background-color:#f0f9ff;color:#67c23a}.approval-progress-section .timeline-item-content .node-content .node-status.status-reject{background-color:#fef0f0;color:#f56c6c}.approval-progress-section .timeline-item-content .node-content .node-status.status-approving{background-color:#fdf6ec;color:#e6a23c}.approval-progress-section .timeline-item-content .node-content .node-status.status-default,.approval-progress-section .timeline-item-content .node-content .node-status.status-pending{background-color:#f4f4f5;color:#909399}.approval-progress-section .timeline-item-content .node-content .node-status.status-initiate,.approval-progress-section .timeline-item-content .node-content .node-status.status-return{background-color:#ecf5ff;color:#409eff}.approval-progress-section .timeline-item-content .node-content .node-opinion{font-size:13px;color:#606266;margin-top:8px;padding:8px;background-color:#f5f7fa;border-radius:4px}.approval-progress-section .empty-progress{padding:40px 0;text-align:center}.approval-progress-section .empty-progress .empty-text{font-size:14px;color:#909399}.import-uploader,.import-uploader .el-upload,.import-uploader .el-upload-dragger{width:100%}.import-btn{color:#027aff;border-color:#027aff;background-color:#fff}.custom-page .page-header{width:calc(100% - 40px)!important;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px;padding-right:30px}.custom-page .page-header .title{font-weight:500;font-size:18px!important;margin:0}.custom-page .page-header .operation{gap:8px}.custom-page .page-search-panel .search-field{-webkit-box-flex:1;-ms-flex:1 1 calc(33.33333% - 21.33333px);flex:1 1 calc(33.33333% - 21.33333px);min-width:260px}.custom-page .page-search-panel .search-field .field-label{font-size:16px;min-width:80px;text-align:right!important;-moz-text-align-last:right!important;text-align-last:right!important}.custom-page .page-search-panel .search-field .el-input,.custom-page .page-search-panel .search-field .el-select{width:220px}.custom-page .page-search-panel .search-actions{-webkit-box-flex:1;-ms-flex:1 1 calc(33.33333% - 21.33333px);flex:1 1 calc(33.33333% - 21.33333px);min-width:260px}.custom-page .page-data-list{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:10px;background:#f7f7f7}.custom-page .status-tag{padding:2px;height:18px;line-height:18px;width:100px;font-size:14px;width:70px;white-space:nowrap}.custom-page .status-tag.status-published{background-color:#00b66a}.custom-page .status-tag.status-reviewing{background-color:#ffa72b}.custom-page .status-tag.status-history{background-color:#4b82f0}.custom-page .status-tag.status-draft{background-color:#909399}.custom-page .operation-links{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;gap:0}.custom-page .operation-links .el-link{font-size:14px}.custom-page .operation-links .link-separator{width:4px;height:14px}.custom-page .error-list{white-space:pre-line;word-break:break-word}.status-tag{border-radius:50px!important}.el-scrollbar{max-width:300px!important}.el-popper{min-width:300px!important}.operation{-webkit-box-pack:start!important;-ms-flex-pack:start!important;justify-content:flex-start!important}.order-dialog-content .order-table{width:100%}.order-dialog-content .order-tip{padding:8px 12px;background:#f4f4f5;border-radius:4px}.order-dialog-content ::v-deep .el-table__body tr{cursor:move;-webkit-transition:all .3s;transition:all .3s}.order-dialog-content ::v-deep .el-table__body tr:hover{background-color:#f5f7fa}.order-dialog-content ::v-deep .el-table__body tr[draggable=true]{cursor:move}.batch-modify-responsible-modal .batch-modify-content{padding:20px 0;display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px;min-height:400px;max-height:600px}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel{width:250px;-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;border-right:1px solid #ebeef5;padding-right:20px;overflow:hidden}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;min-height:0}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:8px 12px;background:#f5f7fa;border-radius:4px;margin-bottom:8px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .collapse-icon{font-size:12px;color:#909399;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .collapse-icon:hover{color:#409eff}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .category-title{font-size:14px;font-weight:600;color:#303133}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-header .category-count{font-size:12px;color:#909399;background:#fff;padding:2px 8px;border-radius:10px}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;padding:0 8px;max-height:300px}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item{padding:6px 10px;margin-bottom:4px;border-radius:4px;font-size:13px;color:#606266;cursor:pointer;-webkit-transition:all .3s;transition:all .3s}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item:hover{background:#f5f7fa}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.distributed{border-left:3px solid #67c23a;background:#f0f9ff}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.temp-saved{border-left:3px solid #e6a23c;background:#fdf6ec}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.temp-saved.clickable{cursor:pointer}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.temp-saved.clickable:hover{background:#faecd8;-webkit-transform:translateX(2px);transform:translateX(2px)}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .parts-item.undistributed{border-left:3px solid #909399;background:#f5f7fa}.batch-modify-responsible-modal .batch-modify-content .left-parts-panel .parts-category-section .category-list .empty-tip{text-align:center;color:#c0c4cc;font-size:12px;padding:20px 0}.batch-modify-responsible-modal .batch-modify-content .right-form-panel{-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:0;overflow-y:auto}.batch-modify-responsible-modal .batch-modify-content .el-form .el-form-item{margin-bottom:20px}.batch-modify-responsible-modal .dialog-footer{text-align:right;padding-top:20px}.batch-modify-responsible-modal .handler-select{width:100%}.batch-modify-responsible-modal .department-tree-search{margin-bottom:15px}.batch-modify-responsible-modal .department-tree{max-height:400px;overflow-y:auto}.user-id-text{margin-right:30px}.engine-detail-page{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.engine-detail-page .page-header{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:56px;position:relative;width:100%;min-height:56px;background:#fff;border-bottom:1px solid #ebeef5;padding:0 20px}.engine-detail-page .page-header,.engine-detail-page .page-header .header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.engine-detail-page .page-header .header-left{gap:12px;-webkit-box-flex:1;-ms-flex:1;flex:1}.engine-detail-page .page-header .header-left .label{width:50px!important}.engine-detail-page .page-header .header-left .back-button{padding:0;font-size:14px;color:#409eff;cursor:pointer;pointer-events:auto}.engine-detail-page .page-header .header-left .back-button:hover{color:#66b1ff}.engine-detail-page .page-header .header-left .back-button i{margin-right:4px}.engine-detail-page .page-header .header-left .title{color:#303133;font-weight:700;margin:0;font-size:18px}.engine-detail-page .page-header .operation{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.engine-detail-page .detail-body{padding:16px 20px 24px 20px;-ms-flex:1;flex:1;overflow:hidden!important}.engine-detail-page .detail-body,.engine-detail-page .page-approval-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;min-height:0}.engine-detail-page .page-approval-content{background:#fff;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;padding:20px;overflow-y:auto;overflow-x:hidden}.engine-detail-page .block-section{border-radius:8px;padding:24px 24px 16px 24px;margin-bottom:24px;background:#fff}.engine-detail-page .block-section .section-title{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px}.engine-detail-page .info-grid .label{font-size:16px;color:#909399}.engine-detail-page .info-grid .value{font-size:16px;color:#303133;font-weight:500}.engine-detail-page .info-grid .info-item-full{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.engine-detail-page .info-grid .info-item-full .label{min-width:100px}.engine-detail-page .info-grid .info-item-full .label .required-mark{color:#f56c6c;margin-left:4px}.engine-detail-page .info-grid .info-item-full .process-title-input,.engine-detail-page .info-grid .info-item-full .value{-webkit-box-flex:1;-ms-flex:1;flex:1}.engine-detail-page .info-grid .info-item-full .process-title-input ::v-deep .el-input__inner{height:32px;line-height:32px}.engine-detail-page .info-grid .info-row{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.engine-detail-page .info-grid .info-row .info-item{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.engine-detail-page .info-grid .info-row .info-item .label{min-width:100px}.engine-detail-page .page-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:16px 20px;background:#fff;border-top:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:10}.engine-detail-page .page-footer .footer-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px}.engine-detail-page .left-tree-panel{width:230px;background:#fff;border:1px solid #ebeef5;padding:8px;font-size:14px;overflow-y:auto!important}.engine-detail-page .left-tree-panel .tree-search-header{margin-bottom:8px}.engine-detail-page .left-tree-panel .tree-search-header .search-mode-switch{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.engine-detail-page .left-tree-panel .tree-search-header .search-mode-switch ::v-deep .el-radio-button{-webkit-box-flex:1;-ms-flex:1;flex:1}.engine-detail-page .left-tree-panel .tree-search-header .search-mode-switch ::v-deep .el-radio-button .el-radio-button__inner{width:100%;padding:5px 8px;font-size:12px}.engine-detail-page .left-tree-panel .tree-search{margin-bottom:8px}.engine-detail-page .left-tree-panel .tree-actions{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;margin-bottom:8px}.engine-detail-page .left-tree-panel .tree-actions .el-button{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:5px 8px;font-size:12px}.engine-detail-page .left-tree-panel .custom-tree-node{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px}.engine-detail-page .left-tree-panel .red-tip{color:#f56c6c;white-space:pre-line}.engine-detail-page .right-content{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#fff;padding:20px;margin-left:20px;overflow:auto!important}.engine-detail-page .section{margin-bottom:24px;background:#fff}.engine-detail-page .section-title{font-weight:700;font-size:16px;color:#303133;margin:0 0 16px 0;padding:0}.engine-detail-page .grid{border:1px solid #ebeef5;border-radius:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:100%}.engine-detail-page .grid-header{display:grid;grid-template-columns:340px 100px 120px 140px 200px 120px;background:#f5f7fa;border-bottom:1px solid #ebeef5}.engine-detail-page .grid-header.without-parameter-source{grid-template-columns:340px 100px 120px 200px 120px}.engine-detail-page .grid-header.edit-mode{grid-template-columns:340px 100px minmax(220px,1fr) 200px}.engine-detail-page .grid-header.edit-mode.without-parameter-source{grid-template-columns:340px 100px minmax(220px,1fr)}.engine-detail-page .grid-header.dispatch-mode{grid-template-columns:340px 100px 120px 140px 140px 100px 140px}.engine-detail-page .grid-header.dispatch-mode.without-parameter-source{grid-template-columns:340px 100px 120px 140px 100px 140px}.engine-detail-page .grid-header.dispatch-filler-mode{grid-template-columns:340px 100px 120px 140px 140px 100px 140px}.engine-detail-page .grid-header.dispatch-filler-mode.without-parameter-source{grid-template-columns:340px 100px 120px 140px 100px 140px}.engine-detail-page .grid-row{display:grid;grid-template-columns:340px 100px 120px 140px 200px 120px;border-bottom:1px solid #ebeef5;background:#fff}.engine-detail-page .grid-row.without-parameter-source{grid-template-columns:340px 100px 120px 200px 120px}.engine-detail-page .grid-row.edit-mode{grid-template-columns:340px 100px minmax(220px,1fr) 200px}.engine-detail-page .grid-row.edit-mode.without-parameter-source{grid-template-columns:340px 100px minmax(220px,1fr)}.engine-detail-page .grid-row.dispatch-mode{grid-template-columns:340px 100px 120px 140px 140px 100px 140px}.engine-detail-page .grid-row.dispatch-mode.without-parameter-source{grid-template-columns:340px 100px 120px 140px 100px 140px}.engine-detail-page .grid-row.dispatch-filler-mode{grid-template-columns:340px 100px 120px 140px 140px 100px 140px}.engine-detail-page .grid-row.dispatch-filler-mode.without-parameter-source{grid-template-columns:340px 100px 120px 140px 100px 140px}.engine-detail-page .whole-engine-grid .whole-engine-header{grid-template-columns:340px 100px minmax(220px,1fr) 200px}.engine-detail-page .whole-engine-grid .whole-engine-header.without-parameter-source{grid-template-columns:340px 100px minmax(220px,1fr)}.engine-detail-page .whole-engine-grid .whole-engine-row{grid-template-columns:340px 100px minmax(220px,1fr) 200px}.engine-detail-page .whole-engine-grid .whole-engine-row.without-parameter-source{grid-template-columns:340px 100px minmax(220px,1fr)}.engine-detail-page .grid-row:last-child{border-bottom:none}.engine-detail-page .cell{padding:12px 16px;border-right:1px solid #ebeef5;font-size:14px;color:#303133;text-align:left;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.engine-detail-page .cell:last-child{border-right:none}.engine-detail-page .header-cell{background:#f5f7fa;color:#606266;font-weight:400;font-size:14px}.engine-detail-page .cell ::v-deep .el-select:not(.responsible-select){width:100%}.engine-detail-page .cell ::v-deep .el-select:not(.responsible-select) .el-input__inner{border:none;padding:0;background:transparent;text-align:left;height:auto;line-height:normal}.engine-detail-page .cell ::v-deep .el-select:not(.responsible-select) .el-input__suffix{right:0}.engine-detail-page .cell .param-input{width:100%}.engine-detail-page .cell .param-input ::v-deep .el-input__inner{height:32px;line-height:32px;border:1px solid #dcdfe6;border-radius:4px}.engine-detail-page .cell .param-input ::v-deep .el-input__inner:focus{border-color:#409eff}.engine-detail-page .cell .responsible-select{width:100%}.engine-detail-page .cell .responsible-select ::v-deep .el-input__inner{height:32px!important;line-height:32px!important;border:1px solid #dcdfe6!important;border-radius:4px!important;background:#fff!important;padding:0 30px 0 15px!important}.engine-detail-page .cell .responsible-select ::v-deep .el-input__inner:focus{border-color:#409eff!important}.engine-detail-page .header-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;margin-right:16px}.engine-detail-page .header-item .label{color:#303133;width:40px!important;font-size:14px}.engine-detail-page .header-item .value{color:#303133;font-size:14px;font-weight:500}.engine-detail-page .approval-content{gap:20px;width:100%}.engine-detail-page .approval-content,.engine-detail-page .approval-content .approval-change-table{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.engine-detail-page .approval-content .approval-change-table{gap:12px}.engine-detail-page .approval-content .approval-change-table .change-table-title{font-size:14px;font-weight:600;color:#303133}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper{width:100%;overflow-x:auto}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content{width:100%;border-collapse:collapse;border:1px solid #ebeef5;background:#fff}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead{display:table;width:100%;table-layout:fixed;background:#f5f7fa}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;white-space:nowrap}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th:last-child{border-right:none}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-engine-model-name{min-width:120px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-subsystem-name{min-width:150px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-parameter-type{min-width:120px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-parts-name{min-width:100px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-parameter-name{width:340px;min-width:340px;max-width:340px;-webkit-box-sizing:border-box;box-sizing:border-box}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-parameter-value{min-width:120px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content thead th.col-common{min-width:200px}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody{display:block;max-height:450px;overflow-y:auto;overflow-x:hidden}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row{display:table;width:100%;table-layout:fixed}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row:not(:last-child){border-bottom:1px solid #ebeef5}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row:hover{background:#f5f7fa}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row td{padding:12px 16px;font-size:14px;color:#606266;border-right:1px solid #ebeef5;vertical-align:middle}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row td:last-child{border-right:none}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row td.col-parameter-name{width:340px;min-width:340px;max-width:340px;-webkit-box-sizing:border-box;box-sizing:border-box}.engine-detail-page .approval-content .approval-change-table .change-table-wrapper .change-table-content tbody .change-table-row td.col-common{color:#f56c6c}.engine-detail-page .approval-content .approval-description{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-top:10px}.engine-detail-page .approval-content .approval-description .description-label{font-size:14px;font-weight:600;margin-bottom:8px;color:#303133}.engine-detail-page .approval-content .approval-description .workflow-title-label{font-size:16px;font-weight:600;margin-bottom:8px}.engine-detail-page .approval-content .approval-workflow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}.engine-detail-page .approval-content .approval-workflow .workflow-title{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.engine-detail-page .approval-content .approval-workflow .workflow-table{width:100%}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content{width:100%;border-collapse:collapse;border:1px solid #ebeef5}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content thead{background:#f5f7fa}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content thead th.step-name-col{width:120px}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content thead th.handler-col{width:auto}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row:not(:last-child){border-bottom:1px solid #ebeef5}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell{padding:12px 16px;vertical-align:middle}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name{font-size:14px;color:#303133}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name .required-mark{color:#f56c6c;margin-left:4px}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell{padding:12px 16px;vertical-align:middle}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select{width:100%;min-width:200px}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select ::v-deep .el-input__inner{height:32px;line-height:32px}.engine-detail-page .approval-content .approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select ::v-deep .el-tag{margin:2px 4px 2px 0}.whole-engine-params-section{margin-bottom:24px;background:#fff}.whole-engine-params-section .section-title{font-weight:700;font-size:16px;color:#303133;margin:0 0 16px 0;padding:0}.whole-engine-params-section .whole-engine-params-table{border:1px solid #ebeef5;border-radius:0;overflow-x:auto}.whole-engine-params-section .whole-engine-params-table .whole-engine-table{width:100%;border-collapse:collapse}.whole-engine-params-section .whole-engine-params-table .whole-engine-table thead{background:#f5f7fa}.whole-engine-params-section .whole-engine-params-table .whole-engine-table thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;white-space:nowrap}.whole-engine-params-section .whole-engine-params-table .whole-engine-table thead th:last-child{border-right:none}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr{border-bottom:1px solid #ebeef5;background:#fff}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr:hover{background:#f5f7fa}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr:last-child{border-bottom:none}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr td{padding:12px 16px;font-size:14px;color:#606266;border-right:1px solid #ebeef5;vertical-align:middle}.whole-engine-params-section .whole-engine-params-table .whole-engine-table tbody tr td:last-child{border-right:none}.whole-engine-params-section .status-tag{display:inline-block;padding:2px 8px;border-radius:2px;font-size:12px;line-height:1.5}.whole-engine-params-section .status-tag.status-done{background:#67c23a;color:#fff}.whole-engine-params-section .status-tag.status-partial{background:#e6a23c;color:#fff}.whole-engine-params-section .status-tag.status-pending{background:#f5f7fa;color:#606266}:deep(.el-tree-node__content){padding-left:10px!important}.distributed-status{color:#f56c6c;font-weight:500}.add-engine-model-modal .add-engine-form{padding:20px 0;height:calc(70vh - 120px)!important;overflow-y:auto!important}.add-engine-model-modal .add-engine-form .form-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0}.add-engine-model-modal .add-engine-form .form-row .el-form-item{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:20px;margin-bottom:20px}.add-engine-model-modal .add-engine-form .form-row .el-form-item:last-child{margin-right:0}.add-engine-model-modal .dialog-footer{text-align:right;padding-top:20px}.custom-page .page-header .operation{-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.custom-page .page-header .operation .import-button{background:#fff;border:1px solid #409eff;color:#409eff;padding:8px 16px;border-radius:4px;font-size:14px}.custom-page .page-header .operation .import-button:hover{background:#b3d8ff;border-color:#66b1ff;color:#409eff}.custom-page .page-header .operation .import-button:active{background:#409eff;color:#fff}.custom-page .page-header .operation .add-button{padding:8px 16px;border-radius:4px;font-size:14px}.custom-page .status-tag{padding:2px 8px;border-radius:2px}.custom-page .status-tag.status-done{background:#67c23a;color:#fff}.custom-page .status-tag.status-partial{background:#e6a23c;color:#fff}.custom-page .status-tag.status-pending{background:#f5f7fa;color:#606266}.custom-page .import-uploader,.custom-page .import-uploader .el-upload,.custom-page .import-uploader .el-upload-dragger{width:100%}.link-separator{width:4px;height:14px}.app-loading{position:absolute;top:42%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-loading .loading-gif{width:60%;height:60%}.app-ie :not(font){font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.model-query-tab[data-v-54c378cc]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.model-query-tab .check-data-panel[data-v-54c378cc]{padding:16px 20px;margin-bottom:0;border-bottom:1px solid #cbccce}.model-query-tab .check-data-panel .panel-header[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.model-query-tab .check-data-panel .panel-header .header-right[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-ms-flex-negative:0;flex-shrink:0}.model-query-tab .check-data-panel .panel-header .header-right .favorites-label[data-v-54c378cc]{font-size:14px;color:#303133;white-space:nowrap}.model-query-tab .check-data-panel .panel-header .header-right .favorites-select[data-v-54c378cc]{width:200px}.model-query-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-54c378cc]{background:#fff;border:1px solid #409eff;color:#409eff;padding:8px 16px;border-radius:4px;font-size:14px}.model-query-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-54c378cc]:hover{background:#ecf5ff;border-color:#66b1ff;color:#66b1ff}.model-query-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-54c378cc]:active{background:#409eff;color:#fff}.model-query-tab .check-data-panel .panel-header .header-right .add-favorite-button[data-v-54c378cc]{padding:8px 16px;border-radius:4px;font-size:14px}.model-query-tab .model-query-content[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;background:#f5f7fa;height:calc(100vh - 160px)}.model-query-tab .model-query-content .left-param-panel[data-v-54c378cc]{width:230px;background:#fff;border:1px solid #ebeef5;padding:12px;font-size:14px;overflow-y:auto!important;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;height:calc(100% - 30px)}.model-query-tab .model-query-content .left-param-panel .tree-search-header[data-v-54c378cc]{margin-bottom:8px}.model-query-tab .model-query-content .left-param-panel .tree-search-header .search-mode-switch[data-v-54c378cc]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.model-query-tab .model-query-content .left-param-panel .tree-search-header .search-mode-switch[data-v-54c378cc] .el-radio-button{-webkit-box-flex:1;-ms-flex:1;flex:1}.model-query-tab .model-query-content .left-param-panel .tree-search-header .search-mode-switch[data-v-54c378cc] .el-radio-button .el-radio-button__inner{width:100%;padding:5px 8px;font-size:12px}.model-query-tab .model-query-content .left-param-panel .tree-search[data-v-54c378cc]{margin-bottom:8px}.model-query-tab .model-query-content .left-param-panel .tree-select-actions[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:8px;-ms-flex-negative:0;flex-shrink:0}.model-query-tab .model-query-content .left-param-panel .tree-select-actions .tree-select-checkbox[data-v-54c378cc] .el-checkbox__label{font-size:12px;padding-left:6px}.model-query-tab .model-query-content .left-param-panel .custom-tree-node[data-v-54c378cc]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px}.model-query-tab .model-query-content .left-param-panel .red-tip[data-v-54c378cc]{color:#f56c6c;white-space:pre-line}.model-query-tab .model-query-content .right-comparison-panel[data-v-54c378cc]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;background:#fff;height:100%}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper[data-v-54c378cc]{width:100%;height:100%;max-height:100%;overflow:auto}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table[data-v-54c378cc]{width:100%;border-collapse:collapse;min-width:800px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead[data-v-54c378cc]{background:#f5f7fa}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th[data-v-54c378cc]{padding:12px;text-align:left;border:1px solid #ebeef5;font-weight:500;font-size:14px;color:#303133;position:sticky;top:0;background:#f5f7fa;z-index:8}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.subsystem-column[data-v-54c378cc]{width:120px;min-width:120px;left:0;z-index:15}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.parts-column[data-v-54c378cc]{width:140px;min-width:140px;left:120px;z-index:15}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.param-column[data-v-54c378cc]{width:200px;min-width:200px;left:260px;z-index:15}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.unit-column[data-v-54c378cc]{width:80px;min-width:80px;left:460px;z-index:15}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.model-column[data-v-54c378cc]{min-width:180px;text-align:center;z-index:8}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.add-column[data-v-54c378cc]{min-width:150px;text-align:center;z-index:8}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead th.add-column span[data-v-54c378cc]{font-size:16px;font-weight:bolder;color:#000}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;position:relative}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .model-image[data-v-54c378cc]{width:120px;height:80px;-o-object-fit:contain;object-fit:contain;border-radius:4px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .model-name[data-v-54c378cc]{font-size:14px;color:#303133}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .model-remove[data-v-54c378cc]{position:absolute;top:-8px;right:-8px;cursor:pointer;color:#909399;font-size:16px;background:#fff;border-radius:50%;width:20px;height:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .model-remove[data-v-54c378cc]:hover{color:#f56c6c;background:#fef0f0}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .add-model-placeholder[data-v-54c378cc]{width:120px;height:80px;border:2px dashed #dcdfe6;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:#909399;-webkit-transition:all .3s;transition:all .3s}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .add-model-placeholder[data-v-54c378cc]:hover{border-color:#409eff;color:#409eff;background:#ecf5ff}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .add-model-placeholder i[data-v-54c378cc]{font-size:24px;margin-bottom:4px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table thead .model-header .add-model-placeholder span[data-v-54c378cc]{font-size:14px;color:#000;font-weight:bolder}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr:hover td.param-column[data-v-54c378cc],.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr:hover td.parts-column[data-v-54c378cc],.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr:hover td.subsystem-column[data-v-54c378cc],.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr:hover td.unit-column[data-v-54c378cc],.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr[data-v-54c378cc]:hover{background:#f5f7fa}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td[data-v-54c378cc]{padding:12px;border:1px solid #ebeef5;font-size:14px;color:#606266}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.subsystem-column[data-v-54c378cc]{position:sticky;left:0;background:#fff;z-index:5}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.parts-column[data-v-54c378cc]{position:sticky;left:120px;background:#fff;z-index:5}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.param-column[data-v-54c378cc]{position:sticky;left:260px;background:#fff;z-index:5;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.param-column .param-name[data-v-54c378cc]{-webkit-box-flex:1;-ms-flex:1;flex:1}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.param-column .param-config-icon[data-v-54c378cc]{cursor:pointer;color:#909399;font-size:14px}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.param-column .param-config-icon[data-v-54c378cc]:hover{color:#409eff}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.unit-column[data-v-54c378cc]{position:sticky;left:460px;background:#fff;z-index:5;text-align:center}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.model-column[data-v-54c378cc]{text-align:center}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.add-column[data-v-54c378cc]{background:#fafafa}.model-query-tab .model-query-content .right-comparison-panel .comparison-table-wrapper .comparison-table tbody tr td.add-column span[data-v-54c378cc]{font-size:16px;font-weight:bolder;color:#000}.model-query-tab .hidden-params-button[data-v-54c378cc],.model-query-tab .hidden-params-dropdown[data-v-54c378cc]{margin-left:12px}.model-query-tab .hidden-params-button .hidden-count[data-v-54c378cc]{margin-left:4px;color:#f56c6c;font-weight:500}.model-query-tab .model-select-dialog .model-search-input[data-v-54c378cc]{margin-bottom:16px}.model-query-tab .model-select-dialog .model-list-wrapper .el-table[data-v-54c378cc]{border:1px solid #ebeef5}.model-query-tab .hidden-params-dialog-content .empty-hint[data-v-54c378cc]{text-align:center;padding:40px 0;color:#909399;font-size:14px}.model-query-tab .hidden-params-dialog-content .hidden-params-header[data-v-54c378cc]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #ebeef5}.v-modal[data-v-54c378cc]{display:none!important}[data-v-54c378cc] .el-button{line-height:.85!important}.report-detail[data-v-a279c7d0]{height:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.report-detail .detail-panel[data-v-a279c7d0],.report-detail[data-v-a279c7d0]{width:100%;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex}.report-detail .detail-panel[data-v-a279c7d0]{border-radius:12px;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.report-detail .detail-header[data-v-a279c7d0]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:24px 32px 16px 32px;border-bottom:1px solid #ebeef5}.report-detail .detail-header .header-left[data-v-a279c7d0],.report-detail .detail-header[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.report-detail .detail-header .header-left[data-v-a279c7d0]{gap:16px}.report-detail .detail-header .header-right[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.report-detail .detail-header .back-button[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#606266}.report-detail .detail-header .back-button[data-v-a279c7d0] .el-icon-arrow-left{font-size:16px}.report-detail .detail-header .header-info[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px}.report-detail .detail-header .header-info .title[data-v-a279c7d0]{font-size:20px;font-weight:600;color:#303133}.report-detail .detail-header .header-info .subtitle[data-v-a279c7d0]{font-size:14px;color:#909399}.report-detail .detail-content[data-v-a279c7d0]{padding:24px 32px 40px 32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:auto;gap:24px}.report-detail .detail-content.has-footer[data-v-a279c7d0]{padding-bottom:100px}.report-detail .block-section[data-v-a279c7d0]{border-radius:8px;padding:24px 24px 16px 24px}.report-detail .block-section .section-title[data-v-a279c7d0]{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px}.report-detail .info-grid .label[data-v-a279c7d0]{font-size:16px;color:#909399}.report-detail .info-grid .value[data-v-a279c7d0]{font-size:16px;color:#303133;font-weight:500}.report-detail .info-grid .info-item-full[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.report-detail .info-grid .info-item-full .label[data-v-a279c7d0]{min-width:100px}.report-detail .info-grid .info-item-full .value[data-v-a279c7d0]{-webkit-box-flex:1;-ms-flex:1;flex:1}.report-detail .info-grid .info-item-full .process-title-value-wrapper[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.report-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-a279c7d0]{cursor:pointer;color:#909399;font-size:14px;-webkit-transition:color .3s;transition:color .3s;-ms-flex-negative:0;flex-shrink:0}.report-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-a279c7d0]:hover{color:#409eff}.report-detail .info-grid .info-item-full .process-title-input-wrapper[data-v-a279c7d0]{-webkit-box-flex:1;-ms-flex:1;flex:1}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding-right:8px}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon{cursor:pointer;font-size:16px;-webkit-transition:color .3s;transition:color .3s}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon.el-icon-check{color:#67c23a}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon.el-icon-check:hover{color:#529b2e}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon.el-icon-close{color:#909399}.report-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-a279c7d0] .el-input__suffix .process-title-icon.el-icon-close:hover{color:#606266}.report-detail .info-grid .info-row[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.report-detail .info-grid .info-row .info-item[data-v-a279c7d0]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.report-detail .info-grid .info-row .info-item .label[data-v-a279c7d0]{min-width:100px}.report-detail .info-grid[data-v-a279c7d0]:not(:has(.info-item-full)):not(:has(.info-row)){display:grid;grid-template-columns:repeat(2,1fr);border:1px solid #ebeef5;border-radius:4px;overflow:hidden}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;border-right:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item[data-v-a279c7d0]:nth-child(2n){border-right:none}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item[data-v-a279c7d0]:nth-last-child(-n+2){border-bottom:none}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item .label[data-v-a279c7d0]{font-size:16px;color:#303133;background:#f5f7fa;padding:12px 16px;min-width:140px;width:140px;text-align:right;border-right:1px solid #ebeef5;font-weight:500;-ms-flex-negative:0;flex-shrink:0}.report-detail .info-grid:not(:has(.info-item-full)):not(:has(.info-row))>.info-item .value[data-v-a279c7d0]{font-size:14px;color:#303133;padding:12px 16px;-webkit-box-flex:1;-ms-flex:1;flex:1;word-break:break-word}.report-detail .description-block[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;font-size:14px;color:#606266;margin-top:16px}.report-detail .description-block .label[data-v-a279c7d0]{color:#909399}.report-detail .description-block .value[data-v-a279c7d0]{-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:pre-line;word-break:break-word}.report-detail .approval-timeline[data-v-a279c7d0]{padding:20px 0}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline{padding-left:0}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item{padding-bottom:24px}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item:last-child{padding-bottom:0}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item .el-timeline-item__node{width:12px;height:12px;left:0;top:4px;border:2px solid #fff;-webkit-box-shadow:0 0 0 2px #409eff;box-shadow:0 0 0 2px #409eff}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item .el-timeline-item__wrapper{top:0;padding-left:28px}.report-detail .approval-timeline[data-v-a279c7d0] .el-timeline .el-timeline-item .el-timeline-item__wrapper .el-timeline-item__content{padding-top:0}.report-detail .timeline-item-content[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:0}.report-detail .timeline-item-content .node-title[data-v-a279c7d0]{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.report-detail .timeline-item-content .node-content[data-v-a279c7d0]{background:#f4f7fc;border-radius:4px;padding:12px;gap:8px}.report-detail .timeline-item-content .node-content[data-v-a279c7d0],.report-detail .timeline-item-content .node-info[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.report-detail .timeline-item-content .node-info[data-v-a279c7d0]{gap:4px;font-size:13px;color:#606266}.report-detail .timeline-item-content .node-user[data-v-a279c7d0]{color:#303133;font-weight:500}.report-detail .timeline-item-content .node-time[data-v-a279c7d0]{color:#909399;font-size:12px;margin-left:8px}.report-detail .timeline-item-content .node-status[data-v-a279c7d0]{display:inline-block;font-size:13px;font-weight:500;border-radius:2px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.report-detail .timeline-item-content .node-status.status-approve[data-v-a279c7d0],.report-detail .timeline-item-content .node-status.status-initiate[data-v-a279c7d0],.report-detail .timeline-item-content .node-status.status-pass[data-v-a279c7d0]{color:#67c23a;background:transparent}.report-detail .timeline-item-content .node-status.status-msg[data-v-a279c7d0]{color:#409eff;background:transparent}.report-detail .timeline-item-content .node-status.status-reject[data-v-a279c7d0]{color:#f56c6c;background:transparent}.report-detail .timeline-item-content .node-status.status-approving[data-v-a279c7d0],.report-detail .timeline-item-content .node-status.status-pending[data-v-a279c7d0]{color:#e6a23c;background:transparent}.report-detail .timeline-item-content .node-status.status-default[data-v-a279c7d0]{color:#909399;background:transparent}.report-detail .timeline-item-content .node-opinion[data-v-a279c7d0]{font-size:13px;color:#000;line-height:1.6}.report-detail .empty-progress[data-v-a279c7d0]{text-align:center;padding:40px 20px;color:#909399;font-size:14px}.report-detail .empty-progress .empty-text[data-v-a279c7d0]{display:inline-block}.report-detail-fade-enter-active[data-v-a279c7d0],.report-detail-fade-leave-active[data-v-a279c7d0]{-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.report-detail-fade-enter[data-v-a279c7d0],.report-detail-fade-leave-to[data-v-a279c7d0]{opacity:0}[data-v-a279c7d0] .el-timeline-item__tail{left:7px;top:3px}.dialog-body-wrapper[data-v-a279c7d0]{max-height:70vh;overflow-y:auto;padding-right:10px}.approval-workflow[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-top:20px}.approval-workflow .workflow-title[data-v-a279c7d0]{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.approval-workflow .workflow-table[data-v-a279c7d0]{width:100%}.approval-workflow .workflow-table .workflow-table-content[data-v-a279c7d0]{width:100%;border-collapse:collapse;border:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content thead[data-v-a279c7d0]{background:#f5f7fa}.approval-workflow .workflow-table .workflow-table-content thead th[data-v-a279c7d0]{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content thead th.step-name-col[data-v-a279c7d0]{width:120px}.approval-workflow .workflow-table .workflow-table-content thead th.handler-col[data-v-a279c7d0]{width:auto}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row[data-v-a279c7d0]:not(:last-child){border-bottom:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell[data-v-a279c7d0]{padding:12px 16px;vertical-align:middle}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name[data-v-a279c7d0]{font-size:14px;color:#303133}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name .required-mark[data-v-a279c7d0]{color:#f56c6c;margin-left:4px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell[data-v-a279c7d0]{padding:12px 16px;vertical-align:middle}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select[data-v-a279c7d0]{width:100%;min-width:200px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select[data-v-a279c7d0] .el-input__inner{height:32px;line-height:32px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select[data-v-a279c7d0] .el-tag{margin:2px 4px 2px 0}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-display[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-display .handler-tag[data-v-a279c7d0]{display:inline-block;padding:4px 12px;background:#f0f2f5;border:1px solid #e4e7ed;border-radius:4px;font-size:14px;color:#606266}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-empty[data-v-a279c7d0]{color:#909399;font-size:14px}.el-select-dropdown__item[data-v-a279c7d0]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-a279c7d0]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-a279c7d0]{color:#909399!important;display:inline-block;margin-left:20px;text-align:right!important}[data-v-a279c7d0] .el-upload-dragger{width:100%;height:180px}[data-v-a279c7d0] .el-form-item{margin-bottom:18px}.launch-section[data-v-a279c7d0]{margin-top:24px}.launch-content[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:20px}.page-footer[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:16px 32px;background:#fff;border-top:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:10}.page-footer .footer-buttons[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px}.required-mark[data-v-a279c7d0]{color:#f56c6c;margin-left:4px}.return-node-dialog-content[data-v-a279c7d0]{padding:10px 0}.return-node-dialog-content .empty-hint[data-v-a279c7d0]{text-align:center;padding:40px 0;color:#909399;font-size:14px}.return-node-dialog-content .return-node-list[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;max-height:300px;overflow-y:auto;margin-bottom:16px}.return-node-dialog-content .return-node-list .return-node-item[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px;border:1px solid #ebeef5;border-radius:4px;-webkit-transition:all .3s;transition:all .3s}.return-node-dialog-content .return-node-list .return-node-item[data-v-a279c7d0]:hover{border-color:#409eff;background:#ecf5ff}.return-node-dialog-content .return-node-list .return-node-item .node-info[data-v-a279c7d0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px;margin-left:8px}.return-node-dialog-content .return-node-list .return-node-item .node-info .node-title[data-v-a279c7d0]{font-size:14px;font-weight:500;color:#303133}.return-node-dialog-content .return-node-list .return-node-item .node-info .node-user[data-v-a279c7d0]{font-size:12px;color:#909399}.return-node-dialog-content .return-opinion-section[data-v-a279c7d0]{margin-top:16px;padding-top:16px;border-top:1px solid #ebeef5}.return-node-dialog-content .return-opinion-section .opinion-label[data-v-a279c7d0]{margin-bottom:8px;font-size:14px;color:#606266;font-weight:500}[data-v-a279c7d0] .el-button{line-height:.85!important}.custom-page .page-data-list{background:#fff}.benchmark-report-tab[data-v-1e4bdbcb]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.benchmark-report-tab .page-search-panel[data-v-1e4bdbcb]{background:#fff;padding:16px 24px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;gap:16px}.benchmark-report-tab .page-search-panel .search-fields[data-v-1e4bdbcb],.benchmark-report-tab .page-search-panel[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.benchmark-report-tab .page-search-panel .search-fields[data-v-1e4bdbcb]{gap:12px}.benchmark-report-tab .page-search-panel .search-row[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:40px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%}.benchmark-report-tab .page-search-panel .search-field[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.benchmark-report-tab .page-search-panel .search-field .field-label[data-v-1e4bdbcb]{font-size:14px;font-weight:600;color:#303133;white-space:nowrap;min-width:64px;text-align:right}.benchmark-report-tab .page-search-panel .search-field .el-input[data-v-1e4bdbcb],.benchmark-report-tab .page-search-panel .search-field .el-select[data-v-1e4bdbcb]{width:160px}.benchmark-report-tab .page-search-panel .search-field[data-v-1e4bdbcb] :deep(.el-input__inner),.benchmark-report-tab .page-search-panel .search-field[data-v-1e4bdbcb] :deep(.el-select .el-input__inner){height:32px;line-height:32px}.benchmark-report-tab .page-search-panel .search-actions[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;margin-left:auto}.benchmark-report-tab .page-search-panel .search-actions[data-v-1e4bdbcb] :deep(.el-button){padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.benchmark-report-tab .page-search-panel .search-row[data-v-1e4bdbcb]:not(:last-child){-webkit-box-align:center;-ms-flex-align:center;align-items:center}.benchmark-report-tab .batch-action-panel[data-v-1e4bdbcb]{background:#fff;padding:16px 20px;margin-top:0;border-bottom:1px solid #ebeef5}.benchmark-report-tab .batch-action-panel .el-button[data-v-1e4bdbcb]{padding:8px 16px;font-size:14px;border-radius:4px;height:32px;line-height:1}.benchmark-report-tab .page-data-list[data-v-1e4bdbcb]{padding:20px;background:#f5f7fa;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.benchmark-report-tab .page-data-list .operation-links[data-v-1e4bdbcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.benchmark-report-tab .page-data-list .operation-links .el-link[data-v-1e4bdbcb]{font-size:14px}.apaas-custom-check-data[data-v-7efe03a6]{overflow-y:auto;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.apaas-custom-check-data .tab-header[data-v-7efe03a6]{background:#fff;padding:0 20px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__header{margin:0;border-bottom:none}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__nav-wrap:after{height:1px;background-color:#ebeef5}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__item{height:48px;line-height:48px;font-size:14px;color:#606266}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__item.is-active{color:#409eff;font-weight:500}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__item:hover{color:#409eff}.apaas-custom-check-data .tab-header[data-v-7efe03a6] .el-tabs .el-tabs__active-bar{background-color:#409eff}.apaas-custom-check-data .tab-content[data-v-7efe03a6],.statistics-tab[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.statistics-tab .page-search-panel[data-v-7efe03a6]{background:#fff;padding:16px 24px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;gap:16px}.statistics-tab .page-search-panel .search-fields[data-v-7efe03a6],.statistics-tab .page-search-panel[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.statistics-tab .page-search-panel .search-fields[data-v-7efe03a6]{gap:12px;width:100%}.statistics-tab .page-search-panel .search-row[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:10px;width:100%}.statistics-tab .page-search-panel .search-actions[data-v-7efe03a6],.statistics-tab .page-search-panel .search-field[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1 1 calc(33.33333% - 16px);flex:1 1 calc(33.33333% - 16px);min-width:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.statistics-tab .page-search-panel .search-field .field-label[data-v-7efe03a6]{font-size:14px;font-weight:600;color:#303133;white-space:nowrap;min-width:64px!important;text-align:right}.statistics-tab .page-search-panel .search-field .el-input[data-v-7efe03a6],.statistics-tab .page-search-panel .search-field .el-select[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1;flex:1}.statistics-tab .page-search-panel .search-field[data-v-7efe03a6] :deep(.el-input__inner),.statistics-tab .page-search-panel .search-field[data-v-7efe03a6] :deep(.el-select .el-input__inner){height:32px;line-height:32px}.statistics-tab .page-search-panel .range-field .range-input-group[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;-webkit-box-flex:1;-ms-flex:1;flex:1}.statistics-tab .page-search-panel .range-field .range-input[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1;flex:1}.statistics-tab .page-search-panel .range-field .range-separator[data-v-7efe03a6]{color:#606266;line-height:32px;font-size:14px}.statistics-tab .page-search-panel .search-actions[data-v-7efe03a6]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.statistics-tab .page-search-panel[data-v-7efe03a6] :deep(.el-button){padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.statistics-tab .favorites-panel[data-v-7efe03a6]{background:#fff;padding:16px 20px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .favorites-panel .header-right[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .favorites-panel .header-right .favorites-label[data-v-7efe03a6]{font-size:14px;color:#303133;white-space:nowrap}.statistics-tab .favorites-panel .header-right .favorites-select[data-v-7efe03a6]{width:200px}.statistics-tab .favorites-panel .header-right .update-favorite-button[data-v-7efe03a6]{background:#fff;border:1px solid #409eff;color:#409eff;padding:8px 16px;border-radius:4px;font-size:14px}.statistics-tab .favorites-panel .header-right .update-favorite-button[data-v-7efe03a6]:hover{background:#ecf5ff;border-color:#66b1ff;color:#66b1ff}.statistics-tab .favorites-panel .header-right .update-favorite-button[data-v-7efe03a6]:active{background:#409eff;color:#fff}.statistics-tab .favorites-panel .header-right .add-favorite-button[data-v-7efe03a6]{padding:8px 16px;border-radius:4px;font-size:14px}.statistics-tab .check-data-panel[data-v-7efe03a6]{padding:16px 20px;margin-bottom:0;border-bottom:1px solid #cbccce}.statistics-tab .check-data-panel .panel-header[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.statistics-tab .check-data-panel .panel-header .panel-title[data-v-7efe03a6]{font-size:18px;font-weight:500;color:#303133;margin:0;line-height:1}.statistics-tab .check-data-panel .panel-header .header-right[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .check-data-panel .panel-header .header-right .favorites-label[data-v-7efe03a6]{font-size:14px;color:#303133;white-space:nowrap}.statistics-tab .check-data-panel .panel-header .header-right .favorites-select[data-v-7efe03a6]{width:200px}.statistics-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-7efe03a6]{background:#fff;border:1px solid #409eff;color:#409eff;padding:8px 16px;border-radius:4px;font-size:14px}.statistics-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-7efe03a6]:hover{background:#ecf5ff;border-color:#66b1ff;color:#66b1ff}.statistics-tab .check-data-panel .panel-header .header-right .update-favorite-button[data-v-7efe03a6]:active{background:#409eff;color:#fff}.statistics-tab .check-data-panel .panel-header .header-right .add-favorite-button[data-v-7efe03a6]{padding:8px 16px;border-radius:4px;font-size:14px}.statistics-tab .chart-management-panel[data-v-7efe03a6]{background:transparent;margin-top:16px;margin-left:20px;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;-ms-flex-negative:0;flex-shrink:0;min-height:56px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.statistics-tab .floating-panel[data-v-7efe03a6]{position:fixed;right:20px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1000;-webkit-transition:all .3s ease;transition:all .3s ease}.statistics-tab .floating-panel .floating-panel-toggle[data-v-7efe03a6]{width:48px;height:48px;background:#409eff;border-radius:50%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;-webkit-box-shadow:0 4px 12px rgba(64,158,255,.4);box-shadow:0 4px 12px rgba(64,158,255,.4);-webkit-transition:all .3s ease;transition:all .3s ease;color:#fff;font-size:20px}.statistics-tab .floating-panel .floating-panel-toggle[data-v-7efe03a6]:hover{background:#66b1ff;-webkit-box-shadow:0 6px 16px rgba(64,158,255,.5);box-shadow:0 6px 16px rgba(64,158,255,.5);-webkit-transform:scale(1.1);transform:scale(1.1)}.statistics-tab .floating-panel .floating-panel-content[data-v-7efe03a6]{position:absolute;right:60px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:#fff;border-radius:8px;-webkit-box-shadow:0 4px 20px rgba(0,0,0,.15);box-shadow:0 4px 20px rgba(0,0,0,.15);padding:12px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;min-width:120px;white-space:nowrap}.statistics-tab .floating-panel .floating-panel-content[data-v-7efe03a6] .el-button{width:100%;min-width:120px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:10px 16px;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:0!important}.statistics-tab .floating-panel .floating-panel-content[data-v-7efe03a6] .el-button i{margin-right:8px;width:16px;-ms-flex-negative:0;flex-shrink:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.statistics-tab .floating-panel.expanded .floating-panel-toggle[data-v-7efe03a6]{background:#f56c6c}.statistics-tab .floating-panel.expanded .floating-panel-toggle[data-v-7efe03a6]:hover{background:#f78989}.statistics-tab .empty-chart-area[data-v-7efe03a6]{min-height:2px;padding:0!important;margin:0!important;-webkit-box-shadow:none!important;box-shadow:none!important;border-radius:0!important;background:transparent!important}.statistics-tab .chart-area[data-v-7efe03a6]{background:#fff;margin:20px;margin-top:10px;min-height:2px;padding:20px;border-radius:4px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);-ms-flex-negative:0;flex-shrink:0}.statistics-tab .chart-area .chart-header[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #ebeef5;position:relative}.statistics-tab .chart-area .chart-header .chart-title-section[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-ms-flex:1;flex:1}.statistics-tab .chart-area .chart-header .chart-title-section .title-edit-icon[data-v-7efe03a6]{margin-left:8px;cursor:pointer;color:#909399;font-size:14px}.statistics-tab .chart-area .chart-header .chart-title-section .title-input[data-v-7efe03a6]{width:200px}.statistics-tab .chart-area .chart-header .chart-title-section .title-input[data-v-7efe03a6] .el-input__inner{border:none;border-bottom:1px solid #409eff;border-radius:0;padding-left:0}.statistics-tab .chart-area .chart-header .chart-title-section .chart-title[data-v-7efe03a6]{font-size:16px;font-weight:500;cursor:pointer;padding:4px 8px}.statistics-tab .chart-area .chart-header .chart-title-section .chart-title[data-v-7efe03a6]:hover{color:#409eff;background:#f5f7fa;border-radius:4px}.statistics-tab .chart-area .chart-header .chart-header-right[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .chart-area .chart-header .chart-header-right .el-button[data-v-7efe03a6]{margin-left:0}.statistics-tab .chart-area .chart-header .chart-header-right .download-button[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;cursor:pointer;color:#909399;padding:4px 8px;border-radius:4px;font-size:14px;-webkit-transition:all .3s;transition:all .3s}.statistics-tab .chart-area .chart-header .chart-header-right .download-button[data-v-7efe03a6]:hover{color:#409eff;background:#f5f7fa}.statistics-tab .chart-area .chart-header .chart-header-right .download-button i[data-v-7efe03a6]{font-size:14px}.statistics-tab .chart-area .chart-header .chart-header-right .delete-button[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;cursor:pointer;color:#909399;padding:4px 8px;border-radius:4px;font-size:14px;-webkit-transition:all .3s;transition:all .3s}.statistics-tab .chart-area .chart-header .chart-header-right .delete-button[data-v-7efe03a6]:hover{color:#f56c6c;background:#f5f7fa}.statistics-tab .chart-area .chart-header .chart-header-right .delete-button i[data-v-7efe03a6]{font-size:14px}.statistics-tab .chart-area .chart-config[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px 24px;margin-bottom:20px;padding:16px;background:#f5f7fa;border-radius:4px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;-ms-flex-negative:0;flex-shrink:0}.statistics-tab .chart-area .chart-config .config-item .config-label[data-v-7efe03a6]{font-size:14px;white-space:nowrap;min-width:70px;color:#606266}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .el-select{width:150px;height:32px}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select{width:250px!important}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-input__inner{height:32px}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-select__input{display:inline-block!important;visibility:visible!important;opacity:1!important}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-select__tags{max-height:none}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-tag{max-width:160px;-webkit-box-sizing:border-box;box-sizing:border-box}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-tag .el-select__tags-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .y-axis-param-select .el-select__tags-text{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .el-select .el-input__inner{height:32px}.statistics-tab .chart-area .chart-config .config-item[data-v-7efe03a6] .el-button{margin-left:0}.statistics-tab .chart-area .chart-config .config-item .y-axis-range-input[data-v-7efe03a6]{width:100px}.statistics-tab .chart-area .chart-config .config-item .range-separator[data-v-7efe03a6]{margin:0 8px;color:#606266}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6]{width:370px}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6] .y-axis-param-select{width:280px!important}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6] .y-axis-param-select .el-input__inner{height:32px}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6] .y-axis-param-select .el-select__input{display:inline-block!important;visibility:visible!important;opacity:1!important}.statistics-tab .chart-area .chart-config .canshu[data-v-7efe03a6] .y-axis-param-select .el-select__tags{max-height:none}.statistics-tab .chart-area .chart-wrapper[data-v-7efe03a6]{position:relative}.statistics-tab .chart-area .chart-wrapper .chart-resize-handle[data-v-7efe03a6]{position:absolute;bottom:0;left:0;right:0;height:8px;cursor:row-resize;z-index:5;background:transparent;-webkit-transition:background .2s;transition:background .2s}.statistics-tab .chart-area .chart-wrapper .chart-resize-handle[data-v-7efe03a6]:hover{background:rgba(64,158,255,.2)}.statistics-tab .chart-area .chart-wrapper .chart-resize-handle[data-v-7efe03a6]:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:40px;height:4px;background:#dcdfe6;border-radius:2px;-webkit-transition:background .2s;transition:background .2s}.statistics-tab .chart-area .chart-wrapper .chart-resize-handle[data-v-7efe03a6]:hover:before{background:#409eff}.statistics-tab .chart-area .chart-container[data-v-7efe03a6]{width:100%;min-height:200px}.statistics-tab .formula-dialog-content[data-v-7efe03a6]{height:100%;overflow-y:auto;overflow-x:hidden}.statistics-tab .formula-dialog-content .selected-params-display[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px;padding:8px;background:#f5f7fa;border-radius:4px;min-height:32px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.statistics-tab .formula-dialog-content .selected-params-display .selected-param-tag[data-v-7efe03a6]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 8px;background:#e8f5e9;border:1px solid #67c23a;border-radius:3px;font-size:12px;color:#67c23a;line-height:1.5}.statistics-tab .formula-dialog-content .formula-builder[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;position:relative;padding-top:30px}.statistics-tab .formula-dialog-content .formula-builder .builder-help[data-v-7efe03a6]{position:absolute;top:0;right:0;z-index:10}.statistics-tab .formula-dialog-content .formula-builder .builder-help .help-button[data-v-7efe03a6]{color:#409eff;font-size:12px;padding:4px 8px;border:none;background:transparent}.statistics-tab .formula-dialog-content .formula-builder .builder-help .help-button[data-v-7efe03a6]:hover{color:#66b1ff}.statistics-tab .formula-dialog-content .formula-builder .builder-help .help-button i[data-v-7efe03a6]{margin-right:4px}.statistics-tab .formula-dialog-content .draggable-items[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;padding:12px;background:#f5f7fa;border-radius:4px;border:1px solid #dcdfe6;-ms-flex-wrap:wrap;flex-wrap:wrap}.statistics-tab .formula-dialog-content .items-section[data-v-7efe03a6]{-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:150px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:6px}.statistics-tab .formula-dialog-content .items-section .section-title[data-v-7efe03a6]{font-size:12px;font-weight:600;color:#303133;margin-bottom:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px}.statistics-tab .formula-dialog-content .items-section .section-title .section-tip[data-v-7efe03a6]{font-size:10px;font-weight:400;color:#909399}.statistics-tab .formula-dialog-content .items-section .items-container[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.statistics-tab .formula-dialog-content .items-section .empty-tip[data-v-7efe03a6]{font-size:12px;color:#909399;padding:4px 0}.statistics-tab .formula-dialog-content .items-section .number-section-container[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;width:100%}.statistics-tab .formula-dialog-content .items-section .number-input-row[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;width:100%}.statistics-tab .formula-dialog-content .items-section .number-input-row .number-label[data-v-7efe03a6]{font-size:12px;font-weight:600;color:#303133;white-space:nowrap}.statistics-tab .formula-dialog-content .items-section .number-input-row[data-v-7efe03a6] .el-button,.statistics-tab .formula-dialog-content .items-section .number-input-row[data-v-7efe03a6] .el-input-number{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.statistics-tab .formula-dialog-content .items-section .recent-numbers[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px;margin-top:0}.statistics-tab .formula-dialog-content .draggable-item[data-v-7efe03a6]{padding:4px 8px;background:#fff;border:1px solid #dcdfe6;border-radius:3px;cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:12px;color:#303133;-webkit-transition:all .2s;transition:all .2s;line-height:1.5}.statistics-tab .formula-dialog-content .draggable-item[data-v-7efe03a6]:hover{background:#ecf5ff;border-color:#409eff;color:#409eff;-webkit-transform:translateY(-1px);transform:translateY(-1px);-webkit-box-shadow:0 1px 4px rgba(64,158,255,.2);box-shadow:0 1px 4px rgba(64,158,255,.2)}.statistics-tab .formula-dialog-content .draggable-item.param-item[data-v-7efe03a6]{background:#e8f5e9;border-color:#67c23a;color:#67c23a;font-size:11px}.statistics-tab .formula-dialog-content .draggable-item.param-item[data-v-7efe03a6]:hover{background:#c8e6c9;border-color:#67c23a}.statistics-tab .formula-dialog-content .draggable-item.operator-item[data-v-7efe03a6]{background:#fff3e0;border-color:#e6a23c;color:#e6a23c;font-weight:600}.statistics-tab .formula-dialog-content .draggable-item.operator-item[data-v-7efe03a6]:hover{background:#ffe0b2;border-color:#e6a23c}.statistics-tab .formula-dialog-content .draggable-item.bracket-item[data-v-7efe03a6]{background:#f3e5f5;border-color:#9c27b0;color:#9c27b0;font-weight:600;font-size:14px;padding:4px 10px}.statistics-tab .formula-dialog-content .draggable-item.bracket-item[data-v-7efe03a6]:hover{background:#e1bee7;border-color:#9c27b0}.statistics-tab .formula-dialog-content .draggable-item.number-item[data-v-7efe03a6]{background:#e3f2fd;border-color:#2196f3;color:#2196f3}.statistics-tab .formula-dialog-content .draggable-item.number-item[data-v-7efe03a6]:hover{background:#bbdefb;border-color:#2196f3}.statistics-tab .formula-dialog-content .formula-preview-area[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px}.statistics-tab .formula-dialog-content .formula-preview-area .preview-title[data-v-7efe03a6]{font-size:12px;font-weight:600;color:#303133}.statistics-tab .formula-dialog-content .formula-preview-area .preview-container[data-v-7efe03a6]{min-height:60px;padding:10px;background:#f5f7fa;border:2px dashed #dcdfe6;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start}.statistics-tab .formula-dialog-content .formula-preview-area .preview-container.drag-over[data-v-7efe03a6]{border-color:#409eff;background:#ecf5ff}.statistics-tab .formula-dialog-content .formula-preview-area .empty-preview[data-v-7efe03a6]{width:100%;text-align:center;color:#909399;font-size:12px;padding:15px 0}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item[data-v-7efe03a6]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;padding:4px 8px;background:#fff;border:1px solid #dcdfe6;border-radius:3px;font-size:12px;position:relative;line-height:1.5;cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .2s;transition:all .2s}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item[data-v-7efe03a6]:hover{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.1);box-shadow:0 2px 8px rgba(0,0,0,.1);-webkit-transform:translateY(-1px);transform:translateY(-1px)}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-dragging[data-v-7efe03a6]{opacity:.5;-webkit-transform:scale(.95);transform:scale(.95)}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.drag-over[data-v-7efe03a6]{border-color:#409eff;border-width:2px;-webkit-box-shadow:0 0 8px rgba(64,158,255,.4);box-shadow:0 0 8px rgba(64,158,255,.4)}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-param[data-v-7efe03a6]{background:#e8f5e9;border-color:#67c23a;color:#67c23a;font-size:11px}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-operator[data-v-7efe03a6]{background:#fff3e0;border-color:#e6a23c;color:#e6a23c;font-weight:600}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-bracket[data-v-7efe03a6]{background:#f3e5f5;border-color:#9c27b0;color:#9c27b0;font-weight:600;font-size:14px;padding:4px 10px}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item.is-number[data-v-7efe03a6]{background:#e3f2fd;border-color:#2196f3;color:#2196f3}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item .item-content[data-v-7efe03a6]{line-height:1.5}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item .remove-btn[data-v-7efe03a6]{cursor:pointer;color:#909399;font-size:10px;padding:1px;border-radius:50%;-webkit-transition:all .2s;transition:all .2s;margin-left:2px}.statistics-tab .formula-dialog-content .formula-preview-area .preview-item .remove-btn[data-v-7efe03a6]:hover{color:#f56c6c;background:#fef0f0}.statistics-tab .formula-dialog-content .formula-preview-area .preview-actions[data-v-7efe03a6]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:6px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.statistics-tab .formula-dialog-content .formula-preview-area .preview-actions[data-v-7efe03a6] .el-button{padding:6px 12px;font-size:12px}[data-v-7efe03a6] .el-tag--light{margin-right:5px!important}.search-field[data-v-7efe03a6]{-webkit-box-flex:1!important;-ms-flex:1 1 calc(25% - 7.5px)!important;flex:1 1 calc(25% - 7.5px)!important;max-width:calc(25% - 15px)!important}.search-field[data-v-7efe03a6] .el-select .el-tag{max-width:70px;font-size:12px!important;color:#909399!important;background:#ecedee!important;-webkit-box-sizing:border-box;box-sizing:border-box}.search-field[data-v-7efe03a6] .el-select .el-tag .el-select__tags-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.search-field[data-v-7efe03a6] .el-select .el-select__tags-text{max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.chart-config[data-v-7efe03a6] .el-select .el-tag{max-width:160px;-webkit-box-sizing:border-box;box-sizing:border-box}.chart-config[data-v-7efe03a6] .el-select .el-tag .el-select__tags-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.chart-config[data-v-7efe03a6] .el-select .el-select__tags-text{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}.formula-dialog[data-v-7efe03a6] .el-dialog{height:70vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.formula-dialog[data-v-7efe03a6] .el-dialog__header{-ms-flex-negative:0;flex-shrink:0;padding:20px 20px 10px}.formula-dialog[data-v-7efe03a6] .el-dialog__body{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;padding:20px}.formula-dialog[data-v-7efe03a6] .el-dialog__footer{-ms-flex-negative:0;flex-shrink:0;padding:10px 20px 20px;border-top:1px solid #ebeef5}[data-v-7efe03a6] .el-button{line-height:.85!important}[data-v-7efe03a6] .formula-help-popover .help-content p{margin:0;font-size:14px;line-height:1.6;color:#303133}[data-v-7efe03a6] .model-select-dialog{padding:20px 0}[data-v-7efe03a6] .model-select-dialog .transfer-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-v-7efe03a6] .model-select-dialog .transfer-item .transfer-item-label{font-size:14px;color:#303133}[data-v-7efe03a6] .model-select-dialog .el-transfer-panel__header .el-input,[data-v-7efe03a6] .model-select-dialog .el-transfer-panel__header .el-input .el-input__inner{width:260px}[data-v-7efe03a6] .model-select-dialog .el-transfer-panel__body{height:300px}[data-v-7efe03a6] .model-select-dialog .el-transfer-panel__list{height:230px;overflow-y:auto;padding:0 10px}[data-v-7efe03a6] .model-select-dialog .el-transfer__buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 20px}[data-v-7efe03a6] .model-select-dialog .el-transfer__buttons .el-button{margin:0;margin-bottom:10px}[data-v-7efe03a6] .model-select-dialog .el-transfer__buttons .el-button:last-child{margin-bottom:0}[data-v-7efe03a6] .el-transfer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[data-v-7efe03a6] .el-transfer-panel{width:300px!important}[data-v-7efe03a6] .el-transfer-panel .el-input{width:260px!important}.apaas-custom-report-check[data-v-9b434c4a]{width:100%;height:100%;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.apaas-custom-report-check .page-search-panel[data-v-9b434c4a]{display:-webkit-box;display:-ms-flexbox;display:flex;background:#fff;padding:8px 20px 24px 20px;position:relative;-ms-flex-negative:0;flex-shrink:0}.apaas-custom-report-check .page-search-panel .search-list[data-v-9b434c4a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;max-width:calc(100% - 140px);-ms-flex-wrap:wrap;flex-wrap:wrap}.apaas-custom-report-check .page-search-panel .search-list .search-component[data-v-9b434c4a]{width:calc(25% - 32px);padding:24px 0;padding-right:32px;padding-bottom:0;margin-bottom:0}.apaas-custom-report-check .page-search-panel .search-list .search-component[data-v-9b434c4a] .el-form-item{margin-bottom:0}.apaas-custom-report-check .page-search-panel .search-list .search-component[data-v-9b434c4a] .el-form-item .el-form-item__label{font-size:12px;line-height:unset;margin-bottom:8px;color:#303133}.apaas-custom-report-check .page-search-panel .search-list .search-component[data-v-9b434c4a] .el-form-item__content{font-size:12px;line-height:32px}.apaas-custom-report-check .page-search-panel .search-button-group[data-v-9b434c4a]{position:absolute;bottom:24px;right:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.apaas-custom-report-check .page-search-panel .search-button-group .search-tip[data-v-9b434c4a]{color:#f56c6c;font-size:12px;margin-left:8px}.apaas-custom-report-check .page-data-list[data-v-9b434c4a]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.apaas-custom-report-check .page-data-list .x-empty-page[data-v-9b434c4a]{top:0}.apaas-custom-report-check .page-data-list[data-v-9b434c4a] .el-link--primary{color:#409eff;font-size:14px;text-decoration:none}.apaas-custom-report-check .page-data-list[data-v-9b434c4a] .el-link--primary:hover{color:#66b1ff;text-decoration:underline}[data-v-9b434c4a] .el-button{line-height:.85!important}.custom-page .page-header .operation{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.custom-page .toolbar{background:#fff;padding:0 20px 12px 20px;-ms-flex-negative:0;flex-shrink:0}.file-list{margin-top:10px}.file-list .file-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:8px 0;border-bottom:1px solid #ebeef5}.file-list .file-item .el-icon-document{color:#909399;font-size:16px;margin-right:8px}.file-list .file-item .file-name{-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px;color:#606266}.file-list .file-item .file-remove{cursor:pointer;color:#909399;margin-left:10px}.file-list .file-item .file-remove:hover{color:#409eff}.dialog-body-wrapper{max-height:70vh;overflow-y:auto;padding-right:10px}::v-deep .create-report-dialog .el-dialog__body{padding:20px 20px 10px 20px;max-height:70vh;overflow-y:auto}::v-deep .el-upload-dragger{width:100%;height:180px}::v-deep .el-form-item{margin-bottom:18px}.approval-workflow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-top:20px}.approval-workflow .workflow-title{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.approval-workflow .workflow-table{width:100%}.approval-workflow .workflow-table .workflow-table-content{width:100%;border-collapse:collapse;border:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content thead{background:#f5f7fa}.approval-workflow .workflow-table .workflow-table-content thead th{padding:12px 16px;text-align:left;font-size:14px;font-weight:600;color:#303133;border-bottom:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content thead th.step-name-col{width:120px}.approval-workflow .workflow-table .workflow-table-content thead th.handler-col{width:auto}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row:not(:last-child){border-bottom:1px solid #ebeef5}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell{padding:12px 16px;vertical-align:middle}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name{font-size:14px;color:#303133}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .step-name-cell .step-name .required-mark{color:#f56c6c;margin-left:4px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell{padding:12px 16px;vertical-align:middle}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select{width:100%;min-width:200px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select ::v-deep .el-input__inner{height:32px;line-height:32px}.approval-workflow .workflow-table .workflow-table-content tbody .workflow-row .handler-cell .handler-select ::v-deep .el-tag{margin:2px 4px 2px 0}.page-search-panel{background:#fff;padding:16px 24px!important;border-bottom:1px solid #ebeef5!important;-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-ms-flex-direction:column!important;flex-direction:column!important;gap:16px}.page-search-panel .search-actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;gap:12px}.page-search-panel .search-actions ::v-deep .el-button{padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.searched-fields{max-height:200px!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important;-webkit-box-orient:horizontal!important;-webkit-box-direction:normal!important;-ms-flex-direction:row!important;flex-direction:row!important;gap:16px 32px!important;width:100%!important}.searched-field,.searched-fields{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.searched-field{-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center!important;gap:12px!important;-webkit-box-flex:1!important;-ms-flex:1 1 calc(25% - 24px)!important;flex:1 1 calc(25% - 24px)!important;max-width:calc(25% - 32px)!important}.searched-field .fielded-label{font-size:14px;font-weight:600;color:#303133;white-space:nowrap;min-width:80px!important;text-align:right;-moz-text-align-last:right;text-align-last:right;text-justify:inter-ideograph}.searched-field .el-input,.searched-field .el-select{width:170px}.searched-field ::v-deep .el-input__inner,.searched-field ::v-deep .el-select .el-input__inner{height:32px;line-height:32px}.el-select-dropdown__item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text{text-align:right!important}.approval-progress-detail[data-v-3047f45e]{width:100%;min-height:100%;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.approval-progress-detail .detail-panel[data-v-3047f45e]{width:100%;background:#fff;border-radius:12px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.approval-progress-detail .detail-header[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:24px 32px 16px 32px;border-bottom:1px solid #ebeef5}.approval-progress-detail .detail-header .header-left[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:16px;-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .detail-header .header-right[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.approval-progress-detail .detail-header .back-button[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#606266}.approval-progress-detail .detail-header .back-button[data-v-3047f45e] .el-icon-arrow-left{font-size:16px}.approval-progress-detail .detail-header .header-info[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px}.approval-progress-detail .detail-header .header-info .title[data-v-3047f45e]{font-size:20px;font-weight:600;color:#303133}.approval-progress-detail .detail-header .header-info .subtitle[data-v-3047f45e]{font-size:14px;color:#909399}.approval-progress-detail .detail-content[data-v-3047f45e]{padding:24px 32px 40px 32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px}.approval-progress-detail .block-section[data-v-3047f45e]{border-radius:8px;padding:12px 24px 16px 12px}.approval-progress-detail .block-section .section-title[data-v-3047f45e]{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.approval-progress-detail .block-section .section-title .collapse-icon[data-v-3047f45e]{font-size:14px;color:#909399;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.approval-progress-detail .block-section .section-title .collapse-icon[data-v-3047f45e]:hover{color:#409eff}.approval-progress-detail .info-grid .label[data-v-3047f45e]{font-size:16px;color:#909399}.approval-progress-detail .info-grid .value[data-v-3047f45e]{font-size:16px;color:#303133;font-weight:500}.approval-progress-detail .info-grid .info-item-full[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .info-item-full .label[data-v-3047f45e]{min-width:100px}.approval-progress-detail .info-grid .info-item-full .value[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-3047f45e]{cursor:pointer;color:#909399;font-size:14px;-webkit-transition:color .3s;transition:color .3s;-ms-flex-negative:0;flex-shrink:0}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-3047f45e]:hover{color:#409eff}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding-right:8px}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon{cursor:pointer;font-size:16px;-webkit-transition:color .3s;transition:color .3s}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon.el-icon-check{color:#67c23a}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon.el-icon-check:hover{color:#529b2e}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon.el-icon-close{color:#909399}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-3047f45e] .el-input__suffix .process-title-icon.el-icon-close:hover{color:#606266}.approval-progress-detail .info-grid .info-row[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .info-row .info-item[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .info-grid .info-row .info-item .label[data-v-3047f45e]{min-width:100px}.approval-progress-detail .info-grid .theme-info-item[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .theme-info-item .value[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .remain-info[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .info-grid .remain-info .info-item[data-v-3047f45e]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .change-table[data-v-3047f45e]{width:100%;margin-bottom:16px;max-height:500px;overflow-y:hidden}.approval-progress-detail .change-table[data-v-3047f45e] .el-table__header-wrapper th{background:#f0f2f5;color:#606266;font-weight:500}.approval-progress-detail .change-table[data-v-3047f45e] .el-table__body-wrapper{max-height:500px;overflow-y:auto}.approval-progress-detail .pagination-wrapper[data-v-3047f45e]{margin-top:16px;margin-bottom:16px;padding-right:0}.approval-progress-detail .pagination-wrapper[data-v-3047f45e],.approval-progress-detail .pagination-wrapper[data-v-3047f45e] .el-pagination{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.approval-progress-detail .pagination-wrapper[data-v-3047f45e] .el-pagination .el-select .el-input{width:100px!important}.approval-progress-detail .modify-details-text[data-v-3047f45e]{white-space:pre-line;word-break:break-word}.approval-progress-detail .change-tag[data-v-3047f45e]{display:inline-block;padding:4px 8px;border-radius:12px;font-size:12px;line-height:1;background:#f4f4f5;color:#909399}.approval-progress-detail .change-create[data-v-3047f45e]{background:#f0f9eb;color:#67c23a}.approval-progress-detail .change-update[data-v-3047f45e]{background:#ecf5ff;color:#409eff}.approval-progress-detail .change-delete[data-v-3047f45e]{background:#fef0f0;color:#f56c6c}.approval-progress-detail .description-block[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;font-size:14px;color:#606266}.approval-progress-detail .description-block .label[data-v-3047f45e]{color:#909399}.approval-progress-detail .approval-timeline[data-v-3047f45e]{padding:20px 5px;max-height:400px;overflow-y:auto}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline{padding-left:0}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item{padding-bottom:24px}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item:last-child{padding-bottom:0}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item .el-timeline-item__node{width:12px;height:12px;left:0;top:4px;border:2px solid #fff;-webkit-box-shadow:0 0 0 2px #409eff;box-shadow:0 0 0 2px #409eff}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item .el-timeline-item__wrapper{top:0;padding-left:28px}.approval-progress-detail .approval-timeline[data-v-3047f45e] .el-timeline .el-timeline-item .el-timeline-item__wrapper .el-timeline-item__content{padding-top:0}.approval-progress-detail .timeline-item-content[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:0}.approval-progress-detail .timeline-item-content .node-title[data-v-3047f45e]{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.approval-progress-detail .timeline-item-content .node-content[data-v-3047f45e]{background:#f4f7fc;border-radius:4px;padding:12px;gap:8px}.approval-progress-detail .timeline-item-content .node-content[data-v-3047f45e],.approval-progress-detail .timeline-item-content .node-info[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.approval-progress-detail .timeline-item-content .node-info[data-v-3047f45e]{gap:4px;font-size:13px;color:#606266}.approval-progress-detail .timeline-item-content .node-user[data-v-3047f45e]{color:#303133;font-weight:500}.approval-progress-detail .timeline-item-content .node-time[data-v-3047f45e]{color:#909399;font-size:12px;margin-left:8px}.approval-progress-detail .timeline-item-content .node-status[data-v-3047f45e]{display:inline-block;font-size:13px;font-weight:500;border-radius:2px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.approval-progress-detail .timeline-item-content .node-status.status-approve[data-v-3047f45e],.approval-progress-detail .timeline-item-content .node-status.status-initiate[data-v-3047f45e],.approval-progress-detail .timeline-item-content .node-status.status-pass[data-v-3047f45e]{color:#67c23a;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-reject[data-v-3047f45e]{color:#f56c6c;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-approving[data-v-3047f45e],.approval-progress-detail .timeline-item-content .node-status.status-pending[data-v-3047f45e]{color:#e6a23c;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-default[data-v-3047f45e]{color:#909399;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-return[data-v-3047f45e]{color:#409eff;background:transparent}.approval-progress-detail .timeline-item-content .node-opinion[data-v-3047f45e]{font-size:13px;color:#000;line-height:1.6}.approval-progress-detail .empty-progress[data-v-3047f45e]{text-align:center;padding:40px 20px;color:#909399;font-size:14px}.approval-progress-detail .empty-progress .empty-text[data-v-3047f45e]{display:inline-block}.approval-progress-fade-enter-active[data-v-3047f45e],.approval-progress-fade-leave-active[data-v-3047f45e]{-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.approval-progress-fade-enter[data-v-3047f45e],.approval-progress-fade-leave-to[data-v-3047f45e]{opacity:0}[data-v-3047f45e] .el-timeline-item__tail{left:7px;top:3px}.return-node-dialog-content[data-v-3047f45e]{padding:10px 0}.return-node-dialog-content .empty-hint[data-v-3047f45e]{text-align:center;padding:40px 0;color:#909399;font-size:14px}.return-node-dialog-content .return-node-list[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;max-height:300px;overflow-y:auto;margin-bottom:16px}.return-node-dialog-content .return-node-list .return-node-item[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px;border:1px solid #ebeef5;border-radius:4px;-webkit-transition:all .3s;transition:all .3s}.return-node-dialog-content .return-node-list .return-node-item[data-v-3047f45e]:hover{border-color:#409eff;background:#ecf5ff}.return-node-dialog-content .return-node-list .return-node-item .node-info[data-v-3047f45e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px;margin-left:8px}.return-node-dialog-content .return-node-list .return-node-item .node-info .node-title[data-v-3047f45e]{font-size:14px;font-weight:500;color:#303133}.return-node-dialog-content .return-node-list .return-node-item .node-info .node-user[data-v-3047f45e]{font-size:12px;color:#909399}.return-node-dialog-content .return-opinion-section[data-v-3047f45e]{margin-top:16px;padding-top:16px;border-top:1px solid #ebeef5}.return-node-dialog-content .return-opinion-section .opinion-label[data-v-3047f45e]{margin-bottom:8px;font-size:14px;color:#606266;font-weight:500}[data-v-3047f45e] .el-button{line-height:.85!important}.pagination-select-dropdown{width:110px!important;min-width:110px!important;max-width:110px!important}.pagination-select-dropdown .el-select-dropdown__wrap{max-height:200px}.pagination-select-dropdown .el-select-dropdown__item{width:100%;text-align:left;padding:0 10px}::v-deep .el-select-dropdown__item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text{color:#303133!important;display:inline-block;text-align:left!important}.user-id-text{color:#909399!important;display:inline-block;margin-left:20px;text-align:right!important}.custom-page .page-header{overflow:auto}.custom-page .page-header .title{font-size:18px}.custom-page .page-search-panel{padding:16px 24px;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px}.custom-page .page-search-panel .search-fields{max-height:200px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:16px 32px;width:100%}.custom-page .page-search-panel .search-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-webkit-box-flex:1!important;-ms-flex:1 1 calc(25% - 24px)!important;flex:1 1 calc(25% - 24px)!important;max-width:calc(25% - 32px)!important}.custom-page .page-search-panel .search-field .field-label{font-size:14px;font-weight:600;color:#303133;white-space:nowrap;min-width:80px!important;text-align:justify;-moz-text-align-last:justify;text-align-last:justify;text-justify:inter-ideograph}.custom-page .page-search-panel .search-field .el-input,.custom-page .page-search-panel .search-field .el-select{width:170px}.custom-page .page-search-panel .search-field ::v-deep .el-input__inner,.custom-page .page-search-panel .search-field ::v-deep .el-select .el-input__inner{height:32px;line-height:32px}.custom-page .page-search-panel .search-actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;gap:12px}.custom-page .page-search-panel .search-actions ::v-deep .el-button{padding:0 16px;font-size:14px;border-radius:4px;height:32px;line-height:32px}.custom-page .status-tag{padding:4px 12px}.custom-page .status-tag.status-withdrawn{background:#f56c6c;color:#fff}.manager-data-page[data-v-7ef84f50]{width:100%;height:100%;padding:20px;background:#fff}.manager-data-page .page-content[data-v-7ef84f50],.manager-data-page[data-v-7ef84f50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.manager-data-page .page-content[data-v-7ef84f50]{gap:16px}.manager-data-page .header-section[data-v-7ef84f50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;-ms-flex-wrap:wrap;flex-wrap:wrap}.manager-data-page .header-section .comment-text[data-v-7ef84f50]{color:#909399;font-size:14px}.manager-data-page .header-section .title[data-v-7ef84f50]{color:#303133;font-weight:700;margin-left:20px;font-size:18px}.manager-data-page .header-section .search-section[data-v-7ef84f50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.manager-data-page .table-section[data-v-7ef84f50]{width:100%}.manager-data-page .table-section .table-toolbar[data-v-7ef84f50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px}.manager-data-page .pagination-section[data-v-7ef84f50]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.manager-data-page .link-separator[data-v-7ef84f50]{margin:0 8px;color:#dcdfe6}.manager-data-page .footer-comment[data-v-7ef84f50]{margin-top:16px}.manager-data-page .footer-comment .red-comment[data-v-7ef84f50]{color:#f56c6c;font-size:14px}[data-v-7ef84f50] .el-popper{width:auto!important}.page-content[data-v-7ef84f50]{width:calc(100% - 80px)!important}.handler-select[data-v-7ef84f50]{width:100%}.el-select-dropdown__item[data-v-7ef84f50]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-7ef84f50]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-7ef84f50]{color:#909399!important;display:inline-block;margin-left:20px;margin-right:30px;text-align:right!important}.department-tree-search[data-v-7ef84f50]{margin-bottom:16px}.department-tree[data-v-7ef84f50]{max-height:400px;overflow-y:auto;border:1px solid #ebeef5;border-radius:4px;padding:8px}.import-uploader .el-upload-dragger[data-v-7ef84f50],.import-uploader .el-upload[data-v-7ef84f50],.import-uploader[data-v-7ef84f50]{width:100%}[data-v-7ef84f50] .el-button{line-height:.85!important}.filler-data-page[data-v-05e52e5d]{width:100%;height:100%;padding:20px;background:#fff}.filler-data-page .page-content[data-v-05e52e5d],.filler-data-page[data-v-05e52e5d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.filler-data-page .page-content[data-v-05e52e5d]{gap:16px}.filler-data-page .header-section[data-v-05e52e5d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.filler-data-page .header-section .comment-text[data-v-05e52e5d]{color:#909399;font-size:14px}.filler-data-page .table-section[data-v-05e52e5d]{width:100%}.filler-data-page .table-section .table-toolbar[data-v-05e52e5d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px}.filler-data-page .pagination-section[data-v-05e52e5d]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.filler-data-page .link-separator[data-v-05e52e5d]{margin:0 8px;color:#dcdfe6}.filler-data-page .footer-comment[data-v-05e52e5d]{margin-top:16px}.filler-data-page .footer-comment .red-comment[data-v-05e52e5d]{color:#f56c6c;font-size:14px}[data-v-05e52e5d] .el-popper{width:auto!important}.page-content[data-v-05e52e5d]{width:calc(100% - 80px)!important}.el-select-dropdown__item[data-v-05e52e5d]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-05e52e5d]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-05e52e5d]{color:#909399!important;display:inline-block;margin-left:20px;text-align:right!important}.department-tree-search[data-v-05e52e5d]{margin-bottom:16px}.department-tree[data-v-05e52e5d]{max-height:400px;overflow-y:auto;border:1px solid #ebeef5;border-radius:4px;padding:8px}.approval-progress-detail[data-v-9071b4da]{width:100%;height:100%;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.approval-progress-detail .detail-panel[data-v-9071b4da]{width:100%;background:#fff;border-radius:12px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.approval-progress-detail .detail-header[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:24px 32px 16px 32px;border-bottom:1px solid #ebeef5}.approval-progress-detail .detail-header .header-left[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:16px}.approval-progress-detail .detail-header .header-right[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.approval-progress-detail .detail-header .back-button[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#606266}.approval-progress-detail .detail-header .back-button[data-v-9071b4da] .el-icon-arrow-left{font-size:16px}.approval-progress-detail .detail-header .header-info[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px}.approval-progress-detail .detail-header .header-info .title[data-v-9071b4da]{font-size:20px;font-weight:600;color:#303133}.approval-progress-detail .detail-header .header-info .subtitle[data-v-9071b4da]{font-size:14px;color:#909399}.approval-progress-detail .detail-content[data-v-9071b4da]{padding:24px 32px 40px 32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:auto;gap:24px}.approval-progress-detail .block-section[data-v-9071b4da]{border-radius:8px;padding:24px 24px 16px 24px}.approval-progress-detail .block-section .section-title[data-v-9071b4da]{font-size:16px;font-weight:600;color:#303133;margin-bottom:16px}.approval-progress-detail .info-grid .label[data-v-9071b4da]{font-size:16px;color:#909399}.approval-progress-detail .info-grid .value[data-v-9071b4da]{font-size:16px;color:#303133;font-weight:500}.approval-progress-detail .info-grid .info-item-full[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .info-item-full .label[data-v-9071b4da]{min-width:100px}.approval-progress-detail .info-grid .info-item-full .value[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-9071b4da]{cursor:pointer;color:#909399;font-size:14px;-webkit-transition:color .3s;transition:color .3s;-ms-flex-negative:0;flex-shrink:0}.approval-progress-detail .info-grid .info-item-full .process-title-value-wrapper .process-title-edit-icon[data-v-9071b4da]:hover{color:#409eff}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;padding-right:8px}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon{cursor:pointer;font-size:16px;-webkit-transition:color .3s;transition:color .3s}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon.el-icon-check{color:#67c23a}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon.el-icon-check:hover{color:#529b2e}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon.el-icon-close{color:#909399}.approval-progress-detail .info-grid .info-item-full .process-title-input-wrapper .process-title-input[data-v-9071b4da] .el-input__suffix .process-title-icon.el-icon-close:hover{color:#606266}.approval-progress-detail .info-grid .info-row[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .info-row .info-item[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .info-grid .info-row .info-item .label[data-v-9071b4da]{min-width:100px}.approval-progress-detail .info-grid .theme-info-item[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px;margin-bottom:16px}.approval-progress-detail .info-grid .theme-info-item .value[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1}.approval-progress-detail .info-grid .remain-info[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .info-grid .remain-info .info-item[data-v-9071b4da]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;gap:16px 24px}.approval-progress-detail .change-table[data-v-9071b4da]{width:100%;margin-bottom:16px}.approval-progress-detail .change-table[data-v-9071b4da] .el-table__header-wrapper th{background:#f0f2f5;color:#606266;font-weight:500}.approval-progress-detail .pagination-wrapper[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-top:16px;margin-bottom:16px}.approval-progress-detail .modify-details-text[data-v-9071b4da]{white-space:pre-line;word-break:break-word}.approval-progress-detail .change-tag[data-v-9071b4da]{display:inline-block;padding:4px 8px;border-radius:12px;font-size:12px;line-height:1;background:#f4f4f5;color:#909399}.approval-progress-detail .change-create[data-v-9071b4da]{background:#f0f9eb;color:#67c23a}.approval-progress-detail .change-update[data-v-9071b4da]{background:#ecf5ff;color:#409eff}.approval-progress-detail .change-delete[data-v-9071b4da]{background:#fef0f0;color:#f56c6c}.approval-progress-detail .description-block[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px;font-size:14px;color:#606266}.approval-progress-detail .description-block .label[data-v-9071b4da]{color:#909399}.approval-progress-detail .approval-timeline[data-v-9071b4da]{padding:20px 5px;max-height:450px;overflow-y:auto}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline{padding-left:0}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item{padding-bottom:24px}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item:last-child{padding-bottom:0}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item .el-timeline-item__node{width:12px;height:12px;left:0;top:4px;border:2px solid #fff;-webkit-box-shadow:0 0 0 2px #409eff;box-shadow:0 0 0 2px #409eff}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item .el-timeline-item__wrapper{top:0;padding-left:28px}.approval-progress-detail .approval-timeline[data-v-9071b4da] .el-timeline .el-timeline-item .el-timeline-item__wrapper .el-timeline-item__content{padding-top:0}.approval-progress-detail .timeline-item-content[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:0}.approval-progress-detail .timeline-item-content .node-title[data-v-9071b4da]{font-size:14px;font-weight:600;color:#303133;margin-bottom:8px}.approval-progress-detail .timeline-item-content .node-content[data-v-9071b4da]{background:#f4f7fc;border-radius:4px;padding:12px;gap:8px}.approval-progress-detail .timeline-item-content .node-content[data-v-9071b4da],.approval-progress-detail .timeline-item-content .node-info[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.approval-progress-detail .timeline-item-content .node-info[data-v-9071b4da]{gap:4px;font-size:13px;color:#606266}.approval-progress-detail .timeline-item-content .node-user[data-v-9071b4da]{color:#303133;font-weight:500}.approval-progress-detail .timeline-item-content .node-time[data-v-9071b4da]{color:#909399;font-size:12px;margin-left:8px}.approval-progress-detail .timeline-item-content .node-status[data-v-9071b4da]{display:inline-block;font-size:13px;font-weight:500;border-radius:2px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.approval-progress-detail .timeline-item-content .node-status.status-approve[data-v-9071b4da],.approval-progress-detail .timeline-item-content .node-status.status-initiate[data-v-9071b4da],.approval-progress-detail .timeline-item-content .node-status.status-pass[data-v-9071b4da]{color:#67c23a;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-reject[data-v-9071b4da]{color:#f56c6c;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-approving[data-v-9071b4da],.approval-progress-detail .timeline-item-content .node-status.status-pending[data-v-9071b4da]{color:#e6a23c;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-default[data-v-9071b4da]{color:#909399;background:transparent}.approval-progress-detail .timeline-item-content .node-status.status-return[data-v-9071b4da]{color:#409eff;background:transparent}.approval-progress-detail .timeline-item-content .node-opinion[data-v-9071b4da]{font-size:13px;color:#000;line-height:1.6}.approval-progress-detail .empty-progress[data-v-9071b4da]{text-align:center;padding:40px 20px;color:#909399;font-size:14px}.approval-progress-detail .empty-progress .empty-text[data-v-9071b4da]{display:inline-block}.approval-progress-detail .return-node-dialog-content[data-v-9071b4da]{padding:10px 0}.approval-progress-detail .return-node-dialog-content .empty-hint[data-v-9071b4da]{text-align:center;padding:40px 0;color:#909399;font-size:14px}.approval-progress-detail .return-node-dialog-content .return-node-list[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;max-height:300px;overflow-y:auto;margin-bottom:16px}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px;border:1px solid #ebeef5;border-radius:4px;-webkit-transition:all .3s;transition:all .3s}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item[data-v-9071b4da]:hover{border-color:#409eff;background:#ecf5ff}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item .node-info[data-v-9071b4da]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:4px;margin-left:8px}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item .node-info .node-title[data-v-9071b4da]{font-size:14px;font-weight:500;color:#303133}.approval-progress-detail .return-node-dialog-content .return-node-list .return-node-item .node-info .node-user[data-v-9071b4da]{font-size:12px;color:#909399}.return-opinion-section[data-v-9071b4da]{margin-top:16px!important;border-top:1px solid #ebeef5}.return-opinion-section .opinion-label[data-v-9071b4da]{margin-bottom:5px!important;margin-top:5px!important;font-size:14px;color:#606266;font-weight:500}.approval-progress-fade-enter-active[data-v-9071b4da],.approval-progress-fade-leave-active[data-v-9071b4da]{-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.approval-progress-fade-enter[data-v-9071b4da],.approval-progress-fade-leave-to[data-v-9071b4da]{opacity:0}[data-v-9071b4da] .el-timeline-item__tail{left:7px;top:3px}[data-v-9071b4da] .el-button{line-height:.85!important}.custom-page{overflow-y:auto}.custom-page .page-search-panel{display:-webkit-box;display:-ms-flexbox;display:flex;background:#fff;padding:16px 20px 16px 20px;position:relative;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.custom-page .page-search-panel .search-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-16px;margin-bottom:16px}.custom-page .page-search-panel .search-list .search-component{width:calc(25% - 16px);padding:0 16px 16px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item{margin-bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__label{font-size:14px;line-height:1.5;color:#303133;padding:0;text-align:left;width:100%!important;margin-bottom:8px;height:auto;display:block;float:none}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content{font-size:14px;line-height:32px;margin-left:0!important;width:100%}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content .el-input,.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content .el-select{width:100%}.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content .el-input .el-input__inner,.custom-page .page-search-panel .search-list .search-component ::v-deep .el-form-item .el-form-item__content .el-select .el-input__inner{height:32px;line-height:32px}.custom-page .page-search-panel .search-button-group{position:absolute;bottom:16px;right:20px;display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px}.custom-page .page-search-panel .search-button-group ::v-deep .el-button{padding:8px 16px;font-size:14px;border-radius:4px;height:32px;line-height:1}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--default{border-color:#409eff;color:#409eff;background:#fff}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--default:hover{background:#ecf5ff;border-color:#66b1ff;color:#66b1ff}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--default:active{background:#409eff;color:#fff}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--primary{background:#409eff;border-color:#409eff;color:#fff}.custom-page .page-search-panel .search-button-group ::v-deep .el-button.el-button--primary:hover{background:#66b1ff;border-color:#66b1ff}.custom-page .status-tag{display:inline-block;padding:4px 8px;border-radius:20px;font-size:12px;line-height:1.5;color:#fff}.custom-page .status-tag.status-approving{background:#e6a23c;color:#fff}.custom-page .status-tag.status-approved{background:#67c23a;color:#fff}.custom-page .status-tag.status-rejected{background:#f56c6c;color:#fff}.custom-page .status-tag.status-default{background:#f5f7fa;color:#606266}.custom-page .link-divider{margin:0 8px;color:#dcdfe6}.custom-page .model-detail-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;flex-direction:column;min-height:0}.custom-page,.custom-page .model-detail-wrapper{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column}.custom-page{overflow-y:auto!important;flex-direction:column}.custom-page .page-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:56px;position:relative;width:100%;min-height:56px;background:#fff;border-bottom:1px solid #ebeef5;-ms-flex-negative:0;flex-shrink:0}.custom-page .page-header .title{color:#303133;font-weight:700;margin-left:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px}.custom-page .page-header .operation{display:-webkit-box;display:-ms-flexbox;display:flex;min-width:330px;-webkit-box-pack:end!important;-ms-flex-pack:end!important;justify-content:flex-end!important;margin-right:20px}.custom-page .page-data-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:0;padding:20px}.custom-page .page-data-list .x-empty-page{top:0}.custom-page .engine-check-wrapper,.custom-page .engine-detail-wrapper{width:100%;height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.custom-page .approval-progress-detail-wrapper,.custom-page .report-detail-wrapper{width:100%;height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:0}::v-deep .el-button{line-height:.85!important}.manager-data-page[data-v-429f96d2]{width:100%;height:100%;padding:20px;background:#fff}.manager-data-page .page-content[data-v-429f96d2],.manager-data-page[data-v-429f96d2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.manager-data-page .page-content[data-v-429f96d2]{gap:16px}.manager-data-page .header-section[data-v-429f96d2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.manager-data-page .header-section .comment-text[data-v-429f96d2]{color:#909399;font-size:14px}.manager-data-page .header-section .title[data-v-429f96d2]{color:#303133;font-weight:700;margin-left:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:18px}.manager-data-page .table-section[data-v-429f96d2]{width:100%}.manager-data-page .table-section .perms-cell[data-v-429f96d2]{white-space:pre-line;text-align:left}.manager-data-page .table-section .table-toolbar[data-v-429f96d2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px}.manager-data-page .pagination-section[data-v-429f96d2]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.manager-data-page .link-separator[data-v-429f96d2]{margin:0 8px;color:#dcdfe6}.manager-data-page .footer-comment[data-v-429f96d2]{margin-top:16px}.manager-data-page .footer-comment .red-comment[data-v-429f96d2]{color:#f56c6c;font-size:14px}[data-v-429f96d2] .el-popper{width:auto!important}.page-content[data-v-429f96d2]{width:calc(100% - 80px)!important}.handler-select[data-v-429f96d2]{width:100%}.el-select-dropdown__item[data-v-429f96d2]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-429f96d2]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-429f96d2]{color:#909399!important;display:inline-block;margin-left:20px;margin-right:30px;text-align:right!important}.department-tree-search[data-v-429f96d2]{margin-bottom:16px}.department-tree[data-v-429f96d2]{max-height:400px;overflow-y:auto;border:1px solid #ebeef5;border-radius:4px;padding:8px}.import-uploader .el-upload-dragger[data-v-429f96d2],.import-uploader .el-upload[data-v-429f96d2],.import-uploader[data-v-429f96d2]{width:100%}[data-v-429f96d2] .el-button{line-height:.85!important}[data-v-429f96d2] .searched-fields{display:-webkit-box;display:-ms-flexbox;display:flex;gap:6px!important}.permission-management-page[data-v-cb2bc482]{width:100%;height:100%;padding:20px;background:#fff}.permission-management-page .page-content[data-v-cb2bc482],.permission-management-page[data-v-cb2bc482]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.permission-management-page .page-content[data-v-cb2bc482]{gap:16px}.permission-management-page .header-section[data-v-cb2bc482]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px}.permission-management-page .table-section[data-v-cb2bc482]{width:100%}.permission-management-page .table-section .table-toolbar[data-v-cb2bc482]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px}.permission-management-page .pagination-section[data-v-cb2bc482]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.permission-management-page .link-separator[data-v-cb2bc482]{margin:0 8px;color:#dcdfe6}[data-v-cb2bc482] .person-select .el-select__input{display:inline-block!important;visibility:visible!important;opacity:1!important;-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:80px!important;width:auto!important}[data-v-cb2bc482] .person-select .el-select__tags{max-width:calc(100% - 30px);-ms-flex-wrap:nowrap;flex-wrap:nowrap}[data-v-cb2bc482] .person-select .el-tag{max-width:90px}[data-v-cb2bc482] .person-select .el-tag .el-select__tags-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:top}[data-v-cb2bc482] .person-select .el-select-dropdown__item{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify!important;-ms-flex-pack:justify!important;justify-content:space-between!important;padding-right:20px!important}.username-text[data-v-cb2bc482]{color:#303133!important;display:inline-block;text-align:right!important}.user-id-text[data-v-cb2bc482]{color:#909399!important;display:inline-block;margin-left:20px;margin-right:30px;text-align:right!important}[data-v-cb2bc482] .permission-config-dialog .el-dialog__body{padding:20px}[data-v-cb2bc482] .permission-config-dialog .permission-config-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:500px}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;border:1px solid #dcdfe6;border-radius:4px;padding:10px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .tree-search-input{margin-bottom:10px}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px;width:100%}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label .type-tag{font-size:12px;padding:2px 6px;border-radius:2px;color:#fff;white-space:nowrap}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label .type-tag.menu-tag{background-color:#909399}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label .type-tag.subsystem-tag{background-color:#409eff}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .node-label .type-tag.parameter-tag{background-color:#67c23a}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .permission-checkboxes{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:16px;margin-left:12px;-ms-flex-negative:0;flex-shrink:0}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .permission-checkboxes ::v-deep .el-checkbox{margin-right:0}[data-v-cb2bc482] .permission-config-dialog .permission-tree-wrapper .permission-tree .custom-tree-node .permission-checkboxes ::v-deep .el-checkbox .el-checkbox__label{font-size:12px;padding-left:4px}[data-v-cb2bc482] .el-popper{width:auto!important}.page-content[data-v-cb2bc482]{width:calc(100% - 80px)!important}[data-v-cb2bc482] .el-button{line-height:.85!important}.role-member-management-page .page-header[data-v-1f206660]{padding:20px;background:#fff;border-bottom:1px solid #ebeef5}.role-member-management-page .page-header .header-left[data-v-1f206660]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px}.role-member-management-page .page-header .header-left .back-button[data-v-1f206660]{font-size:16px;color:#409eff}.role-member-management-page .page-header .header-left .title-info[data-v-1f206660]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px}.role-member-management-page .page-header .header-left .title-info .title[data-v-1f206660]{font-size:18px;font-weight:600;color:#303133}.role-member-management-page .page-header .header-left .title-info .role-tip[data-v-1f206660]{font-size:14px;color:#606266}.role-member-management-page .page-header .header-left .title-info .role-tip .role-name[data-v-1f206660]{color:#f56c6c;font-weight:600}.role-member-management-page .page-content[data-v-1f206660]{padding:20px}.role-member-management-page .page-content .search-section[data-v-1f206660]{background:#fff;padding:20px;border-radius:4px;margin-bottom:20px}.role-member-management-page .page-content .search-section .search-form[data-v-1f206660]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px;-ms-flex-wrap:wrap;flex-wrap:wrap}.role-member-management-page .page-content .search-section .search-form .search-item[data-v-1f206660]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px}.role-member-management-page .page-content .search-section .search-form .search-item .label[data-v-1f206660]{font-size:14px;color:#606266;white-space:nowrap}.role-member-management-page .page-content .search-section .search-form .search-actions[data-v-1f206660]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px}.role-member-management-page .page-content .action-section[data-v-1f206660]{margin-bottom:20px}.role-member-management-page .page-content .table-section[data-v-1f206660]{background:#fff;padding:20px;border-radius:4px}.role-member-management-page .page-content .table-section .pagination-section[data-v-1f206660]{margin-top:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.x-app-layout .layout-middle .layout-center .menu-switch{width:14px;height:80px;padding-right:2px;border-top-right-radius:18px;border-bottom-right-radius:18px;border:1px solid #fff;border-left:0;background-color:#fff;position:absolute;top:calc(50vh - 87px);left:-20px;-webkit-transform:translateX(120%);transform:translateX(120%);cursor:pointer;opacity:.5;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:500;border:1px solid #dcdfe6;border-left:none}.x-app-layout .layout-middle .layout-center .menu-switch:hover{background-color:#fff;opacity:1;-webkit-box-shadow:2px 0 4px 0 #dcdfe6;box-shadow:2px 0 4px 0 #dcdfe6} \ No newline at end of file diff --git a/apaas-custom-mydemo/apaas-custom-mydemo.umd.js b/apaas-custom-mydemo/apaas-custom-mydemo.umd.js index 2f6e364..aa2ec64 100644 --- a/apaas-custom-mydemo/apaas-custom-mydemo.umd.js +++ b/apaas-custom-mydemo/apaas-custom-mydemo.umd.js @@ -141,17 +141,6 @@ return /******/ (function(modules) { // webpackBootstrap // extracted by mini-css-extract-plugin -/***/ }), - -/***/ "0aa7": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("18d5"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ - - /***/ }), /***/ "0b3e": @@ -486,13 +475,6 @@ var encodeBase64 = (function () { /***/ }), -/***/ "18d5": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - /***/ "1ee1": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -4172,6 +4154,17 @@ function isnan (val) { /* unused harmony reexport * */ +/***/ }), + +/***/ "bf95": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_1f206660_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e762"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_1f206660_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_roleMemberManagement_vue_vue_type_style_index_0_id_1f206660_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + + /***/ }), /***/ "c58d": @@ -4343,6 +4336,13 @@ module.exports = g; /* unused harmony reexport * */ +/***/ }), + +/***/ "e762": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + /***/ }), /***/ "e781": @@ -154632,17 +154632,23 @@ var permissionManagement_component = normalizeComponent( ) /* harmony default export */ var permissionManagement = (permissionManagement_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"523a9bcb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=template&id=5285ad22&scoped=true& -var roleMemberManagementvue_type_template_id_5285ad22_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"role-member-management-page custom-page"},[_c('div',{staticClass:"page-header"},[_c('div',{staticClass:"header-left"},[_c('el-button',{staticClass:"back-button",attrs:{"type":"text","icon":"el-icon-arrow-left"},on:{"click":_vm.handleBack}},[_vm._v(" 返回 ")]),_c('div',{staticClass:"title-info"},[_c('span',{staticClass:"title"},[_vm._v("人员管理")]),_c('span',{staticClass:"role-tip"},[_vm._v("当前选择角色:"),_c('span',{staticClass:"role-name"},[_vm._v(_vm._s(_vm.roleName))])])])],1)]),_c('div',{staticClass:"page-content"},[_c('div',{staticClass:"search-section"},[_c('div',{staticClass:"search-form"},[_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("成员名称")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入成员名称","clearable":""},model:{value:(_vm.searchForm.memberName),callback:function ($$v) {_vm.$set(_vm.searchForm, "memberName", $$v)},expression:"searchForm.memberName"}})],1),_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("成员编码")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入成员编码","clearable":""},model:{value:(_vm.searchForm.memberCode),callback:function ($$v) {_vm.$set(_vm.searchForm, "memberCode", $$v)},expression:"searchForm.memberCode"}})],1),_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("部门")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入部门","clearable":""},model:{value:(_vm.searchForm.department),callback:function ($$v) {_vm.$set(_vm.searchForm, "department", $$v)},expression:"searchForm.department"}})],1),_c('div',{staticClass:"search-actions"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.handleSearch}},[_vm._v(" 查询 ")]),_c('el-button',{on:{"click":_vm.handleReset}},[_vm._v(" 重置 ")])],1)])]),_c('div',{staticClass:"action-section"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.handleAddMember}},[_vm._v(" 添加成员 ")]),_c('el-button',{attrs:{"disabled":_vm.selectedMembers.length === 0},on:{"click":_vm.handleDeleteMember}},[_vm._v(" 删除成员 ")])],1),_c('div',{staticClass:"table-section"},[_c('el-table',{ref:"memberTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"border":""},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"55","align":"center"}}),_c('el-table-column',{attrs:{"type":"index","label":"序号","width":"60","align":"center"}}),_c('el-table-column',{attrs:{"prop":"username","label":"成员名称","min-width":"120","align":"center"}}),_c('el-table-column',{attrs:{"prop":"userNumber","label":"成员编码","min-width":"120","align":"center"}}),_c('el-table-column',{attrs:{"label":"部门","min-width":"200","align":"center","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){ +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"523a9bcb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=template&id=1f206660&scoped=true& +var roleMemberManagementvue_type_template_id_1f206660_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"role-member-management-page custom-page"},[_c('div',{staticClass:"page-header"},[_c('div',{staticClass:"header-left"},[_c('el-button',{staticClass:"back-button",attrs:{"type":"text","icon":"el-icon-arrow-left"},on:{"click":_vm.handleBack}},[_vm._v(" 返回 ")]),_c('div',{staticClass:"title-info"},[_c('span',{staticClass:"title"},[_vm._v("人员管理")]),_c('span',{staticClass:"role-tip"},[_vm._v("当前选择角色:"),_c('span',{staticClass:"role-name"},[_vm._v(_vm._s(_vm.roleName))])])])],1)]),_c('div',{staticClass:"page-content"},[_c('div',{staticClass:"search-section"},[_c('div',{staticClass:"search-form"},[_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("成员名称")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入成员名称","clearable":""},model:{value:(_vm.searchForm.memberName),callback:function ($$v) {_vm.$set(_vm.searchForm, "memberName", $$v)},expression:"searchForm.memberName"}})],1),_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("成员编码")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入成员编码","clearable":""},model:{value:(_vm.searchForm.memberCode),callback:function ($$v) {_vm.$set(_vm.searchForm, "memberCode", $$v)},expression:"searchForm.memberCode"}})],1),_c('div',{staticClass:"search-item"},[_c('span',{staticClass:"label"},[_vm._v("部门")]),_c('el-input',{staticStyle:{"width":"200px"},attrs:{"placeholder":"请输入部门","clearable":""},model:{value:(_vm.searchForm.department),callback:function ($$v) {_vm.$set(_vm.searchForm, "department", $$v)},expression:"searchForm.department"}})],1),_c('div',{staticClass:"search-actions"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.handleSearch}},[_vm._v(" 查询 ")]),_c('el-button',{on:{"click":_vm.handleReset}},[_vm._v(" 重置 ")])],1)])]),_c('div',{staticClass:"action-section"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.handleAddMember}},[_vm._v(" 添加成员 ")]),_c('el-button',{attrs:{"disabled":_vm.selectedMembers.length === 0},on:{"click":_vm.handleDeleteMember}},[_vm._v(" 删除成员 ")])],1),_c('div',{staticClass:"table-section"},[_c('el-table',{ref:"memberTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"border":""},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"55","align":"center"}}),_c('el-table-column',{attrs:{"type":"index","label":"序号","width":"60","align":"center"}}),_c('el-table-column',{attrs:{"prop":"username","label":"成员名称","min-width":"120","align":"center"}}),_c('el-table-column',{attrs:{"prop":"userNumber","label":"成员编码","min-width":"120","align":"center"}}),_c('el-table-column',{attrs:{"label":"部门","min-width":"200","align":"center","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){ var row = ref.row; return [_vm._v(" "+_vm._s(_vm.formatDepartment(row))+" ")]}}])})],1),_c('div',{staticClass:"pagination-section"},[_c('el-pagination',{attrs:{"current-page":_vm.pagination.currentPage,"page-sizes":[10, 20, 50, 100],"page-size":_vm.pagination.pageSize,"total":_vm.pagination.total,"layout":"total, sizes, prev, pager, next, jumper"},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1)],1)]),_c('el-dialog',{attrs:{"title":"添加成员","visible":_vm.addMemberDialogVisible,"width":"600px","close-on-click-modal":false,"append-to-body":""},on:{"update:visible":function($event){_vm.addMemberDialogVisible=$event},"close":_vm.handleAddMemberDialogClose}},[_c('el-form',{ref:"addMemberForm",attrs:{"model":_vm.addMemberFormData,"label-width":"100px"}},[_c('el-form-item',{attrs:{"label":"搜索人员:"}},[_c('el-select',{staticStyle:{"width":"100%"},attrs:{"filterable":"","remote":"","multiple":"","reserve-keyword":"","placeholder":"请输入人员姓名进行搜索","remote-method":_vm.queryPerson,"loading":_vm.personSearchLoading},model:{value:(_vm.addMemberFormData.selectedUsers),callback:function ($$v) {_vm.$set(_vm.addMemberFormData, "selectedUsers", $$v)},expression:"addMemberFormData.selectedUsers"}},_vm._l((_vm.personOptions),function(person){return _c('el-option',{key:person.userNumber,attrs:{"value":person.userId,"label":person.username}},[_c('span',[_vm._v(_vm._s(person.username))]),_c('span',{staticStyle:{"float":"right","color":"#8492a6","font-size":"12px"}},[_vm._v(_vm._s(person.userNumber))])])}),1)],1)],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":_vm.handleAddMemberDialogClose}},[_vm._v(" 取消 ")]),_c('el-button',{attrs:{"type":"primary","loading":_vm.addMemberSubmitting},on:{"click":_vm.handleAddMemberSubmit}},[_vm._v(" 确定 ")])],1)],1)],1)} -var roleMemberManagementvue_type_template_id_5285ad22_scoped_true_staticRenderFns = [] +var roleMemberManagementvue_type_template_id_1f206660_scoped_true_staticRenderFns = [] -// CONCATENATED MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=template&id=5285ad22&scoped=true& +// CONCATENATED MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=template&id=1f206660&scoped=true& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=script&lang=js& function roleMemberManagementvue_type_script_lang_js_typeof(obj) { "@babel/helpers - typeof"; return roleMemberManagementvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, roleMemberManagementvue_type_script_lang_js_typeof(obj); } +function roleMemberManagementvue_type_script_lang_js_toConsumableArray(arr) { return roleMemberManagementvue_type_script_lang_js_arrayWithoutHoles(arr) || roleMemberManagementvue_type_script_lang_js_iterableToArray(arr) || roleMemberManagementvue_type_script_lang_js_unsupportedIterableToArray(arr) || roleMemberManagementvue_type_script_lang_js_nonIterableSpread(); } +function roleMemberManagementvue_type_script_lang_js_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function roleMemberManagementvue_type_script_lang_js_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return roleMemberManagementvue_type_script_lang_js_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return roleMemberManagementvue_type_script_lang_js_arrayLikeToArray(o, minLen); } +function roleMemberManagementvue_type_script_lang_js_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function roleMemberManagementvue_type_script_lang_js_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return roleMemberManagementvue_type_script_lang_js_arrayLikeToArray(arr); } +function roleMemberManagementvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function roleMemberManagementvue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function roleMemberManagementvue_type_script_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? roleMemberManagementvue_type_script_lang_js_ownKeys(Object(source), !0).forEach(function (key) { roleMemberManagementvue_type_script_lang_js_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : roleMemberManagementvue_type_script_lang_js_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function roleMemberManagementvue_type_script_lang_js_defineProperty(obj, key, value) { key = roleMemberManagementvue_type_script_lang_js_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } @@ -154821,6 +154827,7 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { department: '' }, tableData: [], + allMembers: [], selectedMembers: [], pagination: { currentPage: 1, @@ -154908,25 +154915,15 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { if (resp && resp.data) { var respData = resp.data; var personArray = respData['人员'] || respData.person || []; - - // 解析人员数组 - // 格式:["周杰-ID:100771324098969075712-userNumber:yc90117846-department:"] var members = []; personArray.forEach(function (personStr) { if (typeof personStr === 'string') { - // 提取用户名(第一个 - 之前) var nameMatch = personStr.match(/^([^-]+)/); var username = nameMatch ? nameMatch[1] : ''; - - // 提取ID var idMatch = personStr.match(/ID:([^-]+)/); var userId = idMatch ? idMatch[1] : ''; - - // 提取userNumber(成员编码) var userNumberMatch = personStr.match(/userNumber:([^-]+)/); var userNumber = userNumberMatch ? userNumberMatch[1] : ''; - - // 提取department(部门) var deptMatch = personStr.match(/department:(.+)$/); var department = deptMatch ? deptMatch[1] : ''; if (username && userId) { @@ -154934,14 +154931,12 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { userId: userId, username: username, userNumber: userNumber, - // 成员编码(用户工号) - department: department // 部门 + department: department }); } } }); - - // 应用搜索过滤 + _this2.allMembers = members; var filteredMembers = members; if (_this2.searchForm.memberName) { filteredMembers = filteredMembers.filter(function (m) { @@ -154958,19 +154953,19 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { return m.department && m.department.includes(_this2.searchForm.department); }); } - - // 分页处理 _this2.pagination.total = filteredMembers.length; var startIndex = (_this2.pagination.currentPage - 1) * _this2.pagination.pageSize; var endIndex = startIndex + _this2.pagination.pageSize; _this2.tableData = filteredMembers.slice(startIndex, endIndex); } else { + _this2.allMembers = []; _this2.tableData = []; _this2.pagination.total = 0; } }).asyncErrorCatch(function (err) { console.error('加载成员列表失败:', err); _this2.$message.error('加载成员列表失败,请稍后重试'); + _this2.allMembers = []; _this2.tableData = []; _this2.pagination.total = 0; }); @@ -155026,11 +155021,23 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { return; } this.addMemberSubmitting = true; - // 使用现有接口绑定角色和用户 + var existingUserIds = this.allMembers.map(function (m) { + return m.userId; + }); + var newUserIds = this.addMemberFormData.selectedUsers.filter(function (id) { + return !existingUserIds.includes(id); + }); + var allUserIds = [].concat(roleMemberManagementvue_type_script_lang_js_toConsumableArray(existingUserIds), roleMemberManagementvue_type_script_lang_js_toConsumableArray(newUserIds)); + var userOrDept = allUserIds.map(function (userId) { + return { + userOrDeptId: userId, + isDept: 0 + }; + }); var request = roleMemberManagementvue_type_script_lang_js_objectSpread(roleMemberManagementvue_type_script_lang_js_objectSpread({}, src_api.GET_ROLE_PERMISSION_BING), {}, { data: { - roleID: this.roleId, - userIDs: this.addMemberFormData.selectedUsers + roleId: this.roleId, + userOrDept: userOrDept } }); this.$request(request).asyncThen(function (resp) { @@ -155046,18 +155053,27 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { }, deleteMembers: function deleteMembers() { var _this5 = this; - var userIds = this.selectedMembers.map(function (member) { + var deleteUserIds = this.selectedMembers.map(function (member) { return member.userId; }); - // 使用现有接口删除角色用户绑定 - var request = roleMemberManagementvue_type_script_lang_js_objectSpread(roleMemberManagementvue_type_script_lang_js_objectSpread({}, src_api.DELETE_ROLE_PERMISSION), {}, { - params: { - roleID: this.roleId, - userIDs: userIds.join(',') + var retainUsers = this.allMembers.filter(function (member) { + return !deleteUserIds.includes(member.userId); + }); + var userOrDept = retainUsers.map(function (user) { + return { + userOrDeptId: user.userId, + isDept: 0 + }; + }); + var request = roleMemberManagementvue_type_script_lang_js_objectSpread(roleMemberManagementvue_type_script_lang_js_objectSpread({}, src_api.GET_ROLE_PERMISSION_BING), {}, { + data: { + roleId: this.roleId, + userOrDept: userOrDept } }); this.$request(request).asyncThen(function (resp) { _this5.$message.success('删除成员成功'); + _this5.selectedMembers = []; _this5.loadMemberList(); }).asyncErrorCatch(function (err) { console.error('删除成员失败:', err); @@ -155068,8 +155084,8 @@ function roleMemberManagementvue_type_script_lang_js_toPrimitive(input, hint) { }); // CONCATENATED MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=script&lang=js& /* harmony default export */ var custom_page_roleMemberManagementvue_type_script_lang_js_ = (roleMemberManagementvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=style&index=0&id=5285ad22&prod&lang=scss&scoped=true& -var roleMemberManagementvue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped_true_ = __webpack_require__("0aa7"); +// EXTERNAL MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue?vue&type=style&index=0&id=1f206660&prod&lang=scss&scoped=true& +var roleMemberManagementvue_type_style_index_0_id_1f206660_prod_lang_scss_scoped_true_ = __webpack_require__("bf95"); // CONCATENATED MODULE: ./src/custom/apaas-custom-mydemo/custom-page/roleMemberManagement.vue @@ -155082,11 +155098,11 @@ var roleMemberManagementvue_type_style_index_0_id_5285ad22_prod_lang_scss_scoped var roleMemberManagement_component = normalizeComponent( custom_page_roleMemberManagementvue_type_script_lang_js_, - roleMemberManagementvue_type_template_id_5285ad22_scoped_true_render, - roleMemberManagementvue_type_template_id_5285ad22_scoped_true_staticRenderFns, + roleMemberManagementvue_type_template_id_1f206660_scoped_true_render, + roleMemberManagementvue_type_template_id_1f206660_scoped_true_staticRenderFns, false, null, - "5285ad22", + "1f206660", null ) diff --git a/apaas-custom-mydemo/apaas-custom-mydemo.umd.min.js b/apaas-custom-mydemo/apaas-custom-mydemo.umd.min.js index e0d95b8..9aac191 100644 --- a/apaas-custom-mydemo/apaas-custom-mydemo.umd.min.js +++ b/apaas-custom-mydemo/apaas-custom-mydemo.umd.min.js @@ -1,4 +1,4 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["apaas-custom-mydemo"]=t():e["apaas-custom-mydemo"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({"0461":function(e,t,r){"use strict";r("810d")},"05b5":function(e,t,r){"use strict";r("302e")},"0753":function(e,t,r){"use strict";r("0b3e")},"07f0":function(e,t,r){},"09ef":function(e,t,r){},"0aa7":function(e,t,r){"use strict";r("18d5")},"0b3e":function(e,t,r){},"0c75":function(e,t,r){},"0dd6":function(e,t,r){"use strict";var a=function(){function e(e){this.value=e}return e}(),n=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new a(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),i=function(){function e(e){this._list=new n,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var r=this._list,n=this._map,i=null;if(null==n[e]){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new a(t),s.key=e,r.insertEntry(s),n[e]=s}return i},e.prototype.get=function(e){var t=this._map[e],r=this._list;if(null!=t)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=i},"10fb":function(e,t,r){},"11c7":function(e,t,r){},1832:function(e,t,r){"use strict";(function(e){r.d(t,"p",(function(){return s})),r.d(t,"j",(function(){return c})),r.d(t,"q",(function(){return d})),r.d(t,"e",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return f})),r.d(t,"i",(function(){return m})),r.d(t,"h",(function(){return g})),r.d(t,"l",(function(){return v})),r.d(t,"n",(function(){return b})),r.d(t,"m",(function(){return _})),r.d(t,"o",(function(){return x})),r.d(t,"k",(function(){return w})),r.d(t,"d",(function(){return D})),r.d(t,"f",(function(){return S})),r.d(t,"g",(function(){return C})),r.d(t,"c",(function(){return T}));var a=r("1ee1"),n=r("1f58"),i=r("eb30"),o=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var r=Object(n["h"])(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function c(e){return e-l}function u(e){return o(1e3*e)/1e3}function d(e){return o(1e4*e)/1e4}function p(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+d(e[4])+","+d(e[5])+")"}var h={left:"start",right:"end",center:"middle",middle:"middle"};function f(e,t,r){return"top"===r?e+=t/2:"bottom"===r&&(e-=t/2),e}function m(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function g(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function v(e){return e&&!!e.image}function y(e){return e&&!!e.svgElement}function b(e){return v(e)||y(e)}function _(e){return"linear"===e.type}function x(e){return"radial"===e.type}function w(e){return e&&("linear"===e.type||"radial"===e.type)}function D(e){return"url(#"+e+")"}function S(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function C(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*a["a"],i=Object(a["P"])(e.scaleX,1),s=Object(a["P"])(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),n&&u.push("rotate("+n+")"),1===i&&1===s||u.push("scale("+i+","+s+")"),(l||c)&&u.push("skew("+o(l*a["a"])+"deg, "+o(c*a["a"])+"deg)"),u.join(" ")}var T=function(){return i["a"].hasGlobalWindow&&Object(a["w"])(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!==typeof e?function(t){return e.from(t).toString("base64")}:function(e){return null}}()}).call(this,r("b639").Buffer)},"18d5":function(e,t,r){},"1ee1":function(e,t,r){"use strict";r.d(t,"p",(function(){return g})),r.d(t,"G",(function(){return v})),r.d(t,"d",(function(){return y})),r.d(t,"I",(function(){return b})),r.d(t,"J",(function(){return _})),r.d(t,"m",(function(){return x})),r.d(t,"i",(function(){return w})),r.d(t,"r",(function(){return D})),r.d(t,"s",(function(){return S})),r.d(t,"K",(function(){return C})),r.d(t,"u",(function(){return T})),r.d(t,"k",(function(){return I})),r.d(t,"H",(function(){return O})),r.d(t,"N",(function(){return A})),r.d(t,"n",(function(){return M})),r.d(t,"o",(function(){return P})),r.d(t,"F",(function(){return k})),r.d(t,"c",(function(){return E})),r.d(t,"h",(function(){return L})),r.d(t,"t",(function(){return R})),r.d(t,"w",(function(){return F})),r.d(t,"C",(function(){return j})),r.d(t,"D",(function(){return V})),r.d(t,"z",(function(){return $})),r.d(t,"A",(function(){return B})),r.d(t,"E",(function(){return G})),r.d(t,"v",(function(){return U})),r.d(t,"x",(function(){return W})),r.d(t,"y",(function(){return H})),r.d(t,"B",(function(){return q})),r.d(t,"l",(function(){return Y})),r.d(t,"O",(function(){return X})),r.d(t,"P",(function(){return K})),r.d(t,"Q",(function(){return Z})),r.d(t,"S",(function(){return J})),r.d(t,"M",(function(){return Q})),r.d(t,"b",(function(){return ee})),r.d(t,"T",(function(){return te})),r.d(t,"R",(function(){return ae})),r.d(t,"f",(function(){return ce})),r.d(t,"e",(function(){return ue})),r.d(t,"g",(function(){return de})),r.d(t,"j",(function(){return pe})),r.d(t,"q",(function(){return he})),r.d(t,"L",(function(){return fe})),r.d(t,"a",(function(){return me}));var a=r("9138"),n=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),i=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,d=s.map,p=function(){}.constructor,h=p?p.prototype:null,f="__proto__",m=2311;function g(){return m++}function v(){for(var e=[],t=0;t255?255:e}function s(e){return e=Math.round(e),e<0?0:e>360?360:e}function l(e){return e<0?0:e>1?1:e}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?l(parseFloat(t)/100):l(parseFloat(t))}function d(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function p(e,t,r){return e+(t-e)*r}function h(e,t,r,a,n){return e[0]=t,e[1]=r,e[2]=a,e[3]=n,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var m=new a["a"](20),g=null;function v(e,t){g&&f(g,t),g=m.put(e,g||t.slice())}function y(e,t){if(e){t=t||[];var r=m.get(e);if(r)return f(t,r);e+="";var a=e.replace(/ /g,"").toLowerCase();if(a in i)return f(t,i[a]),v(e,t),t;var n=a.length;if("#"!==a.charAt(0)){var o=a.indexOf("("),s=a.indexOf(")");if(-1!==o&&s+1===n){var l=a.substr(0,o),d=a.substr(o+1,s-(o+1)).split(","),p=1;switch(l){case"rgba":if(4!==d.length)return 3===d.length?h(t,+d[0],+d[1],+d[2],1):h(t,0,0,0,1);p=u(d.pop());case"rgb":return d.length>=3?(h(t,c(d[0]),c(d[1]),c(d[2]),3===d.length?p:u(d[3])),v(e,t),t):void h(t,0,0,0,1);case"hsla":return 4!==d.length?void h(t,0,0,0,1):(d[3]=u(d[3]),b(d,t),v(e,t),t);case"hsl":return 3!==d.length?void h(t,0,0,0,1):(b(d,t),v(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===n||5===n){var g=parseInt(a.slice(1,4),16);return g>=0&&g<=4095?(h(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,5===n?parseInt(a.slice(4),16)/15:1),v(e,t),t):void h(t,0,0,0,1)}if(7===n||9===n){g=parseInt(a.slice(1,7),16);return g>=0&&g<=16777215?(h(t,(16711680&g)>>16,(65280&g)>>8,255&g,9===n?parseInt(a.slice(7),16)/255:1),v(e,t),t):void h(t,0,0,0,1)}}}}function b(e,t){var r=(parseFloat(e[0])%360+360)%360/360,a=u(e[1]),n=u(e[2]),i=n<=.5?n*(a+1):n+a-n*a,s=2*n-i;return t=t||[],h(t,o(255*d(s,i,r+1/3)),o(255*d(s,i,r)),o(255*d(s,i,r-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,r,a=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(a,n,i),s=Math.max(a,n,i),l=s-o,c=(s+o)/2;if(0===l)t=0,r=0;else{r=c<.5?l/(s+o):l/(2-s-o);var u=((s-a)/6+l/2)/l,d=((s-n)/6+l/2)/l,p=((s-i)/6+l/2)/l;a===s?t=p-d:n===s?t=1/3+u-p:i===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,r,c];return null!=e[3]&&h.push(e[3]),h}}function x(e,t){var r=y(e);if(r){for(var a=0;a<3;a++)r[a]=t<0?r[a]*(1-t)|0:(255-r[a])*t+r[a]|0,r[a]>255?r[a]=255:r[a]<0&&(r[a]=0);return T(r,4===r.length?"rgba":"rgb")}}function w(e,t,r){if(t&&t.length&&e>=0&&e<=1){r=r||[];var a=e*(t.length-1),n=Math.floor(a),i=Math.ceil(a),s=t[n],c=t[i],u=a-n;return r[0]=o(p(s[0],c[0],u)),r[1]=o(p(s[1],c[1],u)),r[2]=o(p(s[2],c[2],u)),r[3]=l(p(s[3],c[3],u)),r}}function D(e,t,r){if(t&&t.length&&e>=0&&e<=1){var a=e*(t.length-1),n=Math.floor(a),i=Math.ceil(a),s=y(t[n]),c=y(t[i]),u=a-n,d=T([o(p(s[0],c[0],u)),o(p(s[1],c[1],u)),o(p(s[2],c[2],u)),l(p(s[3],c[3],u))],"rgba");return r?{color:d,leftIndex:n,rightIndex:i,value:a}:d}}function S(e,t,r,a){var n=y(e);if(e)return n=_(n),null!=t&&(n[0]=s(t)),null!=r&&(n[1]=u(r)),null!=a&&(n[2]=u(a)),T(b(n),"rgba")}function C(e,t){var r=y(e);if(r&&null!=t)return r[3]=l(t),T(r,"rgba")}function T(e,t){if(e&&e.length){var r=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(r+=","+e[3]),t+"("+r+")"}}function I(e,t){var r=y(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var O=new a["a"](100);function A(e){if(Object(n["C"])(e)){var t=O.get(e);return t||(t=x(e,-.1),O.put(e,t)),t}if(Object(n["x"])(e)){var r=Object(n["m"])({},e);return r.colorStops=Object(n["H"])(e.colorStops,(function(e){return{offset:e.offset,color:x(e.color,-.1)}})),r}return e}},"1fb5":function(e,t,r){"use strict";t.byteLength=u,t.toByteArray=p,t.fromByteArray=m;for(var a=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var a=r===t?0:4-r%4;return[r,a]}function u(e){var t=c(e),r=t[0],a=t[1];return 3*(r+a)/4-a}function d(e,t,r){return 3*(t+r)/4-r}function p(e){var t,r,a=c(e),o=a[0],s=a[1],l=new i(d(e,o,s)),u=0,p=s>0?o-4:o;for(r=0;r>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function h(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function f(e,t,r){for(var a,n=[],i=t;il?l:s+o));return 1===n?(t=e[r-1],i.push(a[t>>2]+a[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2335:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},"235b":function(e,t,r){"use strict";r("d645")},"2c16":function(e,t,r){},"2d2c":function(e,t,r){"use strict";r("957e")},"2eb2":function(e,t,r){"use strict";r("fb82")},"302e":function(e,t,r){},"34df":function(e,t,r){"use strict";r("76d0")},"36b5":function(e,t,r){"use strict";r("b0f7")},"371a":function(e,t,r){},3840:function(e,t,r){"use strict";r("6f87")},"40b5":function(e,t,r){},4825:function(e,t,r){"use strict";r("deaf")},"4a2c":function(e,t,r){"use strict";r("ca15")},"4d43":function(e,t,r){"use strict";r("f205")},"4e7e":function(e,t,r){"use strict";r("9826")},5256:function(e,t,r){},5577:function(e,t,r){},5581:function(e,t,r){"use strict";r("6e70")},"587c":function(e,t,r){},"5a0c":function(e,t,r){!function(t,r){e.exports=r()}(0,(function(){"use strict";var e=1e3,t=6e4,r=36e5,a="millisecond",n="second",i="minute",o="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(r)+e},y={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),a=Math.floor(r/60),n=r%60;return(t<=0?"+":"-")+v(a,2,"0")+":"+v(n,2,"0")},m:function e(t,r){if(t.date()1)return e(o[0])}else{var s=t.name;_[s]=t,n=s}return!a&&n&&(b=n),n||!a&&b},D=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new C(r)},S=y;S.l=w,S.i=x,S.w=function(e,t){return D(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e)}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(f);if(a){var n=a[2]-1||0,i=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var r=D(e);return this.startOf(t)<=r&&r<=this.endOf(t)},v.isAfter=function(e,t){return D(e)([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=r.replace(a,"$1").trim());for(var p=0;p=0)c=l*r.length;else for(var p=0;p=this._maxSize&&o>0){var l=r.head;r.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new a(t),s.key=e,r.insertEntry(s),n[e]=s}return i},e.prototype.get=function(e){var t=this._map[e],r=this._list;if(null!=t)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=i},"10fb":function(e,t,r){},"11c7":function(e,t,r){},1832:function(e,t,r){"use strict";(function(e){r.d(t,"p",(function(){return s})),r.d(t,"j",(function(){return c})),r.d(t,"q",(function(){return d})),r.d(t,"e",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return f})),r.d(t,"i",(function(){return m})),r.d(t,"h",(function(){return g})),r.d(t,"l",(function(){return v})),r.d(t,"n",(function(){return b})),r.d(t,"m",(function(){return _})),r.d(t,"o",(function(){return x})),r.d(t,"k",(function(){return w})),r.d(t,"d",(function(){return D})),r.d(t,"f",(function(){return S})),r.d(t,"g",(function(){return C})),r.d(t,"c",(function(){return T}));var a=r("1ee1"),n=r("1f58"),i=r("eb30"),o=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var r=Object(n["h"])(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function c(e){return e-l}function u(e){return o(1e3*e)/1e3}function d(e){return o(1e4*e)/1e4}function p(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+d(e[4])+","+d(e[5])+")"}var h={left:"start",right:"end",center:"middle",middle:"middle"};function f(e,t,r){return"top"===r?e+=t/2:"bottom"===r&&(e-=t/2),e}function m(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function g(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function v(e){return e&&!!e.image}function y(e){return e&&!!e.svgElement}function b(e){return v(e)||y(e)}function _(e){return"linear"===e.type}function x(e){return"radial"===e.type}function w(e){return e&&("linear"===e.type||"radial"===e.type)}function D(e){return"url(#"+e+")"}function S(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function C(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*a["a"],i=Object(a["P"])(e.scaleX,1),s=Object(a["P"])(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),n&&u.push("rotate("+n+")"),1===i&&1===s||u.push("scale("+i+","+s+")"),(l||c)&&u.push("skew("+o(l*a["a"])+"deg, "+o(c*a["a"])+"deg)"),u.join(" ")}var T=function(){return i["a"].hasGlobalWindow&&Object(a["w"])(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!==typeof e?function(t){return e.from(t).toString("base64")}:function(e){return null}}()}).call(this,r("b639").Buffer)},"1ee1":function(e,t,r){"use strict";r.d(t,"p",(function(){return g})),r.d(t,"G",(function(){return v})),r.d(t,"d",(function(){return y})),r.d(t,"I",(function(){return b})),r.d(t,"J",(function(){return _})),r.d(t,"m",(function(){return x})),r.d(t,"i",(function(){return w})),r.d(t,"r",(function(){return D})),r.d(t,"s",(function(){return S})),r.d(t,"K",(function(){return C})),r.d(t,"u",(function(){return T})),r.d(t,"k",(function(){return I})),r.d(t,"H",(function(){return O})),r.d(t,"N",(function(){return A})),r.d(t,"n",(function(){return M})),r.d(t,"o",(function(){return P})),r.d(t,"F",(function(){return k})),r.d(t,"c",(function(){return E})),r.d(t,"h",(function(){return L})),r.d(t,"t",(function(){return R})),r.d(t,"w",(function(){return F})),r.d(t,"C",(function(){return j})),r.d(t,"D",(function(){return V})),r.d(t,"z",(function(){return $})),r.d(t,"A",(function(){return B})),r.d(t,"E",(function(){return G})),r.d(t,"v",(function(){return U})),r.d(t,"x",(function(){return W})),r.d(t,"y",(function(){return H})),r.d(t,"B",(function(){return q})),r.d(t,"l",(function(){return Y})),r.d(t,"O",(function(){return X})),r.d(t,"P",(function(){return K})),r.d(t,"Q",(function(){return Z})),r.d(t,"S",(function(){return J})),r.d(t,"M",(function(){return Q})),r.d(t,"b",(function(){return ee})),r.d(t,"T",(function(){return te})),r.d(t,"R",(function(){return ae})),r.d(t,"f",(function(){return ce})),r.d(t,"e",(function(){return ue})),r.d(t,"g",(function(){return de})),r.d(t,"j",(function(){return pe})),r.d(t,"q",(function(){return he})),r.d(t,"L",(function(){return fe})),r.d(t,"a",(function(){return me}));var a=r("9138"),n=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),i=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,d=s.map,p=function(){}.constructor,h=p?p.prototype:null,f="__proto__",m=2311;function g(){return m++}function v(){for(var e=[],t=0;t255?255:e}function s(e){return e=Math.round(e),e<0?0:e>360?360:e}function l(e){return e<0?0:e>1?1:e}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?l(parseFloat(t)/100):l(parseFloat(t))}function d(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function p(e,t,r){return e+(t-e)*r}function h(e,t,r,a,n){return e[0]=t,e[1]=r,e[2]=a,e[3]=n,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var m=new a["a"](20),g=null;function v(e,t){g&&f(g,t),g=m.put(e,g||t.slice())}function y(e,t){if(e){t=t||[];var r=m.get(e);if(r)return f(t,r);e+="";var a=e.replace(/ /g,"").toLowerCase();if(a in i)return f(t,i[a]),v(e,t),t;var n=a.length;if("#"!==a.charAt(0)){var o=a.indexOf("("),s=a.indexOf(")");if(-1!==o&&s+1===n){var l=a.substr(0,o),d=a.substr(o+1,s-(o+1)).split(","),p=1;switch(l){case"rgba":if(4!==d.length)return 3===d.length?h(t,+d[0],+d[1],+d[2],1):h(t,0,0,0,1);p=u(d.pop());case"rgb":return d.length>=3?(h(t,c(d[0]),c(d[1]),c(d[2]),3===d.length?p:u(d[3])),v(e,t),t):void h(t,0,0,0,1);case"hsla":return 4!==d.length?void h(t,0,0,0,1):(d[3]=u(d[3]),b(d,t),v(e,t),t);case"hsl":return 3!==d.length?void h(t,0,0,0,1):(b(d,t),v(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===n||5===n){var g=parseInt(a.slice(1,4),16);return g>=0&&g<=4095?(h(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,5===n?parseInt(a.slice(4),16)/15:1),v(e,t),t):void h(t,0,0,0,1)}if(7===n||9===n){g=parseInt(a.slice(1,7),16);return g>=0&&g<=16777215?(h(t,(16711680&g)>>16,(65280&g)>>8,255&g,9===n?parseInt(a.slice(7),16)/255:1),v(e,t),t):void h(t,0,0,0,1)}}}}function b(e,t){var r=(parseFloat(e[0])%360+360)%360/360,a=u(e[1]),n=u(e[2]),i=n<=.5?n*(a+1):n+a-n*a,s=2*n-i;return t=t||[],h(t,o(255*d(s,i,r+1/3)),o(255*d(s,i,r)),o(255*d(s,i,r-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,r,a=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(a,n,i),s=Math.max(a,n,i),l=s-o,c=(s+o)/2;if(0===l)t=0,r=0;else{r=c<.5?l/(s+o):l/(2-s-o);var u=((s-a)/6+l/2)/l,d=((s-n)/6+l/2)/l,p=((s-i)/6+l/2)/l;a===s?t=p-d:n===s?t=1/3+u-p:i===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,r,c];return null!=e[3]&&h.push(e[3]),h}}function x(e,t){var r=y(e);if(r){for(var a=0;a<3;a++)r[a]=t<0?r[a]*(1-t)|0:(255-r[a])*t+r[a]|0,r[a]>255?r[a]=255:r[a]<0&&(r[a]=0);return T(r,4===r.length?"rgba":"rgb")}}function w(e,t,r){if(t&&t.length&&e>=0&&e<=1){r=r||[];var a=e*(t.length-1),n=Math.floor(a),i=Math.ceil(a),s=t[n],c=t[i],u=a-n;return r[0]=o(p(s[0],c[0],u)),r[1]=o(p(s[1],c[1],u)),r[2]=o(p(s[2],c[2],u)),r[3]=l(p(s[3],c[3],u)),r}}function D(e,t,r){if(t&&t.length&&e>=0&&e<=1){var a=e*(t.length-1),n=Math.floor(a),i=Math.ceil(a),s=y(t[n]),c=y(t[i]),u=a-n,d=T([o(p(s[0],c[0],u)),o(p(s[1],c[1],u)),o(p(s[2],c[2],u)),l(p(s[3],c[3],u))],"rgba");return r?{color:d,leftIndex:n,rightIndex:i,value:a}:d}}function S(e,t,r,a){var n=y(e);if(e)return n=_(n),null!=t&&(n[0]=s(t)),null!=r&&(n[1]=u(r)),null!=a&&(n[2]=u(a)),T(b(n),"rgba")}function C(e,t){var r=y(e);if(r&&null!=t)return r[3]=l(t),T(r,"rgba")}function T(e,t){if(e&&e.length){var r=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(r+=","+e[3]),t+"("+r+")"}}function I(e,t){var r=y(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var O=new a["a"](100);function A(e){if(Object(n["C"])(e)){var t=O.get(e);return t||(t=x(e,-.1),O.put(e,t)),t}if(Object(n["x"])(e)){var r=Object(n["m"])({},e);return r.colorStops=Object(n["H"])(e.colorStops,(function(e){return{offset:e.offset,color:x(e.color,-.1)}})),r}return e}},"1fb5":function(e,t,r){"use strict";t.byteLength=u,t.toByteArray=p,t.fromByteArray=m;for(var a=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var a=r===t?0:4-r%4;return[r,a]}function u(e){var t=c(e),r=t[0],a=t[1];return 3*(r+a)/4-a}function d(e,t,r){return 3*(t+r)/4-r}function p(e){var t,r,a=c(e),o=a[0],s=a[1],l=new i(d(e,o,s)),u=0,p=s>0?o-4:o;for(r=0;r>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function h(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function f(e,t,r){for(var a,n=[],i=t;il?l:s+o));return 1===n?(t=e[r-1],i.push(a[t>>2]+a[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"=")),i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2335:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},"235b":function(e,t,r){"use strict";r("d645")},"2c16":function(e,t,r){},"2d2c":function(e,t,r){"use strict";r("957e")},"2eb2":function(e,t,r){"use strict";r("fb82")},"302e":function(e,t,r){},"34df":function(e,t,r){"use strict";r("76d0")},"36b5":function(e,t,r){"use strict";r("b0f7")},"371a":function(e,t,r){},3840:function(e,t,r){"use strict";r("6f87")},"40b5":function(e,t,r){},4825:function(e,t,r){"use strict";r("deaf")},"4a2c":function(e,t,r){"use strict";r("ca15")},"4d43":function(e,t,r){"use strict";r("f205")},"4e7e":function(e,t,r){"use strict";r("9826")},5256:function(e,t,r){},5577:function(e,t,r){},5581:function(e,t,r){"use strict";r("6e70")},"587c":function(e,t,r){},"5a0c":function(e,t,r){!function(t,r){e.exports=r()}(0,(function(){"use strict";var e=1e3,t=6e4,r=36e5,a="millisecond",n="second",i="minute",o="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(r)+e},y={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),a=Math.floor(r/60),n=r%60;return(t<=0?"+":"-")+v(a,2,"0")+":"+v(n,2,"0")},m:function e(t,r){if(t.date()1)return e(o[0])}else{var s=t.name;_[s]=t,n=s}return!a&&n&&(b=n),n||!a&&b},D=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new C(r)},S=y;S.l=w,S.i=x,S.w=function(e,t){return D(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e)}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(f);if(a){var n=a[2]-1||0,i=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var r=D(e);return this.startOf(t)<=r&&r<=this.endOf(t)},v.isAfter=function(e,t){return D(e)([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=r.replace(a,"$1").trim());for(var p=0;p=0)c=l*r.length;else for(var p=0;p */ t.read=function(e,t,r,a,n){var i,o,s=8*n-a-1,l=(1<>1,u=-7,d=r?n-1:0,p=r?-1:1,h=e[t+d];for(d+=p,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,a),i-=c}return(h?-1:1)*o*Math.pow(2,i-a)},t.write=function(e,t,r,a,n,i){var o,s,l,c=8*i-n-1,u=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:i-1,f=a?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?p/l:p*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,n),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[r+h]=255&s,h+=f,s/=256,n-=8);for(o=o<0;e[r+h]=255&o,h+=f,o/=256,c-=8);e[r+h-f]|=128*m}},"957e":function(e,t,r){},9747:function(e,t,r){"use strict";r("09ef")},9826:function(e,t,r){},"9b90":function(e,t,r){},a879:function(e,t,r){"use strict";r("d8b6")},ae72:function(e,t,r){"use strict";r("0c75")},b019:function(e,t,r){"use strict";r("11c7")},b0f7:function(e,t,r){},b36b:function(e,t,r){},b639:function(e,t,r){"use strict";(function(e){ /*! @@ -7,7 +7,7 @@ t.read=function(e,t,r,a,n){var i,o,s=8*n-a-1,l=(1<>1,u=-7,d=r?n-1:0,p= * @author Feross Aboukhadijeh * @license MIT */ -var a=r("1fb5"),n=r("9152"),i=r("2335");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(a)return K(e).length;t=(""+t).toLowerCase(),a=!0}}function x(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return P(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function w(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function D(e,t,r,a,n){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=c.from(t,a)),c.isBuffer(t))return 0===t.length?-1:S(e,t,r,a,n);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,a,n){var i,o=1,s=e.length,l=t.length;if(void 0!==a&&(a=String(a).toLowerCase(),"ucs2"===a||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(i=r;is&&(r=s-l),i=r;i>=0;i--){for(var d=!0,p=0;pn&&(a=n)):a=n;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");a>i/2&&(a=i/2);for(var o=0;o239?4:c>223?3:c>191?2:1;if(n+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:i=e[n+1],128===(192&i)&&(l=(31&c)<<6|63&i,l>127&&(u=l));break;case 3:i=e[n+1],o=e[n+2],128===(192&i)&&128===(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[n+1],o=e[n+2],s=e[n+3],128===(192&i)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,a.push(u>>>10&1023|55296),u=56320|1023&u),a.push(u),n+=d}return E(a)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return p(null,e,t,r)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,n=0,i=Math.min(r,a);n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,a,n){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,a>>>=0,n>>>=0,this===e)return 0;for(var i=n-a,o=r-t,s=Math.min(i,o),l=this.slice(a,n),u=e.slice(t,r),d=0;dn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return C(this,e,t,r);case"utf8":case"utf-8":return T(this,e,t,r);case"ascii":return I(this,e,t,r);case"latin1":case"binary":return O(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function E(e){var t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);var r="",a=0;while(aa)&&(r=a);for(var n="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function $(e,t,r,a,n,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function B(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function z(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,i=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function G(e,t,r,a,n,i){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,a,i){return i||G(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,a,23,4),r+4}function W(e,t,r,a,i){return i||G(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,a,52,8),r+8}c.prototype.slice=function(e,t){var r,a=this.length;if(e=~~e,t=void 0===t?a:~~t,e<0?(e+=a,e<0&&(e=0)):e>a&&(e=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),t0&&(n*=256))a+=this[e+--t]*n;return a},c.prototype.readUInt8=function(e,t){return t||V(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||V(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||V(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||V(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||V(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||V(e,t,this.length);var a=this[e],n=1,i=0;while(++i=n&&(a-=Math.pow(2,8*t)),a},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||V(e,t,this.length);var a=t,n=1,i=this[e+--a];while(a>0&&(n*=256))i+=this[e+--a]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||V(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||V(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||V(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||V(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||V(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||V(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||V(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||V(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||V(e,8,this.length),n.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,a){if(e=+e,t|=0,r|=0,!a){var n=Math.pow(2,8*r)-1;$(this,e,t,r,n,0)}var i=1,o=0;this[t]=255&e;while(++o=0&&(o*=256))this[t+i]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);$(this,e,t,r,n-1,-n)}var i=0,o=1,s=0;this[t]=255&e;while(++i>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);$(this,e,t,r,n-1,-n)}var i=r-1,o=1,s=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Z(e){for(var t=[],r=0;r>8,n=r%256,i.push(n),i.push(a)}return i}function Q(e){return a.toByteArray(q(e))}function ee(e,t,r,a){for(var n=0;n=t.length||n>=e.length)break;t[n+r]=e[n]}return n}function te(e){return e!==e}}).call(this,r("c8ba"))},bae7:function(e,t,r){"use strict";r("74d9")},be80:function(e,t,r){"use strict";r("9b90")},c58d:function(e,t,r){"use strict";r("5256")},c80d:function(e,t,r){},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(a){"object"===typeof window&&(r=window)}e.exports=r},ca15:function(e,t,r){},ca83:function(e,t,r){"use strict";r("587c")},cb20:function(e,t,r){"use strict";r("df65")},cc22:function(e,t,r){},d115:function(e,t,r){"use strict";r("2c16")},d1b9:function(e,t,r){"use strict";r("10fb")},d645:function(e,t,r){},d8b6:function(e,t,r){},dcc9:function(e,t,r){"use strict";r("b36b")},dcd1:function(e,t,r){"use strict";r("371a")},deaf:function(e,t,r){},df65:function(e,t,r){},e0cd:function(e,t,r){},e33d:function(e,t,r){"use strict";r("5b41")},e781:function(e,t,r){},eb30:function(e,t,r){"use strict";var a=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),n=function(){function e(){this.browser=new a,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),i=new n;function o(e,t){var r=t.browser,a=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);a&&(r.firefox=!0,r.version=a[1]),n&&(r.ie=!0,r.version=n[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?i.worker=!0:!i.hasGlobalWindow||"Deno"in window?(i.node=!0,i.svgSupported=!0):o(navigator.userAgent,i),t["a"]=i},ef8b:function(e,t,r){"use strict";r("cc22")},f205:function(e,t,r){},f379:function(e,t,r){},fa63:function(e,t,r){},fb15:function(e,t,r){"use strict";r.r(t);var a={};if(r.r(a),r.d(a,"updateProps",(function(){return ch})),r.d(a,"initProps",(function(){return uh})),r.d(a,"removeElement",(function(){return ph})),r.d(a,"removeElementWithFadeOut",(function(){return fh})),r.d(a,"isElementRemoved",(function(){return dh})),r.d(a,"extendShape",(function(){return M_})),r.d(a,"extendPath",(function(){return k_})),r.d(a,"registerShape",(function(){return N_})),r.d(a,"getShapeClass",(function(){return E_})),r.d(a,"makePath",(function(){return L_})),r.d(a,"makeImage",(function(){return R_})),r.d(a,"mergePath",(function(){return j_})),r.d(a,"resizePath",(function(){return V_})),r.d(a,"subPixelOptimizeLine",(function(){return $_})),r.d(a,"subPixelOptimizeRect",(function(){return B_})),r.d(a,"subPixelOptimize",(function(){return z_})),r.d(a,"getTransform",(function(){return G_})),r.d(a,"applyTransform",(function(){return U_})),r.d(a,"transformDirection",(function(){return W_})),r.d(a,"groupTransition",(function(){return Y_})),r.d(a,"clipPointsByRect",(function(){return X_})),r.d(a,"clipRectByRect",(function(){return K_})),r.d(a,"createIcon",(function(){return Z_})),r.d(a,"linePolygonIntersect",(function(){return J_})),r.d(a,"lineLineIntersect",(function(){return Q_})),r.d(a,"setTooltipConfig",(function(){return rx})),r.d(a,"traverseElements",(function(){return nx})),r.d(a,"Group",(function(){return Gs})),r.d(a,"Image",(function(){return yd})),r.d(a,"Text",(function(){return Wd})),r.d(a,"Circle",(function(){return bb})),r.d(a,"Ellipse",(function(){return wb})),r.d(a,"Sector",(function(){return $b})),r.d(a,"Ring",(function(){return Gb})),r.d(a,"Polygon",(function(){return Yb})),r.d(a,"Polyline",(function(){return Zb})),r.d(a,"Rect",(function(){return Id})),r.d(a,"Line",(function(){return t_})),r.d(a,"BezierCurve",(function(){return o_})),r.d(a,"Arc",(function(){return c_})),r.d(a,"IncrementalDisplayable",(function(){return T_})),r.d(a,"CompoundPath",(function(){return d_})),r.d(a,"LinearGradient",(function(){return m_})),r.d(a,"RadialGradient",(function(){return v_})),r.d(a,"BoundingRect",(function(){return Yn})),r.d(a,"OrientedBoundingRect",(function(){return D_})),r.d(a,"Point",(function(){return jn})),r.d(a,"Path",(function(){return ud})),"undefined"!==typeof window){var n=window.document.currentScript,i=r("8875");n=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[e._v("测试自开发页面")])},l=[],c={name:"ApaasCustomMydemo"},u=c;r("e33d");function d(e,t,r,a,n,i,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):n&&(l=s?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var p=d(u,s,l,!1,null,null,null),h=p.exports,f=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 自开发界面 ")]),r("div",{staticClass:"operation"},[r("x-svg-icon",{staticClass:"pointer",staticStyle:{cursor:"pointer"},attrs:{name:"refresh-icon"},nativeOn:{click:function(t){return e.handleRefresh()}}})],1)]),r("div",{staticClass:"page-search-panel"},[r("el-form",{staticClass:"search-list"},[e._l(e.searchListConfig,(function(t){return[r(t.component,{key:t.searchKey,tag:"component",attrs:{label:t.label,extraConfig:t.extraConfig,searchKey:t.searchKey,searchValue:e.searchPanelValue[t.searchKey]},on:{change:function(r){return e.handleSearchValueChange(t.searchKey,r)}}})]}))],2),r("div",{staticClass:"search-button-group"},[r("el-button",{attrs:{"native-type":"reset"},on:{click:function(t){return e.resetSearch()}}},[e._v(" 重置 ")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSearch()}}},[e._v(" 查询 ")])],1)],1),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange,"select-data-change":e.selectDataChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customHeadSlot,fn:function(n){var i=n.column;return[t.customHeadSlot?r("div",{key:a},[e._v(" "+e._s(i)+" "+e._s(t)+" ")]):e._e()]}}})),e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["options"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowDetail(i)}}},[e._v("详情")]),r("span",{staticStyle:{width:"4px",display:"inline-block"}}),r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowEdit(i)}}},[e._v("编辑")])]):e._e(),"status"===t.customSlot?r("div",{key:a+""+o},[i[t.prop]?r("span",{staticStyle:{background:"#67C23A",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("生效")]):e._e(),i[t.prop]?e._e():r("span",{staticStyle:{background:"#F56C6C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("失效")])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[r("x-empty-page")],1)])],2)],1),r("detail-drawer",{ref:"detailDrawer"}),r("edit-modal",{ref:"editModal"})],1)},m=[],g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-component search-input"},[r("el-form-item",[r("template",{slot:"label"},[r("x-ellipsis",{staticClass:"fix-cursor",attrs:{mode:"origin",label:e.label}})],1),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.computedValue,callback:function(t){e.computedValue=t},expression:"computedValue"}})],2)],1)},v=[],y={model:{prop:"searchValue",event:"change"},props:{label:{type:String,required:!0},searchKey:{type:String,required:!0},searchValue:{required:!0},extraConfig:{type:Object,default:function(){return{}}}},computed:{computedValue:{get:function(){return this.searchValue},set:function(e){this.$emit("change",e)}}}},b=y,_={name:"SearchInput",mixins:[b]},x=_,w=d(x,g,v,!1,null,null,null),D=w.exports,S=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-component search-date"},[r("el-form-item",[r("template",{slot:"label"},[r("x-ellipsis",{staticClass:"fix-cursor",attrs:{mode:"origin",label:e.label}})],1),r("el-date-picker",{attrs:{type:e.dateDisplayStyle,"range-separator":"~","value-format":e.valueFormat,"start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.computedValue,callback:function(t){e.computedValue=t},expression:"computedValue"}})],2)],1)},C=[],T={name:"SearchDate",mixins:[b],computed:{dateDisplayStyle:function(){return"DATE_TIME"===this.extraConfig.dateDisplayStyle?"datetimerange":"YEAR_MONTH"===this.extraConfig.dateDisplayStyle?"monthrange":"ONLY_YEAR"===this.extraConfig.dateDisplayStyle?"year":"daterange"},valueFormat:function(){return"DATE_TIME"===this.extraConfig.dateDisplayStyle?"yyyy-MM-dd HH:mm:ss":"YEAR_MONTH"===this.extraConfig.dateDisplayStyle?"yyyy-MM":"ONLY_YEAR"===this.extraConfig.dateDisplayStyle?"yyyy":"yyyy-MM-dd"}}},I=T,O=(r("a879"),d(I,S,C,!1,null,null,null)),A=O.exports,M=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-component search-number"},[r("el-form-item",[r("template",{slot:"label"},[r("x-ellipsis",{staticClass:"fix-cursor",attrs:{mode:"origin",label:e.label}})],1),r("div",{staticClass:"range-item"},[r("x-number-input",{staticClass:"form-el-input-number",attrs:{placeholder:"请输入"},model:{value:e.minValue,callback:function(t){e.minValue=t},expression:"minValue"}}),r("div",{staticClass:"range-item-divide"},[e._v(" ~ ")]),r("x-number-input",{staticClass:"form-el-input-number",attrs:{placeholder:"请输入"},model:{value:e.maxValue,callback:function(t){e.maxValue=t},expression:"maxValue"}})],1)],2)],1)},P=[];function k(e){return R(e)||L(e)||E(e)||N()}function N(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,t){if(e){if("string"===typeof e)return F(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}function L(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return F(e)}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);re.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"add";this.loadingData=!0,this.extarConfig.loadData(this.pageInfo).then((function(r){"add"===t?e.options=[].concat(U(e.options),U(r)):"replace"===t&&(e.options=r)}),(function(e){})).finally((function(){e.loadingData=!1}))}}},Z=K,J=d(Z,z,G,!1,null,null,null),Q=J.exports,ee=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("x-drawer",e._g({attrs:{"append-to-body":!0,"destroy-on-close":!0,drawerVisible:e.visible,"wrapper-class":"detail-draw",title:"自开发详情页",width:"calc(50% + 32px)"},on:{"update:drawerVisible":function(t){e.visible=t},"update:drawer-visible":function(t){e.visible=t}}},e.$listeners))},te=[],re={name:"DetailDrawer",data:function(){return{visible:!1}},created:function(){},methods:{showDrawer:function(){this.visible=!0},closeDrawer:function(){this.visible=!1}}},ae=re,ne=d(ae,ee,te,!1,null,null,null),ie=ne.exports,oe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("x-modal",e._g({attrs:{"append-to-body":!0,"destroy-on-close":!0,modalVisible:e.visible,"wrapper-class":"edit-modal",title:e.modalTitle,width:500},on:{"update:modalVisible":function(t){e.visible=t},"update:modal-visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.closeModal}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)]},proxy:!0}])},e.$listeners),[r("el-form",{ref:"editForm",attrs:{model:e.formData,rules:e.formRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"名称:",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入名称",maxlength:"100",disabled:!e.isNameEditable},model:{value:e.formData.templateName,callback:function(t){e.$set(e.formData,"templateName",t)},expression:"formData.templateName"}})],1)],1)],1)},se=[],le=function(e){return function(t){return Object.prototype.toString.call(t)==="[object ".concat(e,"]")}};le("String"),le("Array"),le("Object"),le("Boolean"),le("Function"),le("Number"),le("Promise");function ce(){try{for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"edit",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.mode=r,this.currentRow=e,this.currentStatus=a||e&&e.status||"",this.formData="add"===r?{templateName:"",template_status:"草稿"}:{templateName:e.templateName||"",template_status:e.template_status},this.visible=!0,this.$nextTick((function(){t.$refs.editForm&&t.$refs.editForm.clearValidate()}))},closeModal:function(){this.visible=!1,this.currentRow=null,this.currentStatus="",this.formData={templateName:"",template_status:""}},handleSubmit:function(){var e=this;this.$refs.editForm.validate((function(t){if(t){var r={mode:e.mode,formData:ge(ge({},e.formData),{},{createBy:de(),userId:de()}),row:e.currentRow};e.$emit("submit",r),e.closeModal()}}))}}},xe=_e,we=(r("3840"),d(xe,oe,se,!1,null,null,null)),De=we.exports;function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Te(e){for(var t=1;t0?r("div",{staticClass:"approval-timeline"},[r("el-timeline",e._l(e.timelineNodes,(function(t,a){return r("el-timeline-item",{key:a,attrs:{color:e.getTimelineColor(t.result||t.status,a,e.timelineNodes.length)}},[r("div",{staticClass:"timeline-item-content"},[r("div",{staticClass:"node-title"},[e._v(" "+e._s(t.title)+" ")]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"node-info"},[r("div",{staticClass:"node-user"},[e._v(" "+e._s(t.userName||"--")+" "),r("span",{staticClass:"node-time"},[e._v(" "+e._s(e.formatTime(t.operateTime))+" ")])])]),r("div",{staticClass:"node-status",class:e.getStatusClass(t.result||t.status)},[e._v(" "+e._s(e.setStatusText(t.result||t.status))+" ")]),t.opinion?r("div",{staticClass:"node-opinion"},[e._v(" 审批意见:"+e._s(t.opinion)+" ")]):e._e()])])])})),1)],1):r("div",{staticClass:"empty-progress"},[r("span",{staticClass:"empty-text"},[e._v("暂无审批流程数据")])])]):e._e()],1),e.isApprovalMode?r("div",{staticClass:"page-approval-content",class:{"has-footer":e.isApprovalMode}},[r("div",{staticClass:"approval-content"},[r("div",{staticClass:"approval-process-title"},[e._m(0),r("el-input",{attrs:{maxlength:"100","show-word-limit":"",placeholder:"请输入流程主题"},model:{value:e.approvalFormData.processTitle,callback:function(t){e.$set(e.approvalFormData,"processTitle",t)},expression:"approvalFormData.processTitle"}})],1),r("div",{staticClass:"approval-table-section"},[r("el-table",{staticClass:"approval-table",attrs:{data:e.tableData,border:"","max-height":e.approvalTableMaxHeight}},e._l(e.approvalTableConfig.colConfigs,(function(t){return r("el-table-column",{key:t.prop,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth,align:t.align||"center","show-overflow-tooltip":t.showOverflowTooltip},scopedSlots:e._u([{key:"default",fn:function(r){return[t.formatter?[e._v(" "+e._s(t.formatter({cellValue:r.row[t.prop],row:r.row,rowIndex:r.$index}))+" ")]:[e._v(" "+e._s(r.row[t.prop])+" ")]]}}],null,!0)})})),1),r("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":e.pagination.currentPage,"page-sizes":[10,20,50,100],"page-size":e.pagination.pageSize,total:e.pagination.total,layout:"total, prev, pager, next, sizes, jumper"},on:{"size-change":e.approvalPageSizeChange,"current-change":e.approvalCurrentPageChange}})],1),r("div",{staticClass:"approval-description"},[r("div",{staticClass:"description-label"},[e._v(" 说明 ")]),r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入"},model:{value:e.approvalFormData.description,callback:function(t){e.$set(e.approvalFormData,"description",t)},expression:"approvalFormData.description"}})],1),r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-title"},[e._v(" 审批环节 ")]),r("div",{staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[e._m(1),r("tbody",e._l(e.approvalWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"",placeholder:"请选择","remote-method":function(t){return e.handleRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userId||t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])])]):e._e(),e.isMaintainMode?r("div",{staticClass:"page-footer"},[r("div",{staticClass:"footer-buttons"},[r("el-button",{on:{click:e.handleBackFromMaintain}},[e._v(" 返回 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 保存 ")])],1)]):e._e(),e.isApprovalMode?r("div",{staticClass:"page-footer"},[r("div",{staticClass:"footer-buttons"},[r("el-button",{on:{click:e.handleApprovalCancel}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting,disabled:!e.approvalFormData.processTitle||!e.approvalFormData.processTitle.trim()},on:{click:e.handleApprovalFormSubmit}},[e._v(" 确定 ")])],1)]):e._e(),r("el-dialog",{attrs:{title:e.paramModalTitle,visible:e.paramModalVisible,width:"800px","close-on-click-modal":!1,"append-to-body":"",modal:!0,"modal-append-to-body":!0,"custom-class":"param-edit-dialog"},on:{"update:visible":function(t){e.paramModalVisible=t},close:e.handleParamModalClose}},[r("el-form",{ref:"paramForm",attrs:{model:e.paramFormData,rules:e.paramFormRules,"label-width":"120px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"子系统:",prop:"subsystemName"}},[r("el-input",{attrs:{placeholder:"请输入子系统"},model:{value:e.paramFormData.subsystemName,callback:function(t){e.$set(e.paramFormData,"subsystemName",t)},expression:"paramFormData.subsystemName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"类型:",prop:"parameterType"}},[r("el-input",{attrs:{placeholder:"请输入类型"},model:{value:e.paramFormData.parameterType,callback:function(t){e.$set(e.paramFormData,"parameterType",t)},expression:"paramFormData.parameterType"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"零部件名称:",prop:"partsName"}},[r("el-input",{attrs:{placeholder:"请输入零部件名称"},model:{value:e.paramFormData.partsName,callback:function(t){e.$set(e.paramFormData,"partsName",t)},expression:"paramFormData.partsName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"参数名称:",prop:"parameterName"}},[r("el-input",{attrs:{placeholder:"请输入参数名称"},model:{value:e.paramFormData.parameterName,callback:function(t){e.$set(e.paramFormData,"parameterName",t)},expression:"paramFormData.parameterName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"单位:",prop:"unit"}},[r("el-input",{attrs:{placeholder:"请输入单位"},model:{value:e.paramFormData.unit,callback:function(t){e.$set(e.paramFormData,"unit",t)},expression:"paramFormData.unit"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"参数计划来源:",prop:"parameterSource"}},[r("el-select",{attrs:{placeholder:"请选择参数计划来源"},model:{value:e.paramFormData.parameterSource,callback:function(t){e.$set(e.paramFormData,"parameterSource",t)},expression:"paramFormData.parameterSource"}},[r("el-option",{attrs:{value:"公式计算",label:"公式计算"}}),r("el-option",{attrs:{value:"数据平台手工录入",label:"数据平台手工录入"}}),r("el-option",{attrs:{value:"TC分类表",label:"TC分类表"}})],1)],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"数值类型:",prop:"isNumber"}},[r("el-radio-group",{model:{value:e.paramFormData.isNumber,callback:function(t){e.$set(e.paramFormData,"isNumber",t)},expression:"paramFormData.isNumber"}},[r("el-radio",{attrs:{label:"数值"}},[e._v(" 数值 ")]),r("el-radio",{attrs:{label:"非数值"}},[e._v(" 非数值 ")])],1)],1)],1)],1),r("el-form-item",{attrs:{label:"填写部门:",prop:"department"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择填写部门",readonly:""},nativeOn:{click:function(t){return e.handleOpenDepartmentDialog.apply(null,arguments)}},model:{value:e.paramFormData.departmentName,callback:function(t){e.$set(e.paramFormData,"departmentName",t)},expression:"paramFormData.departmentName"}},[r("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:function(t){return t.stopPropagation(),e.handleOpenDepartmentDialog.apply(null,arguments)}},slot:"suffix"})])],1),r("el-form-item",{attrs:{label:"分类编号/公式:",prop:"numberOrFormula"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入分类编号或公式"},model:{value:e.paramFormData.numberOrFormula,callback:function(t){e.$set(e.paramFormData,"numberOrFormula",t)},expression:"paramFormData.numberOrFormula"}})],1),r("el-form-item",{attrs:{label:"备注:",prop:"remarks"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入备注"},model:{value:e.paramFormData.remarks,callback:function(t){e.$set(e.paramFormData,"remarks",t)},expression:"paramFormData.remarks"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.paramModalVisible=!1}}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.paramSubmitting},on:{click:e.handleParamFormSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:e.batchModifyDepartmentMode?"批量修改部门":"选择填写部门",visible:e.departmentDialogVisible,width:"500px","append-to-body":"","custom-class":"department-select-dialog"},on:{"update:visible":function(t){e.departmentDialogVisible=t},close:e.handleDepartmentDialogClose}},[r("div",{staticClass:"department-dialog-content"},[r("el-input",{staticClass:"department-search-input",attrs:{placeholder:"请输入部门名称进行搜索",clearable:"","prefix-icon":"el-icon-search"},model:{value:e.departmentSearchText,callback:function(t){e.departmentSearchText=t},expression:"departmentSearchText"}}),r("div",{staticClass:"department-tree-wrapper"},[r("el-tree",{ref:"departmentTree",attrs:{data:e.departmentTreeData,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","current-node-key":e.currentDepartmentNodeKey,"expand-on-click-node":!1},on:{"node-click":e.handleDepartmentTreeNodeClick}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDepartmentDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirmDepartment}},[e._v("确定")])],1)]),r("el-dialog",{attrs:{title:"导入参数",visible:e.importDialogVisible,width:"400px","append-to-body":""},on:{"update:visible":function(t){e.importDialogVisible=t},close:e.handleImportDialogClose}},[r("el-upload",{staticClass:"import-uploader",attrs:{drag:"","auto-upload":!1,limit:1,accept:".xls,.xlsx,.csv","file-list":e.importFileList,"on-change":e.handleImportFileChange,"on-remove":e.handleImportFileRemove}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[e._v(" 将文件拖到此处,或"),r("em",[e._v("点击上传")])]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 仅支持Excel或CSV模板文件 ")])]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleImportDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.importing},on:{click:e.handleImportConfirm}},[e._v(" 开始导入 ")])],1)],1)],1)},ft=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"description-label"},[e._v(" 流程主题 "),r("span",{staticClass:"required-mark"},[e._v("*")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])])}];function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}function gt(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=St(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function yt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,a=new Array(t);re.versionNum?t:e}),r[0]);return a&&a.version===t},tableMaxHeight:function(){var e=window.innerHeight||document.documentElement.clientHeight,t=56,r=this.isApprovalMode||this.isMaintainMode?0:80,a=this.isMaintainMode?0:50,n=this.isMaintainMode?80:0,i=40,o=20,s=e-t-r-a-n-i-o;return Math.max(s,400)},approvalTableMaxHeight:function(){var e=window.innerHeight||document.documentElement.clientHeight,t=56,r=100,a=60,n=200,i=50,o=80,s=100,l=e-t-r-a-n-i-o-s;return Math.max(l,300)},tableConfig:function(){var e=this,t=[];return this.isMaintainMode,t.push({prop:"subsystemName",label:"子系统",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"parameterType",label:"类型",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"partsName",label:"零部件名称",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"parameterName",label:"参数名称",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"unit",label:"单位",showOverflowTooltip:!0,width:"100",align:"center"},{prop:"parameterValue",label:"参数值",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"isNumber",label:"数值类型",showOverflowTooltip:!0,width:"100",align:"center",formatter:function(t){var r=t.cellValue;return e.formatIsNumberDisplay(r)}},{prop:"parameterSource",label:"参数计划来源",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"department",label:"填写部门",showOverflowTooltip:!0,minWidth:"120",align:"center",formatter:function(t){var r=t.cellValue;return e.formatDepartmentDisplay(r)}},{prop:"remarks",label:"备注",showOverflowTooltip:!0,minWidth:"100",align:"center"}),this.isMaintainMode&&t.push({prop:"options",label:"操作",customSlot:"options",align:"center",width:"120",fixed:"right"}),{colConfigs:t}},paramModalTitle:function(){return"add"===this.paramModalMode?"添加参数":"修改参数"},paramFormRules:function(){return{subsystemName:[{required:!0,message:"请输入子系统",trigger:"blur"}],parameterType:[{required:!0,message:"请输入类型",trigger:"blur"}],parameterName:[{required:!0,message:"请输入参数名称",trigger:"blur"}]}},approvalTableConfig:function(){var e=this;return{colConfigs:[{prop:"subsystemName",label:"子系统",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"parameterType",label:"类型",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"partsName",label:"零部件名称",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"parameterName",label:"参数名称",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"unit",label:"单位",showOverflowTooltip:!0,width:"100",align:"center"},{prop:"parameterValue",label:"参数值",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"isNumber",label:"数值类型",showOverflowTooltip:!0,width:"100",align:"center",formatter:function(t){var r=t.cellValue;return e.formatIsNumberDisplay(r)}},{prop:"parameterSource",label:"参数计划来源",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"department",label:"填写部门",showOverflowTooltip:!0,minWidth:"120",align:"center",formatter:function(t){var r=t.cellValue;return e.formatDepartmentDisplay(r)}},{prop:"remarks",label:"备注",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"modifyDetails",label:"变动说明",showOverflowTooltip:!0,minWidth:"150",align:"center"}]}},approvalFormRules:function(){return{name:[{required:!0,message:"请输入名称",trigger:"blur"}],model:[{required:!0,message:"请输入型号",trigger:"blur"}],value:[{required:!0,message:"请输入数值",trigger:"blur"}]}},initiateNode:function(){return this.detail&&this.detail.createBy?{userName:this.detail.createBy,createTime:this.detail.createdTime||this.detail.createTime,status:"INITIATE",result:"INITIATE"}:null},timelineNodes:function(){var e=[];if(this.flowNodes&&this.flowNodes.length>0){var t=wt(this.flowNodes),r=t.findIndex((function(e){return"待审批"===e.result}));-1!==r&&(t[r]=yt(yt({},t[r]),{},{result:"APPROVING"})),t.forEach((function(t){var r="APPROVING",a="APPROVING";t.result&&("MSG"===t.result?(r="PASS",a="PASS"):"REJECT"===t.result?(r="REJECT",a="REJECT"):"RETURN"===t.result?(r="RETURN",a="RETURN"):"APPROVING"===t.result?(r="APPROVING",a="APPROVING"):"PASS"===t.result?(r="PASS",a="PASS"):"待审批"===t.result&&(r="待审批",a="待审批"));var n=t.opinions&&Array.isArray(t.opinions)&&t.opinions.length>0?t.opinions[0]:null,i=t.todoUserName||t.undoUserName||"--";e.push({title:t.node||"审批节点",userName:i,operateTime:t.approvalTime||"",result:r,status:a,opinion:n})}))}else this.progress&&this.progress.length>0&&this.progress.forEach((function(t){t.steps&&t.steps.length>0&&t.steps.forEach((function(r){e.push({title:t.title||"审批节点",userName:r.userName,operateTime:r.approvalTime||r.handleTime||r.createTime,result:r.result||r.status,status:r.result||r.status,opinion:r.opinion||r.remark||r.comment||null})}))}));return e}},watch:{departmentSearchText:function(e){var t=this;if(this.$refs.departmentTree)if(this.$refs.departmentTree.filter(e),e&&""!==e.trim())this.$nextTick((function(){var e=t.getAllDepartmentNodeKeys(t.departmentTreeData);if(t.$refs.departmentTree&&e.length>0)try{t.$refs.departmentTree.setExpandedKeys(e)}catch(r){t.expandAllNodesRecursive(t.departmentTreeData)}}));else if(this.$refs.departmentTree)try{this.$refs.departmentTree.setExpandedKeys([])}catch(r){}},templateId:{handler:function(e){e&&(this.internalTemplateId=e,this.loadTemplateInfo())},immediate:!0},templateName:{handler:function(e){e&&(this.internalTemplateName=e)},immediate:!0},"$route.query.id":{handler:function(e){e&&!this.templateId&&(this.internalTemplateId=e,this.loadTemplateInfo())},immediate:!0},"$route.query.name":{handler:function(e){e&&!this.templateName&&(this.internalTemplateName=e)},immediate:!0},templateVersion:{handler:function(e){e?this.internalTemplateVersion=e:this.loadLatestVersion()},immediate:!0},changeId:{handler:function(e){e&&(this.internalChangeId=e)},immediate:!0},versionList:{handler:function(e){var t=this;if(e&&e.length>0){var r=this.internalTemplateVersion||this.templateVersion,a=e.some((function(e){return t.getVersionName(e)===r}));if(a){this.updateCurrentStatus();var n=e.find((function(e){return t.getVersionName(e)===r}));n&&n.id&&(this.internalChangeId=n.id)}else this.templateVersion&&e.some((function(e){return t.getVersionName(e)===t.templateVersion}))?this.internalTemplateVersion=this.templateVersion:this.internalTemplateVersion=this.getVersionName(e[0]),this.updateCurrentStatus(),this.$nextTick((function(){t.loadData()}))}},immediate:!0},detail:{handler:function(e){var t=this;e&&e.status?this.currentStatus=e.status:this.updateCurrentStatus(),e&&e.changeId&&!this.internalChangeId&&(this.internalChangeId=e.changeId),e&&e.flowId&&this.$nextTick((function(){t.getApprovalSpet()}))},immediate:!0,deep:!0}},created:function(){var e=this;if(this.loadUserSelfRole(),this.templateId?(this.internalTemplateId=this.templateId,this.loadTemplateInfo()):this.$route.query.id&&(this.internalTemplateId=this.$route.query.id,this.loadTemplateInfo()),this.templateName?this.internalTemplateName=this.templateName:this.$route.query.name&&(this.internalTemplateName=this.$route.query.name),this.changeId?this.internalChangeId=this.changeId:this.detail&&this.detail.changeId&&(this.internalChangeId=this.detail.changeId),this.templateVersion){if(this.internalTemplateVersion=this.templateVersion,this.versionList&&this.versionList.length>0){var t=this.versionList.find((function(t){return e.getVersionName(t)===e.templateVersion}));t&&t.id&&(this.internalChangeId=t.id)}}else this.loadLatestVersion();this.updateCurrentStatus(),this.loadData()},mounted:function(){var e=this;this.loadDepartmentList(),this.detail&&this.detail.flowId&&this.getApprovalSpet(),this.fromTodo&&this.flowId&&this.$nextTick((function(){e.loadData()}))},methods:{loadUserSelfRole:function(){var e=yt(yt({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){if(e&&e.data)try{localStorage.setItem("user_self_role",JSON.stringify(e.data))}catch(t){console.error("存储权限数据到 localStorage 失败:",t)}})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},checkPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"查看";try{var a=localStorage.getItem("user_self_role");if(!a)return!1;var n=JSON.parse(a);if(!Array.isArray(n))return!1;var i=n.filter((function(a){var n=a.menuPath&&e&&(a.menuPath.includes(e)||e.includes(a.menuPath));return!!n&&((!t||a.subsystem===t)&&a.parameterPer===r)}));return i.length>0}catch(o){return console.error("检查权限失败:",o),!1}},handleResendApproval:function(){var e=this;this.originalTableDataForApproval=JSON.parse(JSON.stringify(this.tableData)),this.originalPaginationForApproval=JSON.parse(JSON.stringify(this.pagination));var t=this.getChangeId();if(t){this.isResendMode=!0;var r=yt(yt({},et.GET_RETURN_APPROVAL),{},{params:{templateId:t},disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){console.log("获取审批流程信息:",t),e.resendApprovalData=t,e.getApprovalChange()})).asyncErrorCatch((function(t){console.error("获取审批流程信息失败:",t),e.isResendMode=!1,e.resendApprovalData=null,e.getApprovalChange(),e.$message({type:"warning",message:"获取原审批流程信息失败,将使用空的人员列表"})}))}else this.$message.error("缺少变更ID,无法重新发起审批")},hasViewPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e||this.displayTemplateName;return this.checkPermission("模板管理",t,"查看")},hasEditPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e||this.displayTemplateName;return this.checkPermission("模板管理",t,"编辑")},isAdmin:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){return 1===e.isAdmin||"1"===e.isAdmin}))}catch(r){return console.error("检查管理员权限失败:",r),!1}},hasGlobalEditPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return"参数模板管理"===t&&"编辑"===r}))}catch(r){return console.error("检查全局编辑权限失败:",r),!1}},hasTemplateManagementPermission:function(){if(this.isAdmin())return!0;if(this.hasGlobalEditPermission())return!0;var e=this.displayTemplateName;if(!e)return!1;try{var t=localStorage.getItem("user_self_role");if(!t)return!1;var r=JSON.parse(t);if(!Array.isArray(r))return!1;var a="参数模板管理/".concat(e);return r.some((function(e){var t=e.permissionPath||"";return t===a}))}catch(n){return console.error("检查参数模板管理权限失败:",n),!1}},hasParameterEditPermission:function(e,t){if(this.isAdmin())return!0;if(this.hasGlobalEditPermission())return!0;if(!e||!t)return!1;if(this.templateManagementPermissions&&this.templateManagementPermissions.length>0){var r=this.templateManagementPermissions.filter((function(r){return r.subsystem===e&&(r.partsName===t&&"编辑"===r.parameterPer)}));return r.length>0}try{var a=localStorage.getItem("user_self_role");if(!a)return!1;var n=JSON.parse(a);if(!Array.isArray(n))return!1;var i=n.filter((function(r){return!(r.menuPath&&""!==r.menuPath.trim()&&!r.menuPath.includes("模板管理"))&&(!(!r.subsystem||r.subsystem!==e)&&(!(!r.partsName||r.partsName!==t)&&"编辑"===r.parameterPer))}));return i.length>0}catch(o){return console.error("检查参数权限失败:",o),!1}},canEditOrDeleteRow:function(e){if(!e)return!1;if(this.isAdmin())return!0;if(this.hasGlobalEditPermission())return!0;if(e.createdBy===de())return!0;var t=e.subsystemName||e.subsystem||"",r=e.partsName||"";return!!(t&&r&&this.hasParameterEditPermission(t,r))},loadDepartmentList:function(){var e=this,t=yt(yt({},et.GET_DEPT_OF_USER),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log("resp2222",t);var r=[];t&&t.data&&(r=t.data||[]),e.departmentList=e.formatDepartmentTreeData(r),e.departmentTreeData=e.formatDepartmentTreeData(r)})).asyncErrorCatch((function(t){console.error("加载部门列表失败:",t),e.departmentList=[],e.departmentTreeData=[]}))},formatDepartmentTreeData:function(e){if(!Array.isArray(e))return[];var t=function e(t){var r={id:t.id,name:t.name||t.label||"",children:void 0};return t.children&&Array.isArray(t.children)&&t.children.length>0&&(r.children=t.children.map((function(t){return e(t)}))),r};return e.map((function(e){return t(e)}))},handleOpenDepartmentDialog:function(){var e=this;this.batchModifyDepartmentMode=!1,this.departmentDialogVisible=!0,this.departmentSearchText="",this.selectedDepartmentNode=null,this.paramFormData.departmentId?(this.currentDepartmentNodeKey=this.paramFormData.departmentId,this.$nextTick((function(){var t=e.findDepartmentNodeById(e.departmentTreeData,e.paramFormData.departmentId);if(t&&(e.selectedDepartmentNode=t),e.$refs.departmentTree)try{e.$refs.departmentTree.setCurrentKey(e.paramFormData.departmentId)}catch(r){console.warn("设置当前节点失败:",r)}}))):this.currentDepartmentNodeKey=null},handleDepartmentDialogClose:function(){this.departmentDialogVisible=!1,this.selectedDepartmentNode=null,this.departmentSearchText="",this.batchModifyDepartmentMode=!1,this.currentDepartmentNodeKey=null},filterDepartmentNode:function(e,t){return!e||(t.name||"").toLowerCase().includes(e.toLowerCase())},getAllDepartmentNodeKeys:function(e){var t=this,r=[];return Array.isArray(e)?(e.forEach((function(e){e.id&&r.push(e.id),e.children&&Array.isArray(e.children)&&e.children.length>0&&(r=r.concat(t.getAllDepartmentNodeKeys(e.children)))})),r):r},expandAllNodesRecursive:function(e){var t=this;Array.isArray(e)&&this.$refs.departmentTree&&e.forEach((function(e){if(e.id)try{t.$refs.departmentTree.store.setExpanded(e.id,!0)}catch(r){}e.children&&Array.isArray(e.children)&&e.children.length>0&&t.expandAllNodesRecursive(e.children)}))},findDepartmentNodeById:function(e,t){if(!Array.isArray(e)||!t)return null;var r,a=gt(e);try{for(a.s();!(r=a.n()).done;){var n=r.value;if(n.id===t)return n;if(n.children&&Array.isArray(n.children)&&n.children.length>0){var i=this.findDepartmentNodeById(n.children,t);if(i)return i}}}catch(o){a.e(o)}finally{a.f()}return null},handleDepartmentTreeNodeClick:function(e){console.log("节点被点击:",e),this.selectedDepartmentNode=e,this.currentDepartmentNodeKey=e.id||null},handleConfirmDepartment:function(){console.log("handleConfirmDepartment 被调用, batchModifyDepartmentMode:",this.batchModifyDepartmentMode),this.batchModifyDepartmentMode?this.handleConfirmBatchModifyDepartment():this.handleConfirmDepartmentSelect()},handleConfirmDepartmentSelect:function(){if(console.log("handleConfirmDepartmentSelect"),!this.selectedDepartmentNode&&this.$refs.departmentTree)try{var e=this.$refs.departmentTree.getCurrentKey();if(e){var t=this.findDepartmentNodeById(this.departmentTreeData,e);t&&(this.selectedDepartmentNode=t)}}catch(a){console.warn("获取当前选中节点失败:",a)}if(this.selectedDepartmentNode){var r=this.getDepartmentPathName(this.selectedDepartmentNode.id);this.paramFormData.departmentId=this.selectedDepartmentNode.id,this.paramFormData.departmentName=r||this.selectedDepartmentNode.name,this.paramFormData.department=r||this.selectedDepartmentNode.name,this.handleDepartmentDialogClose()}else this.$message({type:"warning",message:"请选择一个部门"})},getDepartmentPathName:function(e){if(!e||!this.departmentList||0===this.departmentList.length)return"";var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=gt(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(wt(n),[o.name]);if(o.id===r)return s.join("-");if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null};return t(this.departmentList,e)||""},formatDepartmentDisplay:function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t},formatIsNumberDisplay:function(e){return"非数值"===e||!1===e||0===e||"0"===e?"非数值":"数值"===e||!0===e||1===e||"1"===e?"数值":void 0===e||null===e||""===e?"—":String(e)},normalizeParamIsNumberForForm:function(e){return"非数值"===e||!1===e||0===e||"0"===e?"非数值":"数值"},handleBack:function(){var e=this;this.isApprovalMode?this.handleApprovalCancel():this.isMaintainMode?this.$confirm("确定要返回吗?未保存的修改将丢失。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectedRows=[],e.$refs.vxeTable&&e.$refs.vxeTable.clearSelection&&e.$refs.vxeTable.clearSelection(),e.originalTableData&&e.originalTableData.length>0&&(e.tableData=JSON.parse(JSON.stringify(e.originalTableData))),e.originalTableData=[],e.isMaintainMode=!1,console.log("已退出维护参数模式"),e.loadData()})).catch((function(){})):(console.log("handleBack called"),this.$emit("back"))},pageSizeChange:function(e){this.$set(this.pagination,"pageSize",e),this.loadData()},rowClickEvent:function(e){console.warn(e)},currentChange:function(e){this.$set(this.pagination,"currentPage",e),this.loadData()},approvalPageSizeChange:function(e){this.$set(this.pagination,"pageSize",e),this.getApprovalChange()},approvalCurrentPageChange:function(e){this.$set(this.pagination,"currentPage",e),this.getApprovalChange()},selectDataChange:function(e){if(this.isMaintainMode){var t=(e||[]).filter((function(e){return"delete"!==e.operation}));this.$set(this,"selectedRows",t),console.log("选中的行:",this.selectedRows.length)}else this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={parameterType:"",partsName:"",parameterName:""},this.handleSearch()},handleSearch:function(){this.$set(this.pagination,"currentPage",1),this.loadData()},handleImport:function(){this.importing||(this.importDialogVisible=!0)},handleImportFileChange:function(e,t){var r=[".xls",".xlsx",".csv"],a=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv","application/vnd.ms-excel.sheet.macroEnabled.12"];if(e&&e.raw){var n=e.raw,i=n.name||"",o=i.substring(i.lastIndexOf(".")).toLowerCase(),s=n.type||"",l=r.some((function(e){return o===e})),c=!s||a.some((function(e){return s.includes(e)}));if(!l&&!c)return this.$message.error("文件类型不支持,仅支持 ".concat(r.join("、")," 格式的文件")),this.selectedImportFile=null,this.importFileList=[],!1;this.selectedImportFile=n,this.importFileList=t.slice(-1)}else this.selectedImportFile=null,this.importFileList=t.slice(-1)},handleImportFileRemove:function(){this.selectedImportFile=null,this.importFileList=[]},handleImportDialogClose:function(){this.importing||(this.importDialogVisible=!1,this.selectedImportFile=null,this.importFileList=[])},handleImportConfirm:function(){var e=this;if(!this.importing&&this.selectedImportFile){var t=this.getDetailTemplateId();if(t){var r=this.selectedImportFile,a=[".xls",".xlsx",".csv"],n=r.name||"",i=n.substring(n.lastIndexOf(".")).toLowerCase();if(!a.includes(i))return this.$message.error("文件类型不支持,仅支持 ".concat(a.join("、")," 格式的文件")),this.selectedImportFile=null,void(this.importFileList=[]);var o=function(){e.importing=!1,e.importDialogVisible=!1,e.selectedImportFile=null,e.importFileList=[]},s=new FormData;s.append("file",r),s.append("userId",de()),s.append("createBy",de()),s.append("templateRowId",t);var l=yt(yt({},et.IMPORT_MODEL),{},{params:s});this.importing=!0;var c=this.$loading({lock:!0,text:"正在导入参数,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$upload(l,null,!1).asyncThen((function(){c.close(),o(),0===e.tableData.length?e.loadData():e.handleBack()})).asyncErrorCatch((function(t){console.error("导入失败:",t);var r="导入失败";t.data&&t.data.error&&(r=Array.isArray(t.data.error)?t.data.error.join(", "):t.data.error),e.$message({type:"error",message:r}),c.close(),o()})).finally((function(){c&&c.close(),e.importing=!1})),this.importDialogVisible=!1}else this.$message.error("缺少模板ID,无法导入")}else this.selectedImportFile||this.$message({type:"warning",message:"请先选择要导入的文件"})},handleDownloadTemplate:function(){var e=this,t=this.getDetailTemplateId();if(t){if(this.downloadingRowId!==t){var r=et.DOWNLODE_MODEL||{},a=r.url,n=r.method,i=void 0===n?"get":n,o=r.headers,s=void 0===o?{}:o,l={url:a,method:i,params:{templateRowId:t,templateEmpty:!0},responseType:"blob",headers:s};l.url?("post"===(l.method||"").toLowerCase()&&(l.data=l.params,delete l.params),this.downloadingRowId=t,this.$axios(l).then((function(e){var t=e.data;if(t){var r=e.headers&&(e.headers["content-type"]||e.headers["Content-Type"]);if(r&&r.includes("application/json"))try{var a=new FileReader;a.onload=function(){console.log("下载失败: ".concat(a.result))},a.readAsText(t)}catch(u){console.error("解析下载失败响应异常:",u)}else{var n=e.headers&&(e.headers["content-disposition"]||e.headers["Content-Disposition"]),i="导入模板.xlsx";if(n){var o=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(n),s=o?o[1]||o[2]:"";if(s)try{i=decodeURIComponent(s)}catch(u){i=s}}var l=window.URL.createObjectURL(t),c=document.createElement("a");c.href=l,c.download=i,document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l),console.log("下载开始,请查看浏览器下载列表")}}else console.log("下载失败,文件内容为空")})).catch((function(e){console.error("下载失败:",e),console.log("下载失败,请稍后重试")})).finally((function(){e.downloadingRowId=""}))):console.log("未配置下载地址")}}else console.log("未找到模板ID,无法下载")},getApprovalChange:function(){var e=this;this.originalTableDataForApproval=JSON.parse(JSON.stringify(this.tableData)),this.originalPaginationForApproval=JSON.parse(JSON.stringify(this.pagination));var t=yt(yt({},et.GET_APPROVAL_CHANGE),{},{params:{templateId:this.getChangeId(),pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log("GET_APPROVAL_CHANGE 接口返回数据:",t);var r=t&&t.data&&t.data.result||[],a=t&&t.data&&(t.data.count||t.data.total||t.data.totalCount)||0,n="number"===typeof a?a:parseInt(a,10)||0,i=r.map((function(t,r){var a=yt(yt({},t),{},{parameterType:t.parameterType||t.type||"",number:t.number||(e.pagination.currentPage-1)*e.pagination.pageSize+r+1});return a}));e.tableData=i,e.$set(e.pagination,"total",n),e.isApprovalMode=!0;var o=e.displayTemplateName||"模板";e.approvalFormData={processTitle:"".concat(o,"审批流程"),description:""},e.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"审核",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"会签",required:!1,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"批准",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null}],e.isResendMode&&e.resendApprovalData&&e.$nextTick((function(){e.fillResendApprovalData(e.resendApprovalData),e.isResendMode=!1,e.resendApprovalData=null}))})).asyncErrorCatch((function(e){console.error("获取审批变更数据失败:",e)}))},handleInitiateApproval:function(){this.getApprovalChange()},handleRestartApproval:function(){var e=this,t=this.getDetailTemplateId();t?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0;var t=yt(yt({},et.RESTART_MODEL_APPROVAL),{},{params:{templateId:e.getChangeId(),userId:de()},disableSuccessMsg:!0});e.$request(t).asyncThen((function(t){e.$message({message:"直送成功",type:"success"}),e.loadData(),e.detail&&e.detail.flowId&&e.getApprovalSpet(),e.$emit("refresh"),e.resending=!1})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1})).finally((function(){e.resending=!1}))})).catch((function(){})):this.$message.error("缺少模板ID,无法执行直送操作")},fillResendApprovalData:function(e){var t,r,a=this;console.log("fillResendApprovalData 接收到的数据:",e);var n=[],i=null;i=Array.isArray(null===e||void 0===e?void 0:e.data)?e.data:Array.isArray(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.data)?e.data.data:Array.isArray(null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.result)?e.data.result:Array.isArray(e)?e:null!==e&&void 0!==e&&e.data&&!Array.isArray(e.data)?e.data:e,Array.isArray(i)?n=i:i&&Array.isArray(i.data)?n=i.data:i&&Array.isArray(i.result)?n=i.result:i&&Array.isArray(i.nodeList)?n=i.nodeList:i&&Array.isArray(i.flowNodes)&&(n=i.flowNodes),console.log("提取的节点列表:",n),console.log("处理后的数据对象:",i);var o=e&&e.data&&!Array.isArray(e.data)&&"object"===mt(e.data)?e.data:i&&!Array.isArray(i)?i:e;if(o&&!Array.isArray(o)){if(o.progressTitle||o.processTitle)this.approvalFormData.processTitle=o.progressTitle||o.processTitle||"",console.log("填充流程主题:",this.approvalFormData.processTitle);else{var s=this.displayTemplateName||"模板";this.approvalFormData.processTitle="".concat(s,"审批流程")}(o.explanation||o.description)&&(this.approvalFormData.description=o.explanation||o.description||"")}else{var l=this.displayTemplateName||"模板";this.approvalFormData.processTitle="".concat(l,"审批流程")}n&&n.length>0?(console.log("开始填充节点人员信息,节点数量:",n.length),n.forEach((function(e){var t=e.nodeName||e.node||"";if(console.log("处理节点:",t,e),t){var r=a.approvalWorkflowSteps.find((function(e){return e.name===t}));if(r){var n=e.assignees||[];if(console.log("节点 assignees:",n),Array.isArray(n)&&0!==n.length){var i=n.map((function(e){var t=e.userId||e.id||"";return{userId:t,username:e.username||e.name||"",userNumber:e.userNumber||e.account||e.userId||e.id||""}})).filter((function(e){return e.userId}));console.log("提取的人员信息:",i),i.length>0&&(r.handlers=i.map((function(e){return e.userId})).filter(Boolean),r.options=i.map((function(e){return{userId:e.userId,username:e.username||"",userNumber:e.userNumber||""}})).filter((function(e){return e.userId})),console.log("填充后的 step:",r.name,"handlers:",r.handlers,"options:",r.options))}else console.log("assignees 为空或不是数组,跳过")}else console.log("未找到对应的审批环节:",t)}else console.log("节点名称为空,跳过")}))):console.log("节点列表为空,无法填充人员信息"),o&&!Array.isArray(o)&&(this.resendFlowId=o.flowId||o.id||null,console.log("提取的 flowId:",this.resendFlowId)),this.isResendModeFilled=!0,this.originalProcessTitle=this.approvalFormData.processTitle||"",this.approvalWorkflowSteps.forEach((function(e){e.originalData={handlers:JSON.parse(JSON.stringify(e.handlers||[])),options:JSON.parse(JSON.stringify(e.options||[]))},e.isEditing=!1}))},handleApprovalCancel:function(){this.isApprovalMode=!1,this.isResendMode=!1,this.resendApprovalData=null,this.originalTableDataForApproval&&this.originalTableDataForApproval.length>0&&(this.tableData=JSON.parse(JSON.stringify(this.originalTableDataForApproval))),this.originalPaginationForApproval&&(this.$set(this.pagination,"currentPage",this.originalPaginationForApproval.currentPage),this.$set(this.pagination,"pageSize",this.originalPaginationForApproval.pageSize),this.$set(this.pagination,"total",this.originalPaginationForApproval.total)),this.originalTableDataForApproval=[],this.originalPaginationForApproval=null,this.approvalFormData={processTitle:"",description:""},this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"审核",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"会签",required:!1,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"批准",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null}],this.isResendModeFilled=!1,this.resendFlowId=null,this.isProcessTitleEditing=!1,this.originalProcessTitle="",this.handleSearch()},handleEditStep:function(e){var t=this.approvalWorkflowSteps[e];t&&(t.originalData={handlers:JSON.parse(JSON.stringify(t.handlers||[])),options:JSON.parse(JSON.stringify(t.options||[]))},t.isEditing=!0)},handleSaveStep:function(e){var t=this,r=this.approvalWorkflowSteps[e];if(r){var a=(r.handlers||[]).filter(Boolean);if(0!==a.length){var n=null;if(this.detail&&this.detail.flowId?n=this.detail.flowId:this.resendFlowId&&(n=this.resendFlowId),n){var i=yt(yt({},et.EDIT_APPROVAL_PROCESS),{},{params:{flowId:n,nodeName:r.name,userIds:a},disableSuccessMsg:!0});r.loading=!0,this.$request(i).asyncThen((function(){r.originalData={handlers:JSON.parse(JSON.stringify(r.handlers||[])),options:JSON.parse(JSON.stringify(r.options||[]))},r.isEditing=!1,t.$message({type:"success",message:"保存成功"})})).asyncErrorCatch((function(e){console.error("保存环节编辑失败:",e),t.$message({type:"error",message:(null===e||void 0===e?void 0:e.message)||"保存失败,请重试"})})).finally((function(){r.loading=!1}))}else this.$message({type:"error",message:"缺少流程ID,无法保存"})}else this.$message({type:"warning",message:"请至少选择一位处理人"})}},handleCancelEditStep:function(e){var t=this.approvalWorkflowSteps[e];t&&t.originalData&&(t.handlers=JSON.parse(JSON.stringify(t.originalData.handlers||[])),t.options=JSON.parse(JSON.stringify(t.originalData.options||[])),t.isEditing=!1)},continueApprovalProcess:function(){var e=this,t=this.resendFlowId;if(!t)return this.$message.error("缺少流程ID,无法继续审批"),this.approvalSubmitting=!1,Promise.reject(new Error("缺少流程ID"));var r=yt(yt({},et.CONTINUE_APPROVAL_PROCESS),{},{params:{flowId:t,userId:de()},disableSuccessMsg:!0});return this.approvalSubmitting=!0,new Promise((function(t,a){e.$request(r).asyncThen((function(r){console.log("审批提交成功"),e.$message({type:"success",message:"审批提交成功"}),e.isApprovalMode=!1,e.isResendModeFilled=!1,e.resendFlowId=null,e.approvalSubmitting=!1,e.originalTableDataForApproval=[],e.originalPaginationForApproval=null,e.handleBack(),t(r)})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message({type:"error",message:(null===t||void 0===t?void 0:t.message)||"审批提交失败,请重试"}),e.approvalSubmitting=!1,a(t)}))}))},checkApprovalDataChanged:function(){var e=(this.approvalFormData.processTitle||"").trim(),t=(this.originalProcessTitle||"").trim();if(e!==t)return!0;for(var r=0;r0)this.$message({type:"warning",message:'请为必填环节"校对、审核、批准"选择处理人'});else if(this.approvalFormData.processTitle=t,this.isResendModeFilled){var a=this.checkApprovalDataChanged();console.log("hasChanged",a),a?(this.approvalSubmitting=!0,this.saveApprovalChanges().then((function(){return e.continueApprovalProcess()})).catch((function(t){console.error("保存变更失败:",t),e.$message({type:"error",message:(null===t||void 0===t?void 0:t.message)||"保存变更失败,请重试"}),e.approvalSubmitting=!1}))):this.continueApprovalProcess()}else{var n=this.getDetailTemplateId();if(!n)return void this.$message({type:"error",message:"缺少模板ID,无法发起审批"});var i=(this.approvalFormData.processTitle||"").trim(),o=this.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),s={templateRowId:n,nodeList:o,processTitle:i,createBy:de(),userId:de()},l=yt(yt({},et.START_APPROVAL),{},{params:s,disableSuccessMsg:!0});this.approvalSubmitting=!0,this.$request(l).asyncThen((function(t){console.log("审批提交成功"),e.$message({type:"success",message:"审批提交成功"}),e.isApprovalMode=!1,e.approvalSubmitting=!1,e.originalTableDataForApproval=[],e.originalPaginationForApproval=null,e.handleBack()})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message({type:"error",message:"审批提交失败,请重试"})})).finally((function(){e.approvalSubmitting=!1}))}}else this.$message({type:"warning",message:"请填写流程主题"})},handleRemoteSearch:function(e,t){var r=this.approvalWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=null;n=yt(yt({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0}),this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userId&&l.set(e.userId,e)})),o.forEach((function(e){e.userId&&!l.has(e.userId)&&l.set(e.userId,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return e.userId&&r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return e.userId&&r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},handleMaintainParams:function(){var e=this;this.isMaintainMode=!this.isMaintainMode,this.isMaintainMode?(this.selectedRows=[],this.$set(this.pagination,"currentPage",1),this.loadAllData().then((function(){e.originalTableData=JSON.parse(JSON.stringify(e.tableData)),console.log("已进入维护参数模式")}))):(this.selectedRows=[],this.$refs.vxeTable&&this.$refs.vxeTable.clearSelection&&this.$refs.vxeTable.clearSelection(),this.tableData=JSON.parse(JSON.stringify(this.originalTableData)),this.originalTableData=[],this.$set(this.pagination,"currentPage",1),console.log("已退出维护参数模式"),this.loadData())},handleCancel:function(){var e=this;this.$confirm("确定要取消维护吗?未保存的修改将丢失。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.isMaintainMode=!1,e.loadData(),console.log("已取消维护")})).catch((function(){}))},handleBackFromMaintain:function(){var e=this;this.$confirm("确定要返回吗?未保存的修改将丢失。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectedRows=[],e.$refs.vxeTable&&e.$refs.vxeTable.clearSelection&&e.$refs.vxeTable.clearSelection(),e.originalTableData&&e.originalTableData.length>0&&(e.tableData=JSON.parse(JSON.stringify(e.originalTableData))),e.originalTableData=[],e.isMaintainMode=!1,console.log("已退出维护参数模式"),e.loadData()})).catch((function(){}))},handleReset:function(){var e=this;this.$confirm("确定要重置吗?所有未提交的修改将丢失。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.tableData=JSON.parse(JSON.stringify(e.originalTableData));var t=(e.pagination.currentPage-1)*e.pagination.pageSize;e.tableData=e.tableData.map((function(e,r){var a=yt({},e);return delete a.operation,delete a._rowClassName,yt(yt({},a),{},{number:t+r+1})})),e.$forceUpdate(),console.log("已重置为原始数据")})).catch((function(){}))},handleSubmit:function(){var e=this;this.$confirm("确定要提交修改吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.getDetailTemplateId();if(t){var r=e.tableData.map((function(e){return yt(yt({},e),{},{parameterId:e.id})})),a={templateRowId:t,createBy:de(),userId:de(),parameterForms:r};e.submitting=!0;var n=yt(yt({},et.EDIT_MODEL_PARAM),{},{params:a,disableSuccessMsg:!0});e.$request(n).asyncThen((function(t){e.submitting=!1,console.log("提交成功"),e.isMaintainMode=!1,e.originalTableData=[],e.submitting=!1;var r=t.data&&(t.data.templateId||t.data.templateRowId);if(e.setDetailTemplateId(r),e.internalTemplateVersion=t.data.version,e.templateVersion=t.data.version,console.log(e.templateId,t.data.templateRowId),e.versionList.some((function(e){return e.version===t.data.version}))){var a=e.versionList.find((function(e){return e.version===t.data.version}));a.status="DRAFT",a.rowId=r,a.id=t.data.templateId}else e.versionList.push({version:t.data.version,status:"DRAFT",rowId:r,id:t.data.templateId});e.loadData()})).asyncErrorCatch((function(t){e.submitting=!1,console.error("提交失败:",t)}))}else console.log("缺少模板ID,无法提交")})).catch((function(){e.submitting=!1}))},handleAddParam:function(){var e=this;this.paramModalMode="add",this.paramCurrentRow=null,this.paramCurrentRowIndex=-1,this.paramFormData={subsystemName:"",parameterType:"",partsName:"",parameterName:"",department:"",departmentName:"",departmentId:"",parameterSource:"",numberOrFormula:"",fillDepartment:"",remarks:"",isNumber:"数值"},this.paramModalVisible=!0,this.$nextTick((function(){e.$refs.paramForm&&e.$refs.paramForm.clearValidate()}))},handleRowEdit:function(e){var t=this;this.paramModalMode="edit",this.paramCurrentRow=e,this.paramCurrentRowIndex=this.tableData.findIndex((function(t){return t===e}));var r=this.findDepartmentIdByName(e.department||"");this.paramFormData={subsystemName:e.subsystemName||"",parameterType:e.parameterType||"",partsName:e.partsName||"",parameterName:e.parameterName||"",unit:e.unit||"",operation:"update",department:e.department||"",departmentName:e.department||"",departmentId:r||"",parameterSource:e.parameterSource||"",numberOrFormula:e.numberOrFormula||"",fillDepartment:e.fillDepartment||"",remarks:e.remarks||"",isNumber:this.normalizeParamIsNumberForForm(e.isNumber)},this.paramModalVisible=!0,this.$nextTick((function(){t.$refs.paramForm&&t.$refs.paramForm.clearValidate()}))},handleRowDelete:function(e,t){var r=this;this.$confirm("确定要删除该参数吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r.isMaintainMode&&r.markRowAsDeleted(e)})).catch((function(){}))},markRowAsDeleted:function(e){var t=this;if(!e)return!1;var r=this.tableData.findIndex((function(t){return t.rowId===e.rowId||t.id===e.id||e._localId&&t._localId===e._localId||t===e}));if(-1!==r){var a=this.tableData[r];if("delete"===a.operation)return!1;var n=yt(yt({},a),{},{operation:"delete",_rowClassName:"row-deleted"});return this.$set(this.tableData,r,n),this.selectedRows=this.selectedRows.filter((function(t){return!(t.rowId&&t.rowId===e.rowId||t.id&&t.id===e.id||e._localId&&t._localId&&t._localId===e._localId||t===e)})),this.$nextTick((function(){t.$refs.vxeTable&&t.$refs.vxeTable.toggleRowSelection&&t.$refs.vxeTable.toggleRowSelection(n,!1)})),console.log("已标记为删除"),!0}return!1},handleBatchDelete:function(){var e=this;if(this.selectedRows&&0!==this.selectedRows.length){var t=this.selectedRows.filter((function(e){return"delete"!==e.operation}));0!==t.length?this.$confirm("确定要删除选中的 ".concat(t.length," 个参数吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=0;t.forEach((function(t){e.markRowAsDeleted(t)&&r++})),e.selectedRows=[],e.$refs.vxeTable&&e.$refs.vxeTable.clearSelection&&e.$refs.vxeTable.clearSelection(),r>0&&e.$message({type:"success",message:"已标记 ".concat(r," 个参数为删除")})})).catch((function(){})):this.$message({type:"warning",message:"选中的参数中已包含已删除的项,请重新选择"})}else this.$message({type:"warning",message:"请先选择要删除的参数"})},handleBatchModifyDepartment:function(){var e=this;if(this.selectedRows&&0!==this.selectedRows.length){var t=this.selectedRows.filter((function(e){return"delete"!==e.operation}));0!==t.length?(this.batchModifyDepartmentMode=!0,this.departmentDialogVisible=!0,this.departmentSearchText="",this.selectedDepartmentNode=null,this.currentDepartmentNodeKey=null,this.$nextTick((function(){if(e.$refs.departmentTree)try{e.$refs.departmentTree.setCurrentKey(null)}catch(t){console.warn("清空树节点选中状态失败:",t)}}))):this.$message({type:"warning",message:"选中的参数中已包含已删除的项,请重新选择"})}else this.$message({type:"warning",message:"请先选择要修改部门的参数"})},handleConfirmBatchModifyDepartment:function(){var e=this;if(console.log("selectedDepartmentNode",this.selectedDepartmentNode),!this.selectedDepartmentNode&&this.$refs.departmentTree)try{var t=this.$refs.departmentTree.getCurrentKey();if(t){var r=this.findDepartmentNodeById(this.departmentTreeData,t);r&&(this.selectedDepartmentNode=r)}}catch(l){console.warn("获取当前选中节点失败:",l)}if(this.selectedDepartmentNode){var a=this.selectedRows.filter((function(e){return"delete"!==e.operation}));if(0===a.length)return this.$message({type:"warning",message:"选中的参数中已包含已删除的项,请重新选择"}),void this.handleDepartmentDialogClose();var n=this.getDepartmentPathName(this.selectedDepartmentNode.id),i=n||this.selectedDepartmentNode.name,o=this.selectedDepartmentNode.id,s=0;a.forEach((function(t){var r=e.tableData.findIndex((function(e){return e.rowId&&t.rowId&&e.rowId===t.rowId||e.id&&t.id&&e.id===t.id||t._localId&&e._localId&&e._localId===t._localId||e===t}));if(-1!==r){var a=e.tableData[r];if("delete"===a.operation)return;var n=yt(yt({},a),{},{department:i,departmentId:o,operation:a.operation||"update"});e.$set(e.tableData,r,n),s++}})),this.handleDepartmentDialogClose(),s>0?this.$message({type:"success",message:"已批量修改 ".concat(s," 个参数的部门")}):this.$message({type:"warning",message:"没有可修改的参数"})}else this.$message({type:"warning",message:"请选择一个部门"})},getRowClassName:function(e){var t=e.row;return!this.isMaintainMode||"delete"!==t.operation&&"row-deleted"!==t._rowClassName?"":"row-deleted"},getRowKey:function(e){return e.rowId||e.id||e._localId||null},checkRowMethod:function(e,t){return"delete"!==e.operation&&"row-deleted"!==e._rowClassName},handleParamFormSubmit:function(){var e=this;this.$refs.paramForm.validate((function(t){if(t&&e.isMaintainMode){if("add"===e.paramModalMode){var r=(e.pagination.currentPage-1)*e.pagination.pageSize,a={id:null,rowId:null,subsystemName:e.paramFormData.subsystemName,parameterType:e.paramFormData.parameterType,partsName:e.paramFormData.partsName,parameterName:e.paramFormData.parameterName,department:e.paramFormData.department,parameterSource:e.paramFormData.parameterSource,numberOrFormula:e.paramFormData.numberOrFormula,unit:e.paramFormData.unit,remarks:e.paramFormData.remarks,isNumber:e.paramFormData.isNumber,number:e.tableData.length>0?Math.max.apply(Math,wt(e.tableData.map((function(e){return e.number||0}))))+1:r+e.tableData.length+1,operation:"insert",_localId:e.nextLocalId++};e.tableData.push(a),e.$set(e.pagination,"total",e.tableData.length)}else{var n=e.tableData.findIndex((function(t){return e.paramCurrentRow&&t.rowId&&e.paramCurrentRow.rowId&&t.rowId===e.paramCurrentRow.rowId||e.paramCurrentRow&&t.id&&e.paramCurrentRow.id&&t.id===e.paramCurrentRow.id}));if(-1===n&&e.paramCurrentRow&&e.paramCurrentRow._localId&&(n=e.tableData.findIndex((function(t){return t._localId&&t._localId===e.paramCurrentRow._localId}))),-1===n&&e.paramCurrentRowIndex>-1&&(n=e.paramCurrentRowIndex),-1===n)return void console.warn("未找到需要更新的行");e.$set(e.tableData,n,yt(yt({},e.tableData[n]),{},{subsystemName:e.paramFormData.subsystemName,parameterType:e.paramFormData.parameterType,partsName:e.paramFormData.partsName,parameterName:e.paramFormData.parameterName,department:e.paramFormData.department,parameterSource:e.paramFormData.parameterSource,numberOrFormula:e.paramFormData.numberOrFormula,unit:e.paramFormData.unit,remarks:e.paramFormData.remarks,isNumber:e.paramFormData.isNumber,operation:"update"}))}e.paramModalVisible=!1,console.log("add"===e.paramModalMode?"已添加到表格":"已更新表格数据"),e.$message({type:"success",message:"保存成功"})}}))},handleParamModalClose:function(){this.paramFormData={subsystemName:"",parameterType:"",partsName:"",parameterName:"",department:"",departmentName:"",departmentId:"",parameterSource:"",numberOrFormula:"",fillDepartment:"",remarks:"",isNumber:"数值"},this.paramCurrentRow=null,this.paramCurrentRowIndex=-1,this.paramSubmitting=!1,this.selectedDepartmentNode=null,this.$refs.paramForm&&this.$refs.paramForm.clearValidate()},findDepartmentIdByName:function(e){var t=this;if(!e||!this.departmentList||0===this.departmentList.length)return"";var r=function e(r,a){var n,i=gt(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=t.getDepartmentPathName(o.id);if(s===a||o.name===a)return o.id;if(o.children&&o.children.length>0){var l=e(o.children,a);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null};return r(this.departmentList,e)||""},extractParameterId:function(e){return e&&(e.id||e.parameterId||e.parameterID||e.parameterid||e.parameterCode||e.code)||null},buildParamPayload:function(e){var t=this.internalTemplateVersion||this.templateVersion;return{templateRowId:e,version:t,subsystemName:this.paramFormData.subsystemName,parameterType:this.paramFormData.parameterType,partsName:this.paramFormData.partsName,parameterName:this.paramFormData.parameterName,parameterSource:this.paramFormData.parameterSource,numberOrFormula:this.paramFormData.numberOrFormula,department:this.paramFormData.department,fillDepartment:this.paramFormData.fillDepartment,remarks:this.paramFormData.remarks,isNumber:this.paramFormData.isNumber}},loadTemplateInfo:function(){this.getDetailTemplateId()},loadLatestVersion:function(){var e=this.getDetailTemplateId();e&&this.internalTemplateVersion,this.internalTemplateVersion},loadAllData:function(){var e=this,t=this.getDetailTemplateId();if(!t)return this.tableData=[],this.$set(this.pagination,"total",0),Promise.resolve();var r=this.internalTemplateVersion||this.templateVersion,a={templateRowId:t,version:r,pageNumber:1,pageSize:999999};this.searchPanelValue.parameterType&&(a.parameterType=this.searchPanelValue.parameterType),this.searchPanelValue.partsName&&(a.partsName=this.searchPanelValue.partsName),this.searchPanelValue.parameterName&&(a.parameterName=this.searchPanelValue.parameterName);var n=yt(yt({},et.GET_MODEL_DETAIL),{},{params:a,disableSuccessMsg:!0});return this.$request(n).asyncThen((function(t){var r=t&&t.data&&t.data.result||[],a=t&&t.data&&(t.data.count||t.data.total||t.data.totalCount)||0,n="number"===typeof a?a:parseInt(a,10)||0;e.tableData=r.map((function(e,t){return yt(yt({},e),{},{parameterType:e.parameterType||e.type||"",number:e.number||t+1})}));var i=t&&t.data&&(t.data.status||t.data.state)||"",o=r&&r.length>0&&(r[0].status||r[0].state)||"";e.currentStatus=i||o||"",e.$set(e.pagination,"total",n)})).asyncErrorCatch((function(t){console.error("查询失败:",t),e.tableData=[],e.$set(e.pagination,"total",0)}))},getApprovalSpet:function(){var e=this;if(this.detail&&this.detail.flowId){var t=this.getDetailTemplateId();if(t){var r=yt(yt({},et.GET_PPROVAL_ALL),{},{params:{flowId:this.detail.flowId,templateId:t},disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){console.log("审批流程数据:",t);var r=t.data||t;e.progressDetail={explanation:r.explanation||"",flowStatus:r.flowStatus||"",progressTitle:r.progressTitle||"",templateVersion:r.templateVersion||"",contentName:r.contentName||""},e.flowNodes=r.flowNodes||[]})).asyncErrorCatch((function(t){console.error("获取审批流程数据失败:",t),e.flowNodes=[],e.progressDetail={}}))}}},setStatusText:function(e){var t={PASS:"通过",REJECT:"拒绝",REFUSE:"驳回",APPROVE:"批准",APPROVING:"审批中",PENDING:"待处理",WAITING:"待处理",STAY:"待审批",INITIATE:"发起审批",RETURN:"退回"};return t[e]||e||"待处理"},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},getTimelineColor:function(e,t,r){return"PASS"===e||"APPROVE"===e?"#67C23A":"REJECT"===e||"REFUSE"===e?"#F56C6C":"APPROVING"===e||"PENDING"===e||"WAITING"===e?"#E6A23C":"STAY"===e?"#909399":"#409EFF"},getStatusClass:function(e){var t={PASS:"status-pass",APPROVE:"status-approve",REJECT:"status-reject",REFUSE:"status-reject",APPROVING:"status-approving",PENDING:"status-pending",WAITING:"status-pending",STAY:"status-default",INITIATE:"status-initiate",RETURN:"status-return"};return t[e]||"status-default"},getVersionName:function(e){return e.version||e.name||""},getVersionKey:function(e){return e.version||e.name||e.rowId||""},getDetailTemplateId:function(){return this.internalTemplateId||this.templateId||""},setDetailTemplateId:function(e){e&&(this.internalTemplateId=e,this.templateId=e)},getChangeId:function(){return this.internalChangeId||this.changeId||this.detail&&this.detail.changeId||""},handleVersionChange:function(e){this.internalTemplateVersion=e;var t=this.versionList.find((function(t){return t.version===e}));if(t){this.internalChangeId=t.id||"";var r=t.id||t.rowId||"";this.setDetailTemplateId(r)}else this.internalChangeId="";this.$set(this.pagination,"currentPage",1),this.loadData(),this.updateCurrentStatus()},updateCurrentStatus:function(){var e=this;if(this.detail&&this.detail.status)this.currentStatus=this.detail.status;else{var t=this.internalTemplateVersion||this.templateVersion;if(t&&this.versionList&&this.versionList.length>0){var r=this.versionList.find((function(r){var a=e.getVersionName(r);return a===t}));r&&r.status?this.currentStatus=r.status:this.currentStatus=this.detail&&this.detail.status||""}else this.currentStatus=this.detail&&this.detail.status||""}},loadData:function(){var e=this,t=this.getDetailTemplateId();if(!t)return this.tableData=[],void this.$set(this.pagination,"total",0);var r=this.internalTemplateVersion||this.templateVersion,a={templateRowId:t,version:r,pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize};this.searchPanelValue.parameterType&&(a.parameterType=this.searchPanelValue.parameterType),this.searchPanelValue.partsName&&(a.partsName=this.searchPanelValue.partsName),this.searchPanelValue.parameterName&&(a.parameterName=this.searchPanelValue.parameterName);var n=yt(yt({},et.GET_MODEL_DETAIL),{},{params:a,disableSuccessMsg:!0});this.$request(n).asyncThen((function(t){console.log("GET_MODEL_DETAIL 接口返回数据:",t);var r=t&&t.data&&t.data.result||[],a=t&&t.data&&(t.data.count||t.data.total||t.data.totalCount)||0,n="number"===typeof a?a:parseInt(a,10)||0;console.log("获取到的总数:",a,"转换后的数字:",n);var i=(e.pagination.currentPage-1)*e.pagination.pageSize;e.tableData=r.map((function(e,t){return yt(yt({},e),{},{parameterType:e.parameterType||e.type||"",number:e.number||i+t+1})}));var o=t&&t.data&&(t.data.status||t.data.state)||"",s=r&&r.length>0&&(r[0].status||r[0].state)||"";e.currentStatus=o||s||"",console.log("从 GET_MODEL_DETAIL 接口获取到的状态:",e.currentStatus),e.$set(e.pagination,"total",n),console.log("设置后的 pagination.total:",e.pagination.total)})).asyncErrorCatch((function(t){console.error("查询失败:",t),e.tableData=[],e.$set(e.pagination,"total",0)}))}}},At=Ot,Mt=(r("4d43"),d(At,ht,ft,!1,null,null,null)),Pt=Mt.exports;function kt(e){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(e)}function Nt(e){return Rt(e)||Lt(e)||jt(e)||Et()}function Et(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Lt(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Rt(e){if(Array.isArray(e))return Vt(e)}function Ft(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=jt(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function jt(e,t){if(e){if("string"===typeof e)return Vt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vt(e,t):void 0}}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"查看";try{var a=localStorage.getItem("user_self_role");if(!a)return!1;var n=JSON.parse(a);if(!Array.isArray(n))return!1;var i=n.filter((function(a){var n=a.menuPath&&e&&(a.menuPath.includes(e)||e.includes(a.menuPath));return!!n&&((!t||a.subsystem===t)&&a.parameterPer===r)}));return i.length>0}catch(o){return console.error("检查权限失败:",o),!1}},hasViewPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this.checkPermission("模板管理",e,"查看"):this.checkPermission("模板管理",null,"查看")},hasEditPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this.checkPermission("模板管理",e,"编辑"):this.checkPermission("模板管理",null,"编辑")},getStatusType:function(e){if("number"===typeof e)return e;if("string"===typeof e){if("已发布"===e||"COMPLETE"===e)return"已完成";if("审核中"===e||"REVIEWING"===e)return"审核中";if("校对中"===e||"PROOFREADING"===e)return"校对中";if("已批准"===e||"APPROVING"===e)return"已批准";if("草稿"===e||"DRAFT"===e)return"草稿"}return!0===e?"已发布":"草稿"},pageSizeChange:function(e){this.pagination.pageSize=e,this.loadData()},rowClickEvent:function(e){console.warn(e)},handleRowDetail:function(e){this.currentTemplateId=e.rowId,this.currentTemplateRowId=e.id,this.currentTemplateName=e.templateName,e.returnNum>0?this.fromTodo=!0:this.fromTodo=!1,this.currentVersion=e.version,this.currentDetail={status:e.status||""},this.loadVersionList(e),0===this.templateManagementPermissions.length&&this.loadUserSelfRole(),this.showModelDetail=!0},loadVersionList:function(e){var t=this,r=e&&(e.rowId||e.templateRowId||e.id);if(r){var a=Bt(Bt({},et.CHECK_MODEL_VERISON),{},{params:{templateRowId:r},disableSuccessMsg:!0});this.$request(a,!1).asyncThen((function(e){var r=e&&e.data&&(e.data.result||e.data.list||e.data)||[];t.versionList=Array.isArray(r)?r:[]})).asyncErrorCatch((function(e){console.error("获取版本列表失败:",e),t.versionList=[]}))}else this.versionList=[]},handleBackFromDetail:function(){console.log("handleBackFromDetail called"),this.showModelDetail=!1,this.currentTemplateId="",this.currentTemplateName="",this.currentVersion="",this.versionList=[],this.currentDetail={},this.loadData()},handleRowVersion:function(e){this.$refs.versionModal.showModal(e)},handleDownloadImportTemplate:function(){var e=this,t=et.DOWNLODE_ALL_MODEL||{},r=t.url,a=t.method,n=void 0===a?"get":a,i=t.headers,o=void 0===i?{}:i,s={url:r,method:n,params:{},responseType:"blob",headers:o};s.url?("get"===(s.method||"").toLowerCase()&&(s.data=s.params,delete s.params),this.$axios(s).then((function(t){var r=t.data;if(r){var a=t.headers&&(t.headers["content-type"]||t.headers["Content-Type"]);if(a&&a.includes("application/json"))try{var n=new FileReader;n.onload=function(){console.log("下载失败: ".concat(n.result))},n.readAsText(r)}catch(d){console.error("解析下载失败响应异常:",d)}else{var i=t.headers&&(t.headers["content-disposition"]||t.headers["Content-Disposition"]),o="导入模板.xlsx";if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(d){o=l}}var c=window.URL.createObjectURL(r),u=document.createElement("a");u.href=c,u.download=o,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c),e.$message({type:"success",message:"下载成功"}),console.log("下载开始,请查看浏览器下载列表")}}else console.log("下载失败,文件内容为空")})).catch((function(t){console.error("下载失败:",t),e.$message.error("下载失败,请稍后重试")}))):console.log("未配置下载地址")},handleVersionClick:function(e){console.log(e,"data");var t=e.version,r=e.templateId,a=e.template,n=e.versionList,i=e.changeId,o=e.returnNum;this.currentTemplateRowId=i,this.currentTemplateId=r,this.currentTemplateName=a.templateName||"",this.fromTodo=o>0||!1,this.currentVersion=t.name||t.version||"",this.currentDetail={status:t.status||a.status||""},n&&n.length>0&&(this.versionList=n),this.showModelDetail=!0},handleRowDownload:function(e){var t=this,r=e.rowId;if(r){if(this.downloadingRowId!==r){var a=et.DOWNLODE_MODEL||{},n=a.url,i=a.method,o=void 0===i?"get":i,s=a.headers,l=void 0===s?{}:s,c={url:n,method:o,params:{templateRowId:r,templateEmpty:!1},responseType:"blob",headers:l};if(c.url){"post"===(c.method||"").toLowerCase()&&(c.data=c.params,delete c.params);var u=e.templateName?"".concat(e.templateName).concat(e.version?" ".concat(e.version):"",".xlsx"):"文件下载.xlsx";this.downloadingRowId=r,this.$axios(c).then((function(e){var r=e.data;if(r){var a=e.headers&&(e.headers["content-type"]||e.headers["Content-Type"]);if(a&&a.includes("application/json"))try{var n=new FileReader;n.onload=function(){console.log("下载失败: ".concat(n.result))},n.readAsText(r)}catch(p){console.error("解析下载失败响应异常:",p)}else{var i=e.headers&&(e.headers["content-disposition"]||e.headers["Content-Disposition"]),o=u;if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(p){o=l}}var c=window.URL.createObjectURL(r),d=document.createElement("a");d.href=c,d.download=o,document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(c),t.$message({type:"success",message:"下载成功"}),console.log("下载开始,请查看浏览器下载列表")}}else console.log("下载失败,文件内容为空")})).catch((function(e){console.error("下载失败:",e),console.log("下载失败,请稍后重试")})).finally((function(){t.downloadingRowId=""}))}else console.log("未配置下载地址")}}else console.log("未找到模板ID,无法下载")},handleRowEdit:function(e){this.$refs.editModal.showModal(e,"edit",e.status)},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},handleAddTemplate:function(){this.$refs.editModal.showModal(null,"add")},handleImportTemplate:function(){this.importing||(this.selectedImportFile=null,this.importFileList=[],this.importDialogVisible=!0)},handleImportFileChange:function(e,t){var r=[".xls",".xlsx",".csv"],a=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv","application/vnd.ms-excel.sheet.macroEnabled.12"];if(e&&e.raw){var n=e.raw,i=n.name||"",o=i.substring(i.lastIndexOf(".")).toLowerCase(),s=n.type||"",l=r.some((function(e){return o===e})),c=!s||a.some((function(e){return s.includes(e)}));if(!l&&!c)return this.$message.error("文件类型不支持,仅支持 ".concat(r.join("、")," 格式的文件")),this.selectedImportFile=null,this.importFileList=[],!1;this.selectedImportFile=n,this.importFileList=t.slice(-1)}else this.selectedImportFile=null,this.importFileList=t.slice(-1)},handleImportFileRemove:function(){this.selectedImportFile=null,this.importFileList=[]},handleImportDialogClose:function(){this.importing||(this.importDialogVisible=!1,this.selectedImportFile=null,this.importFileList=[])},textDemo:function(){var e=Bt(Bt({},et.TEXT_DEMO),{},{params:{pageNumber:1,pageSize:10},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){console.log(e,"resp")})).asyncErrorCatch((function(e){console.error("测试接口失败:",e)}))},handleImportConfirm:function(){var e=this;if(!this.importing&&this.selectedImportFile){var t=this.selectedImportFile,r=[".xls",".xlsx",".csv"],a=t.name||"",n=a.substring(a.lastIndexOf(".")).toLowerCase();if(!r.includes(n))return this.$message.error("文件类型不支持,仅支持 ".concat(r.join("、")," 格式的文件")),this.selectedImportFile=null,void(this.importFileList=[]);var i=new FormData;i.append("file",t),i.append("userId",de()),i.append("createBy",de());var o=Bt(Bt({},et.IMPORT_MODEL),{},{params:i,disableSuccessMsg:!1});this.importing=!0;var s=this.$loading({lock:!0,text:"正在导入模板,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$upload(o,null,!1).then((function(t){console.log(t,"resp"),s.close(),e.importing=!1,setTimeout((function(){e.loadData()}),1e3)})).catch((function(t){if(console.log(t,"err"),s.close(),e.importing=!1,e.errorList="",t&&t.data&&t.data.errors&&Array.isArray(t.data.errors)){var r,a=Ft(t.data.errors);try{for(a.s();!(r=a.n()).done;){var n=r.value;e.errorList+=n+"\n"}}catch(t){a.e(t)}finally{a.f()}}else e.errorList=t.message||"导入失败,请稍后重试";e.errorDialogVisible=!0,setTimeout((function(){e.loadData()}),1e3)})).finally((function(){s&&s.close(),e.importing=!1})),this.importDialogVisible=!1}else this.selectedImportFile||this.$message.warning("请先选择要导入的文件")},handleTemplateSubmit:function(e){var t=this,r=e.mode,a=e.formData,n=e.row;if(console.log(a,"formData"),"add"===r){var i=Bt(Bt({},et.ADD_MODEL),{},{params:a,disableSuccessMsg:!0});this.$request(i).asyncThen((function(e){t.loadData(),t.$message({type:"success",message:"添加成功"})})).asyncErrorCatch((function(e){console.error("添加失败:",e)}))}else{var o=Bt(Bt({},et.EDIT_MODEL),{},{params:Bt(Bt({},a),{},{templateRowId:n.rowId,orderNum:n.orderNum||""})});this.$request(o).asyncThen((function(e){t.loadData(),t.$message({type:"success",message:"修改成功"})})).asyncErrorCatch((function(e){console.error("修改失败:",e)}))}},resetSearch:function(){Object.assign(this.searchPanelValue,Wt()),this.handleSearch()},handleSearch:function(){this.pagination.currentPage=1,this.loadData()},handleRefresh:function(){this.pagination.currentPage=1,this.handleSearch()},loadData:function(){var e=this,t=Bt(Bt({},et.GET_MODEL_LIST),{},{params:{pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize,templateName:this.searchPanelValue.templateName},disableSuccessMsg:!0});this.$request(t,!1).asyncThen((function(t){e.tableData=t.data.result,console.log(t.data.count,"resp.data.count"),e.pagination.total=t.data.count})).asyncErrorCatch((function(e){console.error("查询失败:",e)}))},filterTemplateOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim();this.filteredTemplateOptions=this.templateOptions.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else this.filteredTemplateOptions=this.templateOptions},loadTemplateOptions:function(){var e=this;this.templateSelectLoading=!0;var t=Bt(Bt({},et.GET_MODEL_LIST),{},{params:{pageNumber:1,pageSize:999},disableSuccessMsg:!0});this.$request(t,!1).asyncThen((function(t){var r=t.data.result||[],a=new Set,n=r.map((function(e){return e.templateName||e.po_name||""})).filter((function(e){return!(!e||a.has(e))&&(a.add(e),!0)})).map((function(e){return{label:e,value:e}}));e.templateOptions=n,e.filteredTemplateOptions=n,e.templateSelectLoading=!1})).asyncErrorCatch((function(t){console.error("加载模板列表失败:",t),e.templateOptions=[],e.filteredTemplateOptions=[],e.templateSelectLoading=!1}))},generateUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)}))},handleShowOrderDialog:function(){var e=this,t=Bt(Bt({},et.GET_MODEL_LIST),{},{params:{pageNumber:1,pageSize:999},disableSuccessMsg:!0});this.$request(t,!1).asyncThen((function(t){var r=t.data.result||[];e.orderList=r.map((function(e,t){return{id:e.id||e.row_id||"temp_".concat(t,"_").concat(Date.now()),templateName:e.templateName||e.po_name,orderNum:e.orderNum||e.order_num||t+1}})),e.orderDialogVisible=!0,e.$nextTick((function(){e.initDragSort()}))})).asyncErrorCatch((function(t){console.error("加载模板列表失败:",t),e.$message.error("加载模板列表失败")}))},handleOrderDialogClose:function(){this.orderDialogVisible=!1,this.orderList=[]},initDragSort:function(){var e=this,t=document.querySelector(".order-table .el-table__body-wrapper tbody");if(t){var r=t.querySelectorAll("tr");r.forEach((function(e){e.draggable=!0,e.style.cursor="move"})),this.dragSortHandler&&(t.removeEventListener("dragstart",this.dragSortHandler.dragstart),t.removeEventListener("dragend",this.dragSortHandler.dragend),t.removeEventListener("dragover",this.dragSortHandler.dragover),t.removeEventListener("drop",this.dragSortHandler.drop));var a=null,n=function(e){var r=e.target.closest("tr");if(r){var n=Array.from(t.querySelectorAll("tr"));a=n.indexOf(r),r.style.opacity="0.5",e.dataTransfer.effectAllowed="move"}},i=function(e){var t=e.target.closest("tr");t&&(t.style.opacity="1"),a=null},o=function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},s=function(r){r.preventDefault(),r.stopPropagation();var n=r.target.closest("tr");if(n&&null!==a){var i=Array.from(t.querySelectorAll("tr")),o=i.indexOf(n);if(a!==o){var s=Nt(e.orderList),l=s[a];s.splice(a,1),s.splice(o,0,l),e.orderList=s,e.$nextTick((function(){e.initDragSort()}))}}};t.addEventListener("dragstart",n),t.addEventListener("dragend",i),t.addEventListener("dragover",o),t.addEventListener("drop",s),this.dragSortHandler={dragstart:n,dragend:i,dragover:o,drop:s}}},handleUpdateOrder:function(){var e=this;this.updatingOrder=!0;var t=this.orderList.map((function(e,t){return{id:e.id,orderNum:t+1}})),r=Bt(Bt({},et.UPDATE_TEMPLATE_ORDER),{},{params:{items:t}});this.$request(r).asyncThen((function(t){e.$message.success("排序更新成功"),e.handleOrderDialogClose(),e.loadData()})).asyncErrorCatch((function(t){console.error("更新排序失败:",t),e.$message.error("更新排序失败")})).finally((function(){e.updatingOrder=!1}))}}},qt=Ht,Yt=(r("615f"),d(qt,Ee,Le,!1,null,null,null)),Xt=Yt.exports,Kt=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showEngineDetail?e._e():[r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 玉柴发动机数据 ")]),r("div",{staticClass:"operation"},[e.hasEngineDataEditPermission()?r("el-button",{attrs:{type:"primary"},on:{click:e.handleDownloadTemplate}},[e._v("下载模板")]):e._e(),e.hasEngineDataEditPermission()?r("el-button",{staticClass:"import-button",on:{click:e.handleImport}},[e._v(" 导入机型 ")]):e._e(),e.hasEngineDataEditPermission()?r("el-button",{staticClass:"add-button",attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v(" 添加机型 ")]):e._e()],1)]),r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"searched-fields"},[r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("产品型号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.modelName,callback:function(t){e.$set(e.searchPanelValue,"modelName",t)},expression:"searchPanelValue.modelName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("状态代号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.productNumber,callback:function(t){e.$set(e.searchPanelValue,"productNumber",t)},expression:"searchPanelValue.productNumber"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("板块")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.plate,callback:function(t){e.$set(e.searchPanelValue,"plate",t)},expression:"searchPanelValue.plate"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("平台")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.platform,callback:function(t){e.$set(e.searchPanelValue,"platform",t)},expression:"searchPanelValue.platform"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("系列")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.series,callback:function(t){e.$set(e.searchPanelValue,"series",t)},expression:"searchPanelValue.series"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("细分市场")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.marketSegment,callback:function(t){e.$set(e.searchPanelValue,"marketSegment",t)},expression:"searchPanelValue.marketSegment"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("项目名称")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectName,callback:function(t){e.$set(e.searchPanelValue,"projectName",t)},expression:"searchPanelValue.projectName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("项目编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectNumber,callback:function(t){e.$set(e.searchPanelValue,"projectNumber",t)},expression:"searchPanelValue.projectNumber"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("任务分发状态")]),r("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchPanelValue.distributeStatus,callback:function(t){e.$set(e.searchPanelValue,"distributeStatus",t)},expression:"searchPanelValue.distributeStatus"}},[r("el-option",{attrs:{label:"已分发",value:"已分发"}}),r("el-option",{attrs:{label:"部分分发",value:"部分分发"}}),r("el-option",{attrs:{label:"未分发",value:"未分发"}}),r("el-option",{attrs:{label:"已完成",value:"已完成"}})],1)],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customHeadSlot,fn:function(n){var i=n.column;return[t.customHeadSlot?r("div",{key:a},[e._v(" "+e._s(i)+" "+e._s(t)+" ")]):e._e()]}}})),e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["options"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowDetail(i)}}},[e._v(" 查看 ")]),"未分发"===i.distributeStatus&&e.hasEngineDataEditPermission()?r("span",{staticClass:"link-separator"}):e._e(),"未分发"===i.distributeStatus&&e.hasEngineDataEditPermission()?r("a",{staticClass:"el-link el-link--primary",staticStyle:{"margin-left":"5px"},attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowEdit(i)}}},[e._v(" 编辑 ")]):e._e(),"未分发"!==i.distributeStatus&&"部分分发"!==i.distributeStatus||!e.hasEngineDataEditPermission()?e._e():r("span",{staticClass:"link-separator"}),"未分发"!==i.distributeStatus&&"部分分发"!==i.distributeStatus||!e.hasEngineDataEditPermission()?e._e():r("a",{staticClass:"el-link el-link--primary",staticStyle:{"margin-left":"5px"},attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowDispatch(i,o)}}},[e._v(" 分发 ")]),"未分发"===i.distributeStatus&&e.hasEngineDataEditPermission()&&1===i.versionNumber?r("span",{staticClass:"link-separator"}):e._e(),"未分发"===i.distributeStatus&&e.hasEngineDataEditPermission()&&1===i.versionNumber?r("a",{staticClass:"el-link el-link--primary",staticStyle:{"margin-left":"5px"},attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowDelete(i,o)}}},[e._v(" 删除 ")]):e._e()]):e._e(),"distributeStatus"===t.customSlot?r("div",{key:a+""+o},["已分发"===i[t.prop]?r("span",{staticClass:"status-tag status-done"},[e._v(" 已分发 ")]):"部分分发"===i[t.prop]?r("span",{staticClass:"status-tag status-partial"},[e._v(" 部分分发 ")]):"未分发"===i[t.prop]?r("span",{staticClass:"status-tag status-pending"},[e._v(" 未分发 ")]):"已完成"===i[t.prop]?r("span",{staticClass:"status-tag status-done"},[e._v(" 已完成 ")]):e._e()]):e._e(),"versionNumber"===t.customSlot?r("div",{key:a+""+o},[e._v(" V"+e._s(i[t.prop]||"")+" ")]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],e.showEngineDetail?r("engine-detail",{staticClass:"engine-detail-wrapper",attrs:{model:e.currentModel,"engine-model-i-d":e.currentEngineModelID,"is-dispatch-mode":e.isDispatchMode,"dispatch-type":e.dispatchType,detail:e.currentEngineDetail},on:{back:e.handleBackFromDetail}}):e._e(),r("add-engine-model-modal",{ref:"addEngineModelModal",on:{success:e.handleAddSuccess}}),r("el-dialog",{attrs:{title:"导入机型",visible:e.importDialogVisible,width:"400px","append-to-body":""},on:{"update:visible":function(t){e.importDialogVisible=t},close:e.handleImportDialogClose}},[r("el-upload",{staticClass:"import-uploader",attrs:{drag:"","auto-upload":!1,limit:1,accept:".xls,.xlsx","file-list":e.importFileList,"on-change":e.handleImportFileChange,"on-remove":e.handleImportFileRemove}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[e._v(" 将文件拖到此处,或"),r("em",[e._v("点击上传")])]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 仅支持Excel文件(.xlsx 或 .xls) ")])]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleImportDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.importing},on:{click:e.handleImportConfirm}},[e._v(" 开始导入 ")])],1)],1)],2)},Zt=[],Jt=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"engine-detail-page custom-page"},[r("div",{staticClass:"page-header"},[r("div",{staticClass:"header-left"},[r("el-button",{staticClass:"back-button",attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:function(t){return t.stopPropagation(),e.handleBack.apply(null,arguments)}}},[e._v(" 返回 ")]),r("div",{staticClass:"header-item"},[r("span",{staticClass:"label"},[e._v("版本:")]),r("el-select",{staticStyle:{width:"120px"},attrs:{size:"small",disabled:!e.canSwitchVersion||e.isEditMode||e.isEditDeptMode||e.isTreeAndContentLoading},on:{change:e.onVersionChange},model:{value:e.currentVersionId,callback:function(t){e.currentVersionId=t},expression:"currentVersionId"}},e._l(e.versions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e.isApprovalMode||e.hideOperations?e._e():r("div",{staticClass:"operation"},[e.isDispatchMode?["update_param"!==e.dispatchType?r("el-button",{attrs:{size:"small"},on:{click:e.handleBatchModifyDept}},[e._v(" 批量修改部门 ")]):e._e(),e.shouldShowRejectButton?r("el-button",{attrs:{size:"small",loading:e.rejecting},on:{click:e.handleReject}},[e._v("退回")]):e._e(),r("el-button",{attrs:{size:"small"},on:{click:e.handleBatchModifyResponsible}},[e._v(" "+e._s("update_param"===e.dispatchType?"批量修改填写人":"批量修改责任人")+" ")]),e.isCompetitiveEngineEntry?r("el-button",{attrs:{size:"small"},on:{click:e.handleReplaceAllPerson}},[e._v(" "+e._s("update_param"===e.dispatchType?"修改全部填写人":"修改全部责任人")+" ")]):e._e(),r("el-button",{attrs:{type:"primary",size:"small",loading:e.dispatchLoading},on:{click:e.handleConfirmDispatch}},[e._v("确认分发")])]:[e.isEditDeptMode||!e.hasAnyEditPermission()||!e.detail||"已完成"!==e.detail.distributeStatus&&"未分发"!==e.detail.distributeStatus?e._e():r("el-button",{attrs:{size:"small"},on:{click:e.handleSyncVersion}},[e._v(" 同步参数版本 ")]),e.isEditDeptMode||!e.hasAnyEditPermission()||!e.detail||"已完成"!==e.detail.distributeStatus&&"未分发"!==e.detail.distributeStatus?e._e():r("el-button",{attrs:{size:"small"},on:{click:e.handleEditDept}},[e._v(" 编辑部门 ")]),e.isEditMode||e.isEditDeptMode||e.isJustCheckMode?e._e():r("el-button",{staticStyle:{"margin-left":"12px"},attrs:{size:"small"},on:{click:e.handleExportTemplate}},[e._v("下载导入模板")]),e.isEditMode||e.isEditDeptMode||e.isJustCheckMode?e._e():r("el-button",{attrs:{size:"small",disabled:e.importing,loading:e.importing},on:{click:e.handleImport}},[e._v("导入")]),r("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{type:"file",accept:".xlsx,.xls"},on:{change:e.handleFileChange}}),e.isEditMode||e.isEditDeptMode||e.isJustCheckMode||!e.canShowTodoHeaderOperations?e._e():[e.hasAnyEditPermission()?r("el-button",{attrs:{size:"small"},on:{click:e.handleEdit}},[e._v("编辑")]):e._e(),e.shouldShowRejectButton&&!e.shouldShowResendButton?r("el-button",{attrs:{size:"small",loading:e.rejecting},on:{click:e.handleReject}},[e._v("退回")]):e._e(),e.shouldShowResendButton?r("el-button",{attrs:{size:"small",loading:e.resending},on:{click:e.handleResend}},[e._v(" 直送 ")]):e._e(),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleInitiateApproval}},[e._v(" "+e._s(e.shouldShowResendButton?"发起":"发起审批")+" ")])],e.isEditMode||e.isEditDeptMode||!e.detail||"已完成"!==e.detail.distributeStatus?e.isEditMode?[r("el-button",{attrs:{size:"small"},on:{click:e.handleSaveEdit}},[e._v("保存编辑")]),r("el-button",{attrs:{size:"small"},on:{click:e.handleCancelEdit}},[e._v("取消")])]:e.isEditDeptMode?[r("el-button",{attrs:{size:"small"},on:{click:e.handleBatchModifyDept}},[e._v("批量修改")]),r("el-button",{attrs:{size:"small"},on:{click:e.handleSaveDeptEdit}},[e._v("保存编辑")]),r("el-button",{attrs:{size:"small"},on:{click:e.handleCancelDeptEdit}},[e._v("取消")])]:e._e():[e.hasSavedInCheckMode?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleInitiateApproval}},[e._v("发起审批")]):e._e()]]],2)]),e.isApprovalMode?e._e():r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isTreeAndContentLoading,expression:"isTreeAndContentLoading"}],staticClass:"detail-body"},[r("div",{staticClass:"left-tree-panel"},[r("div",{staticClass:"tree-search-header"},[r("el-radio-group",{staticClass:"search-mode-switch",attrs:{size:"mini"},model:{value:e.treeSearchMode,callback:function(t){e.treeSearchMode=t},expression:"treeSearchMode"}},[r("el-radio-button",{attrs:{label:"subsystem"}},[e._v("子系统")]),r("el-radio-button",{attrs:{label:"parts"}},[e._v("零部件名称")])],1)],1),r("el-input",{staticClass:"tree-search",attrs:{size:"small",placeholder:"subsystem"===e.treeSearchMode?"请输入子系统名称":"请输入零部件名称",clearable:""},model:{value:e.treeFilterText,callback:function(t){e.treeFilterText=t},expression:"treeFilterText"}}),r("el-tree",{ref:"paramTree",attrs:{data:e.treeData,"node-key":"id","show-checkbox":"","checked-keys":e.checkedKeys,"default-expanded-keys":e.defaultExpandedKeys,"expanded-keys":e.expandedKeys,props:{children:"children",label:"label"},"filter-node-method":e.filterTreeNode,draggable:!0,"allow-drop":e.allowDrop,"allow-drag":e.allowDrag},on:{check:e.handleTreeCheck,"node-drop":e.handleNodeDrop,"node-expand":e.handleNodeExpand,"node-collapse":e.handleNodeCollapse},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return r("span",{staticClass:"custom-tree-node"},[r("span",[e._v(e._s(a.label))]),a.tip?r("span",{staticClass:"red-tip"},[e._v(e._s(a.tip))]):e._e()])}}],null,!1,2736833556)})],1),r("div",{staticClass:"right-content"},[e._l(e.wholeEngineParamsData,(function(t,a){return[e.isWholeEngineParamsSelected?r("div",{key:a,staticClass:"section"},[r("div",{staticClass:"section-title",staticStyle:{cursor:"pointer"},on:{click:function(t){e.detailInfoCollapsed=!e.detailInfoCollapsed}}},[r("span",[e._v(e._s(a))]),r("i",{class:e.detailInfoCollapsed?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"margin-left":"8px"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.detailInfoCollapsed,expression:"!detailInfoCollapsed"}],staticClass:"grid whole-engine-grid"},[r("div",{staticClass:"grid-header whole-engine-header",class:{"without-parameter-source":e.isCompetitiveEngineEntry}},[r("div",{staticClass:"cell header-cell"},[e._v("参数名称")]),r("div",{staticClass:"cell header-cell"},[e._v("单位")]),r("div",{staticClass:"cell header-cell"},[e._v("参数值")]),e.isCompetitiveEngineEntry?e._e():r("div",{staticClass:"cell header-cell"},[e._v("参数计划来源")])]),e._l(t,(function(t,n){return r("div",{key:a+"-"+n,staticClass:"grid-row whole-engine-row",class:{"without-parameter-source":e.isCompetitiveEngineEntry}},[r("div",{staticClass:"cell"},[e._v(e._s(t.parameterName))]),r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.unit||"-"))])]),r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.parameterValue||"/"))])]),e.isCompetitiveEngineEntry?e._e():r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.parameterSource||"/"))])])])}))],2)]):e._e()]})),e.isWholeEngineParamsSelected?e._e():r("div",{staticClass:"params-control",staticStyle:{"margin-bottom":"10px","text-align":"right"}},[r("el-checkbox",{model:{value:e.showAllParams,callback:function(t){e.showAllParams=t},expression:"showAllParams"}},[e._v("全部显示(不分页)")])],1),e._l(e.display,(function(t,a){return[e.shouldShowSection(a)?r("div",{key:a,staticClass:"section"},[r("div",{staticClass:"section-title"},[e._v(e._s(e.formatSectionTitle(a,t)))]),r("div",{staticClass:"grid"},[r("div",{staticClass:"grid-header",class:{"edit-mode":e.isEditMode&&!e.isDispatchMode,"dispatch-mode":e.isDispatchMode&&"update_param"!==e.dispatchType,"dispatch-filler-mode":e.isDispatchMode&&"update_param"===e.dispatchType,"without-parameter-source":e.isCompetitiveEngineEntry}},[r("div",{staticClass:"cell header-cell"},[e._v("参数名称")]),r("div",{staticClass:"cell header-cell"},[e._v("单位")]),r("div",{staticClass:"cell header-cell"},[e._v("参数值")]),e.isCompetitiveEngineEntry?e._e():r("div",{staticClass:"cell header-cell"},[e._v("参数计划来源")]),!e.isEditMode||e.isDispatchMode?r("div",{staticClass:"cell header-cell"},[e._v("填写部门")]):e._e(),e.isDispatchMode&&"update_param"!==e.dispatchType?r("div",{staticClass:"cell header-cell"},[e._v("分发状态")]):e._e(),e.isDispatchMode&&"update_param"===e.dispatchType?r("div",{staticClass:"cell header-cell"},[e._v("分发状态")]):e._e(),!e.isEditMode||e.isDispatchMode?r("div",{staticClass:"cell header-cell"},[e._v(" "+e._s(e.isDispatchMode&&"update_param"===e.dispatchType?"填写人":e.isDispatchMode?"责任人":"填写人")+" ")]):e._e()]),e._l(t,(function(t,n){return r("div",{key:a+"-"+n,staticClass:"grid-row",class:{"edit-mode":e.isEditMode&&!e.isDispatchMode,"dispatch-mode":e.isDispatchMode&&"update_param"!==e.dispatchType,"dispatch-filler-mode":e.isDispatchMode&&"update_param"===e.dispatchType,"without-parameter-source":e.isCompetitiveEngineEntry}},[r("div",{staticClass:"cell"},[e._v(e._s(t.parameterName))]),r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.unit||"-"))])]),r("div",{staticClass:"cell"},[e.isEditMode&&!e.isDispatchMode?r("el-input",{staticClass:"param-input",attrs:{size:"small",placeholder:"请输入",disabled:!e.hasParameterEditPermission(t.parameterName,t.subsystemName,t.partsName)},model:{value:t.parameterValue,callback:function(r){e.$set(t,"parameterValue",r)},expression:"row.parameterValue"}}):e.isEditMode||e.isDispatchMode||!e.filledBy?r("span",[e._v(e._s(t.parameterValue||"/"))]):r("span",[e._v(e._s(t.minorVersion||t.parameterValue||"/"))])],1),e.isCompetitiveEngineEntry?e._e():r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.parameterSource||"/"))])]),!e.isEditMode||e.isDispatchMode?r("div",{staticClass:"cell"},[e.isEditDeptMode?e.isEditDeptMode?r("el-select",{staticClass:"dept-select",attrs:{size:"small",placeholder:"请选择部门",clearable:"",filterable:"","filter-method":e.handleDeptRemoteSearch},model:{value:t.department,callback:function(r){e.$set(t,"department",r)},expression:"row.department"}},e._l(e.filteredDeptOptions,(function(e){return r("el-option",{key:e.id,attrs:{value:e.name,label:e.name}})})),1):e._e():r("span",[e._v(e._s(e.formatDepartmentDisplay(t.department)))])],1):e._e(),e.isDispatchMode&&"update_param"!==e.dispatchType?r("div",{staticClass:"cell"},[r("span",{class:{"distributed-status":1===t.isDistributedRes}},[e._v(" "+e._s(1===t.isDistributedRes?"已分发":"未分发")+" ")])]):e._e(),e.isDispatchMode&&"update_param"===e.dispatchType?r("div",{staticClass:"cell"},[r("span",{class:{"distributed-status":1===t.isDistributedFilled}},[e._v(" "+e._s(1===t.isDistributedFilled?"已分发":"未分发")+" ")])]):e._e(),e.isDispatchMode&&"update_param"!==e.dispatchType?r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.owner||"-"))])]):e._e(),e.isDispatchMode&&"update_param"===e.dispatchType?r("div",{staticClass:"cell"},[1===t.isDistributedFilled?r("span",[e._v(e._s(t.filledByName||t.filledBy||"-"))]):r("el-select",{staticClass:"responsible-select",attrs:{size:"small",placeholder:"请输入",clearable:"",filterable:"",remote:"","remote-method":function(r){return e.handleFillerRemoteSearch(r,t)},loading:e.fillerUserLoading},on:{change:function(r){return e.handleFillerChange(r,t)}},model:{value:t.filledByUserId,callback:function(r){e.$set(t,"filledByUserId",r)},expression:"row.filledByUserId"}},e._l(e.getFillerUserOptions(t),(function(t){return r("el-option",{key:t.userId,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1):e._e(),e.isDispatchMode||e.isEditMode?e._e():r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.filledByName||t.filledBy||"-"))])])])}))],2)]):e._e()]}))],2)]),e.isApprovalMode?r("div",{staticClass:"page-approval-content"},[e.detail?r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",staticStyle:{cursor:"pointer"},on:{click:function(t){e.basicInfoCollapsed=!e.basicInfoCollapsed}}},[r("span",[e._v("基础信息")]),r("i",{class:e.basicInfoCollapsed?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"margin-left":"8px"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.basicInfoCollapsed,expression:"!basicInfoCollapsed"}],staticClass:"info-grid"},[r("div",{staticClass:"info-item-full"},[e._m(0),r("el-input",{staticClass:"process-title-input",attrs:{maxlength:"100","show-word-limit":"",placeholder:"请输入流程主题"},model:{value:e.approvalFormData.processTitle,callback:function(t){e.$set(e.approvalFormData,"processTitle",t)},expression:"approvalFormData.processTitle"}})],1),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建人")]),r("span",{staticClass:"value"},[e._v(e._s(e.approvalCreateBy||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建时间")]),r("span",{staticClass:"value"},[e._v(e._s(e.approvalCreateTime||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前环节")]),r("span",{staticClass:"value"},[e._v(e._s(e.approvalCurrentNode||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前处理人")]),r("span",{staticClass:"value"},[e._v(e._s(e.approvalCurrentProcessor||"--"))])])])])]):e._e(),r("div",{staticClass:"approval-content"},[e.approvalChangeData&&e.approvalChangeData.length>0?r("div",{staticClass:"approval-change-table"},[r("div",{staticClass:"change-table-title"},[e._v(" 变更数据 ")]),r("div",{staticClass:"change-table-wrapper"},[r("table",{staticClass:"change-table-content"},[e._m(1),r("tbody",e._l(e.approvalChangeData,(function(t,a){return r("tr",{key:a,staticClass:"change-table-row"},[r("td",{staticClass:"col-engine-model-name"},[e._v(e._s(t.engineModelName||"-"))]),r("td",{staticClass:"col-subsystem-name"},[e._v(e._s(t.subsystemName||"-"))]),r("td",{staticClass:"col-parameter-type"},[e._v(e._s((t.parameterType,t.parameterType||"-")))]),r("td",{staticClass:"col-parts-name"},[e._v(e._s(("/"===t.partsName?t.subsystemName:t.partsName)||"-"))]),r("td",{staticClass:"col-parameter-name"},[e._v(e._s(t.parameterName||"-"))]),r("td",{staticClass:"col-parameter-value"},[e._v(e._s(t.parameterValue||"-"))]),r("td",{staticClass:"col-common"},[e._v(e._s(t.changeComment||"-"))])])})),0)])])]):e._e(),r("div",{staticClass:"approval-description"},[r("div",{staticClass:"description-label"},[e._v(" 说明 ")]),r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入"},model:{value:e.approvalFormData.description,callback:function(t){e.$set(e.approvalFormData,"description",t)},expression:"approvalFormData.description"}})],1),r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-title",staticStyle:{cursor:"pointer"},on:{click:function(t){e.approvalWorkflowCollapsed=!e.approvalWorkflowCollapsed}}},[r("span",[e._v("审批环节")]),r("i",{class:e.approvalWorkflowCollapsed?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"margin-left":"8px"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.approvalWorkflowCollapsed,expression:"!approvalWorkflowCollapsed"}],staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[e._m(2),r("tbody",e._l(e.approvalWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"",placeholder:"请选择","remote-method":function(t){return e.handleRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])])]):e._e(),e.isApprovalMode?r("div",{staticClass:"page-footer"},[r("div",{staticClass:"footer-buttons"},[r("el-button",{on:{click:e.handleApprovalCancel}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalFormSubmit}},[e._v(" 确定 ")])],1)]):e._e(),r("batch-modify-responsible-modal",{ref:"batchModifyResponsibleModal",attrs:{"responsible-persons":e.responsiblePersons,"is-competitor-engine":e.isCompetitiveEngineEntry,"filler-persons":e.fillerPersons,"dispatch-type":e.dispatchType,"version-data":e.versionData,"current-version-id":e.currentVersionId,"resolve-department-id":e.resolveDepartmentId,"project-parts-name":e.treeFirstLevelPartsName,"tree-subsystem-names":e.treeSubsystemNames,"dispatch-param-draft-cache":e.dispatchParamDraftCache},on:{confirm:e.handleBatchModifyConfirm,"refresh-responsible-persons":e.loadResponsiblePersons,"refresh-department":e.handleRefreshDepartment,"update-draft-cache":e.handleUpdateDraftCache}}),r("el-dialog",{attrs:{title:"修改部门",visible:e.batchModifyDeptDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.batchModifyDeptDialogVisible=t},close:e.handleBatchModifyDeptDialogClose}},[r("el-form",{ref:"batchModifyDeptForm",attrs:{model:e.batchModifyDeptFormData,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"原部门:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择原部门",readonly:""},nativeOn:{click:function(t){return e.handleSelectOriginalDept.apply(null,arguments)}},model:{value:e.batchModifyDeptFormData.originalDept,callback:function(t){e.$set(e.batchModifyDeptFormData,"originalDept",t)},expression:"batchModifyDeptFormData.originalDept"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSelectOriginalDept},slot:"append"})],1)],1),r("el-form-item",{attrs:{label:"部门:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择部门",readonly:""},nativeOn:{click:function(t){return e.handleSelectTargetDept.apply(null,arguments)}},model:{value:e.batchModifyDeptFormData.targetDept,callback:function(t){e.$set(e.batchModifyDeptFormData,"targetDept",t)},expression:"batchModifyDeptFormData.targetDept"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSelectTargetDept},slot:"append"})],1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleBatchModifyDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.batchModifyDeptSubmitting,disabled:!e.batchModifyDeptFormData.originalDept||!e.batchModifyDeptFormData.targetDept},on:{click:e.handleBatchModifyDeptConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择原填写部门",visible:e.originalDeptDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.originalDeptDialogVisible=t},close:e.handleOriginalDeptDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.originalDeptTreeFilterText,callback:function(t){e.originalDeptTreeFilterText=t},expression:"originalDeptTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"originalDeptTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleOriginalDeptNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleOriginalDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedOriginalDeptId},on:{click:e.handleOriginalDeptDialogConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择填写部门",visible:e.targetDeptDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.targetDeptDialogVisible=t},close:e.handleTargetDeptDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.targetDeptTreeFilterText,callback:function(t){e.targetDeptTreeFilterText=t},expression:"targetDeptTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"targetDeptTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleTargetDeptNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleTargetDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedTargetDeptId},on:{click:e.handleTargetDeptDialogConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"update_param"===e.dispatchType?"修改全部填写人":"修改全部责任人",visible:e.replaceAllPersonDialogVisible,width:"520px","append-to-body":""},on:{"update:visible":function(t){e.replaceAllPersonDialogVisible=t},close:e.handleReplaceAllPersonDialogClose}},[r("el-form",{ref:"replaceAllPersonForm",attrs:{model:e.replaceAllPersonFormData,"label-width":"90px"}},[r("el-form-item",{attrs:{label:"人员:",prop:"userId",rules:[{required:!0,message:"请选择人员",trigger:"change"}]}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入人员姓名进行搜索",clearable:"",filterable:"",remote:"","remote-method":e.handleReplaceAllPersonRemoteSearch,loading:e.replaceAllPersonUserLoading},on:{change:e.handleReplaceAllPersonChange},model:{value:e.replaceAllPersonFormData.userId,callback:function(t){e.$set(e.replaceAllPersonFormData,"userId",t)},expression:"replaceAllPersonFormData.userId"}},e._l(e.replaceAllPersonUserOptions,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleReplaceAllPersonDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.replaceAllPersonSubmitting},on:{click:e.handleReplaceAllPersonConfirm}},[e._v(" 确定 ")])],1)],1)],1)},Qt=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("span",{staticClass:"label"},[e._v("流程主题 "),r("span",{staticClass:"required-mark"},[e._v("*")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("thead",[r("tr",[r("th",{staticClass:"col-engine-model-name"},[e._v("机型名称")]),r("th",{staticClass:"col-subsystem-name"},[e._v("子系统名称")]),r("th",{staticClass:"col-parameter-type"},[e._v("参数类型")]),r("th",{staticClass:"col-parts-name"},[e._v("零件名称")]),r("th",{staticClass:"col-parameter-name"},[e._v("参数名称")]),r("th",{staticClass:"col-parameter-value"},[e._v("参数值")]),r("th",{staticClass:"col-common"},[e._v("修改描述")])])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])])}],er=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("x-modal",{attrs:{"append-to-body":!0,"destroy-on-close":!0,modalVisible:e.visible,"wrapper-class":"batch-modify-responsible-modal",title:e.modalTitle,width:950},on:{"update:modalVisible":function(t){e.visible=t},"update:modal-visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.closeModal}},[e._v(" 关闭 ")]),r("el-button",{attrs:{type:"primary",loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)]},proxy:!0}])},[r("div",{staticClass:"batch-modify-content"},["update_param"===e.dispatchType?r("div",{staticClass:"left-parts-panel"},[r("div",{staticClass:"parts-category-section"},[r("div",{staticClass:"category-header",on:{click:function(t){return e.toggleCategory("distributed")}}},[r("div",{staticClass:"header-left"},[r("i",{staticClass:"collapse-icon",class:e.categoryCollapsed.distributed?"el-icon-caret-right":"el-icon-caret-bottom"}),r("span",{staticClass:"category-title"},[e._v("已分发")])]),r("span",{staticClass:"category-count"},[e._v(e._s(e.distributedPartsNames.length))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.categoryCollapsed.distributed,expression:"!categoryCollapsed.distributed"}],staticClass:"category-list"},[e._l(e.distributedPartsNames,(function(t,a){return r("div",{key:"distributed-"+a,staticClass:"parts-item distributed"},[e._v(" "+e._s(t)+" ")])})),0===e.distributedPartsNames.length?r("div",{staticClass:"empty-tip"},[e._v("暂无数据")]):e._e()],2)]),r("div",{staticClass:"parts-category-section"},[r("div",{staticClass:"category-header",on:{click:function(t){return e.toggleCategory("tempSaved")}}},[r("div",{staticClass:"header-left"},[r("i",{staticClass:"collapse-icon",class:e.categoryCollapsed.tempSaved?"el-icon-caret-right":"el-icon-caret-bottom"}),r("span",{staticClass:"category-title"},[e._v("未分发-已分配")])]),r("span",{staticClass:"category-count"},[e._v(e._s(e.tempSavedPartsNames.length))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.categoryCollapsed.tempSaved,expression:"!categoryCollapsed.tempSaved"}],staticClass:"category-list"},[e._l(e.tempSavedPartsNames,(function(t,a){return r("div",{key:"temp-"+a,staticClass:"parts-item temp-saved clickable",on:{click:function(r){return e.handleTempSavedItemClick(t)}}},[e._v(" "+e._s(t)+" ")])})),0===e.tempSavedPartsNames.length?r("div",{staticClass:"empty-tip"},[e._v("暂无数据")]):e._e()],2)]),r("div",{staticClass:"parts-category-section"},[r("div",{staticClass:"category-header",on:{click:function(t){return e.toggleCategory("undistributed")}}},[r("div",{staticClass:"header-left"},[r("i",{staticClass:"collapse-icon",class:e.categoryCollapsed.undistributed?"el-icon-caret-right":"el-icon-caret-bottom"}),r("span",{staticClass:"category-title"},[e._v("未分发-未分配")])]),r("span",{staticClass:"category-count"},[e._v(e._s(e.undistributedPartsNames.length))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.categoryCollapsed.undistributed,expression:"!categoryCollapsed.undistributed"}],staticClass:"category-list"},[e._l(e.undistributedPartsNames,(function(t,a){return r("div",{key:"undistributed-"+a,staticClass:"parts-item undistributed"},[e._v(" "+e._s(t)+" ")])})),0===e.undistributedPartsNames.length?r("div",{staticClass:"empty-tip"},[e._v("暂无数据")]):e._e()],2)])]):e._e(),r("div",{staticClass:"right-form-panel"},[r("el-form",{ref:"form",attrs:{model:e.formData,rules:e.formRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"子系统:",prop:"subsystem"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"update_param"===e.dispatchType?"请选择子系统(可多选)":"请选择子系统",clearable:"",multiple:"update_param"===e.dispatchType,"collapse-tags":""},on:{change:e.handleSubsystemChange},model:{value:e.formData.subsystem,callback:function(t){e.$set(e.formData,"subsystem",t)},expression:"formData.subsystem"}},e._l(e.subsystemList,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),"update_param"===e.dispatchType?r("el-form-item",{attrs:{label:"零部件名称:",prop:"partsName"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择零部件名称",clearable:"",multiple:"",disabled:!e.hasSelectedSubsystem},on:{change:e.handlePartsNameChange},model:{value:e.formData.partsName,callback:function(t){e.$set(e.formData,"partsName",t)},expression:"formData.partsName"}},e._l(e.availablePartsNames,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),"update_param"!==e.dispatchType?r("el-form-item",{attrs:{label:"部门:",prop:"department"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择部门",clearable:"",disabled:!e.formData.subsystem},on:{change:e.handleDepartmentChange},model:{value:e.formData.department,callback:function(t){e.$set(e.formData,"department",t)},expression:"formData.department"}},e._l(e.availableDepartments,(function(t){return r("el-option",{key:t.department,attrs:{label:e.formatDepartmentDisplay(t.department),value:t.department}})})),1)],1):e._e(),"update_param"!==e.dispatchType?r("el-form-item",{attrs:{label:"现责任人:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"暂无责任人",readonly:""},model:{value:e.formData.currentResponsibleName,callback:function(t){e.$set(e.formData,"currentResponsibleName",t)},expression:"formData.currentResponsibleName"}})],1):e._e(),r("el-form-item",{attrs:{label:"update_param"===e.dispatchType?"人员:":"责任人:",prop:"userId"}},[r("el-select",{staticClass:"handler-select",staticStyle:{width:"100%"},attrs:{placeholder:"update_param"===e.dispatchType?"请输入人员姓名进行搜索":"请输入责任人姓名进行搜索",clearable:"",disabled:"update_param"!==e.dispatchType&&!e.formData.department,filterable:"",remote:"","remote-method":e.handleRemoteSearch,loading:e.userLoading},on:{change:e.handleResponsibleChange},model:{value:e.formData.userId,callback:function(t){e.$set(e.formData,"userId",t)},expression:"formData.userId"}},e._l(e.userOptions,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)],1)],1)])]),r("el-dialog",{attrs:{title:"选择责任部门",visible:e.departmentDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.departmentDialogVisible=t},close:e.handleDepartmentDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.departmentTreeFilterText,callback:function(t){e.departmentTreeFilterText=t},expression:"departmentTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"departmentTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleDepartmentNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDepartmentDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedDepartmentId},on:{click:e.handleDepartmentDialogConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"部门调转",visible:e.deptTransferDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.deptTransferDialogVisible=t},close:e.handleDeptTransferDialogClose}},[r("el-form",{attrs:{"label-width":"110px"}},[r("el-form-item",{attrs:{label:"原填写部门:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择原填写部门",readonly:""},nativeOn:{click:function(t){return e.handleSelectOriginalDept.apply(null,arguments)}},model:{value:e.deptTransferFormData.originalDept,callback:function(t){e.$set(e.deptTransferFormData,"originalDept",t)},expression:"deptTransferFormData.originalDept"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSelectOriginalDept},slot:"append"})],1)],1),r("el-form-item",{attrs:{label:"填写部门:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择填写部门",readonly:""},nativeOn:{click:function(t){return e.handleSelectTargetDept.apply(null,arguments)}},model:{value:e.deptTransferFormData.targetDept,callback:function(t){e.$set(e.deptTransferFormData,"targetDept",t)},expression:"deptTransferFormData.targetDept"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSelectTargetDept},slot:"append"})],1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDeptTransferDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.deptTransferFormData.originalDept||!e.deptTransferFormData.targetDept},on:{click:e.handleDeptTransferConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择原填写部门",visible:e.originalDeptDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.originalDeptDialogVisible=t},close:e.handleOriginalDeptDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.originalDeptTreeFilterText,callback:function(t){e.originalDeptTreeFilterText=t},expression:"originalDeptTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"originalDeptTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleOriginalDeptNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleOriginalDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedOriginalDeptId},on:{click:e.handleOriginalDeptDialogConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择填写部门",visible:e.targetDeptDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.targetDeptDialogVisible=t},close:e.handleTargetDeptDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.targetDeptTreeFilterText,callback:function(t){e.targetDeptTreeFilterText=t},expression:"targetDeptTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"targetDeptTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleTargetDeptNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleTargetDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedTargetDeptId},on:{click:e.handleTargetDeptDialogConfirm}},[e._v(" 确定 ")])],1)],1)],1)},tr=[];function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function ar(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=or(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function nr(e){return lr(e)||sr(e)||or(e)||ir()}function ir(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function or(e,t){if(e){if("string"===typeof e)return cr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cr(e,t):void 0}}function sr(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function lr(e){if(Array.isArray(e))return cr(e)}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0:!!this.formData.subsystem},formRules:function(){var e={userId:[{required:!0,message:"update_param"===this.dispatchType?"请选择人员":"请选择责任人",trigger:"change"}]};return"update_param"===this.dispatchType?(e.subsystem=[{required:!0,type:"array",min:1,message:"请至少选择一个子系统",trigger:"change"}],e.partsName=[{required:!0,type:"array",min:1,message:"请至少选择一个零部件名称",trigger:"change"}]):(e.subsystem=[{required:!0,message:"请选择子系统",trigger:"change"}],e.department=[{required:!0,message:"请选择部门",trigger:"change"}]),e}},watch:{departmentTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.departmentTree&&t.$refs.departmentTree.filter(e)}))},originalDeptTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.originalDeptTree&&t.$refs.originalDeptTree.filter(e)}))},targetDeptTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.targetDeptTree&&t.$refs.targetDeptTree.filter(e)}))}},methods:{toggleCategory:function(e){this.categoryCollapsed[e]=!this.categoryCollapsed[e]},formatDepartmentDisplay:function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t},getEmptySubsystemValue:function(){return"update_param"===this.dispatchType?[]:""},getSelectedSubsystems:function(){return"update_param"===this.dispatchType?Array.isArray(this.formData.subsystem)?this.formData.subsystem:[]:this.formData.subsystem?[this.formData.subsystem]:[]},isParamSubsystemMatched:function(e,t){var r=this,a=t||this.getSelectedSubsystems();return!!a.length&&a.some((function(t){return r.isSubsystemNameMatch(e,t)}))},showModal:function(){var e=this;this.formData={subsystem:this.getEmptySubsystemValue(),partsName:[],department:"",currentResponsibleId:"",currentResponsibleName:"",currentFillerId:"",currentFillerName:"",userId:"",userNumber:"",username:"",rowId:""},this.availablePartsNames=[],this.availablePartsNameMap=new Map,this.availableDepartments=[],this.userOptions=[],this.userLoading=!1,this.distributedPartsNames=[],this.tempSavedPartsNames=[],this.undistributedPartsNames=[],this.categoryCollapsed={distributed:!1,tempSaved:!1,undistributed:!1},this.loadSubsystemList(),this.loadDepartmentTree(),"update_param"!==this.dispatchType&&this.loadAllManagerData(),this.visible=!0,this.$nextTick((function(){e.$refs.form&&e.$refs.form.clearValidate()}))},closeModal:function(){this.visible=!1,this.formData={subsystem:this.getEmptySubsystemValue(),partsName:[],department:"",currentResponsibleId:"",currentResponsibleName:"",currentFillerId:"",currentFillerName:"",userId:"",userNumber:"",username:"",rowId:""},this.availablePartsNames=[],this.availablePartsNameMap=new Map,this.availableDepartments=[],this.userOptions=[],this.userLoading=!1,this.distributedPartsNames=[],this.tempSavedPartsNames=[],this.undistributedPartsNames=[],this.categoryCollapsed={distributed:!1,tempSaved:!1,undistributed:!1}},loadSubsystemList:function(){var e=this,t=dr(dr({},et.GET_SUBSYSTEM_LIST),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r=t&&t.data?t.data:[];e.filterSubsystemListByTree(r)})).asyncErrorCatch((function(t){console.error("加载子系统列表失败:",t),e.subsystemList=[]}))},isSubsystemNameMatch:function(e,t){return!(!e||!t)&&(e===t||gr.includes(e)&&gr.includes(t))},filterSubsystemListByTree:function(e){var t=this,r=Array.isArray(e)?e:[],a=(this.treeSubsystemNames||[]).filter(Boolean);if(a.length){var n=[];r.forEach((function(e){var r=a.find((function(r){return t.isSubsystemNameMatch(e,r)}));r&&!n.includes(r)&&n.push(r)})),this.subsystemList=n}else this.subsystemList=r},handleTempSavedItemClick:function(e){var t=this;console.log("点击未分发-已分配项:",e);var r=null;if(e.includes(" - /")&&(r=e.split(" - /")[0].trim(),console.log("提取子系统:",r)),r&&this.subsystemList.includes(r)){var a=Array.isArray(this.formData.subsystem)?this.formData.subsystem:[this.formData.subsystem];a.includes(r)||("update_param"===this.dispatchType?this.formData.subsystem=[].concat(nr(a),[r]):this.formData.subsystem=r,console.log("设置子系统:",this.formData.subsystem),this.handleSubsystemChange())}this.$nextTick((function(){t.availablePartsNames.includes(e)||(t.availablePartsNames.unshift(e),console.log("添加到可选列表:",t.availablePartsNames)),t.formData.partsName.includes(e)||(t.formData.partsName=[].concat(nr(t.formData.partsName),[e])),console.log("当前选中的零部件名称:",t.formData.partsName)}))},isProjectPartsNameMatch:function(e){return!this.projectPartsName||!e||(e.partsName||"")===this.projectPartsName},loadAllManagerData:function(){var e=this,t={pageNumber:1,pageSize:9999};this.projectPartsName&&(t.partsName=this.projectPartsName),this.formData.subsystem&&this.formData.originalDepartmentId&&(t.id=this.formData.originalDepartmentId);var r=dr(dr({},et.GET_MANAGER_DATA),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){t&&t.data?e.allManagerData=t.data.result||[]:e.allManagerData=[]})).asyncErrorCatch((function(t){console.error("加载责任人数据失败:",t),e.allManagerData=[]}))},loadAllFillerData:function(){var e=this,t={pageNumber:1,pageSize:9999};this.projectPartsName&&(t.partsName=this.projectPartsName);var r=dr(dr({},et.GET_FILLER_DATA),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){t&&t.data?e.allFillerData=t.data.result||[]:e.allFillerData=[]})).asyncErrorCatch((function(t){console.error("加载填写人数据失败:",t),e.allFillerData=[]}))},handleSubsystemChange:function(){var e=this;this.formData.partsName=[],this.formData.department="",this.formData.originalDepartment="",this.formData.originalDepartmentId="",this.formData.selectDeptName="",this.formData.selectDeptId="",this.formData.currentResponsibleId="",this.formData.currentResponsibleName="",this.formData.currentFillerId="",this.formData.currentFillerName="",this.formData.rowId="",this.formData.userId="",this.formData.userNumber="",this.formData.username="",this.availablePartsNames=[],this.availablePartsNameMap=new Map,this.availableDepartments=[],this.userOptions=[],this.distributedPartsNames=[],this.tempSavedPartsNames=[],this.undistributedPartsNames=[];var t=this.getSelectedSubsystems();if(!t.length)return this.availablePartsNames=[],void(this.availableDepartments=[]);var r=this.versionData[this.currentVersionId]||{},a=new Map,n=new Set,i=new Set,o=new Set,s=new Set;if(Object.keys(r).forEach((function(l){var c=r[l]||[];c.forEach((function(r){if(e.isParamSubsystemMatched(r.subsystemName,t)){if("update_param"===e.dispatchType){var c=r.partsName||l;if(c){var u=c;if("/"===c&&(u="".concat(r.subsystemName," - /")),1===r.isDistributedFilled){var d=r.id||"".concat(r.subsystemName,"-").concat(r.parameterName),p=e.dispatchParamDraftCache&&e.dispatchParamDraftCache[d];if(!p)return void i.add(u);o.add(u)}else{if(r.filledBy||r.filledByUserId)return void o.add(u);s.add(u)}"/"===c?a.has(u)||a.set(u,{originalName:c,subsystem:r.subsystemName}):a.has(c)||a.set(c,{originalName:c,subsystem:null})}}r.department&&n.add(r.department)}}))})),"update_param"===this.dispatchType){var l=Array.from(a.keys()).sort();this.availablePartsNames=l,this.availablePartsNameMap=a,this.distributedPartsNames=Array.from(i).sort(),this.tempSavedPartsNames=Array.from(o).sort(),this.undistributedPartsNames=Array.from(s).sort()}else this.availableDepartments=Array.from(n).map((function(e){return{department:e}}))},handlePartsNameChange:function(){this.formData.userId="",this.formData.userNumber="",this.formData.username="",this.userOptions=[]},handleDepartmentChange:function(e){var t=this;if(this.formData.currentResponsibleId="",this.formData.currentResponsibleName="",this.formData.rowId="",this.formData.userId="",this.formData.userNumber="",this.formData.username="",this.userOptions=[],"update_param"!==this.dispatchType&&e&&this.formData.subsystem){var r=this.allManagerData.find((function(r){var a=r.subsystem?r.subsystem.split(","):[];return a.some((function(e){return t.isSubsystemNameMatch(r.subsystem,t.formData.subsystem)}))&&r.department===e}));r&&(this.formData.currentResponsibleId=r.userId||r.id||"",this.formData.currentResponsibleName=r.username||r.userName||"",this.formData.rowId=r.rowId||r.id||"")}},handleRemoteSearch:function(e){var t=this;if("update_param"===this.dispatchType||this.formData.department)if(e&&""!==e.trim()){this.userLoading=!0;var r=e.trim(),a=dr(dr({},et.GET_ALLUSERS),{},{params:{name:r},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){var r=e&&e.data,a=[];Array.isArray(r)?a=r:r&&Array.isArray(r.result)?a=r.result:r&&r.data&&Array.isArray(r.data)&&(a=r.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=t.formData.userId,o=t.userOptions.filter((function(e){return e.userId&&e.userId===i})),s=new Map;o.forEach((function(e){e.userNumber&&s.set(e.userNumber,e)})),n.forEach((function(e){e.userNumber&&!s.has(e.userNumber)&&s.set(e.userNumber,e)})),t.userOptions=Array.from(s.values()),t.userLoading=!1})).asyncErrorCatch((function(e){if(console.error("搜索责任人失败:",e),t.formData.userId){var r=t.userOptions.filter((function(e){return e.userId===t.formData.userId}));t.userOptions=r}else t.userOptions=[];t.userLoading=!1}))}else if(this.formData.userId){var n=this.userOptions.filter((function(e){return e.userId===t.formData.userId}));this.userOptions=n}else this.userOptions=[];else this.userOptions=[]},handleResponsibleChange:function(e){if(e){var t=this.userOptions.find((function(t){return t.userId===e}));t?(this.formData.userId=t.userId,this.formData.userNumber=t.userNumber||t.userId,this.formData.username=t.username||""):(console.warn("未找到选中的用户选项,userId:",e),this.formData.userId=e,this.formData.userNumber=e,this.formData.username="")}else this.formData.userId="",this.formData.userNumber="",this.formData.username=""},handleSubmit:function(){var e=this;this.$refs.form.validate((function(t){if(t){if(!e.formData.userId){var r="update_param"===e.dispatchType?"人员":"责任人";return void(e.$message&&e.$message.warning&&e.$message.warning("请选择".concat(r)))}if("update_param"===e.dispatchType){var a=e.getSelectedSubsystems();if(!a.length)return void(e.$message&&e.$message.warning&&e.$message.warning("请至少选择一个子系统"));if(!e.formData.partsName||!Array.isArray(e.formData.partsName)||0===e.formData.partsName.length)return void(e.$message&&e.$message.warning&&e.$message.warning("请至少选择一个零部件名称"));var n=nr(e.formData.partsName),i=n.map((function(t){var r=e.availablePartsNameMap.get(t);return r?r.originalName:t})),o={subsystem:a,partsName:i,userId:e.formData.userId,userNumber:e.formData.userNumber||e.formData.userId,username:e.formData.username||""};console.log("批量修改填写人 - 提交数据:",o);var s=e.versionData[e.currentVersionId]||{},l=[];if(Object.keys(s).forEach((function(t){var r=s[t]||[];r.forEach((function(r){if(e.isParamSubsystemMatched(r.subsystemName,a)){var s=r.partsName||t,c=!1;if("/"===s){var u="".concat(r.subsystemName," - /");c=n.includes(u)}else c=i.includes(s);c&&r.id&&l.push({id:r.id,filledBy:o.userId})}}))})),console.log("批量修改填写人 - 暂存数据:",l),l.length>0){var c=dr(dr({},et.SAVE_FILLED_BY_TEMP),{},{params:l,disableSuccessMsg:!0});e.$request(c).asyncThen((function(t){console.log("暂存填写人成功:",t),Object.keys(s).forEach((function(t){var r=s[t]||[];r.forEach((function(r){if(e.isParamSubsystemMatched(r.subsystemName,a)){var s=r.partsName||t,l=!1;if("/"===s){var c="".concat(r.subsystemName," - /");l=n.includes(c)}else l=i.includes(s);l&&(r.filledBy=o.userId,r.filledByUserId=o.userId,r.filledByName=o.username,console.log("更新参数 ".concat(r.parameterName," 的填写人为:"),o.username))}}))})),n.forEach((function(t){var r=e.tempSavedPartsNames.includes(t);r||(e.tempSavedPartsNames.includes(t)||e.tempSavedPartsNames.push(t),e.undistributedPartsNames=e.undistributedPartsNames.filter((function(e){return e!==t})))})),l.forEach((function(t){var r=t.id,a={filledBy:t.filledBy,filledByUserId:t.filledBy,filledByName:o.username};e.$emit("update-draft-cache",r,a)}))})).asyncErrorCatch((function(e){console.error("暂存填写人失败:",e)}))}else n.forEach((function(t){var r=e.tempSavedPartsNames.includes(t);r||(e.tempSavedPartsNames.includes(t)||e.tempSavedPartsNames.push(t),e.undistributedPartsNames=e.undistributedPartsNames.filter((function(e){return e!==t})))}));e.availablePartsNames=e.availablePartsNames.filter((function(e){return!n.includes(e)})),n.forEach((function(t){e.availablePartsNameMap.delete(t)})),e.formData.partsName=[],e.formData.userId="",e.formData.userNumber="",e.formData.username="",e.userOptions=[],e.$nextTick((function(){e.$refs.form&&e.$refs.form.clearValidate()})),e.submitting=!1,e.$emit("confirm",o);var u=n.join("、");return void(e.$message&&e.$message.success?e.$message.success("已为零部件【".concat(u,"】设置填写人为【").concat(o.username,"】")):console.log("已为零部件【".concat(u,"】设置填写人为【").concat(o.username,"】")))}if(e.isCompetitorEngine){var d={subsystem:e.formData.subsystem,department:e.formData.selectDeptName||e.formData.department,departmentId:e.formData.selectDeptId,oldResponsiblePersonId:e.formData.currentResponsibleId||"",newResponsiblePersonId:e.formData.userNumber||e.formData.userId,userId:e.formData.userId,username:e.formData.username||""};return e.submitting=!1,e.closeModal(),e.$message({type:"success",message:"修改成功"}),void e.$emit("confirm",d)}if(e.formData.currentResponsibleId&&e.formData.rowId){var p=dr(dr({},et.EDIT_MANAGER_DATA),{},{params:{departmentId:e.formData.selectDeptId||e.getDepartmentIdByDepartment(e.formData.department),department:e.formData.selectDeptName||e.formData.department,subsystem:e.formData.subsystem,partsName:e.projectPartsName||"",userId:e.formData.userId,rowId:e.formData.rowId},disableSuccessMsg:!0});e.$request(p).asyncThen((function(t){e.submitting=!1,e.closeModal(),e.$message({type:"success",message:"修改成功"}),e.$emit("refresh-responsible-persons"),e.$emit("confirm",{subsystem:e.formData.subsystem,department:e.formData.department,oldResponsiblePersonId:e.formData.currentResponsibleId,newResponsiblePersonId:e.formData.userNumber,userId:e.formData.userId})})).asyncErrorCatch((function(t){console.error("修改失败:",t),e.$message({type:"error",message:"修改失败,请重试"}),e.submitting=!1}))}else{var h=dr(dr({},et.SAVE_MANAGER_DATA),{},{params:{departmentId:e.formData.selectDeptId||e.getDepartmentIdByDepartment(e.formData.department),department:e.formData.selectDeptName||e.formData.department,subsystem:e.formData.subsystem,partsName:e.projectPartsName||"",userId:e.formData.userId},disableSuccessMsg:!0});e.$request(h).asyncThen((function(t){e.submitting=!1,e.closeModal(),e.$emit("refresh-responsible-persons"),e.$emit("confirm",{subsystem:e.formData.subsystem,department:e.formData.selectDeptName||e.formData.department,departmentId:e.formData.selectDeptId,oldResponsiblePersonId:"",newResponsiblePersonId:e.formData.userNumber,userId:e.formData.userId})})).asyncErrorCatch((function(t){console.error("新增失败:",t),e.$message&&e.$message.error&&e.$message.error("新增失败,请重试"),e.submitting=!1}))}e.submitting=!1}}))},loadDepartmentTree:function(){var e=this,t=dr(dr({},et.GET_DEPT_OF_USER),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r=[];t&&t.data&&(r=t.data.data||t.data||[]),e.departmentList=e.formatDepartmentTreeData(r),e.departmentTreeData=e.departmentList})).asyncErrorCatch((function(t){console.error("加载部门树失败:",t),e.departmentList=[],e.departmentTreeData=[]}))},handleOpenDepartmentDialog:function(){var e=this;this.departmentDialogVisible=!0,this.selectedDepartmentId=this.formData.selectDeptId||"",this.selectedDepartmentName=this.formData.selectDeptName||"",this.departmentTreeFilterText="",this.$nextTick((function(){e.$refs.departmentTree&&e.selectedDepartmentId&&e.$refs.departmentTree.setCurrentKey(e.selectedDepartmentId)}))},handleDepartmentDialogClose:function(){this.departmentDialogVisible=!1,this.selectedDepartmentId="",this.selectedDepartmentName=""},handleDepartmentNodeClick:function(e){this.selectedDepartmentId=e.id,this.selectedDepartmentName=e.name},filterDepartmentNode:function(e,t){return!e||-1!==t.name.indexOf(e)},handleDepartmentDialogConfirm:function(){this.selectedDepartmentId?(this.formData.selectDeptId=this.selectedDepartmentId,this.formData.selectDeptName=this.selectedDepartmentName,this.formData.department=this.selectedDepartmentName,this.departmentDialogVisible=!1,this.formData.currentResponsibleId="",this.formData.currentResponsibleName="",this.formData.rowId="",this.formData.userId="",this.formData.userNumber="",this.formData.username="",this.userOptions=[]):this.$message&&this.$message.warning&&this.$message.warning("请选择部门")},setDepartmentIdFromName:function(e){var t=this;if(e&&this.departmentList&&0!==this.departmentList.length){var r=function e(r,a){var n,i=ar(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.name===a||t.formatDepartmentDisplay(o.name)===a)return o;if(o.children&&o.children.length>0){var s=e(o.children,a);if(s)return s}}}catch(l){i.e(l)}finally{i.f()}return null},a=r(this.departmentList,e);a&&(this.formData.selectDeptId=a.id,this.formData.selectDeptName=a.name)}},setOriginalDepartmentIdFromName:function(e){var t=this;if(e&&this.departmentList&&0!==this.departmentList.length){var r=function e(r,a){var n,i=ar(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.name===a||t.formatDepartmentDisplay(o.name)===a)return o;if(o.children&&o.children.length>0){var s=e(o.children,a);if(s)return s}}}catch(l){i.e(l)}finally{i.f()}return null},a=r(this.departmentList,e);a&&(this.formData.originalDepartmentId=a.id)}},formatDepartmentTreeData:function(e){if(!Array.isArray(e))return[];var t=function e(t){var r={id:t.id,name:t.name||t.label||"",children:void 0};return t.children&&Array.isArray(t.children)&&t.children.length>0&&(r.children=t.children.map((function(t){return e(t)}))),r};return e.map((function(e){return t(e)}))},getDepartmentIdByDepartment:function(e){var t=this;if("function"===typeof this.resolveDepartmentId){var r=this.resolveDepartmentId(e);if(r)return r}if(!e||!this.departmentTreeData||0===this.departmentTreeData.length){if(this.allManagerData&&this.allManagerData.length>0){var a=this.allManagerData.find((function(t){return t.department===e}));return a&&a.departmentId||""}return""}var n=function e(r,a){var n,i=ar(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=t.getDepartmentPathName(o.id);if(s===a||o.name===a)return o.id;if(o.children&&o.children.length>0){var l=e(o.children,a);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null},i=n(this.departmentTreeData,e);if(i)return i;if(this.allManagerData&&this.allManagerData.length>0){var o=this.allManagerData.find((function(t){return t.department===e}));return o&&o.departmentId||""}return""},getDepartmentPathName:function(e){if(!e||!this.departmentTreeData||0===this.departmentTreeData.length)return"";var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=ar(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(nr(n),[o.name]);if(o.id===r)return s.join("-");if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null};return t(this.departmentTreeData,e)||""},handleOpenDeptTransferDialog:function(){var e=this.getSelectedSubsystems();e.length?(this.deptTransferDialogVisible=!0,this.deptTransferFormData={originalDept:"",originalDeptId:"",targetDept:"",targetDeptId:""}):this.$message&&this.$message.warning&&this.$message.warning("请先选择子系统")},handleDeptTransferDialogClose:function(){this.deptTransferDialogVisible=!1,this.deptTransferFormData={originalDept:"",originalDeptId:"",targetDept:"",targetDeptId:""}},handleDeptTransferConfirm:function(){var e=this;if(this.deptTransferFormData.originalDept&&this.deptTransferFormData.targetDept)if(this.deptTransferFormData.originalDept!==this.deptTransferFormData.targetDept){var t=this.getSelectedSubsystems();if(t.length){var r=this.versionData[this.currentVersionId]||{},a=[];if(Object.keys(r).forEach((function(n){var i=r[n]||[];i.forEach((function(r){e.isParamSubsystemMatched(r.subsystemName,t)&&e.isDepartmentMatched(r.department,e.deptTransferFormData.originalDept)&&r.id&&a.push({id:r.id,department:e.deptTransferFormData.targetDept})}))})),0!==a.length){var n=dr(dr({},et.BATCH_UPDATE_DEPARTMENT),{},{data:{items:a}});this.$request(n).asyncThen((function(n){Object.keys(r).forEach((function(a){var n=r[a]||[];n.forEach((function(r){e.isParamSubsystemMatched(r.subsystemName,t)&&e.isDepartmentMatched(r.department,e.deptTransferFormData.originalDept)&&(r.department=e.deptTransferFormData.targetDept)}))})),e.formData.department=e.deptTransferFormData.targetDept,e.formData.selectDeptId=e.deptTransferFormData.targetDeptId,e.formData.selectDeptName=e.deptTransferFormData.targetDept,e.formData.currentResponsibleId="",e.formData.currentResponsibleName="",e.formData.rowId="",e.formData.userId="",e.formData.userNumber="",e.formData.username="",e.userOptions=[],e.deptTransferDialogVisible=!1,e.$message&&e.$message.success&&e.$message.success("成功更新 ".concat(a.length," 个参数的部门")),e.$emit("refresh-department")})).asyncErrorCatch((function(t){console.error("批量更新部门失败:",t),e.$message&&e.$message.error&&e.$message.error("批量更新部门失败,请重试")}))}else this.$message&&this.$message.warning&&this.$message.warning("未找到匹配的参数数据")}else this.$message&&this.$message.warning&&this.$message.warning("请先选择子系统")}else this.$message&&this.$message.warning&&this.$message.warning("原填写部门和填写部门不能相同");else this.$message&&this.$message.warning&&this.$message.warning("请选择原填写部门和填写部门")},isDepartmentMatched:function(e,t){if(!e||!t)return!1;var r=function(e){return e?e.replace(/·/g,"-").trim():""},a=r(e),n=r(t);if(a===n)return!0;for(var i=[["中轻","中重动力平台","平台部","中轻动力平台部","中重动力平台部"]],o=0,s=i;o=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function Ir(e,t){if(e){if("string"===typeof e)return Or(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Or(e,t):void 0}}function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0){var i=this.flowNodes.every((function(e){return"PASS"===e.result||"APPROVE"===e.result||"通过"===e.result}));if(i)return!0}return!1},isWholeEngineParamsSelected:function(){var e=this;return!(!this.checkedKeys||0===this.checkedKeys.length)&&this.checkedKeys.some((function(t){var r=e.nodeMap[t];return r&&r.isWholeEngineParams}))},wholeEngineParamsData:function(){if(!this.wholeEngineParamsRawData||0===this.wholeEngineParamsRawData.length)return{};var e=this.wholeEngineParamsRawData.map((function(e){var t=e,r="-";if(e&&e.includes(":")){var a=e.split(":");t=a[0]||e,r=a[1]||"-"}else e&&(t=e,r="-");return{parameterName:t,partsName:Er,parameterValue:r,unit:"-",department:"平台部",subsystemName:Er}}));return Pr({},Er,e)},isCompetitiveEngineEntry:function(){return!(!this.wholeEngineParamsRawData||!Array.isArray(this.wholeEngineParamsRawData))&&this.wholeEngineParamsRawData.some((function(e){var t=String(e||"").split(":")[0];return"生产日期"===String(t||"").trim()}))},progressDetail:function(){return this.progressDetailData&&Object.keys(this.progressDetailData).length>0?{progressTitle:this.progressDetailData.progressTitle||"",contentName:this.progressDetailData.contentName||"",templateVersion:this.progressDetailData.templateVersion||"",explanation:this.progressDetailData.explanation||"",description:this.progressDetailData.explanation||this.progressDetailData.description||""}:{progressTitle:this.detail.processTitle||"",contentName:"",templateVersion:"",explanation:"",description:""}},currentNode:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.node||"--";var t=this.flowNodes[this.flowNodes.length-1];return t&&t.node||"--"}return"--"},currentProcessor:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.undoUserName||e.todoUserName||"--"}return"--"},shouldShowResendButton:function(){return!!(this.fromTodo&&this.detail&&(this.detail.flowId||this.flowId)&&this.canResend)||(this.canResend||!1)},isFillerTodoEntry:function(){return!!this.filledBy||this.fromTodo&&this.detail&&"数据维护"===String(this.detail.dataType||"")&&!this.isDispatchMode},canShowTodoHeaderOperations:function(){if(console.log("canShowTodoHeaderOperations - isFillerTodoEntry:",this.isFillerTodoEntry),console.log("canShowTodoHeaderOperations - fromTodo:",this.fromTodo),console.log("canShowTodoHeaderOperations - detail:",this.detail),console.log("canShowTodoHeaderOperations - distributeStatus:",this.detail&&this.detail.distributeStatus),this.isFillerTodoEntry)return console.log("canShowTodoHeaderOperations - 返回 true (isFillerTodoEntry)"),!0;if(this.fromTodo)return console.log("canShowTodoHeaderOperations - 返回 true (fromTodo)"),!0;var e=this.detail&&this.detail.distributeStatus,t=!this.detail||"已完成"!==e;return console.log("canShowTodoHeaderOperations - 返回:",t),t},shouldShowRejectButton:function(){var e,t,r=this,a=this.todoId||(null===(e=this.detail)||void 0===e?void 0:e.todoId)||(null===(t=this.detail)||void 0===t?void 0:t.id);if(!a)return!1;if(this.isFillerTodoEntry)return!0;var n=this.versionData[this.currentVersionId]||{},i=!1;return Object.keys(n).forEach((function(e){var t=n[e]||[];t.forEach((function(e){r.isDispatchMode?"update_param"===r.dispatchType?1===e.isDistributedFilled&&(i=!0):1===e.isDistributedRes&&(i=!0):1!==e.isDistributedRes&&1!==e.isDistributedFilled||(i=!0)}))})),!i&&!!this.isDispatchMode},approvalCreateBy:function(){var e;if(this.isApprovalMode){var t,r,a,n,i,o,s,l;if(null!==(t=this.detail)&&void 0!==t&&t.flowId&&this.shouldShowResendButton)return(null===(a=this.detail)||void 0===a?void 0:a.createdBy)||(null===(n=this.userInfo)||void 0===n?void 0:n.username)||(null===(i=this.userInfo)||void 0===i?void 0:i.userName)||"--";if(null===(r=this.detail)||void 0===r||!r.flowId)return(null===(o=this.userInfo)||void 0===o?void 0:o.username)||(null===(s=this.userInfo)||void 0===s?void 0:s.userName)||(null===(l=this.detail)||void 0===l?void 0:l.currentProcessor)||"--"}return(null===(e=this.detail)||void 0===e?void 0:e.createBy)||"--"},approvalCreateTime:function(){var e,t;if(this.isApprovalMode){var r,a,n;if(null!==(r=this.detail)&&void 0!==r&&r.flowId&&this.shouldShowResendButton)return this.formatTime(null===(n=this.detail)||void 0===n?void 0:n.creationDate)||"--";if(null===(a=this.detail)||void 0===a||!a.flowId){var i=new Date;return i.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}}return this.formatTime((null===(e=this.detail)||void 0===e?void 0:e.createdTime)||(null===(t=this.detail)||void 0===t?void 0:t.createTime))||"--"},approvalCurrentNode:function(){var e,t;if(this.isApprovalMode&&(null===(e=this.detail)||void 0===e||!e.flowId||null!==(t=this.detail)&&void 0!==t&&t.flowId&&this.shouldShowResendButton))return"编制";return this.currentNode||"--"},approvalCurrentProcessor:function(){var e,t,r,a;if(this.isApprovalMode&&(null===(e=this.detail)||void 0===e||!e.flowId||null!==(t=this.detail)&&void 0!==t&&t.flowId&&this.shouldShowResendButton))return(null===(r=this.detail)||void 0===r?void 0:r.currentProcessor)||(null===(a=this.userInfo)||void 0===a?void 0:a.userName)||"--";return this.currentProcessor||"--"}},watch:{treeFilterText:function(e){this.$refs.paramTree&&this.$refs.paramTree.filter(e)},treeSearchMode:function(){this.$refs.paramTree&&this.treeFilterText&&this.$refs.paramTree.filter(this.treeFilterText)},isDispatchMode:function(e){e&&!this.dispatchOriginalData&&(this.dispatchOriginalData=JSON.parse(JSON.stringify(this.versionData))),e||(this.dispatchOriginalData=null,this.dispatchParamDraftCache={})},treeFirstLevelPartsName:function(e,t){e&&e!==t&&!this.isCompetitiveEngineEntry&&(this.loadResponsiblePersons(),this.loadFillerPersons())},originalDeptTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.originalDeptTree&&t.$refs.originalDeptTree.filter(e)}))},targetDeptTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.targetDeptTree&&t.$refs.targetDeptTree.filter(e)}))}},created:function(){this.getUserInfo(),this.loadResponsiblePersons(),this.loadFillerPersons(),this.loadDepartmentList(),this.getversions()},methods:(mr={getUserInfo:function(){var e=this,t=Mr(Mr({},et.GET_USER_INFO),{},{params:{userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){t&&t.data&&(console.log("resp.data",t.data),e.userInfo=t.data)})).asyncErrorCatch((function(e){console.error("获取用户信息失败:",e)}))},getversions:function(){var e=this;if(this.engineModelID){var t=Mr(Mr({},et.GET_ENGINE_VERSIONS),{},{params:{modelId:this.engineModelID},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r,a=t.data;Array.isArray(a)?e.versions=a.sort((function(e,t){return t-e})).map((function(e){return{id:e,label:"V".concat(e)}})):e.versions=a,e.versions.length>0&&!e.currentVersionId&&(e.currentVersionId=e.versions[0].id),e.loadTreeData();var n=(null===(r=e.detail)||void 0===r?void 0:r.flowId)||e.flowId;n&&(console.log("flowId",n),e.canResendApproval())}})).asyncErrorCatch((function(e){console.error("获取版本数据失败:",e)}))}else console.warn("缺少 engineModelID,无法获取版本列表")},loadUserSelfRole:function(){var e=Mr(Mr({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){if(e&&e.data)try{localStorage.setItem("user_self_role",JSON.stringify(e.data))}catch(t){console.error("存储权限数据到 localStorage 失败:",t)}})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},checkPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"查看";try{var a=localStorage.getItem("user_self_role");if(!a)return!1;var n=JSON.parse(a);if(!Array.isArray(n))return!1;var i=n.filter((function(a){var n=a.menuPath&&e&&(a.menuPath.includes(e)||e.includes(a.menuPath));return!!n&&((!t||a.subsystem===t)&&a.parameterPer===r)}));return i.length>0}catch(o){return console.error("检查权限失败:",o),!1}},getMenuPath:function(){var e,t,r=(null===(e=this.detail)||void 0===e?void 0:e.ycOrOth)||(null===(t=this.detail)||void 0===t?void 0:t.ycOrOt)||"玉柴";return"竞品"===r?"竞品发动机数据":"玉柴发动机数据"},hasAdminPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){return 1===e.isAdmin}))}catch(r){return console.error("检查管理员权限失败:",r),!1}},hasGlobalEditPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);if(!Array.isArray(t))return!1;var r=this.getMenuPath();return t.some((function(e){var t=e.permissionPath||"",a=e.parameterPer||"";return t===r&&"编辑"===a}))}catch(a){return console.error("检查全局编辑权限失败:",a),!1}},hasSubsystemPermission:function(e){if(this.hasAdminPermission())return!0;if(this.hasGlobalEditPermission())return!0;try{var t=localStorage.getItem("user_self_role");if(!t)return!1;var r=JSON.parse(t);if(!Array.isArray(r))return!1;var a=r.filter((function(t){if(!t.permissionPath)return!1;var r=t.permissionPath.split("/");return r.length>=2&&r[1]===e}));return a.length>0}catch(n){return console.error("检查子系统权限失败:",n),!1}},hasViewPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.getMenuPath();return this.checkPermission(t,e,"查看")},hasEditPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.hasAdminPermission())return!0;if(this.hasGlobalEditPermission())return!0;var t=this.getMenuPath();return this.checkPermission(t,e,"编辑")},hasParameterEditPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this.hasAnyEditPermission())return!0;if(this.hasAdminPermission())return!0;var a=this.getMenuPath();try{var n=localStorage.getItem("user_self_role");if(!n)return!1;var i=JSON.parse(n);if(!Array.isArray(i))return!1;var o=i.some((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return t===a&&"编辑"===r}));if(o)return!0;var s=i.filter((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return"编辑"===r&&t.startsWith(a+"/")}));if(0===s.length)return!1;var l,c=Tr(s);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.permissionPath||"",p=d.split("/").filter((function(e){return""!==e.trim()}));if(!(p.length<2)){var h=p[0];if(h===a)if(2===p.length){var f=p[1];if(t&&f===t&&(!r||"/"===r))return!0}else if(p.length>=3){var m=p[1],g=p[2];if(!t||m!==t)continue;if(!r||"/"===r)continue;if(g===r)return!0}}}}catch(v){c.e(v)}finally{c.f()}return!1}catch(v){return console.error("检查参数权限失败:",v),!1}},hasAnyViewPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);if(!Array.isArray(t))return!1;var r=this.getMenuPath(),a=t.filter((function(e){var t=e.menuPath&&(e.menuPath.includes(r)||r.includes(e.menuPath));return t&&"查看"===e.parameterPer}));return a.length>0}catch(n){return console.error("检查查看权限失败:",n),!1}},hasAnyEditPermission:function(){var e=String(this.detail.dataType||"");if(console.log(e),this.fromTodo&&this.detail&&("数据维护"===e||"数据拒绝"===e))return!0;if(this.hasAdminPermission())return!0;var t=this.getMenuPath();try{var r=localStorage.getItem("user_self_role");if(!r)return!1;var a=JSON.parse(r);if(!Array.isArray(a))return!1;var n=a.some((function(e){var r=e.permissionPath||"",a=e.parameterPer||"";return r===t&&"编辑"===a}));if(n)return!0;var i=a.some((function(e){var r=e.permissionPath||"",a=e.parameterPer||"";return"编辑"===a&&r.startsWith(t+"/")}));return i}catch(o){return console.error("检查编辑权限失败:",o),!1}},isResponsiblePersonProjectMatch:function(e){var t=this.treeFirstLevelPartsName;return!t||!e||(e.partsName||"")===t},isResponsiblePersonSubsystemDeptMatch:function(e,t,r){if(!e)return!1;var a=!1;if(r&&e.department){var n=r.replace(/·/g,"-"),i=e.department.replace(/·/g,"-"),o=i===n||i.startsWith(n+"-"),s=this.isZQOrZZPowerPlatformDept(r)&&this.isZQOrZZPowerPlatformDept(e.department);a=o||s}else r||e.department||(a=!0);return a},loadResponsiblePersons:function(){var e=this;if(this.isCompetitiveEngineEntry)return this.responsiblePersons=[],Promise.resolve();var t={pageNumber:1,pageSize:9999},r=this.treeFirstLevelPartsName;r&&(t.partsName=r);var a=Mr(Mr({},et.GET_MANAGER_DATA),{},{params:t,disableSuccessMsg:!0});return this.$request(a).asyncThen((function(t){if(t&&t.data){var r=t.data.result||[];e.responsiblePersons=r.map((function(e){return{id:e.userId||e.id,userId:e.userId||e.userNumber||"",userNumber:e.userNumber||e.userId||"",userName:e.username||"",department:e.department||"",subsystem:e.subsystem||"",partsName:e.partsName||""}}))}else e.responsiblePersons=[]})).asyncErrorCatch((function(t){console.error("加载责任人列表失败:",t),e.responsiblePersons=[]}))},isFillerPersonProjectMatch:function(e){var t=this.treeFirstLevelPartsName;return!t||!e||(e.partsName||"")===t},loadFillerPersons:function(){var e=this,t={pageNumber:1,pageSize:9999},r=this.treeFirstLevelPartsName;r&&(t.partsName=r);var a=Mr(Mr({},et.GET_FILLER_DATA),{},{params:t,disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){if(t&&t.data){var r=t.data.result||[];e.fillerPersons=r.map((function(e){return{id:e.userId||e.userNumber||"",userId:e.userId||e.userNumber||"",userNumber:e.userNumber||e.userId||"",userName:e.username||"",department:e.department||"",subsystem:e.subsystem||"",partsName:e.partsName||""}}))}else e.fillerPersons=[]})).asyncErrorCatch((function(t){console.error("加载填写人列表失败:",t),e.fillerPersons=[]}))},getFilteredResponsiblePersons:function(e,t){var r=this;return this.responsiblePersons.filter((function(a){if(!r.isResponsiblePersonProjectMatch(a))return!1;if(!e&&!t)return!0;if(e&&a.department!==e)return!1;if(t){var n=a.subsystem?a.subsystem.split(","):[];if(!n.includes(t))return!1}return!0}))},getFilteredFillerPersons:function(e,t){var r=this;return this.fillerPersons.filter((function(a){if(!r.isFillerPersonProjectMatch(a))return!1;if(!e&&!t)return!0;if(e&&a.department!==e)return!1;if(t){var n=a.subsystem?a.subsystem.split(","):[];if(!n.includes(t))return!1}return!0}))},getFillerUserOptions:function(e){var t=e.id||"".concat(e.subsystemName,"-").concat(e.parameterName);return this.fillerUserOptions[t]||[]},getParamDraftKey:function(e){return e?null!=e.id&&""!==e.id?String(e.id):"".concat(e.subsystemName||"","-").concat(e.parameterName||""):""},restoreFillerUserOption:function(e,t){if(e&&t&&t.userId){this.fillerUserOptions[e]||this.$set(this.fillerUserOptions,e,[]);var r=this.fillerUserOptions[e].findIndex((function(e){return e.userId===t.userId}));r>=0?this.$set(this.fillerUserOptions[e],r,t):this.fillerUserOptions[e].push(t)}},saveDispatchParamDraft:function(e){if(this.isDispatchMode&&e){var t=this.getParamDraftKey(e);if(t){var r=Mr({},this.dispatchParamDraftCache[t]||{});if("update_param"===this.dispatchType){if(e.filledByUserId||e.filledBy){r.filledBy=e.filledBy,r.filledByUserId=e.filledByUserId,r.filledByName=e.filledByName||"";var a=t,n=(this.fillerUserOptions[a]||[]).find((function(t){return t.userId===e.filledByUserId}));n?r.fillerOption=Mr({},n):r.filledByName&&(r.fillerOption={userId:e.filledByUserId,username:r.filledByName,userNumber:e.filledByUserId})}}else(e.resPersonId||e.owner)&&(r.resPersonId=e.resPersonId,r.owner=e.owner);Object.keys(r).length>0&&this.$set(this.dispatchParamDraftCache,t,r)}}},applyDispatchParamDraft:function(e){if(!this.isDispatchMode||!e)return e;var t=this.getParamDraftKey(e),r=this.dispatchParamDraftCache[t];if(!r)return e;var a=Mr({},e);return void 0!==r.resPersonId&&(a.resPersonId=r.resPersonId),void 0!==r.owner&&(a.owner=r.owner),void 0!==r.filledBy&&(a.filledBy=r.filledBy),void 0!==r.filledByUserId&&(a.filledByUserId=r.filledByUserId),void 0!==r.filledByName&&(a.filledByName=r.filledByName),r.fillerOption&&a.filledByUserId&&this.restoreFillerUserOption(t,r.fillerOption),a},handleFillerRemoteSearch:function(e,t){var r=this,a=t.id||"".concat(t.subsystemName,"-").concat(t.parameterName);if(e&&""!==e.trim()){this.fillerUserLoading=!0;var n=e.trim(),i=Mr(Mr({},et.GET_ALLUSERS),{},{params:{name:n},disableSuccessMsg:!0});this.$request(i).asyncThen((function(e){var n=e&&e.data,i=[];Array.isArray(n)?i=n:n&&Array.isArray(n.result)?i=n.result:n&&n.data&&Array.isArray(n.data)&&(i=n.data);var o=i.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),s=t.filledByUserId,l=(r.fillerUserOptions[a]||[]).filter((function(e){return e.userId&&e.userId===s})),c=new Map;l.forEach((function(e){e.userNumber&&c.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!c.has(e.userNumber)&&c.set(e.userNumber,e)})),r.$set(r.fillerUserOptions,a,Array.from(c.values())),r.fillerUserLoading=!1})).asyncErrorCatch((function(e){if(console.error("搜索填写人失败:",e),t.filledByUserId){var n=(r.fillerUserOptions[a]||[]).filter((function(e){return e.userId===t.filledByUserId}));r.$set(r.fillerUserOptions,a,n)}else r.$set(r.fillerUserOptions,a,[]);r.fillerUserLoading=!1}))}else if(t.filledByUserId){var o=(this.fillerUserOptions[a]||[]).filter((function(e){return e.userId===t.filledByUserId}));this.$set(this.fillerUserOptions,a,o)}else this.$set(this.fillerUserOptions,a,[])},handleFillerChange:function(e,t){var r=t.id||"".concat(t.subsystemName,"-").concat(t.parameterName);if(e){t.filledBy=e;var a=(this.fillerUserOptions[r]||[]).find((function(t){return t.userId===e}));a&&(t.filledByName=a.username||""),this.saveDispatchParamDraft(t)}else{t.filledBy="",t.filledByUserId="",t.filledByName="";var n=this.getParamDraftKey(t);n&&this.dispatchParamDraftCache[n]&&this.$delete(this.dispatchParamDraftCache,n)}},handleUpdateDraftCache:function(e,t){e&&t&&this.$set(this.dispatchParamDraftCache,e,t)},getFilteredPersonsByDepartment:function(e){return e?this.responsiblePersons.filter((function(t){return t.department===e})):this.responsiblePersons},getPersonNameById:function(e){if(!e)return"";var t=this.responsiblePersons.find((function(t){return t.id===e}));return t?t.userName:(t=this.fillerPersons.find((function(t){return t.id===e})),t?t.userName:"")},handleBack:function(){this.isApprovalMode?this.handleApprovalCancel():(console.log("handleBack called"),this.$emit("back"))},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},onVersionChange:function(){this.isTreeAndContentLoading||(this.hasVersionChanged=!0,this.isEditMode&&this.handleCancelEdit(),this.checkedKeys&&this.checkedKeys.length>0&&this.loadTreeData())},onVersionStatusChange:function(e,t,r){console.log("Version changed:",e,t,r)},filterTreeNode:function(e,t){var r=this;if(!e)return!0;var a=e.toLowerCase(),n=this.nodeMap[t.id];if(!n)return(t.label||"").toLowerCase().includes(a);var i=(t.label||"").toLowerCase(),o=null===n.parentLabel,s=null!==n.parentLabel&&!0===n.isParent,l=null!==n.parentLabel&&!1===n.isParent;if("subsystem"===this.treeSearchMode){if(s){if(i.includes(a))return!0}else if(l){var c=Object.values(this.nodeMap).find((function(e){return e.label===n.parentLabel&&!0===e.isParent}));if(c){var u=(c.label||"").toLowerCase();if(u.includes(a))return!0}}else if(o)return!0;return!1}if(l)return i.includes(a);if(s){if(t.children&&Array.isArray(t.children))return t.children.some((function(e){var t=(e.label||"").toLowerCase();return t.includes(a)}))}else if(o){var d=function e(t){return!(!t.children||!Array.isArray(t.children))&&t.children.some((function(t){var n=r.nodeMap[t.id];if(n&&null!==n.parentLabel&&!1===n.isParent){var i=(t.label||"").toLowerCase();if(i.includes(a))return!0}else if(n&&null!==n.parentLabel&&!0===n.isParent)return e(t);return!1}))};return d(t)}return!1},handleTreeCheck:function(e,t){this.checkedKeys=t.checkedKeys,this.loadEngineDetail()},allowDrag:function(e){var t=this.nodeMap[e.data.id];return!!t&&(t.isParent&&!t.isWholeEngineParams&&null!==t.parentLabel)},allowDrop:function(e,t,r){var a=this.nodeMap[e.data.id],n=this.nodeMap[t.data.id];if(!a||!n)return!1;var i=a.isParent&&!a.isWholeEngineParams&&null!==a.parentLabel,o=n.isParent&&!n.isWholeEngineParams&&null!==n.parentLabel,s=null===n.parentLabel&&n.isParent;return"prev"===r||"next"===r?i&&o:"inner"===r&&(i&&s)},handleSyncVersion:function(){var e=Mr(Mr({},et.GET_NEW_MODEL_VERSION),{},{params:{modelId:this.engineModelID,userId:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){e&&e.data&&console.log("同步参数版本成功:",e.data)})).asyncErrorCatch((function(e){console.error("同步参数版本失败:",e)}))},handleNodeDrop:function(e,t,r,a){var n=this,i=this.treeData.find((function(t){var r;return t.id===e.data.id||(null===(r=n.nodeMap[e.data.id])||void 0===r?void 0:r.parentLabel)===t.label}));if(i)this.handleSubsystemReorder(i,e,t,r);else if(this.treeData.length>0){var o=this.treeData[0];this.handleSubsystemReorder(o,e,t,r)}},handleSubsystemReorder:function(e,t,r,a){var n=this;if(e&&e.children){var i=e.children||[],o=i.find((function(e){return n.nodeMap[e.id]&&n.nodeMap[e.id].isWholeEngineParams})),s=i.filter((function(e){return!n.nodeMap[e.id]||!n.nodeMap[e.id].isWholeEngineParams})),l=t.data.id,c=r.data.id,u=s.findIndex((function(e){return e.id===l})),d=s.findIndex((function(e){return e.id===c}));if(-1!==u&&-1!==d){var p=s.splice(u,1)[0],h=d;"prev"===a?h=d:"next"===a?h=d+1:"inner"===a&&(h=d),u0&&(a=a.concat(e(r.children)))})),a};return r(e)},handleDeptRemoteSearch:function(e){this.deptSearchText=e||""},handleBatchModifyDept:function(){var e=this;this.batchModifyDeptFormData={subsystem:"",partsName:[],department:""},this.batchModifyDeptSubsystemList=[],this.batchModifyDeptPartsNameList=[],this.batchModifyDeptSearchText="";var t=this.versionData[this.currentVersionId]||{},r=new Set;Object.keys(t).forEach((function(e){var a=t[e]||[];a.forEach((function(e){e.subsystemName&&r.add(e.subsystemName)}))})),this.batchModifyDeptSubsystemList=Array.from(r).sort(),this.batchModifyDeptDialogVisible=!0,this.$nextTick((function(){e.$refs.batchModifyDeptForm&&e.$refs.batchModifyDeptForm.clearValidate()}))},handleBatchModifyDeptSubsystemChange:function(e){if(this.batchModifyDeptFormData.partsName=[],this.batchModifyDeptFormData.department="",this.batchModifyDeptPartsNameList=[],e){var t=this.versionData[this.currentVersionId]||{},r=new Set;Object.keys(t).forEach((function(a){var n=t[a]||[];n.forEach((function(t){if(t.subsystemName===e){var n=t.partsName||a;n&&r.add(n)}}))})),this.batchModifyDeptPartsNameList=Array.from(r).sort()}},handleBatchModifyDeptRemoteSearch:function(e){this.batchModifyDeptSearchText=e||""},handleBatchModifyDeptDialogClose:function(){this.batchModifyDeptDialogVisible=!1,this.batchModifyDeptFormData={subsystem:"",partsName:[],department:""},this.batchModifyDeptSubsystemList=[],this.batchModifyDeptPartsNameList=[],this.batchModifyDeptSearchText="",this.$refs.batchModifyDeptForm&&this.$refs.batchModifyDeptForm.clearValidate()},handleBatchModifyDeptConfirm:function(){var e=this;this.$refs.batchModifyDeptForm.validate((function(t){if(t){var r=e.batchModifyDeptFormData,a=r.subsystem,n=r.partsName,i=r.department;if(!a||!n||!Array.isArray(n)||0===n.length||!i)return void e.$message({type:"warning",message:"请完整填写表单信息"});var o=e.resolveDepartmentId(i),s=e.versionData[e.currentVersionId]||{},l=0;Object.keys(s).forEach((function(t){var r=s[t]||[];r.forEach((function(r){var s=r.partsName||t;r.subsystemName===a&&n.includes(s)&&(e.$set(r,"department",i),o&&e.$set(r,"departmentId",o),l++)}))})),l>0?(e.$message({type:"success",message:"已批量更新 ".concat(l," 个参数的部门")}),e.handleBatchModifyDeptDialogClose()):e.$message({type:"warning",message:"未找到匹配的参数"})}}))},handleBatchModifyResponsible:function(){this.$refs.batchModifyResponsibleModal.showModal()}},Pr(mr,"handleBatchModifyDeptDialogClose",(function(){this.batchModifyDeptDialogVisible=!1,this.batchModifyDeptFormData={originalDept:"",originalDeptId:"",targetDept:"",targetDeptId:""}})),Pr(mr,"handleBatchModifyDeptConfirm",(function(){var e=this;if(this.batchModifyDeptFormData.originalDept&&this.batchModifyDeptFormData.targetDept)if(this.batchModifyDeptFormData.originalDept!==this.batchModifyDeptFormData.targetDept){var t=this.versionData[this.currentVersionId]||{},r=new Set;Object.keys(t).forEach((function(e){var a=t[e]||[];a.forEach((function(e){e.department&&r.add(e.department)}))}));var a=Array.from(r),n=a.includes(this.batchModifyDeptFormData.originalDept);if(n){var i=[];if(Object.keys(t).forEach((function(r){var a=t[r]||[];a.forEach((function(t){e.isDepartmentMatched(t.department,e.batchModifyDeptFormData.originalDept)&&t.id&&i.push({id:t.id,department:e.batchModifyDeptFormData.targetDept})}))})),0!==i.length){var o=Mr(Mr({},et.BATCH_UPDATE_DEPARTMENT),{},{params:{items:i}});this.batchModifyDeptSubmitting=!0,this.$request(o).asyncThen((function(r){Object.keys(t).forEach((function(r){var a=t[r]||[];a.forEach((function(t,r){if(e.isDepartmentMatched(t.department,e.batchModifyDeptFormData.originalDept)){t.department=e.batchModifyDeptFormData.targetDept;var a=e.responsiblePersons.find((function(r){return e.isResponsiblePersonSubsystemDeptMatch(r,t.subsystemName,t.department)}));a&&(t.resPersonId=a.userId||a.id||"",t.owner=a.userName||a.username||"")}}))})),e.batchModifyDeptSubmitting=!1,e.batchModifyDeptDialogVisible=!1,e.$message.success("成功更新 ".concat(i.length," 个参数的部门"))})).asyncErrorCatch((function(t){console.error("批量更新部门失败:",t),e.$message.error("批量更新部门失败,请重试"),e.batchModifyDeptSubmitting=!1}))}else this.$message.warning("未找到匹配的参数数据")}else{var s="原部门【".concat(this.batchModifyDeptFormData.originalDept,"】不存在于当前数据中。\n当前存在的部门:").concat(a.join("、"));this.$message.warning(s)}}else this.$message.warning("原部门和部门不能相同");else this.$message.warning("请选择原部门和部门")})),Pr(mr,"isDepartmentMatched",(function(e,t){if(!e||!t)return!1;var r=function(e){return e?e.replace(/·/g,"-").trim():""},a=r(e),n=r(t);if(a===n)return!0;for(var i=[["中轻","中重动力平台","平台部","中轻动力平台部","中重动力平台部"]],o=0,s=i;o0&&this.loadTreeData()})),Pr(mr,"handleReplaceAllPerson",(function(){var e=this;this.replaceAllPersonDialogVisible=!0,this.replaceAllPersonSubmitting=!1,this.replaceAllPersonFormData={userId:"",userNumber:"",username:""},this.replaceAllPersonUserOptions=[],this.replaceAllPersonUserLoading=!1,this.$nextTick((function(){e.$refs.replaceAllPersonForm&&e.$refs.replaceAllPersonForm.clearValidate()}))})),Pr(mr,"handleReplaceAllPersonDialogClose",(function(){this.replaceAllPersonDialogVisible=!1,this.replaceAllPersonSubmitting=!1,this.replaceAllPersonFormData={userId:"",userNumber:"",username:""},this.replaceAllPersonUserOptions=[],this.replaceAllPersonUserLoading=!1})),Pr(mr,"handleReplaceAllPersonRemoteSearch",(function(e){var t=this;if(e&&""!==e.trim()){this.replaceAllPersonUserLoading=!0;var r=e.trim(),a=Mr(Mr({},et.GET_ALLUSERS),{},{params:{name:r},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){var r=e&&e.data,a=[];Array.isArray(r)?a=r:r&&Array.isArray(r.result)?a=r.result:r&&r.data&&Array.isArray(r.data)&&(a=r.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=t.replaceAllPersonFormData.userId,o=t.replaceAllPersonUserOptions.filter((function(e){return e.userId&&e.userId===i})),s=new Map;o.forEach((function(e){e.userNumber&&s.set(e.userNumber,e)})),n.forEach((function(e){e.userNumber&&!s.has(e.userNumber)&&s.set(e.userNumber,e)})),t.replaceAllPersonUserOptions=Array.from(s.values()),t.replaceAllPersonUserLoading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),t.replaceAllPersonFormData.userId){var r=t.replaceAllPersonUserOptions.filter((function(e){return e.userId===t.replaceAllPersonFormData.userId}));t.replaceAllPersonUserOptions=r}else t.replaceAllPersonUserOptions=[];t.replaceAllPersonUserLoading=!1}))}else if(this.replaceAllPersonFormData.userId){var n=this.replaceAllPersonUserOptions.filter((function(e){return e.userId===t.replaceAllPersonFormData.userId}));this.replaceAllPersonUserOptions=n}else this.replaceAllPersonUserOptions=[]})),Pr(mr,"handleReplaceAllPersonChange",(function(e){if(e){var t=this.replaceAllPersonUserOptions.find((function(t){return t.userId===e}));t?(this.replaceAllPersonFormData.userId=t.userId,this.replaceAllPersonFormData.userNumber=t.userNumber||t.userId,this.replaceAllPersonFormData.username=t.username||""):(this.replaceAllPersonFormData.userId=e,this.replaceAllPersonFormData.userNumber=e,this.replaceAllPersonFormData.username="")}else this.replaceAllPersonFormData.userId="",this.replaceAllPersonFormData.userNumber="",this.replaceAllPersonFormData.username=""})),Pr(mr,"handleReplaceAllPersonConfirm",(function(){var e=this;this.$refs.replaceAllPersonForm&&this.$refs.replaceAllPersonForm.validate((function(t){if(t){var r=e.replaceAllPersonFormData,a=r.userId,n=r.userNumber,i=r.username;if(a){var o=e.versionData[e.currentVersionId]||{},s=0;if("update_param"===e.dispatchType){var l={userId:a,username:i||"",userNumber:n||a};Object.keys(o).forEach((function(t){var r=o[t]||[];r.forEach((function(r,n){if(1!==r.isDistributedFilled){r.filledBy=a,r.filledByUserId=a,r.filledByName=i||r.filledByName||"",e.$set(o[t],n,r);var c=r.id||"".concat(r.subsystemName,"-").concat(r.parameterName);e.restoreFillerUserOption(c,l),e.saveDispatchParamDraft(r),s++}}))}))}else Object.keys(o).forEach((function(t){var r=o[t]||[];r.forEach((function(r,n){1!==r.isDistributedRes&&(r.resPersonId=a,r.owner=i||r.owner||"",e.$set(o[t],n,r),e.saveDispatchParamDraft(r),s++)}))}));e.$nextTick((function(){e.$forceUpdate()})),0!==s?e.handleReplaceAllPersonDialogClose():e.$message({type:"warning",message:"没有参数被修改"})}else e.$message.warning("请选择人员")}}))})),Pr(mr,"handleBatchModifyConfirm",(function(e){var t=this;if(e){if("update_param"===this.dispatchType){var r=e.subsystem,a=e.partsName,n=e.userId,i=e.userNumber,o=e.username,s=Array.isArray(r)?r:r?[r]:[];if(!s.length||!a||!Array.isArray(a)||0===a.length||!n)return void this.$message({type:"warning",message:"缺少必要参数"});var l=this.versionData[this.currentVersionId]||{},c=0,u={userId:n,username:o||"",userNumber:i||n};return Object.keys(l).forEach((function(e){var r=l[e]||[];r.forEach((function(r,i){var d=r.partsName||e,p=s.some((function(e){return t.isSubsystemNameMatch(r.subsystemName,e)})),h=!1;if("/"===d){var f="".concat(r.subsystemName," - /");h=a.includes(f)}else h=a.includes(d);if(p&&h&&1!==r.isDistributedFilled){r.filledBy=n,r.filledByUserId=n,r.filledByName=o||r.filledByName||"",t.$set(l[e],i,r);var m=r.id||"".concat(r.subsystemName,"-").concat(r.parameterName);t.restoreFillerUserOption(m,u),t.saveDispatchParamDraft(r),c++}}))})),this.$nextTick((function(){t.$forceUpdate()})),c>0?void 0:void this.$message({type:"warning",message:"没有参数被修改"})}if(this.isCompetitiveEngineEntry){var d=e.subsystem,p=e.department,h=e.userId,f=e.username,m=void 0!==h&&null!==h&&""!==h;if(!d||!p||!m)return void this.$message({type:"warning",message:"缺少必要参数,无法更新责任人"});var g=this.versionData[this.currentVersionId]||{},v=f||"";if(!v&&Array.isArray(this.responsiblePersons)&&this.responsiblePersons.length>0){var y=e.newResponsiblePersonId,b=this.responsiblePersons.find((function(e){if(!t.isResponsiblePersonProjectMatch(e))return!1;var r=e.userId||e.id||e.userNumber;return r===h||y&&(e.userNumber===y||r===y)}));b&&(v=b.userName||b.username||"")}var _=0;return Object.keys(g).forEach((function(e){var r=g[e]||[];r.forEach((function(r,a){if(r.subsystemName===d&&r.department===p&&1!==r.isDistributedRes){var n=Mr(Mr({},r),{},{resPersonId:h,owner:v||r.owner||""});t.$set(g[e],a,n),t.saveDispatchParamDraft(n),_++}}))})),0===_?void this.$message({type:"warning",message:"未找到需要更新的责任人数据"}):(this.$nextTick((function(){t.$forceUpdate()})),void this.$message.success("已更新 ".concat(_," 条责任人记录")))}this.loadResponsiblePersons().then((function(){var e=wr(t.checkedKeys);t.loadEngineDetail(),t.$nextTick((function(){t.checkedKeys=e,t.$refs.paramTree&&e.length>0&&t.$refs.paramTree.setCheckedKeys(e)}))}))}})),Pr(mr,"handleConfirmDispatch",(function(){var e=this;this.dispatchLoading=!0;var t,r=[],a=this.versionData[this.currentVersionId]||{},n="update_param"===this.dispatchType,i=[];if(Object.keys(a).forEach((function(t){var o=a[t]||[];o.forEach((function(t){if(n||1!==t.isDistributedRes)if(n&&1===t.isDistributedFilled)i.push(t.parameterName);else{var a=!1,o="";if(n)o=t.filledBy||"",o&&(a=!0);else if(o=t.resPersonId||"",o){a=!0;var s=e.responsiblePersons.find((function(e){return e.userId===o}));if(s&&t.department){var l=e.formatDepartmentDisplay(t.department),c=e.formatDepartmentDisplay(s.department||"");if(l!==c){var u=e.isZQOrZZPowerPlatformDept(l)&&e.isZQOrZZPowerPlatformDept(c)||e.isZQOrZZPowerPlatformDept(t.department)&&e.isZQOrZZPowerPlatformDept(s.department||"");u||(a=!1)}}}if(a){var d={id:t.id,parameterId:t.parameterId,engineModelId:t.engineModelId,parameterValue:t.parameterValue||"",parameterName:t.parameterName,partsName:t.partsName,subsystemName:t.subsystemName,department:t.department,unit:t.unit,majorVersion:t.majorVersion,minorVersion:t.minorVersion,versionStatus:t.versionStatus,operation:"UPDATE"};n?d.filledBy=o:(d.resPersonId=o,d.filledBy=""),r.push(d)}}else i.push(t.parameterName)}))})),0===r.length){var o=n?"填写人":"责任人";return this.dispatchLoading=!1,void this.$message({type:"warning",message:"没有".concat(o,"的数据需要分发")})}t="update_param"===this.dispatchType?et.HANDLE_RESPONSIBLE_DISPATCH:"responsible"===this.dispatchType?et.UPDATE_PARAM:et.HANDLE_TODO_DISPATCH;var s=t.url+de();console.log(this.dispatchType,"this.dispatchType",s,111111);var l=Mr(Mr({},t),{},{url:s,params:r,disableSuccessMsg:!0});this.$request(l).asyncThen((function(t){e.$message({type:"success",message:"分发成功"}),e.dispatchLoading=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("分发失败:",t),e.dispatchLoading=!1,e.$message({type:"error",message:t.message||"分发失败"})})).finally((function(){e.dispatchLoading=!1}))})),Pr(mr,"appendApprovalIdForTodoRequest",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Mr({},e);if(this.fromTodo){var r,a,n=this.todoId||(null===(r=this.detail)||void 0===r?void 0:r.todoId)||(null===(a=this.detail)||void 0===a?void 0:a.approvalId);n&&(t.approvalId=n)}return t})),Pr(mr,"buildTableDetailRequestParams",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Mr({modelID:this.detail.id,parameterVersion:this.currentVersionId||1},e);return this.useResponsiblePersonTableDetailApi&&(t.userID=this.responsiblePersonId||de()),this.appendApprovalIdForTodoRequest(t)})),Pr(mr,"loadEngineDetailInfo",(function(){var e=this;console.log(this.detail,"this.detail",this.detail.id);var t=Mr(Mr({},this.tableDetailApi),{},{params:this.buildTableDetailRequestParams(),disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){t&&t.data&&(e.engineDetailInfo=t.data,!e.isCompetitiveEngineEntry&&e.treeFirstLevelPartsName&&(e.loadResponsiblePersons(),e.loadFillerPersons()))})).asyncErrorCatch((function(t){console.error("获取机型详情失败:",t),e.$message({type:"error",message:"获取机型详情失败"})}))})),Pr(mr,"loadTreeData",(function(){var e=this;if(this.detail&&this.detail.id){this.isTreeAndContentLoading=!0;var t=Mr(Mr({},this.tableDetailApi),{},{params:this.buildTableDetailRequestParams({userID:de()}),disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r=t.data;e.saveWholeEngineParamsData(r),e.treeData=e.convertThreeLevelTree(r),!e.isCompetitiveEngineEntry&&e.treeFirstLevelPartsName&&(e.loadResponsiblePersons(),e.loadFillerPersons());var a=e.getFirstLevelNodeKeys(e.treeData),n=e.getSecondLevelNodeKeys(e.treeData),i=wr(new Set([].concat(wr(a),wr(n)))),o=0===e.expandedKeys.length;o?(e.defaultExpandedKeys=i,e.expandedKeys=wr(i)):e.defaultExpandedKeys=a;var s=e.getAllNodeKeys(e.treeData);e.checkedKeys=s,e.$nextTick((function(){e.$refs.paramTree&&s.length>0&&e.$refs.paramTree.setCheckedKeys(s),o&&e.$nextTick((function(){if(e.$refs.paramTree&&e.$refs.paramTree.store){var t=e.$refs.paramTree.store._getAllNodes();t.forEach((function(t){var r=e.expandedKeys.includes(t.id);r&&!t.expanded?t.expand():!r&&t.expanded&&t.collapse()}))}})),e.detail&&e.detail.id&&s.length>0?e.loadEngineDetail({withPanelLoading:!0}):e.isTreeAndContentLoading=!1}))}else e.isTreeAndContentLoading=!1})).asyncErrorCatch((function(t){console.error("获取参数列表失败:",t),e.isTreeAndContentLoading=!1,e.$message({type:"error",message:"获取参数列表失败"})}))}else console.warn("缺少 detail.id,无法加载树数据")})),Pr(mr,"saveWholeEngineParamsData",(function(e){var t=this;this.wholeEngineParamsRawData=[],Object.keys(e).forEach((function(r){var a=e[r];if("object"===xr(a)&&!Array.isArray(a)){var n=t.getWholeEngineParamsArrayFromSecondLevel(a);n&&(t.wholeEngineParamsRawData=n.filter((function(e){return e&&"/"!==e})))}}))})),Pr(mr,"isWholeEngineSubsystemName",(function(e){return Lr.includes(e)})),Pr(mr,"isSubsystemNameMatch",(function(e,t){return!(!e||!t)&&(e===t||Lr.includes(e)&&Lr.includes(t))})),Pr(mr,"getWholeEngineParamsArrayFromSecondLevel",(function(e){if(!e||"object"!==xr(e))return null;for(var t=0;t0&&t.updateChildrenParentLabel(e.children,e.label)})),[o]})),Pr(mr,"updateChildrenParentLabel",(function(e,t){var r=this;e.forEach((function(e){r.nodeMap[e.id]&&(r.nodeMap[e.id].parentLabel=t),e.children&&e.children.length>0&&r.updateChildrenParentLabel(e.children,e.label)}))})),Pr(mr,"getRootLabel",(function(){if(this.treeData&&this.treeData.length>0)return this.treeData[0].label||"";if(this.engineDetailInfo){var e=this.engineDetailInfo.modelName||"",t=this.engineDetailInfo.projectNumber||"";if(e&&t)return"".concat(e,"-").concat(t);if(e)return e}return this.model?this.model:"机型详情"})),Pr(mr,"convertObjectToTree",(function(e){var t=this,r=[];return this.nodeMap={},Object.keys(e).forEach((function(a,n){var i="parent-".concat(n),o=[],s=new Set;t.nodeMap[i]={label:a,parentLabel:null,isParent:!0},Array.isArray(e[a])&&e[a].forEach((function(e,r){if(!s.has(e)){s.add(e);var n="".concat(i,"-").concat(r);o.push({id:n,label:e,tip:""}),t.nodeMap[n]={label:e,parentLabel:a,isParent:!1}}})),r.push({id:i,label:a,tip:"",children:o})})),r})),Pr(mr,"formatTreeData",(function(e){var t=this;return e.map((function(e,r){var a={id:e.id||e.key||"node-".concat(r),label:e.label||e.name||e.title||"",tip:e.tip||""};if(e.children&&e.children.length>0){var n=new Set,i=[];e.children.forEach((function(e){var t=e.label||e.name||e.title||"";n.has(t)||(n.add(t),i.push(e))})),a.children=t.formatTreeData(i)}return a}))})),Pr(mr,"getAllNodeKeys",(function(e){var t=this,r=[];return e.forEach((function(e){r.push(e.id),e.children&&e.children.length>0&&(r=r.concat(t.getAllNodeKeys(e.children)))})),r})),Pr(mr,"getFirstLevelNodeKeys",(function(e){var t=this,r=[];return e.forEach((function(e){var a=t.nodeMap[e.id];a&&null===a.parentLabel&&r.push(e.id)})),r})),Pr(mr,"getSecondLevelNodeKeys",(function(e){var t=this,r=[],a=function e(a){a.forEach((function(a){var n=t.nodeMap[a.id];n&&null!==n.parentLabel&&!0===n.isParent&&r.push(a.id),a.children&&a.children.length>0&&e(a.children)}))};return a(e),r})),Pr(mr,"handleNodeExpand",(function(e,t){this.expandedKeys.includes(e.id)||this.expandedKeys.push(e.id)})),Pr(mr,"handleNodeCollapse",(function(e,t){var r=this.expandedKeys.indexOf(e.id);r>-1&&this.expandedKeys.splice(r,1)})),Pr(mr,"handleExpandAllSecondLevel",(function(){var e=this,t=this.getFirstLevelNodeKeys(this.treeData),r=this.getSecondLevelNodeKeys(this.treeData),a=wr(new Set([].concat(wr(t),wr(r))));this.expandedKeys=wr(a),this.$nextTick((function(){if(e.$refs.paramTree)if("function"!==typeof e.$refs.paramTree.setExpandedKeys){if(console.warn("setExpandedKeys 方法不存在,尝试使用 store 方式"),e.$refs.paramTree.store){var t=e.$refs.paramTree.store._getAllNodes();t.forEach((function(t){var r=e.nodeMap[t.id];r&&(null===r.parentLabel||null!==r.parentLabel&&!0===r.isParent)&&a.includes(t.id)&&!t.expanded&&t.expand()}))}}else e.$refs.paramTree.setExpandedKeys(a);else console.warn("$refs.paramTree 不存在,无法展开节点")}))})),Pr(mr,"handleCollapseAllSecondLevel",(function(){var e=this,t=this.getFirstLevelNodeKeys(this.treeData);this.expandedKeys=wr(t),this.$nextTick((function(){if(e.$refs.paramTree)if("function"!==typeof e.$refs.paramTree.setExpandedKeys){if(console.warn("setExpandedKeys 方法不存在,尝试使用 store 方式"),e.$refs.paramTree.store){var r=e.$refs.paramTree.store._getAllNodes();r.forEach((function(t){var r=e.nodeMap[t.id];r&&null!==r.parentLabel&&!0===r.isParent&&t.expanded&&t.collapse()}))}}else e.$refs.paramTree.setExpandedKeys(t);else console.warn("$refs.paramTree 不存在,无法收起节点")}))})),Pr(mr,"getSelectedSubsystemsAndTypes",(function(){var e=this,t=[],r=[],a=[],n=new Set,i=new Set;return this.checkedKeys.forEach((function(o){var s=e.nodeMap[o];if(s&&null!==s.parentLabel&&!s.isWholeEngineParams)if(s.isParent){if(s.isWholeEngineParams)return;n.has(s.label)||(t.push(s.label),n.add(s.label));var l="".concat(s.label,"-/");i.has(l)||(a.push(l),i.add(l))}else{if(e.isWholeEngineSubsystemName(s.parentLabel))return;if(s.parentLabel&&!n.has(s.parentLabel)&&(t.push(s.parentLabel),n.add(s.parentLabel)),s.label){var c=s.label;if(c.includes(":")&&(c=c.split(":")[0]),r.push(c),s.parentLabel){var u="".concat(s.parentLabel,"-").concat(c);i.has(u)||(a.push(u),i.add(u))}}}})),{subsystemNames:t,parameterTypes:r,subsystemTypes:a}})),Pr(mr,"handleExportTemplate",(function(){var e,t,r,a=this,n=this.todoId||(null===(e=this.detail)||void 0===e?void 0:e.todoId)||(null===(t=this.detail)||void 0===t?void 0:t.approvalId),i=this.flowId||(null===(r=this.detail)||void 0===r?void 0:r.flowId),o={url:et.EXPORT_TEMPLATE.url,method:et.EXPORT_TEMPLATE.method,params:Mr(Mr({engineModelID:this.detail.id,userId:de()},n?{approvalId:n}:{}),i?{flowId:i}:{}),responseType:"blob"};this.$axios(o).then((function(e){var t=e.data;if(t){var r=e.headers&&(e.headers["content-type"]||e.headers["Content-Type"]);if(r&&r.includes("application/json"))try{var n=new FileReader;n.onload=function(){try{var e=JSON.parse(n.result);a.$message.error(e.message||"下载失败")}catch(t){a.$message.error("下载失败")}},n.readAsText(t)}catch(d){console.error("解析下载失败响应异常:",d),a.$message.error("下载失败")}else{var i=e.headers&&(e.headers["content-disposition"]||e.headers["Content-Disposition"]),o="导入模板.xlsx";if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(d){o=l}}var c=window.URL.createObjectURL(t),u=document.createElement("a");u.href=c,u.download=o,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c)}}else a.$message.error("下载失败,文件内容为空")})).catch((function(e){console.error("导出模板失败:",e),a.$message.error("导出模板失败")}))})),Pr(mr,"handleImport",(function(){this.importing||this.$refs.fileInput.click()})),Pr(mr,"handleFileChange",(function(e){var t=e.target.files&&e.target.files[0];if(t){var r=t.name.split(".").pop().toLowerCase();if(!["xlsx","xls"].includes(r))return this.$message({type:"warning",message:"请选择 Excel 文件(.xlsx 或 .xls)"}),void(e.target.value="");this.uploadFile(t),e.target.value=""}})),Pr(mr,"uploadFile",(function(e){var t=this,r=new FormData;r.append("file",e),r.append("modelId",this.detail.id),r.append("userId",de());var a=Mr(Mr({},et.IMPORT_ENGINE_MODEL),{},{params:r,disableSuccessMsg:!0});this.importing=!0,this.$upload(a,null,!1).then((function(e){console.log("导入成功:",e),t.loadEngineDetail()})).catch((function(e){console.error("导入失败:",e),t.$message({type:"error",message:"导入失败,请稍后重试"})})).finally((function(){t.importing=!1}))})),Pr(mr,"loadEngineDetail",(function(){var e,t,r=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a.withPanelLoading,i=void 0!==n&&n;i&&(this.isTreeAndContentLoading=!0);var o=this.detail&&this.detail.id||this.currentEngineModelID;if(!o)return console.warn("缺少 engineModelID,无法加载详情"),void(i&&(this.isTreeAndContentLoading=!1));var s=this.getSelectedSubsystemsAndTypes(),l=s.subsystemNames,c=s.parameterTypes,u=s.subsystemTypes;if(0!==l.length||0!==c.length){console.log(l,c,u);var d={engineModelID:o,userID:this.lastUpdatedBy||de(),subsystemParts:u};this.hasVersionChanged&&this.currentVersionId&&(d.parameterVersion=this.currentVersionId);var p=de();"update_param"===this.dispatchType?d.responsiblePersonId=this.responsiblePersonId||p:!this.isDispatchMode&&this.isEditMode?d.filledById=this.filledBy||p:this.filledBy?d.filledById=this.filledBy:this.fromTodo&&this.canResend&&(d.filledById=p),this.isDispatchMode&&"update_param"!==this.dispatchType&&(d.isRes=1);var h=this.todoId||(null===(e=this.detail)||void 0===e?void 0:e.todoId)||(null===(t=this.detail)||void 0===t?void 0:t.approvalId);h&&(d.approvalId=h);var f=this.chunkSubsystemParts(d.subsystemParts,60),m=f.map((function(e){return r.requestEngineDetailBatch(Mr(Mr({},d),{},{subsystemParts:e}))}));Promise.all(m).then((function(e){var t=r.mergeEngineDetailBatchData(e.map((function(e){return e&&e.data||{}})));if(console.log("接口返回数据:",e),t&&Object.keys(t).length>0){console.log("准备处理的数据:",t);var a=null;r.isDispatchMode&&!r.dispatchOriginalData&&(a=JSON.parse(JSON.stringify(r.versionData))),r.processDetailData(t),r.isDispatchMode&&!r.dispatchOriginalData&&a?r.$nextTick((function(){r.dispatchOriginalData=a})):r.isDispatchMode&&!r.dispatchOriginalData&&r.$nextTick((function(){r.dispatchOriginalData=JSON.parse(JSON.stringify(r.versionData))}))}else console.warn("接口返回数据为空或格式不正确",e);i&&(r.isTreeAndContentLoading=!1)})).catch((function(e){console.error("获取引擎详情失败:",e),i&&(r.isTreeAndContentLoading=!1),r.$message.error("获取引擎详情失败")}))}else i&&(this.isTreeAndContentLoading=!1)})),Pr(mr,"chunkSubsystemParts",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(!Array.isArray(e)||0===e.length)return[];for(var r=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return t&&"object"===xr(t)?(Object.keys(t).forEach((function(r){var a=t[r];Array.isArray(a)&&(e[r]||(e[r]=[]),e[r]=e[r].concat(a))})),e):e}),{})})),Pr(mr,"processDetailData",(function(e){var t=this;e&&"object"===xr(e)?(this.versionData[this.currentVersionId]||this.$set(this.versionData,this.currentVersionId,{}),Object.keys(e).forEach((function(r){var a=e[r];Array.isArray(a)&&a.forEach((function(e){var a=e.partsName||e.parameterType||"其他",n=e.parameterName||"",i="/"===a?r:a;t.versionData[t.currentVersionId][i]||t.$set(t.versionData[t.currentVersionId],i,[]);var o=t.versionData[t.currentVersionId][i].findIndex((function(t){return e.id&&t.id?t.id===e.id:t.parameterName===n&&t.subsystemName===r})),s=e.resPersonId||e.responsiblePersonId||e.filledBy||"",l="",c="",u="";e.filler&&e.filler.id?(l=e.filler.id,c=e.filler.id,u=e.filler.username||""):(l=e.filledBy||e.responsiblePersonId||"",l&&(c=l));var d=(e.department||"平台部").replace(/·/g,"-"),p=e.owner||e.responsiblePerson||e.responsiblePersonName||"",h=s,f=t.getParamDraftKey({id:e.id,subsystemName:r,parameterName:n}),m=t.isDispatchMode?t.dispatchParamDraftCache[f]:null;if(t.responsiblePersons&&t.responsiblePersons.length>0&&(!m||!m.owner&&!m.resPersonId)){var g=t.responsiblePersons.find((function(e){return t.isResponsiblePersonProjectMatch(e)&&t.isResponsiblePersonSubsystemDeptMatch(e,r,d)}));g&&(p=g.userName||"",h=g.userId||g.id||"")}var v={parameterName:n,partsName:a,parameterValue:void 0!==e.parameterValue&&null!==e.parameterValue&&""!==e.parameterValue?e.parameterValue:void 0!==e.value&&null!==e.value&&""!==e.value?e.value:void 0!==e.minorVersion&&null!==e.minorVersion&&""!==e.minorVersion?e.minorVersion:"",parameterSource:e.parameterSource||"",unit:e.unit||"-",department:d,owner:p,subsystemName:r,id:e.id,parameterId:e.parameterId,engineModelId:e.engineModelId,majorVersion:e.majorVersion,minorVersion:e.minorVersion,versionStatus:e.versionStatus,version:t.currentVersionId,resPersonId:h,filledBy:l,filledByUserId:c,filledByName:u,isDistributedRes:e.isDistributedRes||0,isDistributedFilled:e.isDistributedFilled||0},y=t.applyDispatchParamDraft(v);if(e.filler&&e.filler.id&&y.filledByUserId){var b=y.id||"".concat(y.subsystemName,"-").concat(y.parameterName),_={userId:y.filledByUserId,username:y.filledByName||u||e.filler.username||"",userNumber:e.filler.userNumber||e.filler.userId||y.filledByUserId};t.restoreFillerUserOption(b,_)}o>=0?t.$set(t.versionData[t.currentVersionId][i],o,y):t.versionData[t.currentVersionId][i].push(y)}))})),console.log("处理后的数据:",this.versionData[this.currentVersionId])):console.warn("processDetailData: 数据格式不正确",e)})),Pr(mr,"handleInitiateApproval",(function(){var e=this;if(this.shouldShowResendButton){var t;this.isResendMode=!0;var r=this.flowId||(null===(t=this.detail)||void 0===t?void 0:t.flowId)||"",a=Mr(Mr({},et.GET_DATA_APPROVAL_USERS),{},{params:{templateId:r},disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){t&&t.data?(e.resendApprovalData=Mr({},t.data),console.log("获取审批流程信息:",t,e.resendApprovalData)):(console.warn("获取审批流程信息: resp.data 为空",t),e.resendApprovalData={nodeList:[],processTitle:"",description:""}),e.$nextTick((function(){e.getApprovalChange()}))})).asyncErrorCatch((function(t){console.error("获取审批流程信息失败:",t),e.isResendMode=!1,e.resendApprovalData=null,e.getApprovalChange(),e.$message.warning("获取原审批流程信息失败,将使用空的人员列表")}))}else{var n,i;this.isResendMode=!1,this.resendApprovalData=null,this.isApprovalMode=!0;var o=(null===(n=this.detail)||void 0===n?void 0:n.modelName)||"产品型号",s=this.wholeEngineParamsData[Er]||[],l=s.find((function(e){return"状态代号"===e.parameterName||"产品代号"===e.parameterName})),c=(null===l||void 0===l?void 0:l.parameterValue)||(null===(i=this.detail)||void 0===i?void 0:i.productNumber)||"状态代号";console.log("statusCode",c,l),this.approvalFormData={processTitle:"".concat(o,"-").concat(c,"发起审批"),description:""},this.approvalChangeData=[],this.getApprovalChange(),this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"会签",required:!1,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}]}})),Pr(mr,"getApprovalChange",(function(){var e=this,t=Mr(Mr({},et.CHANGE_ENGINE_DATA),{},{params:{modelID:this.detail.id,userID:de()},disableSuccessMsg:!0});return this.$request(t).asyncThen((function(t){if(console.log("审批变更数据:",t),t&&t.data?Array.isArray(t.data)?e.approvalChangeData=t.data:t.data.result&&Array.isArray(t.data.result)?e.approvalChangeData=t.data.result:t.data.data&&Array.isArray(t.data.data)?e.approvalChangeData=t.data.data:e.approvalChangeData=[]:e.approvalChangeData=[],e.isResendMode&&e.resendApprovalData){e.isApprovalMode=!0;var r=Mr({},e.resendApprovalData);e.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"会签",required:!1,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],e.$nextTick((function(){e.fillResendApprovalData(r),e.originalApprovalWorkflowSteps=JSON.parse(JSON.stringify(e.approvalWorkflowSteps)),e.originalProcessTitle=e.approvalFormData.processTitle||"",e.isResendMode=!1,e.resendApprovalData={nodeList:[],processTitle:"",description:""}}))}else{var a,n;e.isApprovalMode=!0;var i=(null===(a=e.detail)||void 0===a?void 0:a.modelName)||"产品型号",o=e.wholeEngineParamsData[Er]||[],s=o.find((function(e){return"状态代号"===e.parameterName||"产品代号"===e.parameterName})),l=(null===s||void 0===s?void 0:s.parameterValue)||(null===(n=e.detail)||void 0===n?void 0:n.productNumber)||"状态代号";console.log("statusCode",l,s),e.approvalFormData={processTitle:"".concat(i,"-").concat(l,"发起审批"),description:""},e.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"会签",required:!1,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}]}})).asyncErrorCatch((function(t){console.error("获取审批变更失败:",t),e.approvalChangeData=[],e.$message({type:"error",message:"获取审批变更数据失败"})}))})),Pr(mr,"getResendApprovalChange",(function(){var e={url:et.CHANGE_ENGINE_DATA.url,method:et.CHANGE_ENGINE_DATA.method,params:{modelID:this.detail.id,userID:de()},disableSuccessMsg:!0};return this.$axios(e).then((function(e){return console.log("重新发起审批变更数据:",e),e})).catch((function(e){return console.error("获取重新发起审批变更数据失败:",e),Promise.resolve()}))})),Pr(mr,"handleApprovalCancel",(function(){this.isApprovalMode=!1,this.isResendMode=!1,this.resendApprovalData={nodeList:[],processTitle:"",description:""},this.originalApprovalWorkflowSteps=null,this.originalProcessTitle="",this.approvalFormData={processTitle:"",description:""},this.approvalChangeData=[],this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"会签",required:!1,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}]})),Pr(mr,"canResendApproval",(function(){var e,t=this,r=(null===(e=this.detail)||void 0===e?void 0:e.flowId)||this.flowId;if(r){var a=Mr(Mr({},et.CHECK_DATA_CAN_RETURN),{},{params:{flowId:r},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){console.log("检查是否可以直送:",e),t.canResend=e.data||!1})).asyncErrorCatch((function(e){console.error("获取是否可以直送失败:",e),t.canResend=!1}))}else this.canResend=!1})),Pr(mr,"handleReject",(function(){var e,t,r=this,a=this.todoId||(null===(e=this.detail)||void 0===e?void 0:e.todoId)||(null===(t=this.detail)||void 0===t?void 0:t.id);a?this.$confirm("确定要退回此任务吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r.rejecting=!0;var e={todoId:a},t=de();r.isDispatchMode&&"update_param"===r.dispatchType?e.responsiblePersonId=r.responsiblePersonId||t:r.isDispatchMode&&"todo"===r.dispatchType?e.resPersonId=t:r.isFillerTodoEntry&&(e.fillerId=r.filledBy||t);var n=Mr(Mr({},et.REJECT_TODO_TASK),{},{params:e,disableSuccessMsg:!0});r.$request(n).asyncThen((function(e){r.$message({message:"退回成功",type:"success"}),r.rejecting=!1,r.$emit("refresh"),r.handleBack()})).asyncErrorCatch((function(e){console.error("退回失败:",e),r.$message({message:e.message||"退回失败,请重试",type:"error"}),r.rejecting=!1}))})).catch((function(){})):this.$message.error("缺少待办ID,无法执行退回操作")})),Pr(mr,"executeResend",(function(){var e=Mr(Mr({},et.RESEND_DATA_APPROVAL),{},{params:{flowId:this.flowId,userId:de()},disableSuccessMsg:!0});return this.$request(e)})),Pr(mr,"handleResend",(function(){var e=this;this.detail&&this.detail.id?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0,e.getResendApprovalChange().then((function(){return e.executeResend()})).catch((function(){return e.executeResend()})).asyncThen((function(t){e.$message({message:"直送成功",type:"success"}),e.$emit("refresh"),e.resending=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1}))})).catch((function(){})):this.$message.error("缺少审批ID,无法执行直送操作")})),Pr(mr,"fillResendApprovalData",(function(e){var t=this;if(console.log("fillResendApprovalData 接收到的数据:",e),e){var r=e.nodeList||[];console.log("提取的 nodeList:",r);var a=e&&e.data?e.data:e;if(a&&!Array.isArray(a)){if(a.progressTitle||a.processTitle)this.approvalFormData.processTitle=a.progressTitle||a.processTitle||"";else{var n,i,o=(null===(n=this.detail)||void 0===n?void 0:n.modelName)||"产品型号",s=(null===(i=this.detail)||void 0===i?void 0:i.productNumber)||"状态代号";this.approvalFormData.processTitle="".concat(o,"-").concat(s,"发起审批")}(a.explanation||a.description)&&(this.approvalFormData.description=a.explanation||a.description||"")}else{var l,c,u=(null===(l=this.detail)||void 0===l?void 0:l.modelName)||"产品型号",d=(null===(c=this.detail)||void 0===c?void 0:c.productNumber)||"状态代号";this.approvalFormData.processTitle="".concat(u,"-").concat(d,"发起审批")}r&&r.length>0?r.forEach((function(e){var r=e.nodeName||e.node||"";if(console.log("处理节点:",r,e),r){var a=t.approvalWorkflowSteps.find((function(e){return e.name===r}));if(a){var n=e.assignees||[];if(console.log("节点 assignees:",n),Array.isArray(n)&&0!==n.length){var i=n.map((function(e){var t=e.id||e.userId||"";return{userId:t,username:e.username||e.userName||"",userNumber:e.userNumber||e.account||t}})).filter((function(e){return e.userId}));console.log("处理后的 handlerInfos:",i),i.length>0&&(t.$set(a,"handlers",i.map((function(e){return e.userId})).filter(Boolean)),t.$set(a,"options",i.map((function(e){return{userId:e.userId,username:e.username||"",userNumber:e.userNumber||""}})).filter((function(e){return e.userId}))),console.log("更新后的 step:",a))}}else console.warn("未找到匹配的审批环节:",r)}})):console.warn("nodeList 为空或不是数组")}else console.warn("fillResendApprovalData: 数据为空")})),Pr(mr,"handleApprovalFormSubmit",(function(){var e,t,r=this,a=this.approvalWorkflowSteps.filter((function(e){return e.required&&(!e.handlers||0===e.handlers.length)}));if(a.length>0){var n=a.map((function(e){return e.name})).join("、");this.$message({type:"warning",message:'请为必填环节"'.concat(n,'"选择处理人')})}else{var i=(this.approvalFormData.processTitle||"").trim();if(i){var o=[],s=this.versionData[this.currentVersionId]||{};console.log(this.currentEngineModelID,"this.currentEngineModelID",this.currentData),Object.keys(s).forEach((function(e){var t=s[e]||[];t.forEach((function(t){var a={id:t.id||"",parameterId:t.parameterId||"",engineModelId:t.engineModelId||r.currentEngineModelID,subsystemName:t.subsystemName||"",partsName:t.partsName||e,parameterName:t.parameterName||"",parameterValue:t.parameterValue||"",responsiblePersonId:t.resPersonId||t.responsiblePersonId||"",department:t.department||"平台部",filledBy:t.filledBy||"",createdBy:de(),majorVersion:t.majorVersion||0,minorVersion:t.minorVersion||"",versionStatus:t.versionStatus||0,approvalId:"",isDelete:"",beforeParamId:"",operation:t.operation||"UPDATE",creationDate:"",lastUpdatedBy:"",lastUpdateDate:""};o.push(a)}))}));var l=this.shouldShowResendButton&&(this.flowId||(null===(e=this.detail)||void 0===e?void 0:e.flowId)),c=this.flowId||(null===(t=this.detail)||void 0===t?void 0:t.flowId)||"";if(l){var u=this.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),d=!1;if(this.originalProcessTitle!==i&&(d=!0),!d&&this.originalApprovalWorkflowSteps){var p=this.originalApprovalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers?wr(e.handlers).sort():[],nodeOrder:t+1}})),h=u.map((function(e){return Mr(Mr({},e),{},{assignees:e.assignees?wr(e.assignees).sort():[]})}));if(p.length!==h.length)d=!0;else for(var f=0;f0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]})),Pr(mr,"handleHandlerChange",(function(e,t){})),Pr(mr,"isZQOrZZPowerPlatformDept",(function(e){if(!e)return!1;var t=String(e).replace(/·/g,"-"),r=this.formatDepartmentDisplay(t),a=["中轻","中重动力平台","平台部","中轻动力平台部","中重动力平台部"];return a.some((function(e){return r===e||t===e||t.endsWith("-".concat(e))}))})),Pr(mr,"findDepartmentIdByName",(function(e){if(!e)return"";var t=String(e).replace(/·/g,"-"),r=function e(r,a){if(!Array.isArray(r))return"";var n,i=Tr(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=o.name||o.label||"";if(s===a||s===t)return o.id||"";if(o.children&&o.children.length>0){var l=e(o.children,a);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return""},a=r(this.departmentTreeData,t);if(a)return a;var n=this.formatDepartmentDisplay(t),i=(this.departmentList||[]).find((function(r){return r.name===t||r.name===e||r.name===n}));return i&&i.id||""})),Pr(mr,"resolveDepartmentId",(function(e){if(!e)return"";if(this.isZQOrZZPowerPlatformDept(e)){var t=this.findDepartmentIdByName("中轻动力平台部");if(t)return t}return this.findDepartmentIdByName(e)})),Pr(mr,"formatDepartmentDisplay",(function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t})),Pr(mr,"formatSectionTitle",(function(e,t){if(!t||!Array.isArray(t)||0===t.length)return e;var r=t[0],a=r.subsystemName||"",n=r.partsName||"";return n&&"/"!==n?"".concat(a,"-").concat(n):a||e})),mr)},Fr=Rr,jr=(r("0461"),d(Fr,Jt,Qt,!1,null,null,null)),Vr=jr.exports,$r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("x-modal",{attrs:{"append-to-body":!0,"destroy-on-close":!0,modalVisible:e.visible,"wrapper-class":"add-engine-model-modal",title:e.modalTitle,width:850},on:{"update:modalVisible":function(t){e.visible=t},"update:modal-visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.closeModal}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)]},proxy:!0}])},[r("el-form",{ref:"addForm",staticClass:"add-engine-form",attrs:{model:e.formData,rules:e.formRules,"label-width":"140px"}},[r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"产品型号",prop:"modelName"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.modelName,callback:function(t){e.$set(e.formData,"modelName",t)},expression:"formData.modelName"}})],1),r("el-form-item",{attrs:{label:"竞品"===e.ycOrOth?"产品编号":"状态代号",prop:"productNumber"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.productNumber,callback:function(t){e.$set(e.formData,"productNumber",t)},expression:"formData.productNumber"}})],1)],1),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"板块",prop:"plate"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.plate,callback:function(t){e.$set(e.formData,"plate",t)},expression:"formData.plate"}})],1),r("el-form-item",{attrs:{label:"平台",prop:"platform"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.platform,callback:function(t){e.$set(e.formData,"platform",t)},expression:"formData.platform"}})],1)],1),"竞品"===e.ycOrOth?r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"厂家名称(全称)",prop:"manufacturerName"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.manufacturerName,callback:function(t){e.$set(e.formData,"manufacturerName",t)},expression:"formData.manufacturerName"}})],1),r("el-form-item",{attrs:{label:"厂家简称",prop:"manufacturerAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.manufacturerAbbreviation,callback:function(t){e.$set(e.formData,"manufacturerAbbreviation",t)},expression:"formData.manufacturerAbbreviation"}})],1)],1):e._e(),"竞品"===e.ycOrOth?r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"品牌",prop:"brand"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.brand,callback:function(t){e.$set(e.formData,"brand",t)},expression:"formData.brand"}})],1),r("el-form-item",{attrs:{label:"生产日期",prop:"productionDate"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"请选择生产日期","value-format":"yyyy-MM-dd"},model:{value:e.formData.productionDate,callback:function(t){e.$set(e.formData,"productionDate",t)},expression:"formData.productionDate"}})],1)],1):e._e(),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"细分市场",prop:"marketSegment"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.marketSegment,callback:function(t){e.$set(e.formData,"marketSegment",t)},expression:"formData.marketSegment"}})],1),r("el-form-item",{attrs:{label:"系列",prop:"series"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.series,callback:function(t){e.$set(e.formData,"series",t)},expression:"formData.series"}})],1)],1),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"项目名称",prop:"projectName"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.projectName,callback:function(t){e.$set(e.formData,"projectName",t)},expression:"formData.projectName"}})],1),r("el-form-item",{attrs:{label:"项目编号",prop:"projectNumber"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.projectNumber,callback:function(t){e.$set(e.formData,"projectNumber",t)},expression:"formData.projectNumber"}})],1)],1),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"排放",prop:"emission"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.emission,callback:function(t){e.$set(e.formData,"emission",t)},expression:"formData.emission"}})],1),r("el-form-item",{attrs:{label:"燃烧类型",prop:"burnType"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.burnType,callback:function(t){e.$set(e.formData,"burnType",t)},expression:"formData.burnType"}})],1)],1),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"排量",prop:"engineCapacity"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.engineCapacity,callback:function(t){e.$set(e.formData,"engineCapacity",t)},expression:"formData.engineCapacity"}})],1),r("el-form-item",{attrs:{label:"任务分发状态",prop:"dispatchStatus"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"请选择"},model:{value:e.formData.distributeStatus,callback:function(t){e.$set(e.formData,"distributeStatus",t)},expression:"formData.distributeStatus"}},e._l(e.dispatchStatusOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1)],1)],1)])],1)},Br=[];function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Ur(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"竞品";this.isEditMode=!1,this.editingModelId=null,this.ycOrOth=t,this.visible=!0,this.resetForm(t),this.$nextTick((function(){e.$refs.addForm&&e.$refs.addForm.clearValidate()}))},showModalForEdit:function(e,t){var r=this;if(t&&null!=t.id){this.isEditMode=!0,this.editingModelId=t.id,this.ycOrOth=e,this.visible=!0;var a=t||{};this.formData={loginUserId:de(),ycOrOth:e,modelName:null!=a.modelName?String(a.modelName):"",productNumber:null!=a.productNumber?String(a.productNumber):"",plate:null!=a.plate?String(a.plate):"",platform:null!=a.platform?String(a.platform):"",series:null!=a.series?String(a.series):"",marketSegment:null!=a.marketSegment?String(a.marketSegment):"",projectName:null!=a.projectName?String(a.projectName):"",projectNumber:null!=a.projectNumber?String(a.projectNumber):"",distributeStatus:null!=a.distributeStatus?String(a.distributeStatus):"未分发",emission:null!=a.emission?String(a.emission):"",burnType:null!=a.burnType?String(a.burnType):"",engineCapacity:null!=a.engineCapacity?String(a.engineCapacity):"",manufacturerName:null!=a.manufacturerName?String(a.manufacturerName):"",manufacturerAbbreviation:null!=a.manufacturerAbbreviation?String(a.manufacturerAbbreviation):"",brand:null!=a.brand?String(a.brand):"",productionDate:null!=a.productionDate?String(a.productionDate):""},this.$nextTick((function(){r.$refs.addForm&&r.$refs.addForm.clearValidate()}))}else this.$message({message:"无法编辑:缺少机型标识",type:"warning"})},closeModal:function(){this.visible=!1,this.isEditMode=!1,this.editingModelId=null,this.ycOrOth="竞品",this.resetForm("竞品")},resetForm:function(e){this.formData={loginUserId:de(),ycOrOth:e,modelName:"",productNumber:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",distributeStatus:"未分发",emission:"",burnType:"",engineCapacity:"",manufacturerName:"",manufacturerAbbreviation:"",brand:"",productionDate:""}},handleSubmit:function(){var e=this;this.$refs.addForm.validate((function(t){if(t){e.submitting=!0;var r=Ur({},e.formData);Object.keys(r).forEach((function(e){null==r[e]&&(r[e]="")}));var a=e.isEditMode&&null!=e.editingModelId;a&&(r.id=e.editingModelId);var n=a?et.UPDATE_ENGINE_MODEL:et.ADD_ENGINE_MODEL,i=Ur(Ur({},n),{},{params:Ur({},r),disableSuccessMsg:!0});e.$request(i).asyncThen((function(t){e.$message({message:a?"保存成功":"提交成功",type:"success"}),e.closeModal(),e.$emit("success")})).asyncErrorCatch((function(t){console.error(a?"更新失败:":"添加失败:",t),e.$message({message:a?"更新失败":"添加失败",type:"error"})})).finally((function(){e.submitting=!1}))}}))}}},Xr=Yr,Kr=(r("2eb2"),d(Xr,$r,Br,!1,null,null,null)),Zr=Kr.exports;function Jr(e){return Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jr(e)}function Qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function ea(e){for(var t=1;t0?r("div",{staticClass:"floating-panel",class:{expanded:e.floatingPanelExpanded}},[r("div",{staticClass:"floating-panel-toggle",on:{click:e.toggleFloatingPanel}},[r("i",{class:e.floatingPanelExpanded?"el-icon-close":"el-icon-menu"})]),e.floatingPanelExpanded?r("div",{staticClass:"floating-panel-content"},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleAddChart}},[r("i",{staticClass:"el-icon-plus"}),e._v(" 新增 ")]),r("el-button",{attrs:{size:"small"},on:{click:e.handleClearAllCharts}},[r("i",{staticClass:"el-icon-delete"}),e._v(" 清空 ")]),r("el-button",{attrs:{size:"small"},on:{click:e.scrollToTop}},[r("i",{staticClass:"el-icon-top"}),e._v(" 回到顶部 ")])],1):e._e()]):e._e(),0==e.chartList.length?r("div",{staticClass:"chart-area empty-chart-area"}):e._e(),e._l(e.chartList,(function(t,a){return r("div",{key:t.id,staticClass:"chart-area"},[r("div",{staticClass:"chart-header"},[r("div",{staticClass:"chart-title-section"},[t.isEditingTitle?r("el-input",{ref:"titleInput-"+a,refInFor:!0,staticClass:"title-input",on:{blur:function(e){t.isEditingTitle=!1}},nativeOn:{keyup:function(r){if(!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter"))return null;t.isEditingTitle=!1}},model:{value:t.title,callback:function(r){e.$set(t,"title",r)},expression:"chart.title"}}):r("span",{staticClass:"chart-title",on:{click:function(t){return e.startEditTitle(a)}}},[e._v(e._s(t.title))]),r("i",{staticClass:"el-icon-edit title-edit-icon",on:{click:function(t){return e.startEditTitle(a)}}})],1),r("div",{staticClass:"chart-header-right"},[r("div",{staticClass:"download-button",on:{click:function(t){return e.handleDownloadChart(a)}}},[r("i",{staticClass:"el-icon-download"}),r("span",[e._v("下载")])]),r("div",{staticClass:"delete-button",on:{click:function(t){return e.handleDeleteChart(a)}}},[r("i",{staticClass:"el-icon-delete"}),r("span",[e._v("删除")])])])]),r("div",{staticClass:"chart-config"},[r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("图表类型:")]),r("el-select",{on:{change:function(t){return e.updateChart(a)}},model:{value:t.chartType,callback:function(r){e.$set(t,"chartType",r)},expression:"chart.chartType"}},[r("el-option",{attrs:{label:"散点图",value:"scatter"}}),r("el-option",{attrs:{label:"折线图",value:"line"}}),r("el-option",{attrs:{label:"柱状图",value:"bar"}})],1)],1),r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("X轴:")]),r("el-select",{on:{change:function(t){return e.updateChart(a)}},model:{value:t.xAxis,callback:function(r){e.$set(t,"xAxis",r)},expression:"chart.xAxis"}},e._l(e.xAxisOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("div",{staticClass:"config-item canshu"},[r("span",{staticClass:"config-label"},[e._v("Y轴(参数):")]),r("el-select",{key:"y-axis-param-"+t.id,staticClass:"y-axis-param-select",attrs:{filterable:"",multiple:"","collapse-tags":"",clearable:"",placeholder:"请选择或搜索参数","filter-method":e.handleFilterYAxisParam},on:{change:function(t){return e.updateChart(a)}},model:{value:t.yAxisParam,callback:function(r){e.$set(t,"yAxisParam",r)},expression:"chart.yAxisParam"}},e._l(e.filteredYAxisParamOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("Y轴(公式):")]),r("el-select",{attrs:{clearable:""},on:{change:function(t){return e.handleFormulaSelectChange(a)}},model:{value:t.yAxisFormula,callback:function(r){e.$set(t,"yAxisFormula",r)},expression:"chart.yAxisFormula"}},e._l(e.savedFormulas,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleEditFormula(a)}}},[e._v(" 添加/修改公式 ")])],1),"pie"!==t.chartType?r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("Y轴范围:")]),r("el-input",{staticClass:"y-axis-range-input",attrs:{placeholder:"最小值"},on:{blur:function(t){return e.updateChart(a)}},model:{value:t.yAxisMin,callback:function(r){e.$set(t,"yAxisMin",e._n(r))},expression:"chart.yAxisMin"}}),r("span",{staticClass:"range-separator"},[e._v("~")]),r("el-input",{staticClass:"y-axis-range-input",attrs:{placeholder:"最大值"},on:{blur:function(t){return e.updateChart(a)}},model:{value:t.yAxisMax,callback:function(r){e.$set(t,"yAxisMax",e._n(r))},expression:"chart.yAxisMax"}})],1):e._e(),"pie"!==t.chartType?r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("坐标点:")]),r("el-input",{staticClass:"y-axis-range-input",attrs:{placeholder:e.getCustomPointXPlaceholder(t)},on:{blur:function(t){return e.updateChart(a)}},model:{value:t.customPointX,callback:function(r){e.$set(t,"customPointX",e._n(r))},expression:"chart.customPointX"}}),r("span",{staticClass:"range-separator"},[e._v(",")]),r("el-input",{staticClass:"y-axis-range-input",attrs:{placeholder:"Y坐标(百分比)"},on:{blur:function(t){return e.updateChart(a)}},model:{value:t.customPointY,callback:function(r){e.$set(t,"customPointY",e._n(r))},expression:"chart.customPointY"}})],1):e._e()]),r("div",{staticClass:"chart-wrapper"},[r("div",{ref:"chartContainer-"+a,refInFor:!0,staticClass:"chart-container",style:{height:t.chartHeight+"px"}}),r("div",{staticClass:"chart-resize-handle",on:{mousedown:function(t){return e.startResize(a,t)}}})])])})),r("el-dialog",{attrs:{title:"选择机型",visible:e.addModelDialogVisible,width:"900px","append-to-body":""},on:{"update:visible":function(t){e.addModelDialogVisible=t},close:e.handleAddModelDialogClose}},[r("div",{staticClass:"model-select-dialog"},[r("el-transfer",{staticStyle:{"text-align":"left"},attrs:{data:e.transferData,titles:["可选机型","已选机型"],"button-texts":["移除","添加"],format:{noChecked:"${total}",hasChecked:"${checked}/${total}"},filterable:"","filter-method":e.filterTransferMethod,"filter-placeholder":"请输入搜索关键词"},on:{change:e.handleTransferChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.option;return r("span",{staticClass:"transfer-item"},[r("span",{staticClass:"transfer-item-label"},[e._v(e._s(a.label))])])}}]),model:{value:e.transferSelectedKeys,callback:function(t){e.transferSelectedKeys=t},expression:"transferSelectedKeys"}})],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddModelDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.loadingModelDetail},on:{click:e.handleConfirmAddModel}},[e._v(" 确定 ")])],1)]),r("el-dialog",{staticClass:"formula-dialog",attrs:{title:e.currentFormulaId?"修改公式":"添加公式",visible:e.formulaDialogVisible,width:"800px","close-on-click-modal":!0,modal:!1},on:{"update:visible":function(t){e.formulaDialogVisible=t}}},[r("div",{staticClass:"formula-dialog-content"},[r("el-form",{attrs:{model:e.formulaFormData,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"公式名称:",required:""}},[r("el-input",{attrs:{placeholder:"请输入公式名称",maxlength:"50","show-word-limit":""},model:{value:e.formulaFormData.name,callback:function(t){e.$set(e.formulaFormData,"name",t)},expression:"formulaFormData.name"}})],1),r("el-form-item",{attrs:{label:"选择参数:",required:""}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择参数(最多5个)",multiple:"",filterable:"","collapse-tags":"","max-collapse-tags":3},on:{change:e.handleSelectedParamsChange},model:{value:e.formulaFormData.selectedParams,callback:function(t){e.$set(e.formulaFormData,"selectedParams",t)},expression:"formulaFormData.selectedParams"}},e._l(e.yAxisParamOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e.formulaFormData.availableParams.length>0?r("el-form-item",{attrs:{label:"已选参数:"}},[r("div",{staticClass:"selected-params-display"},e._l(e.formulaFormData.availableParams,(function(t){return r("div",{key:t.value,staticClass:"selected-param-tag"},[e._v(" "+e._s(t.label)+" ")])})),0)]):e._e(),r("el-form-item",{attrs:{label:"公式构建:"}},[r("div",{staticClass:"formula-builder"},[r("div",{staticClass:"builder-help"},[r("el-popover",{attrs:{placement:"top",width:"300",trigger:"click","popper-class":"formula-help-popover"}},[r("div",{staticClass:"help-content"},[r("p",[e._v("选中的参数或者也通过手动输入数字,通过拖动到预览区域形成公式")])]),r("el-button",{staticClass:"help-button",attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[r("i",{staticClass:"el-icon-question"}),e._v(" 帮助 ")])],1)],1),r("div",{staticClass:"draggable-items"},[r("div",{staticClass:"items-section"},[r("div",{staticClass:"section-title"},[e._v(" 参数 "),r("span",{staticClass:"section-tip"},[e._v("(可重复使用)")])]),r("div",{staticClass:"items-container"},[e._l(e.formulaFormData.availableParams,(function(t){return r("div",{key:t.value,staticClass:"draggable-item param-item",attrs:{"data-type":"param","data-value":t.value,"data-label":t.label,draggable:"true"},on:{dragstart:function(r){return e.handleDragStart(r,"param",t.value,t.label)},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" "+e._s(t.label)+" ")])})),0===e.formulaFormData.availableParams.length?r("div",{staticClass:"empty-tip"},[e._v(" 请先选择参数 ")]):e._e()],2)]),r("div",{staticClass:"items-section"},[r("div",{staticClass:"section-title"},[e._v("运算符")]),r("div",{staticClass:"items-container"},e._l(e.formulaOperators,(function(t){return r("div",{key:t.value,staticClass:"draggable-item operator-item",attrs:{"data-type":"operator","data-value":t.value,"data-label":t.label,draggable:"true"},on:{dragstart:function(r){return e.handleDragStart(r,"operator",t.value,t.label)},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" "+e._s(t.label)+" ")])})),0)]),r("div",{staticClass:"items-section"},[r("div",{staticClass:"section-title"},[e._v("括号")]),r("div",{staticClass:"items-container"},[r("div",{staticClass:"draggable-item bracket-item",attrs:{"data-type":"bracket","data-value":"(","data-label":"(",draggable:"true"},on:{dragstart:function(t){return e.handleDragStart(t,"bracket","(","(")},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" ( ")]),r("div",{staticClass:"draggable-item bracket-item",attrs:{"data-type":"bracket","data-value":")","data-label":")",draggable:"true"},on:{dragstart:function(t){e.handleDragStart(t,"bracket",")",")")},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" ) ")])])]),r("div",{staticClass:"items-section"},[r("div",{staticClass:"items-container number-section-container"},[r("div",{staticClass:"number-input-row"},[r("span",{staticClass:"number-label"},[e._v("数字:")]),r("el-input-number",{staticStyle:{width:"120px"},attrs:{precision:2,step:1,min:0,size:"small",placeholder:"输入数字"},model:{value:e.formulaFormData.inputNumber,callback:function(t){e.$set(e.formulaFormData,"inputNumber",t)},expression:"formulaFormData.inputNumber"}}),r("el-button",{attrs:{type:"primary",size:"small",disabled:null===e.formulaFormData.inputNumber||""===e.formulaFormData.inputNumber},on:{click:e.addNumberToBuilder}},[e._v(" 添加到构建区 ")])],1),e.formulaFormData.recentNumbers.length>0?r("div",{staticClass:"recent-numbers"},e._l(e.formulaFormData.recentNumbers,(function(t,a){return r("div",{key:a,staticClass:"draggable-item number-item",attrs:{"data-type":"number","data-value":String(t),"data-label":String(t),draggable:"true"},on:{dragstart:function(r){e.handleDragStart(r,"number",String(t),String(t))},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" "+e._s(t)+" ")])})),0):e._e()])])]),r("div",{staticClass:"formula-preview-area"},[r("div",{staticClass:"preview-title"},[e._v("公式预览")]),r("div",{staticClass:"preview-container",class:{"drag-over":e.isDraggingOver},on:{drop:e.handleDrop,dragover:function(e){e.preventDefault()},dragenter:function(t){return t.preventDefault(),e.handleDragEnter.apply(null,arguments)},dragleave:e.handleDragLeave}},[0===e.formulaFormData.formulaItems.length?r("div",{staticClass:"empty-preview"},[e._v(" 请将参数、运算符、括号或数字拖拽到此处构建公式 ")]):e._e(),e._l(e.formulaFormData.formulaItems,(function(t,a){return r("div",{key:a,staticClass:"preview-item",class:{"is-param":"param"===t.type,"is-operator":"operator"===t.type,"is-bracket":"bracket"===t.type,"is-number":"number"===t.type,"is-dragging":e.draggingPreviewIndex===a,"drag-over":e.dragOverPreviewIndex===a&&-1!==e.draggingPreviewIndex},attrs:{draggable:"true","data-index":a},on:{dragstart:function(t){return e.handlePreviewDragStart(t,a)},dragover:function(t){return t.preventDefault(),e.handlePreviewDragOver(t,a)},dragenter:function(t){return t.preventDefault(),e.handlePreviewDragEnter(t,a)},dragleave:function(t){return e.handlePreviewDragLeave(t)},drop:function(t){return e.handlePreviewDrop(t,a)},dragend:function(t){return e.handlePreviewDragEnd(t)}}},[r("span",{staticClass:"item-content"},[e._v(e._s(t.label))]),r("i",{staticClass:"el-icon-close remove-btn",on:{click:function(t){return e.removeFormulaItem(a)}}})])}))],2),r("div",{staticClass:"preview-actions"},[r("el-button",{attrs:{size:"small"},on:{click:e.clearFormula}},[e._v("清空")])],1)])])])],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleFormulaDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.isFormulaValid},on:{click:e.handleSaveFormula}},[e._v(" 确定 ")])],1)]),r("el-dialog",{attrs:{title:"新增常用",visible:e.addFavoriteDialogVisible,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.addFavoriteDialogVisible=t},close:e.handleAddFavoriteDialogClose}},[r("el-form",{ref:"addFavoriteForm",attrs:{model:e.addFavoriteFormData,rules:e.addFavoriteFormRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"常用名称",prop:"commonName"}},[r("el-input",{attrs:{placeholder:"请输入常用名称",maxlength:"50","show-word-limit":""},model:{value:e.addFavoriteFormData.commonName,callback:function(t){e.$set(e.addFavoriteFormData,"commonName",t)},expression:"addFavoriteFormData.commonName"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddFavoriteDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.savingFavorite},on:{click:e.handleConfirmAddFavorite}},[e._v(" 确定 ")])],1)],1)],2),"analysis-report"===e.activeTab?r("AnalysisReport"):e._e()],1)},Da=[],Sa=function(e,t){return Sa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Sa(e,t)};function Ca(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Sa(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;Object.create;var Ta=r("eb30"),Ia=r("1ee1");function Oa(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Aa(e,t){return e[0]=t[0],e[1]=t[1],e}function Ma(e){return[e[0],e[1]]}function Pa(e,t,r){return e[0]=t,e[1]=r,e}function ka(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Na(e,t,r,a){return e[0]=t[0]+r[0]*a,e[1]=t[1]+r[1]*a,e}function Ea(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function La(e){return Math.sqrt(Ra(e))}function Ra(e){return e[0]*e[0]+e[1]*e[1]}function Fa(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function ja(e,t){var r=La(t);return 0===r?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Va(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var $a=Va;function Ba(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var za=Ba;function Ga(e,t,r,a){return e[0]=t[0]+a*(r[0]-t[0]),e[1]=t[1]+a*(r[1]-t[1]),e}function Ua(e,t,r){var a=t[0],n=t[1];return e[0]=r[0]*a+r[2]*n+r[4],e[1]=r[1]*a+r[3]*n+r[5],e}function Wa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ha(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var qa=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ya=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new qa(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,a=e.offsetY,n=r-this._x,i=a-this._y;this._x=r,this._y=a,t.drift(n,i,e),this.handler.dispatchToElement(new qa(t,e),"drag",e.event);var o=this.handler.findHover(r,a,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new qa(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new qa(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new qa(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new qa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Xa=Ya,Ka=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,r,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if("function"===typeof t&&(a=r,r=t,t=null),!r||!e)return this;var i=this._$eventProcessor;null!=t&&i&&i.normalizeQuery&&(t=i.normalizeQuery(t)),n[e]||(n[e]=[]);for(var o=0;o>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[c]+":0",a[1-l]+":auto",n[1-c]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function sn(e,t,r){for(var a=r?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,p=u.left,h=u.top;o.push(p,h),l=l&&i&&p===i[d]&&h===i[d+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=r?en(s,o):en(o,s))}function ln(e){return"CANVAS"===e.nodeName.toUpperCase()}var cn=/([&<>"'])/g,un={"&":"&","<":"<",">":">",'"':""","'":"'"};function dn(e){return null==e?"":(e+"").replace(cn,(function(e,t){return un[t]}))}var pn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hn=[],fn=Ta["a"].browser.firefox&&+Ta["a"].browser.version.split(".")[0]<39;function mn(e,t,r,a){return r=r||{},a?gn(e,t,r):fn&&null!=t.layerX&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):null!=t.offsetX?(r.zrX=t.offsetX,r.zrY=t.offsetY):gn(e,t,r),r}function gn(e,t,r){if(Ta["a"].domSupported&&e.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(ln(e)){var i=e.getBoundingClientRect();return r.zrX=a-i.left,void(r.zrY=n-i.top)}if(nn(hn,e,a,n))return r.zrX=hn[0],void(r.zrY=hn[1])}r.zrX=r.zrY=0}function vn(e){return e||window.event}function yn(e,t,r){if(t=vn(t),null!=t.zrX)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var i="touchend"!==a?t.targetTouches[0]:t.changedTouches[0];i&&mn(e,i,t,r)}else{mn(e,t,t,r);var o=bn(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&pn.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function bn(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,a=e.deltaY;if(null==r||null==a)return t;var n=0!==a?Math.abs(a):Math.abs(r),i=a>0?-1:a<0?1:r>0?-1:1;return 3*n*i}function _n(e,t,r,a){e.addEventListener(t,r,a)}function xn(e,t,r,a){e.removeEventListener(t,r,a)}var wn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Dn(e){return 2===e.which||3===e.which}var Sn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},i=0,o=a.length;i1&&a&&a.length>1){var i=Cn(a)/Cn(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Tn(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function On(){return[1,0,0,1,0,0]}function An(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Mn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Pn(e,t,r){var a=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=a,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function kn(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Nn(e,t,r,a){void 0===a&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(r),d=Math.cos(r);return e[0]=n*d+s*u,e[1]=-n*u+s*d,e[2]=i*d+l*u,e[3]=-i*u+d*l,e[4]=d*(o-a[0])+u*(c-a[1])+a[0],e[5]=d*(c-a[1])-u*(o-a[0])+a[1],e}function En(e,t,r){var a=r[0],n=r[1];return e[0]=t[0]*a,e[1]=t[1]*n,e[2]=t[2]*a,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*n,e}function Ln(e,t){var r=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*a;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-a*l,e[3]=r*l,e[4]=(a*s-o*n)*l,e[5]=(i*n-r*s)*l,e):null}function Rn(e){var t=On();return Mn(t,e),t}var Fn=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,r){e.x=t,e.y=r},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},e.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},e.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},e.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},e.lerp=function(e,t,r,a){var n=1-a;e.x=n*t.x+a*r.x,e.y=n*t.y+a*r.y},e}(),jn=Fn,Vn=Math.min,$n=Math.max,Bn=new jn,zn=new jn,Gn=new jn,Un=new jn,Wn=new jn,Hn=new jn,qn=function(){function e(e,t,r,a){r<0&&(e+=r,r=-r),a<0&&(t+=a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return e.prototype.union=function(e){var t=Vn(e.x,this.x),r=Vn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$n(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=$n(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,n=On();return kn(n,n,[-t.x,-t.y]),En(n,n,[r,a]),kn(n,n,[e.x,e.y]),n},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=t.x,c=t.x+t.width,u=t.y,d=t.y+t.height,p=!(if&&(f=b,mf&&(f=_,v=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,r,a){if(a){if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];return t.x=r.x*n+o,t.y=r.y*i+s,t.width=r.width*n,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Bn.x=Gn.x=r.x,Bn.y=Un.y=r.y,zn.x=Un.x=r.x+r.width,zn.y=Gn.y=r.y+r.height,Bn.transform(a),Un.transform(a),zn.transform(a),Gn.transform(a),t.x=Vn(Bn.x,zn.x,Gn.x,Un.x),t.y=Vn(Bn.y,zn.y,Gn.y,Un.y);var l=$n(Bn.x,zn.x,Gn.x,Un.x),c=$n(Bn.y,zn.y,Gn.y,Un.y);t.width=l-t.x,t.height=c-t.y}else t!==r&&e.copy(t,r)},e}(),Yn=qn,Xn="silent";function Kn(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Zn}}function Zn(){wn(this.event)}var Jn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Ca(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Za),Qn=function(){function e(e,t){this.x=e,this.y=t}return e}(),ei=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ti=new Yn(0,0,0,0),ri=function(e){function t(t,r,a,n,i){var o=e.call(this)||this;return o._hovered=new Qn(0,0),o.storage=t,o.painter=r,o.painterRoot=n,o._pointerSize=i,a=a||new Jn,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new Xa(o),o}return Ca(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Ia["k"](ei,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,r=e.zrY,a=ii(this,t,r),n=this._hovered,i=n.target;i&&!i.__zr&&(n=this.findHover(n.x,n.y),i=n.target);var o=this._hovered=a?new Qn(t,r):this.findHover(t,r),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),i&&s!==i&&this.dispatchToElement(n,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==i&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Qn(0,0)},t.prototype.dispatch=function(e,t){var r=this[e];r&&r.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,r){e=e||{};var a=e.target;if(!a||!a.silent){var n="on"+t,i=Kn(t,e,r);while(a)if(a[n]&&(i.cancelBubble=!!a[n].call(a,i)),a.trigger(t,i),a=a.__hostTarget?a.__hostTarget:a.parent,i.cancelBubble)break;i.cancelBubble||(this.trigger(t,i),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[n]&&e[n].call(e,i),e.trigger&&e.trigger(t,i)})))}},t.prototype.findHover=function(e,t,r){var a=this.storage.getDisplayList(),n=new Qn(e,t);if(ni(a,n,e,t,r),this._pointerSize&&!n.target){for(var i=[],o=this._pointerSize,s=o/2,l=new Yn(e-s,t-s,o,o),c=a.length-1;c>=0;c--){var u=a[c];u===r||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(ti.copy(u.getBoundingRect()),u.transform&&ti.applyTransform(u.transform),ti.intersect(l)&&i.push(u))}if(i.length)for(var d=4,p=Math.PI/12,h=2*Math.PI,f=0;f=0;i--){var o=e[i],s=void 0;if(o!==n&&!o.ignore&&(s=ai(o,r,a))&&(!t.topTarget&&(t.topTarget=o),s!==Xn)){t.target=o;break}}}function ii(e,t,r){var a=e.painter;return t<0||t>a.getWidth()||r<0||r>a.getHeight()}Ia["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){ri.prototype[e]=function(t){var r,a,n=t.zrX,i=t.zrY,o=ii(this,n,i);if("mouseup"===e&&o||(r=this.findHover(n,i),a=r.target),"mousedown"===e)this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if("mouseup"===e)this._upEl=a;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||$a(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,e,t)}}));var oi=ri,si=32,li=7;function ci(e){var t=0;while(e>=si)t|=1&e,e>>=1;return e+t}function ui(e,t,r,a){var n=t+1;if(n===r)return 1;if(a(e[n++],e[t])<0){while(n=0)n++;return n-t}function di(e,t,r){r--;while(t>>1,n(o,e[i])<0?l=i:s=i+1;var c=a-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=o}}function hi(e,t,r,a,n,i){var o=0,s=0,l=1;if(i(e,t[r+n])>0){s=a-n;while(l0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{s=n+1;while(ls&&(l=s);var c=o;o=n-l,l=n-c}o++;while(o>>1);i(e,t[r+u])>0?o=u+1:l=u}return l}function fi(e,t,r,a,n,i){var o=0,s=0,l=1;if(i(e,t[r+n])<0){s=n+1;while(ls&&(l=s);var c=o;o=n-l,l=n-c}else{s=a-n;while(l=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}o++;while(o>>1);i(e,t[r+u])<0?l=u:o=u+1}return l}function mi(e,t){var r,a,n=li,i=0,o=[];function s(e,t){r[i]=e,a[i]=t,i+=1}function l(){while(i>1){var e=i-2;if(e>=1&&a[e-1]<=a[e]+a[e+1]||e>=2&&a[e-2]<=a[e]+a[e-1])a[e-1]a[e+1])break;u(e)}}function c(){while(i>1){var e=i-2;e>0&&a[e-1]=li||h>=li);if(f)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),1===a){for(l=0;l=0;l--)e[h+l]=e[p+l];if(0===a){v=!0;break}}if(e[d--]=o[u--],1===--s){v=!0;break}if(g=s-hi(e[c],o,0,s,s-1,t),0!==g){for(d-=g,u-=g,s-=g,h=d+1,p=u+1,l=0;l=li||g>=li);if(v)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),1===s){for(d-=a,c-=a,h=d+1,p=c+1,l=a-1;l>=0;l--)e[h+l]=e[p+l];e[d]=o[u]}else{if(0===s)throw new Error;for(p=d-(s-1),l=0;l=0;l--)e[h+l]=e[p+l];e[d]=o[u]}else for(p=d-(s-1),l=0;ls&&(l=s),pi(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),n-=i,r+=i}while(0!==n);o.forceMergeRuns()}}var vi=1,yi=2,bi=4,_i=!1;function xi(){_i||(_i=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function wi(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Di,Si=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wi}return e.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(xi(),c.z=0),isNaN(c.z2)&&(xi(),c.z2=0),isNaN(c.zlevel)&&(xi(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,r);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,r)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Ci=Si;Di=Ta["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ti=Di,Ii={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,a=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a))},elasticOut:function(e){var t,r=.1,a=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/a)+1)},elasticInOut:function(e){var t,r=.1,a=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ii.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*Ii.bounceIn(2*e):.5*Ii.bounceOut(2*e-1)+.5}},Oi=Ii,Ai=Math.pow,Mi=Math.sqrt,Pi=1e-8,ki=1e-4,Ni=Mi(3),Ei=1/3,Li=Oa(),Ri=Oa(),Fi=Oa();function ji(e){return e>-Pi&&ePi||e<-Pi}function $i(e,t,r,a,n){var i=1-n;return i*i*(i*e+3*n*t)+n*n*(n*a+3*i*r)}function Bi(e,t,r,a,n){var i=1-n;return 3*(((t-e)*i+2*(r-t)*n)*i+(a-r)*n*n)}function zi(e,t,r,a,n,i){var o=a+3*(t-r)-e,s=3*(r-2*t+e),l=3*(t-e),c=e-n,u=s*s-3*o*l,d=s*l-9*o*c,p=l*l-3*s*c,h=0;if(ji(u)&&ji(d))if(ji(s))i[0]=0;else{var f=-l/s;f>=0&&f<=1&&(i[h++]=f)}else{var m=d*d-4*u*p;if(ji(m)){var g=d/u,v=(f=-s/o+g,-g/2);f>=0&&f<=1&&(i[h++]=f),v>=0&&v<=1&&(i[h++]=v)}else if(m>0){var y=Mi(m),b=u*s+1.5*o*(-d+y),_=u*s+1.5*o*(-d-y);b=b<0?-Ai(-b,Ei):Ai(b,Ei),_=_<0?-Ai(-_,Ei):Ai(_,Ei);f=(-s-(b+_))/(3*o);f>=0&&f<=1&&(i[h++]=f)}else{var x=(2*u*s-3*o*d)/(2*Mi(u*u*u)),w=Math.acos(x)/3,D=Mi(u),S=Math.cos(w),C=(f=(-s-2*D*S)/(3*o),v=(-s+D*(S+Ni*Math.sin(w)))/(3*o),(-s+D*(S-Ni*Math.sin(w)))/(3*o));f>=0&&f<=1&&(i[h++]=f),v>=0&&v<=1&&(i[h++]=v),C>=0&&C<=1&&(i[h++]=C)}}return h}function Gi(e,t,r,a,n){var i=6*r-12*t+6*e,o=9*t+3*a-3*e-9*r,s=3*t-3*e,l=0;if(ji(o)){if(Vi(i)){var c=-s/i;c>=0&&c<=1&&(n[l++]=c)}}else{var u=i*i-4*o*s;if(ji(u))n[0]=-i/(2*o);else if(u>0){var d=Mi(u),p=(c=(-i+d)/(2*o),(-i-d)/(2*o));c>=0&&c<=1&&(n[l++]=c),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ui(e,t,r,a,n,i){var o=(t-e)*n+e,s=(r-t)*n+t,l=(a-r)*n+r,c=(s-o)*n+o,u=(l-s)*n+s,d=(u-c)*n+c;i[0]=e,i[1]=o,i[2]=c,i[3]=d,i[4]=d,i[5]=u,i[6]=l,i[7]=a}function Wi(e,t,r,a,n,i,o,s,l,c,u){var d,p,h,f,m,g=.005,v=1/0;Li[0]=l,Li[1]=c;for(var y=0;y<1;y+=.05)Ri[0]=$i(e,r,n,o,y),Ri[1]=$i(t,a,i,s,y),f=za(Li,Ri),f=0&&f=0&&c<=1&&(n[l++]=c)}}else{var u=o*o-4*i*s;if(ji(u)){c=-o/(2*i);c>=0&&c<=1&&(n[l++]=c)}else if(u>0){var d=Mi(u),p=(c=(-o+d)/(2*i),(-o-d)/(2*i));c>=0&&c<=1&&(n[l++]=c),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ki(e,t,r){var a=e+r-2*t;return 0===a?.5:(e-t)/a}function Zi(e,t,r,a,n){var i=(t-e)*a+e,o=(r-t)*a+t,s=(o-i)*a+i;n[0]=e,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Ji(e,t,r,a,n,i,o,s,l){var c,u=.005,d=1/0;Li[0]=o,Li[1]=s;for(var p=0;p<1;p+=.05){Ri[0]=qi(e,r,n,p),Ri[1]=qi(t,a,i,p);var h=za(Li,Ri);h=0&&h=1?1:zi(0,a,i,1,e,s)&&$i(0,n,o,1,s[0])}}}var ro=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ia["L"],this.ondestroy=e.ondestroy||Ia["L"],this.onrestart=e.onrestart||Ia["L"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var r=this._life,a=e-this._startTime-this._pausedTime,n=a/r;n<0&&(n=0),n=Math.min(n,1);var i=this.easingFunc,o=i?i(n):n;if(this.onframe(o),1===n){if(!this.loop)return!0;var s=a%r;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(Ia["w"])(e)?e:Oi[e]||to(e)},e}(),ao=ro,no=r("1f58"),io=r("1832"),oo=Array.prototype.slice;function so(e,t,r){return(t-e)*r+e}function lo(e,t,r,a){for(var n=t.length,i=0;ia?t:e,i=Math.min(r,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,n=a.length,i=!1,o=So,s=t;if(Object(Ia["u"])(t)){var l=vo(t);o=l,(1===l&&!Object(Ia["z"])(t[0])||2===l&&!Object(Ia["z"])(t[0][0]))&&(i=!0)}else if(Object(Ia["z"])(t)&&!Object(Ia["l"])(t))o=yo;else if(Object(Ia["C"])(t))if(isNaN(+t)){var c=no["h"](t);c&&(s=c,o=xo)}else o=yo;else if(Object(Ia["x"])(t)){var u=Object(Ia["m"])({},s);u.colorStops=Object(Ia["H"])(t.colorStops,(function(e){return{offset:e.offset,color:no["h"](e.color)}})),Object(io["m"])(t)?o=wo:Object(io["o"])(t)&&(o=Do),s=u}0===n?this.valType=o:o===this.valType&&o!==So||(i=!0),this.discrete=this.discrete||i;var d={time:e,value:s,rawValue:t,percent:0};return r&&(d.easing=r,d.easingFunc=Object(Ia["w"])(r)?r:Oi[r]||to(r)),a.push(d),d},e.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort((function(e,t){return e.time-t.time}));for(var a=this.valType,n=r.length,i=r[n-1],o=this.discrete,s=To(a),l=Co(a),c=0;c=0;r--)if(l[r].percent<=t)break;r=h(r,c-2)}else{for(r=p;rt)break;r=h(r-1,c-2)}n=l[r+1],a=l[r]}if(a&&n){this._lastFr=r,this._lastFrP=t;var m=n.percent-a.percent,g=0===m?1:h((t-a.percent)/m,1);n.easingFunc&&(g=n.easingFunc(g));var v=i?this._additiveValue:d?Io:e[u];if(!To(s)&&!d||v||(v=this._additiveValue=[]),this.discrete)e[u]=g<1?a.rawValue:n.rawValue;else if(To(s))s===bo?lo(v,a[o],n[o],g):co(v,a[o],n[o],g);else if(Co(s)){var y=a[o],b=n[o],_=s===wo;e[u]={type:_?"linear":"radial",x:so(y.x,b.x,g),y:so(y.y,b.y,g),colorStops:Object(Ia["H"])(y.colorStops,(function(e,t){var r=b.colorStops[t];return{offset:so(e.offset,r.offset,g),color:go(lo([],e.color,r.color,g))}})),global:b.global},_?(e[u].x2=so(y.x2,b.x2,g),e[u].y2=so(y.y2,b.y2,g)):e[u].r=so(y.r,b.r,g)}else if(d)lo(v,a[o],n[o],g),i||(e[u]=go(v));else{var x=so(a[o],n[o],g);i?this._additiveValue=x:e[u]=x}i&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===yo?e[r]=e[r]+a:t===xo?(no["h"](e[r],Io),uo(Io,Io,a,1),e[r]=go(Io)):t===bo?uo(e[r],e[r],a,1):t===_o&&po(e[r],e[r],a,1)},e}(),Ao=function(){function e(e,t,r,a){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a?Object(Ia["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=a,this._allowDiscrete=r)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Object(Ia["F"])(t),r)},e.prototype.whenWithKeys=function(e,t,r,a){for(var n=this._tracks,i=0;i0&&s.addKeyframe(0,mo(l),a),this._trackKeys.push(o)}s.addKeyframe(e,mo(t[o]),a)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,n=0;n1){var o=i.pop();n.addKeyframe(o.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},e}(),Mo=Ao;function Po(){return(new Date).getTime()}var ko=function(e){function t(t){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return Ca(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,r=e.next;t?t.next=r:this._head=r,r?r.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=Po()-this._pausedTime,r=t-this._time,a=this._head;while(a){var n=a.next,i=a.step(t,r);i?(a.ondestroy(),this.removeClip(a),a=n):a=n}this._time=t,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(Ti(t),!e._paused&&e.update())}this._running=!0,Ti(t)},t.prototype.start=function(){this._running||(this._time=Po(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Po(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Po()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var r=new Mo(e,t.loop);return this.addAnimator(r),r},t}(Za),No=ko,Eo=300,Lo=Ta["a"].domSupported,Ro=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Ia["H"](e,(function(e){var t=e.replace("mouse","pointer");return r.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:a}}(),Fo={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},jo=!1;function Vo(e){var t=e.pointerType;return"pen"===t||"touch"===t}function $o(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function Bo(e){e&&(e.zrByTouch=!0)}function zo(e,t){return yn(e.dom,new Uo(e,t),!0)}function Go(e,t){var r=t,a=!1;while(r&&9!==r.nodeType&&!(a=r.domBelongToZr||r!==t&&r===e.painterRoot))r=r.parentNode;return a}var Uo=function(){function e(e,t){this.stopPropagation=Ia["L"],this.stopImmediatePropagation=Ia["L"],this.preventDefault=Ia["L"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Wo={mousedown:function(e){e=yn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=yn(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=yn(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=yn(this.dom,e);var t=e.toElement||e.relatedTarget;Go(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){jo=!0,e=yn(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){jo||(e=yn(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=yn(this.dom,e),Bo(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Wo.mousemove.call(this,e),Wo.mousedown.call(this,e)},touchmove:function(e){e=yn(this.dom,e),Bo(e),this.handler.processGesture(e,"change"),Wo.mousemove.call(this,e)},touchend:function(e){e=yn(this.dom,e),Bo(e),this.handler.processGesture(e,"end"),Wo.mouseup.call(this,e),+new Date-+this.__lastTouchMomentss||e<-ss}var cs=[],us=[],ds=On(),ps=Math.abs,hs=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ls(this.rotation)||ls(this.x)||ls(this.y)||ls(this.scaleX-1)||ls(this.scaleY-1)||ls(this.skewX)||ls(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;t||e?(r=r||On(),t?this.getLocalTransform(r):os(r),e&&(t?Pn(r,e,r):Mn(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&(os(r),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(cs);var r=cs[0]<0?-1:1,a=cs[1]<0?-1:1,n=((cs[0]-r)*t+r)/cs[0]||0,i=((cs[1]-a)*t+a)/cs[1]||0;e[0]*=n,e[1]*=n,e[2]*=i,e[3]*=i}this.invTransform=this.invTransform||On(),Ln(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||On(),Pn(us,e.invTransform,t),t=us);var r=this.originX,a=this.originY;(r||a)&&(ds[4]=r,ds[5]=a,Pn(us,t,ds),us[4]-=r,us[5]-=a,t=us),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Ua(r,r,a),r},e.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Ua(r,r,a),r},e.prototype.getLineScale=function(){var e=this.transform;return e&&ps(e[0]-1)>1e-10&&ps(e[3]-1)>1e-10?Math.sqrt(ps(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ms(this,e)},e.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,n=e.scaleX,i=e.scaleY,o=e.anchorX,s=e.anchorY,l=e.rotation||0,c=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||a||o||s){var h=r+o,f=a+s;t[4]=-h*n-d*f*i,t[5]=-f*i-p*h*n}else t[4]=t[5]=0;return t[0]=n,t[3]=i,t[1]=p*n,t[2]=d*i,l&&Nn(t,t,l),t[4]+=r+c,t[5]+=a+u,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),fs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ms(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Is(e,t,r){var a=t.position||"inside",n=null!=t.distance?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,c=r.y,u="left",d="top";if(a instanceof Array)l+=Ts(a[0],r.width),c+=Ts(a[1],r.height),u=null,d=null;else switch(a){case"left":l-=n,c+=s,u="right",d="middle";break;case"right":l+=n+o,c+=s,d="middle";break;case"top":l+=o/2,c-=n,u="center",d="bottom";break;case"bottom":l+=o/2,c+=i+n,u="center";break;case"inside":l+=o/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=n,c+=s,d="middle";break;case"insideRight":l+=o-n,c+=s,u="right",d="middle";break;case"insideTop":l+=o/2,c+=n,u="center";break;case"insideBottom":l+=o/2,c+=i-n,u="center",d="bottom";break;case"insideTopLeft":l+=n,c+=n;break;case"insideTopRight":l+=o-n,c+=n,u="right";break;case"insideBottomLeft":l+=n,c+=i-n,d="bottom";break;case"insideBottomRight":l+=o-n,c+=i-n,u="right",d="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=d,e}var Os="__zr_normal__",As=fs.concat(["ignore"]),Ms=Object(Ia["N"])(fs,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Ps={},ks=new Yn(0,0,0,0),Ns=function(){function e(e){this.id=Object(Ia["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,n=t.innerTransformable,i=void 0,o=void 0,s=!1;n.parent=a?this:null;var l=!1;if(n.copyTransform(t),null!=r.position){var c=ks;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ps,r,c):Is(Ps,r,c),n.x=Ps.x,n.y=Ps.y,i=Ps.align,o=Ps.verticalAlign;var u=r.origin;if(u&&null!=r.rotation){var d=void 0,p=void 0;"center"===u?(d=.5*c.width,p=.5*c.height):(d=Ts(u[0],c.width),p=Ts(u[1],c.height)),l=!0,n.originX=-n.x+d+(a?0:c.x),n.originY=-n.y+p+(a?0:c.y)}}null!=r.rotation&&(n.rotation=r.rotation);var h=r.offset;h&&(n.x+=h[0],n.y+=h[1],l||(n.originX=-h[0],n.originY=-h[1]));var f=null==r.inside?"string"===typeof r.position&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(g=r.insideFill,v=r.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(g),y=!0)):(g=r.outsideFill,v=r.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(g),y=!0)),g=g||"#000",g===m.fill&&v===m.stroke&&y===m.autoStroke&&i===m.align&&o===m.verticalAlign||(s=!0,m.fill=g,m.stroke=v,m.autoStroke=y,m.align=i,m.verticalAlign=o,t.setDefaultTextStyle(m)),t.__dirty|=vi,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ns:as},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r="string"===typeof t&&Object(no["h"])(t);r||(r=[255,255,255,1]);for(var a=r[3],n=this.__zr.isDarkMode(),i=0;i<3;i++)r[i]=r[i]*a+(n?0:255)*(1-a);return r[3]=1,Object(no["i"])(r,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(Ia["m"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(Ia["A"])(e))for(var r=e,a=Object(Ia["F"])(r),n=0;n0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Os,!1,e)},e.prototype.useState=function(e,t,r,a){var n=e===Os,i=this.hasState();if(i||!n){var o=this.currentStates,s=this.stateTransition;if(!(Object(Ia["r"])(o,e)>=0)||!t&&1!==o.length){var l;if(this.stateProxy&&!n&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||n){n||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!r&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,d=this._textGuide;return u&&u.useState(e,t,r,c),d&&d.useState(e,t,r,c),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vi),l}Object(Ia["G"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,r){if(e.length){var a=[],n=this.currentStates,i=e.length,o=i===n.length;if(o)for(var s=0;s0,h);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vi)}else this.clearStates()},e.prototype.isSilent=function(){var e=this.silent,t=this.parent;while(!e&&t){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},e.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),n=Object(Ia["r"])(a,e),i=Object(Ia["r"])(a,t)>=0;n>=0?i?a.splice(n,1):a[n]=t:r&&!i&&a.push(t),this.useStates(a)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,r={},a=0;a=0&&t.splice(r,1)})),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,n=[],i=0;i0&&r.during&&i[0].during((function(e,t){r.during(t)}));for(var p=0;p0||n.force&&!o.length){var S=void 0,C=void 0,T=void 0;if(s){C={},p&&(S={});for(_=0;_=0&&(r.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var r=Ia["r"](this._children,e);return r>=0&&this.replaceAt(t,r),this},t.prototype.replaceAt=function(e,t){var r=this._children,a=r[t];if(e&&e!==this&&e.parent!==this&&e!==a){r[t]=e,a.parent=null;var n=this.__zr;n&&a.removeSelfFromZr(n),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,r=this._children,a=Ia["r"](r,e);return a<0||(r.splice(a,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,r=0;r=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(a)return K(e).length;t=(""+t).toLowerCase(),a=!0}}function x(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return P(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function w(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function D(e,t,r,a,n){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=c.from(t,a)),c.isBuffer(t))return 0===t.length?-1:S(e,t,r,a,n);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,a,n){var i,o=1,s=e.length,l=t.length;if(void 0!==a&&(a=String(a).toLowerCase(),"ucs2"===a||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(i=r;is&&(r=s-l),i=r;i>=0;i--){for(var d=!0,p=0;pn&&(a=n)):a=n;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");a>i/2&&(a=i/2);for(var o=0;o239?4:c>223?3:c>191?2:1;if(n+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:i=e[n+1],128===(192&i)&&(l=(31&c)<<6|63&i,l>127&&(u=l));break;case 3:i=e[n+1],o=e[n+2],128===(192&i)&&128===(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[n+1],o=e[n+2],s=e[n+3],128===(192&i)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,a.push(u>>>10&1023|55296),u=56320|1023&u),a.push(u),n+=d}return E(a)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return p(null,e,t,r)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,n=0,i=Math.min(r,a);n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,a,n){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,a>>>=0,n>>>=0,this===e)return 0;for(var i=n-a,o=r-t,s=Math.min(i,o),l=this.slice(a,n),u=e.slice(t,r),d=0;dn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return C(this,e,t,r);case"utf8":case"utf-8":return T(this,e,t,r);case"ascii":return I(this,e,t,r);case"latin1":case"binary":return O(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function E(e){var t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);var r="",a=0;while(aa)&&(r=a);for(var n="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function $(e,t,r,a,n,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function B(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function z(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,i=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function G(e,t,r,a,n,i){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,a,i){return i||G(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,a,23,4),r+4}function W(e,t,r,a,i){return i||G(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,a,52,8),r+8}c.prototype.slice=function(e,t){var r,a=this.length;if(e=~~e,t=void 0===t?a:~~t,e<0?(e+=a,e<0&&(e=0)):e>a&&(e=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),t0&&(n*=256))a+=this[e+--t]*n;return a},c.prototype.readUInt8=function(e,t){return t||V(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||V(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||V(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||V(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||V(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||V(e,t,this.length);var a=this[e],n=1,i=0;while(++i=n&&(a-=Math.pow(2,8*t)),a},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||V(e,t,this.length);var a=t,n=1,i=this[e+--a];while(a>0&&(n*=256))i+=this[e+--a]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||V(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||V(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||V(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||V(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||V(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||V(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||V(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||V(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||V(e,8,this.length),n.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,a){if(e=+e,t|=0,r|=0,!a){var n=Math.pow(2,8*r)-1;$(this,e,t,r,n,0)}var i=1,o=0;this[t]=255&e;while(++o=0&&(o*=256))this[t+i]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);$(this,e,t,r,n-1,-n)}var i=0,o=1,s=0;this[t]=255&e;while(++i>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);$(this,e,t,r,n-1,-n)}var i=r-1,o=1,s=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||$(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Z(e){for(var t=[],r=0;r>8,n=r%256,i.push(n),i.push(a)}return i}function Q(e){return a.toByteArray(q(e))}function ee(e,t,r,a){for(var n=0;n=t.length||n>=e.length)break;t[n+r]=e[n]}return n}function te(e){return e!==e}}).call(this,r("c8ba"))},bae7:function(e,t,r){"use strict";r("74d9")},be80:function(e,t,r){"use strict";r("9b90")},bf95:function(e,t,r){"use strict";r("e762")},c58d:function(e,t,r){"use strict";r("5256")},c80d:function(e,t,r){},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(a){"object"===typeof window&&(r=window)}e.exports=r},ca15:function(e,t,r){},ca83:function(e,t,r){"use strict";r("587c")},cb20:function(e,t,r){"use strict";r("df65")},cc22:function(e,t,r){},d115:function(e,t,r){"use strict";r("2c16")},d1b9:function(e,t,r){"use strict";r("10fb")},d645:function(e,t,r){},d8b6:function(e,t,r){},dcc9:function(e,t,r){"use strict";r("b36b")},dcd1:function(e,t,r){"use strict";r("371a")},deaf:function(e,t,r){},df65:function(e,t,r){},e0cd:function(e,t,r){},e33d:function(e,t,r){"use strict";r("5b41")},e762:function(e,t,r){},e781:function(e,t,r){},eb30:function(e,t,r){"use strict";var a=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),n=function(){function e(){this.browser=new a,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),i=new n;function o(e,t){var r=t.browser,a=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);a&&(r.firefox=!0,r.version=a[1]),n&&(r.ie=!0,r.version=n[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?i.worker=!0:!i.hasGlobalWindow||"Deno"in window?(i.node=!0,i.svgSupported=!0):o(navigator.userAgent,i),t["a"]=i},ef8b:function(e,t,r){"use strict";r("cc22")},f205:function(e,t,r){},f379:function(e,t,r){},fa63:function(e,t,r){},fb15:function(e,t,r){"use strict";r.r(t);var a={};if(r.r(a),r.d(a,"updateProps",(function(){return ch})),r.d(a,"initProps",(function(){return uh})),r.d(a,"removeElement",(function(){return ph})),r.d(a,"removeElementWithFadeOut",(function(){return fh})),r.d(a,"isElementRemoved",(function(){return dh})),r.d(a,"extendShape",(function(){return M_})),r.d(a,"extendPath",(function(){return k_})),r.d(a,"registerShape",(function(){return N_})),r.d(a,"getShapeClass",(function(){return E_})),r.d(a,"makePath",(function(){return L_})),r.d(a,"makeImage",(function(){return R_})),r.d(a,"mergePath",(function(){return j_})),r.d(a,"resizePath",(function(){return V_})),r.d(a,"subPixelOptimizeLine",(function(){return $_})),r.d(a,"subPixelOptimizeRect",(function(){return B_})),r.d(a,"subPixelOptimize",(function(){return z_})),r.d(a,"getTransform",(function(){return G_})),r.d(a,"applyTransform",(function(){return U_})),r.d(a,"transformDirection",(function(){return W_})),r.d(a,"groupTransition",(function(){return Y_})),r.d(a,"clipPointsByRect",(function(){return X_})),r.d(a,"clipRectByRect",(function(){return K_})),r.d(a,"createIcon",(function(){return Z_})),r.d(a,"linePolygonIntersect",(function(){return J_})),r.d(a,"lineLineIntersect",(function(){return Q_})),r.d(a,"setTooltipConfig",(function(){return rx})),r.d(a,"traverseElements",(function(){return nx})),r.d(a,"Group",(function(){return Gs})),r.d(a,"Image",(function(){return yd})),r.d(a,"Text",(function(){return Wd})),r.d(a,"Circle",(function(){return bb})),r.d(a,"Ellipse",(function(){return wb})),r.d(a,"Sector",(function(){return $b})),r.d(a,"Ring",(function(){return Gb})),r.d(a,"Polygon",(function(){return Yb})),r.d(a,"Polyline",(function(){return Zb})),r.d(a,"Rect",(function(){return Id})),r.d(a,"Line",(function(){return t_})),r.d(a,"BezierCurve",(function(){return o_})),r.d(a,"Arc",(function(){return c_})),r.d(a,"IncrementalDisplayable",(function(){return T_})),r.d(a,"CompoundPath",(function(){return d_})),r.d(a,"LinearGradient",(function(){return m_})),r.d(a,"RadialGradient",(function(){return v_})),r.d(a,"BoundingRect",(function(){return Yn})),r.d(a,"OrientedBoundingRect",(function(){return D_})),r.d(a,"Point",(function(){return jn})),r.d(a,"Path",(function(){return ud})),"undefined"!==typeof window){var n=window.document.currentScript,i=r("8875");n=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[e._v("测试自开发页面")])},l=[],c={name:"ApaasCustomMydemo"},u=c;r("e33d");function d(e,t,r,a,n,i,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):n&&(l=s?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var p=d(u,s,l,!1,null,null,null),h=p.exports,f=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 自开发界面 ")]),r("div",{staticClass:"operation"},[r("x-svg-icon",{staticClass:"pointer",staticStyle:{cursor:"pointer"},attrs:{name:"refresh-icon"},nativeOn:{click:function(t){return e.handleRefresh()}}})],1)]),r("div",{staticClass:"page-search-panel"},[r("el-form",{staticClass:"search-list"},[e._l(e.searchListConfig,(function(t){return[r(t.component,{key:t.searchKey,tag:"component",attrs:{label:t.label,extraConfig:t.extraConfig,searchKey:t.searchKey,searchValue:e.searchPanelValue[t.searchKey]},on:{change:function(r){return e.handleSearchValueChange(t.searchKey,r)}}})]}))],2),r("div",{staticClass:"search-button-group"},[r("el-button",{attrs:{"native-type":"reset"},on:{click:function(t){return e.resetSearch()}}},[e._v(" 重置 ")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSearch()}}},[e._v(" 查询 ")])],1)],1),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange,"select-data-change":e.selectDataChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customHeadSlot,fn:function(n){var i=n.column;return[t.customHeadSlot?r("div",{key:a},[e._v(" "+e._s(i)+" "+e._s(t)+" ")]):e._e()]}}})),e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["options"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowDetail(i)}}},[e._v("详情")]),r("span",{staticStyle:{width:"4px",display:"inline-block"}}),r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowEdit(i)}}},[e._v("编辑")])]):e._e(),"status"===t.customSlot?r("div",{key:a+""+o},[i[t.prop]?r("span",{staticStyle:{background:"#67C23A",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("生效")]):e._e(),i[t.prop]?e._e():r("span",{staticStyle:{background:"#F56C6C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("失效")])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[r("x-empty-page")],1)])],2)],1),r("detail-drawer",{ref:"detailDrawer"}),r("edit-modal",{ref:"editModal"})],1)},m=[],g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-component search-input"},[r("el-form-item",[r("template",{slot:"label"},[r("x-ellipsis",{staticClass:"fix-cursor",attrs:{mode:"origin",label:e.label}})],1),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.computedValue,callback:function(t){e.computedValue=t},expression:"computedValue"}})],2)],1)},v=[],y={model:{prop:"searchValue",event:"change"},props:{label:{type:String,required:!0},searchKey:{type:String,required:!0},searchValue:{required:!0},extraConfig:{type:Object,default:function(){return{}}}},computed:{computedValue:{get:function(){return this.searchValue},set:function(e){this.$emit("change",e)}}}},b=y,_={name:"SearchInput",mixins:[b]},x=_,w=d(x,g,v,!1,null,null,null),D=w.exports,S=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-component search-date"},[r("el-form-item",[r("template",{slot:"label"},[r("x-ellipsis",{staticClass:"fix-cursor",attrs:{mode:"origin",label:e.label}})],1),r("el-date-picker",{attrs:{type:e.dateDisplayStyle,"range-separator":"~","value-format":e.valueFormat,"start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.computedValue,callback:function(t){e.computedValue=t},expression:"computedValue"}})],2)],1)},C=[],T={name:"SearchDate",mixins:[b],computed:{dateDisplayStyle:function(){return"DATE_TIME"===this.extraConfig.dateDisplayStyle?"datetimerange":"YEAR_MONTH"===this.extraConfig.dateDisplayStyle?"monthrange":"ONLY_YEAR"===this.extraConfig.dateDisplayStyle?"year":"daterange"},valueFormat:function(){return"DATE_TIME"===this.extraConfig.dateDisplayStyle?"yyyy-MM-dd HH:mm:ss":"YEAR_MONTH"===this.extraConfig.dateDisplayStyle?"yyyy-MM":"ONLY_YEAR"===this.extraConfig.dateDisplayStyle?"yyyy":"yyyy-MM-dd"}}},I=T,O=(r("a879"),d(I,S,C,!1,null,null,null)),A=O.exports,M=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-component search-number"},[r("el-form-item",[r("template",{slot:"label"},[r("x-ellipsis",{staticClass:"fix-cursor",attrs:{mode:"origin",label:e.label}})],1),r("div",{staticClass:"range-item"},[r("x-number-input",{staticClass:"form-el-input-number",attrs:{placeholder:"请输入"},model:{value:e.minValue,callback:function(t){e.minValue=t},expression:"minValue"}}),r("div",{staticClass:"range-item-divide"},[e._v(" ~ ")]),r("x-number-input",{staticClass:"form-el-input-number",attrs:{placeholder:"请输入"},model:{value:e.maxValue,callback:function(t){e.maxValue=t},expression:"maxValue"}})],1)],2)],1)},P=[];function k(e){return R(e)||L(e)||E(e)||N()}function N(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,t){if(e){if("string"===typeof e)return F(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}function L(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return F(e)}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);re.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"add";this.loadingData=!0,this.extarConfig.loadData(this.pageInfo).then((function(r){"add"===t?e.options=[].concat(U(e.options),U(r)):"replace"===t&&(e.options=r)}),(function(e){})).finally((function(){e.loadingData=!1}))}}},Z=K,J=d(Z,z,G,!1,null,null,null),Q=J.exports,ee=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("x-drawer",e._g({attrs:{"append-to-body":!0,"destroy-on-close":!0,drawerVisible:e.visible,"wrapper-class":"detail-draw",title:"自开发详情页",width:"calc(50% + 32px)"},on:{"update:drawerVisible":function(t){e.visible=t},"update:drawer-visible":function(t){e.visible=t}}},e.$listeners))},te=[],re={name:"DetailDrawer",data:function(){return{visible:!1}},created:function(){},methods:{showDrawer:function(){this.visible=!0},closeDrawer:function(){this.visible=!1}}},ae=re,ne=d(ae,ee,te,!1,null,null,null),ie=ne.exports,oe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("x-modal",e._g({attrs:{"append-to-body":!0,"destroy-on-close":!0,modalVisible:e.visible,"wrapper-class":"edit-modal",title:e.modalTitle,width:500},on:{"update:modalVisible":function(t){e.visible=t},"update:modal-visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.closeModal}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)]},proxy:!0}])},e.$listeners),[r("el-form",{ref:"editForm",attrs:{model:e.formData,rules:e.formRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"名称:",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入名称",maxlength:"100",disabled:!e.isNameEditable},model:{value:e.formData.templateName,callback:function(t){e.$set(e.formData,"templateName",t)},expression:"formData.templateName"}})],1)],1)],1)},se=[],le=function(e){return function(t){return Object.prototype.toString.call(t)==="[object ".concat(e,"]")}};le("String"),le("Array"),le("Object"),le("Boolean"),le("Function"),le("Number"),le("Promise");function ce(){try{for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"edit",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.mode=r,this.currentRow=e,this.currentStatus=a||e&&e.status||"",this.formData="add"===r?{templateName:"",template_status:"草稿"}:{templateName:e.templateName||"",template_status:e.template_status},this.visible=!0,this.$nextTick((function(){t.$refs.editForm&&t.$refs.editForm.clearValidate()}))},closeModal:function(){this.visible=!1,this.currentRow=null,this.currentStatus="",this.formData={templateName:"",template_status:""}},handleSubmit:function(){var e=this;this.$refs.editForm.validate((function(t){if(t){var r={mode:e.mode,formData:ge(ge({},e.formData),{},{createBy:de(),userId:de()}),row:e.currentRow};e.$emit("submit",r),e.closeModal()}}))}}},xe=_e,we=(r("3840"),d(xe,oe,se,!1,null,null,null)),De=we.exports;function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Te(e){for(var t=1;t0?r("div",{staticClass:"approval-timeline"},[r("el-timeline",e._l(e.timelineNodes,(function(t,a){return r("el-timeline-item",{key:a,attrs:{color:e.getTimelineColor(t.result||t.status,a,e.timelineNodes.length)}},[r("div",{staticClass:"timeline-item-content"},[r("div",{staticClass:"node-title"},[e._v(" "+e._s(t.title)+" ")]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"node-info"},[r("div",{staticClass:"node-user"},[e._v(" "+e._s(t.userName||"--")+" "),r("span",{staticClass:"node-time"},[e._v(" "+e._s(e.formatTime(t.operateTime))+" ")])])]),r("div",{staticClass:"node-status",class:e.getStatusClass(t.result||t.status)},[e._v(" "+e._s(e.setStatusText(t.result||t.status))+" ")]),t.opinion?r("div",{staticClass:"node-opinion"},[e._v(" 审批意见:"+e._s(t.opinion)+" ")]):e._e()])])])})),1)],1):r("div",{staticClass:"empty-progress"},[r("span",{staticClass:"empty-text"},[e._v("暂无审批流程数据")])])]):e._e()],1),e.isApprovalMode?r("div",{staticClass:"page-approval-content",class:{"has-footer":e.isApprovalMode}},[r("div",{staticClass:"approval-content"},[r("div",{staticClass:"approval-process-title"},[e._m(0),r("el-input",{attrs:{maxlength:"100","show-word-limit":"",placeholder:"请输入流程主题"},model:{value:e.approvalFormData.processTitle,callback:function(t){e.$set(e.approvalFormData,"processTitle",t)},expression:"approvalFormData.processTitle"}})],1),r("div",{staticClass:"approval-table-section"},[r("el-table",{staticClass:"approval-table",attrs:{data:e.tableData,border:"","max-height":e.approvalTableMaxHeight}},e._l(e.approvalTableConfig.colConfigs,(function(t){return r("el-table-column",{key:t.prop,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth,align:t.align||"center","show-overflow-tooltip":t.showOverflowTooltip},scopedSlots:e._u([{key:"default",fn:function(r){return[t.formatter?[e._v(" "+e._s(t.formatter({cellValue:r.row[t.prop],row:r.row,rowIndex:r.$index}))+" ")]:[e._v(" "+e._s(r.row[t.prop])+" ")]]}}],null,!0)})})),1),r("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":e.pagination.currentPage,"page-sizes":[10,20,50,100],"page-size":e.pagination.pageSize,total:e.pagination.total,layout:"total, prev, pager, next, sizes, jumper"},on:{"size-change":e.approvalPageSizeChange,"current-change":e.approvalCurrentPageChange}})],1),r("div",{staticClass:"approval-description"},[r("div",{staticClass:"description-label"},[e._v(" 说明 ")]),r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入"},model:{value:e.approvalFormData.description,callback:function(t){e.$set(e.approvalFormData,"description",t)},expression:"approvalFormData.description"}})],1),r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-title"},[e._v(" 审批环节 ")]),r("div",{staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[e._m(1),r("tbody",e._l(e.approvalWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"",placeholder:"请选择","remote-method":function(t){return e.handleRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userId||t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])])]):e._e(),e.isMaintainMode?r("div",{staticClass:"page-footer"},[r("div",{staticClass:"footer-buttons"},[r("el-button",{on:{click:e.handleBackFromMaintain}},[e._v(" 返回 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 保存 ")])],1)]):e._e(),e.isApprovalMode?r("div",{staticClass:"page-footer"},[r("div",{staticClass:"footer-buttons"},[r("el-button",{on:{click:e.handleApprovalCancel}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting,disabled:!e.approvalFormData.processTitle||!e.approvalFormData.processTitle.trim()},on:{click:e.handleApprovalFormSubmit}},[e._v(" 确定 ")])],1)]):e._e(),r("el-dialog",{attrs:{title:e.paramModalTitle,visible:e.paramModalVisible,width:"800px","close-on-click-modal":!1,"append-to-body":"",modal:!0,"modal-append-to-body":!0,"custom-class":"param-edit-dialog"},on:{"update:visible":function(t){e.paramModalVisible=t},close:e.handleParamModalClose}},[r("el-form",{ref:"paramForm",attrs:{model:e.paramFormData,rules:e.paramFormRules,"label-width":"120px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"子系统:",prop:"subsystemName"}},[r("el-input",{attrs:{placeholder:"请输入子系统"},model:{value:e.paramFormData.subsystemName,callback:function(t){e.$set(e.paramFormData,"subsystemName",t)},expression:"paramFormData.subsystemName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"类型:",prop:"parameterType"}},[r("el-input",{attrs:{placeholder:"请输入类型"},model:{value:e.paramFormData.parameterType,callback:function(t){e.$set(e.paramFormData,"parameterType",t)},expression:"paramFormData.parameterType"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"零部件名称:",prop:"partsName"}},[r("el-input",{attrs:{placeholder:"请输入零部件名称"},model:{value:e.paramFormData.partsName,callback:function(t){e.$set(e.paramFormData,"partsName",t)},expression:"paramFormData.partsName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"参数名称:",prop:"parameterName"}},[r("el-input",{attrs:{placeholder:"请输入参数名称"},model:{value:e.paramFormData.parameterName,callback:function(t){e.$set(e.paramFormData,"parameterName",t)},expression:"paramFormData.parameterName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"单位:",prop:"unit"}},[r("el-input",{attrs:{placeholder:"请输入单位"},model:{value:e.paramFormData.unit,callback:function(t){e.$set(e.paramFormData,"unit",t)},expression:"paramFormData.unit"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"参数计划来源:",prop:"parameterSource"}},[r("el-select",{attrs:{placeholder:"请选择参数计划来源"},model:{value:e.paramFormData.parameterSource,callback:function(t){e.$set(e.paramFormData,"parameterSource",t)},expression:"paramFormData.parameterSource"}},[r("el-option",{attrs:{value:"公式计算",label:"公式计算"}}),r("el-option",{attrs:{value:"数据平台手工录入",label:"数据平台手工录入"}}),r("el-option",{attrs:{value:"TC分类表",label:"TC分类表"}})],1)],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"数值类型:",prop:"isNumber"}},[r("el-radio-group",{model:{value:e.paramFormData.isNumber,callback:function(t){e.$set(e.paramFormData,"isNumber",t)},expression:"paramFormData.isNumber"}},[r("el-radio",{attrs:{label:"数值"}},[e._v(" 数值 ")]),r("el-radio",{attrs:{label:"非数值"}},[e._v(" 非数值 ")])],1)],1)],1)],1),r("el-form-item",{attrs:{label:"填写部门:",prop:"department"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择填写部门",readonly:""},nativeOn:{click:function(t){return e.handleOpenDepartmentDialog.apply(null,arguments)}},model:{value:e.paramFormData.departmentName,callback:function(t){e.$set(e.paramFormData,"departmentName",t)},expression:"paramFormData.departmentName"}},[r("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:function(t){return t.stopPropagation(),e.handleOpenDepartmentDialog.apply(null,arguments)}},slot:"suffix"})])],1),r("el-form-item",{attrs:{label:"分类编号/公式:",prop:"numberOrFormula"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入分类编号或公式"},model:{value:e.paramFormData.numberOrFormula,callback:function(t){e.$set(e.paramFormData,"numberOrFormula",t)},expression:"paramFormData.numberOrFormula"}})],1),r("el-form-item",{attrs:{label:"备注:",prop:"remarks"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入备注"},model:{value:e.paramFormData.remarks,callback:function(t){e.$set(e.paramFormData,"remarks",t)},expression:"paramFormData.remarks"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.paramModalVisible=!1}}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.paramSubmitting},on:{click:e.handleParamFormSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:e.batchModifyDepartmentMode?"批量修改部门":"选择填写部门",visible:e.departmentDialogVisible,width:"500px","append-to-body":"","custom-class":"department-select-dialog"},on:{"update:visible":function(t){e.departmentDialogVisible=t},close:e.handleDepartmentDialogClose}},[r("div",{staticClass:"department-dialog-content"},[r("el-input",{staticClass:"department-search-input",attrs:{placeholder:"请输入部门名称进行搜索",clearable:"","prefix-icon":"el-icon-search"},model:{value:e.departmentSearchText,callback:function(t){e.departmentSearchText=t},expression:"departmentSearchText"}}),r("div",{staticClass:"department-tree-wrapper"},[r("el-tree",{ref:"departmentTree",attrs:{data:e.departmentTreeData,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","current-node-key":e.currentDepartmentNodeKey,"expand-on-click-node":!1},on:{"node-click":e.handleDepartmentTreeNodeClick}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDepartmentDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirmDepartment}},[e._v("确定")])],1)]),r("el-dialog",{attrs:{title:"导入参数",visible:e.importDialogVisible,width:"400px","append-to-body":""},on:{"update:visible":function(t){e.importDialogVisible=t},close:e.handleImportDialogClose}},[r("el-upload",{staticClass:"import-uploader",attrs:{drag:"","auto-upload":!1,limit:1,accept:".xls,.xlsx,.csv","file-list":e.importFileList,"on-change":e.handleImportFileChange,"on-remove":e.handleImportFileRemove}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[e._v(" 将文件拖到此处,或"),r("em",[e._v("点击上传")])]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 仅支持Excel或CSV模板文件 ")])]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleImportDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.importing},on:{click:e.handleImportConfirm}},[e._v(" 开始导入 ")])],1)],1)],1)},ft=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"description-label"},[e._v(" 流程主题 "),r("span",{staticClass:"required-mark"},[e._v("*")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])])}];function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}function gt(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=St(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function yt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,a=new Array(t);re.versionNum?t:e}),r[0]);return a&&a.version===t},tableMaxHeight:function(){var e=window.innerHeight||document.documentElement.clientHeight,t=56,r=this.isApprovalMode||this.isMaintainMode?0:80,a=this.isMaintainMode?0:50,n=this.isMaintainMode?80:0,i=40,o=20,s=e-t-r-a-n-i-o;return Math.max(s,400)},approvalTableMaxHeight:function(){var e=window.innerHeight||document.documentElement.clientHeight,t=56,r=100,a=60,n=200,i=50,o=80,s=100,l=e-t-r-a-n-i-o-s;return Math.max(l,300)},tableConfig:function(){var e=this,t=[];return this.isMaintainMode,t.push({prop:"subsystemName",label:"子系统",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"parameterType",label:"类型",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"partsName",label:"零部件名称",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"parameterName",label:"参数名称",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"unit",label:"单位",showOverflowTooltip:!0,width:"100",align:"center"},{prop:"parameterValue",label:"参数值",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"isNumber",label:"数值类型",showOverflowTooltip:!0,width:"100",align:"center",formatter:function(t){var r=t.cellValue;return e.formatIsNumberDisplay(r)}},{prop:"parameterSource",label:"参数计划来源",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"department",label:"填写部门",showOverflowTooltip:!0,minWidth:"120",align:"center",formatter:function(t){var r=t.cellValue;return e.formatDepartmentDisplay(r)}},{prop:"remarks",label:"备注",showOverflowTooltip:!0,minWidth:"100",align:"center"}),this.isMaintainMode&&t.push({prop:"options",label:"操作",customSlot:"options",align:"center",width:"120",fixed:"right"}),{colConfigs:t}},paramModalTitle:function(){return"add"===this.paramModalMode?"添加参数":"修改参数"},paramFormRules:function(){return{subsystemName:[{required:!0,message:"请输入子系统",trigger:"blur"}],parameterType:[{required:!0,message:"请输入类型",trigger:"blur"}],parameterName:[{required:!0,message:"请输入参数名称",trigger:"blur"}]}},approvalTableConfig:function(){var e=this;return{colConfigs:[{prop:"subsystemName",label:"子系统",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"parameterType",label:"类型",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"partsName",label:"零部件名称",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"parameterName",label:"参数名称",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"unit",label:"单位",showOverflowTooltip:!0,width:"100",align:"center"},{prop:"parameterValue",label:"参数值",showOverflowTooltip:!0,minWidth:"120",align:"center"},{prop:"isNumber",label:"数值类型",showOverflowTooltip:!0,width:"100",align:"center",formatter:function(t){var r=t.cellValue;return e.formatIsNumberDisplay(r)}},{prop:"parameterSource",label:"参数计划来源",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"department",label:"填写部门",showOverflowTooltip:!0,minWidth:"120",align:"center",formatter:function(t){var r=t.cellValue;return e.formatDepartmentDisplay(r)}},{prop:"remarks",label:"备注",showOverflowTooltip:!0,minWidth:"150",align:"center"},{prop:"modifyDetails",label:"变动说明",showOverflowTooltip:!0,minWidth:"150",align:"center"}]}},approvalFormRules:function(){return{name:[{required:!0,message:"请输入名称",trigger:"blur"}],model:[{required:!0,message:"请输入型号",trigger:"blur"}],value:[{required:!0,message:"请输入数值",trigger:"blur"}]}},initiateNode:function(){return this.detail&&this.detail.createBy?{userName:this.detail.createBy,createTime:this.detail.createdTime||this.detail.createTime,status:"INITIATE",result:"INITIATE"}:null},timelineNodes:function(){var e=[];if(this.flowNodes&&this.flowNodes.length>0){var t=wt(this.flowNodes),r=t.findIndex((function(e){return"待审批"===e.result}));-1!==r&&(t[r]=yt(yt({},t[r]),{},{result:"APPROVING"})),t.forEach((function(t){var r="APPROVING",a="APPROVING";t.result&&("MSG"===t.result?(r="PASS",a="PASS"):"REJECT"===t.result?(r="REJECT",a="REJECT"):"RETURN"===t.result?(r="RETURN",a="RETURN"):"APPROVING"===t.result?(r="APPROVING",a="APPROVING"):"PASS"===t.result?(r="PASS",a="PASS"):"待审批"===t.result&&(r="待审批",a="待审批"));var n=t.opinions&&Array.isArray(t.opinions)&&t.opinions.length>0?t.opinions[0]:null,i=t.todoUserName||t.undoUserName||"--";e.push({title:t.node||"审批节点",userName:i,operateTime:t.approvalTime||"",result:r,status:a,opinion:n})}))}else this.progress&&this.progress.length>0&&this.progress.forEach((function(t){t.steps&&t.steps.length>0&&t.steps.forEach((function(r){e.push({title:t.title||"审批节点",userName:r.userName,operateTime:r.approvalTime||r.handleTime||r.createTime,result:r.result||r.status,status:r.result||r.status,opinion:r.opinion||r.remark||r.comment||null})}))}));return e}},watch:{departmentSearchText:function(e){var t=this;if(this.$refs.departmentTree)if(this.$refs.departmentTree.filter(e),e&&""!==e.trim())this.$nextTick((function(){var e=t.getAllDepartmentNodeKeys(t.departmentTreeData);if(t.$refs.departmentTree&&e.length>0)try{t.$refs.departmentTree.setExpandedKeys(e)}catch(r){t.expandAllNodesRecursive(t.departmentTreeData)}}));else if(this.$refs.departmentTree)try{this.$refs.departmentTree.setExpandedKeys([])}catch(r){}},templateId:{handler:function(e){e&&(this.internalTemplateId=e,this.loadTemplateInfo())},immediate:!0},templateName:{handler:function(e){e&&(this.internalTemplateName=e)},immediate:!0},"$route.query.id":{handler:function(e){e&&!this.templateId&&(this.internalTemplateId=e,this.loadTemplateInfo())},immediate:!0},"$route.query.name":{handler:function(e){e&&!this.templateName&&(this.internalTemplateName=e)},immediate:!0},templateVersion:{handler:function(e){e?this.internalTemplateVersion=e:this.loadLatestVersion()},immediate:!0},changeId:{handler:function(e){e&&(this.internalChangeId=e)},immediate:!0},versionList:{handler:function(e){var t=this;if(e&&e.length>0){var r=this.internalTemplateVersion||this.templateVersion,a=e.some((function(e){return t.getVersionName(e)===r}));if(a){this.updateCurrentStatus();var n=e.find((function(e){return t.getVersionName(e)===r}));n&&n.id&&(this.internalChangeId=n.id)}else this.templateVersion&&e.some((function(e){return t.getVersionName(e)===t.templateVersion}))?this.internalTemplateVersion=this.templateVersion:this.internalTemplateVersion=this.getVersionName(e[0]),this.updateCurrentStatus(),this.$nextTick((function(){t.loadData()}))}},immediate:!0},detail:{handler:function(e){var t=this;e&&e.status?this.currentStatus=e.status:this.updateCurrentStatus(),e&&e.changeId&&!this.internalChangeId&&(this.internalChangeId=e.changeId),e&&e.flowId&&this.$nextTick((function(){t.getApprovalSpet()}))},immediate:!0,deep:!0}},created:function(){var e=this;if(this.loadUserSelfRole(),this.templateId?(this.internalTemplateId=this.templateId,this.loadTemplateInfo()):this.$route.query.id&&(this.internalTemplateId=this.$route.query.id,this.loadTemplateInfo()),this.templateName?this.internalTemplateName=this.templateName:this.$route.query.name&&(this.internalTemplateName=this.$route.query.name),this.changeId?this.internalChangeId=this.changeId:this.detail&&this.detail.changeId&&(this.internalChangeId=this.detail.changeId),this.templateVersion){if(this.internalTemplateVersion=this.templateVersion,this.versionList&&this.versionList.length>0){var t=this.versionList.find((function(t){return e.getVersionName(t)===e.templateVersion}));t&&t.id&&(this.internalChangeId=t.id)}}else this.loadLatestVersion();this.updateCurrentStatus(),this.loadData()},mounted:function(){var e=this;this.loadDepartmentList(),this.detail&&this.detail.flowId&&this.getApprovalSpet(),this.fromTodo&&this.flowId&&this.$nextTick((function(){e.loadData()}))},methods:{loadUserSelfRole:function(){var e=yt(yt({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){if(e&&e.data)try{localStorage.setItem("user_self_role",JSON.stringify(e.data))}catch(t){console.error("存储权限数据到 localStorage 失败:",t)}})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},checkPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"查看";try{var a=localStorage.getItem("user_self_role");if(!a)return!1;var n=JSON.parse(a);if(!Array.isArray(n))return!1;var i=n.filter((function(a){var n=a.menuPath&&e&&(a.menuPath.includes(e)||e.includes(a.menuPath));return!!n&&((!t||a.subsystem===t)&&a.parameterPer===r)}));return i.length>0}catch(o){return console.error("检查权限失败:",o),!1}},handleResendApproval:function(){var e=this;this.originalTableDataForApproval=JSON.parse(JSON.stringify(this.tableData)),this.originalPaginationForApproval=JSON.parse(JSON.stringify(this.pagination));var t=this.getChangeId();if(t){this.isResendMode=!0;var r=yt(yt({},et.GET_RETURN_APPROVAL),{},{params:{templateId:t},disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){console.log("获取审批流程信息:",t),e.resendApprovalData=t,e.getApprovalChange()})).asyncErrorCatch((function(t){console.error("获取审批流程信息失败:",t),e.isResendMode=!1,e.resendApprovalData=null,e.getApprovalChange(),e.$message({type:"warning",message:"获取原审批流程信息失败,将使用空的人员列表"})}))}else this.$message.error("缺少变更ID,无法重新发起审批")},hasViewPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e||this.displayTemplateName;return this.checkPermission("模板管理",t,"查看")},hasEditPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e||this.displayTemplateName;return this.checkPermission("模板管理",t,"编辑")},isAdmin:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){return 1===e.isAdmin||"1"===e.isAdmin}))}catch(r){return console.error("检查管理员权限失败:",r),!1}},hasGlobalEditPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return"参数模板管理"===t&&"编辑"===r}))}catch(r){return console.error("检查全局编辑权限失败:",r),!1}},hasTemplateManagementPermission:function(){if(this.isAdmin())return!0;if(this.hasGlobalEditPermission())return!0;var e=this.displayTemplateName;if(!e)return!1;try{var t=localStorage.getItem("user_self_role");if(!t)return!1;var r=JSON.parse(t);if(!Array.isArray(r))return!1;var a="参数模板管理/".concat(e);return r.some((function(e){var t=e.permissionPath||"";return t===a}))}catch(n){return console.error("检查参数模板管理权限失败:",n),!1}},hasParameterEditPermission:function(e,t){if(this.isAdmin())return!0;if(this.hasGlobalEditPermission())return!0;if(!e||!t)return!1;if(this.templateManagementPermissions&&this.templateManagementPermissions.length>0){var r=this.templateManagementPermissions.filter((function(r){return r.subsystem===e&&(r.partsName===t&&"编辑"===r.parameterPer)}));return r.length>0}try{var a=localStorage.getItem("user_self_role");if(!a)return!1;var n=JSON.parse(a);if(!Array.isArray(n))return!1;var i=n.filter((function(r){return!(r.menuPath&&""!==r.menuPath.trim()&&!r.menuPath.includes("模板管理"))&&(!(!r.subsystem||r.subsystem!==e)&&(!(!r.partsName||r.partsName!==t)&&"编辑"===r.parameterPer))}));return i.length>0}catch(o){return console.error("检查参数权限失败:",o),!1}},canEditOrDeleteRow:function(e){if(!e)return!1;if(this.isAdmin())return!0;if(this.hasGlobalEditPermission())return!0;if(e.createdBy===de())return!0;var t=e.subsystemName||e.subsystem||"",r=e.partsName||"";return!!(t&&r&&this.hasParameterEditPermission(t,r))},loadDepartmentList:function(){var e=this,t=yt(yt({},et.GET_DEPT_OF_USER),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log("resp2222",t);var r=[];t&&t.data&&(r=t.data||[]),e.departmentList=e.formatDepartmentTreeData(r),e.departmentTreeData=e.formatDepartmentTreeData(r)})).asyncErrorCatch((function(t){console.error("加载部门列表失败:",t),e.departmentList=[],e.departmentTreeData=[]}))},formatDepartmentTreeData:function(e){if(!Array.isArray(e))return[];var t=function e(t){var r={id:t.id,name:t.name||t.label||"",children:void 0};return t.children&&Array.isArray(t.children)&&t.children.length>0&&(r.children=t.children.map((function(t){return e(t)}))),r};return e.map((function(e){return t(e)}))},handleOpenDepartmentDialog:function(){var e=this;this.batchModifyDepartmentMode=!1,this.departmentDialogVisible=!0,this.departmentSearchText="",this.selectedDepartmentNode=null,this.paramFormData.departmentId?(this.currentDepartmentNodeKey=this.paramFormData.departmentId,this.$nextTick((function(){var t=e.findDepartmentNodeById(e.departmentTreeData,e.paramFormData.departmentId);if(t&&(e.selectedDepartmentNode=t),e.$refs.departmentTree)try{e.$refs.departmentTree.setCurrentKey(e.paramFormData.departmentId)}catch(r){console.warn("设置当前节点失败:",r)}}))):this.currentDepartmentNodeKey=null},handleDepartmentDialogClose:function(){this.departmentDialogVisible=!1,this.selectedDepartmentNode=null,this.departmentSearchText="",this.batchModifyDepartmentMode=!1,this.currentDepartmentNodeKey=null},filterDepartmentNode:function(e,t){return!e||(t.name||"").toLowerCase().includes(e.toLowerCase())},getAllDepartmentNodeKeys:function(e){var t=this,r=[];return Array.isArray(e)?(e.forEach((function(e){e.id&&r.push(e.id),e.children&&Array.isArray(e.children)&&e.children.length>0&&(r=r.concat(t.getAllDepartmentNodeKeys(e.children)))})),r):r},expandAllNodesRecursive:function(e){var t=this;Array.isArray(e)&&this.$refs.departmentTree&&e.forEach((function(e){if(e.id)try{t.$refs.departmentTree.store.setExpanded(e.id,!0)}catch(r){}e.children&&Array.isArray(e.children)&&e.children.length>0&&t.expandAllNodesRecursive(e.children)}))},findDepartmentNodeById:function(e,t){if(!Array.isArray(e)||!t)return null;var r,a=gt(e);try{for(a.s();!(r=a.n()).done;){var n=r.value;if(n.id===t)return n;if(n.children&&Array.isArray(n.children)&&n.children.length>0){var i=this.findDepartmentNodeById(n.children,t);if(i)return i}}}catch(o){a.e(o)}finally{a.f()}return null},handleDepartmentTreeNodeClick:function(e){console.log("节点被点击:",e),this.selectedDepartmentNode=e,this.currentDepartmentNodeKey=e.id||null},handleConfirmDepartment:function(){console.log("handleConfirmDepartment 被调用, batchModifyDepartmentMode:",this.batchModifyDepartmentMode),this.batchModifyDepartmentMode?this.handleConfirmBatchModifyDepartment():this.handleConfirmDepartmentSelect()},handleConfirmDepartmentSelect:function(){if(console.log("handleConfirmDepartmentSelect"),!this.selectedDepartmentNode&&this.$refs.departmentTree)try{var e=this.$refs.departmentTree.getCurrentKey();if(e){var t=this.findDepartmentNodeById(this.departmentTreeData,e);t&&(this.selectedDepartmentNode=t)}}catch(a){console.warn("获取当前选中节点失败:",a)}if(this.selectedDepartmentNode){var r=this.getDepartmentPathName(this.selectedDepartmentNode.id);this.paramFormData.departmentId=this.selectedDepartmentNode.id,this.paramFormData.departmentName=r||this.selectedDepartmentNode.name,this.paramFormData.department=r||this.selectedDepartmentNode.name,this.handleDepartmentDialogClose()}else this.$message({type:"warning",message:"请选择一个部门"})},getDepartmentPathName:function(e){if(!e||!this.departmentList||0===this.departmentList.length)return"";var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=gt(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(wt(n),[o.name]);if(o.id===r)return s.join("-");if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null};return t(this.departmentList,e)||""},formatDepartmentDisplay:function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t},formatIsNumberDisplay:function(e){return"非数值"===e||!1===e||0===e||"0"===e?"非数值":"数值"===e||!0===e||1===e||"1"===e?"数值":void 0===e||null===e||""===e?"—":String(e)},normalizeParamIsNumberForForm:function(e){return"非数值"===e||!1===e||0===e||"0"===e?"非数值":"数值"},handleBack:function(){var e=this;this.isApprovalMode?this.handleApprovalCancel():this.isMaintainMode?this.$confirm("确定要返回吗?未保存的修改将丢失。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectedRows=[],e.$refs.vxeTable&&e.$refs.vxeTable.clearSelection&&e.$refs.vxeTable.clearSelection(),e.originalTableData&&e.originalTableData.length>0&&(e.tableData=JSON.parse(JSON.stringify(e.originalTableData))),e.originalTableData=[],e.isMaintainMode=!1,console.log("已退出维护参数模式"),e.loadData()})).catch((function(){})):(console.log("handleBack called"),this.$emit("back"))},pageSizeChange:function(e){this.$set(this.pagination,"pageSize",e),this.loadData()},rowClickEvent:function(e){console.warn(e)},currentChange:function(e){this.$set(this.pagination,"currentPage",e),this.loadData()},approvalPageSizeChange:function(e){this.$set(this.pagination,"pageSize",e),this.getApprovalChange()},approvalCurrentPageChange:function(e){this.$set(this.pagination,"currentPage",e),this.getApprovalChange()},selectDataChange:function(e){if(this.isMaintainMode){var t=(e||[]).filter((function(e){return"delete"!==e.operation}));this.$set(this,"selectedRows",t),console.log("选中的行:",this.selectedRows.length)}else this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={parameterType:"",partsName:"",parameterName:""},this.handleSearch()},handleSearch:function(){this.$set(this.pagination,"currentPage",1),this.loadData()},handleImport:function(){this.importing||(this.importDialogVisible=!0)},handleImportFileChange:function(e,t){var r=[".xls",".xlsx",".csv"],a=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv","application/vnd.ms-excel.sheet.macroEnabled.12"];if(e&&e.raw){var n=e.raw,i=n.name||"",o=i.substring(i.lastIndexOf(".")).toLowerCase(),s=n.type||"",l=r.some((function(e){return o===e})),c=!s||a.some((function(e){return s.includes(e)}));if(!l&&!c)return this.$message.error("文件类型不支持,仅支持 ".concat(r.join("、")," 格式的文件")),this.selectedImportFile=null,this.importFileList=[],!1;this.selectedImportFile=n,this.importFileList=t.slice(-1)}else this.selectedImportFile=null,this.importFileList=t.slice(-1)},handleImportFileRemove:function(){this.selectedImportFile=null,this.importFileList=[]},handleImportDialogClose:function(){this.importing||(this.importDialogVisible=!1,this.selectedImportFile=null,this.importFileList=[])},handleImportConfirm:function(){var e=this;if(!this.importing&&this.selectedImportFile){var t=this.getDetailTemplateId();if(t){var r=this.selectedImportFile,a=[".xls",".xlsx",".csv"],n=r.name||"",i=n.substring(n.lastIndexOf(".")).toLowerCase();if(!a.includes(i))return this.$message.error("文件类型不支持,仅支持 ".concat(a.join("、")," 格式的文件")),this.selectedImportFile=null,void(this.importFileList=[]);var o=function(){e.importing=!1,e.importDialogVisible=!1,e.selectedImportFile=null,e.importFileList=[]},s=new FormData;s.append("file",r),s.append("userId",de()),s.append("createBy",de()),s.append("templateRowId",t);var l=yt(yt({},et.IMPORT_MODEL),{},{params:s});this.importing=!0;var c=this.$loading({lock:!0,text:"正在导入参数,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$upload(l,null,!1).asyncThen((function(){c.close(),o(),0===e.tableData.length?e.loadData():e.handleBack()})).asyncErrorCatch((function(t){console.error("导入失败:",t);var r="导入失败";t.data&&t.data.error&&(r=Array.isArray(t.data.error)?t.data.error.join(", "):t.data.error),e.$message({type:"error",message:r}),c.close(),o()})).finally((function(){c&&c.close(),e.importing=!1})),this.importDialogVisible=!1}else this.$message.error("缺少模板ID,无法导入")}else this.selectedImportFile||this.$message({type:"warning",message:"请先选择要导入的文件"})},handleDownloadTemplate:function(){var e=this,t=this.getDetailTemplateId();if(t){if(this.downloadingRowId!==t){var r=et.DOWNLODE_MODEL||{},a=r.url,n=r.method,i=void 0===n?"get":n,o=r.headers,s=void 0===o?{}:o,l={url:a,method:i,params:{templateRowId:t,templateEmpty:!0},responseType:"blob",headers:s};l.url?("post"===(l.method||"").toLowerCase()&&(l.data=l.params,delete l.params),this.downloadingRowId=t,this.$axios(l).then((function(e){var t=e.data;if(t){var r=e.headers&&(e.headers["content-type"]||e.headers["Content-Type"]);if(r&&r.includes("application/json"))try{var a=new FileReader;a.onload=function(){console.log("下载失败: ".concat(a.result))},a.readAsText(t)}catch(u){console.error("解析下载失败响应异常:",u)}else{var n=e.headers&&(e.headers["content-disposition"]||e.headers["Content-Disposition"]),i="导入模板.xlsx";if(n){var o=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(n),s=o?o[1]||o[2]:"";if(s)try{i=decodeURIComponent(s)}catch(u){i=s}}var l=window.URL.createObjectURL(t),c=document.createElement("a");c.href=l,c.download=i,document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l),console.log("下载开始,请查看浏览器下载列表")}}else console.log("下载失败,文件内容为空")})).catch((function(e){console.error("下载失败:",e),console.log("下载失败,请稍后重试")})).finally((function(){e.downloadingRowId=""}))):console.log("未配置下载地址")}}else console.log("未找到模板ID,无法下载")},getApprovalChange:function(){var e=this;this.originalTableDataForApproval=JSON.parse(JSON.stringify(this.tableData)),this.originalPaginationForApproval=JSON.parse(JSON.stringify(this.pagination));var t=yt(yt({},et.GET_APPROVAL_CHANGE),{},{params:{templateId:this.getChangeId(),pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log("GET_APPROVAL_CHANGE 接口返回数据:",t);var r=t&&t.data&&t.data.result||[],a=t&&t.data&&(t.data.count||t.data.total||t.data.totalCount)||0,n="number"===typeof a?a:parseInt(a,10)||0,i=r.map((function(t,r){var a=yt(yt({},t),{},{parameterType:t.parameterType||t.type||"",number:t.number||(e.pagination.currentPage-1)*e.pagination.pageSize+r+1});return a}));e.tableData=i,e.$set(e.pagination,"total",n),e.isApprovalMode=!0;var o=e.displayTemplateName||"模板";e.approvalFormData={processTitle:"".concat(o,"审批流程"),description:""},e.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"审核",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"会签",required:!1,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"批准",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null}],e.isResendMode&&e.resendApprovalData&&e.$nextTick((function(){e.fillResendApprovalData(e.resendApprovalData),e.isResendMode=!1,e.resendApprovalData=null}))})).asyncErrorCatch((function(e){console.error("获取审批变更数据失败:",e)}))},handleInitiateApproval:function(){this.getApprovalChange()},handleRestartApproval:function(){var e=this,t=this.getDetailTemplateId();t?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0;var t=yt(yt({},et.RESTART_MODEL_APPROVAL),{},{params:{templateId:e.getChangeId(),userId:de()},disableSuccessMsg:!0});e.$request(t).asyncThen((function(t){e.$message({message:"直送成功",type:"success"}),e.loadData(),e.detail&&e.detail.flowId&&e.getApprovalSpet(),e.$emit("refresh"),e.resending=!1})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1})).finally((function(){e.resending=!1}))})).catch((function(){})):this.$message.error("缺少模板ID,无法执行直送操作")},fillResendApprovalData:function(e){var t,r,a=this;console.log("fillResendApprovalData 接收到的数据:",e);var n=[],i=null;i=Array.isArray(null===e||void 0===e?void 0:e.data)?e.data:Array.isArray(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.data)?e.data.data:Array.isArray(null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.result)?e.data.result:Array.isArray(e)?e:null!==e&&void 0!==e&&e.data&&!Array.isArray(e.data)?e.data:e,Array.isArray(i)?n=i:i&&Array.isArray(i.data)?n=i.data:i&&Array.isArray(i.result)?n=i.result:i&&Array.isArray(i.nodeList)?n=i.nodeList:i&&Array.isArray(i.flowNodes)&&(n=i.flowNodes),console.log("提取的节点列表:",n),console.log("处理后的数据对象:",i);var o=e&&e.data&&!Array.isArray(e.data)&&"object"===mt(e.data)?e.data:i&&!Array.isArray(i)?i:e;if(o&&!Array.isArray(o)){if(o.progressTitle||o.processTitle)this.approvalFormData.processTitle=o.progressTitle||o.processTitle||"",console.log("填充流程主题:",this.approvalFormData.processTitle);else{var s=this.displayTemplateName||"模板";this.approvalFormData.processTitle="".concat(s,"审批流程")}(o.explanation||o.description)&&(this.approvalFormData.description=o.explanation||o.description||"")}else{var l=this.displayTemplateName||"模板";this.approvalFormData.processTitle="".concat(l,"审批流程")}n&&n.length>0?(console.log("开始填充节点人员信息,节点数量:",n.length),n.forEach((function(e){var t=e.nodeName||e.node||"";if(console.log("处理节点:",t,e),t){var r=a.approvalWorkflowSteps.find((function(e){return e.name===t}));if(r){var n=e.assignees||[];if(console.log("节点 assignees:",n),Array.isArray(n)&&0!==n.length){var i=n.map((function(e){var t=e.userId||e.id||"";return{userId:t,username:e.username||e.name||"",userNumber:e.userNumber||e.account||e.userId||e.id||""}})).filter((function(e){return e.userId}));console.log("提取的人员信息:",i),i.length>0&&(r.handlers=i.map((function(e){return e.userId})).filter(Boolean),r.options=i.map((function(e){return{userId:e.userId,username:e.username||"",userNumber:e.userNumber||""}})).filter((function(e){return e.userId})),console.log("填充后的 step:",r.name,"handlers:",r.handlers,"options:",r.options))}else console.log("assignees 为空或不是数组,跳过")}else console.log("未找到对应的审批环节:",t)}else console.log("节点名称为空,跳过")}))):console.log("节点列表为空,无法填充人员信息"),o&&!Array.isArray(o)&&(this.resendFlowId=o.flowId||o.id||null,console.log("提取的 flowId:",this.resendFlowId)),this.isResendModeFilled=!0,this.originalProcessTitle=this.approvalFormData.processTitle||"",this.approvalWorkflowSteps.forEach((function(e){e.originalData={handlers:JSON.parse(JSON.stringify(e.handlers||[])),options:JSON.parse(JSON.stringify(e.options||[]))},e.isEditing=!1}))},handleApprovalCancel:function(){this.isApprovalMode=!1,this.isResendMode=!1,this.resendApprovalData=null,this.originalTableDataForApproval&&this.originalTableDataForApproval.length>0&&(this.tableData=JSON.parse(JSON.stringify(this.originalTableDataForApproval))),this.originalPaginationForApproval&&(this.$set(this.pagination,"currentPage",this.originalPaginationForApproval.currentPage),this.$set(this.pagination,"pageSize",this.originalPaginationForApproval.pageSize),this.$set(this.pagination,"total",this.originalPaginationForApproval.total)),this.originalTableDataForApproval=[],this.originalPaginationForApproval=null,this.approvalFormData={processTitle:"",description:""},this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"审核",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"会签",required:!1,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null},{name:"批准",required:!0,handlers:[],options:[],loading:!1,isEditing:!1,originalData:null}],this.isResendModeFilled=!1,this.resendFlowId=null,this.isProcessTitleEditing=!1,this.originalProcessTitle="",this.handleSearch()},handleEditStep:function(e){var t=this.approvalWorkflowSteps[e];t&&(t.originalData={handlers:JSON.parse(JSON.stringify(t.handlers||[])),options:JSON.parse(JSON.stringify(t.options||[]))},t.isEditing=!0)},handleSaveStep:function(e){var t=this,r=this.approvalWorkflowSteps[e];if(r){var a=(r.handlers||[]).filter(Boolean);if(0!==a.length){var n=null;if(this.detail&&this.detail.flowId?n=this.detail.flowId:this.resendFlowId&&(n=this.resendFlowId),n){var i=yt(yt({},et.EDIT_APPROVAL_PROCESS),{},{params:{flowId:n,nodeName:r.name,userIds:a},disableSuccessMsg:!0});r.loading=!0,this.$request(i).asyncThen((function(){r.originalData={handlers:JSON.parse(JSON.stringify(r.handlers||[])),options:JSON.parse(JSON.stringify(r.options||[]))},r.isEditing=!1,t.$message({type:"success",message:"保存成功"})})).asyncErrorCatch((function(e){console.error("保存环节编辑失败:",e),t.$message({type:"error",message:(null===e||void 0===e?void 0:e.message)||"保存失败,请重试"})})).finally((function(){r.loading=!1}))}else this.$message({type:"error",message:"缺少流程ID,无法保存"})}else this.$message({type:"warning",message:"请至少选择一位处理人"})}},handleCancelEditStep:function(e){var t=this.approvalWorkflowSteps[e];t&&t.originalData&&(t.handlers=JSON.parse(JSON.stringify(t.originalData.handlers||[])),t.options=JSON.parse(JSON.stringify(t.originalData.options||[])),t.isEditing=!1)},continueApprovalProcess:function(){var e=this,t=this.resendFlowId;if(!t)return this.$message.error("缺少流程ID,无法继续审批"),this.approvalSubmitting=!1,Promise.reject(new Error("缺少流程ID"));var r=yt(yt({},et.CONTINUE_APPROVAL_PROCESS),{},{params:{flowId:t,userId:de()},disableSuccessMsg:!0});return this.approvalSubmitting=!0,new Promise((function(t,a){e.$request(r).asyncThen((function(r){console.log("审批提交成功"),e.$message({type:"success",message:"审批提交成功"}),e.isApprovalMode=!1,e.isResendModeFilled=!1,e.resendFlowId=null,e.approvalSubmitting=!1,e.originalTableDataForApproval=[],e.originalPaginationForApproval=null,e.handleBack(),t(r)})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message({type:"error",message:(null===t||void 0===t?void 0:t.message)||"审批提交失败,请重试"}),e.approvalSubmitting=!1,a(t)}))}))},checkApprovalDataChanged:function(){var e=(this.approvalFormData.processTitle||"").trim(),t=(this.originalProcessTitle||"").trim();if(e!==t)return!0;for(var r=0;r0)this.$message({type:"warning",message:'请为必填环节"校对、审核、批准"选择处理人'});else if(this.approvalFormData.processTitle=t,this.isResendModeFilled){var a=this.checkApprovalDataChanged();console.log("hasChanged",a),a?(this.approvalSubmitting=!0,this.saveApprovalChanges().then((function(){return e.continueApprovalProcess()})).catch((function(t){console.error("保存变更失败:",t),e.$message({type:"error",message:(null===t||void 0===t?void 0:t.message)||"保存变更失败,请重试"}),e.approvalSubmitting=!1}))):this.continueApprovalProcess()}else{var n=this.getDetailTemplateId();if(!n)return void this.$message({type:"error",message:"缺少模板ID,无法发起审批"});var i=(this.approvalFormData.processTitle||"").trim(),o=this.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),s={templateRowId:n,nodeList:o,processTitle:i,createBy:de(),userId:de()},l=yt(yt({},et.START_APPROVAL),{},{params:s,disableSuccessMsg:!0});this.approvalSubmitting=!0,this.$request(l).asyncThen((function(t){console.log("审批提交成功"),e.$message({type:"success",message:"审批提交成功"}),e.isApprovalMode=!1,e.approvalSubmitting=!1,e.originalTableDataForApproval=[],e.originalPaginationForApproval=null,e.handleBack()})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message({type:"error",message:"审批提交失败,请重试"})})).finally((function(){e.approvalSubmitting=!1}))}}else this.$message({type:"warning",message:"请填写流程主题"})},handleRemoteSearch:function(e,t){var r=this.approvalWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=null;n=yt(yt({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0}),this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userId&&l.set(e.userId,e)})),o.forEach((function(e){e.userId&&!l.has(e.userId)&&l.set(e.userId,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return e.userId&&r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return e.userId&&r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},handleMaintainParams:function(){var e=this;this.isMaintainMode=!this.isMaintainMode,this.isMaintainMode?(this.selectedRows=[],this.$set(this.pagination,"currentPage",1),this.loadAllData().then((function(){e.originalTableData=JSON.parse(JSON.stringify(e.tableData)),console.log("已进入维护参数模式")}))):(this.selectedRows=[],this.$refs.vxeTable&&this.$refs.vxeTable.clearSelection&&this.$refs.vxeTable.clearSelection(),this.tableData=JSON.parse(JSON.stringify(this.originalTableData)),this.originalTableData=[],this.$set(this.pagination,"currentPage",1),console.log("已退出维护参数模式"),this.loadData())},handleCancel:function(){var e=this;this.$confirm("确定要取消维护吗?未保存的修改将丢失。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.isMaintainMode=!1,e.loadData(),console.log("已取消维护")})).catch((function(){}))},handleBackFromMaintain:function(){var e=this;this.$confirm("确定要返回吗?未保存的修改将丢失。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectedRows=[],e.$refs.vxeTable&&e.$refs.vxeTable.clearSelection&&e.$refs.vxeTable.clearSelection(),e.originalTableData&&e.originalTableData.length>0&&(e.tableData=JSON.parse(JSON.stringify(e.originalTableData))),e.originalTableData=[],e.isMaintainMode=!1,console.log("已退出维护参数模式"),e.loadData()})).catch((function(){}))},handleReset:function(){var e=this;this.$confirm("确定要重置吗?所有未提交的修改将丢失。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.tableData=JSON.parse(JSON.stringify(e.originalTableData));var t=(e.pagination.currentPage-1)*e.pagination.pageSize;e.tableData=e.tableData.map((function(e,r){var a=yt({},e);return delete a.operation,delete a._rowClassName,yt(yt({},a),{},{number:t+r+1})})),e.$forceUpdate(),console.log("已重置为原始数据")})).catch((function(){}))},handleSubmit:function(){var e=this;this.$confirm("确定要提交修改吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.getDetailTemplateId();if(t){var r=e.tableData.map((function(e){return yt(yt({},e),{},{parameterId:e.id})})),a={templateRowId:t,createBy:de(),userId:de(),parameterForms:r};e.submitting=!0;var n=yt(yt({},et.EDIT_MODEL_PARAM),{},{params:a,disableSuccessMsg:!0});e.$request(n).asyncThen((function(t){e.submitting=!1,console.log("提交成功"),e.isMaintainMode=!1,e.originalTableData=[],e.submitting=!1;var r=t.data&&(t.data.templateId||t.data.templateRowId);if(e.setDetailTemplateId(r),e.internalTemplateVersion=t.data.version,e.templateVersion=t.data.version,console.log(e.templateId,t.data.templateRowId),e.versionList.some((function(e){return e.version===t.data.version}))){var a=e.versionList.find((function(e){return e.version===t.data.version}));a.status="DRAFT",a.rowId=r,a.id=t.data.templateId}else e.versionList.push({version:t.data.version,status:"DRAFT",rowId:r,id:t.data.templateId});e.loadData()})).asyncErrorCatch((function(t){e.submitting=!1,console.error("提交失败:",t)}))}else console.log("缺少模板ID,无法提交")})).catch((function(){e.submitting=!1}))},handleAddParam:function(){var e=this;this.paramModalMode="add",this.paramCurrentRow=null,this.paramCurrentRowIndex=-1,this.paramFormData={subsystemName:"",parameterType:"",partsName:"",parameterName:"",department:"",departmentName:"",departmentId:"",parameterSource:"",numberOrFormula:"",fillDepartment:"",remarks:"",isNumber:"数值"},this.paramModalVisible=!0,this.$nextTick((function(){e.$refs.paramForm&&e.$refs.paramForm.clearValidate()}))},handleRowEdit:function(e){var t=this;this.paramModalMode="edit",this.paramCurrentRow=e,this.paramCurrentRowIndex=this.tableData.findIndex((function(t){return t===e}));var r=this.findDepartmentIdByName(e.department||"");this.paramFormData={subsystemName:e.subsystemName||"",parameterType:e.parameterType||"",partsName:e.partsName||"",parameterName:e.parameterName||"",unit:e.unit||"",operation:"update",department:e.department||"",departmentName:e.department||"",departmentId:r||"",parameterSource:e.parameterSource||"",numberOrFormula:e.numberOrFormula||"",fillDepartment:e.fillDepartment||"",remarks:e.remarks||"",isNumber:this.normalizeParamIsNumberForForm(e.isNumber)},this.paramModalVisible=!0,this.$nextTick((function(){t.$refs.paramForm&&t.$refs.paramForm.clearValidate()}))},handleRowDelete:function(e,t){var r=this;this.$confirm("确定要删除该参数吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r.isMaintainMode&&r.markRowAsDeleted(e)})).catch((function(){}))},markRowAsDeleted:function(e){var t=this;if(!e)return!1;var r=this.tableData.findIndex((function(t){return t.rowId===e.rowId||t.id===e.id||e._localId&&t._localId===e._localId||t===e}));if(-1!==r){var a=this.tableData[r];if("delete"===a.operation)return!1;var n=yt(yt({},a),{},{operation:"delete",_rowClassName:"row-deleted"});return this.$set(this.tableData,r,n),this.selectedRows=this.selectedRows.filter((function(t){return!(t.rowId&&t.rowId===e.rowId||t.id&&t.id===e.id||e._localId&&t._localId&&t._localId===e._localId||t===e)})),this.$nextTick((function(){t.$refs.vxeTable&&t.$refs.vxeTable.toggleRowSelection&&t.$refs.vxeTable.toggleRowSelection(n,!1)})),console.log("已标记为删除"),!0}return!1},handleBatchDelete:function(){var e=this;if(this.selectedRows&&0!==this.selectedRows.length){var t=this.selectedRows.filter((function(e){return"delete"!==e.operation}));0!==t.length?this.$confirm("确定要删除选中的 ".concat(t.length," 个参数吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=0;t.forEach((function(t){e.markRowAsDeleted(t)&&r++})),e.selectedRows=[],e.$refs.vxeTable&&e.$refs.vxeTable.clearSelection&&e.$refs.vxeTable.clearSelection(),r>0&&e.$message({type:"success",message:"已标记 ".concat(r," 个参数为删除")})})).catch((function(){})):this.$message({type:"warning",message:"选中的参数中已包含已删除的项,请重新选择"})}else this.$message({type:"warning",message:"请先选择要删除的参数"})},handleBatchModifyDepartment:function(){var e=this;if(this.selectedRows&&0!==this.selectedRows.length){var t=this.selectedRows.filter((function(e){return"delete"!==e.operation}));0!==t.length?(this.batchModifyDepartmentMode=!0,this.departmentDialogVisible=!0,this.departmentSearchText="",this.selectedDepartmentNode=null,this.currentDepartmentNodeKey=null,this.$nextTick((function(){if(e.$refs.departmentTree)try{e.$refs.departmentTree.setCurrentKey(null)}catch(t){console.warn("清空树节点选中状态失败:",t)}}))):this.$message({type:"warning",message:"选中的参数中已包含已删除的项,请重新选择"})}else this.$message({type:"warning",message:"请先选择要修改部门的参数"})},handleConfirmBatchModifyDepartment:function(){var e=this;if(console.log("selectedDepartmentNode",this.selectedDepartmentNode),!this.selectedDepartmentNode&&this.$refs.departmentTree)try{var t=this.$refs.departmentTree.getCurrentKey();if(t){var r=this.findDepartmentNodeById(this.departmentTreeData,t);r&&(this.selectedDepartmentNode=r)}}catch(l){console.warn("获取当前选中节点失败:",l)}if(this.selectedDepartmentNode){var a=this.selectedRows.filter((function(e){return"delete"!==e.operation}));if(0===a.length)return this.$message({type:"warning",message:"选中的参数中已包含已删除的项,请重新选择"}),void this.handleDepartmentDialogClose();var n=this.getDepartmentPathName(this.selectedDepartmentNode.id),i=n||this.selectedDepartmentNode.name,o=this.selectedDepartmentNode.id,s=0;a.forEach((function(t){var r=e.tableData.findIndex((function(e){return e.rowId&&t.rowId&&e.rowId===t.rowId||e.id&&t.id&&e.id===t.id||t._localId&&e._localId&&e._localId===t._localId||e===t}));if(-1!==r){var a=e.tableData[r];if("delete"===a.operation)return;var n=yt(yt({},a),{},{department:i,departmentId:o,operation:a.operation||"update"});e.$set(e.tableData,r,n),s++}})),this.handleDepartmentDialogClose(),s>0?this.$message({type:"success",message:"已批量修改 ".concat(s," 个参数的部门")}):this.$message({type:"warning",message:"没有可修改的参数"})}else this.$message({type:"warning",message:"请选择一个部门"})},getRowClassName:function(e){var t=e.row;return!this.isMaintainMode||"delete"!==t.operation&&"row-deleted"!==t._rowClassName?"":"row-deleted"},getRowKey:function(e){return e.rowId||e.id||e._localId||null},checkRowMethod:function(e,t){return"delete"!==e.operation&&"row-deleted"!==e._rowClassName},handleParamFormSubmit:function(){var e=this;this.$refs.paramForm.validate((function(t){if(t&&e.isMaintainMode){if("add"===e.paramModalMode){var r=(e.pagination.currentPage-1)*e.pagination.pageSize,a={id:null,rowId:null,subsystemName:e.paramFormData.subsystemName,parameterType:e.paramFormData.parameterType,partsName:e.paramFormData.partsName,parameterName:e.paramFormData.parameterName,department:e.paramFormData.department,parameterSource:e.paramFormData.parameterSource,numberOrFormula:e.paramFormData.numberOrFormula,unit:e.paramFormData.unit,remarks:e.paramFormData.remarks,isNumber:e.paramFormData.isNumber,number:e.tableData.length>0?Math.max.apply(Math,wt(e.tableData.map((function(e){return e.number||0}))))+1:r+e.tableData.length+1,operation:"insert",_localId:e.nextLocalId++};e.tableData.push(a),e.$set(e.pagination,"total",e.tableData.length)}else{var n=e.tableData.findIndex((function(t){return e.paramCurrentRow&&t.rowId&&e.paramCurrentRow.rowId&&t.rowId===e.paramCurrentRow.rowId||e.paramCurrentRow&&t.id&&e.paramCurrentRow.id&&t.id===e.paramCurrentRow.id}));if(-1===n&&e.paramCurrentRow&&e.paramCurrentRow._localId&&(n=e.tableData.findIndex((function(t){return t._localId&&t._localId===e.paramCurrentRow._localId}))),-1===n&&e.paramCurrentRowIndex>-1&&(n=e.paramCurrentRowIndex),-1===n)return void console.warn("未找到需要更新的行");e.$set(e.tableData,n,yt(yt({},e.tableData[n]),{},{subsystemName:e.paramFormData.subsystemName,parameterType:e.paramFormData.parameterType,partsName:e.paramFormData.partsName,parameterName:e.paramFormData.parameterName,department:e.paramFormData.department,parameterSource:e.paramFormData.parameterSource,numberOrFormula:e.paramFormData.numberOrFormula,unit:e.paramFormData.unit,remarks:e.paramFormData.remarks,isNumber:e.paramFormData.isNumber,operation:"update"}))}e.paramModalVisible=!1,console.log("add"===e.paramModalMode?"已添加到表格":"已更新表格数据"),e.$message({type:"success",message:"保存成功"})}}))},handleParamModalClose:function(){this.paramFormData={subsystemName:"",parameterType:"",partsName:"",parameterName:"",department:"",departmentName:"",departmentId:"",parameterSource:"",numberOrFormula:"",fillDepartment:"",remarks:"",isNumber:"数值"},this.paramCurrentRow=null,this.paramCurrentRowIndex=-1,this.paramSubmitting=!1,this.selectedDepartmentNode=null,this.$refs.paramForm&&this.$refs.paramForm.clearValidate()},findDepartmentIdByName:function(e){var t=this;if(!e||!this.departmentList||0===this.departmentList.length)return"";var r=function e(r,a){var n,i=gt(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=t.getDepartmentPathName(o.id);if(s===a||o.name===a)return o.id;if(o.children&&o.children.length>0){var l=e(o.children,a);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null};return r(this.departmentList,e)||""},extractParameterId:function(e){return e&&(e.id||e.parameterId||e.parameterID||e.parameterid||e.parameterCode||e.code)||null},buildParamPayload:function(e){var t=this.internalTemplateVersion||this.templateVersion;return{templateRowId:e,version:t,subsystemName:this.paramFormData.subsystemName,parameterType:this.paramFormData.parameterType,partsName:this.paramFormData.partsName,parameterName:this.paramFormData.parameterName,parameterSource:this.paramFormData.parameterSource,numberOrFormula:this.paramFormData.numberOrFormula,department:this.paramFormData.department,fillDepartment:this.paramFormData.fillDepartment,remarks:this.paramFormData.remarks,isNumber:this.paramFormData.isNumber}},loadTemplateInfo:function(){this.getDetailTemplateId()},loadLatestVersion:function(){var e=this.getDetailTemplateId();e&&this.internalTemplateVersion,this.internalTemplateVersion},loadAllData:function(){var e=this,t=this.getDetailTemplateId();if(!t)return this.tableData=[],this.$set(this.pagination,"total",0),Promise.resolve();var r=this.internalTemplateVersion||this.templateVersion,a={templateRowId:t,version:r,pageNumber:1,pageSize:999999};this.searchPanelValue.parameterType&&(a.parameterType=this.searchPanelValue.parameterType),this.searchPanelValue.partsName&&(a.partsName=this.searchPanelValue.partsName),this.searchPanelValue.parameterName&&(a.parameterName=this.searchPanelValue.parameterName);var n=yt(yt({},et.GET_MODEL_DETAIL),{},{params:a,disableSuccessMsg:!0});return this.$request(n).asyncThen((function(t){var r=t&&t.data&&t.data.result||[],a=t&&t.data&&(t.data.count||t.data.total||t.data.totalCount)||0,n="number"===typeof a?a:parseInt(a,10)||0;e.tableData=r.map((function(e,t){return yt(yt({},e),{},{parameterType:e.parameterType||e.type||"",number:e.number||t+1})}));var i=t&&t.data&&(t.data.status||t.data.state)||"",o=r&&r.length>0&&(r[0].status||r[0].state)||"";e.currentStatus=i||o||"",e.$set(e.pagination,"total",n)})).asyncErrorCatch((function(t){console.error("查询失败:",t),e.tableData=[],e.$set(e.pagination,"total",0)}))},getApprovalSpet:function(){var e=this;if(this.detail&&this.detail.flowId){var t=this.getDetailTemplateId();if(t){var r=yt(yt({},et.GET_PPROVAL_ALL),{},{params:{flowId:this.detail.flowId,templateId:t},disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){console.log("审批流程数据:",t);var r=t.data||t;e.progressDetail={explanation:r.explanation||"",flowStatus:r.flowStatus||"",progressTitle:r.progressTitle||"",templateVersion:r.templateVersion||"",contentName:r.contentName||""},e.flowNodes=r.flowNodes||[]})).asyncErrorCatch((function(t){console.error("获取审批流程数据失败:",t),e.flowNodes=[],e.progressDetail={}}))}}},setStatusText:function(e){var t={PASS:"通过",REJECT:"拒绝",REFUSE:"驳回",APPROVE:"批准",APPROVING:"审批中",PENDING:"待处理",WAITING:"待处理",STAY:"待审批",INITIATE:"发起审批",RETURN:"退回"};return t[e]||e||"待处理"},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},getTimelineColor:function(e,t,r){return"PASS"===e||"APPROVE"===e?"#67C23A":"REJECT"===e||"REFUSE"===e?"#F56C6C":"APPROVING"===e||"PENDING"===e||"WAITING"===e?"#E6A23C":"STAY"===e?"#909399":"#409EFF"},getStatusClass:function(e){var t={PASS:"status-pass",APPROVE:"status-approve",REJECT:"status-reject",REFUSE:"status-reject",APPROVING:"status-approving",PENDING:"status-pending",WAITING:"status-pending",STAY:"status-default",INITIATE:"status-initiate",RETURN:"status-return"};return t[e]||"status-default"},getVersionName:function(e){return e.version||e.name||""},getVersionKey:function(e){return e.version||e.name||e.rowId||""},getDetailTemplateId:function(){return this.internalTemplateId||this.templateId||""},setDetailTemplateId:function(e){e&&(this.internalTemplateId=e,this.templateId=e)},getChangeId:function(){return this.internalChangeId||this.changeId||this.detail&&this.detail.changeId||""},handleVersionChange:function(e){this.internalTemplateVersion=e;var t=this.versionList.find((function(t){return t.version===e}));if(t){this.internalChangeId=t.id||"";var r=t.id||t.rowId||"";this.setDetailTemplateId(r)}else this.internalChangeId="";this.$set(this.pagination,"currentPage",1),this.loadData(),this.updateCurrentStatus()},updateCurrentStatus:function(){var e=this;if(this.detail&&this.detail.status)this.currentStatus=this.detail.status;else{var t=this.internalTemplateVersion||this.templateVersion;if(t&&this.versionList&&this.versionList.length>0){var r=this.versionList.find((function(r){var a=e.getVersionName(r);return a===t}));r&&r.status?this.currentStatus=r.status:this.currentStatus=this.detail&&this.detail.status||""}else this.currentStatus=this.detail&&this.detail.status||""}},loadData:function(){var e=this,t=this.getDetailTemplateId();if(!t)return this.tableData=[],void this.$set(this.pagination,"total",0);var r=this.internalTemplateVersion||this.templateVersion,a={templateRowId:t,version:r,pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize};this.searchPanelValue.parameterType&&(a.parameterType=this.searchPanelValue.parameterType),this.searchPanelValue.partsName&&(a.partsName=this.searchPanelValue.partsName),this.searchPanelValue.parameterName&&(a.parameterName=this.searchPanelValue.parameterName);var n=yt(yt({},et.GET_MODEL_DETAIL),{},{params:a,disableSuccessMsg:!0});this.$request(n).asyncThen((function(t){console.log("GET_MODEL_DETAIL 接口返回数据:",t);var r=t&&t.data&&t.data.result||[],a=t&&t.data&&(t.data.count||t.data.total||t.data.totalCount)||0,n="number"===typeof a?a:parseInt(a,10)||0;console.log("获取到的总数:",a,"转换后的数字:",n);var i=(e.pagination.currentPage-1)*e.pagination.pageSize;e.tableData=r.map((function(e,t){return yt(yt({},e),{},{parameterType:e.parameterType||e.type||"",number:e.number||i+t+1})}));var o=t&&t.data&&(t.data.status||t.data.state)||"",s=r&&r.length>0&&(r[0].status||r[0].state)||"";e.currentStatus=o||s||"",console.log("从 GET_MODEL_DETAIL 接口获取到的状态:",e.currentStatus),e.$set(e.pagination,"total",n),console.log("设置后的 pagination.total:",e.pagination.total)})).asyncErrorCatch((function(t){console.error("查询失败:",t),e.tableData=[],e.$set(e.pagination,"total",0)}))}}},At=Ot,Mt=(r("4d43"),d(At,ht,ft,!1,null,null,null)),Pt=Mt.exports;function kt(e){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(e)}function Nt(e){return Rt(e)||Lt(e)||jt(e)||Et()}function Et(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Lt(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Rt(e){if(Array.isArray(e))return Vt(e)}function Ft(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=jt(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function jt(e,t){if(e){if("string"===typeof e)return Vt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vt(e,t):void 0}}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"查看";try{var a=localStorage.getItem("user_self_role");if(!a)return!1;var n=JSON.parse(a);if(!Array.isArray(n))return!1;var i=n.filter((function(a){var n=a.menuPath&&e&&(a.menuPath.includes(e)||e.includes(a.menuPath));return!!n&&((!t||a.subsystem===t)&&a.parameterPer===r)}));return i.length>0}catch(o){return console.error("检查权限失败:",o),!1}},hasViewPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this.checkPermission("模板管理",e,"查看"):this.checkPermission("模板管理",null,"查看")},hasEditPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this.checkPermission("模板管理",e,"编辑"):this.checkPermission("模板管理",null,"编辑")},getStatusType:function(e){if("number"===typeof e)return e;if("string"===typeof e){if("已发布"===e||"COMPLETE"===e)return"已完成";if("审核中"===e||"REVIEWING"===e)return"审核中";if("校对中"===e||"PROOFREADING"===e)return"校对中";if("已批准"===e||"APPROVING"===e)return"已批准";if("草稿"===e||"DRAFT"===e)return"草稿"}return!0===e?"已发布":"草稿"},pageSizeChange:function(e){this.pagination.pageSize=e,this.loadData()},rowClickEvent:function(e){console.warn(e)},handleRowDetail:function(e){this.currentTemplateId=e.rowId,this.currentTemplateRowId=e.id,this.currentTemplateName=e.templateName,e.returnNum>0?this.fromTodo=!0:this.fromTodo=!1,this.currentVersion=e.version,this.currentDetail={status:e.status||""},this.loadVersionList(e),0===this.templateManagementPermissions.length&&this.loadUserSelfRole(),this.showModelDetail=!0},loadVersionList:function(e){var t=this,r=e&&(e.rowId||e.templateRowId||e.id);if(r){var a=Bt(Bt({},et.CHECK_MODEL_VERISON),{},{params:{templateRowId:r},disableSuccessMsg:!0});this.$request(a,!1).asyncThen((function(e){var r=e&&e.data&&(e.data.result||e.data.list||e.data)||[];t.versionList=Array.isArray(r)?r:[]})).asyncErrorCatch((function(e){console.error("获取版本列表失败:",e),t.versionList=[]}))}else this.versionList=[]},handleBackFromDetail:function(){console.log("handleBackFromDetail called"),this.showModelDetail=!1,this.currentTemplateId="",this.currentTemplateName="",this.currentVersion="",this.versionList=[],this.currentDetail={},this.loadData()},handleRowVersion:function(e){this.$refs.versionModal.showModal(e)},handleDownloadImportTemplate:function(){var e=this,t=et.DOWNLODE_ALL_MODEL||{},r=t.url,a=t.method,n=void 0===a?"get":a,i=t.headers,o=void 0===i?{}:i,s={url:r,method:n,params:{},responseType:"blob",headers:o};s.url?("get"===(s.method||"").toLowerCase()&&(s.data=s.params,delete s.params),this.$axios(s).then((function(t){var r=t.data;if(r){var a=t.headers&&(t.headers["content-type"]||t.headers["Content-Type"]);if(a&&a.includes("application/json"))try{var n=new FileReader;n.onload=function(){console.log("下载失败: ".concat(n.result))},n.readAsText(r)}catch(d){console.error("解析下载失败响应异常:",d)}else{var i=t.headers&&(t.headers["content-disposition"]||t.headers["Content-Disposition"]),o="导入模板.xlsx";if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(d){o=l}}var c=window.URL.createObjectURL(r),u=document.createElement("a");u.href=c,u.download=o,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c),e.$message({type:"success",message:"下载成功"}),console.log("下载开始,请查看浏览器下载列表")}}else console.log("下载失败,文件内容为空")})).catch((function(t){console.error("下载失败:",t),e.$message.error("下载失败,请稍后重试")}))):console.log("未配置下载地址")},handleVersionClick:function(e){console.log(e,"data");var t=e.version,r=e.templateId,a=e.template,n=e.versionList,i=e.changeId,o=e.returnNum;this.currentTemplateRowId=i,this.currentTemplateId=r,this.currentTemplateName=a.templateName||"",this.fromTodo=o>0||!1,this.currentVersion=t.name||t.version||"",this.currentDetail={status:t.status||a.status||""},n&&n.length>0&&(this.versionList=n),this.showModelDetail=!0},handleRowDownload:function(e){var t=this,r=e.rowId;if(r){if(this.downloadingRowId!==r){var a=et.DOWNLODE_MODEL||{},n=a.url,i=a.method,o=void 0===i?"get":i,s=a.headers,l=void 0===s?{}:s,c={url:n,method:o,params:{templateRowId:r,templateEmpty:!1},responseType:"blob",headers:l};if(c.url){"post"===(c.method||"").toLowerCase()&&(c.data=c.params,delete c.params);var u=e.templateName?"".concat(e.templateName).concat(e.version?" ".concat(e.version):"",".xlsx"):"文件下载.xlsx";this.downloadingRowId=r,this.$axios(c).then((function(e){var r=e.data;if(r){var a=e.headers&&(e.headers["content-type"]||e.headers["Content-Type"]);if(a&&a.includes("application/json"))try{var n=new FileReader;n.onload=function(){console.log("下载失败: ".concat(n.result))},n.readAsText(r)}catch(p){console.error("解析下载失败响应异常:",p)}else{var i=e.headers&&(e.headers["content-disposition"]||e.headers["Content-Disposition"]),o=u;if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(p){o=l}}var c=window.URL.createObjectURL(r),d=document.createElement("a");d.href=c,d.download=o,document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(c),t.$message({type:"success",message:"下载成功"}),console.log("下载开始,请查看浏览器下载列表")}}else console.log("下载失败,文件内容为空")})).catch((function(e){console.error("下载失败:",e),console.log("下载失败,请稍后重试")})).finally((function(){t.downloadingRowId=""}))}else console.log("未配置下载地址")}}else console.log("未找到模板ID,无法下载")},handleRowEdit:function(e){this.$refs.editModal.showModal(e,"edit",e.status)},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},handleAddTemplate:function(){this.$refs.editModal.showModal(null,"add")},handleImportTemplate:function(){this.importing||(this.selectedImportFile=null,this.importFileList=[],this.importDialogVisible=!0)},handleImportFileChange:function(e,t){var r=[".xls",".xlsx",".csv"],a=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv","application/vnd.ms-excel.sheet.macroEnabled.12"];if(e&&e.raw){var n=e.raw,i=n.name||"",o=i.substring(i.lastIndexOf(".")).toLowerCase(),s=n.type||"",l=r.some((function(e){return o===e})),c=!s||a.some((function(e){return s.includes(e)}));if(!l&&!c)return this.$message.error("文件类型不支持,仅支持 ".concat(r.join("、")," 格式的文件")),this.selectedImportFile=null,this.importFileList=[],!1;this.selectedImportFile=n,this.importFileList=t.slice(-1)}else this.selectedImportFile=null,this.importFileList=t.slice(-1)},handleImportFileRemove:function(){this.selectedImportFile=null,this.importFileList=[]},handleImportDialogClose:function(){this.importing||(this.importDialogVisible=!1,this.selectedImportFile=null,this.importFileList=[])},textDemo:function(){var e=Bt(Bt({},et.TEXT_DEMO),{},{params:{pageNumber:1,pageSize:10},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){console.log(e,"resp")})).asyncErrorCatch((function(e){console.error("测试接口失败:",e)}))},handleImportConfirm:function(){var e=this;if(!this.importing&&this.selectedImportFile){var t=this.selectedImportFile,r=[".xls",".xlsx",".csv"],a=t.name||"",n=a.substring(a.lastIndexOf(".")).toLowerCase();if(!r.includes(n))return this.$message.error("文件类型不支持,仅支持 ".concat(r.join("、")," 格式的文件")),this.selectedImportFile=null,void(this.importFileList=[]);var i=new FormData;i.append("file",t),i.append("userId",de()),i.append("createBy",de());var o=Bt(Bt({},et.IMPORT_MODEL),{},{params:i,disableSuccessMsg:!1});this.importing=!0;var s=this.$loading({lock:!0,text:"正在导入模板,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$upload(o,null,!1).then((function(t){console.log(t,"resp"),s.close(),e.importing=!1,setTimeout((function(){e.loadData()}),1e3)})).catch((function(t){if(console.log(t,"err"),s.close(),e.importing=!1,e.errorList="",t&&t.data&&t.data.errors&&Array.isArray(t.data.errors)){var r,a=Ft(t.data.errors);try{for(a.s();!(r=a.n()).done;){var n=r.value;e.errorList+=n+"\n"}}catch(t){a.e(t)}finally{a.f()}}else e.errorList=t.message||"导入失败,请稍后重试";e.errorDialogVisible=!0,setTimeout((function(){e.loadData()}),1e3)})).finally((function(){s&&s.close(),e.importing=!1})),this.importDialogVisible=!1}else this.selectedImportFile||this.$message.warning("请先选择要导入的文件")},handleTemplateSubmit:function(e){var t=this,r=e.mode,a=e.formData,n=e.row;if(console.log(a,"formData"),"add"===r){var i=Bt(Bt({},et.ADD_MODEL),{},{params:a,disableSuccessMsg:!0});this.$request(i).asyncThen((function(e){t.loadData(),t.$message({type:"success",message:"添加成功"})})).asyncErrorCatch((function(e){console.error("添加失败:",e)}))}else{var o=Bt(Bt({},et.EDIT_MODEL),{},{params:Bt(Bt({},a),{},{templateRowId:n.rowId,orderNum:n.orderNum||""})});this.$request(o).asyncThen((function(e){t.loadData(),t.$message({type:"success",message:"修改成功"})})).asyncErrorCatch((function(e){console.error("修改失败:",e)}))}},resetSearch:function(){Object.assign(this.searchPanelValue,Wt()),this.handleSearch()},handleSearch:function(){this.pagination.currentPage=1,this.loadData()},handleRefresh:function(){this.pagination.currentPage=1,this.handleSearch()},loadData:function(){var e=this,t=Bt(Bt({},et.GET_MODEL_LIST),{},{params:{pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize,templateName:this.searchPanelValue.templateName},disableSuccessMsg:!0});this.$request(t,!1).asyncThen((function(t){e.tableData=t.data.result,console.log(t.data.count,"resp.data.count"),e.pagination.total=t.data.count})).asyncErrorCatch((function(e){console.error("查询失败:",e)}))},filterTemplateOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim();this.filteredTemplateOptions=this.templateOptions.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else this.filteredTemplateOptions=this.templateOptions},loadTemplateOptions:function(){var e=this;this.templateSelectLoading=!0;var t=Bt(Bt({},et.GET_MODEL_LIST),{},{params:{pageNumber:1,pageSize:999},disableSuccessMsg:!0});this.$request(t,!1).asyncThen((function(t){var r=t.data.result||[],a=new Set,n=r.map((function(e){return e.templateName||e.po_name||""})).filter((function(e){return!(!e||a.has(e))&&(a.add(e),!0)})).map((function(e){return{label:e,value:e}}));e.templateOptions=n,e.filteredTemplateOptions=n,e.templateSelectLoading=!1})).asyncErrorCatch((function(t){console.error("加载模板列表失败:",t),e.templateOptions=[],e.filteredTemplateOptions=[],e.templateSelectLoading=!1}))},generateUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,r="x"===e?t:3&t|8;return r.toString(16)}))},handleShowOrderDialog:function(){var e=this,t=Bt(Bt({},et.GET_MODEL_LIST),{},{params:{pageNumber:1,pageSize:999},disableSuccessMsg:!0});this.$request(t,!1).asyncThen((function(t){var r=t.data.result||[];e.orderList=r.map((function(e,t){return{id:e.id||e.row_id||"temp_".concat(t,"_").concat(Date.now()),templateName:e.templateName||e.po_name,orderNum:e.orderNum||e.order_num||t+1}})),e.orderDialogVisible=!0,e.$nextTick((function(){e.initDragSort()}))})).asyncErrorCatch((function(t){console.error("加载模板列表失败:",t),e.$message.error("加载模板列表失败")}))},handleOrderDialogClose:function(){this.orderDialogVisible=!1,this.orderList=[]},initDragSort:function(){var e=this,t=document.querySelector(".order-table .el-table__body-wrapper tbody");if(t){var r=t.querySelectorAll("tr");r.forEach((function(e){e.draggable=!0,e.style.cursor="move"})),this.dragSortHandler&&(t.removeEventListener("dragstart",this.dragSortHandler.dragstart),t.removeEventListener("dragend",this.dragSortHandler.dragend),t.removeEventListener("dragover",this.dragSortHandler.dragover),t.removeEventListener("drop",this.dragSortHandler.drop));var a=null,n=function(e){var r=e.target.closest("tr");if(r){var n=Array.from(t.querySelectorAll("tr"));a=n.indexOf(r),r.style.opacity="0.5",e.dataTransfer.effectAllowed="move"}},i=function(e){var t=e.target.closest("tr");t&&(t.style.opacity="1"),a=null},o=function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},s=function(r){r.preventDefault(),r.stopPropagation();var n=r.target.closest("tr");if(n&&null!==a){var i=Array.from(t.querySelectorAll("tr")),o=i.indexOf(n);if(a!==o){var s=Nt(e.orderList),l=s[a];s.splice(a,1),s.splice(o,0,l),e.orderList=s,e.$nextTick((function(){e.initDragSort()}))}}};t.addEventListener("dragstart",n),t.addEventListener("dragend",i),t.addEventListener("dragover",o),t.addEventListener("drop",s),this.dragSortHandler={dragstart:n,dragend:i,dragover:o,drop:s}}},handleUpdateOrder:function(){var e=this;this.updatingOrder=!0;var t=this.orderList.map((function(e,t){return{id:e.id,orderNum:t+1}})),r=Bt(Bt({},et.UPDATE_TEMPLATE_ORDER),{},{params:{items:t}});this.$request(r).asyncThen((function(t){e.$message.success("排序更新成功"),e.handleOrderDialogClose(),e.loadData()})).asyncErrorCatch((function(t){console.error("更新排序失败:",t),e.$message.error("更新排序失败")})).finally((function(){e.updatingOrder=!1}))}}},qt=Ht,Yt=(r("615f"),d(qt,Ee,Le,!1,null,null,null)),Xt=Yt.exports,Kt=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showEngineDetail?e._e():[r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 玉柴发动机数据 ")]),r("div",{staticClass:"operation"},[e.hasEngineDataEditPermission()?r("el-button",{attrs:{type:"primary"},on:{click:e.handleDownloadTemplate}},[e._v("下载模板")]):e._e(),e.hasEngineDataEditPermission()?r("el-button",{staticClass:"import-button",on:{click:e.handleImport}},[e._v(" 导入机型 ")]):e._e(),e.hasEngineDataEditPermission()?r("el-button",{staticClass:"add-button",attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v(" 添加机型 ")]):e._e()],1)]),r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"searched-fields"},[r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("产品型号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.modelName,callback:function(t){e.$set(e.searchPanelValue,"modelName",t)},expression:"searchPanelValue.modelName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("状态代号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.productNumber,callback:function(t){e.$set(e.searchPanelValue,"productNumber",t)},expression:"searchPanelValue.productNumber"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("板块")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.plate,callback:function(t){e.$set(e.searchPanelValue,"plate",t)},expression:"searchPanelValue.plate"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("平台")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.platform,callback:function(t){e.$set(e.searchPanelValue,"platform",t)},expression:"searchPanelValue.platform"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("系列")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.series,callback:function(t){e.$set(e.searchPanelValue,"series",t)},expression:"searchPanelValue.series"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("细分市场")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.marketSegment,callback:function(t){e.$set(e.searchPanelValue,"marketSegment",t)},expression:"searchPanelValue.marketSegment"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("项目名称")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectName,callback:function(t){e.$set(e.searchPanelValue,"projectName",t)},expression:"searchPanelValue.projectName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("项目编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectNumber,callback:function(t){e.$set(e.searchPanelValue,"projectNumber",t)},expression:"searchPanelValue.projectNumber"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("任务分发状态")]),r("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchPanelValue.distributeStatus,callback:function(t){e.$set(e.searchPanelValue,"distributeStatus",t)},expression:"searchPanelValue.distributeStatus"}},[r("el-option",{attrs:{label:"已分发",value:"已分发"}}),r("el-option",{attrs:{label:"部分分发",value:"部分分发"}}),r("el-option",{attrs:{label:"未分发",value:"未分发"}}),r("el-option",{attrs:{label:"已完成",value:"已完成"}})],1)],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customHeadSlot,fn:function(n){var i=n.column;return[t.customHeadSlot?r("div",{key:a},[e._v(" "+e._s(i)+" "+e._s(t)+" ")]):e._e()]}}})),e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["options"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowDetail(i)}}},[e._v(" 查看 ")]),"未分发"===i.distributeStatus&&e.hasEngineDataEditPermission()?r("span",{staticClass:"link-separator"}):e._e(),"未分发"===i.distributeStatus&&e.hasEngineDataEditPermission()?r("a",{staticClass:"el-link el-link--primary",staticStyle:{"margin-left":"5px"},attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowEdit(i)}}},[e._v(" 编辑 ")]):e._e(),"未分发"!==i.distributeStatus&&"部分分发"!==i.distributeStatus||!e.hasEngineDataEditPermission()?e._e():r("span",{staticClass:"link-separator"}),"未分发"!==i.distributeStatus&&"部分分发"!==i.distributeStatus||!e.hasEngineDataEditPermission()?e._e():r("a",{staticClass:"el-link el-link--primary",staticStyle:{"margin-left":"5px"},attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowDispatch(i,o)}}},[e._v(" 分发 ")]),"未分发"===i.distributeStatus&&e.hasEngineDataEditPermission()&&1===i.versionNumber?r("span",{staticClass:"link-separator"}):e._e(),"未分发"===i.distributeStatus&&e.hasEngineDataEditPermission()&&1===i.versionNumber?r("a",{staticClass:"el-link el-link--primary",staticStyle:{"margin-left":"5px"},attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowDelete(i,o)}}},[e._v(" 删除 ")]):e._e()]):e._e(),"distributeStatus"===t.customSlot?r("div",{key:a+""+o},["已分发"===i[t.prop]?r("span",{staticClass:"status-tag status-done"},[e._v(" 已分发 ")]):"部分分发"===i[t.prop]?r("span",{staticClass:"status-tag status-partial"},[e._v(" 部分分发 ")]):"未分发"===i[t.prop]?r("span",{staticClass:"status-tag status-pending"},[e._v(" 未分发 ")]):"已完成"===i[t.prop]?r("span",{staticClass:"status-tag status-done"},[e._v(" 已完成 ")]):e._e()]):e._e(),"versionNumber"===t.customSlot?r("div",{key:a+""+o},[e._v(" V"+e._s(i[t.prop]||"")+" ")]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],e.showEngineDetail?r("engine-detail",{staticClass:"engine-detail-wrapper",attrs:{model:e.currentModel,"engine-model-i-d":e.currentEngineModelID,"is-dispatch-mode":e.isDispatchMode,"dispatch-type":e.dispatchType,detail:e.currentEngineDetail},on:{back:e.handleBackFromDetail}}):e._e(),r("add-engine-model-modal",{ref:"addEngineModelModal",on:{success:e.handleAddSuccess}}),r("el-dialog",{attrs:{title:"导入机型",visible:e.importDialogVisible,width:"400px","append-to-body":""},on:{"update:visible":function(t){e.importDialogVisible=t},close:e.handleImportDialogClose}},[r("el-upload",{staticClass:"import-uploader",attrs:{drag:"","auto-upload":!1,limit:1,accept:".xls,.xlsx","file-list":e.importFileList,"on-change":e.handleImportFileChange,"on-remove":e.handleImportFileRemove}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[e._v(" 将文件拖到此处,或"),r("em",[e._v("点击上传")])]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 仅支持Excel文件(.xlsx 或 .xls) ")])]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleImportDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.importing},on:{click:e.handleImportConfirm}},[e._v(" 开始导入 ")])],1)],1)],2)},Zt=[],Jt=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"engine-detail-page custom-page"},[r("div",{staticClass:"page-header"},[r("div",{staticClass:"header-left"},[r("el-button",{staticClass:"back-button",attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:function(t){return t.stopPropagation(),e.handleBack.apply(null,arguments)}}},[e._v(" 返回 ")]),r("div",{staticClass:"header-item"},[r("span",{staticClass:"label"},[e._v("版本:")]),r("el-select",{staticStyle:{width:"120px"},attrs:{size:"small",disabled:!e.canSwitchVersion||e.isEditMode||e.isEditDeptMode||e.isTreeAndContentLoading},on:{change:e.onVersionChange},model:{value:e.currentVersionId,callback:function(t){e.currentVersionId=t},expression:"currentVersionId"}},e._l(e.versions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e.isApprovalMode||e.hideOperations?e._e():r("div",{staticClass:"operation"},[e.isDispatchMode?["update_param"!==e.dispatchType?r("el-button",{attrs:{size:"small"},on:{click:e.handleBatchModifyDept}},[e._v(" 批量修改部门 ")]):e._e(),e.shouldShowRejectButton?r("el-button",{attrs:{size:"small",loading:e.rejecting},on:{click:e.handleReject}},[e._v("退回")]):e._e(),r("el-button",{attrs:{size:"small"},on:{click:e.handleBatchModifyResponsible}},[e._v(" "+e._s("update_param"===e.dispatchType?"批量修改填写人":"批量修改责任人")+" ")]),e.isCompetitiveEngineEntry?r("el-button",{attrs:{size:"small"},on:{click:e.handleReplaceAllPerson}},[e._v(" "+e._s("update_param"===e.dispatchType?"修改全部填写人":"修改全部责任人")+" ")]):e._e(),r("el-button",{attrs:{type:"primary",size:"small",loading:e.dispatchLoading},on:{click:e.handleConfirmDispatch}},[e._v("确认分发")])]:[e.isEditDeptMode||!e.hasAnyEditPermission()||!e.detail||"已完成"!==e.detail.distributeStatus&&"未分发"!==e.detail.distributeStatus?e._e():r("el-button",{attrs:{size:"small"},on:{click:e.handleSyncVersion}},[e._v(" 同步参数版本 ")]),e.isEditDeptMode||!e.hasAnyEditPermission()||!e.detail||"已完成"!==e.detail.distributeStatus&&"未分发"!==e.detail.distributeStatus?e._e():r("el-button",{attrs:{size:"small"},on:{click:e.handleEditDept}},[e._v(" 编辑部门 ")]),e.isEditMode||e.isEditDeptMode||e.isJustCheckMode?e._e():r("el-button",{staticStyle:{"margin-left":"12px"},attrs:{size:"small"},on:{click:e.handleExportTemplate}},[e._v("下载导入模板")]),e.isEditMode||e.isEditDeptMode||e.isJustCheckMode?e._e():r("el-button",{attrs:{size:"small",disabled:e.importing,loading:e.importing},on:{click:e.handleImport}},[e._v("导入")]),r("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{type:"file",accept:".xlsx,.xls"},on:{change:e.handleFileChange}}),e.isEditMode||e.isEditDeptMode||e.isJustCheckMode||!e.canShowTodoHeaderOperations?e._e():[e.hasAnyEditPermission()?r("el-button",{attrs:{size:"small"},on:{click:e.handleEdit}},[e._v("编辑")]):e._e(),e.shouldShowRejectButton&&!e.shouldShowResendButton?r("el-button",{attrs:{size:"small",loading:e.rejecting},on:{click:e.handleReject}},[e._v("退回")]):e._e(),e.shouldShowResendButton?r("el-button",{attrs:{size:"small",loading:e.resending},on:{click:e.handleResend}},[e._v(" 直送 ")]):e._e(),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleInitiateApproval}},[e._v(" "+e._s(e.shouldShowResendButton?"发起":"发起审批")+" ")])],e.isEditMode||e.isEditDeptMode||!e.detail||"已完成"!==e.detail.distributeStatus?e.isEditMode?[r("el-button",{attrs:{size:"small"},on:{click:e.handleSaveEdit}},[e._v("保存编辑")]),r("el-button",{attrs:{size:"small"},on:{click:e.handleCancelEdit}},[e._v("取消")])]:e.isEditDeptMode?[r("el-button",{attrs:{size:"small"},on:{click:e.handleBatchModifyDept}},[e._v("批量修改")]),r("el-button",{attrs:{size:"small"},on:{click:e.handleSaveDeptEdit}},[e._v("保存编辑")]),r("el-button",{attrs:{size:"small"},on:{click:e.handleCancelDeptEdit}},[e._v("取消")])]:e._e():[e.hasSavedInCheckMode?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleInitiateApproval}},[e._v("发起审批")]):e._e()]]],2)]),e.isApprovalMode?e._e():r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isTreeAndContentLoading,expression:"isTreeAndContentLoading"}],staticClass:"detail-body"},[r("div",{staticClass:"left-tree-panel"},[r("div",{staticClass:"tree-search-header"},[r("el-radio-group",{staticClass:"search-mode-switch",attrs:{size:"mini"},model:{value:e.treeSearchMode,callback:function(t){e.treeSearchMode=t},expression:"treeSearchMode"}},[r("el-radio-button",{attrs:{label:"subsystem"}},[e._v("子系统")]),r("el-radio-button",{attrs:{label:"parts"}},[e._v("零部件名称")])],1)],1),r("el-input",{staticClass:"tree-search",attrs:{size:"small",placeholder:"subsystem"===e.treeSearchMode?"请输入子系统名称":"请输入零部件名称",clearable:""},model:{value:e.treeFilterText,callback:function(t){e.treeFilterText=t},expression:"treeFilterText"}}),r("el-tree",{ref:"paramTree",attrs:{data:e.treeData,"node-key":"id","show-checkbox":"","checked-keys":e.checkedKeys,"default-expanded-keys":e.defaultExpandedKeys,"expanded-keys":e.expandedKeys,props:{children:"children",label:"label"},"filter-node-method":e.filterTreeNode,draggable:!0,"allow-drop":e.allowDrop,"allow-drag":e.allowDrag},on:{check:e.handleTreeCheck,"node-drop":e.handleNodeDrop,"node-expand":e.handleNodeExpand,"node-collapse":e.handleNodeCollapse},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return r("span",{staticClass:"custom-tree-node"},[r("span",[e._v(e._s(a.label))]),a.tip?r("span",{staticClass:"red-tip"},[e._v(e._s(a.tip))]):e._e()])}}],null,!1,2736833556)})],1),r("div",{staticClass:"right-content"},[e._l(e.wholeEngineParamsData,(function(t,a){return[e.isWholeEngineParamsSelected?r("div",{key:a,staticClass:"section"},[r("div",{staticClass:"section-title",staticStyle:{cursor:"pointer"},on:{click:function(t){e.detailInfoCollapsed=!e.detailInfoCollapsed}}},[r("span",[e._v(e._s(a))]),r("i",{class:e.detailInfoCollapsed?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"margin-left":"8px"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.detailInfoCollapsed,expression:"!detailInfoCollapsed"}],staticClass:"grid whole-engine-grid"},[r("div",{staticClass:"grid-header whole-engine-header",class:{"without-parameter-source":e.isCompetitiveEngineEntry}},[r("div",{staticClass:"cell header-cell"},[e._v("参数名称")]),r("div",{staticClass:"cell header-cell"},[e._v("单位")]),r("div",{staticClass:"cell header-cell"},[e._v("参数值")]),e.isCompetitiveEngineEntry?e._e():r("div",{staticClass:"cell header-cell"},[e._v("参数计划来源")])]),e._l(t,(function(t,n){return r("div",{key:a+"-"+n,staticClass:"grid-row whole-engine-row",class:{"without-parameter-source":e.isCompetitiveEngineEntry}},[r("div",{staticClass:"cell"},[e._v(e._s(t.parameterName))]),r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.unit||"-"))])]),r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.parameterValue||"/"))])]),e.isCompetitiveEngineEntry?e._e():r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.parameterSource||"/"))])])])}))],2)]):e._e()]})),e.isWholeEngineParamsSelected?e._e():r("div",{staticClass:"params-control",staticStyle:{"margin-bottom":"10px","text-align":"right"}},[r("el-checkbox",{model:{value:e.showAllParams,callback:function(t){e.showAllParams=t},expression:"showAllParams"}},[e._v("全部显示(不分页)")])],1),e._l(e.display,(function(t,a){return[e.shouldShowSection(a)?r("div",{key:a,staticClass:"section"},[r("div",{staticClass:"section-title"},[e._v(e._s(e.formatSectionTitle(a,t)))]),r("div",{staticClass:"grid"},[r("div",{staticClass:"grid-header",class:{"edit-mode":e.isEditMode&&!e.isDispatchMode,"dispatch-mode":e.isDispatchMode&&"update_param"!==e.dispatchType,"dispatch-filler-mode":e.isDispatchMode&&"update_param"===e.dispatchType,"without-parameter-source":e.isCompetitiveEngineEntry}},[r("div",{staticClass:"cell header-cell"},[e._v("参数名称")]),r("div",{staticClass:"cell header-cell"},[e._v("单位")]),r("div",{staticClass:"cell header-cell"},[e._v("参数值")]),e.isCompetitiveEngineEntry?e._e():r("div",{staticClass:"cell header-cell"},[e._v("参数计划来源")]),!e.isEditMode||e.isDispatchMode?r("div",{staticClass:"cell header-cell"},[e._v("填写部门")]):e._e(),e.isDispatchMode&&"update_param"!==e.dispatchType?r("div",{staticClass:"cell header-cell"},[e._v("分发状态")]):e._e(),e.isDispatchMode&&"update_param"===e.dispatchType?r("div",{staticClass:"cell header-cell"},[e._v("分发状态")]):e._e(),!e.isEditMode||e.isDispatchMode?r("div",{staticClass:"cell header-cell"},[e._v(" "+e._s(e.isDispatchMode&&"update_param"===e.dispatchType?"填写人":e.isDispatchMode?"责任人":"填写人")+" ")]):e._e()]),e._l(t,(function(t,n){return r("div",{key:a+"-"+n,staticClass:"grid-row",class:{"edit-mode":e.isEditMode&&!e.isDispatchMode,"dispatch-mode":e.isDispatchMode&&"update_param"!==e.dispatchType,"dispatch-filler-mode":e.isDispatchMode&&"update_param"===e.dispatchType,"without-parameter-source":e.isCompetitiveEngineEntry}},[r("div",{staticClass:"cell"},[e._v(e._s(t.parameterName))]),r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.unit||"-"))])]),r("div",{staticClass:"cell"},[e.isEditMode&&!e.isDispatchMode?r("el-input",{staticClass:"param-input",attrs:{size:"small",placeholder:"请输入",disabled:!e.hasParameterEditPermission(t.parameterName,t.subsystemName,t.partsName)},model:{value:t.parameterValue,callback:function(r){e.$set(t,"parameterValue",r)},expression:"row.parameterValue"}}):e.isEditMode||e.isDispatchMode||!e.filledBy?r("span",[e._v(e._s(t.parameterValue||"/"))]):r("span",[e._v(e._s(t.minorVersion||t.parameterValue||"/"))])],1),e.isCompetitiveEngineEntry?e._e():r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.parameterSource||"/"))])]),!e.isEditMode||e.isDispatchMode?r("div",{staticClass:"cell"},[e.isEditDeptMode?e.isEditDeptMode?r("el-select",{staticClass:"dept-select",attrs:{size:"small",placeholder:"请选择部门",clearable:"",filterable:"","filter-method":e.handleDeptRemoteSearch},model:{value:t.department,callback:function(r){e.$set(t,"department",r)},expression:"row.department"}},e._l(e.filteredDeptOptions,(function(e){return r("el-option",{key:e.id,attrs:{value:e.name,label:e.name}})})),1):e._e():r("span",[e._v(e._s(e.formatDepartmentDisplay(t.department)))])],1):e._e(),e.isDispatchMode&&"update_param"!==e.dispatchType?r("div",{staticClass:"cell"},[r("span",{class:{"distributed-status":1===t.isDistributedRes}},[e._v(" "+e._s(1===t.isDistributedRes?"已分发":"未分发")+" ")])]):e._e(),e.isDispatchMode&&"update_param"===e.dispatchType?r("div",{staticClass:"cell"},[r("span",{class:{"distributed-status":1===t.isDistributedFilled}},[e._v(" "+e._s(1===t.isDistributedFilled?"已分发":"未分发")+" ")])]):e._e(),e.isDispatchMode&&"update_param"!==e.dispatchType?r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.owner||"-"))])]):e._e(),e.isDispatchMode&&"update_param"===e.dispatchType?r("div",{staticClass:"cell"},[1===t.isDistributedFilled?r("span",[e._v(e._s(t.filledByName||t.filledBy||"-"))]):r("el-select",{staticClass:"responsible-select",attrs:{size:"small",placeholder:"请输入",clearable:"",filterable:"",remote:"","remote-method":function(r){return e.handleFillerRemoteSearch(r,t)},loading:e.fillerUserLoading},on:{change:function(r){return e.handleFillerChange(r,t)}},model:{value:t.filledByUserId,callback:function(r){e.$set(t,"filledByUserId",r)},expression:"row.filledByUserId"}},e._l(e.getFillerUserOptions(t),(function(t){return r("el-option",{key:t.userId,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1):e._e(),e.isDispatchMode||e.isEditMode?e._e():r("div",{staticClass:"cell"},[r("span",[e._v(e._s(t.filledByName||t.filledBy||"-"))])])])}))],2)]):e._e()]}))],2)]),e.isApprovalMode?r("div",{staticClass:"page-approval-content"},[e.detail?r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",staticStyle:{cursor:"pointer"},on:{click:function(t){e.basicInfoCollapsed=!e.basicInfoCollapsed}}},[r("span",[e._v("基础信息")]),r("i",{class:e.basicInfoCollapsed?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"margin-left":"8px"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.basicInfoCollapsed,expression:"!basicInfoCollapsed"}],staticClass:"info-grid"},[r("div",{staticClass:"info-item-full"},[e._m(0),r("el-input",{staticClass:"process-title-input",attrs:{maxlength:"100","show-word-limit":"",placeholder:"请输入流程主题"},model:{value:e.approvalFormData.processTitle,callback:function(t){e.$set(e.approvalFormData,"processTitle",t)},expression:"approvalFormData.processTitle"}})],1),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建人")]),r("span",{staticClass:"value"},[e._v(e._s(e.approvalCreateBy||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建时间")]),r("span",{staticClass:"value"},[e._v(e._s(e.approvalCreateTime||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前环节")]),r("span",{staticClass:"value"},[e._v(e._s(e.approvalCurrentNode||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前处理人")]),r("span",{staticClass:"value"},[e._v(e._s(e.approvalCurrentProcessor||"--"))])])])])]):e._e(),r("div",{staticClass:"approval-content"},[e.approvalChangeData&&e.approvalChangeData.length>0?r("div",{staticClass:"approval-change-table"},[r("div",{staticClass:"change-table-title"},[e._v(" 变更数据 ")]),r("div",{staticClass:"change-table-wrapper"},[r("table",{staticClass:"change-table-content"},[e._m(1),r("tbody",e._l(e.approvalChangeData,(function(t,a){return r("tr",{key:a,staticClass:"change-table-row"},[r("td",{staticClass:"col-engine-model-name"},[e._v(e._s(t.engineModelName||"-"))]),r("td",{staticClass:"col-subsystem-name"},[e._v(e._s(t.subsystemName||"-"))]),r("td",{staticClass:"col-parameter-type"},[e._v(e._s((t.parameterType,t.parameterType||"-")))]),r("td",{staticClass:"col-parts-name"},[e._v(e._s(("/"===t.partsName?t.subsystemName:t.partsName)||"-"))]),r("td",{staticClass:"col-parameter-name"},[e._v(e._s(t.parameterName||"-"))]),r("td",{staticClass:"col-parameter-value"},[e._v(e._s(t.parameterValue||"-"))]),r("td",{staticClass:"col-common"},[e._v(e._s(t.changeComment||"-"))])])})),0)])])]):e._e(),r("div",{staticClass:"approval-description"},[r("div",{staticClass:"description-label"},[e._v(" 说明 ")]),r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入"},model:{value:e.approvalFormData.description,callback:function(t){e.$set(e.approvalFormData,"description",t)},expression:"approvalFormData.description"}})],1),r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-title",staticStyle:{cursor:"pointer"},on:{click:function(t){e.approvalWorkflowCollapsed=!e.approvalWorkflowCollapsed}}},[r("span",[e._v("审批环节")]),r("i",{class:e.approvalWorkflowCollapsed?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"margin-left":"8px"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.approvalWorkflowCollapsed,expression:"!approvalWorkflowCollapsed"}],staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[e._m(2),r("tbody",e._l(e.approvalWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"",placeholder:"请选择","remote-method":function(t){return e.handleRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])])]):e._e(),e.isApprovalMode?r("div",{staticClass:"page-footer"},[r("div",{staticClass:"footer-buttons"},[r("el-button",{on:{click:e.handleApprovalCancel}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalFormSubmit}},[e._v(" 确定 ")])],1)]):e._e(),r("batch-modify-responsible-modal",{ref:"batchModifyResponsibleModal",attrs:{"responsible-persons":e.responsiblePersons,"is-competitor-engine":e.isCompetitiveEngineEntry,"filler-persons":e.fillerPersons,"dispatch-type":e.dispatchType,"version-data":e.versionData,"current-version-id":e.currentVersionId,"resolve-department-id":e.resolveDepartmentId,"project-parts-name":e.treeFirstLevelPartsName,"tree-subsystem-names":e.treeSubsystemNames,"dispatch-param-draft-cache":e.dispatchParamDraftCache},on:{confirm:e.handleBatchModifyConfirm,"refresh-responsible-persons":e.loadResponsiblePersons,"refresh-department":e.handleRefreshDepartment,"update-draft-cache":e.handleUpdateDraftCache}}),r("el-dialog",{attrs:{title:"修改部门",visible:e.batchModifyDeptDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.batchModifyDeptDialogVisible=t},close:e.handleBatchModifyDeptDialogClose}},[r("el-form",{ref:"batchModifyDeptForm",attrs:{model:e.batchModifyDeptFormData,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"原部门:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择原部门",readonly:""},nativeOn:{click:function(t){return e.handleSelectOriginalDept.apply(null,arguments)}},model:{value:e.batchModifyDeptFormData.originalDept,callback:function(t){e.$set(e.batchModifyDeptFormData,"originalDept",t)},expression:"batchModifyDeptFormData.originalDept"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSelectOriginalDept},slot:"append"})],1)],1),r("el-form-item",{attrs:{label:"部门:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择部门",readonly:""},nativeOn:{click:function(t){return e.handleSelectTargetDept.apply(null,arguments)}},model:{value:e.batchModifyDeptFormData.targetDept,callback:function(t){e.$set(e.batchModifyDeptFormData,"targetDept",t)},expression:"batchModifyDeptFormData.targetDept"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSelectTargetDept},slot:"append"})],1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleBatchModifyDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.batchModifyDeptSubmitting,disabled:!e.batchModifyDeptFormData.originalDept||!e.batchModifyDeptFormData.targetDept},on:{click:e.handleBatchModifyDeptConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择原填写部门",visible:e.originalDeptDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.originalDeptDialogVisible=t},close:e.handleOriginalDeptDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.originalDeptTreeFilterText,callback:function(t){e.originalDeptTreeFilterText=t},expression:"originalDeptTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"originalDeptTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleOriginalDeptNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleOriginalDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedOriginalDeptId},on:{click:e.handleOriginalDeptDialogConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择填写部门",visible:e.targetDeptDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.targetDeptDialogVisible=t},close:e.handleTargetDeptDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.targetDeptTreeFilterText,callback:function(t){e.targetDeptTreeFilterText=t},expression:"targetDeptTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"targetDeptTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleTargetDeptNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleTargetDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedTargetDeptId},on:{click:e.handleTargetDeptDialogConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"update_param"===e.dispatchType?"修改全部填写人":"修改全部责任人",visible:e.replaceAllPersonDialogVisible,width:"520px","append-to-body":""},on:{"update:visible":function(t){e.replaceAllPersonDialogVisible=t},close:e.handleReplaceAllPersonDialogClose}},[r("el-form",{ref:"replaceAllPersonForm",attrs:{model:e.replaceAllPersonFormData,"label-width":"90px"}},[r("el-form-item",{attrs:{label:"人员:",prop:"userId",rules:[{required:!0,message:"请选择人员",trigger:"change"}]}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入人员姓名进行搜索",clearable:"",filterable:"",remote:"","remote-method":e.handleReplaceAllPersonRemoteSearch,loading:e.replaceAllPersonUserLoading},on:{change:e.handleReplaceAllPersonChange},model:{value:e.replaceAllPersonFormData.userId,callback:function(t){e.$set(e.replaceAllPersonFormData,"userId",t)},expression:"replaceAllPersonFormData.userId"}},e._l(e.replaceAllPersonUserOptions,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleReplaceAllPersonDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.replaceAllPersonSubmitting},on:{click:e.handleReplaceAllPersonConfirm}},[e._v(" 确定 ")])],1)],1)],1)},Qt=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("span",{staticClass:"label"},[e._v("流程主题 "),r("span",{staticClass:"required-mark"},[e._v("*")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("thead",[r("tr",[r("th",{staticClass:"col-engine-model-name"},[e._v("机型名称")]),r("th",{staticClass:"col-subsystem-name"},[e._v("子系统名称")]),r("th",{staticClass:"col-parameter-type"},[e._v("参数类型")]),r("th",{staticClass:"col-parts-name"},[e._v("零件名称")]),r("th",{staticClass:"col-parameter-name"},[e._v("参数名称")]),r("th",{staticClass:"col-parameter-value"},[e._v("参数值")]),r("th",{staticClass:"col-common"},[e._v("修改描述")])])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])])}],er=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("x-modal",{attrs:{"append-to-body":!0,"destroy-on-close":!0,modalVisible:e.visible,"wrapper-class":"batch-modify-responsible-modal",title:e.modalTitle,width:950},on:{"update:modalVisible":function(t){e.visible=t},"update:modal-visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.closeModal}},[e._v(" 关闭 ")]),r("el-button",{attrs:{type:"primary",loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)]},proxy:!0}])},[r("div",{staticClass:"batch-modify-content"},["update_param"===e.dispatchType?r("div",{staticClass:"left-parts-panel"},[r("div",{staticClass:"parts-category-section"},[r("div",{staticClass:"category-header",on:{click:function(t){return e.toggleCategory("distributed")}}},[r("div",{staticClass:"header-left"},[r("i",{staticClass:"collapse-icon",class:e.categoryCollapsed.distributed?"el-icon-caret-right":"el-icon-caret-bottom"}),r("span",{staticClass:"category-title"},[e._v("已分发")])]),r("span",{staticClass:"category-count"},[e._v(e._s(e.distributedPartsNames.length))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.categoryCollapsed.distributed,expression:"!categoryCollapsed.distributed"}],staticClass:"category-list"},[e._l(e.distributedPartsNames,(function(t,a){return r("div",{key:"distributed-"+a,staticClass:"parts-item distributed"},[e._v(" "+e._s(t)+" ")])})),0===e.distributedPartsNames.length?r("div",{staticClass:"empty-tip"},[e._v("暂无数据")]):e._e()],2)]),r("div",{staticClass:"parts-category-section"},[r("div",{staticClass:"category-header",on:{click:function(t){return e.toggleCategory("tempSaved")}}},[r("div",{staticClass:"header-left"},[r("i",{staticClass:"collapse-icon",class:e.categoryCollapsed.tempSaved?"el-icon-caret-right":"el-icon-caret-bottom"}),r("span",{staticClass:"category-title"},[e._v("未分发-已分配")])]),r("span",{staticClass:"category-count"},[e._v(e._s(e.tempSavedPartsNames.length))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.categoryCollapsed.tempSaved,expression:"!categoryCollapsed.tempSaved"}],staticClass:"category-list"},[e._l(e.tempSavedPartsNames,(function(t,a){return r("div",{key:"temp-"+a,staticClass:"parts-item temp-saved clickable",on:{click:function(r){return e.handleTempSavedItemClick(t)}}},[e._v(" "+e._s(t)+" ")])})),0===e.tempSavedPartsNames.length?r("div",{staticClass:"empty-tip"},[e._v("暂无数据")]):e._e()],2)]),r("div",{staticClass:"parts-category-section"},[r("div",{staticClass:"category-header",on:{click:function(t){return e.toggleCategory("undistributed")}}},[r("div",{staticClass:"header-left"},[r("i",{staticClass:"collapse-icon",class:e.categoryCollapsed.undistributed?"el-icon-caret-right":"el-icon-caret-bottom"}),r("span",{staticClass:"category-title"},[e._v("未分发-未分配")])]),r("span",{staticClass:"category-count"},[e._v(e._s(e.undistributedPartsNames.length))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.categoryCollapsed.undistributed,expression:"!categoryCollapsed.undistributed"}],staticClass:"category-list"},[e._l(e.undistributedPartsNames,(function(t,a){return r("div",{key:"undistributed-"+a,staticClass:"parts-item undistributed"},[e._v(" "+e._s(t)+" ")])})),0===e.undistributedPartsNames.length?r("div",{staticClass:"empty-tip"},[e._v("暂无数据")]):e._e()],2)])]):e._e(),r("div",{staticClass:"right-form-panel"},[r("el-form",{ref:"form",attrs:{model:e.formData,rules:e.formRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"子系统:",prop:"subsystem"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"update_param"===e.dispatchType?"请选择子系统(可多选)":"请选择子系统",clearable:"",multiple:"update_param"===e.dispatchType,"collapse-tags":""},on:{change:e.handleSubsystemChange},model:{value:e.formData.subsystem,callback:function(t){e.$set(e.formData,"subsystem",t)},expression:"formData.subsystem"}},e._l(e.subsystemList,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),"update_param"===e.dispatchType?r("el-form-item",{attrs:{label:"零部件名称:",prop:"partsName"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择零部件名称",clearable:"",multiple:"",disabled:!e.hasSelectedSubsystem},on:{change:e.handlePartsNameChange},model:{value:e.formData.partsName,callback:function(t){e.$set(e.formData,"partsName",t)},expression:"formData.partsName"}},e._l(e.availablePartsNames,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),"update_param"!==e.dispatchType?r("el-form-item",{attrs:{label:"部门:",prop:"department"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择部门",clearable:"",disabled:!e.formData.subsystem},on:{change:e.handleDepartmentChange},model:{value:e.formData.department,callback:function(t){e.$set(e.formData,"department",t)},expression:"formData.department"}},e._l(e.availableDepartments,(function(t){return r("el-option",{key:t.department,attrs:{label:e.formatDepartmentDisplay(t.department),value:t.department}})})),1)],1):e._e(),"update_param"!==e.dispatchType?r("el-form-item",{attrs:{label:"现责任人:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"暂无责任人",readonly:""},model:{value:e.formData.currentResponsibleName,callback:function(t){e.$set(e.formData,"currentResponsibleName",t)},expression:"formData.currentResponsibleName"}})],1):e._e(),r("el-form-item",{attrs:{label:"update_param"===e.dispatchType?"人员:":"责任人:",prop:"userId"}},[r("el-select",{staticClass:"handler-select",staticStyle:{width:"100%"},attrs:{placeholder:"update_param"===e.dispatchType?"请输入人员姓名进行搜索":"请输入责任人姓名进行搜索",clearable:"",disabled:"update_param"!==e.dispatchType&&!e.formData.department,filterable:"",remote:"","remote-method":e.handleRemoteSearch,loading:e.userLoading},on:{change:e.handleResponsibleChange},model:{value:e.formData.userId,callback:function(t){e.$set(e.formData,"userId",t)},expression:"formData.userId"}},e._l(e.userOptions,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)],1)],1)])]),r("el-dialog",{attrs:{title:"选择责任部门",visible:e.departmentDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.departmentDialogVisible=t},close:e.handleDepartmentDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.departmentTreeFilterText,callback:function(t){e.departmentTreeFilterText=t},expression:"departmentTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"departmentTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleDepartmentNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDepartmentDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedDepartmentId},on:{click:e.handleDepartmentDialogConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"部门调转",visible:e.deptTransferDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.deptTransferDialogVisible=t},close:e.handleDeptTransferDialogClose}},[r("el-form",{attrs:{"label-width":"110px"}},[r("el-form-item",{attrs:{label:"原填写部门:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择原填写部门",readonly:""},nativeOn:{click:function(t){return e.handleSelectOriginalDept.apply(null,arguments)}},model:{value:e.deptTransferFormData.originalDept,callback:function(t){e.$set(e.deptTransferFormData,"originalDept",t)},expression:"deptTransferFormData.originalDept"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSelectOriginalDept},slot:"append"})],1)],1),r("el-form-item",{attrs:{label:"填写部门:"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择填写部门",readonly:""},nativeOn:{click:function(t){return e.handleSelectTargetDept.apply(null,arguments)}},model:{value:e.deptTransferFormData.targetDept,callback:function(t){e.$set(e.deptTransferFormData,"targetDept",t)},expression:"deptTransferFormData.targetDept"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSelectTargetDept},slot:"append"})],1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDeptTransferDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.deptTransferFormData.originalDept||!e.deptTransferFormData.targetDept},on:{click:e.handleDeptTransferConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择原填写部门",visible:e.originalDeptDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.originalDeptDialogVisible=t},close:e.handleOriginalDeptDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.originalDeptTreeFilterText,callback:function(t){e.originalDeptTreeFilterText=t},expression:"originalDeptTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"originalDeptTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleOriginalDeptNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleOriginalDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedOriginalDeptId},on:{click:e.handleOriginalDeptDialogConfirm}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择填写部门",visible:e.targetDeptDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.targetDeptDialogVisible=t},close:e.handleTargetDeptDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.targetDeptTreeFilterText,callback:function(t){e.targetDeptTreeFilterText=t},expression:"targetDeptTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"targetDeptTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleTargetDeptNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleTargetDeptDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedTargetDeptId},on:{click:e.handleTargetDeptDialogConfirm}},[e._v(" 确定 ")])],1)],1)],1)},tr=[];function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function ar(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=or(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function nr(e){return lr(e)||sr(e)||or(e)||ir()}function ir(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function or(e,t){if(e){if("string"===typeof e)return cr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cr(e,t):void 0}}function sr(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function lr(e){if(Array.isArray(e))return cr(e)}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0:!!this.formData.subsystem},formRules:function(){var e={userId:[{required:!0,message:"update_param"===this.dispatchType?"请选择人员":"请选择责任人",trigger:"change"}]};return"update_param"===this.dispatchType?(e.subsystem=[{required:!0,type:"array",min:1,message:"请至少选择一个子系统",trigger:"change"}],e.partsName=[{required:!0,type:"array",min:1,message:"请至少选择一个零部件名称",trigger:"change"}]):(e.subsystem=[{required:!0,message:"请选择子系统",trigger:"change"}],e.department=[{required:!0,message:"请选择部门",trigger:"change"}]),e}},watch:{departmentTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.departmentTree&&t.$refs.departmentTree.filter(e)}))},originalDeptTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.originalDeptTree&&t.$refs.originalDeptTree.filter(e)}))},targetDeptTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.targetDeptTree&&t.$refs.targetDeptTree.filter(e)}))}},methods:{toggleCategory:function(e){this.categoryCollapsed[e]=!this.categoryCollapsed[e]},formatDepartmentDisplay:function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t},getEmptySubsystemValue:function(){return"update_param"===this.dispatchType?[]:""},getSelectedSubsystems:function(){return"update_param"===this.dispatchType?Array.isArray(this.formData.subsystem)?this.formData.subsystem:[]:this.formData.subsystem?[this.formData.subsystem]:[]},isParamSubsystemMatched:function(e,t){var r=this,a=t||this.getSelectedSubsystems();return!!a.length&&a.some((function(t){return r.isSubsystemNameMatch(e,t)}))},showModal:function(){var e=this;this.formData={subsystem:this.getEmptySubsystemValue(),partsName:[],department:"",currentResponsibleId:"",currentResponsibleName:"",currentFillerId:"",currentFillerName:"",userId:"",userNumber:"",username:"",rowId:""},this.availablePartsNames=[],this.availablePartsNameMap=new Map,this.availableDepartments=[],this.userOptions=[],this.userLoading=!1,this.distributedPartsNames=[],this.tempSavedPartsNames=[],this.undistributedPartsNames=[],this.categoryCollapsed={distributed:!1,tempSaved:!1,undistributed:!1},this.loadSubsystemList(),this.loadDepartmentTree(),"update_param"!==this.dispatchType&&this.loadAllManagerData(),this.visible=!0,this.$nextTick((function(){e.$refs.form&&e.$refs.form.clearValidate()}))},closeModal:function(){this.visible=!1,this.formData={subsystem:this.getEmptySubsystemValue(),partsName:[],department:"",currentResponsibleId:"",currentResponsibleName:"",currentFillerId:"",currentFillerName:"",userId:"",userNumber:"",username:"",rowId:""},this.availablePartsNames=[],this.availablePartsNameMap=new Map,this.availableDepartments=[],this.userOptions=[],this.userLoading=!1,this.distributedPartsNames=[],this.tempSavedPartsNames=[],this.undistributedPartsNames=[],this.categoryCollapsed={distributed:!1,tempSaved:!1,undistributed:!1}},loadSubsystemList:function(){var e=this,t=dr(dr({},et.GET_SUBSYSTEM_LIST),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r=t&&t.data?t.data:[];e.filterSubsystemListByTree(r)})).asyncErrorCatch((function(t){console.error("加载子系统列表失败:",t),e.subsystemList=[]}))},isSubsystemNameMatch:function(e,t){return!(!e||!t)&&(e===t||gr.includes(e)&&gr.includes(t))},filterSubsystemListByTree:function(e){var t=this,r=Array.isArray(e)?e:[],a=(this.treeSubsystemNames||[]).filter(Boolean);if(a.length){var n=[];r.forEach((function(e){var r=a.find((function(r){return t.isSubsystemNameMatch(e,r)}));r&&!n.includes(r)&&n.push(r)})),this.subsystemList=n}else this.subsystemList=r},handleTempSavedItemClick:function(e){var t=this;console.log("点击未分发-已分配项:",e);var r=null;if(e.includes(" - /")&&(r=e.split(" - /")[0].trim(),console.log("提取子系统:",r)),r&&this.subsystemList.includes(r)){var a=Array.isArray(this.formData.subsystem)?this.formData.subsystem:[this.formData.subsystem];a.includes(r)||("update_param"===this.dispatchType?this.formData.subsystem=[].concat(nr(a),[r]):this.formData.subsystem=r,console.log("设置子系统:",this.formData.subsystem),this.handleSubsystemChange())}this.$nextTick((function(){t.availablePartsNames.includes(e)||(t.availablePartsNames.unshift(e),console.log("添加到可选列表:",t.availablePartsNames)),t.formData.partsName.includes(e)||(t.formData.partsName=[].concat(nr(t.formData.partsName),[e])),console.log("当前选中的零部件名称:",t.formData.partsName)}))},isProjectPartsNameMatch:function(e){return!this.projectPartsName||!e||(e.partsName||"")===this.projectPartsName},loadAllManagerData:function(){var e=this,t={pageNumber:1,pageSize:9999};this.projectPartsName&&(t.partsName=this.projectPartsName),this.formData.subsystem&&this.formData.originalDepartmentId&&(t.id=this.formData.originalDepartmentId);var r=dr(dr({},et.GET_MANAGER_DATA),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){t&&t.data?e.allManagerData=t.data.result||[]:e.allManagerData=[]})).asyncErrorCatch((function(t){console.error("加载责任人数据失败:",t),e.allManagerData=[]}))},loadAllFillerData:function(){var e=this,t={pageNumber:1,pageSize:9999};this.projectPartsName&&(t.partsName=this.projectPartsName);var r=dr(dr({},et.GET_FILLER_DATA),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){t&&t.data?e.allFillerData=t.data.result||[]:e.allFillerData=[]})).asyncErrorCatch((function(t){console.error("加载填写人数据失败:",t),e.allFillerData=[]}))},handleSubsystemChange:function(){var e=this;this.formData.partsName=[],this.formData.department="",this.formData.originalDepartment="",this.formData.originalDepartmentId="",this.formData.selectDeptName="",this.formData.selectDeptId="",this.formData.currentResponsibleId="",this.formData.currentResponsibleName="",this.formData.currentFillerId="",this.formData.currentFillerName="",this.formData.rowId="",this.formData.userId="",this.formData.userNumber="",this.formData.username="",this.availablePartsNames=[],this.availablePartsNameMap=new Map,this.availableDepartments=[],this.userOptions=[],this.distributedPartsNames=[],this.tempSavedPartsNames=[],this.undistributedPartsNames=[];var t=this.getSelectedSubsystems();if(!t.length)return this.availablePartsNames=[],void(this.availableDepartments=[]);var r=this.versionData[this.currentVersionId]||{},a=new Map,n=new Set,i=new Set,o=new Set,s=new Set;if(Object.keys(r).forEach((function(l){var c=r[l]||[];c.forEach((function(r){if(e.isParamSubsystemMatched(r.subsystemName,t)){if("update_param"===e.dispatchType){var c=r.partsName||l;if(c){var u=c;if("/"===c&&(u="".concat(r.subsystemName," - /")),1===r.isDistributedFilled){var d=r.id||"".concat(r.subsystemName,"-").concat(r.parameterName),p=e.dispatchParamDraftCache&&e.dispatchParamDraftCache[d];if(!p)return void i.add(u);o.add(u)}else{if(r.filledBy||r.filledByUserId)return void o.add(u);s.add(u)}"/"===c?a.has(u)||a.set(u,{originalName:c,subsystem:r.subsystemName}):a.has(c)||a.set(c,{originalName:c,subsystem:null})}}r.department&&n.add(r.department)}}))})),"update_param"===this.dispatchType){var l=Array.from(a.keys()).sort();this.availablePartsNames=l,this.availablePartsNameMap=a,this.distributedPartsNames=Array.from(i).sort(),this.tempSavedPartsNames=Array.from(o).sort(),this.undistributedPartsNames=Array.from(s).sort()}else this.availableDepartments=Array.from(n).map((function(e){return{department:e}}))},handlePartsNameChange:function(){this.formData.userId="",this.formData.userNumber="",this.formData.username="",this.userOptions=[]},handleDepartmentChange:function(e){var t=this;if(this.formData.currentResponsibleId="",this.formData.currentResponsibleName="",this.formData.rowId="",this.formData.userId="",this.formData.userNumber="",this.formData.username="",this.userOptions=[],"update_param"!==this.dispatchType&&e&&this.formData.subsystem){var r=this.allManagerData.find((function(r){var a=r.subsystem?r.subsystem.split(","):[];return a.some((function(e){return t.isSubsystemNameMatch(r.subsystem,t.formData.subsystem)}))&&r.department===e}));r&&(this.formData.currentResponsibleId=r.userId||r.id||"",this.formData.currentResponsibleName=r.username||r.userName||"",this.formData.rowId=r.rowId||r.id||"")}},handleRemoteSearch:function(e){var t=this;if("update_param"===this.dispatchType||this.formData.department)if(e&&""!==e.trim()){this.userLoading=!0;var r=e.trim(),a=dr(dr({},et.GET_ALLUSERS),{},{params:{name:r},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){var r=e&&e.data,a=[];Array.isArray(r)?a=r:r&&Array.isArray(r.result)?a=r.result:r&&r.data&&Array.isArray(r.data)&&(a=r.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=t.formData.userId,o=t.userOptions.filter((function(e){return e.userId&&e.userId===i})),s=new Map;o.forEach((function(e){e.userNumber&&s.set(e.userNumber,e)})),n.forEach((function(e){e.userNumber&&!s.has(e.userNumber)&&s.set(e.userNumber,e)})),t.userOptions=Array.from(s.values()),t.userLoading=!1})).asyncErrorCatch((function(e){if(console.error("搜索责任人失败:",e),t.formData.userId){var r=t.userOptions.filter((function(e){return e.userId===t.formData.userId}));t.userOptions=r}else t.userOptions=[];t.userLoading=!1}))}else if(this.formData.userId){var n=this.userOptions.filter((function(e){return e.userId===t.formData.userId}));this.userOptions=n}else this.userOptions=[];else this.userOptions=[]},handleResponsibleChange:function(e){if(e){var t=this.userOptions.find((function(t){return t.userId===e}));t?(this.formData.userId=t.userId,this.formData.userNumber=t.userNumber||t.userId,this.formData.username=t.username||""):(console.warn("未找到选中的用户选项,userId:",e),this.formData.userId=e,this.formData.userNumber=e,this.formData.username="")}else this.formData.userId="",this.formData.userNumber="",this.formData.username=""},handleSubmit:function(){var e=this;this.$refs.form.validate((function(t){if(t){if(!e.formData.userId){var r="update_param"===e.dispatchType?"人员":"责任人";return void(e.$message&&e.$message.warning&&e.$message.warning("请选择".concat(r)))}if("update_param"===e.dispatchType){var a=e.getSelectedSubsystems();if(!a.length)return void(e.$message&&e.$message.warning&&e.$message.warning("请至少选择一个子系统"));if(!e.formData.partsName||!Array.isArray(e.formData.partsName)||0===e.formData.partsName.length)return void(e.$message&&e.$message.warning&&e.$message.warning("请至少选择一个零部件名称"));var n=nr(e.formData.partsName),i=n.map((function(t){var r=e.availablePartsNameMap.get(t);return r?r.originalName:t})),o={subsystem:a,partsName:i,userId:e.formData.userId,userNumber:e.formData.userNumber||e.formData.userId,username:e.formData.username||""};console.log("批量修改填写人 - 提交数据:",o);var s=e.versionData[e.currentVersionId]||{},l=[];if(Object.keys(s).forEach((function(t){var r=s[t]||[];r.forEach((function(r){if(e.isParamSubsystemMatched(r.subsystemName,a)){var s=r.partsName||t,c=!1;if("/"===s){var u="".concat(r.subsystemName," - /");c=n.includes(u)}else c=i.includes(s);c&&r.id&&l.push({id:r.id,filledBy:o.userId})}}))})),console.log("批量修改填写人 - 暂存数据:",l),l.length>0){var c=dr(dr({},et.SAVE_FILLED_BY_TEMP),{},{params:l,disableSuccessMsg:!0});e.$request(c).asyncThen((function(t){console.log("暂存填写人成功:",t),Object.keys(s).forEach((function(t){var r=s[t]||[];r.forEach((function(r){if(e.isParamSubsystemMatched(r.subsystemName,a)){var s=r.partsName||t,l=!1;if("/"===s){var c="".concat(r.subsystemName," - /");l=n.includes(c)}else l=i.includes(s);l&&(r.filledBy=o.userId,r.filledByUserId=o.userId,r.filledByName=o.username,console.log("更新参数 ".concat(r.parameterName," 的填写人为:"),o.username))}}))})),n.forEach((function(t){var r=e.tempSavedPartsNames.includes(t);r||(e.tempSavedPartsNames.includes(t)||e.tempSavedPartsNames.push(t),e.undistributedPartsNames=e.undistributedPartsNames.filter((function(e){return e!==t})))})),l.forEach((function(t){var r=t.id,a={filledBy:t.filledBy,filledByUserId:t.filledBy,filledByName:o.username};e.$emit("update-draft-cache",r,a)}))})).asyncErrorCatch((function(e){console.error("暂存填写人失败:",e)}))}else n.forEach((function(t){var r=e.tempSavedPartsNames.includes(t);r||(e.tempSavedPartsNames.includes(t)||e.tempSavedPartsNames.push(t),e.undistributedPartsNames=e.undistributedPartsNames.filter((function(e){return e!==t})))}));e.availablePartsNames=e.availablePartsNames.filter((function(e){return!n.includes(e)})),n.forEach((function(t){e.availablePartsNameMap.delete(t)})),e.formData.partsName=[],e.formData.userId="",e.formData.userNumber="",e.formData.username="",e.userOptions=[],e.$nextTick((function(){e.$refs.form&&e.$refs.form.clearValidate()})),e.submitting=!1,e.$emit("confirm",o);var u=n.join("、");return void(e.$message&&e.$message.success?e.$message.success("已为零部件【".concat(u,"】设置填写人为【").concat(o.username,"】")):console.log("已为零部件【".concat(u,"】设置填写人为【").concat(o.username,"】")))}if(e.isCompetitorEngine){var d={subsystem:e.formData.subsystem,department:e.formData.selectDeptName||e.formData.department,departmentId:e.formData.selectDeptId,oldResponsiblePersonId:e.formData.currentResponsibleId||"",newResponsiblePersonId:e.formData.userNumber||e.formData.userId,userId:e.formData.userId,username:e.formData.username||""};return e.submitting=!1,e.closeModal(),e.$message({type:"success",message:"修改成功"}),void e.$emit("confirm",d)}if(e.formData.currentResponsibleId&&e.formData.rowId){var p=dr(dr({},et.EDIT_MANAGER_DATA),{},{params:{departmentId:e.formData.selectDeptId||e.getDepartmentIdByDepartment(e.formData.department),department:e.formData.selectDeptName||e.formData.department,subsystem:e.formData.subsystem,partsName:e.projectPartsName||"",userId:e.formData.userId,rowId:e.formData.rowId},disableSuccessMsg:!0});e.$request(p).asyncThen((function(t){e.submitting=!1,e.closeModal(),e.$message({type:"success",message:"修改成功"}),e.$emit("refresh-responsible-persons"),e.$emit("confirm",{subsystem:e.formData.subsystem,department:e.formData.department,oldResponsiblePersonId:e.formData.currentResponsibleId,newResponsiblePersonId:e.formData.userNumber,userId:e.formData.userId})})).asyncErrorCatch((function(t){console.error("修改失败:",t),e.$message({type:"error",message:"修改失败,请重试"}),e.submitting=!1}))}else{var h=dr(dr({},et.SAVE_MANAGER_DATA),{},{params:{departmentId:e.formData.selectDeptId||e.getDepartmentIdByDepartment(e.formData.department),department:e.formData.selectDeptName||e.formData.department,subsystem:e.formData.subsystem,partsName:e.projectPartsName||"",userId:e.formData.userId},disableSuccessMsg:!0});e.$request(h).asyncThen((function(t){e.submitting=!1,e.closeModal(),e.$emit("refresh-responsible-persons"),e.$emit("confirm",{subsystem:e.formData.subsystem,department:e.formData.selectDeptName||e.formData.department,departmentId:e.formData.selectDeptId,oldResponsiblePersonId:"",newResponsiblePersonId:e.formData.userNumber,userId:e.formData.userId})})).asyncErrorCatch((function(t){console.error("新增失败:",t),e.$message&&e.$message.error&&e.$message.error("新增失败,请重试"),e.submitting=!1}))}e.submitting=!1}}))},loadDepartmentTree:function(){var e=this,t=dr(dr({},et.GET_DEPT_OF_USER),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r=[];t&&t.data&&(r=t.data.data||t.data||[]),e.departmentList=e.formatDepartmentTreeData(r),e.departmentTreeData=e.departmentList})).asyncErrorCatch((function(t){console.error("加载部门树失败:",t),e.departmentList=[],e.departmentTreeData=[]}))},handleOpenDepartmentDialog:function(){var e=this;this.departmentDialogVisible=!0,this.selectedDepartmentId=this.formData.selectDeptId||"",this.selectedDepartmentName=this.formData.selectDeptName||"",this.departmentTreeFilterText="",this.$nextTick((function(){e.$refs.departmentTree&&e.selectedDepartmentId&&e.$refs.departmentTree.setCurrentKey(e.selectedDepartmentId)}))},handleDepartmentDialogClose:function(){this.departmentDialogVisible=!1,this.selectedDepartmentId="",this.selectedDepartmentName=""},handleDepartmentNodeClick:function(e){this.selectedDepartmentId=e.id,this.selectedDepartmentName=e.name},filterDepartmentNode:function(e,t){return!e||-1!==t.name.indexOf(e)},handleDepartmentDialogConfirm:function(){this.selectedDepartmentId?(this.formData.selectDeptId=this.selectedDepartmentId,this.formData.selectDeptName=this.selectedDepartmentName,this.formData.department=this.selectedDepartmentName,this.departmentDialogVisible=!1,this.formData.currentResponsibleId="",this.formData.currentResponsibleName="",this.formData.rowId="",this.formData.userId="",this.formData.userNumber="",this.formData.username="",this.userOptions=[]):this.$message&&this.$message.warning&&this.$message.warning("请选择部门")},setDepartmentIdFromName:function(e){var t=this;if(e&&this.departmentList&&0!==this.departmentList.length){var r=function e(r,a){var n,i=ar(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.name===a||t.formatDepartmentDisplay(o.name)===a)return o;if(o.children&&o.children.length>0){var s=e(o.children,a);if(s)return s}}}catch(l){i.e(l)}finally{i.f()}return null},a=r(this.departmentList,e);a&&(this.formData.selectDeptId=a.id,this.formData.selectDeptName=a.name)}},setOriginalDepartmentIdFromName:function(e){var t=this;if(e&&this.departmentList&&0!==this.departmentList.length){var r=function e(r,a){var n,i=ar(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.name===a||t.formatDepartmentDisplay(o.name)===a)return o;if(o.children&&o.children.length>0){var s=e(o.children,a);if(s)return s}}}catch(l){i.e(l)}finally{i.f()}return null},a=r(this.departmentList,e);a&&(this.formData.originalDepartmentId=a.id)}},formatDepartmentTreeData:function(e){if(!Array.isArray(e))return[];var t=function e(t){var r={id:t.id,name:t.name||t.label||"",children:void 0};return t.children&&Array.isArray(t.children)&&t.children.length>0&&(r.children=t.children.map((function(t){return e(t)}))),r};return e.map((function(e){return t(e)}))},getDepartmentIdByDepartment:function(e){var t=this;if("function"===typeof this.resolveDepartmentId){var r=this.resolveDepartmentId(e);if(r)return r}if(!e||!this.departmentTreeData||0===this.departmentTreeData.length){if(this.allManagerData&&this.allManagerData.length>0){var a=this.allManagerData.find((function(t){return t.department===e}));return a&&a.departmentId||""}return""}var n=function e(r,a){var n,i=ar(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=t.getDepartmentPathName(o.id);if(s===a||o.name===a)return o.id;if(o.children&&o.children.length>0){var l=e(o.children,a);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null},i=n(this.departmentTreeData,e);if(i)return i;if(this.allManagerData&&this.allManagerData.length>0){var o=this.allManagerData.find((function(t){return t.department===e}));return o&&o.departmentId||""}return""},getDepartmentPathName:function(e){if(!e||!this.departmentTreeData||0===this.departmentTreeData.length)return"";var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=ar(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(nr(n),[o.name]);if(o.id===r)return s.join("-");if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null};return t(this.departmentTreeData,e)||""},handleOpenDeptTransferDialog:function(){var e=this.getSelectedSubsystems();e.length?(this.deptTransferDialogVisible=!0,this.deptTransferFormData={originalDept:"",originalDeptId:"",targetDept:"",targetDeptId:""}):this.$message&&this.$message.warning&&this.$message.warning("请先选择子系统")},handleDeptTransferDialogClose:function(){this.deptTransferDialogVisible=!1,this.deptTransferFormData={originalDept:"",originalDeptId:"",targetDept:"",targetDeptId:""}},handleDeptTransferConfirm:function(){var e=this;if(this.deptTransferFormData.originalDept&&this.deptTransferFormData.targetDept)if(this.deptTransferFormData.originalDept!==this.deptTransferFormData.targetDept){var t=this.getSelectedSubsystems();if(t.length){var r=this.versionData[this.currentVersionId]||{},a=[];if(Object.keys(r).forEach((function(n){var i=r[n]||[];i.forEach((function(r){e.isParamSubsystemMatched(r.subsystemName,t)&&e.isDepartmentMatched(r.department,e.deptTransferFormData.originalDept)&&r.id&&a.push({id:r.id,department:e.deptTransferFormData.targetDept})}))})),0!==a.length){var n=dr(dr({},et.BATCH_UPDATE_DEPARTMENT),{},{data:{items:a}});this.$request(n).asyncThen((function(n){Object.keys(r).forEach((function(a){var n=r[a]||[];n.forEach((function(r){e.isParamSubsystemMatched(r.subsystemName,t)&&e.isDepartmentMatched(r.department,e.deptTransferFormData.originalDept)&&(r.department=e.deptTransferFormData.targetDept)}))})),e.formData.department=e.deptTransferFormData.targetDept,e.formData.selectDeptId=e.deptTransferFormData.targetDeptId,e.formData.selectDeptName=e.deptTransferFormData.targetDept,e.formData.currentResponsibleId="",e.formData.currentResponsibleName="",e.formData.rowId="",e.formData.userId="",e.formData.userNumber="",e.formData.username="",e.userOptions=[],e.deptTransferDialogVisible=!1,e.$message&&e.$message.success&&e.$message.success("成功更新 ".concat(a.length," 个参数的部门")),e.$emit("refresh-department")})).asyncErrorCatch((function(t){console.error("批量更新部门失败:",t),e.$message&&e.$message.error&&e.$message.error("批量更新部门失败,请重试")}))}else this.$message&&this.$message.warning&&this.$message.warning("未找到匹配的参数数据")}else this.$message&&this.$message.warning&&this.$message.warning("请先选择子系统")}else this.$message&&this.$message.warning&&this.$message.warning("原填写部门和填写部门不能相同");else this.$message&&this.$message.warning&&this.$message.warning("请选择原填写部门和填写部门")},isDepartmentMatched:function(e,t){if(!e||!t)return!1;var r=function(e){return e?e.replace(/·/g,"-").trim():""},a=r(e),n=r(t);if(a===n)return!0;for(var i=[["中轻","中重动力平台","平台部","中轻动力平台部","中重动力平台部"]],o=0,s=i;o=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function Ir(e,t){if(e){if("string"===typeof e)return Or(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Or(e,t):void 0}}function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0){var i=this.flowNodes.every((function(e){return"PASS"===e.result||"APPROVE"===e.result||"通过"===e.result}));if(i)return!0}return!1},isWholeEngineParamsSelected:function(){var e=this;return!(!this.checkedKeys||0===this.checkedKeys.length)&&this.checkedKeys.some((function(t){var r=e.nodeMap[t];return r&&r.isWholeEngineParams}))},wholeEngineParamsData:function(){if(!this.wholeEngineParamsRawData||0===this.wholeEngineParamsRawData.length)return{};var e=this.wholeEngineParamsRawData.map((function(e){var t=e,r="-";if(e&&e.includes(":")){var a=e.split(":");t=a[0]||e,r=a[1]||"-"}else e&&(t=e,r="-");return{parameterName:t,partsName:Er,parameterValue:r,unit:"-",department:"平台部",subsystemName:Er}}));return Pr({},Er,e)},isCompetitiveEngineEntry:function(){return!(!this.wholeEngineParamsRawData||!Array.isArray(this.wholeEngineParamsRawData))&&this.wholeEngineParamsRawData.some((function(e){var t=String(e||"").split(":")[0];return"生产日期"===String(t||"").trim()}))},progressDetail:function(){return this.progressDetailData&&Object.keys(this.progressDetailData).length>0?{progressTitle:this.progressDetailData.progressTitle||"",contentName:this.progressDetailData.contentName||"",templateVersion:this.progressDetailData.templateVersion||"",explanation:this.progressDetailData.explanation||"",description:this.progressDetailData.explanation||this.progressDetailData.description||""}:{progressTitle:this.detail.processTitle||"",contentName:"",templateVersion:"",explanation:"",description:""}},currentNode:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.node||"--";var t=this.flowNodes[this.flowNodes.length-1];return t&&t.node||"--"}return"--"},currentProcessor:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.undoUserName||e.todoUserName||"--"}return"--"},shouldShowResendButton:function(){return!!(this.fromTodo&&this.detail&&(this.detail.flowId||this.flowId)&&this.canResend)||(this.canResend||!1)},isFillerTodoEntry:function(){return!!this.filledBy||this.fromTodo&&this.detail&&"数据维护"===String(this.detail.dataType||"")&&!this.isDispatchMode},canShowTodoHeaderOperations:function(){if(console.log("canShowTodoHeaderOperations - isFillerTodoEntry:",this.isFillerTodoEntry),console.log("canShowTodoHeaderOperations - fromTodo:",this.fromTodo),console.log("canShowTodoHeaderOperations - detail:",this.detail),console.log("canShowTodoHeaderOperations - distributeStatus:",this.detail&&this.detail.distributeStatus),this.isFillerTodoEntry)return console.log("canShowTodoHeaderOperations - 返回 true (isFillerTodoEntry)"),!0;if(this.fromTodo)return console.log("canShowTodoHeaderOperations - 返回 true (fromTodo)"),!0;var e=this.detail&&this.detail.distributeStatus,t=!this.detail||"已完成"!==e;return console.log("canShowTodoHeaderOperations - 返回:",t),t},shouldShowRejectButton:function(){var e,t,r=this,a=this.todoId||(null===(e=this.detail)||void 0===e?void 0:e.todoId)||(null===(t=this.detail)||void 0===t?void 0:t.id);if(!a)return!1;if(this.isFillerTodoEntry)return!0;var n=this.versionData[this.currentVersionId]||{},i=!1;return Object.keys(n).forEach((function(e){var t=n[e]||[];t.forEach((function(e){r.isDispatchMode?"update_param"===r.dispatchType?1===e.isDistributedFilled&&(i=!0):1===e.isDistributedRes&&(i=!0):1!==e.isDistributedRes&&1!==e.isDistributedFilled||(i=!0)}))})),!i&&!!this.isDispatchMode},approvalCreateBy:function(){var e;if(this.isApprovalMode){var t,r,a,n,i,o,s,l;if(null!==(t=this.detail)&&void 0!==t&&t.flowId&&this.shouldShowResendButton)return(null===(a=this.detail)||void 0===a?void 0:a.createdBy)||(null===(n=this.userInfo)||void 0===n?void 0:n.username)||(null===(i=this.userInfo)||void 0===i?void 0:i.userName)||"--";if(null===(r=this.detail)||void 0===r||!r.flowId)return(null===(o=this.userInfo)||void 0===o?void 0:o.username)||(null===(s=this.userInfo)||void 0===s?void 0:s.userName)||(null===(l=this.detail)||void 0===l?void 0:l.currentProcessor)||"--"}return(null===(e=this.detail)||void 0===e?void 0:e.createBy)||"--"},approvalCreateTime:function(){var e,t;if(this.isApprovalMode){var r,a,n;if(null!==(r=this.detail)&&void 0!==r&&r.flowId&&this.shouldShowResendButton)return this.formatTime(null===(n=this.detail)||void 0===n?void 0:n.creationDate)||"--";if(null===(a=this.detail)||void 0===a||!a.flowId){var i=new Date;return i.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}}return this.formatTime((null===(e=this.detail)||void 0===e?void 0:e.createdTime)||(null===(t=this.detail)||void 0===t?void 0:t.createTime))||"--"},approvalCurrentNode:function(){var e,t;if(this.isApprovalMode&&(null===(e=this.detail)||void 0===e||!e.flowId||null!==(t=this.detail)&&void 0!==t&&t.flowId&&this.shouldShowResendButton))return"编制";return this.currentNode||"--"},approvalCurrentProcessor:function(){var e,t,r,a;if(this.isApprovalMode&&(null===(e=this.detail)||void 0===e||!e.flowId||null!==(t=this.detail)&&void 0!==t&&t.flowId&&this.shouldShowResendButton))return(null===(r=this.detail)||void 0===r?void 0:r.currentProcessor)||(null===(a=this.userInfo)||void 0===a?void 0:a.userName)||"--";return this.currentProcessor||"--"}},watch:{treeFilterText:function(e){this.$refs.paramTree&&this.$refs.paramTree.filter(e)},treeSearchMode:function(){this.$refs.paramTree&&this.treeFilterText&&this.$refs.paramTree.filter(this.treeFilterText)},isDispatchMode:function(e){e&&!this.dispatchOriginalData&&(this.dispatchOriginalData=JSON.parse(JSON.stringify(this.versionData))),e||(this.dispatchOriginalData=null,this.dispatchParamDraftCache={})},treeFirstLevelPartsName:function(e,t){e&&e!==t&&!this.isCompetitiveEngineEntry&&(this.loadResponsiblePersons(),this.loadFillerPersons())},originalDeptTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.originalDeptTree&&t.$refs.originalDeptTree.filter(e)}))},targetDeptTreeFilterText:function(e){var t=this;this.$nextTick((function(){t.$refs.targetDeptTree&&t.$refs.targetDeptTree.filter(e)}))}},created:function(){this.getUserInfo(),this.loadResponsiblePersons(),this.loadFillerPersons(),this.loadDepartmentList(),this.getversions()},methods:(mr={getUserInfo:function(){var e=this,t=Mr(Mr({},et.GET_USER_INFO),{},{params:{userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){t&&t.data&&(console.log("resp.data",t.data),e.userInfo=t.data)})).asyncErrorCatch((function(e){console.error("获取用户信息失败:",e)}))},getversions:function(){var e=this;if(this.engineModelID){var t=Mr(Mr({},et.GET_ENGINE_VERSIONS),{},{params:{modelId:this.engineModelID},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r,a=t.data;Array.isArray(a)?e.versions=a.sort((function(e,t){return t-e})).map((function(e){return{id:e,label:"V".concat(e)}})):e.versions=a,e.versions.length>0&&!e.currentVersionId&&(e.currentVersionId=e.versions[0].id),e.loadTreeData();var n=(null===(r=e.detail)||void 0===r?void 0:r.flowId)||e.flowId;n&&(console.log("flowId",n),e.canResendApproval())}})).asyncErrorCatch((function(e){console.error("获取版本数据失败:",e)}))}else console.warn("缺少 engineModelID,无法获取版本列表")},loadUserSelfRole:function(){var e=Mr(Mr({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){if(e&&e.data)try{localStorage.setItem("user_self_role",JSON.stringify(e.data))}catch(t){console.error("存储权限数据到 localStorage 失败:",t)}})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},checkPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"查看";try{var a=localStorage.getItem("user_self_role");if(!a)return!1;var n=JSON.parse(a);if(!Array.isArray(n))return!1;var i=n.filter((function(a){var n=a.menuPath&&e&&(a.menuPath.includes(e)||e.includes(a.menuPath));return!!n&&((!t||a.subsystem===t)&&a.parameterPer===r)}));return i.length>0}catch(o){return console.error("检查权限失败:",o),!1}},getMenuPath:function(){var e,t,r=(null===(e=this.detail)||void 0===e?void 0:e.ycOrOth)||(null===(t=this.detail)||void 0===t?void 0:t.ycOrOt)||"玉柴";return"竞品"===r?"竞品发动机数据":"玉柴发动机数据"},hasAdminPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){return 1===e.isAdmin}))}catch(r){return console.error("检查管理员权限失败:",r),!1}},hasGlobalEditPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);if(!Array.isArray(t))return!1;var r=this.getMenuPath();return t.some((function(e){var t=e.permissionPath||"",a=e.parameterPer||"";return t===r&&"编辑"===a}))}catch(a){return console.error("检查全局编辑权限失败:",a),!1}},hasSubsystemPermission:function(e){if(this.hasAdminPermission())return!0;if(this.hasGlobalEditPermission())return!0;try{var t=localStorage.getItem("user_self_role");if(!t)return!1;var r=JSON.parse(t);if(!Array.isArray(r))return!1;var a=r.filter((function(t){if(!t.permissionPath)return!1;var r=t.permissionPath.split("/");return r.length>=2&&r[1]===e}));return a.length>0}catch(n){return console.error("检查子系统权限失败:",n),!1}},hasViewPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.getMenuPath();return this.checkPermission(t,e,"查看")},hasEditPermission:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.hasAdminPermission())return!0;if(this.hasGlobalEditPermission())return!0;var t=this.getMenuPath();return this.checkPermission(t,e,"编辑")},hasParameterEditPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this.hasAnyEditPermission())return!0;if(this.hasAdminPermission())return!0;var a=this.getMenuPath();try{var n=localStorage.getItem("user_self_role");if(!n)return!1;var i=JSON.parse(n);if(!Array.isArray(i))return!1;var o=i.some((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return t===a&&"编辑"===r}));if(o)return!0;var s=i.filter((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return"编辑"===r&&t.startsWith(a+"/")}));if(0===s.length)return!1;var l,c=Tr(s);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.permissionPath||"",p=d.split("/").filter((function(e){return""!==e.trim()}));if(!(p.length<2)){var h=p[0];if(h===a)if(2===p.length){var f=p[1];if(t&&f===t&&(!r||"/"===r))return!0}else if(p.length>=3){var m=p[1],g=p[2];if(!t||m!==t)continue;if(!r||"/"===r)continue;if(g===r)return!0}}}}catch(v){c.e(v)}finally{c.f()}return!1}catch(v){return console.error("检查参数权限失败:",v),!1}},hasAnyViewPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);if(!Array.isArray(t))return!1;var r=this.getMenuPath(),a=t.filter((function(e){var t=e.menuPath&&(e.menuPath.includes(r)||r.includes(e.menuPath));return t&&"查看"===e.parameterPer}));return a.length>0}catch(n){return console.error("检查查看权限失败:",n),!1}},hasAnyEditPermission:function(){var e=String(this.detail.dataType||"");if(console.log(e),this.fromTodo&&this.detail&&("数据维护"===e||"数据拒绝"===e))return!0;if(this.hasAdminPermission())return!0;var t=this.getMenuPath();try{var r=localStorage.getItem("user_self_role");if(!r)return!1;var a=JSON.parse(r);if(!Array.isArray(a))return!1;var n=a.some((function(e){var r=e.permissionPath||"",a=e.parameterPer||"";return r===t&&"编辑"===a}));if(n)return!0;var i=a.some((function(e){var r=e.permissionPath||"",a=e.parameterPer||"";return"编辑"===a&&r.startsWith(t+"/")}));return i}catch(o){return console.error("检查编辑权限失败:",o),!1}},isResponsiblePersonProjectMatch:function(e){var t=this.treeFirstLevelPartsName;return!t||!e||(e.partsName||"")===t},isResponsiblePersonSubsystemDeptMatch:function(e,t,r){if(!e)return!1;var a=!1;if(r&&e.department){var n=r.replace(/·/g,"-"),i=e.department.replace(/·/g,"-"),o=i===n||i.startsWith(n+"-"),s=this.isZQOrZZPowerPlatformDept(r)&&this.isZQOrZZPowerPlatformDept(e.department);a=o||s}else r||e.department||(a=!0);return a},loadResponsiblePersons:function(){var e=this;if(this.isCompetitiveEngineEntry)return this.responsiblePersons=[],Promise.resolve();var t={pageNumber:1,pageSize:9999},r=this.treeFirstLevelPartsName;r&&(t.partsName=r);var a=Mr(Mr({},et.GET_MANAGER_DATA),{},{params:t,disableSuccessMsg:!0});return this.$request(a).asyncThen((function(t){if(t&&t.data){var r=t.data.result||[];e.responsiblePersons=r.map((function(e){return{id:e.userId||e.id,userId:e.userId||e.userNumber||"",userNumber:e.userNumber||e.userId||"",userName:e.username||"",department:e.department||"",subsystem:e.subsystem||"",partsName:e.partsName||""}}))}else e.responsiblePersons=[]})).asyncErrorCatch((function(t){console.error("加载责任人列表失败:",t),e.responsiblePersons=[]}))},isFillerPersonProjectMatch:function(e){var t=this.treeFirstLevelPartsName;return!t||!e||(e.partsName||"")===t},loadFillerPersons:function(){var e=this,t={pageNumber:1,pageSize:9999},r=this.treeFirstLevelPartsName;r&&(t.partsName=r);var a=Mr(Mr({},et.GET_FILLER_DATA),{},{params:t,disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){if(t&&t.data){var r=t.data.result||[];e.fillerPersons=r.map((function(e){return{id:e.userId||e.userNumber||"",userId:e.userId||e.userNumber||"",userNumber:e.userNumber||e.userId||"",userName:e.username||"",department:e.department||"",subsystem:e.subsystem||"",partsName:e.partsName||""}}))}else e.fillerPersons=[]})).asyncErrorCatch((function(t){console.error("加载填写人列表失败:",t),e.fillerPersons=[]}))},getFilteredResponsiblePersons:function(e,t){var r=this;return this.responsiblePersons.filter((function(a){if(!r.isResponsiblePersonProjectMatch(a))return!1;if(!e&&!t)return!0;if(e&&a.department!==e)return!1;if(t){var n=a.subsystem?a.subsystem.split(","):[];if(!n.includes(t))return!1}return!0}))},getFilteredFillerPersons:function(e,t){var r=this;return this.fillerPersons.filter((function(a){if(!r.isFillerPersonProjectMatch(a))return!1;if(!e&&!t)return!0;if(e&&a.department!==e)return!1;if(t){var n=a.subsystem?a.subsystem.split(","):[];if(!n.includes(t))return!1}return!0}))},getFillerUserOptions:function(e){var t=e.id||"".concat(e.subsystemName,"-").concat(e.parameterName);return this.fillerUserOptions[t]||[]},getParamDraftKey:function(e){return e?null!=e.id&&""!==e.id?String(e.id):"".concat(e.subsystemName||"","-").concat(e.parameterName||""):""},restoreFillerUserOption:function(e,t){if(e&&t&&t.userId){this.fillerUserOptions[e]||this.$set(this.fillerUserOptions,e,[]);var r=this.fillerUserOptions[e].findIndex((function(e){return e.userId===t.userId}));r>=0?this.$set(this.fillerUserOptions[e],r,t):this.fillerUserOptions[e].push(t)}},saveDispatchParamDraft:function(e){if(this.isDispatchMode&&e){var t=this.getParamDraftKey(e);if(t){var r=Mr({},this.dispatchParamDraftCache[t]||{});if("update_param"===this.dispatchType){if(e.filledByUserId||e.filledBy){r.filledBy=e.filledBy,r.filledByUserId=e.filledByUserId,r.filledByName=e.filledByName||"";var a=t,n=(this.fillerUserOptions[a]||[]).find((function(t){return t.userId===e.filledByUserId}));n?r.fillerOption=Mr({},n):r.filledByName&&(r.fillerOption={userId:e.filledByUserId,username:r.filledByName,userNumber:e.filledByUserId})}}else(e.resPersonId||e.owner)&&(r.resPersonId=e.resPersonId,r.owner=e.owner);Object.keys(r).length>0&&this.$set(this.dispatchParamDraftCache,t,r)}}},applyDispatchParamDraft:function(e){if(!this.isDispatchMode||!e)return e;var t=this.getParamDraftKey(e),r=this.dispatchParamDraftCache[t];if(!r)return e;var a=Mr({},e);return void 0!==r.resPersonId&&(a.resPersonId=r.resPersonId),void 0!==r.owner&&(a.owner=r.owner),void 0!==r.filledBy&&(a.filledBy=r.filledBy),void 0!==r.filledByUserId&&(a.filledByUserId=r.filledByUserId),void 0!==r.filledByName&&(a.filledByName=r.filledByName),r.fillerOption&&a.filledByUserId&&this.restoreFillerUserOption(t,r.fillerOption),a},handleFillerRemoteSearch:function(e,t){var r=this,a=t.id||"".concat(t.subsystemName,"-").concat(t.parameterName);if(e&&""!==e.trim()){this.fillerUserLoading=!0;var n=e.trim(),i=Mr(Mr({},et.GET_ALLUSERS),{},{params:{name:n},disableSuccessMsg:!0});this.$request(i).asyncThen((function(e){var n=e&&e.data,i=[];Array.isArray(n)?i=n:n&&Array.isArray(n.result)?i=n.result:n&&n.data&&Array.isArray(n.data)&&(i=n.data);var o=i.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),s=t.filledByUserId,l=(r.fillerUserOptions[a]||[]).filter((function(e){return e.userId&&e.userId===s})),c=new Map;l.forEach((function(e){e.userNumber&&c.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!c.has(e.userNumber)&&c.set(e.userNumber,e)})),r.$set(r.fillerUserOptions,a,Array.from(c.values())),r.fillerUserLoading=!1})).asyncErrorCatch((function(e){if(console.error("搜索填写人失败:",e),t.filledByUserId){var n=(r.fillerUserOptions[a]||[]).filter((function(e){return e.userId===t.filledByUserId}));r.$set(r.fillerUserOptions,a,n)}else r.$set(r.fillerUserOptions,a,[]);r.fillerUserLoading=!1}))}else if(t.filledByUserId){var o=(this.fillerUserOptions[a]||[]).filter((function(e){return e.userId===t.filledByUserId}));this.$set(this.fillerUserOptions,a,o)}else this.$set(this.fillerUserOptions,a,[])},handleFillerChange:function(e,t){var r=t.id||"".concat(t.subsystemName,"-").concat(t.parameterName);if(e){t.filledBy=e;var a=(this.fillerUserOptions[r]||[]).find((function(t){return t.userId===e}));a&&(t.filledByName=a.username||""),this.saveDispatchParamDraft(t)}else{t.filledBy="",t.filledByUserId="",t.filledByName="";var n=this.getParamDraftKey(t);n&&this.dispatchParamDraftCache[n]&&this.$delete(this.dispatchParamDraftCache,n)}},handleUpdateDraftCache:function(e,t){e&&t&&this.$set(this.dispatchParamDraftCache,e,t)},getFilteredPersonsByDepartment:function(e){return e?this.responsiblePersons.filter((function(t){return t.department===e})):this.responsiblePersons},getPersonNameById:function(e){if(!e)return"";var t=this.responsiblePersons.find((function(t){return t.id===e}));return t?t.userName:(t=this.fillerPersons.find((function(t){return t.id===e})),t?t.userName:"")},handleBack:function(){this.isApprovalMode?this.handleApprovalCancel():(console.log("handleBack called"),this.$emit("back"))},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},onVersionChange:function(){this.isTreeAndContentLoading||(this.hasVersionChanged=!0,this.isEditMode&&this.handleCancelEdit(),this.checkedKeys&&this.checkedKeys.length>0&&this.loadTreeData())},onVersionStatusChange:function(e,t,r){console.log("Version changed:",e,t,r)},filterTreeNode:function(e,t){var r=this;if(!e)return!0;var a=e.toLowerCase(),n=this.nodeMap[t.id];if(!n)return(t.label||"").toLowerCase().includes(a);var i=(t.label||"").toLowerCase(),o=null===n.parentLabel,s=null!==n.parentLabel&&!0===n.isParent,l=null!==n.parentLabel&&!1===n.isParent;if("subsystem"===this.treeSearchMode){if(s){if(i.includes(a))return!0}else if(l){var c=Object.values(this.nodeMap).find((function(e){return e.label===n.parentLabel&&!0===e.isParent}));if(c){var u=(c.label||"").toLowerCase();if(u.includes(a))return!0}}else if(o)return!0;return!1}if(l)return i.includes(a);if(s){if(t.children&&Array.isArray(t.children))return t.children.some((function(e){var t=(e.label||"").toLowerCase();return t.includes(a)}))}else if(o){var d=function e(t){return!(!t.children||!Array.isArray(t.children))&&t.children.some((function(t){var n=r.nodeMap[t.id];if(n&&null!==n.parentLabel&&!1===n.isParent){var i=(t.label||"").toLowerCase();if(i.includes(a))return!0}else if(n&&null!==n.parentLabel&&!0===n.isParent)return e(t);return!1}))};return d(t)}return!1},handleTreeCheck:function(e,t){this.checkedKeys=t.checkedKeys,this.loadEngineDetail()},allowDrag:function(e){var t=this.nodeMap[e.data.id];return!!t&&(t.isParent&&!t.isWholeEngineParams&&null!==t.parentLabel)},allowDrop:function(e,t,r){var a=this.nodeMap[e.data.id],n=this.nodeMap[t.data.id];if(!a||!n)return!1;var i=a.isParent&&!a.isWholeEngineParams&&null!==a.parentLabel,o=n.isParent&&!n.isWholeEngineParams&&null!==n.parentLabel,s=null===n.parentLabel&&n.isParent;return"prev"===r||"next"===r?i&&o:"inner"===r&&(i&&s)},handleSyncVersion:function(){var e=Mr(Mr({},et.GET_NEW_MODEL_VERSION),{},{params:{modelId:this.engineModelID,userId:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){e&&e.data&&console.log("同步参数版本成功:",e.data)})).asyncErrorCatch((function(e){console.error("同步参数版本失败:",e)}))},handleNodeDrop:function(e,t,r,a){var n=this,i=this.treeData.find((function(t){var r;return t.id===e.data.id||(null===(r=n.nodeMap[e.data.id])||void 0===r?void 0:r.parentLabel)===t.label}));if(i)this.handleSubsystemReorder(i,e,t,r);else if(this.treeData.length>0){var o=this.treeData[0];this.handleSubsystemReorder(o,e,t,r)}},handleSubsystemReorder:function(e,t,r,a){var n=this;if(e&&e.children){var i=e.children||[],o=i.find((function(e){return n.nodeMap[e.id]&&n.nodeMap[e.id].isWholeEngineParams})),s=i.filter((function(e){return!n.nodeMap[e.id]||!n.nodeMap[e.id].isWholeEngineParams})),l=t.data.id,c=r.data.id,u=s.findIndex((function(e){return e.id===l})),d=s.findIndex((function(e){return e.id===c}));if(-1!==u&&-1!==d){var p=s.splice(u,1)[0],h=d;"prev"===a?h=d:"next"===a?h=d+1:"inner"===a&&(h=d),u0&&(a=a.concat(e(r.children)))})),a};return r(e)},handleDeptRemoteSearch:function(e){this.deptSearchText=e||""},handleBatchModifyDept:function(){var e=this;this.batchModifyDeptFormData={subsystem:"",partsName:[],department:""},this.batchModifyDeptSubsystemList=[],this.batchModifyDeptPartsNameList=[],this.batchModifyDeptSearchText="";var t=this.versionData[this.currentVersionId]||{},r=new Set;Object.keys(t).forEach((function(e){var a=t[e]||[];a.forEach((function(e){e.subsystemName&&r.add(e.subsystemName)}))})),this.batchModifyDeptSubsystemList=Array.from(r).sort(),this.batchModifyDeptDialogVisible=!0,this.$nextTick((function(){e.$refs.batchModifyDeptForm&&e.$refs.batchModifyDeptForm.clearValidate()}))},handleBatchModifyDeptSubsystemChange:function(e){if(this.batchModifyDeptFormData.partsName=[],this.batchModifyDeptFormData.department="",this.batchModifyDeptPartsNameList=[],e){var t=this.versionData[this.currentVersionId]||{},r=new Set;Object.keys(t).forEach((function(a){var n=t[a]||[];n.forEach((function(t){if(t.subsystemName===e){var n=t.partsName||a;n&&r.add(n)}}))})),this.batchModifyDeptPartsNameList=Array.from(r).sort()}},handleBatchModifyDeptRemoteSearch:function(e){this.batchModifyDeptSearchText=e||""},handleBatchModifyDeptDialogClose:function(){this.batchModifyDeptDialogVisible=!1,this.batchModifyDeptFormData={subsystem:"",partsName:[],department:""},this.batchModifyDeptSubsystemList=[],this.batchModifyDeptPartsNameList=[],this.batchModifyDeptSearchText="",this.$refs.batchModifyDeptForm&&this.$refs.batchModifyDeptForm.clearValidate()},handleBatchModifyDeptConfirm:function(){var e=this;this.$refs.batchModifyDeptForm.validate((function(t){if(t){var r=e.batchModifyDeptFormData,a=r.subsystem,n=r.partsName,i=r.department;if(!a||!n||!Array.isArray(n)||0===n.length||!i)return void e.$message({type:"warning",message:"请完整填写表单信息"});var o=e.resolveDepartmentId(i),s=e.versionData[e.currentVersionId]||{},l=0;Object.keys(s).forEach((function(t){var r=s[t]||[];r.forEach((function(r){var s=r.partsName||t;r.subsystemName===a&&n.includes(s)&&(e.$set(r,"department",i),o&&e.$set(r,"departmentId",o),l++)}))})),l>0?(e.$message({type:"success",message:"已批量更新 ".concat(l," 个参数的部门")}),e.handleBatchModifyDeptDialogClose()):e.$message({type:"warning",message:"未找到匹配的参数"})}}))},handleBatchModifyResponsible:function(){this.$refs.batchModifyResponsibleModal.showModal()}},Pr(mr,"handleBatchModifyDeptDialogClose",(function(){this.batchModifyDeptDialogVisible=!1,this.batchModifyDeptFormData={originalDept:"",originalDeptId:"",targetDept:"",targetDeptId:""}})),Pr(mr,"handleBatchModifyDeptConfirm",(function(){var e=this;if(this.batchModifyDeptFormData.originalDept&&this.batchModifyDeptFormData.targetDept)if(this.batchModifyDeptFormData.originalDept!==this.batchModifyDeptFormData.targetDept){var t=this.versionData[this.currentVersionId]||{},r=new Set;Object.keys(t).forEach((function(e){var a=t[e]||[];a.forEach((function(e){e.department&&r.add(e.department)}))}));var a=Array.from(r),n=a.includes(this.batchModifyDeptFormData.originalDept);if(n){var i=[];if(Object.keys(t).forEach((function(r){var a=t[r]||[];a.forEach((function(t){e.isDepartmentMatched(t.department,e.batchModifyDeptFormData.originalDept)&&t.id&&i.push({id:t.id,department:e.batchModifyDeptFormData.targetDept})}))})),0!==i.length){var o=Mr(Mr({},et.BATCH_UPDATE_DEPARTMENT),{},{params:{items:i}});this.batchModifyDeptSubmitting=!0,this.$request(o).asyncThen((function(r){Object.keys(t).forEach((function(r){var a=t[r]||[];a.forEach((function(t,r){if(e.isDepartmentMatched(t.department,e.batchModifyDeptFormData.originalDept)){t.department=e.batchModifyDeptFormData.targetDept;var a=e.responsiblePersons.find((function(r){return e.isResponsiblePersonSubsystemDeptMatch(r,t.subsystemName,t.department)}));a&&(t.resPersonId=a.userId||a.id||"",t.owner=a.userName||a.username||"")}}))})),e.batchModifyDeptSubmitting=!1,e.batchModifyDeptDialogVisible=!1,e.$message.success("成功更新 ".concat(i.length," 个参数的部门"))})).asyncErrorCatch((function(t){console.error("批量更新部门失败:",t),e.$message.error("批量更新部门失败,请重试"),e.batchModifyDeptSubmitting=!1}))}else this.$message.warning("未找到匹配的参数数据")}else{var s="原部门【".concat(this.batchModifyDeptFormData.originalDept,"】不存在于当前数据中。\n当前存在的部门:").concat(a.join("、"));this.$message.warning(s)}}else this.$message.warning("原部门和部门不能相同");else this.$message.warning("请选择原部门和部门")})),Pr(mr,"isDepartmentMatched",(function(e,t){if(!e||!t)return!1;var r=function(e){return e?e.replace(/·/g,"-").trim():""},a=r(e),n=r(t);if(a===n)return!0;for(var i=[["中轻","中重动力平台","平台部","中轻动力平台部","中重动力平台部"]],o=0,s=i;o0&&this.loadTreeData()})),Pr(mr,"handleReplaceAllPerson",(function(){var e=this;this.replaceAllPersonDialogVisible=!0,this.replaceAllPersonSubmitting=!1,this.replaceAllPersonFormData={userId:"",userNumber:"",username:""},this.replaceAllPersonUserOptions=[],this.replaceAllPersonUserLoading=!1,this.$nextTick((function(){e.$refs.replaceAllPersonForm&&e.$refs.replaceAllPersonForm.clearValidate()}))})),Pr(mr,"handleReplaceAllPersonDialogClose",(function(){this.replaceAllPersonDialogVisible=!1,this.replaceAllPersonSubmitting=!1,this.replaceAllPersonFormData={userId:"",userNumber:"",username:""},this.replaceAllPersonUserOptions=[],this.replaceAllPersonUserLoading=!1})),Pr(mr,"handleReplaceAllPersonRemoteSearch",(function(e){var t=this;if(e&&""!==e.trim()){this.replaceAllPersonUserLoading=!0;var r=e.trim(),a=Mr(Mr({},et.GET_ALLUSERS),{},{params:{name:r},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){var r=e&&e.data,a=[];Array.isArray(r)?a=r:r&&Array.isArray(r.result)?a=r.result:r&&r.data&&Array.isArray(r.data)&&(a=r.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=t.replaceAllPersonFormData.userId,o=t.replaceAllPersonUserOptions.filter((function(e){return e.userId&&e.userId===i})),s=new Map;o.forEach((function(e){e.userNumber&&s.set(e.userNumber,e)})),n.forEach((function(e){e.userNumber&&!s.has(e.userNumber)&&s.set(e.userNumber,e)})),t.replaceAllPersonUserOptions=Array.from(s.values()),t.replaceAllPersonUserLoading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),t.replaceAllPersonFormData.userId){var r=t.replaceAllPersonUserOptions.filter((function(e){return e.userId===t.replaceAllPersonFormData.userId}));t.replaceAllPersonUserOptions=r}else t.replaceAllPersonUserOptions=[];t.replaceAllPersonUserLoading=!1}))}else if(this.replaceAllPersonFormData.userId){var n=this.replaceAllPersonUserOptions.filter((function(e){return e.userId===t.replaceAllPersonFormData.userId}));this.replaceAllPersonUserOptions=n}else this.replaceAllPersonUserOptions=[]})),Pr(mr,"handleReplaceAllPersonChange",(function(e){if(e){var t=this.replaceAllPersonUserOptions.find((function(t){return t.userId===e}));t?(this.replaceAllPersonFormData.userId=t.userId,this.replaceAllPersonFormData.userNumber=t.userNumber||t.userId,this.replaceAllPersonFormData.username=t.username||""):(this.replaceAllPersonFormData.userId=e,this.replaceAllPersonFormData.userNumber=e,this.replaceAllPersonFormData.username="")}else this.replaceAllPersonFormData.userId="",this.replaceAllPersonFormData.userNumber="",this.replaceAllPersonFormData.username=""})),Pr(mr,"handleReplaceAllPersonConfirm",(function(){var e=this;this.$refs.replaceAllPersonForm&&this.$refs.replaceAllPersonForm.validate((function(t){if(t){var r=e.replaceAllPersonFormData,a=r.userId,n=r.userNumber,i=r.username;if(a){var o=e.versionData[e.currentVersionId]||{},s=0;if("update_param"===e.dispatchType){var l={userId:a,username:i||"",userNumber:n||a};Object.keys(o).forEach((function(t){var r=o[t]||[];r.forEach((function(r,n){if(1!==r.isDistributedFilled){r.filledBy=a,r.filledByUserId=a,r.filledByName=i||r.filledByName||"",e.$set(o[t],n,r);var c=r.id||"".concat(r.subsystemName,"-").concat(r.parameterName);e.restoreFillerUserOption(c,l),e.saveDispatchParamDraft(r),s++}}))}))}else Object.keys(o).forEach((function(t){var r=o[t]||[];r.forEach((function(r,n){1!==r.isDistributedRes&&(r.resPersonId=a,r.owner=i||r.owner||"",e.$set(o[t],n,r),e.saveDispatchParamDraft(r),s++)}))}));e.$nextTick((function(){e.$forceUpdate()})),0!==s?e.handleReplaceAllPersonDialogClose():e.$message({type:"warning",message:"没有参数被修改"})}else e.$message.warning("请选择人员")}}))})),Pr(mr,"handleBatchModifyConfirm",(function(e){var t=this;if(e){if("update_param"===this.dispatchType){var r=e.subsystem,a=e.partsName,n=e.userId,i=e.userNumber,o=e.username,s=Array.isArray(r)?r:r?[r]:[];if(!s.length||!a||!Array.isArray(a)||0===a.length||!n)return void this.$message({type:"warning",message:"缺少必要参数"});var l=this.versionData[this.currentVersionId]||{},c=0,u={userId:n,username:o||"",userNumber:i||n};return Object.keys(l).forEach((function(e){var r=l[e]||[];r.forEach((function(r,i){var d=r.partsName||e,p=s.some((function(e){return t.isSubsystemNameMatch(r.subsystemName,e)})),h=!1;if("/"===d){var f="".concat(r.subsystemName," - /");h=a.includes(f)}else h=a.includes(d);if(p&&h&&1!==r.isDistributedFilled){r.filledBy=n,r.filledByUserId=n,r.filledByName=o||r.filledByName||"",t.$set(l[e],i,r);var m=r.id||"".concat(r.subsystemName,"-").concat(r.parameterName);t.restoreFillerUserOption(m,u),t.saveDispatchParamDraft(r),c++}}))})),this.$nextTick((function(){t.$forceUpdate()})),c>0?void 0:void this.$message({type:"warning",message:"没有参数被修改"})}if(this.isCompetitiveEngineEntry){var d=e.subsystem,p=e.department,h=e.userId,f=e.username,m=void 0!==h&&null!==h&&""!==h;if(!d||!p||!m)return void this.$message({type:"warning",message:"缺少必要参数,无法更新责任人"});var g=this.versionData[this.currentVersionId]||{},v=f||"";if(!v&&Array.isArray(this.responsiblePersons)&&this.responsiblePersons.length>0){var y=e.newResponsiblePersonId,b=this.responsiblePersons.find((function(e){if(!t.isResponsiblePersonProjectMatch(e))return!1;var r=e.userId||e.id||e.userNumber;return r===h||y&&(e.userNumber===y||r===y)}));b&&(v=b.userName||b.username||"")}var _=0;return Object.keys(g).forEach((function(e){var r=g[e]||[];r.forEach((function(r,a){if(r.subsystemName===d&&r.department===p&&1!==r.isDistributedRes){var n=Mr(Mr({},r),{},{resPersonId:h,owner:v||r.owner||""});t.$set(g[e],a,n),t.saveDispatchParamDraft(n),_++}}))})),0===_?void this.$message({type:"warning",message:"未找到需要更新的责任人数据"}):(this.$nextTick((function(){t.$forceUpdate()})),void this.$message.success("已更新 ".concat(_," 条责任人记录")))}this.loadResponsiblePersons().then((function(){var e=wr(t.checkedKeys);t.loadEngineDetail(),t.$nextTick((function(){t.checkedKeys=e,t.$refs.paramTree&&e.length>0&&t.$refs.paramTree.setCheckedKeys(e)}))}))}})),Pr(mr,"handleConfirmDispatch",(function(){var e=this;this.dispatchLoading=!0;var t,r=[],a=this.versionData[this.currentVersionId]||{},n="update_param"===this.dispatchType,i=[];if(Object.keys(a).forEach((function(t){var o=a[t]||[];o.forEach((function(t){if(n||1!==t.isDistributedRes)if(n&&1===t.isDistributedFilled)i.push(t.parameterName);else{var a=!1,o="";if(n)o=t.filledBy||"",o&&(a=!0);else if(o=t.resPersonId||"",o){a=!0;var s=e.responsiblePersons.find((function(e){return e.userId===o}));if(s&&t.department){var l=e.formatDepartmentDisplay(t.department),c=e.formatDepartmentDisplay(s.department||"");if(l!==c){var u=e.isZQOrZZPowerPlatformDept(l)&&e.isZQOrZZPowerPlatformDept(c)||e.isZQOrZZPowerPlatformDept(t.department)&&e.isZQOrZZPowerPlatformDept(s.department||"");u||(a=!1)}}}if(a){var d={id:t.id,parameterId:t.parameterId,engineModelId:t.engineModelId,parameterValue:t.parameterValue||"",parameterName:t.parameterName,partsName:t.partsName,subsystemName:t.subsystemName,department:t.department,unit:t.unit,majorVersion:t.majorVersion,minorVersion:t.minorVersion,versionStatus:t.versionStatus,operation:"UPDATE"};n?d.filledBy=o:(d.resPersonId=o,d.filledBy=""),r.push(d)}}else i.push(t.parameterName)}))})),0===r.length){var o=n?"填写人":"责任人";return this.dispatchLoading=!1,void this.$message({type:"warning",message:"没有".concat(o,"的数据需要分发")})}t="update_param"===this.dispatchType?et.HANDLE_RESPONSIBLE_DISPATCH:"responsible"===this.dispatchType?et.UPDATE_PARAM:et.HANDLE_TODO_DISPATCH;var s=t.url+de();console.log(this.dispatchType,"this.dispatchType",s,111111);var l=Mr(Mr({},t),{},{url:s,params:r,disableSuccessMsg:!0});this.$request(l).asyncThen((function(t){e.$message({type:"success",message:"分发成功"}),e.dispatchLoading=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("分发失败:",t),e.dispatchLoading=!1,e.$message({type:"error",message:t.message||"分发失败"})})).finally((function(){e.dispatchLoading=!1}))})),Pr(mr,"appendApprovalIdForTodoRequest",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Mr({},e);if(this.fromTodo){var r,a,n=this.todoId||(null===(r=this.detail)||void 0===r?void 0:r.todoId)||(null===(a=this.detail)||void 0===a?void 0:a.approvalId);n&&(t.approvalId=n)}return t})),Pr(mr,"buildTableDetailRequestParams",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Mr({modelID:this.detail.id,parameterVersion:this.currentVersionId||1},e);return this.useResponsiblePersonTableDetailApi&&(t.userID=this.responsiblePersonId||de()),this.appendApprovalIdForTodoRequest(t)})),Pr(mr,"loadEngineDetailInfo",(function(){var e=this;console.log(this.detail,"this.detail",this.detail.id);var t=Mr(Mr({},this.tableDetailApi),{},{params:this.buildTableDetailRequestParams(),disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){t&&t.data&&(e.engineDetailInfo=t.data,!e.isCompetitiveEngineEntry&&e.treeFirstLevelPartsName&&(e.loadResponsiblePersons(),e.loadFillerPersons()))})).asyncErrorCatch((function(t){console.error("获取机型详情失败:",t),e.$message({type:"error",message:"获取机型详情失败"})}))})),Pr(mr,"loadTreeData",(function(){var e=this;if(this.detail&&this.detail.id){this.isTreeAndContentLoading=!0;var t=Mr(Mr({},this.tableDetailApi),{},{params:this.buildTableDetailRequestParams({userID:de()}),disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r=t.data;e.saveWholeEngineParamsData(r),e.treeData=e.convertThreeLevelTree(r),!e.isCompetitiveEngineEntry&&e.treeFirstLevelPartsName&&(e.loadResponsiblePersons(),e.loadFillerPersons());var a=e.getFirstLevelNodeKeys(e.treeData),n=e.getSecondLevelNodeKeys(e.treeData),i=wr(new Set([].concat(wr(a),wr(n)))),o=0===e.expandedKeys.length;o?(e.defaultExpandedKeys=i,e.expandedKeys=wr(i)):e.defaultExpandedKeys=a;var s=e.getAllNodeKeys(e.treeData);e.checkedKeys=s,e.$nextTick((function(){e.$refs.paramTree&&s.length>0&&e.$refs.paramTree.setCheckedKeys(s),o&&e.$nextTick((function(){if(e.$refs.paramTree&&e.$refs.paramTree.store){var t=e.$refs.paramTree.store._getAllNodes();t.forEach((function(t){var r=e.expandedKeys.includes(t.id);r&&!t.expanded?t.expand():!r&&t.expanded&&t.collapse()}))}})),e.detail&&e.detail.id&&s.length>0?e.loadEngineDetail({withPanelLoading:!0}):e.isTreeAndContentLoading=!1}))}else e.isTreeAndContentLoading=!1})).asyncErrorCatch((function(t){console.error("获取参数列表失败:",t),e.isTreeAndContentLoading=!1,e.$message({type:"error",message:"获取参数列表失败"})}))}else console.warn("缺少 detail.id,无法加载树数据")})),Pr(mr,"saveWholeEngineParamsData",(function(e){var t=this;this.wholeEngineParamsRawData=[],Object.keys(e).forEach((function(r){var a=e[r];if("object"===xr(a)&&!Array.isArray(a)){var n=t.getWholeEngineParamsArrayFromSecondLevel(a);n&&(t.wholeEngineParamsRawData=n.filter((function(e){return e&&"/"!==e})))}}))})),Pr(mr,"isWholeEngineSubsystemName",(function(e){return Lr.includes(e)})),Pr(mr,"isSubsystemNameMatch",(function(e,t){return!(!e||!t)&&(e===t||Lr.includes(e)&&Lr.includes(t))})),Pr(mr,"getWholeEngineParamsArrayFromSecondLevel",(function(e){if(!e||"object"!==xr(e))return null;for(var t=0;t0&&t.updateChildrenParentLabel(e.children,e.label)})),[o]})),Pr(mr,"updateChildrenParentLabel",(function(e,t){var r=this;e.forEach((function(e){r.nodeMap[e.id]&&(r.nodeMap[e.id].parentLabel=t),e.children&&e.children.length>0&&r.updateChildrenParentLabel(e.children,e.label)}))})),Pr(mr,"getRootLabel",(function(){if(this.treeData&&this.treeData.length>0)return this.treeData[0].label||"";if(this.engineDetailInfo){var e=this.engineDetailInfo.modelName||"",t=this.engineDetailInfo.projectNumber||"";if(e&&t)return"".concat(e,"-").concat(t);if(e)return e}return this.model?this.model:"机型详情"})),Pr(mr,"convertObjectToTree",(function(e){var t=this,r=[];return this.nodeMap={},Object.keys(e).forEach((function(a,n){var i="parent-".concat(n),o=[],s=new Set;t.nodeMap[i]={label:a,parentLabel:null,isParent:!0},Array.isArray(e[a])&&e[a].forEach((function(e,r){if(!s.has(e)){s.add(e);var n="".concat(i,"-").concat(r);o.push({id:n,label:e,tip:""}),t.nodeMap[n]={label:e,parentLabel:a,isParent:!1}}})),r.push({id:i,label:a,tip:"",children:o})})),r})),Pr(mr,"formatTreeData",(function(e){var t=this;return e.map((function(e,r){var a={id:e.id||e.key||"node-".concat(r),label:e.label||e.name||e.title||"",tip:e.tip||""};if(e.children&&e.children.length>0){var n=new Set,i=[];e.children.forEach((function(e){var t=e.label||e.name||e.title||"";n.has(t)||(n.add(t),i.push(e))})),a.children=t.formatTreeData(i)}return a}))})),Pr(mr,"getAllNodeKeys",(function(e){var t=this,r=[];return e.forEach((function(e){r.push(e.id),e.children&&e.children.length>0&&(r=r.concat(t.getAllNodeKeys(e.children)))})),r})),Pr(mr,"getFirstLevelNodeKeys",(function(e){var t=this,r=[];return e.forEach((function(e){var a=t.nodeMap[e.id];a&&null===a.parentLabel&&r.push(e.id)})),r})),Pr(mr,"getSecondLevelNodeKeys",(function(e){var t=this,r=[],a=function e(a){a.forEach((function(a){var n=t.nodeMap[a.id];n&&null!==n.parentLabel&&!0===n.isParent&&r.push(a.id),a.children&&a.children.length>0&&e(a.children)}))};return a(e),r})),Pr(mr,"handleNodeExpand",(function(e,t){this.expandedKeys.includes(e.id)||this.expandedKeys.push(e.id)})),Pr(mr,"handleNodeCollapse",(function(e,t){var r=this.expandedKeys.indexOf(e.id);r>-1&&this.expandedKeys.splice(r,1)})),Pr(mr,"handleExpandAllSecondLevel",(function(){var e=this,t=this.getFirstLevelNodeKeys(this.treeData),r=this.getSecondLevelNodeKeys(this.treeData),a=wr(new Set([].concat(wr(t),wr(r))));this.expandedKeys=wr(a),this.$nextTick((function(){if(e.$refs.paramTree)if("function"!==typeof e.$refs.paramTree.setExpandedKeys){if(console.warn("setExpandedKeys 方法不存在,尝试使用 store 方式"),e.$refs.paramTree.store){var t=e.$refs.paramTree.store._getAllNodes();t.forEach((function(t){var r=e.nodeMap[t.id];r&&(null===r.parentLabel||null!==r.parentLabel&&!0===r.isParent)&&a.includes(t.id)&&!t.expanded&&t.expand()}))}}else e.$refs.paramTree.setExpandedKeys(a);else console.warn("$refs.paramTree 不存在,无法展开节点")}))})),Pr(mr,"handleCollapseAllSecondLevel",(function(){var e=this,t=this.getFirstLevelNodeKeys(this.treeData);this.expandedKeys=wr(t),this.$nextTick((function(){if(e.$refs.paramTree)if("function"!==typeof e.$refs.paramTree.setExpandedKeys){if(console.warn("setExpandedKeys 方法不存在,尝试使用 store 方式"),e.$refs.paramTree.store){var r=e.$refs.paramTree.store._getAllNodes();r.forEach((function(t){var r=e.nodeMap[t.id];r&&null!==r.parentLabel&&!0===r.isParent&&t.expanded&&t.collapse()}))}}else e.$refs.paramTree.setExpandedKeys(t);else console.warn("$refs.paramTree 不存在,无法收起节点")}))})),Pr(mr,"getSelectedSubsystemsAndTypes",(function(){var e=this,t=[],r=[],a=[],n=new Set,i=new Set;return this.checkedKeys.forEach((function(o){var s=e.nodeMap[o];if(s&&null!==s.parentLabel&&!s.isWholeEngineParams)if(s.isParent){if(s.isWholeEngineParams)return;n.has(s.label)||(t.push(s.label),n.add(s.label));var l="".concat(s.label,"-/");i.has(l)||(a.push(l),i.add(l))}else{if(e.isWholeEngineSubsystemName(s.parentLabel))return;if(s.parentLabel&&!n.has(s.parentLabel)&&(t.push(s.parentLabel),n.add(s.parentLabel)),s.label){var c=s.label;if(c.includes(":")&&(c=c.split(":")[0]),r.push(c),s.parentLabel){var u="".concat(s.parentLabel,"-").concat(c);i.has(u)||(a.push(u),i.add(u))}}}})),{subsystemNames:t,parameterTypes:r,subsystemTypes:a}})),Pr(mr,"handleExportTemplate",(function(){var e,t,r,a=this,n=this.todoId||(null===(e=this.detail)||void 0===e?void 0:e.todoId)||(null===(t=this.detail)||void 0===t?void 0:t.approvalId),i=this.flowId||(null===(r=this.detail)||void 0===r?void 0:r.flowId),o={url:et.EXPORT_TEMPLATE.url,method:et.EXPORT_TEMPLATE.method,params:Mr(Mr({engineModelID:this.detail.id,userId:de()},n?{approvalId:n}:{}),i?{flowId:i}:{}),responseType:"blob"};this.$axios(o).then((function(e){var t=e.data;if(t){var r=e.headers&&(e.headers["content-type"]||e.headers["Content-Type"]);if(r&&r.includes("application/json"))try{var n=new FileReader;n.onload=function(){try{var e=JSON.parse(n.result);a.$message.error(e.message||"下载失败")}catch(t){a.$message.error("下载失败")}},n.readAsText(t)}catch(d){console.error("解析下载失败响应异常:",d),a.$message.error("下载失败")}else{var i=e.headers&&(e.headers["content-disposition"]||e.headers["Content-Disposition"]),o="导入模板.xlsx";if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(d){o=l}}var c=window.URL.createObjectURL(t),u=document.createElement("a");u.href=c,u.download=o,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c)}}else a.$message.error("下载失败,文件内容为空")})).catch((function(e){console.error("导出模板失败:",e),a.$message.error("导出模板失败")}))})),Pr(mr,"handleImport",(function(){this.importing||this.$refs.fileInput.click()})),Pr(mr,"handleFileChange",(function(e){var t=e.target.files&&e.target.files[0];if(t){var r=t.name.split(".").pop().toLowerCase();if(!["xlsx","xls"].includes(r))return this.$message({type:"warning",message:"请选择 Excel 文件(.xlsx 或 .xls)"}),void(e.target.value="");this.uploadFile(t),e.target.value=""}})),Pr(mr,"uploadFile",(function(e){var t=this,r=new FormData;r.append("file",e),r.append("modelId",this.detail.id),r.append("userId",de());var a=Mr(Mr({},et.IMPORT_ENGINE_MODEL),{},{params:r,disableSuccessMsg:!0});this.importing=!0,this.$upload(a,null,!1).then((function(e){console.log("导入成功:",e),t.loadEngineDetail()})).catch((function(e){console.error("导入失败:",e),t.$message({type:"error",message:"导入失败,请稍后重试"})})).finally((function(){t.importing=!1}))})),Pr(mr,"loadEngineDetail",(function(){var e,t,r=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a.withPanelLoading,i=void 0!==n&&n;i&&(this.isTreeAndContentLoading=!0);var o=this.detail&&this.detail.id||this.currentEngineModelID;if(!o)return console.warn("缺少 engineModelID,无法加载详情"),void(i&&(this.isTreeAndContentLoading=!1));var s=this.getSelectedSubsystemsAndTypes(),l=s.subsystemNames,c=s.parameterTypes,u=s.subsystemTypes;if(0!==l.length||0!==c.length){console.log(l,c,u);var d={engineModelID:o,userID:this.lastUpdatedBy||de(),subsystemParts:u};this.hasVersionChanged&&this.currentVersionId&&(d.parameterVersion=this.currentVersionId);var p=de();"update_param"===this.dispatchType?d.responsiblePersonId=this.responsiblePersonId||p:!this.isDispatchMode&&this.isEditMode?d.filledById=this.filledBy||p:this.filledBy?d.filledById=this.filledBy:this.fromTodo&&this.canResend&&(d.filledById=p),this.isDispatchMode&&"update_param"!==this.dispatchType&&(d.isRes=1);var h=this.todoId||(null===(e=this.detail)||void 0===e?void 0:e.todoId)||(null===(t=this.detail)||void 0===t?void 0:t.approvalId);h&&(d.approvalId=h);var f=this.chunkSubsystemParts(d.subsystemParts,60),m=f.map((function(e){return r.requestEngineDetailBatch(Mr(Mr({},d),{},{subsystemParts:e}))}));Promise.all(m).then((function(e){var t=r.mergeEngineDetailBatchData(e.map((function(e){return e&&e.data||{}})));if(console.log("接口返回数据:",e),t&&Object.keys(t).length>0){console.log("准备处理的数据:",t);var a=null;r.isDispatchMode&&!r.dispatchOriginalData&&(a=JSON.parse(JSON.stringify(r.versionData))),r.processDetailData(t),r.isDispatchMode&&!r.dispatchOriginalData&&a?r.$nextTick((function(){r.dispatchOriginalData=a})):r.isDispatchMode&&!r.dispatchOriginalData&&r.$nextTick((function(){r.dispatchOriginalData=JSON.parse(JSON.stringify(r.versionData))}))}else console.warn("接口返回数据为空或格式不正确",e);i&&(r.isTreeAndContentLoading=!1)})).catch((function(e){console.error("获取引擎详情失败:",e),i&&(r.isTreeAndContentLoading=!1),r.$message.error("获取引擎详情失败")}))}else i&&(this.isTreeAndContentLoading=!1)})),Pr(mr,"chunkSubsystemParts",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(!Array.isArray(e)||0===e.length)return[];for(var r=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return t&&"object"===xr(t)?(Object.keys(t).forEach((function(r){var a=t[r];Array.isArray(a)&&(e[r]||(e[r]=[]),e[r]=e[r].concat(a))})),e):e}),{})})),Pr(mr,"processDetailData",(function(e){var t=this;e&&"object"===xr(e)?(this.versionData[this.currentVersionId]||this.$set(this.versionData,this.currentVersionId,{}),Object.keys(e).forEach((function(r){var a=e[r];Array.isArray(a)&&a.forEach((function(e){var a=e.partsName||e.parameterType||"其他",n=e.parameterName||"",i="/"===a?r:a;t.versionData[t.currentVersionId][i]||t.$set(t.versionData[t.currentVersionId],i,[]);var o=t.versionData[t.currentVersionId][i].findIndex((function(t){return e.id&&t.id?t.id===e.id:t.parameterName===n&&t.subsystemName===r})),s=e.resPersonId||e.responsiblePersonId||e.filledBy||"",l="",c="",u="";e.filler&&e.filler.id?(l=e.filler.id,c=e.filler.id,u=e.filler.username||""):(l=e.filledBy||e.responsiblePersonId||"",l&&(c=l));var d=(e.department||"平台部").replace(/·/g,"-"),p=e.owner||e.responsiblePerson||e.responsiblePersonName||"",h=s,f=t.getParamDraftKey({id:e.id,subsystemName:r,parameterName:n}),m=t.isDispatchMode?t.dispatchParamDraftCache[f]:null;if(t.responsiblePersons&&t.responsiblePersons.length>0&&(!m||!m.owner&&!m.resPersonId)){var g=t.responsiblePersons.find((function(e){return t.isResponsiblePersonProjectMatch(e)&&t.isResponsiblePersonSubsystemDeptMatch(e,r,d)}));g&&(p=g.userName||"",h=g.userId||g.id||"")}var v={parameterName:n,partsName:a,parameterValue:void 0!==e.parameterValue&&null!==e.parameterValue&&""!==e.parameterValue?e.parameterValue:void 0!==e.value&&null!==e.value&&""!==e.value?e.value:void 0!==e.minorVersion&&null!==e.minorVersion&&""!==e.minorVersion?e.minorVersion:"",parameterSource:e.parameterSource||"",unit:e.unit||"-",department:d,owner:p,subsystemName:r,id:e.id,parameterId:e.parameterId,engineModelId:e.engineModelId,majorVersion:e.majorVersion,minorVersion:e.minorVersion,versionStatus:e.versionStatus,version:t.currentVersionId,resPersonId:h,filledBy:l,filledByUserId:c,filledByName:u,isDistributedRes:e.isDistributedRes||0,isDistributedFilled:e.isDistributedFilled||0},y=t.applyDispatchParamDraft(v);if(e.filler&&e.filler.id&&y.filledByUserId){var b=y.id||"".concat(y.subsystemName,"-").concat(y.parameterName),_={userId:y.filledByUserId,username:y.filledByName||u||e.filler.username||"",userNumber:e.filler.userNumber||e.filler.userId||y.filledByUserId};t.restoreFillerUserOption(b,_)}o>=0?t.$set(t.versionData[t.currentVersionId][i],o,y):t.versionData[t.currentVersionId][i].push(y)}))})),console.log("处理后的数据:",this.versionData[this.currentVersionId])):console.warn("processDetailData: 数据格式不正确",e)})),Pr(mr,"handleInitiateApproval",(function(){var e=this;if(this.shouldShowResendButton){var t;this.isResendMode=!0;var r=this.flowId||(null===(t=this.detail)||void 0===t?void 0:t.flowId)||"",a=Mr(Mr({},et.GET_DATA_APPROVAL_USERS),{},{params:{templateId:r},disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){t&&t.data?(e.resendApprovalData=Mr({},t.data),console.log("获取审批流程信息:",t,e.resendApprovalData)):(console.warn("获取审批流程信息: resp.data 为空",t),e.resendApprovalData={nodeList:[],processTitle:"",description:""}),e.$nextTick((function(){e.getApprovalChange()}))})).asyncErrorCatch((function(t){console.error("获取审批流程信息失败:",t),e.isResendMode=!1,e.resendApprovalData=null,e.getApprovalChange(),e.$message.warning("获取原审批流程信息失败,将使用空的人员列表")}))}else{var n,i;this.isResendMode=!1,this.resendApprovalData=null,this.isApprovalMode=!0;var o=(null===(n=this.detail)||void 0===n?void 0:n.modelName)||"产品型号",s=this.wholeEngineParamsData[Er]||[],l=s.find((function(e){return"状态代号"===e.parameterName||"产品代号"===e.parameterName})),c=(null===l||void 0===l?void 0:l.parameterValue)||(null===(i=this.detail)||void 0===i?void 0:i.productNumber)||"状态代号";console.log("statusCode",c,l),this.approvalFormData={processTitle:"".concat(o,"-").concat(c,"发起审批"),description:""},this.approvalChangeData=[],this.getApprovalChange(),this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"会签",required:!1,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}]}})),Pr(mr,"getApprovalChange",(function(){var e=this,t=Mr(Mr({},et.CHANGE_ENGINE_DATA),{},{params:{modelID:this.detail.id,userID:de()},disableSuccessMsg:!0});return this.$request(t).asyncThen((function(t){if(console.log("审批变更数据:",t),t&&t.data?Array.isArray(t.data)?e.approvalChangeData=t.data:t.data.result&&Array.isArray(t.data.result)?e.approvalChangeData=t.data.result:t.data.data&&Array.isArray(t.data.data)?e.approvalChangeData=t.data.data:e.approvalChangeData=[]:e.approvalChangeData=[],e.isResendMode&&e.resendApprovalData){e.isApprovalMode=!0;var r=Mr({},e.resendApprovalData);e.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"会签",required:!1,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],e.$nextTick((function(){e.fillResendApprovalData(r),e.originalApprovalWorkflowSteps=JSON.parse(JSON.stringify(e.approvalWorkflowSteps)),e.originalProcessTitle=e.approvalFormData.processTitle||"",e.isResendMode=!1,e.resendApprovalData={nodeList:[],processTitle:"",description:""}}))}else{var a,n;e.isApprovalMode=!0;var i=(null===(a=e.detail)||void 0===a?void 0:a.modelName)||"产品型号",o=e.wholeEngineParamsData[Er]||[],s=o.find((function(e){return"状态代号"===e.parameterName||"产品代号"===e.parameterName})),l=(null===s||void 0===s?void 0:s.parameterValue)||(null===(n=e.detail)||void 0===n?void 0:n.productNumber)||"状态代号";console.log("statusCode",l,s),e.approvalFormData={processTitle:"".concat(i,"-").concat(l,"发起审批"),description:""},e.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"会签",required:!1,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}]}})).asyncErrorCatch((function(t){console.error("获取审批变更失败:",t),e.approvalChangeData=[],e.$message({type:"error",message:"获取审批变更数据失败"})}))})),Pr(mr,"getResendApprovalChange",(function(){var e={url:et.CHANGE_ENGINE_DATA.url,method:et.CHANGE_ENGINE_DATA.method,params:{modelID:this.detail.id,userID:de()},disableSuccessMsg:!0};return this.$axios(e).then((function(e){return console.log("重新发起审批变更数据:",e),e})).catch((function(e){return console.error("获取重新发起审批变更数据失败:",e),Promise.resolve()}))})),Pr(mr,"handleApprovalCancel",(function(){this.isApprovalMode=!1,this.isResendMode=!1,this.resendApprovalData={nodeList:[],processTitle:"",description:""},this.originalApprovalWorkflowSteps=null,this.originalProcessTitle="",this.approvalFormData={processTitle:"",description:""},this.approvalChangeData=[],this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"会签",required:!1,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}]})),Pr(mr,"canResendApproval",(function(){var e,t=this,r=(null===(e=this.detail)||void 0===e?void 0:e.flowId)||this.flowId;if(r){var a=Mr(Mr({},et.CHECK_DATA_CAN_RETURN),{},{params:{flowId:r},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){console.log("检查是否可以直送:",e),t.canResend=e.data||!1})).asyncErrorCatch((function(e){console.error("获取是否可以直送失败:",e),t.canResend=!1}))}else this.canResend=!1})),Pr(mr,"handleReject",(function(){var e,t,r=this,a=this.todoId||(null===(e=this.detail)||void 0===e?void 0:e.todoId)||(null===(t=this.detail)||void 0===t?void 0:t.id);a?this.$confirm("确定要退回此任务吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r.rejecting=!0;var e={todoId:a},t=de();r.isDispatchMode&&"update_param"===r.dispatchType?e.responsiblePersonId=r.responsiblePersonId||t:r.isDispatchMode&&"todo"===r.dispatchType?e.resPersonId=t:r.isFillerTodoEntry&&(e.fillerId=r.filledBy||t);var n=Mr(Mr({},et.REJECT_TODO_TASK),{},{params:e,disableSuccessMsg:!0});r.$request(n).asyncThen((function(e){r.$message({message:"退回成功",type:"success"}),r.rejecting=!1,r.$emit("refresh"),r.handleBack()})).asyncErrorCatch((function(e){console.error("退回失败:",e),r.$message({message:e.message||"退回失败,请重试",type:"error"}),r.rejecting=!1}))})).catch((function(){})):this.$message.error("缺少待办ID,无法执行退回操作")})),Pr(mr,"executeResend",(function(){var e=Mr(Mr({},et.RESEND_DATA_APPROVAL),{},{params:{flowId:this.flowId,userId:de()},disableSuccessMsg:!0});return this.$request(e)})),Pr(mr,"handleResend",(function(){var e=this;this.detail&&this.detail.id?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0,e.getResendApprovalChange().then((function(){return e.executeResend()})).catch((function(){return e.executeResend()})).asyncThen((function(t){e.$message({message:"直送成功",type:"success"}),e.$emit("refresh"),e.resending=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1}))})).catch((function(){})):this.$message.error("缺少审批ID,无法执行直送操作")})),Pr(mr,"fillResendApprovalData",(function(e){var t=this;if(console.log("fillResendApprovalData 接收到的数据:",e),e){var r=e.nodeList||[];console.log("提取的 nodeList:",r);var a=e&&e.data?e.data:e;if(a&&!Array.isArray(a)){if(a.progressTitle||a.processTitle)this.approvalFormData.processTitle=a.progressTitle||a.processTitle||"";else{var n,i,o=(null===(n=this.detail)||void 0===n?void 0:n.modelName)||"产品型号",s=(null===(i=this.detail)||void 0===i?void 0:i.productNumber)||"状态代号";this.approvalFormData.processTitle="".concat(o,"-").concat(s,"发起审批")}(a.explanation||a.description)&&(this.approvalFormData.description=a.explanation||a.description||"")}else{var l,c,u=(null===(l=this.detail)||void 0===l?void 0:l.modelName)||"产品型号",d=(null===(c=this.detail)||void 0===c?void 0:c.productNumber)||"状态代号";this.approvalFormData.processTitle="".concat(u,"-").concat(d,"发起审批")}r&&r.length>0?r.forEach((function(e){var r=e.nodeName||e.node||"";if(console.log("处理节点:",r,e),r){var a=t.approvalWorkflowSteps.find((function(e){return e.name===r}));if(a){var n=e.assignees||[];if(console.log("节点 assignees:",n),Array.isArray(n)&&0!==n.length){var i=n.map((function(e){var t=e.id||e.userId||"";return{userId:t,username:e.username||e.userName||"",userNumber:e.userNumber||e.account||t}})).filter((function(e){return e.userId}));console.log("处理后的 handlerInfos:",i),i.length>0&&(t.$set(a,"handlers",i.map((function(e){return e.userId})).filter(Boolean)),t.$set(a,"options",i.map((function(e){return{userId:e.userId,username:e.username||"",userNumber:e.userNumber||""}})).filter((function(e){return e.userId}))),console.log("更新后的 step:",a))}}else console.warn("未找到匹配的审批环节:",r)}})):console.warn("nodeList 为空或不是数组")}else console.warn("fillResendApprovalData: 数据为空")})),Pr(mr,"handleApprovalFormSubmit",(function(){var e,t,r=this,a=this.approvalWorkflowSteps.filter((function(e){return e.required&&(!e.handlers||0===e.handlers.length)}));if(a.length>0){var n=a.map((function(e){return e.name})).join("、");this.$message({type:"warning",message:'请为必填环节"'.concat(n,'"选择处理人')})}else{var i=(this.approvalFormData.processTitle||"").trim();if(i){var o=[],s=this.versionData[this.currentVersionId]||{};console.log(this.currentEngineModelID,"this.currentEngineModelID",this.currentData),Object.keys(s).forEach((function(e){var t=s[e]||[];t.forEach((function(t){var a={id:t.id||"",parameterId:t.parameterId||"",engineModelId:t.engineModelId||r.currentEngineModelID,subsystemName:t.subsystemName||"",partsName:t.partsName||e,parameterName:t.parameterName||"",parameterValue:t.parameterValue||"",responsiblePersonId:t.resPersonId||t.responsiblePersonId||"",department:t.department||"平台部",filledBy:t.filledBy||"",createdBy:de(),majorVersion:t.majorVersion||0,minorVersion:t.minorVersion||"",versionStatus:t.versionStatus||0,approvalId:"",isDelete:"",beforeParamId:"",operation:t.operation||"UPDATE",creationDate:"",lastUpdatedBy:"",lastUpdateDate:""};o.push(a)}))}));var l=this.shouldShowResendButton&&(this.flowId||(null===(e=this.detail)||void 0===e?void 0:e.flowId)),c=this.flowId||(null===(t=this.detail)||void 0===t?void 0:t.flowId)||"";if(l){var u=this.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),d=!1;if(this.originalProcessTitle!==i&&(d=!0),!d&&this.originalApprovalWorkflowSteps){var p=this.originalApprovalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers?wr(e.handlers).sort():[],nodeOrder:t+1}})),h=u.map((function(e){return Mr(Mr({},e),{},{assignees:e.assignees?wr(e.assignees).sort():[]})}));if(p.length!==h.length)d=!0;else for(var f=0;f0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]})),Pr(mr,"handleHandlerChange",(function(e,t){})),Pr(mr,"isZQOrZZPowerPlatformDept",(function(e){if(!e)return!1;var t=String(e).replace(/·/g,"-"),r=this.formatDepartmentDisplay(t),a=["中轻","中重动力平台","平台部","中轻动力平台部","中重动力平台部"];return a.some((function(e){return r===e||t===e||t.endsWith("-".concat(e))}))})),Pr(mr,"findDepartmentIdByName",(function(e){if(!e)return"";var t=String(e).replace(/·/g,"-"),r=function e(r,a){if(!Array.isArray(r))return"";var n,i=Tr(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=o.name||o.label||"";if(s===a||s===t)return o.id||"";if(o.children&&o.children.length>0){var l=e(o.children,a);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return""},a=r(this.departmentTreeData,t);if(a)return a;var n=this.formatDepartmentDisplay(t),i=(this.departmentList||[]).find((function(r){return r.name===t||r.name===e||r.name===n}));return i&&i.id||""})),Pr(mr,"resolveDepartmentId",(function(e){if(!e)return"";if(this.isZQOrZZPowerPlatformDept(e)){var t=this.findDepartmentIdByName("中轻动力平台部");if(t)return t}return this.findDepartmentIdByName(e)})),Pr(mr,"formatDepartmentDisplay",(function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t})),Pr(mr,"formatSectionTitle",(function(e,t){if(!t||!Array.isArray(t)||0===t.length)return e;var r=t[0],a=r.subsystemName||"",n=r.partsName||"";return n&&"/"!==n?"".concat(a,"-").concat(n):a||e})),mr)},Fr=Rr,jr=(r("0461"),d(Fr,Jt,Qt,!1,null,null,null)),Vr=jr.exports,$r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("x-modal",{attrs:{"append-to-body":!0,"destroy-on-close":!0,modalVisible:e.visible,"wrapper-class":"add-engine-model-modal",title:e.modalTitle,width:850},on:{"update:modalVisible":function(t){e.visible=t},"update:modal-visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.closeModal}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.submitting},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)]},proxy:!0}])},[r("el-form",{ref:"addForm",staticClass:"add-engine-form",attrs:{model:e.formData,rules:e.formRules,"label-width":"140px"}},[r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"产品型号",prop:"modelName"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.modelName,callback:function(t){e.$set(e.formData,"modelName",t)},expression:"formData.modelName"}})],1),r("el-form-item",{attrs:{label:"竞品"===e.ycOrOth?"产品编号":"状态代号",prop:"productNumber"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.productNumber,callback:function(t){e.$set(e.formData,"productNumber",t)},expression:"formData.productNumber"}})],1)],1),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"板块",prop:"plate"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.plate,callback:function(t){e.$set(e.formData,"plate",t)},expression:"formData.plate"}})],1),r("el-form-item",{attrs:{label:"平台",prop:"platform"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.platform,callback:function(t){e.$set(e.formData,"platform",t)},expression:"formData.platform"}})],1)],1),"竞品"===e.ycOrOth?r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"厂家名称(全称)",prop:"manufacturerName"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.manufacturerName,callback:function(t){e.$set(e.formData,"manufacturerName",t)},expression:"formData.manufacturerName"}})],1),r("el-form-item",{attrs:{label:"厂家简称",prop:"manufacturerAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.manufacturerAbbreviation,callback:function(t){e.$set(e.formData,"manufacturerAbbreviation",t)},expression:"formData.manufacturerAbbreviation"}})],1)],1):e._e(),"竞品"===e.ycOrOth?r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"品牌",prop:"brand"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.brand,callback:function(t){e.$set(e.formData,"brand",t)},expression:"formData.brand"}})],1),r("el-form-item",{attrs:{label:"生产日期",prop:"productionDate"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"请选择生产日期","value-format":"yyyy-MM-dd"},model:{value:e.formData.productionDate,callback:function(t){e.$set(e.formData,"productionDate",t)},expression:"formData.productionDate"}})],1)],1):e._e(),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"细分市场",prop:"marketSegment"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.marketSegment,callback:function(t){e.$set(e.formData,"marketSegment",t)},expression:"formData.marketSegment"}})],1),r("el-form-item",{attrs:{label:"系列",prop:"series"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.series,callback:function(t){e.$set(e.formData,"series",t)},expression:"formData.series"}})],1)],1),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"项目名称",prop:"projectName"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.projectName,callback:function(t){e.$set(e.formData,"projectName",t)},expression:"formData.projectName"}})],1),r("el-form-item",{attrs:{label:"项目编号",prop:"projectNumber"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.projectNumber,callback:function(t){e.$set(e.formData,"projectNumber",t)},expression:"formData.projectNumber"}})],1)],1),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"排放",prop:"emission"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.emission,callback:function(t){e.$set(e.formData,"emission",t)},expression:"formData.emission"}})],1),r("el-form-item",{attrs:{label:"燃烧类型",prop:"burnType"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.burnType,callback:function(t){e.$set(e.formData,"burnType",t)},expression:"formData.burnType"}})],1)],1),r("div",{staticClass:"form-row"},[r("el-form-item",{attrs:{label:"排量",prop:"engineCapacity"}},[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:e.formData.engineCapacity,callback:function(t){e.$set(e.formData,"engineCapacity",t)},expression:"formData.engineCapacity"}})],1),r("el-form-item",{attrs:{label:"任务分发状态",prop:"dispatchStatus"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"请选择"},model:{value:e.formData.distributeStatus,callback:function(t){e.$set(e.formData,"distributeStatus",t)},expression:"formData.distributeStatus"}},e._l(e.dispatchStatusOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1)],1)],1)])],1)},Br=[];function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Ur(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"竞品";this.isEditMode=!1,this.editingModelId=null,this.ycOrOth=t,this.visible=!0,this.resetForm(t),this.$nextTick((function(){e.$refs.addForm&&e.$refs.addForm.clearValidate()}))},showModalForEdit:function(e,t){var r=this;if(t&&null!=t.id){this.isEditMode=!0,this.editingModelId=t.id,this.ycOrOth=e,this.visible=!0;var a=t||{};this.formData={loginUserId:de(),ycOrOth:e,modelName:null!=a.modelName?String(a.modelName):"",productNumber:null!=a.productNumber?String(a.productNumber):"",plate:null!=a.plate?String(a.plate):"",platform:null!=a.platform?String(a.platform):"",series:null!=a.series?String(a.series):"",marketSegment:null!=a.marketSegment?String(a.marketSegment):"",projectName:null!=a.projectName?String(a.projectName):"",projectNumber:null!=a.projectNumber?String(a.projectNumber):"",distributeStatus:null!=a.distributeStatus?String(a.distributeStatus):"未分发",emission:null!=a.emission?String(a.emission):"",burnType:null!=a.burnType?String(a.burnType):"",engineCapacity:null!=a.engineCapacity?String(a.engineCapacity):"",manufacturerName:null!=a.manufacturerName?String(a.manufacturerName):"",manufacturerAbbreviation:null!=a.manufacturerAbbreviation?String(a.manufacturerAbbreviation):"",brand:null!=a.brand?String(a.brand):"",productionDate:null!=a.productionDate?String(a.productionDate):""},this.$nextTick((function(){r.$refs.addForm&&r.$refs.addForm.clearValidate()}))}else this.$message({message:"无法编辑:缺少机型标识",type:"warning"})},closeModal:function(){this.visible=!1,this.isEditMode=!1,this.editingModelId=null,this.ycOrOth="竞品",this.resetForm("竞品")},resetForm:function(e){this.formData={loginUserId:de(),ycOrOth:e,modelName:"",productNumber:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",distributeStatus:"未分发",emission:"",burnType:"",engineCapacity:"",manufacturerName:"",manufacturerAbbreviation:"",brand:"",productionDate:""}},handleSubmit:function(){var e=this;this.$refs.addForm.validate((function(t){if(t){e.submitting=!0;var r=Ur({},e.formData);Object.keys(r).forEach((function(e){null==r[e]&&(r[e]="")}));var a=e.isEditMode&&null!=e.editingModelId;a&&(r.id=e.editingModelId);var n=a?et.UPDATE_ENGINE_MODEL:et.ADD_ENGINE_MODEL,i=Ur(Ur({},n),{},{params:Ur({},r),disableSuccessMsg:!0});e.$request(i).asyncThen((function(t){e.$message({message:a?"保存成功":"提交成功",type:"success"}),e.closeModal(),e.$emit("success")})).asyncErrorCatch((function(t){console.error(a?"更新失败:":"添加失败:",t),e.$message({message:a?"更新失败":"添加失败",type:"error"})})).finally((function(){e.submitting=!1}))}}))}}},Xr=Yr,Kr=(r("2eb2"),d(Xr,$r,Br,!1,null,null,null)),Zr=Kr.exports;function Jr(e){return Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jr(e)}function Qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function ea(e){for(var t=1;t0?r("div",{staticClass:"floating-panel",class:{expanded:e.floatingPanelExpanded}},[r("div",{staticClass:"floating-panel-toggle",on:{click:e.toggleFloatingPanel}},[r("i",{class:e.floatingPanelExpanded?"el-icon-close":"el-icon-menu"})]),e.floatingPanelExpanded?r("div",{staticClass:"floating-panel-content"},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleAddChart}},[r("i",{staticClass:"el-icon-plus"}),e._v(" 新增 ")]),r("el-button",{attrs:{size:"small"},on:{click:e.handleClearAllCharts}},[r("i",{staticClass:"el-icon-delete"}),e._v(" 清空 ")]),r("el-button",{attrs:{size:"small"},on:{click:e.scrollToTop}},[r("i",{staticClass:"el-icon-top"}),e._v(" 回到顶部 ")])],1):e._e()]):e._e(),0==e.chartList.length?r("div",{staticClass:"chart-area empty-chart-area"}):e._e(),e._l(e.chartList,(function(t,a){return r("div",{key:t.id,staticClass:"chart-area"},[r("div",{staticClass:"chart-header"},[r("div",{staticClass:"chart-title-section"},[t.isEditingTitle?r("el-input",{ref:"titleInput-"+a,refInFor:!0,staticClass:"title-input",on:{blur:function(e){t.isEditingTitle=!1}},nativeOn:{keyup:function(r){if(!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter"))return null;t.isEditingTitle=!1}},model:{value:t.title,callback:function(r){e.$set(t,"title",r)},expression:"chart.title"}}):r("span",{staticClass:"chart-title",on:{click:function(t){return e.startEditTitle(a)}}},[e._v(e._s(t.title))]),r("i",{staticClass:"el-icon-edit title-edit-icon",on:{click:function(t){return e.startEditTitle(a)}}})],1),r("div",{staticClass:"chart-header-right"},[r("div",{staticClass:"download-button",on:{click:function(t){return e.handleDownloadChart(a)}}},[r("i",{staticClass:"el-icon-download"}),r("span",[e._v("下载")])]),r("div",{staticClass:"delete-button",on:{click:function(t){return e.handleDeleteChart(a)}}},[r("i",{staticClass:"el-icon-delete"}),r("span",[e._v("删除")])])])]),r("div",{staticClass:"chart-config"},[r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("图表类型:")]),r("el-select",{on:{change:function(t){return e.updateChart(a)}},model:{value:t.chartType,callback:function(r){e.$set(t,"chartType",r)},expression:"chart.chartType"}},[r("el-option",{attrs:{label:"散点图",value:"scatter"}}),r("el-option",{attrs:{label:"折线图",value:"line"}}),r("el-option",{attrs:{label:"柱状图",value:"bar"}})],1)],1),r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("X轴:")]),r("el-select",{on:{change:function(t){return e.updateChart(a)}},model:{value:t.xAxis,callback:function(r){e.$set(t,"xAxis",r)},expression:"chart.xAxis"}},e._l(e.xAxisOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("div",{staticClass:"config-item canshu"},[r("span",{staticClass:"config-label"},[e._v("Y轴(参数):")]),r("el-select",{key:"y-axis-param-"+t.id,staticClass:"y-axis-param-select",attrs:{filterable:"",multiple:"","collapse-tags":"",clearable:"",placeholder:"请选择或搜索参数","filter-method":e.handleFilterYAxisParam},on:{change:function(t){return e.updateChart(a)}},model:{value:t.yAxisParam,callback:function(r){e.$set(t,"yAxisParam",r)},expression:"chart.yAxisParam"}},e._l(e.filteredYAxisParamOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("Y轴(公式):")]),r("el-select",{attrs:{clearable:""},on:{change:function(t){return e.handleFormulaSelectChange(a)}},model:{value:t.yAxisFormula,callback:function(r){e.$set(t,"yAxisFormula",r)},expression:"chart.yAxisFormula"}},e._l(e.savedFormulas,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleEditFormula(a)}}},[e._v(" 添加/修改公式 ")])],1),"pie"!==t.chartType?r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("Y轴范围:")]),r("el-input",{staticClass:"y-axis-range-input",attrs:{placeholder:"最小值"},on:{blur:function(t){return e.updateChart(a)}},model:{value:t.yAxisMin,callback:function(r){e.$set(t,"yAxisMin",e._n(r))},expression:"chart.yAxisMin"}}),r("span",{staticClass:"range-separator"},[e._v("~")]),r("el-input",{staticClass:"y-axis-range-input",attrs:{placeholder:"最大值"},on:{blur:function(t){return e.updateChart(a)}},model:{value:t.yAxisMax,callback:function(r){e.$set(t,"yAxisMax",e._n(r))},expression:"chart.yAxisMax"}})],1):e._e(),"pie"!==t.chartType?r("div",{staticClass:"config-item"},[r("span",{staticClass:"config-label"},[e._v("坐标点:")]),r("el-input",{staticClass:"y-axis-range-input",attrs:{placeholder:e.getCustomPointXPlaceholder(t)},on:{blur:function(t){return e.updateChart(a)}},model:{value:t.customPointX,callback:function(r){e.$set(t,"customPointX",e._n(r))},expression:"chart.customPointX"}}),r("span",{staticClass:"range-separator"},[e._v(",")]),r("el-input",{staticClass:"y-axis-range-input",attrs:{placeholder:"Y坐标(百分比)"},on:{blur:function(t){return e.updateChart(a)}},model:{value:t.customPointY,callback:function(r){e.$set(t,"customPointY",e._n(r))},expression:"chart.customPointY"}})],1):e._e()]),r("div",{staticClass:"chart-wrapper"},[r("div",{ref:"chartContainer-"+a,refInFor:!0,staticClass:"chart-container",style:{height:t.chartHeight+"px"}}),r("div",{staticClass:"chart-resize-handle",on:{mousedown:function(t){return e.startResize(a,t)}}})])])})),r("el-dialog",{attrs:{title:"选择机型",visible:e.addModelDialogVisible,width:"900px","append-to-body":""},on:{"update:visible":function(t){e.addModelDialogVisible=t},close:e.handleAddModelDialogClose}},[r("div",{staticClass:"model-select-dialog"},[r("el-transfer",{staticStyle:{"text-align":"left"},attrs:{data:e.transferData,titles:["可选机型","已选机型"],"button-texts":["移除","添加"],format:{noChecked:"${total}",hasChecked:"${checked}/${total}"},filterable:"","filter-method":e.filterTransferMethod,"filter-placeholder":"请输入搜索关键词"},on:{change:e.handleTransferChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.option;return r("span",{staticClass:"transfer-item"},[r("span",{staticClass:"transfer-item-label"},[e._v(e._s(a.label))])])}}]),model:{value:e.transferSelectedKeys,callback:function(t){e.transferSelectedKeys=t},expression:"transferSelectedKeys"}})],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddModelDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.loadingModelDetail},on:{click:e.handleConfirmAddModel}},[e._v(" 确定 ")])],1)]),r("el-dialog",{staticClass:"formula-dialog",attrs:{title:e.currentFormulaId?"修改公式":"添加公式",visible:e.formulaDialogVisible,width:"800px","close-on-click-modal":!0,modal:!1},on:{"update:visible":function(t){e.formulaDialogVisible=t}}},[r("div",{staticClass:"formula-dialog-content"},[r("el-form",{attrs:{model:e.formulaFormData,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"公式名称:",required:""}},[r("el-input",{attrs:{placeholder:"请输入公式名称",maxlength:"50","show-word-limit":""},model:{value:e.formulaFormData.name,callback:function(t){e.$set(e.formulaFormData,"name",t)},expression:"formulaFormData.name"}})],1),r("el-form-item",{attrs:{label:"选择参数:",required:""}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择参数(最多5个)",multiple:"",filterable:"","collapse-tags":"","max-collapse-tags":3},on:{change:e.handleSelectedParamsChange},model:{value:e.formulaFormData.selectedParams,callback:function(t){e.$set(e.formulaFormData,"selectedParams",t)},expression:"formulaFormData.selectedParams"}},e._l(e.yAxisParamOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e.formulaFormData.availableParams.length>0?r("el-form-item",{attrs:{label:"已选参数:"}},[r("div",{staticClass:"selected-params-display"},e._l(e.formulaFormData.availableParams,(function(t){return r("div",{key:t.value,staticClass:"selected-param-tag"},[e._v(" "+e._s(t.label)+" ")])})),0)]):e._e(),r("el-form-item",{attrs:{label:"公式构建:"}},[r("div",{staticClass:"formula-builder"},[r("div",{staticClass:"builder-help"},[r("el-popover",{attrs:{placement:"top",width:"300",trigger:"click","popper-class":"formula-help-popover"}},[r("div",{staticClass:"help-content"},[r("p",[e._v("选中的参数或者也通过手动输入数字,通过拖动到预览区域形成公式")])]),r("el-button",{staticClass:"help-button",attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[r("i",{staticClass:"el-icon-question"}),e._v(" 帮助 ")])],1)],1),r("div",{staticClass:"draggable-items"},[r("div",{staticClass:"items-section"},[r("div",{staticClass:"section-title"},[e._v(" 参数 "),r("span",{staticClass:"section-tip"},[e._v("(可重复使用)")])]),r("div",{staticClass:"items-container"},[e._l(e.formulaFormData.availableParams,(function(t){return r("div",{key:t.value,staticClass:"draggable-item param-item",attrs:{"data-type":"param","data-value":t.value,"data-label":t.label,draggable:"true"},on:{dragstart:function(r){return e.handleDragStart(r,"param",t.value,t.label)},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" "+e._s(t.label)+" ")])})),0===e.formulaFormData.availableParams.length?r("div",{staticClass:"empty-tip"},[e._v(" 请先选择参数 ")]):e._e()],2)]),r("div",{staticClass:"items-section"},[r("div",{staticClass:"section-title"},[e._v("运算符")]),r("div",{staticClass:"items-container"},e._l(e.formulaOperators,(function(t){return r("div",{key:t.value,staticClass:"draggable-item operator-item",attrs:{"data-type":"operator","data-value":t.value,"data-label":t.label,draggable:"true"},on:{dragstart:function(r){return e.handleDragStart(r,"operator",t.value,t.label)},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" "+e._s(t.label)+" ")])})),0)]),r("div",{staticClass:"items-section"},[r("div",{staticClass:"section-title"},[e._v("括号")]),r("div",{staticClass:"items-container"},[r("div",{staticClass:"draggable-item bracket-item",attrs:{"data-type":"bracket","data-value":"(","data-label":"(",draggable:"true"},on:{dragstart:function(t){return e.handleDragStart(t,"bracket","(","(")},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" ( ")]),r("div",{staticClass:"draggable-item bracket-item",attrs:{"data-type":"bracket","data-value":")","data-label":")",draggable:"true"},on:{dragstart:function(t){e.handleDragStart(t,"bracket",")",")")},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" ) ")])])]),r("div",{staticClass:"items-section"},[r("div",{staticClass:"items-container number-section-container"},[r("div",{staticClass:"number-input-row"},[r("span",{staticClass:"number-label"},[e._v("数字:")]),r("el-input-number",{staticStyle:{width:"120px"},attrs:{precision:2,step:1,min:0,size:"small",placeholder:"输入数字"},model:{value:e.formulaFormData.inputNumber,callback:function(t){e.$set(e.formulaFormData,"inputNumber",t)},expression:"formulaFormData.inputNumber"}}),r("el-button",{attrs:{type:"primary",size:"small",disabled:null===e.formulaFormData.inputNumber||""===e.formulaFormData.inputNumber},on:{click:e.addNumberToBuilder}},[e._v(" 添加到构建区 ")])],1),e.formulaFormData.recentNumbers.length>0?r("div",{staticClass:"recent-numbers"},e._l(e.formulaFormData.recentNumbers,(function(t,a){return r("div",{key:a,staticClass:"draggable-item number-item",attrs:{"data-type":"number","data-value":String(t),"data-label":String(t),draggable:"true"},on:{dragstart:function(r){e.handleDragStart(r,"number",String(t),String(t))},dragend:function(t){return e.handleDragEnd(t)}}},[e._v(" "+e._s(t)+" ")])})),0):e._e()])])]),r("div",{staticClass:"formula-preview-area"},[r("div",{staticClass:"preview-title"},[e._v("公式预览")]),r("div",{staticClass:"preview-container",class:{"drag-over":e.isDraggingOver},on:{drop:e.handleDrop,dragover:function(e){e.preventDefault()},dragenter:function(t){return t.preventDefault(),e.handleDragEnter.apply(null,arguments)},dragleave:e.handleDragLeave}},[0===e.formulaFormData.formulaItems.length?r("div",{staticClass:"empty-preview"},[e._v(" 请将参数、运算符、括号或数字拖拽到此处构建公式 ")]):e._e(),e._l(e.formulaFormData.formulaItems,(function(t,a){return r("div",{key:a,staticClass:"preview-item",class:{"is-param":"param"===t.type,"is-operator":"operator"===t.type,"is-bracket":"bracket"===t.type,"is-number":"number"===t.type,"is-dragging":e.draggingPreviewIndex===a,"drag-over":e.dragOverPreviewIndex===a&&-1!==e.draggingPreviewIndex},attrs:{draggable:"true","data-index":a},on:{dragstart:function(t){return e.handlePreviewDragStart(t,a)},dragover:function(t){return t.preventDefault(),e.handlePreviewDragOver(t,a)},dragenter:function(t){return t.preventDefault(),e.handlePreviewDragEnter(t,a)},dragleave:function(t){return e.handlePreviewDragLeave(t)},drop:function(t){return e.handlePreviewDrop(t,a)},dragend:function(t){return e.handlePreviewDragEnd(t)}}},[r("span",{staticClass:"item-content"},[e._v(e._s(t.label))]),r("i",{staticClass:"el-icon-close remove-btn",on:{click:function(t){return e.removeFormulaItem(a)}}})])}))],2),r("div",{staticClass:"preview-actions"},[r("el-button",{attrs:{size:"small"},on:{click:e.clearFormula}},[e._v("清空")])],1)])])])],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleFormulaDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.isFormulaValid},on:{click:e.handleSaveFormula}},[e._v(" 确定 ")])],1)]),r("el-dialog",{attrs:{title:"新增常用",visible:e.addFavoriteDialogVisible,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.addFavoriteDialogVisible=t},close:e.handleAddFavoriteDialogClose}},[r("el-form",{ref:"addFavoriteForm",attrs:{model:e.addFavoriteFormData,rules:e.addFavoriteFormRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"常用名称",prop:"commonName"}},[r("el-input",{attrs:{placeholder:"请输入常用名称",maxlength:"50","show-word-limit":""},model:{value:e.addFavoriteFormData.commonName,callback:function(t){e.$set(e.addFavoriteFormData,"commonName",t)},expression:"addFavoriteFormData.commonName"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddFavoriteDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.savingFavorite},on:{click:e.handleConfirmAddFavorite}},[e._v(" 确定 ")])],1)],1)],2),"analysis-report"===e.activeTab?r("AnalysisReport"):e._e()],1)},Da=[],Sa=function(e,t){return Sa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Sa(e,t)};function Ca(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Sa(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;Object.create;var Ta=r("eb30"),Ia=r("1ee1");function Oa(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Aa(e,t){return e[0]=t[0],e[1]=t[1],e}function Ma(e){return[e[0],e[1]]}function Pa(e,t,r){return e[0]=t,e[1]=r,e}function ka(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Na(e,t,r,a){return e[0]=t[0]+r[0]*a,e[1]=t[1]+r[1]*a,e}function Ea(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function La(e){return Math.sqrt(Ra(e))}function Ra(e){return e[0]*e[0]+e[1]*e[1]}function Fa(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function ja(e,t){var r=La(t);return 0===r?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Va(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var $a=Va;function Ba(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var za=Ba;function Ga(e,t,r,a){return e[0]=t[0]+a*(r[0]-t[0]),e[1]=t[1]+a*(r[1]-t[1]),e}function Ua(e,t,r){var a=t[0],n=t[1];return e[0]=r[0]*a+r[2]*n+r[4],e[1]=r[1]*a+r[3]*n+r[5],e}function Wa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ha(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var qa=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ya=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new qa(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,a=e.offsetY,n=r-this._x,i=a-this._y;this._x=r,this._y=a,t.drift(n,i,e),this.handler.dispatchToElement(new qa(t,e),"drag",e.event);var o=this.handler.findHover(r,a,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new qa(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new qa(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new qa(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new qa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Xa=Ya,Ka=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,r,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if("function"===typeof t&&(a=r,r=t,t=null),!r||!e)return this;var i=this._$eventProcessor;null!=t&&i&&i.normalizeQuery&&(t=i.normalizeQuery(t)),n[e]||(n[e]=[]);for(var o=0;o>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[c]+":0",a[1-l]+":auto",n[1-c]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function sn(e,t,r){for(var a=r?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,p=u.left,h=u.top;o.push(p,h),l=l&&i&&p===i[d]&&h===i[d+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=r?en(s,o):en(o,s))}function ln(e){return"CANVAS"===e.nodeName.toUpperCase()}var cn=/([&<>"'])/g,un={"&":"&","<":"<",">":">",'"':""","'":"'"};function dn(e){return null==e?"":(e+"").replace(cn,(function(e,t){return un[t]}))}var pn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hn=[],fn=Ta["a"].browser.firefox&&+Ta["a"].browser.version.split(".")[0]<39;function mn(e,t,r,a){return r=r||{},a?gn(e,t,r):fn&&null!=t.layerX&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):null!=t.offsetX?(r.zrX=t.offsetX,r.zrY=t.offsetY):gn(e,t,r),r}function gn(e,t,r){if(Ta["a"].domSupported&&e.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(ln(e)){var i=e.getBoundingClientRect();return r.zrX=a-i.left,void(r.zrY=n-i.top)}if(nn(hn,e,a,n))return r.zrX=hn[0],void(r.zrY=hn[1])}r.zrX=r.zrY=0}function vn(e){return e||window.event}function yn(e,t,r){if(t=vn(t),null!=t.zrX)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var i="touchend"!==a?t.targetTouches[0]:t.changedTouches[0];i&&mn(e,i,t,r)}else{mn(e,t,t,r);var o=bn(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&pn.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function bn(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,a=e.deltaY;if(null==r||null==a)return t;var n=0!==a?Math.abs(a):Math.abs(r),i=a>0?-1:a<0?1:r>0?-1:1;return 3*n*i}function _n(e,t,r,a){e.addEventListener(t,r,a)}function xn(e,t,r,a){e.removeEventListener(t,r,a)}var wn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Dn(e){return 2===e.which||3===e.which}var Sn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},i=0,o=a.length;i1&&a&&a.length>1){var i=Cn(a)/Cn(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Tn(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function On(){return[1,0,0,1,0,0]}function An(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Mn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Pn(e,t,r){var a=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=a,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function kn(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Nn(e,t,r,a){void 0===a&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(r),d=Math.cos(r);return e[0]=n*d+s*u,e[1]=-n*u+s*d,e[2]=i*d+l*u,e[3]=-i*u+d*l,e[4]=d*(o-a[0])+u*(c-a[1])+a[0],e[5]=d*(c-a[1])-u*(o-a[0])+a[1],e}function En(e,t,r){var a=r[0],n=r[1];return e[0]=t[0]*a,e[1]=t[1]*n,e[2]=t[2]*a,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*n,e}function Ln(e,t){var r=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*a;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-a*l,e[3]=r*l,e[4]=(a*s-o*n)*l,e[5]=(i*n-r*s)*l,e):null}function Rn(e){var t=On();return Mn(t,e),t}var Fn=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,r){e.x=t,e.y=r},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},e.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},e.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},e.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},e.lerp=function(e,t,r,a){var n=1-a;e.x=n*t.x+a*r.x,e.y=n*t.y+a*r.y},e}(),jn=Fn,Vn=Math.min,$n=Math.max,Bn=new jn,zn=new jn,Gn=new jn,Un=new jn,Wn=new jn,Hn=new jn,qn=function(){function e(e,t,r,a){r<0&&(e+=r,r=-r),a<0&&(t+=a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return e.prototype.union=function(e){var t=Vn(e.x,this.x),r=Vn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$n(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=$n(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,n=On();return kn(n,n,[-t.x,-t.y]),En(n,n,[r,a]),kn(n,n,[e.x,e.y]),n},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=t.x,c=t.x+t.width,u=t.y,d=t.y+t.height,p=!(if&&(f=b,mf&&(f=_,v=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,r,a){if(a){if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];return t.x=r.x*n+o,t.y=r.y*i+s,t.width=r.width*n,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Bn.x=Gn.x=r.x,Bn.y=Un.y=r.y,zn.x=Un.x=r.x+r.width,zn.y=Gn.y=r.y+r.height,Bn.transform(a),Un.transform(a),zn.transform(a),Gn.transform(a),t.x=Vn(Bn.x,zn.x,Gn.x,Un.x),t.y=Vn(Bn.y,zn.y,Gn.y,Un.y);var l=$n(Bn.x,zn.x,Gn.x,Un.x),c=$n(Bn.y,zn.y,Gn.y,Un.y);t.width=l-t.x,t.height=c-t.y}else t!==r&&e.copy(t,r)},e}(),Yn=qn,Xn="silent";function Kn(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Zn}}function Zn(){wn(this.event)}var Jn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Ca(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Za),Qn=function(){function e(e,t){this.x=e,this.y=t}return e}(),ei=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ti=new Yn(0,0,0,0),ri=function(e){function t(t,r,a,n,i){var o=e.call(this)||this;return o._hovered=new Qn(0,0),o.storage=t,o.painter=r,o.painterRoot=n,o._pointerSize=i,a=a||new Jn,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new Xa(o),o}return Ca(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Ia["k"](ei,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,r=e.zrY,a=ii(this,t,r),n=this._hovered,i=n.target;i&&!i.__zr&&(n=this.findHover(n.x,n.y),i=n.target);var o=this._hovered=a?new Qn(t,r):this.findHover(t,r),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),i&&s!==i&&this.dispatchToElement(n,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==i&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Qn(0,0)},t.prototype.dispatch=function(e,t){var r=this[e];r&&r.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,r){e=e||{};var a=e.target;if(!a||!a.silent){var n="on"+t,i=Kn(t,e,r);while(a)if(a[n]&&(i.cancelBubble=!!a[n].call(a,i)),a.trigger(t,i),a=a.__hostTarget?a.__hostTarget:a.parent,i.cancelBubble)break;i.cancelBubble||(this.trigger(t,i),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[n]&&e[n].call(e,i),e.trigger&&e.trigger(t,i)})))}},t.prototype.findHover=function(e,t,r){var a=this.storage.getDisplayList(),n=new Qn(e,t);if(ni(a,n,e,t,r),this._pointerSize&&!n.target){for(var i=[],o=this._pointerSize,s=o/2,l=new Yn(e-s,t-s,o,o),c=a.length-1;c>=0;c--){var u=a[c];u===r||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(ti.copy(u.getBoundingRect()),u.transform&&ti.applyTransform(u.transform),ti.intersect(l)&&i.push(u))}if(i.length)for(var d=4,p=Math.PI/12,h=2*Math.PI,f=0;f=0;i--){var o=e[i],s=void 0;if(o!==n&&!o.ignore&&(s=ai(o,r,a))&&(!t.topTarget&&(t.topTarget=o),s!==Xn)){t.target=o;break}}}function ii(e,t,r){var a=e.painter;return t<0||t>a.getWidth()||r<0||r>a.getHeight()}Ia["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){ri.prototype[e]=function(t){var r,a,n=t.zrX,i=t.zrY,o=ii(this,n,i);if("mouseup"===e&&o||(r=this.findHover(n,i),a=r.target),"mousedown"===e)this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if("mouseup"===e)this._upEl=a;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||$a(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,e,t)}}));var oi=ri,si=32,li=7;function ci(e){var t=0;while(e>=si)t|=1&e,e>>=1;return e+t}function ui(e,t,r,a){var n=t+1;if(n===r)return 1;if(a(e[n++],e[t])<0){while(n=0)n++;return n-t}function di(e,t,r){r--;while(t>>1,n(o,e[i])<0?l=i:s=i+1;var c=a-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=o}}function hi(e,t,r,a,n,i){var o=0,s=0,l=1;if(i(e,t[r+n])>0){s=a-n;while(l0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{s=n+1;while(ls&&(l=s);var c=o;o=n-l,l=n-c}o++;while(o>>1);i(e,t[r+u])>0?o=u+1:l=u}return l}function fi(e,t,r,a,n,i){var o=0,s=0,l=1;if(i(e,t[r+n])<0){s=n+1;while(ls&&(l=s);var c=o;o=n-l,l=n-c}else{s=a-n;while(l=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}o++;while(o>>1);i(e,t[r+u])<0?l=u:o=u+1}return l}function mi(e,t){var r,a,n=li,i=0,o=[];function s(e,t){r[i]=e,a[i]=t,i+=1}function l(){while(i>1){var e=i-2;if(e>=1&&a[e-1]<=a[e]+a[e+1]||e>=2&&a[e-2]<=a[e]+a[e-1])a[e-1]a[e+1])break;u(e)}}function c(){while(i>1){var e=i-2;e>0&&a[e-1]=li||h>=li);if(f)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),1===a){for(l=0;l=0;l--)e[h+l]=e[p+l];if(0===a){v=!0;break}}if(e[d--]=o[u--],1===--s){v=!0;break}if(g=s-hi(e[c],o,0,s,s-1,t),0!==g){for(d-=g,u-=g,s-=g,h=d+1,p=u+1,l=0;l=li||g>=li);if(v)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),1===s){for(d-=a,c-=a,h=d+1,p=c+1,l=a-1;l>=0;l--)e[h+l]=e[p+l];e[d]=o[u]}else{if(0===s)throw new Error;for(p=d-(s-1),l=0;l=0;l--)e[h+l]=e[p+l];e[d]=o[u]}else for(p=d-(s-1),l=0;ls&&(l=s),pi(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),n-=i,r+=i}while(0!==n);o.forceMergeRuns()}}var vi=1,yi=2,bi=4,_i=!1;function xi(){_i||(_i=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function wi(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Di,Si=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wi}return e.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(xi(),c.z=0),isNaN(c.z2)&&(xi(),c.z2=0),isNaN(c.zlevel)&&(xi(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,r);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,r)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Ci=Si;Di=Ta["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ti=Di,Ii={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,a=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a))},elasticOut:function(e){var t,r=.1,a=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/a)+1)},elasticInOut:function(e){var t,r=.1,a=.4;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=a/4):t=a*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/a)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ii.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*Ii.bounceIn(2*e):.5*Ii.bounceOut(2*e-1)+.5}},Oi=Ii,Ai=Math.pow,Mi=Math.sqrt,Pi=1e-8,ki=1e-4,Ni=Mi(3),Ei=1/3,Li=Oa(),Ri=Oa(),Fi=Oa();function ji(e){return e>-Pi&&ePi||e<-Pi}function $i(e,t,r,a,n){var i=1-n;return i*i*(i*e+3*n*t)+n*n*(n*a+3*i*r)}function Bi(e,t,r,a,n){var i=1-n;return 3*(((t-e)*i+2*(r-t)*n)*i+(a-r)*n*n)}function zi(e,t,r,a,n,i){var o=a+3*(t-r)-e,s=3*(r-2*t+e),l=3*(t-e),c=e-n,u=s*s-3*o*l,d=s*l-9*o*c,p=l*l-3*s*c,h=0;if(ji(u)&&ji(d))if(ji(s))i[0]=0;else{var f=-l/s;f>=0&&f<=1&&(i[h++]=f)}else{var m=d*d-4*u*p;if(ji(m)){var g=d/u,v=(f=-s/o+g,-g/2);f>=0&&f<=1&&(i[h++]=f),v>=0&&v<=1&&(i[h++]=v)}else if(m>0){var y=Mi(m),b=u*s+1.5*o*(-d+y),_=u*s+1.5*o*(-d-y);b=b<0?-Ai(-b,Ei):Ai(b,Ei),_=_<0?-Ai(-_,Ei):Ai(_,Ei);f=(-s-(b+_))/(3*o);f>=0&&f<=1&&(i[h++]=f)}else{var x=(2*u*s-3*o*d)/(2*Mi(u*u*u)),w=Math.acos(x)/3,D=Mi(u),S=Math.cos(w),C=(f=(-s-2*D*S)/(3*o),v=(-s+D*(S+Ni*Math.sin(w)))/(3*o),(-s+D*(S-Ni*Math.sin(w)))/(3*o));f>=0&&f<=1&&(i[h++]=f),v>=0&&v<=1&&(i[h++]=v),C>=0&&C<=1&&(i[h++]=C)}}return h}function Gi(e,t,r,a,n){var i=6*r-12*t+6*e,o=9*t+3*a-3*e-9*r,s=3*t-3*e,l=0;if(ji(o)){if(Vi(i)){var c=-s/i;c>=0&&c<=1&&(n[l++]=c)}}else{var u=i*i-4*o*s;if(ji(u))n[0]=-i/(2*o);else if(u>0){var d=Mi(u),p=(c=(-i+d)/(2*o),(-i-d)/(2*o));c>=0&&c<=1&&(n[l++]=c),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ui(e,t,r,a,n,i){var o=(t-e)*n+e,s=(r-t)*n+t,l=(a-r)*n+r,c=(s-o)*n+o,u=(l-s)*n+s,d=(u-c)*n+c;i[0]=e,i[1]=o,i[2]=c,i[3]=d,i[4]=d,i[5]=u,i[6]=l,i[7]=a}function Wi(e,t,r,a,n,i,o,s,l,c,u){var d,p,h,f,m,g=.005,v=1/0;Li[0]=l,Li[1]=c;for(var y=0;y<1;y+=.05)Ri[0]=$i(e,r,n,o,y),Ri[1]=$i(t,a,i,s,y),f=za(Li,Ri),f=0&&f=0&&c<=1&&(n[l++]=c)}}else{var u=o*o-4*i*s;if(ji(u)){c=-o/(2*i);c>=0&&c<=1&&(n[l++]=c)}else if(u>0){var d=Mi(u),p=(c=(-o+d)/(2*i),(-o-d)/(2*i));c>=0&&c<=1&&(n[l++]=c),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ki(e,t,r){var a=e+r-2*t;return 0===a?.5:(e-t)/a}function Zi(e,t,r,a,n){var i=(t-e)*a+e,o=(r-t)*a+t,s=(o-i)*a+i;n[0]=e,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Ji(e,t,r,a,n,i,o,s,l){var c,u=.005,d=1/0;Li[0]=o,Li[1]=s;for(var p=0;p<1;p+=.05){Ri[0]=qi(e,r,n,p),Ri[1]=qi(t,a,i,p);var h=za(Li,Ri);h=0&&h=1?1:zi(0,a,i,1,e,s)&&$i(0,n,o,1,s[0])}}}var ro=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ia["L"],this.ondestroy=e.ondestroy||Ia["L"],this.onrestart=e.onrestart||Ia["L"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var r=this._life,a=e-this._startTime-this._pausedTime,n=a/r;n<0&&(n=0),n=Math.min(n,1);var i=this.easingFunc,o=i?i(n):n;if(this.onframe(o),1===n){if(!this.loop)return!0;var s=a%r;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(Ia["w"])(e)?e:Oi[e]||to(e)},e}(),ao=ro,no=r("1f58"),io=r("1832"),oo=Array.prototype.slice;function so(e,t,r){return(t-e)*r+e}function lo(e,t,r,a){for(var n=t.length,i=0;ia?t:e,i=Math.min(r,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,n=a.length,i=!1,o=So,s=t;if(Object(Ia["u"])(t)){var l=vo(t);o=l,(1===l&&!Object(Ia["z"])(t[0])||2===l&&!Object(Ia["z"])(t[0][0]))&&(i=!0)}else if(Object(Ia["z"])(t)&&!Object(Ia["l"])(t))o=yo;else if(Object(Ia["C"])(t))if(isNaN(+t)){var c=no["h"](t);c&&(s=c,o=xo)}else o=yo;else if(Object(Ia["x"])(t)){var u=Object(Ia["m"])({},s);u.colorStops=Object(Ia["H"])(t.colorStops,(function(e){return{offset:e.offset,color:no["h"](e.color)}})),Object(io["m"])(t)?o=wo:Object(io["o"])(t)&&(o=Do),s=u}0===n?this.valType=o:o===this.valType&&o!==So||(i=!0),this.discrete=this.discrete||i;var d={time:e,value:s,rawValue:t,percent:0};return r&&(d.easing=r,d.easingFunc=Object(Ia["w"])(r)?r:Oi[r]||to(r)),a.push(d),d},e.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort((function(e,t){return e.time-t.time}));for(var a=this.valType,n=r.length,i=r[n-1],o=this.discrete,s=To(a),l=Co(a),c=0;c=0;r--)if(l[r].percent<=t)break;r=h(r,c-2)}else{for(r=p;rt)break;r=h(r-1,c-2)}n=l[r+1],a=l[r]}if(a&&n){this._lastFr=r,this._lastFrP=t;var m=n.percent-a.percent,g=0===m?1:h((t-a.percent)/m,1);n.easingFunc&&(g=n.easingFunc(g));var v=i?this._additiveValue:d?Io:e[u];if(!To(s)&&!d||v||(v=this._additiveValue=[]),this.discrete)e[u]=g<1?a.rawValue:n.rawValue;else if(To(s))s===bo?lo(v,a[o],n[o],g):co(v,a[o],n[o],g);else if(Co(s)){var y=a[o],b=n[o],_=s===wo;e[u]={type:_?"linear":"radial",x:so(y.x,b.x,g),y:so(y.y,b.y,g),colorStops:Object(Ia["H"])(y.colorStops,(function(e,t){var r=b.colorStops[t];return{offset:so(e.offset,r.offset,g),color:go(lo([],e.color,r.color,g))}})),global:b.global},_?(e[u].x2=so(y.x2,b.x2,g),e[u].y2=so(y.y2,b.y2,g)):e[u].r=so(y.r,b.r,g)}else if(d)lo(v,a[o],n[o],g),i||(e[u]=go(v));else{var x=so(a[o],n[o],g);i?this._additiveValue=x:e[u]=x}i&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===yo?e[r]=e[r]+a:t===xo?(no["h"](e[r],Io),uo(Io,Io,a,1),e[r]=go(Io)):t===bo?uo(e[r],e[r],a,1):t===_o&&po(e[r],e[r],a,1)},e}(),Ao=function(){function e(e,t,r,a){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a?Object(Ia["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=a,this._allowDiscrete=r)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Object(Ia["F"])(t),r)},e.prototype.whenWithKeys=function(e,t,r,a){for(var n=this._tracks,i=0;i0&&s.addKeyframe(0,mo(l),a),this._trackKeys.push(o)}s.addKeyframe(e,mo(t[o]),a)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,n=0;n1){var o=i.pop();n.addKeyframe(o.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},e}(),Mo=Ao;function Po(){return(new Date).getTime()}var ko=function(e){function t(t){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return Ca(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,r=e.next;t?t.next=r:this._head=r,r?r.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=Po()-this._pausedTime,r=t-this._time,a=this._head;while(a){var n=a.next,i=a.step(t,r);i?(a.ondestroy(),this.removeClip(a),a=n):a=n}this._time=t,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(Ti(t),!e._paused&&e.update())}this._running=!0,Ti(t)},t.prototype.start=function(){this._running||(this._time=Po(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Po(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Po()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var r=new Mo(e,t.loop);return this.addAnimator(r),r},t}(Za),No=ko,Eo=300,Lo=Ta["a"].domSupported,Ro=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Ia["H"](e,(function(e){var t=e.replace("mouse","pointer");return r.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:a}}(),Fo={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},jo=!1;function Vo(e){var t=e.pointerType;return"pen"===t||"touch"===t}function $o(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function Bo(e){e&&(e.zrByTouch=!0)}function zo(e,t){return yn(e.dom,new Uo(e,t),!0)}function Go(e,t){var r=t,a=!1;while(r&&9!==r.nodeType&&!(a=r.domBelongToZr||r!==t&&r===e.painterRoot))r=r.parentNode;return a}var Uo=function(){function e(e,t){this.stopPropagation=Ia["L"],this.stopImmediatePropagation=Ia["L"],this.preventDefault=Ia["L"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Wo={mousedown:function(e){e=yn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=yn(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=yn(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=yn(this.dom,e);var t=e.toElement||e.relatedTarget;Go(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){jo=!0,e=yn(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){jo||(e=yn(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=yn(this.dom,e),Bo(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Wo.mousemove.call(this,e),Wo.mousedown.call(this,e)},touchmove:function(e){e=yn(this.dom,e),Bo(e),this.handler.processGesture(e,"change"),Wo.mousemove.call(this,e)},touchend:function(e){e=yn(this.dom,e),Bo(e),this.handler.processGesture(e,"end"),Wo.mouseup.call(this,e),+new Date-+this.__lastTouchMomentss||e<-ss}var cs=[],us=[],ds=On(),ps=Math.abs,hs=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ls(this.rotation)||ls(this.x)||ls(this.y)||ls(this.scaleX-1)||ls(this.scaleY-1)||ls(this.skewX)||ls(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;t||e?(r=r||On(),t?this.getLocalTransform(r):os(r),e&&(t?Pn(r,e,r):Mn(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)):r&&(os(r),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(cs);var r=cs[0]<0?-1:1,a=cs[1]<0?-1:1,n=((cs[0]-r)*t+r)/cs[0]||0,i=((cs[1]-a)*t+a)/cs[1]||0;e[0]*=n,e[1]*=n,e[2]*=i,e[3]*=i}this.invTransform=this.invTransform||On(),Ln(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||On(),Pn(us,e.invTransform,t),t=us);var r=this.originX,a=this.originY;(r||a)&&(ds[4]=r,ds[5]=a,Pn(us,t,ds),us[4]-=r,us[5]-=a,t=us),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Ua(r,r,a),r},e.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Ua(r,r,a),r},e.prototype.getLineScale=function(){var e=this.transform;return e&&ps(e[0]-1)>1e-10&&ps(e[3]-1)>1e-10?Math.sqrt(ps(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ms(this,e)},e.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,n=e.scaleX,i=e.scaleY,o=e.anchorX,s=e.anchorY,l=e.rotation||0,c=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||a||o||s){var h=r+o,f=a+s;t[4]=-h*n-d*f*i,t[5]=-f*i-p*h*n}else t[4]=t[5]=0;return t[0]=n,t[3]=i,t[1]=p*n,t[2]=d*i,l&&Nn(t,t,l),t[4]+=r+c,t[5]+=a+u,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),fs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ms(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Is(e,t,r){var a=t.position||"inside",n=null!=t.distance?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,c=r.y,u="left",d="top";if(a instanceof Array)l+=Ts(a[0],r.width),c+=Ts(a[1],r.height),u=null,d=null;else switch(a){case"left":l-=n,c+=s,u="right",d="middle";break;case"right":l+=n+o,c+=s,d="middle";break;case"top":l+=o/2,c-=n,u="center",d="bottom";break;case"bottom":l+=o/2,c+=i+n,u="center";break;case"inside":l+=o/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=n,c+=s,d="middle";break;case"insideRight":l+=o-n,c+=s,u="right",d="middle";break;case"insideTop":l+=o/2,c+=n,u="center";break;case"insideBottom":l+=o/2,c+=i-n,u="center",d="bottom";break;case"insideTopLeft":l+=n,c+=n;break;case"insideTopRight":l+=o-n,c+=n,u="right";break;case"insideBottomLeft":l+=n,c+=i-n,d="bottom";break;case"insideBottomRight":l+=o-n,c+=i-n,u="right",d="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=d,e}var Os="__zr_normal__",As=fs.concat(["ignore"]),Ms=Object(Ia["N"])(fs,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Ps={},ks=new Yn(0,0,0,0),Ns=function(){function e(e){this.id=Object(Ia["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,n=t.innerTransformable,i=void 0,o=void 0,s=!1;n.parent=a?this:null;var l=!1;if(n.copyTransform(t),null!=r.position){var c=ks;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ps,r,c):Is(Ps,r,c),n.x=Ps.x,n.y=Ps.y,i=Ps.align,o=Ps.verticalAlign;var u=r.origin;if(u&&null!=r.rotation){var d=void 0,p=void 0;"center"===u?(d=.5*c.width,p=.5*c.height):(d=Ts(u[0],c.width),p=Ts(u[1],c.height)),l=!0,n.originX=-n.x+d+(a?0:c.x),n.originY=-n.y+p+(a?0:c.y)}}null!=r.rotation&&(n.rotation=r.rotation);var h=r.offset;h&&(n.x+=h[0],n.y+=h[1],l||(n.originX=-h[0],n.originY=-h[1]));var f=null==r.inside?"string"===typeof r.position&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(g=r.insideFill,v=r.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(g),y=!0)):(g=r.outsideFill,v=r.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(g),y=!0)),g=g||"#000",g===m.fill&&v===m.stroke&&y===m.autoStroke&&i===m.align&&o===m.verticalAlign||(s=!0,m.fill=g,m.stroke=v,m.autoStroke=y,m.align=i,m.verticalAlign=o,t.setDefaultTextStyle(m)),t.__dirty|=vi,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ns:as},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r="string"===typeof t&&Object(no["h"])(t);r||(r=[255,255,255,1]);for(var a=r[3],n=this.__zr.isDarkMode(),i=0;i<3;i++)r[i]=r[i]*a+(n?0:255)*(1-a);return r[3]=1,Object(no["i"])(r,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(Ia["m"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(Ia["A"])(e))for(var r=e,a=Object(Ia["F"])(r),n=0;n0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Os,!1,e)},e.prototype.useState=function(e,t,r,a){var n=e===Os,i=this.hasState();if(i||!n){var o=this.currentStates,s=this.stateTransition;if(!(Object(Ia["r"])(o,e)>=0)||!t&&1!==o.length){var l;if(this.stateProxy&&!n&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||n){n||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!r&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,d=this._textGuide;return u&&u.useState(e,t,r,c),d&&d.useState(e,t,r,c),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vi),l}Object(Ia["G"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,r){if(e.length){var a=[],n=this.currentStates,i=e.length,o=i===n.length;if(o)for(var s=0;s0,h);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vi)}else this.clearStates()},e.prototype.isSilent=function(){var e=this.silent,t=this.parent;while(!e&&t){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},e.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),n=Object(Ia["r"])(a,e),i=Object(Ia["r"])(a,t)>=0;n>=0?i?a.splice(n,1):a[n]=t:r&&!i&&a.push(t),this.useStates(a)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,r={},a=0;a=0&&t.splice(r,1)})),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,n=[],i=0;i0&&r.during&&i[0].during((function(e,t){r.during(t)}));for(var p=0;p0||n.force&&!o.length){var S=void 0,C=void 0,T=void 0;if(s){C={},p&&(S={});for(_=0;_=0&&(r.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var r=Ia["r"](this._children,e);return r>=0&&this.replaceAt(t,r),this},t.prototype.replaceAt=function(e,t){var r=this._children,a=r[t];if(e&&e!==this&&e.parent!==this&&e!==a){r[t]=e,a.parent=null;var n=this.__zr;n&&a.removeSelfFromZr(n),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,r=this._children,a=Ia["r"](r,e);return a<0||(r.splice(a,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,r){return this._disposed||this.handler.on(e,t,r),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(e<=n)return o;if(e>=i)return s}else{if(e>=n)return o;if(e<=i)return s}else{if(e===n)return o;if(e===i)return s}return(e-n)/l*c+o}function nl(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ia["C"](e)?rl(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function il(e,t,r){return null==t&&(t=10),t=Math.min(Math.max(0,t),tl),e=(+e).toFixed(t),r?e:+e}function ol(e){return e.sort((function(e,t){return e-t})),e}function sl(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r;return ll(e)}function ll(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),a=r>0?+t.slice(r+1):0,n=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function cl(e,t){var r=Math.log,a=Math.LN10,n=Math.floor(r(e[1]-e[0])/a),i=Math.round(r(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function ul(e,t){var r=Ia["N"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return[];var a=Math.pow(10,t),n=Ia["H"](e,(function(e){return(isNaN(e)?0:e)/r*a*100})),i=100*a,o=Ia["H"](n,(function(e){return Math.floor(e)})),s=Ia["N"](o,(function(e,t){return e+t}),0),l=Ia["H"](n,(function(e,t){return e-o[t]}));while(sc&&(c=l[d],u=d);++o[u],l[u]=0,++s}return Ia["H"](o,(function(e){return e/a}))}function dl(e,t){var r=Math.max(sl(e),sl(t)),a=e+t;return r>tl?a:il(a,r)}var pl=9007199254740991;function hl(e){var t=2*Math.PI;return(e%t+t)%t}function fl(e){return e>-el&&e=10&&t++,t}function bl(e,t){var r,a=yl(e),n=Math.pow(10,a),i=e/n;return r=t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10,e=r*n,a>=-20?+e.toFixed(a<0?-a:0):e}function _l(e,t){var r=(e.length-1)*t+1,a=Math.floor(r),n=+e[a-1],i=r-a;return i?n+i*(e[a]-n):n}function xl(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,r=1,a=0;a=0||n&&Ia["r"](n,s)<0)){var l=r.getShallow(s,t);null!=l&&(i[e[o][0]]=l)}}return i}}var Cc=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Tc=Sc(Cc),Ic=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Tc(this,e,t)},e}(),Oc=new vs["a"](50);function Ac(e){if("string"===typeof e){var t=Oc.get(e);return t&&t.image}return e}function Mc(e,t,r,a,n){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!r)return t;var i=Oc.get(e),o={hostEl:r,cb:a,cbPayload:n};return i?(t=i.image,!kc(t)&&i.pending.push(o)):(t=ys["d"].loadImage(e,Pc,Pc),t.__zrImageSrc=e,Oc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}return t}function Pc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var c=_s(r,t);return c>s&&(r="",c=0),s=e-c,n.ellipsis=r,n.ellipsisWidth=c,n.contentWidth=s,n.containerWidth=e,n}function Rc(e,t,r){var a=r.containerWidth,n=r.font,i=r.contentWidth;if(!a)return e.textLine="",void(e.isTruncated=!1);var o=_s(t,n);if(o<=a)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var l=0===s?Fc(t,i,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=_s(t,n)}""===t&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function Fc(e,t,r,a){for(var n=0,i=0,o=e.length;if&&u){var m=Math.floor(f/l);d=d||r.length>m,r=r.slice(0,m)}if(e&&o&&null!=p)for(var g=Lc(p,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v={},y=0;yl&&Gc(r,e.substring(l,c),t,s),Gc(r,a[2],t,s,a[1]),l=Nc.lastIndex}li){var A=r.lines.length;w>0?(b.tokens=b.tokens.slice(0,w),v(b,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y),r.isTruncated=r.isTruncated||r.lines.length0&&f+a.accumWidth>a.width&&(i=t.split("\n"),d=!0),a.accumWidth=f}else{var m=qc(t,u,a.width,a.breakAll,a.accumWidth);a.accumWidth=m.accumWidth+h,o=m.linesWidths,i=m.lines}}else i=t.split("\n");for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Wc=Object(Ia["N"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Hc(e){return!Uc(e)||!!Wc[e]}function qc(e,t,r,a,n){for(var i=[],o=[],s="",l="",c=0,u=0,d=0;dr:n+u+h>r)?u?(s||l)&&(f?(s||(s=l,l="",c=0,u=c),i.push(s),o.push(u-c),l+=p,c+=h,s="",u=c):(l&&(s+=l,l="",c=0),i.push(s),o.push(u),s=p,u=h)):f?(i.push(l),o.push(c),l=p,c=h):(i.push(p),o.push(h)):(u+=h,f?(l+=p,c+=h):(l&&(s+=l,l="",c=0),s+=p))}else l&&(s+=l,u+=c),i.push(s),o.push(u),s="",l="",c=0,u=0}return i.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(i.push(s),o.push(u)),1===i.length&&(u+=n),{accumWidth:u,lines:i,linesWidths:o}}var Yc="__zr_style_"+Math.round(10*Math.random()),Xc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xc[Yc]=!0;var Zc=["z","z2","invisible"],Jc=["invisible"],Qc=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype._init=function(t){for(var r=Object(Ia["F"])(t),a=0;a1e-4)return s[0]=e-r,s[1]=t-a,l[0]=e+r,void(l[1]=t+a);if(cu[0]=su(n)*r+e,cu[1]=ou(n)*a+t,uu[0]=su(i)*r+e,uu[1]=ou(i)*a+t,c(s,cu,uu),u(l,cu,uu),n%=lu,n<0&&(n+=lu),i%=lu,i<0&&(i+=lu),n>i&&!o?i+=lu:nn&&(du[0]=su(h)*r+e,du[1]=ou(h)*a+t,c(s,du,s),u(l,du,l))}var bu={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_u=[],xu=[],wu=[],Du=[],Su=[],Cu=[],Tu=Math.min,Iu=Math.max,Ou=Math.cos,Au=Math.sin,Mu=Math.abs,Pu=Math.PI,ku=2*Pu,Nu="undefined"!==typeof Float32Array,Eu=[];function Lu(e){var t=Math.round(e/Pu*1e8)/1e8;return t%2*Pu}function Ru(e,t){var r=Lu(e[0]);r<0&&(r+=ku);var a=r-e[0],n=e[1];n+=a,!t&&n-r>=ku?n=r+ku:t&&r-n>=ku?n=r-ku:!t&&r>n?n=r+(ku-Lu(r-n)):t&&r0&&(this._ux=Mu(r/ts/e)||0,this._uy=Mu(r/ts/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(bu.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var r=Mu(e-this._xi),a=Mu(t-this._yi),n=r>this._ux||a>this._uy;if(this.addData(bu.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var i=r*r+a*a;i>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(e,t,r,a,n,i){return this._drawPendingPt(),this.addData(bu.C,e,t,r,a,n,i),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,n,i),this._xi=n,this._yi=i,this},e.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(bu.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(e,t,r,a,n,i){this._drawPendingPt(),Eu[0]=a,Eu[1]=n,Ru(Eu,i),a=Eu[0],n=Eu[1];var o=n-a;return this.addData(bu.A,e,t,r,r,a,o,0,i?0:1),this._ctx&&this._ctx.arc(e,t,r,a,n,i),this._xi=Ou(n)*r+e,this._yi=Au(n)*r+t,this},e.prototype.arcTo=function(e,t,r,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,n),this},e.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(bu.R,e,t,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(bu.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Nu||(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){wu[0]=wu[1]=Su[0]=Su[1]=Number.MAX_VALUE,Du[0]=Du[1]=Cu[0]=Cu[1]=-Number.MAX_VALUE;var e,t=this.data,r=0,a=0,n=0,i=0;for(e=0;er||Mu(y)>a||d===t-1)&&(f=Math.sqrt(v*v+y*y),n=m,i=g);break;case bu.C:var b=e[d++],_=e[d++],x=(m=e[d++],g=e[d++],e[d++]),w=e[d++];f=Hi(n,i,b,_,m,g,x,w,10),n=x,i=w;break;case bu.Q:b=e[d++],_=e[d++],m=e[d++],g=e[d++];f=Qi(n,i,b,_,m,g,10),n=m,i=g;break;case bu.A:var D=e[d++],S=e[d++],C=e[d++],T=e[d++],I=e[d++],O=e[d++],A=O+I;d+=1,h&&(o=Ou(I)*C+D,s=Au(I)*T+S),f=Iu(C,T)*Tu(ku,Math.abs(O)),n=Ou(A)*C+D,i=Au(A)*T+S;break;case bu.R:o=n=e[d++],s=i=e[d++];var M=e[d++],P=e[d++];f=2*M+2*P;break;case bu.Z:v=o-n,y=s-i;f=Math.sqrt(v*v+y*y),n=o,i=s;break}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var r,a,n,i,o,s,l,c,u,d,p,h=this.data,f=this._ux,m=this._uy,g=this._len,v=t<1,y=0,b=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=t*c,u))e:for(var x=0;x0&&(e.lineTo(d,p),_=0),w){case bu.M:r=n=h[x++],a=i=h[x++],e.moveTo(n,i);break;case bu.L:o=h[x++],s=h[x++];var S=Mu(o-n),C=Mu(s-i);if(S>f||C>m){if(v){var T=l[b++];if(y+T>u){var I=(u-y)/T;e.lineTo(n*(1-I)+o*I,i*(1-I)+s*I);break e}y+=T}e.lineTo(o,s),n=o,i=s,_=0}else{var O=S*S+C*C;O>_&&(d=o,p=s,_=O)}break;case bu.C:var A=h[x++],M=h[x++],P=h[x++],k=h[x++],N=h[x++],E=h[x++];if(v){T=l[b++];if(y+T>u){I=(u-y)/T;Ui(n,A,P,N,I,_u),Ui(i,M,k,E,I,xu),e.bezierCurveTo(_u[1],xu[1],_u[2],xu[2],_u[3],xu[3]);break e}y+=T}e.bezierCurveTo(A,M,P,k,N,E),n=N,i=E;break;case bu.Q:A=h[x++],M=h[x++],P=h[x++],k=h[x++];if(v){T=l[b++];if(y+T>u){I=(u-y)/T;Zi(n,A,P,I,_u),Zi(i,M,k,I,xu),e.quadraticCurveTo(_u[1],xu[1],_u[2],xu[2]);break e}y+=T}e.quadraticCurveTo(A,M,P,k),n=P,i=k;break;case bu.A:var L=h[x++],R=h[x++],F=h[x++],j=h[x++],V=h[x++],$=h[x++],B=h[x++],z=!h[x++],G=F>j?F:j,U=Mu(F-j)>.001,W=V+$,H=!1;if(v){T=l[b++];y+T>u&&(W=V+$*(u-y)/T,H=!0),y+=T}if(U&&e.ellipse?e.ellipse(L,R,F,j,B,V,W,z):e.arc(L,R,G,V,W,z),H)break e;D&&(r=Ou(V)*F+L,a=Au(V)*j+R),n=Ou(W)*F+L,i=Au(W)*j+R;break;case bu.R:r=n=h[x],a=i=h[x+1],o=h[x++],s=h[x++];var q=h[x++],Y=h[x++];if(v){T=l[b++];if(y+T>u){var X=u-y;e.moveTo(o,s),e.lineTo(o+Tu(X,q),s),X-=q,X>0&&e.lineTo(o+q,s+Tu(X,Y)),X-=Y,X>0&&e.lineTo(o+Iu(q-X,0),s+Y),X-=q,X>0&&e.lineTo(o,s+Iu(Y-X,0));break e}y+=T}e.rect(o,s,q,Y);break;case bu.Z:if(v){T=l[b++];if(y+T>u){I=(u-y)/T;e.lineTo(n*(1-I)+r*I,i*(1-I)+a*I);break e}y+=T}e.closePath(),n=r,i=a}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=bu,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),ju=Fu;function Vu(e,t,r,a,n,i,o){if(0===n)return!1;var s=n,l=0,c=e;if(o>t+s&&o>a+s||oe+s&&i>r+s||it+d&&u>a+d&&u>i+d&&u>s+d||ue+d&&c>r+d&&c>n+d&&c>o+d||ct+c&&l>a+c&&l>i+c||le+c&&s>r+c&&s>n+c||sr||u+cn&&(n+=Uu);var p=Math.atan2(l,s);return p<0&&(p+=Uu),p>=a&&p<=n||p+Uu>=a&&p+Uu<=n}function Hu(e,t,r,a,n,i){if(i>t&&i>a||in?s:0}var qu=ju.CMD,Yu=2*Math.PI,Xu=1e-4;function Ku(e,t){return Math.abs(e-t)t&&c>a&&c>i&&c>s||c1&&Qu(),h=$i(t,a,i,s,Ju[0]),p>1&&(f=$i(t,a,i,s,Ju[1]))),2===p?gt&&s>a&&s>i||s=0&&c<=1){for(var u=0,d=qi(t,a,i,c),p=0;pr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Zu[0]=-l,Zu[1]=l;var c=Math.abs(a-n);if(c<1e-4)return 0;if(c>=Yu-1e-4){a=0,n=Yu;var u=i?1:-1;return o>=Zu[0]+e&&o<=Zu[1]+e?u:0}if(a>n){var d=a;a=n,n=d}a<0&&(a+=Yu,n+=Yu);for(var p=0,h=0;h<2;h++){var f=Zu[h];if(f+e>o){var m=Math.atan2(s,f);u=i?1:-1;m<0&&(m=Yu+m),(m>=a&&m<=n||m+Yu>=a&&m+Yu<=n)&&(m>Math.PI/2&&m<1.5*Math.PI&&(u=-u),p+=u)}}return p}function ad(e,t,r,a,n){for(var i,o,s=e.data,l=e.len(),c=0,u=0,d=0,p=0,h=0,f=0;f1&&(r||(c+=Hu(u,d,p,h,a,n))),g&&(u=s[f],d=s[f+1],p=u,h=d),m){case qu.M:p=s[f++],h=s[f++],u=p,d=h;break;case qu.L:if(r){if(Vu(u,d,s[f],s[f+1],t,a,n))return!0}else c+=Hu(u,d,s[f],s[f+1],a,n)||0;u=s[f++],d=s[f++];break;case qu.C:if(r){if($u(u,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,a,n))return!0}else c+=ed(u,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],a,n)||0;u=s[f++],d=s[f++];break;case qu.Q:if(r){if(Bu(u,d,s[f++],s[f++],s[f],s[f+1],t,a,n))return!0}else c+=td(u,d,s[f++],s[f++],s[f],s[f+1],a,n)||0;u=s[f++],d=s[f++];break;case qu.A:var v=s[f++],y=s[f++],b=s[f++],_=s[f++],x=s[f++],w=s[f++];f+=1;var D=!!(1-s[f++]);i=Math.cos(x)*b+v,o=Math.sin(x)*_+y,g?(p=i,h=o):c+=Hu(u,d,i,o,a,n);var S=(a-v)*_/b+v;if(r){if(Wu(v,y,_,x,x+w,D,t,S,n))return!0}else c+=rd(v,y,_,x,x+w,D,S,n);u=Math.cos(x+w)*b+v,d=Math.sin(x+w)*_+y;break;case qu.R:p=u=s[f++],h=d=s[f++];var C=s[f++],T=s[f++];if(i=p+C,o=h+T,r){if(Vu(p,h,i,h,t,a,n)||Vu(i,h,i,o,t,a,n)||Vu(i,o,p,o,t,a,n)||Vu(p,o,p,h,t,a,n))return!0}else c+=Hu(i,h,i,o,a,n),c+=Hu(p,o,p,h,a,n);break;case qu.Z:if(r){if(Vu(u,d,p,h,t,a,n))return!0}else c+=Hu(u,d,p,h,a,n);u=p,d=h;break}}return r||Ku(d,h)||(c+=Hu(u,d,p,h,a,n)||0),0!==c}function nd(e,t,r){return ad(e,0,!1,t,r)}function id(e,t,r,a){return ad(e,t,!0,r,a)}var od=Object(Ia["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xc),sd={style:Object(Ia["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kc.style)},ld=fs.concat(["invisible","culling","z","z2","zlevel","parent"]),cd=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.update=function(){var r=this;e.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(e){r.buildPath(e,r.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?as:t>.2?is:ns}if(e)return ns}return as},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(Ia["C"])(t)){var r=this.__zr,a=!(!r||!r.isDarkMode()),n=Object(no["e"])(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,r=!e;if(r){var a=!1;this.path||(a=!0,this.createPathProxy());var n=this.path;(a||this.__dirty&bi)&&(n.beginPath(),this.buildPath(n,this.shape,!1),this.pathUpdated()),e=n.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var i=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||r){i.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(i.width+=s/o,i.height+=s/o,i.x-=s/o/2,i.y-=s/o/2)}return i}return e},t.prototype.contain=function(e,t){var r=this.transformCoordToLocal(e,t),a=this.getBoundingRect(),n=this.style;if(e=r[0],t=r[1],a.contain(e,t)){var i=this.path;if(this.hasStroke()){var o=n.lineWidth,s=n.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),id(i,o/s,e,t)))return!0}if(this.hasFill())return nd(i,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=bi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,r){"shape"===t?this.setShape(r):e.prototype.attrKV.call(this,t,r)},t.prototype.setShape=function(e,t){var r=this.shape;return r||(r=this.shape={}),"string"===typeof e?r[e]=t:Object(Ia["m"])(r,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&bi)},t.prototype.createStyle=function(e){return Object(Ia["g"])(od,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=Object(Ia["m"])({},this.shape))},t.prototype._applyStateObj=function(t,r,a,n,i,o){e.prototype._applyStateObj.call(this,t,r,a,n,i,o);var s,l=!(r&&n);if(r&&r.shape?i?n?s=r.shape:(s=Object(Ia["m"])({},a.shape),Object(Ia["m"])(s,r.shape)):(s=Object(Ia["m"])({},n?this.shape:a.shape),Object(Ia["m"])(s,r.shape)):l&&(s=a.shape),s)if(i){this.shape=Object(Ia["m"])({},this.shape);for(var c={},u=Object(Ia["F"])(s),d=0;d0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(Ia["g"])(dd,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var r=ws(t,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;r.x-=a/2,r.y-=a/2,r.width+=a,r.height+=a}this._rect=r}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(au);pd.prototype.type="tspan";var hd=pd,fd=Object(Ia["i"])({x:0,y:0},Xc),md={style:Object(Ia["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kc.style)};function gd(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var vd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.createStyle=function(e){return Object(Ia["g"])(fd,e)},t.prototype._getSize=function(e){var t=this.style,r=t[e];if(null!=r)return r;var a=gd(t.image)?t.image:this.__image;if(!a)return 0;var n="width"===e?"height":"width",i=t[n];return null==i?a[e]:a[e]/a[n]*i},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return md},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Yn(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(au);vd.prototype.type="image";var yd=vd;function bd(e,t){var r,a,n,i,o,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof d?r=a=n=i=d:d instanceof Array?1===d.length?r=a=n=i=d[0]:2===d.length?(r=n=d[0],a=i=d[1]):3===d.length?(r=d[0],a=i=d[1],n=d[2]):(r=d[0],a=d[1],n=d[2],i=d[3]):r=a=n=i=0,r+a>c&&(o=r+a,r*=c/o,a*=c/o),n+i>c&&(o=n+i,n*=c/o,i*=c/o),a+n>u&&(o=a+n,a*=u/o,n*=u/o),r+i>u&&(o=r+i,r*=u/o,i*=u/o),e.moveTo(s+r,l),e.lineTo(s+c-a,l),0!==a&&e.arc(s+c-a,l+a,a,-Math.PI/2,0),e.lineTo(s+c,l+u-n),0!==n&&e.arc(s+c-n,l+u-n,n,0,Math.PI/2),e.lineTo(s+i,l+u),0!==i&&e.arc(s+i,l+u-i,i,Math.PI/2,Math.PI),e.lineTo(s,l+r),0!==r&&e.arc(s+r,l+r,r,Math.PI,1.5*Math.PI)}var _d=Math.round;function xd(e,t,r){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;e.x1=a,e.x2=n,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s?(_d(2*a)===_d(2*n)&&(e.x1=e.x2=Dd(a,s,!0)),_d(2*i)===_d(2*o)&&(e.y1=e.y2=Dd(i,s,!0)),e):e}}function wd(e,t,r){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;e.x=a,e.y=n,e.width=i,e.height=o;var s=r&&r.lineWidth;return s?(e.x=Dd(a,s,!0),e.y=Dd(n,s,!0),e.width=Math.max(Dd(a+i,s,!1)-e.x,0===i?0:1),e.height=Math.max(Dd(n+o,s,!1)-e.y,0===o?0:1),e):e}}function Dd(e,t,r){if(!t)return e;var a=_d(2*e);return(a+_d(t))%2===0?a/2:(a+(r?1:-1))/2}var Sd=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Cd={},Td=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultShape=function(){return new Sd},t.prototype.buildPath=function(e,t){var r,a,n,i;if(this.subPixelOptimize){var o=wd(Cd,t,this.style);r=o.x,a=o.y,n=o.width,i=o.height,o.r=t.r,t=o}else r=t.x,a=t.y,n=t.width,i=t.height;t.r?bd(e,t):e.rect(r,a,n,i)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ud);Td.prototype.type="rect";var Id=Td,Od={fill:"#000"},Ad=2,Md={style:Object(Ia["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Kc.style)},Pd=function(e){function t(t){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Od,r.attr(t),r}return Ca(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),I=n.calculatedLineHeight,O=0;O=0&&(O=_[I],"right"===O.align))this._placeToken(O,e,w,m,T,"right",v),D-=O.width,T-=O.width,I--;C+=(a-(C-f)-(g-T)-D)/2;while(S<=I)O=_[S],this._placeToken(O,e,w,m,C+O.width/2,"center",v),C+=O.width,S++;m+=w}},t.prototype._placeToken=function(e,t,r,a,n,i,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=a+r/2;"top"===l?c=a+e.height/2:"bottom"===l&&(c=a+r-e.height/2);var u=!e.isLineHolder&&Ud(s);u&&this._renderBackground(s,t,"right"===i?n-e.width:"center"===i?n-e.width/2:n,c-e.height/2,e.width,e.height);var d=!!s.backgroundColor,p=e.textPadding;p&&(n=zd(n,i,p),c-=e.height/2-p[0]-e.innerHeight/2);var h=this._getOrCreateChild(hd),f=h.createStyle();h.useStyle(f);var m=this._defaultStyle,g=!1,v=0,y=Bd("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,m.fill)),b=$d("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||o||m.autoStroke&&!g?null:(v=Ad,m.stroke)),_=s.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=n,f.y=c,_&&(f.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,f.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=i,f.textBaseline="middle",f.font=e.font||ys["a"],f.opacity=Object(Ia["Q"])(s.opacity,t.opacity,1),Rd(f,s),b&&(f.lineWidth=Object(Ia["Q"])(s.lineWidth,t.lineWidth,v),f.lineDash=Object(Ia["P"])(s.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=b),y&&(f.fill=y);var x=e.contentWidth,w=e.contentHeight;h.setBoundingRect(new Yn(Ds(f.x,x,f.textAlign),Ss(f.y,w,f.textBaseline),x,w))},t.prototype._renderBackground=function(e,t,r,a,n,i){var o,s,l=e.backgroundColor,c=e.borderWidth,u=e.borderColor,d=l&&l.image,p=l&&!d,h=e.borderRadius,f=this;if(p||e.lineHeight||c&&u){o=this._getOrCreateChild(Id),o.useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=r,m.y=a,m.width=n,m.height=i,m.r=h,o.dirtyShape()}if(p){var g=o.style;g.fill=l||null,g.fillOpacity=Object(Ia["P"])(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(yd),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=r,v.y=a,v.width=n,v.height=i}if(c&&u){g=o.style;g.lineWidth=c,g.stroke=u,g.strokeOpacity=Object(Ia["P"])(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Object(Ia["Q"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return Fd(e)&&(t=[e.fontStyle,e.fontWeight,Ld(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(Ia["T"])(t)||e.textFont||e.font},t}(au),kd={left:!0,right:1,center:1},Nd={top:1,bottom:1,middle:1},Ed=["fontStyle","fontWeight","fontSize","fontFamily"];function Ld(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?ys["c"]+"px":e+"px":e}function Rd(e,t){for(var r=0;r=0,i=!1;if(e instanceof ud){var o=Kd(e),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(up(s)||up(l)){a=a||{};var c=a.style||{};"inherit"===c.fill?(i=!0,a=Object(Ia["m"])({},a),c=Object(Ia["m"])({},c),c.fill=s):!up(c.fill)&&up(s)?(i=!0,a=Object(Ia["m"])({},a),c=Object(Ia["m"])({},c),c.fill=Object(no["d"])(s)):!up(c.stroke)&&up(l)&&(i||(a=Object(Ia["m"])({},a),c=Object(Ia["m"])({},c)),c.stroke=Object(no["d"])(l)),a.style=c}}if(a&&null==a.z2){i||(a=Object(Ia["m"])({},a));var u=e.z2EmphasisLift;a.z2=e.z2+(null!=u?u:ap)}return a}function Dp(e,t,r){if(r&&null==r.z2){r=Object(Ia["m"])({},r);var a=e.z2SelectLift;r.z2=e.z2+(null!=a?a:np)}return r}function Sp(e,t,r){var a=Object(Ia["r"])(e.currentStates,t)>=0,n=e.style.opacity,i=a?null:xp(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return null==o.opacity&&(r=Object(Ia["m"])({},r),o=Object(Ia["m"])({opacity:a?n:.1*i.opacity},o),r.style=o),r}function Cp(e,t){var r=this.states[e];if(this.style){if("emphasis"===e)return wp(this,e,t,r);if("blur"===e)return Sp(this,e,r);if("select"===e)return Dp(this,e,r)}return r}function Tp(e){e.stateProxy=Cp;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Cp),r&&(r.stateProxy=Cp)}function Ip(e,t){!Lp(e,t)&&!e.__highByOuter&&bp(e,pp)}function Op(e,t){!Lp(e,t)&&!e.__highByOuter&&bp(e,hp)}function Ap(e,t){e.__highByOuter|=1<<(t||0),bp(e,pp)}function Mp(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&bp(e,hp)}function Pp(e){bp(e,fp)}function kp(e){bp(e,mp)}function Np(e){bp(e,gp)}function Ep(e){bp(e,vp)}function Lp(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Rp(e){var t=e.getModel(),r=[],a=[];t.eachComponent((function(t,n){var i=Zd(n),o="series"===t,s=o?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n);!o&&a.push(s),i.isBlured&&(s.group.traverse((function(e){mp(e)})),o&&r.push(n)),i.isBlured=!1})),Object(Ia["k"])(a,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(r,!1,t)}))}function Fp(e,t,r,a){var n=a.getModel();function i(e,t){for(var r=0;r0){var i={dataIndex:n,seriesIndex:e.seriesIndex};null!=a&&(i.dataType=a),t.push(i)}}))})),t}function Hp(e,t,r){Qp(e,!0),bp(e,Tp),Xp(e,t,r)}function qp(e){Qp(e,!1)}function Yp(e,t,r,a){a?qp(e):Hp(e,t,r)}function Xp(e,t,r){var a=Hd(e);null!=t?(a.focus=t,a.blurScope=r):a.focus&&(a.focus=null)}var Kp=["emphasis","blur","select"],Zp={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jp(e,t,r,a){r=r||"itemStyle";for(var n=0;n0){var d=u.duration,p=u.delay,h=u.easing,f={duration:d,delay:p||0,easing:h,done:i,force:!!i||!!o,setToFinal:!c,scope:e,during:o};l?t.animateFrom(r,f):t.animateTo(r,f)}else t.stopAnimation(),!l&&t.attr(r),o&&o(1),i&&i()}function ch(e,t,r,a,n,i){lh("update",e,t,r,a,n,i)}function uh(e,t,r,a,n,i){lh("enter",e,t,r,a,n,i)}function dh(e){if(!e.__zr)return!0;for(var t=0;t=0&&r.push(e)})),r}e.topologicalTravel=function(e,t,a,n){if(e.length){var i=r(t),o=i.graph,s=i.noEntryList,l={};Ia["k"](e,(function(e){l[e]=!0}));while(s.length){var c=s.pop(),u=o[c],d=!!l[c];d&&(a.call(n,c,u.originalDeps.slice()),delete l[c]),Ia["k"](u.successor,d?h:p)}Ia["k"](l,(function(){var e="";throw new Error(e)}))}function p(e){o[e].entryCount--,0===o[e].entryCount&&s.push(e)}function h(e){l[e]=!0,p(e)}}}function Zh(e,t){return Ia["I"](Ia["I"]({},e,!0),t,!0)}var Jh={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Qh={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},ef="ZH",tf="EN",rf=tf,af={},nf={},of=Ta["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||rf).toUpperCase();return e.indexOf(ef)>-1?ef:rf}():rf;function sf(e,t){e=e.toUpperCase(),nf[e]=new Hh(t),af[e]=t}function lf(e){if(Object(Ia["C"])(e)){var t=af[e.toUpperCase()]||{};return e===ef||e===tf?Object(Ia["d"])(t):Object(Ia["I"])(Object(Ia["d"])(t),Object(Ia["d"])(af[rf]),!1)}return Object(Ia["I"])(Object(Ia["d"])(e),Object(Ia["d"])(af[rf]),!1)}function cf(e){return nf[e]}function uf(){return nf[rf]}sf(tf,Jh),sf(ef,Qh);var df=1e3,pf=60*df,hf=60*pf,ff=24*hf,mf=365*ff,gf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},vf="{yyyy}-{MM}-{dd}",yf={year:"{yyyy}",month:"{yyyy}-{MM}",day:vf,hour:vf+" "+gf.hour,minute:vf+" "+gf.minute,second:vf+" "+gf.second,millisecond:gf.none},bf=["year","month","day","hour","minute","second","millisecond"],_f=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xf(e,t){return e+="","0000".substr(0,t-e.length)+e}function wf(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Df(e){return e===wf(e)}function Sf(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Cf(e,t,r,a){var n=gl(e),i=n[Af(r)](),o=n[Mf(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Pf(r)](),c=n["get"+(r?"UTC":"")+"Day"](),u=n[kf(r)](),d=(u-1)%12+1,p=n[Nf(r)](),h=n[Ef(r)](),f=n[Lf(r)](),m=u>=12?"pm":"am",g=m.toUpperCase(),v=a instanceof Hh?a:cf(a||of)||uf(),y=v.getModel("time"),b=y.get("month"),_=y.get("monthAbbr"),x=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,xf(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,xf(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,xf(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[c]).replace(/{ee}/g,w[c]).replace(/{e}/g,c+"").replace(/{HH}/g,xf(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,xf(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,xf(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,xf(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,xf(f,3)).replace(/{S}/g,f+"")}function Tf(e,t,r,a,n){var i=null;if(Ia["C"](r))i=r;else if(Ia["w"](r))i=r(e.value,t,{level:e.level});else{var o=Ia["m"]({},gf);if(e.level>0)for(var s=0;s=0;--s)if(l[c]){i=l[c];break}i=i||o.none}if(Ia["t"](i)){var d=null==e.level?0:e.level>=0?e.level:i.length+e.level;d=Math.min(d,i.length-1),i=i[d]}}return Cf(new Date(e.value),i,n,a)}function If(e,t){var r=gl(e),a=r[Mf(t)]()+1,n=r[Pf(t)](),i=r[kf(t)](),o=r[Nf(t)](),s=r[Ef(t)](),l=r[Lf(t)](),c=0===l,u=c&&0===s,d=u&&0===o,p=d&&0===i,h=p&&1===n,f=h&&1===a;return f?"year":h?"month":p?"day":d?"hour":u?"minute":c?"second":"millisecond"}function Of(e,t,r){var a=Ia["z"](e)?gl(e):e;switch(t=t||If(e,r),t){case"year":return a[Af(r)]();case"half-year":return a[Mf(r)]()>=6?1:0;case"quarter":return Math.floor((a[Mf(r)]()+1)/4);case"month":return a[Mf(r)]();case"day":return a[Pf(r)]();case"half-day":return a[kf(r)]()/24;case"hour":return a[kf(r)]();case"minute":return a[Nf(r)]();case"second":return a[Ef(r)]();case"millisecond":return a[Lf(r)]()}}function Af(e){return e?"getUTCFullYear":"getFullYear"}function Mf(e){return e?"getUTCMonth":"getMonth"}function Pf(e){return e?"getUTCDate":"getDate"}function kf(e){return e?"getUTCHours":"getHours"}function Nf(e){return e?"getUTCMinutes":"getMinutes"}function Ef(e){return e?"getUTCSeconds":"getSeconds"}function Lf(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Rf(e){return e?"setUTCFullYear":"setFullYear"}function Ff(e){return e?"setUTCMonth":"setMonth"}function jf(e){return e?"setUTCDate":"setDate"}function Vf(e){return e?"setUTCHours":"setHours"}function $f(e){return e?"setUTCMinutes":"setMinutes"}function Bf(e){return e?"setUTCSeconds":"setSeconds"}function zf(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Gf(e){if(!Dl(e))return Ia["C"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Uf(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Wf=Ia["M"];function Hf(e,t,r){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(e){return e&&Ia["T"](e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,s=e instanceof Date;if(o||s){var l=o?gl(e):e;if(!isNaN(+l))return Cf(l,a,r);if(s)return"-"}if("ordinal"===t)return Ia["D"](e)?n(e):Ia["z"](e)&&i(e)?e+"":"-";var c=wl(e);return i(c)?Gf(c):Ia["D"](e)?n(e):"boolean"===typeof e?e+"":"-"}var qf=["a","b","c","d","e","f","g"],Yf=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Xf(e,t,r){Ia["t"](t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Jf(e,t){return t=t||"transparent",Ia["C"](e)?e:Ia["A"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Qf(e,t){if("_blank"===t||"blank"===t){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var em=Ia["k"],tm=["left","right","top","bottom","width","height"],rm=[["width","left","right"],["height","top","bottom"]];function am(e,t,r,a,n){var i=0,o=0;null==a&&(a=1/0),null==n&&(n=1/0);var s=0;t.eachChild((function(l,c){var u,d,p=l.getBoundingRect(),h=t.childAt(c+1),f=h&&h.getBoundingRect();if("horizontal"===e){var m=p.width+(f?-f.x+p.x:0);u=i+m,u>a||l.newline?(i=0,u=m,o+=s+r,s=p.height):s=Math.max(s,p.height)}else{var g=p.height+(f?-f.y+p.y:0);d=o+g,d>n||l.newline?(i+=s+r,o=0,d=g,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),"horizontal"===e?i=u+r:o=d+r)}))}var nm=am;Ia["h"](am,"vertical"),Ia["h"](am,"horizontal");function im(e,t,r){var a=t.width,n=t.height,i=nl(e.left,a),o=nl(e.top,n),s=nl(e.right,a),l=nl(e.bottom,n);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=n),r=Wf(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function om(e,t,r){r=Wf(r||0);var a=t.width,n=t.height,i=nl(e.left,a),o=nl(e.top,n),s=nl(e.right,a),l=nl(e.bottom,n),c=nl(e.width,a),u=nl(e.height,n),d=r[2]+r[0],p=r[1]+r[3],h=e.aspect;switch(isNaN(c)&&(c=a-s-p-i),isNaN(u)&&(u=n-l-d-o),null!=h&&(isNaN(c)&&isNaN(u)&&(h>a/n?c=.8*a:u=.8*n),isNaN(c)&&(c=h*u),isNaN(u)&&(u=c/h)),isNaN(i)&&(i=a-s-c-p),isNaN(o)&&(o=n-l-u-d),e.left||e.right){case"center":i=a/2-c/2-r[3];break;case"right":i=a-c-p;break}switch(e.top||e.bottom){case"middle":case"center":o=n/2-u/2-r[0];break;case"bottom":o=n-u-d;break}i=i||0,o=o||0,isNaN(c)&&(c=a-p-i-(s||0)),isNaN(u)&&(u=n-d-o-(l||0));var f=new Yn(i+r[3],o+r[0],c,u);return f.margin=r,f}function sm(e,t,r,a,n,i){var o,s=!n||!n.hv||n.hv[0],l=!n||!n.hv||n.hv[1],c=n&&n.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!s&&!l)return!1;if("raw"===c)o="group"===e.type?new Yn(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(o=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();o=o.clone(),o.applyTransform(u)}var d=om(Ia["i"]({width:o.width,height:o.height},t),r,a),p=s?d.x-o.x:0,h=l?d.y-o.y:0;return"raw"===c?(i.x=p,i.y=h):(i.x+=p,i.y+=h),i===e&&e.markRedraw(),!0}function lm(e,t){return null!=e[rm[t][0]]||null!=e[rm[t][1]]&&null!=e[rm[t][2]]}function cm(e){var t=e.layoutMode||e.constructor.layoutMode;return Ia["A"](t)?t:t?{type:t}:null}function um(e,t,r){var a=r&&r.ignoreSize;!Ia["t"](a)&&(a=[a,a]);var n=o(rm[0],0),i=o(rm[1],1);function o(r,n){var i={},o=0,c={},u=0,d=2;if(em(r,(function(t){c[t]=e[t]})),em(r,(function(e){s(t,e)&&(i[e]=c[e]=t[e]),l(i,e)&&o++,l(c,e)&&u++})),a[n])return l(t,r[1])?c[r[2]]=null:l(t,r[2])&&(c[r[1]]=null),c;if(u!==d&&o){if(o>=d)return i;for(var p=0;p=0;o--)i=Ia["I"](i,r[o],!0);t.defaultOption=i}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var r=e+"Index",a=e+"Id";return nc(this.ecModel,e,{index:this.get(r,!0),id:this.get(a,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Hh);function mm(e){var t=[];return Ia["k"](fm.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=Ia["H"](t,(function(e){return hc(e).main})),"dataset"!==e&&Ia["r"](t,"dataset")<=0&&t.unshift("dataset"),t}yc(fm,Hh),Dc(fm),Xh(fm),Kh(fm,mm);var gm=fm,vm="";"undefined"!==typeof navigator&&(vm=navigator.platform||"");var ym="rgba(0, 0, 0, 0.2)",bm={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ym,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ym,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ym,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ym,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ym,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ym,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vm.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},_m=Object(Ia["f"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),xm="original",wm="arrayRows",Dm="objectRows",Sm="keyedColumns",Cm="typedArray",Tm="unknown",Im="column",Om="row",Am={Must:1,Might:2,Not:3},Mm=Jl();function Pm(e){Mm(e).datasetMap=Object(Ia["f"])()}function km(e,t,r){var a={},n=Em(t);if(!n||!e)return a;var i,o,s=[],l=[],c=t.ecModel,u=Mm(c).datasetMap,d=n.uid+"_"+r.seriesLayoutBy;e=e.slice(),Object(Ia["k"])(e,(function(t,r){var n=Object(Ia["A"])(t)?t:e[r]={name:t};"ordinal"===n.type&&null==i&&(i=r,o=f(n)),a[n.name]=[]}));var p=u.get(d)||u.set(d,{categoryWayDim:o,valueWayDim:0});function h(e,t,r){for(var a=0;at)return e[a];return e[r-1]}function Hm(e,t,r,a,n,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(n))return c[n];var u=null!=o&&a?Wm(a,o):r;if(u=u||r,u&&u.length){var d=u[l];return n&&(c[n]=d),s.paletteIdx=(l+1)%u.length,d}}function qm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ym,Xm,Km;"undefined"!==typeof console&&console.warn&&console.log;function Zm(e){0}function Jm(e){throw new Error(e)}var Qm="\0_ec_inner",eg=1;var tg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.init=function(e,t,r,a,n,i){a=a||{},this.option=null,this._theme=new Hh(a),this._locale=new Hh(n),this._optionManager=i},t.prototype.setOption=function(e,t,r){var a=og(t);this._optionManager.setOption(e,r,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,t){return this._resetOption(e,og(t))},t.prototype._resetOption=function(e,t){var r=!1,a=this._optionManager;if(!e||"recreate"===e){var n=a.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(n,t)):Km(this,n),r=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var i=a.getTimelineOption(this);i&&(r=!0,this._mergeOption(i,t))}if(!e||"recreate"===e||"media"===e){var o=a.getMediaOption(this);o.length&&Object(Ia["k"])(o,(function(e){r=!0,this._mergeOption(e,t)}),this)}return r},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var r=this.option,a=this._componentsMap,n=this._componentsCount,i=[],o=Object(Ia["f"])(),s=t&&t.replaceMergeMainTypeMap;function l(t){var i=$m(this,t,Ml(e[t])),o=a.get(t),l=o?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=Ll(o,i,l);Yl(c,t,gm),r[t]=null,a.set(t,null),n.set(t,0);var u,d=[],p=[],h=0;Object(Ia["k"])(c,(function(e,r){var a=e.existing,n=e.newOption;if(n){var i="series"===t,o=gm.getClass(t,e.keyInfo.subType,!i);if(!o)return;if("tooltip"===t){if(u)return void 0;u=!0}if(a&&a.constructor===o)a.name=e.keyInfo.name,a.mergeOption(n,this),a.optionUpdated(n,!1);else{var s=Object(Ia["m"])({componentIndex:r},e.keyInfo);a=new o(n,this,this,s),Object(Ia["m"])(a,s),e.brandNew&&(a.__requireNewView=!0),a.init(n,this,this),a.optionUpdated(null,!0)}}else a&&(a.mergeOption({},this),a.optionUpdated({},!1));a?(d.push(a.option),p.push(a),h++):(d.push(void 0),p.push(void 0))}),this),r[t]=d,a.set(t,p),n.set(t,h),"series"===t&&Ym(this)}Pm(this),Object(Ia["k"])(e,(function(e,t){null!=e&&(gm.hasClass(t)?t&&(i.push(t),o.set(t,!0)):r[t]=null==r[t]?Object(Ia["d"])(e):Object(Ia["I"])(r[t],e,!0))})),s&&s.each((function(e,t){gm.hasClass(t)&&!o.get(t)&&(i.push(t),o.set(t,!0))})),gm.topologicalTravel(i,gm.getAllClassMainTypes(),l,this),this._seriesIndices||Ym(this)},t.prototype.getOption=function(){var e=Object(Ia["d"])(this.option);return Object(Ia["k"])(e,(function(t,r){if(gm.hasClass(r)){for(var a=Ml(t),n=a.length,i=!1,o=n-1;o>=0;o--)a[o]&&!Hl(a[o])?i=!0:(a[o]=null,!i&&n--);a.length=n,e[r]=a}})),delete e[Qm],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var r=this._componentsMap.get(e);if(r){var a=r[t||0];if(a)return a;if(null==t)for(var n=0;n=t:"max"===r?e<=t:e===t}function bg(e,t){return e.join(",")===t.join(",")}var _g=mg,xg=Ia["k"],wg=Ia["A"],Dg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sg(e){var t=e&&e.itemStyle;if(t)for(var r=0,a=Dg.length;r=0;m--){var g=e[m];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,d)),p>=0){var v=g.data.getByRawIndex(g.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&h>=0&&v>0||"samesign"===l&&h<=0&&v<0){h=dl(h,v),f=v;break}}}return a[0]=h,a[1]=f,a}))}))}var qg,Yg,Xg,Kg,Zg,Jg=function(){function e(e){this.data=e.data||(e.sourceFormat===Sm?{}:[]),this.sourceFormat=e.sourceFormat||Tm,this.seriesLayoutBy=e.seriesLayoutBy||Im,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rc&&(c=h)}s[0]=l,s[1]=c}},a=function(){return this._data?this._data.length/this._dimSize:0};function n(e){for(var t=0;t=0&&(s=i.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return _v(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,r){},e}();function Dv(e){var t,r;return Ia["A"](e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Sv(e){return new Cv(e)}var Cv=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,r=this._upstream,a=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(t=this._plan(this.context));var i,o=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}o===l&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,i=this._doReset(a)),this._modBy=l,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,h=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!a&&(i||p1&&a>0?s:o}};return i;function o(){return t=e?null:it},gte:function(e,t){return e>=t}},Pv=function(){function e(e,t){if(!Object(Ia["z"])(t)){var r="";0,Jm(r)}this._opFn=Mv[e],this._rvalFloat=wl(t)}return e.prototype.evaluate=function(e){return Object(Ia["z"])(e)?this._opFn(e,this._rvalFloat):this._opFn(wl(e),this._rvalFloat)},e}(),kv=function(){function e(e,t){var r="desc"===e;this._resultLT=r?1:-1,null==t&&(t=r?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var r=Object(Ia["z"])(e)?e:wl(e),a=Object(Ia["z"])(t)?t:wl(t),n=isNaN(r),i=isNaN(a);if(n&&(r=this._incomparable),i&&(a=this._incomparable),n&&i){var o=Object(Ia["C"])(e),s=Object(Ia["C"])(t);o&&(r=s?e:0),s&&(a=o?t:0)}return ra?-this._resultLT:0},e}(),Nv=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=wl(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r===this._rvalTypeof||"number"!==r&&"number"!==this._rvalTypeof||(t=wl(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Ev(e,t){return"eq"===e||"ne"===e?new Nv("eq"===e,t):Object(Ia["q"])(Mv,e)?new Pv(e,t):null}var Lv=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Iv(e,t)},e}();function Rv(e,t){var r=new Lv,a=e.data,n=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Im&&Jm(o);var s=[],l={},c=e.dimensionsDefine;if(c)Object(Ia["k"])(c,(function(e,t){var r=e.name,a={index:t,name:r,displayName:e.displayName};if(s.push(a),null!=r){var n="";Object(Ia["q"])(l,r)&&Jm(n),l[r]=a}}));else for(var u=0;u65535?Yv:Xv}function ey(){return[1/0,-1/0]}function ty(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ry(e,t,r,a,n){var i=Jv[r||"float"];if(n){var o=e[t],s=o&&o.length;if(s!==a){for(var l=new i(a),c=0;cm[1]&&(m[1]=f)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,n=this._chunks,i=this._dimensions,o=i.length,s=this._rawExtent,l=Object(Ia["H"])(i,(function(e){return e.property})),c=0;cg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(null!=r&&re))return i;n=i-1}}return-1},e.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,n=a[e],i=[];if(!n)return i;null==r&&(r=1/0);for(var o=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(o=h,s=p,l=0),p===s&&(i[l++]=c))}return i.length=l,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var n=0;n=u&&v<=d||isNaN(v))&&(s[l++]=f),f++}h=!0}else if(2===n){m=p[a[0]];var y=p[a[1]],b=e[a[1]][0],_=e[a[1]][1];for(g=0;g=u&&v<=d||isNaN(v))&&(x>=b&&x<=_||isNaN(x))&&(s[l++]=f),f++}h=!0}}if(!h)if(1===n)for(g=0;g=u&&v<=d||isNaN(v))&&(s[l++]=w)}else for(g=0;ge[C][1])&&(D=!1)}D&&(s[l++]=t.getRawIndex(g))}return lg[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var r,a,n,i=this.clone([e],!0),o=i._chunks,s=o[e],l=this.count(),c=0,u=Math.floor(1/t),d=this.getRawIndex(0),p=new(Qv(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));p[c++]=d;for(var h=1;hr&&(r=a,n=b))}T>0&&To&&(f=o-c);for(var m=0;mh&&(h=v,p=c+m)}var y=this.getRawIndex(u),b=this.getRawIndex(p);uc-h&&(s=c-h,o.length=s);for(var f=0;fu[1]&&(u[1]=g),d[p++]=v}return n._count=p,n._indices=d,n._updateGetRawIdx(),n},e.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,n=0,i=this.count();ns&&(s=u)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,n=0;n=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,r,a){return Iv(e[a],this._dimensions[a])}Hv={arrayRows:e,objectRows:function(e,t,r,a){return Iv(e[t],this._dimensions[a])},keyedColumns:e,original:function(e,t,r,a){var n=e&&(null==e.value?e:e.value);return Iv(n instanceof Array?n[a]:n,this._dimensions[a])},typedArray:function(e,t,r,a){return e[a]}}}(),e}(),ny=ay,iy=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,r=this._sourceHost,a=this._getUpstreamSourceManagers(),n=!!a.length;if(sy(r)){var i=r,o=void 0,s=void 0,l=void 0;if(n){var c=a[0];c.prepareSource(),l=c.getSource(),o=l.data,s=l.sourceFormat,t=[c._getVersionSign()]}else o=i.get("data",!0),s=Object(Ia["E"])(o)?Cm:xm,t=[];var u=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},p=Object(Ia["P"])(u.seriesLayoutBy,d.seriesLayoutBy)||null,h=Object(Ia["P"])(u.sourceHeader,d.sourceHeader),f=Object(Ia["P"])(u.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!h!==!!d.sourceHeader||f;e=m?[ev(o,{seriesLayoutBy:p,sourceHeader:h,dimensions:f},s)]:[]}else{var g=r;if(n){var v=this._applyTransform(a);e=v.sourceList,t=v.upstreamSignList}else{var y=g.get("source",!0);e=[ev(y,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,r=this._sourceHost,a=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(null!=n){var i="";1!==e.length&&ly(i)}var o=[],s=[];return Object(Ia["k"])(e,(function(e){e.prepareSource();var t=e.getSource(n||0),r="";null==n||t||ly(r),o.push(t),s.push(e._getVersionSign())})),a?t=Gv(a,o,{datasetIndex:r.componentIndex}):null!=n&&(t=[rv(o[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||r>0&&!e.noHeader;return Object(Ia["k"])(e.blocks,(function(e){var r=vy(e);r>=t&&(t=r+ +(a&&(!r||my(e)&&!e.noHeader)))})),t}return 0}function yy(e,t,r,a){var n=t.noHeader,i=xy(vy(t)),o=[],s=t.blocks||[];Object(Ia["b"])(!s||Object(Ia["t"])(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(Ia["q"])(c,l)){var u=new kv(c[l],null);s.sort((function(e,t){return u.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(Ia["k"])(s,(function(r,n){var s=t.valueFormatter,l=gy(r)(s?Object(Ia["m"])(Object(Ia["m"])({},e),{valueFormatter:s}):e,r,n>0?i.html:0,a);null!=l&&o.push(l)}));var d="richText"===e.renderMode?o.join(i.richText):wy(a,o.join(""),n?r:i.html);if(n)return d;var p=Hf(t.header,"ordinal",e.useUTC),h=dy(a,e.renderMode).nameStyle,f=uy(a);return"richText"===e.renderMode?Cy(e,p,h)+i.richText+d:wy(a,'
'+dn(p)+"
"+d,r)}function by(e,t,r,a){var n=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=Object(Ia["t"])(e)?e:[e],Object(Ia["H"])(e,(function(e,t){return Hf(e,Object(Ia["t"])(h)?h[t]:h,c)}))};if(!i||!o){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),p=i?"":Hf(l,"ordinal",c),h=t.valueType,f=o?[]:u(t.value,t.dataIndex),m=!s||!i,g=!s&&i,v=dy(a,n),y=v.nameStyle,b=v.valueStyle;return"richText"===n?(s?"":d)+(i?"":Cy(e,p,y))+(o?"":Ty(e,f,m,g,b)):wy(a,(s?"":d)+(i?"":Dy(p,!s,y))+(o?"":Sy(f,m,g,b)),r)}}function _y(e,t,r,a,n,i){if(e){var o=gy(e),s={useUTC:n,renderMode:r,orderMode:a,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function xy(e){return{html:py[e],richText:hy[e]}}function wy(e,t,r){var a='
',n="margin: "+r+"px 0 0",i=uy(e);return'
'+t+a+"
"}function Dy(e,t,r){var a=t?"margin-left:2px":"";return''+dn(e)+""}function Sy(e,t,r,a){var n=r?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return e=Object(Ia["t"])(e)?e:[e],''+Object(Ia["H"])(e,(function(e){return dn(e)})).join("  ")+""}function Cy(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Ty(e,t,r,a,n){var i=[n],o=a?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(Ia["t"])(t)?t.join(" "):t,i)}function Iy(e,t){var r=e.getData().getItemVisual(t,"style"),a=r[e.visualDrawType];return Jf(a)}function Oy(e,t){var r=e.get("padding");return null!=r?r:"richText"===t?[8,10]:10}var Ay=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Sl()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,r){var a="richText"===r?this._generateStyleName():null,n=Zf({color:t,type:e,renderMode:r,markerId:a});return Object(Ia["C"])(n)?n:(this.richTextStyles[a]=n.style,n.content)},e.prototype.wrapRichTextStyle=function(e,t){var r={};Object(Ia["t"])(t)?Object(Ia["k"])(t,(function(e){return Object(Ia["m"])(r,e)})):Object(Ia["m"])(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},e}();function My(e){var t,r,a,n,i=e.series,o=e.dataIndex,s=e.multipleSeries,l=i.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,d=i.getRawValue(o),p=Object(Ia["t"])(d),h=Iy(i,o);if(u>1||p&&!u){var f=Py(d,i,o,c,h);t=f.inlineValues,r=f.inlineValueTypes,a=f.blocks,n=f.inlineValues[0]}else if(u){var m=l.getDimensionInfo(c[0]);n=t=_v(l,o,c[0]),r=m.type}else n=t=p?d[0]:d;var g=Wl(i),v=g&&i.name||"",y=l.getName(o),b=s?v:y;return fy("section",{header:v,noHeader:s||!g,sortParam:n,blocks:[fy("nameValue",{markerType:"item",markerColor:h,name:b,noName:!Object(Ia["T"])(b),value:t,valueType:r,dataIndex:o})].concat(a||[])})}function Py(e,t,r,a,n){var i=t.getData(),o=Object(Ia["N"])(e,(function(e,t,r){var a=i.getDimensionInfo(r);return e||a&&!1!==a.tooltip&&null!=a.displayName}),!1),s=[],l=[],c=[];function u(e,t){var r=i.getDimensionInfo(t);r&&!1!==r.otherDims.tooltip&&(o?c.push(fy("nameValue",{markerType:"subItem",markerColor:n,name:r.displayName,value:e,valueType:r.type})):(s.push(e),l.push(r.type)))}return a.length?Object(Ia["k"])(a,(function(e){u(_v(i,r,e),e)})):Object(Ia["k"])(e,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}var ky=Jl();function Ny(e,t){return e.getName(t)||e.getId(t)}var Ey="__universalTransitionEnabled",Ly=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Ca(t,e),t.prototype.init=function(e,t,r){this.seriesIndex=this.componentIndex,this.dataTask=Sv({count:jy,reset:Vy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r);var a=ky(this).sourceManager=new iy(this);a.prepareSource();var n=this.getInitialData(e,r);By(n,this),this.dataTask.context.data=n,ky(this).dataBeforeProcessed=n,Ry(this),this._initSelectedMapFromData(n)},t.prototype.mergeDefaultAndTheme=function(e,t){var r=cm(this),a=r?dm(e):{},n=this.subType;gm.hasClass(n)&&(n+="Series"),Ia["I"](e,t.getTheme().get(this.subType)),Ia["I"](e,this.getDefaultOption()),Pl(e,"label",["show"]),this.fillDataTextStyle(e.data),r&&um(e,a,r)},t.prototype.mergeOption=function(e,t){e=Ia["I"](this.option,e,!0),this.fillDataTextStyle(e.data);var r=cm(this);r&&um(this.option,e,r);var a=ky(this).sourceManager;a.dirty(),a.prepareSource();var n=this.getInitialData(e,t);By(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,ky(this).dataBeforeProcessed=n,Ry(this),this._initSelectedMapFromData(n)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ia["E"](e))for(var t=["show"],r=0;rthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,r){var a=this.ecModel,n=Gm.prototype.getColorFromPalette.call(this,e,t,r);return n||(n=a.getColorFromPalette(e,t,r)),n},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var r=this.option.selectedMap;if(r){var a=this.option.selectedMode,n=this.getData(t);if("series"===a||"all"===r)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var i=0;i=0&&r.push(n)}return r},t.prototype.isSelected=function(e,t){var r=this.option.selectedMap;if(!r)return!1;var a=this.getData(t);return("all"===r||r[Ny(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ey])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var r,a,n=this.option,i=n.selectedMode,o=t.length;if(i&&o)if("series"===i)n.selectedMap="all";else if("multiple"===i){Ia["A"](n.selectedMap)||(n.selectedMap={});for(var s=n.selectedMap,l=0;l0&&this._innerSelect(e,t)}},t.registerClass=function(e){return gm.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(gm);function Ry(e){var t=e.name;Wl(e)||(e.name=Fy(e)||t)}function Fy(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),a=[];return Ia["k"](r,(function(e){var r=t.getDimensionInfo(e);r.displayName&&a.push(r.displayName)})),a.join(" ")}function jy(e){return e.model.getRawData().count()}function Vy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),$y}function $y(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function By(e,t){Ia["k"](Ia["e"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(r){e.wrapMethod(r,Ia["h"](zy,t))}))}function zy(e,t){var r=Gy(e);return r&&r.setOutputEnd((t||this).count()),t}function Gy(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var a=r.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(e.uid))}return a}}Ia["K"](Ly,wv),Ia["K"](Ly,Gm),yc(Ly,gm);var Uy=Ly,Wy=function(){function e(){this.group=new Gs,this.uid=Yh("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,r,a){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,r,a){},e.prototype.updateLayout=function(e,t,r,a){},e.prototype.updateVisual=function(e,t,r,a){},e.prototype.toggleBlurSeries=function(e,t,r){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();gc(Wy),Dc(Wy);var Hy=Wy;function qy(){var e=Jl();return function(t){var r=e(t),a=t.pipelineContext,n=!!r.large,i=!!r.progressiveRender,o=r.large=!(!a||!a.large),s=r.progressiveRender=!(!a||!a.progressiveRender);return!(n===o&&i===s)&&"reset"}}var Yy=ju.CMD,Xy=[[],[],[]],Ky=Math.sqrt,Zy=Math.atan2;function Jy(e,t){if(t){var r,a,n,i,o,s,l=e.data,c=e.len(),u=Yy.M,d=Yy.C,p=Yy.L,h=Yy.R,f=Yy.A,m=Yy.Q;for(n=0,i=0;n1&&(o*=Qy(f),s*=Qy(f));var m=(n===i?-1:1)*Qy((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,g=m*o*h/s,v=m*-s*p/o,y=(e+r)/2+tb(d)*g-eb(d)*v,b=(t+a)/2+eb(d)*g+tb(d)*v,_=ib([1,0],[(p-g)/o,(h-v)/s]),x=[(p-g)/o,(h-v)/s],w=[(-1*p-g)/o,(-1*h-v)/s],D=ib(x,w);if(nb(x,w)<=-1&&(D=rb),nb(x,w)>=1&&(D=0),D<0){var S=Math.round(D/rb*1e6)/1e6;D=2*rb+S%2*rb}u.addData(c,y,b,o,s,_,D,d,i)}var sb=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,lb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function cb(e){var t=new ju;if(!e)return t;var r,a=0,n=0,i=a,o=n,s=ju.CMD,l=e.match(sb);if(!l)return t;for(var c=0;cM*M+P*P&&(S=T,C=I),{cx:S,cy:C,x0:-u,y0:-d,x1:S*(n/x-1),y1:C*(n/x-1)}}function Rb(e){var t;if(Object(Ia["t"])(e)){var r=e.length;if(!r)return e;t=1===r?[e[0],e[0],0,0]:2===r?[e[0],e[0],e[1],e[1]]:3===r?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Fb(e,t){var r,a=Pb(t.r,0),n=Pb(t.r0||0,0),i=a>0,o=n>0;if(i||o){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,c=t.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=t.cx,d=t.cy,p=!!t.clockwise,h=Ab(c-l),f=h>Sb&&h%Sb;if(f>Nb&&(h=f),a>Nb)if(h>Sb-Nb)e.moveTo(u+a*Tb(l),d+a*Cb(l)),e.arc(u,d,a,l,c,!p),n>Nb&&(e.moveTo(u+n*Tb(c),d+n*Cb(c)),e.arc(u,d,n,c,l,p));else{var m=void 0,g=void 0,v=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,D=void 0,S=void 0,C=void 0,T=void 0,I=void 0,O=void 0,A=void 0,M=void 0,P=a*Tb(l),k=a*Cb(l),N=n*Tb(c),E=n*Cb(c),L=h>Nb;if(L){var R=t.cornerRadius;R&&(r=Rb(R),m=r[0],g=r[1],v=r[2],y=r[3]);var F=Ab(a-n)/2;if(b=kb(F,v),_=kb(F,y),x=kb(F,m),w=kb(F,g),C=D=Pb(b,_),T=S=Pb(x,w),(D>Nb||S>Nb)&&(I=a*Tb(c),O=a*Cb(c),A=n*Tb(l),M=n*Cb(l),hNb){var W=kb(v,C),H=kb(y,C),q=Lb(A,M,P,k,a,W,p),Y=Lb(I,O,N,E,a,H,p);e.moveTo(u+q.cx+q.x0,d+q.cy+q.y0),C0&&e.arc(u+q.cx,d+q.cy,W,Ob(q.y0,q.x0),Ob(q.y1,q.x1),!p),e.arc(u,d,a,Ob(q.cy+q.y1,q.cx+q.x1),Ob(Y.cy+Y.y1,Y.cx+Y.x1),!p),H>0&&e.arc(u+Y.cx,d+Y.cy,H,Ob(Y.y1,Y.x1),Ob(Y.y0,Y.x0),!p))}else e.moveTo(u+P,d+k),e.arc(u,d,a,l,c,!p);else e.moveTo(u+P,d+k);if(n>Nb&&L)if(T>Nb){W=kb(m,T),H=kb(g,T),q=Lb(N,E,I,O,n,-H,p),Y=Lb(P,k,A,M,n,-W,p);e.lineTo(u+q.cx+q.x0,d+q.cy+q.y0),T0&&e.arc(u+q.cx,d+q.cy,H,Ob(q.y0,q.x0),Ob(q.y1,q.x1),!p),e.arc(u,d,n,Ob(q.cy+q.y1,q.cx+q.x1),Ob(Y.cy+Y.y1,Y.cx+Y.x1),p),W>0&&e.arc(u+Y.cx,d+Y.cy,W,Ob(Y.y1,Y.x1),Ob(Y.y0,Y.x0),!p))}else e.lineTo(u+N,d+E),e.arc(u,d,n,c,l,p);else e.lineTo(u+N,d+E)}else e.moveTo(u,d);e.closePath()}}}var jb=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),Vb=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultShape=function(){return new jb},t.prototype.buildPath=function(e,t){Fb(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ud);Vb.prototype.type="sector";var $b=Vb,Bb=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zb=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultShape=function(){return new Bb},t.prototype.buildPath=function(e,t){var r=t.cx,a=t.cy,n=2*Math.PI;e.moveTo(r+t.r,a),e.arc(r,a,t.r,0,n,!1),e.moveTo(r+t.r0,a),e.arc(r,a,t.r0,0,n,!0)},t}(ud);zb.prototype.type="ring";var Gb=zb;function Ub(e,t,r,a){var n,i,o,s,l=[],c=[],u=[],d=[];if(a){o=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,h=e.length;p=2){if(a){var i=Ub(n,a,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=i[2*s],c=i[2*s+1],u=n[(s+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);s=1;for(var d=n.length;sb_[1]){if(o=!1,n)return o;var c=Math.abs(b_[0]-y_[1]),u=Math.abs(y_[0]-b_[1]);Math.min(c,u)>a.len()&&(cMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function H_(e){return!e.isGroup}function q_(e){return null!=e.shape}function Y_(e,t,r){if(e&&t){var a=n(e);t.traverse((function(e){if(H_(e)&&e.anid){var t=a[e.anid];if(t){var n=i(e);e.attr(i(t)),ch(e,n,r,Hd(e).dataIndex)}}}))}function n(e){var t={};return e.traverse((function(e){H_(e)&&e.anid&&(t[e.anid]=e)})),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return q_(e)&&(t.shape=Object(Ia["m"])({},e.shape)),t}}function X_(e,t){return Object(Ia["H"])(e,(function(e){var r=e[0];r=I_(r,t.x),r=O_(r,t.x+t.width);var a=e[1];return a=I_(a,t.y),a=O_(a,t.y+t.height),[r,a]}))}function K_(e,t){var r=I_(e.x,t.x),a=O_(e.x+e.width,t.x+t.width),n=I_(e.y,t.y),i=O_(e.y+e.height,t.y+t.height);if(a>=r&&i>=n)return{x:r,y:n,width:a-r,height:i-n}}function Z_(e,t,r){var a=Object(Ia["m"])({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(n.image=e.slice(8),Object(Ia["i"])(n,r),new yd(a)):L_(e.replace("path://",""),a,r,"center")}function J_(e,t,r,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=ex(h,f,u,d)/p;return!(g<0||g>1)}function ex(e,t,r,a){return e*a-r*t}function tx(e){return e<=1e-6&&e>=-1e-6}function rx(e){var t=e.itemTooltipOption,r=e.componentModel,a=e.itemName,n=Object(Ia["C"])(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&Object(Ia["k"])(Object(Ia["F"])(l),(function(e){Object(Ia["q"])(s,e)||(s[e]=l[e],s.$vars.push(e))}));var c=Hd(e.el);c.componentMainType=i,c.componentIndex=o,c.tooltipConfig={name:a,option:Object(Ia["i"])({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function ax(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function nx(e,t){if(e)if(Object(Ia["t"])(e))for(var r=0;r=0?d():u=setTimeout(d,-n),l=a};return p.clear=function(){u&&(clearTimeout(u),u=null)},p.debounceNextCall=function(e){s=e},p}function yx(e,t,r,a){var n=e[t];if(n){var i=n[fx]||n,o=n[gx],s=n[mx];if(s!==r||o!==a){if(null==r||!a)return e[t]=i;n=e[t]=vx(i,r,"debounce"===a),n[fx]=i,n[gx]=a,n[mx]=r}return n}}function bx(e,t){var r=e[t];r&&r[fx]&&(r.clear&&r.clear(),e[t]=r[fx])}var _x=Jl(),xx={itemStyle:Sc(zh,!0),lineStyle:Sc(Vh,!0)},wx={lineStyle:"stroke",itemStyle:"fill"};function Dx(e,t){var r=e.visualStyleMapper||xx[t];return r||(console.warn("Unknown style type '"+t+"'."),xx.itemStyle)}function Sx(e,t){var r=e.visualDrawType||wx[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Cx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=e.getModel(a),i=Dx(e,a),o=i(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Sx(e,a),c=o[l],u=Object(Ia["w"])(c)?c:null,d="auto"===o.fill||"auto"===o.stroke;if(!o[l]||u||d){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(Ia["w"])(o.fill)?p:o.fill,o.stroke="auto"===o.stroke||Object(Ia["w"])(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return r.setVisual("colorFromPalette",!1),{dataEach:function(t,r){var a=e.getDataParams(r),n=Object(Ia["m"])({},o);n[l]=u(a),t.setItemVisual(r,"style",n)}}}},Tx=new Hh,Ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var r=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=Dx(e,a),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(e,t){var r=e.getRawDataItem(t);if(r&&r[a]){Tx.option=r[a];var o=n(Tx),s=e.ensureUniqueItemVisual(t,"style");Object(Ia["m"])(s,o),Tx.option.decal&&(e.setItemVisual(t,"decal",Tx.option.decal),Tx.option.decal.dirty=!0),i in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Ox={performRawSeries:!0,overallReset:function(e){var t=Object(Ia["f"])();e.eachSeries((function(e){var r=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+r,n=t.get(a);n||(n={},t.set(a,n)),_x(e).scope=n}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var r=t.getRawData(),a={},n=t.getData(),i=_x(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=Sx(t,o);n.each((function(e){var t=n.getRawIndex(e);a[t]=e})),r.each((function(e){var o=a[e],l=n.getItemVisual(o,"colorFromPalette");if(l){var c=n.ensureUniqueItemVisual(o,"style"),u=r.getName(e)||e+"",d=r.count();c[s]=t.getColorFromPalette(u,i,d)}}))}}))}},Ax=Math.PI;function Mx(e,t){t=t||{},Ia["i"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Gs,a=new Id({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(a);var n,i=new Wd({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Id({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return r.add(o),t.showSpinner&&(n=new c_({shape:{startAngle:-Ax/2,endAngle:-Ax/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),n.animateShape(!0).when(1e3,{endAngle:3*Ax/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*Ax/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&r?10:0)-r)/2-(t.showSpinner&&r?0:5+r/2)+(t.showSpinner?0:r/2)+(r?0:s),c=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:c}),o.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),a.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Px=function(){function e(e,t,r,a){this._stageTaskMap=Object(Ia["f"])(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,n=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,i=n?r.step:null,o=a&&a.modDataCount,s=null!=o?Math.ceil(o/i):null;return{step:i,modBy:s,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),n=a.count(),i=r.progressiveEnabled&&t.incrementalPrepareRender&&n>=r.threshold,o=e.get("large")&&n>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?n:null;e.pipelineContext=r.context={progressiveRender:i,modDataCount:s,large:o}},e.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=Object(Ia["f"])();e.eachSeries((function(e){var a=e.getProgressive(),n=e.uid;r.set(n,{id:n,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:a&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;Object(Ia["k"])(this._allHandlers,(function(a){var n=e.get(a.uid)||e.set(a.uid,{}),i="";Object(Ia["b"])(!(a.reset&&a.overallReset),i),a.reset&&this._createSeriesStageTask(a,n,t,r),a.overallReset&&this._createOverallStageTask(a,n,t,r)}),this)},e.prototype.prepareView=function(e,t,r,a){var n=e.renderTask,i=n.context;i.model=t,i.ecModel=r,i.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},e.prototype._performStageTasks=function(e,t,r,a){a=a||{};var n=!1,i=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(Ia["k"])(e,(function(e,s){if(!a.visualType||a.visualType===e.visualType){var l=i._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var d,p=u.agentStubMap;p.each((function(e){o(a,e)&&(e.dirty(),d=!0)})),d&&u.dirty(),i.updatePayload(u,r);var h=i.getPerformArgs(u,a.block);p.each((function(e){e.perform(h)})),u.perform(h)&&(n=!0)}else c&&c.each((function(s,l){o(a,s)&&s.dirty();var c=i.getPerformArgs(s,a.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),i.updatePayload(s,r),s.perform(c)&&(n=!0)}))}})),this.unfinished=n||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,r,a){var n=this,i=t.seriesTaskMap,o=t.seriesTaskMap=Object(Ia["f"])(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=o.set(s,i&&i.get(s)||Sv({plan:Rx,reset:Fx,count:$x}));l.context={model:t,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(t,l)}e.createOnAllSeries?r.eachRawSeries(c):s?r.eachRawSeriesByType(s,c):l&&l(r,a).each(c)},e.prototype._createOverallStageTask=function(e,t,r,a){var n=this,i=t.overallTask=t.overallTask||Sv({reset:kx});i.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:n};var o=i.agentStubMap,s=i.agentStubMap=Object(Ia["f"])(),l=e.seriesType,c=e.getTargetSeries,u=!0,d=!1,p="";function h(e){var t=e.uid,r=s.set(t,o&&o.get(t)||(d=!0,Sv({reset:Nx,onDirty:Lx})));r.context={model:e,overallProgress:u},r.agent=i,r.__block=u,n._pipe(e,r)}Object(Ia["b"])(!e.createOnAllSeries,p),l?r.eachRawSeriesByType(l,h):c?c(r,a).each(h):(u=!1,Object(Ia["k"])(r.getSeries(),h)),d&&i.dirty()},e.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},e.wrapStageHandler=function(e,t){return Object(Ia["w"])(e)&&(e={overallReset:e,seriesType:Bx(e)}),e.uid=Yh("stageHandler"),t&&(e.visualType=t),e},e}();function kx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Nx(e){return e.overallProgress&&Ex}function Ex(){this.agent.dirty(),this.getDownstream().dirty()}function Lx(){this.agent&&this.agent.dirty()}function Rx(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Fx(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ml(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(Ia["H"])(t,(function(e,t){return Vx(t)})):jx}var jx=Vx(0);function Vx(e){return function(t,r){var a=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var i=t.start;i0&&u===n.length-c.length){var d=n.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(n)&&(r[n]=e,s=!0),s||(a[n]=e)}))}return{cptQuery:t,dataQuery:r,otherQuery:a}},e.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,n=r.packedEvent,i=r.model,o=r.view;if(!i||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,i,"mainType")&&c(s,i,"subType")&&c(s,i,"index","componentIndex")&&c(s,i,"name")&&c(s,i,"id")&&c(l,n,"name")&&c(l,n,"dataIndex")&&c(l,n,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,a,n));function c(e,t,r,a){return null==e[r]||t[a||r]===e[r]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),rw=["symbol","symbolSize","symbolRotate","symbolOffset"],aw=rw.concat(["symbolKeepAspect"]),nw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var a={},n={},i=!1,o=0;o=0&&Aw(l)?l:.5;var c=e.createRadialGradient(o,s,0,o,s,l);return c}function kw(e,t,r){for(var a="radial"===t.type?Pw(e,t,r):Mw(e,t,r),n=t.colorStops,i=0;i0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(Ia["z"])(e)?[e]:Object(Ia["t"])(e)?e:null:null}function Fw(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Rw(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&1!==n&&(r=Object(Ia["H"])(r,(function(e){return e/n})),a/=n)}return[r,a]}var jw=new ju(!0);function Vw(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function $w(e){return"string"===typeof e&&"none"!==e}function Bw(e){var t=e.fill;return null!=t&&"none"!==t}function zw(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Gw(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Uw(e,t,r){var a=Mc(t.image,t.__image,r);if(kc(a)){var n=e.createPattern(a,t.repeat||"repeat");if("function"===typeof DOMMatrix&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Ia["a"]),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function Ww(e,t,r,a){var n,i=Vw(r),o=Bw(r),s=r.strokePercent,l=s<1,c=!t.path;t.silent&&!l||!c||t.createPathProxy();var u=t.path||jw,d=t.__dirty;if(!a){var p=r.fill,h=r.stroke,f=o&&!!p.colorStops,m=i&&!!h.colorStops,g=o&&!!p.image,v=i&&!!h.image,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(f||m)&&(w=t.getBoundingRect()),f&&(y=d?kw(e,p,w):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(b=d?kw(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),g&&(_=d||!t.__canvasFillPattern?Uw(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=_),v&&(x=d||!t.__canvasStrokePattern?Uw(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=y:g&&(_?e.fillStyle=_:o=!1),m?e.strokeStyle=b:v&&(x?e.strokeStyle=x:i=!1)}var D,S,C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&r.lineDash&&(n=Fw(t),D=n[0],S=n[1]);var T=!0;(c||d&bi)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),T=!1),u.reset(),t.buildPath(u,t.shape,a),u.toStatic(),t.pathUpdated()),T&&u.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=S),a||(r.strokeFirst?(i&&Gw(e,r),o&&zw(e,r)):(o&&zw(e,r),i&&Gw(e,r))),D&&e.setLineDash([])}function Hw(e,t,r){var a=t.__image=Mc(r.image,t.__image,t,t.onload);if(a&&kc(a)){var n=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=a.width,s=a.height),r.sWidth&&r.sHeight){var c=r.sx||0,u=r.sy||0;e.drawImage(a,c,u,r.sWidth,r.sHeight,n,i,o,s)}else if(r.sx&&r.sy){c=r.sx,u=r.sy;var d=o-c,p=s-u;e.drawImage(a,c,u,d,p,n,i,o,s)}else e.drawImage(a,n,i,o,s)}}function qw(e,t,r){var a,n=r.text;if(null!=n&&(n+=""),n){e.font=r.font||ys["a"],e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(a=Fw(t),i=a[0],o=a[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Vw(r)&&e.strokeText(n,r.x,r.y),Bw(r)&&e.fillText(n,r.x,r.y)):(Bw(r)&&e.fillText(n,r.x,r.y),Vw(r)&&e.strokeText(n,r.x,r.y)),i&&e.setLineDash([])}}var Yw=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Kw(e,t,r,a,n){var i=!1;if(!a&&(r=r||{},t===r))return!1;if(a||t.opacity!==r.opacity){sD(e,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Xc.opacity:o}(a||t.blend!==r.blend)&&(i||(sD(e,n),i=!0),e.globalCompositeOperation=t.blend||Xc.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,r){if(!this[UD])if(this._disposed)SS(this.id);else{var a,n,i;if(Object(Ia["A"])(t)&&(r=t.lazyUpdate,a=t.silent,n=t.replaceMerge,i=t.transition,t=t.notMerge),this[UD]=!0,!this._model||t){var o=new _g(this._api),s=this._theme,l=this._model=new sg;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:n},OS);var c={seriesTransition:i,optionChanged:!0};if(r)this[WD]={silent:a,updateParams:c},this[UD]=!1,this.getZr().wakeUp();else{try{tS(this),nS.update.call(this,null,c)}catch(u){throw this[WD]=null,this[UD]=!1,u}this._ssr||this._zr.flush(),this[WD]=null,this[UD]=!1,lS.call(this,a),cS.call(this,a)}}},t.prototype.setTheme=function(){Zm("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ta["a"].hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ta["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(Ia["k"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,r=this._model,a=[],n=this;Object(Ia["k"])(t,(function(e){r.eachComponent({mainType:e},(function(e){var t=n._componentsMap[e.__viewId];t.group.ignore||(a.push(t),t.group.ignore=!0)}))}));var i="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(Ia["k"])(a,(function(e){e.group.ignore=!1})),i}SS(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,r=this.group,a=Math.min,n=Math.max,i=1/0;if(NS[r]){var o=i,s=i,l=-i,c=-i,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Object(Ia["k"])(kS,(function(i,d){if(i.group===r){var p=t?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(Ia["d"])(e)),h=i.getDom().getBoundingClientRect();o=a(h.left,o),s=a(h.top,s),l=n(h.right,l),c=n(h.bottom,c),u.push({dom:p,left:h.left,top:h.top})}})),o*=d,s*=d,l*=d,c*=d;var p=l-o,h=c-s,f=ys["d"].createCanvas(),m=Ks(f,{renderer:t?"svg":"canvas"});if(m.resize({width:p,height:h}),t){var g="";return Object(Ia["k"])(u,(function(e){var t=e.left-o,r=e.top-s;g+=''+e.dom+""})),m.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new Id({shape:{x:0,y:0,width:p,height:h},style:{fill:e.connectedBackgroundColor}})),Object(Ia["k"])(u,(function(e){var t=new yd({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});m.add(t)})),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}SS(this.id)},t.prototype.convertToPixel=function(e,t){return iS(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return iS(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var r,a=this._model,n=ec(a,e);return Object(Ia["k"])(n,(function(e,a){a.indexOf("Models")>=0&&Object(Ia["k"])(e,(function(e){var n=e.coordinateSystem;if(n&&n.containPoint)r=r||!!n.containPoint(t);else if("seriesModels"===a){var i=this._chartsMap[e.__viewId];i&&i.containPoint&&(r=r||i.containPoint(t,e))}else 0}),this)}),this),!!r}SS(this.id)},t.prototype.getVisual=function(e,t){var r=this._model,a=ec(r,e,{defaultMainType:"series"}),n=a.seriesModel;var i=n.getData(),o=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?i.indexOfRawIndex(a.dataIndex):null;return null!=o?ow(i,o,t):sw(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(Ia["k"])(DS,(function(t){var r=function(r){var a,n=e.getModel(),i=r.target,o="globalout"===t;if(o?a={}:i&&pw(i,(function(e){var t=Hd(e);if(t&&null!=t.dataIndex){var r=t.dataModel||n.getSeriesByIndex(t.seriesIndex);return a=r&&r.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=Object(Ia["m"])({},t.eventData),!0}),!0),a){var s=a.componentType,l=a.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=a.seriesIndex);var c=s&&null!=l&&n.getComponent(s,l),u=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,a.event=r,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:u},e.trigger(t,a)}};r.zrEventfulCallAtLast=!0,e._zr.on(t,r,e)})),Object(Ia["k"])(TS,(function(t,r){e._messageCenter.on(r,(function(e){this.trigger(r,e)}),e)})),Object(Ia["k"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),dw(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?SS(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)SS(this.id);else{this._disposed=!0;var e=this.getDom();e&&ic(this.getDom(),LS,"");var t=this,r=t._api,a=t._model;Object(Ia["k"])(t._componentsViews,(function(e){e.dispose(a,r)})),Object(Ia["k"])(t._chartsViews,(function(e){e.dispose(a,r)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete kS[t.id]}},t.prototype.resize=function(e){if(!this[UD])if(this._disposed)SS(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var r=t.resetOption("media"),a=e&&e.silent;this[WD]&&(null==a&&(a=this[WD].silent),r=!0,this[WD]=null),this[UD]=!0;try{r&&tS(this),nS.update.call(this,{type:"resize",animation:Object(Ia["m"])({duration:0},e&&e.animation)})}catch(n){throw this[UD]=!1,n}this[UD]=!1,lS.call(this,a),cS.call(this,a)}}},t.prototype.showLoading=function(e,t){if(this._disposed)SS(this.id);else if(Object(Ia["A"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),PS[e]){var r=PS[e](this._api,t),a=this._zr;this._loadingFX=r,a.add(r)}},t.prototype.hideLoading=function(){this._disposed?SS(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(Ia["m"])({},e);return t.type=TS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)SS(this.id);else if(Object(Ia["A"])(t)||(t={silent:!!t}),CS[e.type]&&this._model)if(this[UD])this._pendingActions.push(e);else{var r=t.silent;sS.call(this,e,r);var a=t.flush;a?this._zr.flush():!1!==a&&Ta["a"].browser.weChat&&this._throttledZrFlush(),lS.call(this,r),cS.call(this,r)}},t.prototype.updateLabelLayout=function(){DD.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)SS(this.id);else{var t=e.seriesIndex,r=this.getModel(),a=r.getSeriesByIndex(t);0,a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],r=[],a=!1;if(e.eachComponent((function(e,n){var i=n.get("zlevel")||0,o=n.get("z")||0,s=n.getZLevelKey();a=a||!!s,("series"===e?r:t).push({zlevel:i,z:o,idx:n.componentIndex,type:e,key:s})})),a){var n,i,o=t.concat(r);gi(o,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(Ia["k"])(o,(function(t){var r=e.getComponent(t.type,t.idx),a=t.zlevel,o=t.key;null!=n&&(a=Math.max(n,a)),o?(a===n&&o!==i&&a++,i=o):i&&(a===n&&a++,i=""),n=a,r.setZLevel(a)}))}}function r(e){for(var t=[],r=e.currentStates,a=0;at.get("hoverLayerThreshold")&&!Ta["a"].node&&!Ta["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var r=e._chartsMap[t.__viewId];r.__alive&&r.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function n(e,t){var r=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=r)}))}function i(e,t){if(!e.preventAutoZ){var r=e.get("z")||0,a=e.get("zlevel")||0;t.eachRendered((function(e){return o(e,r,a,-1/0),!0}))}}function o(e,t,r,a){var n=e.getTextContent(),i=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),c=0;c0?{duration:i,delay:a.get("delay"),easing:a.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(dh(e))return;if(e instanceof ud&&ih(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(n){e.stateTransition=o;var a=e.getTextContent(),i=e.getTextGuideLine();a&&(a.stateTransition=o),i&&(i.stateTransition=o)}e.__dirty&&r(e)}}))}tS=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),rS(e,!0),rS(e,!1),t.plan()},rS=function(e,t){for(var r=e._model,a=e._scheduler,n=t?e._componentsViews:e._chartsViews,i=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l=0)){YS.push(r);var i=Hx.wrapStageHandler(r,n);i.__prio=t,i.__raw=r,e.push(i)}}function KS(e,t){PS[e]=t}function ZS(e,t,r){var a=TD("registerMap");a&&a(e,t,r)}var JS=zv;qS(LD,Cx),qS(jD,Ix),qS(jD,Ox),qS(LD,nw),qS(jD,iw),qS(zD,xD),VS(Ug),$S(AD,Wg),KS("default",Mx),US({type:ip,event:ip,update:ip},Ia["L"]),US({type:op,event:op,update:op},Ia["L"]),US({type:sp,event:sp,update:sp},Ia["L"]),US({type:lp,event:lp,update:lp},Ia["L"]),US({type:cp,event:cp,update:cp},Ia["L"]),jS("light",Yx),jS("dark",ew);var QS=[],eC={registerPreprocessor:VS,registerProcessor:$S,registerPostInit:BS,registerPostUpdate:zS,registerUpdateLifecycle:GS,registerAction:US,registerCoordinateSystem:WS,registerLayout:HS,registerVisual:qS,registerTransform:JS,registerLoading:KS,registerMap:ZS,registerImpl:CD,PRIORITY:GD,ComponentModel:gm,ComponentView:Hy,SeriesModel:Uy,ChartView:hx,registerComponentModel:function(e){gm.registerClass(e)},registerComponentView:function(e){Hy.registerClass(e)},registerSeriesModel:function(e){Uy.registerClass(e)},registerChartView:function(e){hx.registerClass(e)},registerSubTypeDefaulter:function(e,t){gm.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Zs(e,t)}};function tC(e){Object(Ia["t"])(e)?Object(Ia["k"])(e,(function(e){tC(e)})):Object(Ia["r"])(QS,e)>=0||(QS.push(e),Object(Ia["w"])(e)&&(e={install:e}),e.install(eC))}var rC=2*Math.PI,aC=ju.CMD,nC=["top","right","bottom","left"];function iC(e,t,r,a,n){var i=r.width,o=r.height;switch(e){case"top":a.set(r.x+i/2,r.y-t),n.set(0,-1);break;case"bottom":a.set(r.x+i/2,r.y+o+t),n.set(0,1);break;case"left":a.set(r.x-t,r.y+o/2),n.set(-1,0);break;case"right":a.set(r.x+i+t,r.y+o/2),n.set(1,0);break}}function oC(e,t,r,a,n,i,o,s,l){o-=e,s-=t;var c=Math.sqrt(o*o+s*s);o/=c,s/=c;var u=o*r+e,d=s*r+t;if(Math.abs(a-n)%rC<1e-4)return l[0]=u,l[1]=d,c-r;if(i){var p=a;a=Gu(n),n=Gu(p)}else a=Gu(a),n=Gu(n);a>n&&(n+=rC);var h=Math.atan2(s,o);if(h<0&&(h+=rC),h>=a&&h<=n||h+rC>=a&&h+rC<=n)return l[0]=u,l[1]=d,c-r;var f=r*Math.cos(a)+e,m=r*Math.sin(a)+t,g=r*Math.cos(n)+e,v=r*Math.sin(n)+t,y=(f-o)*(f-o)+(m-s)*(m-s),b=(g-o)*(g-o)+(v-s)*(v-s);return y0){t=t/180*Math.PI,pC.fromArray(e[0]),hC.fromArray(e[1]),fC.fromArray(e[2]),jn.sub(mC,pC,hC),jn.sub(gC,fC,hC);var r=mC.len(),a=gC.len();if(!(r<.001||a<.001)){mC.scale(1/r),gC.scale(1/a);var n=mC.dot(gC),i=Math.cos(t);if(i1&&jn.copy(bC,fC),bC.toArray(e[1])}}}}function xC(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,pC.fromArray(e[0]),hC.fromArray(e[1]),fC.fromArray(e[2]),jn.sub(mC,hC,pC),jn.sub(gC,fC,hC);var a=mC.len(),n=gC.len();if(!(a<.001||n<.001)){mC.scale(1/a),gC.scale(1/n);var i=mC.dot(t),o=Math.cos(r);if(i=l)jn.copy(bC,fC);else{bC.scaleAndAdd(gC,s/Math.tan(Math.PI/2-u));var d=fC.x!==hC.x?(bC.x-hC.x)/(fC.x-hC.x):(bC.y-hC.y)/(fC.y-hC.y);if(isNaN(d))return;d<0?jn.copy(bC,hC):d>1&&jn.copy(bC,fC)}bC.toArray(e[1])}}}}function wC(e,t,r,a){var n="normal"===r,i=n?e:e.ensureState(r);i.ignore=t;var o=a.get("smooth");o&&!0===o&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?e.useStyle(s):i.style=s}function DC(e,t){var r=t.smooth,a=t.points;if(a)if(e.moveTo(a[0][0],a[0][1]),r>0&&a.length>=3){var n=$a(a[0],a[1]),i=$a(a[1],a[2]);if(!n||!i)return e.lineTo(a[1][0],a[1][1]),void e.lineTo(a[2][0],a[2][1]);var o=Math.min(n,i)*r,s=Ga([],a[1],a[0],o/n),l=Ga([],a[1],a[2],o/i),c=Ga([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var u=1;u0&&i&&w(-d/o,0,o);var g,v,y=e[0],b=e[o-1];return _(),g<0&&D(-g,.8),v<0&&D(v,.8),_(),x(g,v,1),x(v,g,-1),_(),g<0&&S(-g),v<0&&S(v),c}function _(){g=y.rect[t]-a,v=n-b.rect[t]-b.rect[r]}function x(e,t,r){if(e<0){var a=Math.min(t,-e);if(a>0){w(a*r,0,o);var n=a+e;n<0&&D(-n*r,1)}else D(-e*r,1)}}function w(r,a,n){0!==r&&(c=!0);for(var i=a;i0)for(l=0;l0;l--){p=i[l-1]*d;w(-p,l,o)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var r=Math.ceil(e/(o-1)),a=0;a0?w(r,0,a+1):w(-r,o-a-1,o),e-=r,e<=0)return}}function OC(e,t,r,a){return IC(e,"x","width",t,r,a)}function AC(e,t,r,a){return IC(e,"y","height",t,r,a)}function MC(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var r=new Yn(0,0,0,0);function a(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var n=0;n=0&&r.attr(n.oldLayoutSelect),Object(Ia["r"])(u,"emphasis")>=0&&r.attr(n.oldLayoutEmphasis)),ch(r,l,t,s)}else if(r.attr(l),!Ph(r).valueAnimation){var d=Object(Ia["P"])(r.style.opacity,1);r.style.opacity=0,uh(r,{style:{opacity:d}},t,s)}if(n.oldLayout=l,r.states.select){var p=n.oldLayoutSelect={};FC(p,l,jC),FC(p,r.states.select,jC)}if(r.states.emphasis){var h=n.oldLayoutEmphasis={};FC(h,l,jC),FC(h,r.states.emphasis,jC)}Nh(r,s,c,t,t)}if(a&&!a.ignore&&!a.invisible){n=RC(a),i=n.oldLayout;var f={points:a.shape.points};i?(a.attr({shape:i}),ch(a,{shape:f},t)):(a.setShape(f),a.style.strokePercent=0,uh(a,{style:{strokePercent:1}},t)),n.oldLayout=f}},e}(),$C=VC,BC=Jl();function zC(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,r){var a=BC(t).labelManager;a||(a=BC(t).labelManager=new $C),a.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,r){var a=BC(t).labelManager;r.updatedSeries.forEach((function(e){a.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()}))}function GC(e,t,r){var a=ys["d"].createCanvas(),n=t.getWidth(),i=t.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",e)),a.width=n*r,a.height=i*r,a}tC(zC);var UC=function(e){function t(t,r,a){var n,i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,a=a||ts,"string"===typeof t?n=GC(t,r,a):Ia["A"](t)&&(n=t,t=n.id),i.id=t,i.dom=n;var o=n.style;return o&&(Ia["j"](n),n.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),i.painter=r,i.dpr=a,i}return Ca(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=GC("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,r,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var n,i=[],o=this.maxRepaintRectCount,s=!1,l=new Yn(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===i.length){var t=new Yn(0,0,0,0);t.copy(e),i.push(t)}else{for(var r=!1,a=1/0,n=0,c=0;c=o)}}for(var u=this.__startIndex;u15)break}}r.prevElClipPaths&&d.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var _=p.dpr,x=0;x0&&e>a[0]){for(s=0;se)break;o=r[a[s]]}if(a.splice(s+1,0,e),r[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?i.insertBefore(t.dom,l.nextSibling):i.appendChild(t.dom)}else i.firstChild?i.insertBefore(t.dom,i.firstChild):i.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?YC:0),this._needsManuallyCompositing),c.__builtin__||Ia["G"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==i&&(c.__dirty=!0),c.__startIndex=i,c.incremental?c.__drawIndex=-1:c.__drawIndex=i,t(i),o=c),a.__dirty&vi&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Ia["k"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Ia["I"](r[e],t,!0):r[e]=t;for(var a=0;a=nT:-l>=nT),p=l>0?l%nT:l%nT+nT,h=!1;h=!!d||!Object(io["j"])(u)&&p>=aT===!!c;var f=e+r*rT(i),m=t+a*tT(i);this._start&&this._add("M",f,m);var g=Math.round(n*iT);if(d){var v=1/this._p,y=(c?1:-1)*(nT-v);this._add("A",r,a,g,1,+c,e+r*rT(i+y),t+a*tT(i+y)),v>.01&&this._add("A",r,a,g,0,+c,f,m)}else{var b=e+r*rT(o),_=t+a*tT(o);this._add("A",r,a,g,+h,+c,b,_)}},e.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,r,a,n,i,o,s,l){for(var c=[],u=this._p,d=1;d"}function DT(e){return""}function ST(e,t){t=t||{};var r=t.newline?"\n":"";function a(e){var t=e.children,n=e.tag,i=e.attrs,o=e.text;return wT(n,i)+("style"!==n?dn(o):o||"")+(t?""+r+Object(Ia["H"])(t,(function(e){return a(e)})).join(r)+r:"")+DT(n)}return a(e)}function CT(e,t,r){r=r||{};var a=r.newline?"\n":"",n=" {"+a,i=a+"}",o=Object(Ia["H"])(Object(Ia["F"])(e),(function(t){return t+n+Object(Ia["H"])(Object(Ia["F"])(e[t]),(function(r){return r+":"+e[t][r]+";"})).join(a)+i})).join(a),s=Object(Ia["H"])(Object(Ia["F"])(t),(function(e){return"@keyframes "+e+n+Object(Ia["H"])(Object(Ia["F"])(t[e]),(function(r){return r+n+Object(Ia["H"])(Object(Ia["F"])(t[e][r]),(function(a){var n=t[e][r][a];return"d"===a&&(n='path("'+n+'")'),a+":"+n+";"})).join(a)+i})).join(a)+i})).join(a);return o||s?[""].join(a):""}function TT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function IT(e,t,r,a){return xT("svg","root",{width:e,height:t,xmlns:mT,"xmlns:xlink":gT,version:"1.1",baseProfile:"full",viewBox:!!a&&"0 0 "+e+" "+t},r)}var OT=0;function AT(){return OT++}var MT={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},PT="transform-origin";function kT(e,t,r){var a=Object(Ia["m"])({},e.shape);Object(Ia["m"])(a,t),e.buildPath(r,a);var n=new sT;return n.reset(Object(io["f"])(e)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function NT(e,t){var r=t.originX,a=t.originY;(r||a)&&(e[PT]=r+"px "+a+"px")}var ET={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function LT(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function RT(e,t,r){var a,n,i=e.shape.paths,o={};if(Object(Ia["k"])(i,(function(e){var t=TT(r.zrId);t.animation=!0,jT(e,{},t,!0);var i=t.cssAnims,s=t.cssNodes,l=Object(Ia["F"])(i),c=l.length;if(c){n=l[c-1];var u=i[n];for(var d in u){var p=u[d];o[d]=o[d]||{d:""},o[d].d+=p.d||""}for(var h in s){var f=s[h].animation;f.indexOf(n)>=0&&(a=f)}}})),a){t.d=!1;var s=LT(o,r);return a.replace(n,s)}}function FT(e){return Object(Ia["C"])(e)?MT[e]?"cubic-bezier("+MT[e]+")":to(e)?e:"":""}function jT(e,t,r,a){var n=e.animators,i=n.length,o=[];if(e instanceof d_){var s=RT(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},c=0;c0})).length){var A=LT(u,r);return A+" "+n[0]+" both"}}for(var g in l){s=m(l[g]);s&&o.push(s)}if(o.length){var v=r.zrId+"-cls-"+AT();r.cssNodes["."+v]={animation:o.join(",")},t["class"]=v}}function VT(e,t,r){if(!e.ignore)if(e.isSilent()){var a={"pointer-events":"none"};$T(a,t,r,!0)}else{var n=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=n.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=Object(no["d"])(l))}var c=n.lineWidth;if(c){var u=!n.strokeNoScale&&e.transform?e.transform[0]:1;c/=u}a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),c&&(a["stroke-width"]=c),$T(a,t,r,!0)}}function $T(e,t,r,a){var n=JSON.stringify(e),i=r.cssStyleCache[n];i||(i=r.zrId+"-cls-"+AT(),r.cssStyleCache[n]=i,r.cssNodes["."+i+(a?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+i:i}var BT=Math.round;function zT(e){return e&&Object(Ia["C"])(e.src)}function GT(e){return e&&Object(Ia["w"])(e.toDataURL)}function UT(e,t,r,a){fT((function(n,i){var o="fill"===n||"stroke"===n;o&&Object(io["k"])(i)?iI(t,e,n,a):o&&Object(io["n"])(i)?oI(r,e,n,a):e[n]=i,o&&a.ssr&&"none"===i&&(e["pointer-events"]="visible")}),t,r,!1),nI(r,e,a)}function WT(e,t){var r=Js(t);r&&(r.each((function(t,r){null!=t&&(e[(bT+r).toLowerCase()]=t+"")})),t.isSilent()&&(e[bT+"silent"]="true"))}function HT(e){return Object(io["j"])(e[0]-1)&&Object(io["j"])(e[1])&&Object(io["j"])(e[2])&&Object(io["j"])(e[3]-1)}function qT(e){return Object(io["j"])(e[4])&&Object(io["j"])(e[5])}function YT(e,t,r){if(t&&(!qT(t)||!HT(t))){var a=r?10:1e4;e.transform=HT(t)?"translate("+BT(t[4]*a)/a+" "+BT(t[5]*a)/a+")":Object(io["e"])(t)}}function XT(e,t,r){for(var a=e.points,n=[],i=0;ic?(o=null==r[p+1]?null:r[p+1].elm,DI(e,o,r,l,p)):SI(e,t,s,c))}function II(e,t){var r=t.elm=e.elm,a=e.children,n=t.children;e!==t&&(CI(e,t),yI(t.text)?bI(a)&&bI(n)?a!==n&&TI(r,a,n):bI(n)?(bI(e.text)&&fI(r,""),DI(r,null,n,0,n.length-1)):bI(a)?SI(r,a,0,a.length-1):bI(e.text)&&fI(r,""):e.text!==t.text&&(bI(a)&&SI(r,a,0,a.length-1),fI(r,t.text)))}function OI(e,t){if(xI(e,t))II(e,t);else{var r=e.elm,a=pI(r);wI(t),null!==a&&(cI(a,t.elm,hI(r)),SI(a,[e],0,0))}return t}var AI=0,MI=function(){function e(e,t,r){if(this.type="svg",this.refreshHover=PI("refreshHover"),this.configLayer=PI("configLayer"),this.storage=t,this._opts=r=Object(Ia["m"])({},r),this.root=e,this._id="zr"+AI++,this._oldVNode=IT(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=_T("svg");CI(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",OI(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return aI(e,TT(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,n=TT(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis,n.ssr=this._opts.ssr;var i=[],o=this._bgVNode=kI(r,a,this._backgroundColor,n);o&&i.push(o);var s=e.compress?null:this._mainVNode=xT("g","main",{},[]);this._paintList(t,n,s?s.children:i),s&&i.push(s);var l=Object(Ia["H"])(Object(Ia["F"])(n.defs),(function(e){return n.defs[e]}));if(l.length&&i.push(xT("defs","defs",{},l)),e.animation){var c=CT(n.cssNodes,n.cssAnims,{newline:!0});if(c){var u=xT("style","stl",{},[],c);i.push(u)}}return IT(r,a,i,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},ST(this.renderToVNode({animation:Object(Ia["P"])(e.cssAnimation,!0),emphasis:Object(Ia["P"])(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(Ia["P"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,r){for(var a,n,i=e.length,o=[],s=0,l=0,c=0;c=0;f--)if(d&&n&&d[f]===n[f])break;for(var m=h-1;m>f;m--)s--,a=o[s-1];for(var g=f+1;g1){var c=s.shift();1===s.length&&(r[o]=s[0]),this._update&&this._update(c,i)}else 1===l?(r[o]=null,this._update&&this._update(s,i)):this._remove&&this._remove(i)}this._performRestAdd(n,r)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},n=[],i=[];this._initIndexMap(e,r,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,l),a[s]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(c,l),a[s]=null;else if(1===u&&1===d)this._update&&this._update(c,l),a[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,l),a[s]=null;else if(u>1)for(var p=0;p1)for(var o=0;o30}var QI,eO,tO,rO,aO,nO,iO,oO=Ia["A"],sO=Ia["H"],lO="undefined"===typeof Int32Array?Array:Int32Array,cO="e\0\0",uO=-1,dO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pO=["_approximateExtent"],hO=function(){function e(e,t){var r;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a=!1;XI(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var n={},i=[],o={},s=!1,l={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var n=this._nameList,i=this._idList,o=a.getSource().sourceFormat,s=o===xm;if(s&&!a.pure)for(var l=[],c=e;c0},e.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var n=a[t];return null==n&&(n=this.getVisual(t),Ia["t"](n)?n=n.slice():oO(n)&&(n=Ia["m"]({},n)),a[t]=n),n},e.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,oO(t)?Ia["m"](a,t):a[t]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){oO(e)?Ia["m"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?Ia["m"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;qd(r,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){Ia["k"](this._graphicEls,(function(r,a){r&&e&&e.call(t,r,a)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:sO(this.dimensions,this._getDimInfo,this),this.hostModel)),aO(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var r=this[e];Ia["w"](r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=r.apply(this,arguments);return t.apply(this,[e].concat(Ia["S"](arguments)))})},e.internalField=function(){QI=function(e){var t=e._invertedIndicesMap;Ia["k"](t,(function(r,a){var n=e._dimInfos[a],i=n.ordinalMeta,o=e._store;if(i){r=t[a]=new lO(i.categories.length);for(var s=0;s1&&(s+="__ec__"+c),a[t]=s}}}(),e}(),fO=hO;function mO(e,t){Qg(e)||(e=tv(e)),t=t||{};var r=t.coordDimensions||[],a=t.dimensionsDefine||e.dimensionsDefine||[],n=Object(Ia["f"])(),i=[],o=vO(e,r,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&JI(o),l=a===e.dimensionsDefine,c=l?ZI(e):KI(a),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Object(Ia["f"])(u),p=new Kv(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function vO(e,t,r,a){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,a||0);return Object(Ia["k"])(t,(function(e){var t;Object(Ia["A"])(e)&&(t=e.dimsDef)&&(n=Math.max(n,t.length))})),n}function yO(e,t,r){if(r||t.hasKey(e)){var a=0;while(t.hasKey(e+a))a++;e+=a}return t.set(e,!0),e}var bO=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(Ia["f"])(),this.categoryAxisMap=Object(Ia["f"])(),this.coordSysName=e}return e}();function _O(e){var t=e.get("coordinateSystem"),r=new bO(t),a=xO[t];if(a)return a(e,r,r.axisMap,r.categoryAxisMap),r}var xO={cartesian2d:function(e,t,r,a){var n=e.getReferringComponents("xAxis",rc).models[0],i=e.getReferringComponents("yAxis",rc).models[0];t.coordSysDims=["x","y"],r.set("x",n),r.set("y",i),wO(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),wO(i)&&(a.set("y",i),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,a){var n=e.getReferringComponents("singleAxis",rc).models[0];t.coordSysDims=["single"],r.set("single",n),wO(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,a){var n=e.getReferringComponents("polar",rc).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),wO(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),wO(o)&&(a.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,a){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,a){var n=e.ecModel,i=n.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();Object(Ia["k"])(i.parallelAxisIndex,(function(e,i){var s=n.getComponent("parallelAxis",e),l=o[i];r.set(l,s),wO(s)&&(a.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=i))}))}};function wO(e){return"category"===e.get("type")}function DO(e,t,r){r=r||{};var a,n,i,o=r.byIndex,s=r.stackedCoordDimension;SO(t)?a=t:(n=t.schema,a=n.dimensions,i=t.store);var l,c,u,d,p=!(!e||!e.get("stack"));if(Object(Ia["k"])(a,(function(e,t){Object(Ia["C"])(e)&&(a[t]=e={name:e}),p&&!e.isExtraCoord&&(o||l||!e.ordinalMeta||(l=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))})),!c||o||l||(o=!0),c){u="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=c.coordDim,f=c.type,m=0;Object(Ia["k"])(a,(function(e){e.coordDim===h&&m++}));var g={name:u,coordDim:h,coordDimIndex:m,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},v={name:d,coordDim:d,coordDimIndex:m+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};n?(i&&(g.storeDimIndex=i.ensureCalculationDimension(d,f),v.storeDimIndex=i.ensureCalculationDimension(u,f)),n.appendCalculationDimension(g),n.appendCalculationDimension(v)):(a.push(g),a.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:d,stackResultDimension:u}}function SO(e){return!XI(e.schema)}function CO(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function TO(e,t){return CO(e,t)?e.getCalculationInfo("stackResultDimension"):t}function IO(e,t){var r,a=e.get("coordinateSystem"),n=hg.get(a);return t&&t.coordSysDims&&(r=Ia["H"](t.coordSysDims,(function(e){var r={name:e},a=t.axisMap.get(e);if(a){var n=a.get("type");r.type=zI(n)}return r}))),r||(r=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),r}function OO(e,t,r){var a,n;return r&&Ia["k"](e,(function(e,i){var o=e.coordDim,s=r.categoryAxisMap.get(o);s&&(null==a&&(a=i),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(n=!0)})),n||null==a||(e[a].otherDims.itemName=0),a}function AO(e,t,r){r=r||{};var a,n=t.getSourceManager(),i=!1;e?(i=!0,a=tv(e)):(a=n.getSource(),i=a.sourceFormat===xm);var o=_O(t),s=IO(t,o),l=r.useEncodeDefaulter,c=Ia["w"](l)?l:l?Ia["h"](km,s,t):null,u={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i},d=mO(a,u),p=OO(d.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(d),f=DO(t,{schema:d,store:h}),m=new fO(d,t);m.setCalculationInfo(f);var g=null!=p&&MO(a)?function(e,t,r,a){return a===p?r:this.defaultDimValueGetter(e,t,r,a)}:null;return m.hasItemOption=!1,m.initData(i?a:h,null,g),m}function MO(e){if(e.sourceFormat===xm){var t=PO(e.data||[]);return!Ia["t"](Nl(t))}}function PO(e){var t=0;while(t-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Uy),EO=NO;function LO(e,t){var r=e.mapDimensionsAll("defaultedLabel"),a=r.length;if(1===a){var n=_v(e,t,r[0]);return null!=n?n+"":null}if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var FO=function(e){function t(t,r,a,n){var i=e.call(this)||this;return i.updateData(t,r,a,n),i}return Ca(t,e),t.prototype._createSymbol=function(e,t,r,a,n){this.removeAll();var i=Tw(e,-1,-1,2,2,null,n);i.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),i.drift=jO,this._symbolType=e,this.add(i)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ap(this.childAt(0))},t.prototype.downplay=function(){Mp(this.childAt(0))},t.prototype.setZ=function(e,t){var r=this.childAt(0);r.zlevel=e,r.z=t},t.prototype.setDraggable=function(e,t){var r=this.childAt(0);r.draggable=e,r.cursor=!t&&e?"move":r.cursor},t.prototype.updateData=function(e,r,a,n){this.silent=!1;var i=e.getItemVisual(r,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,r),l=i!==this._symbolType,c=n&&n.disableAnimation;if(l){var u=e.getItemVisual(r,"symbolKeepAspect");this._createSymbol(i,e,r,s,u)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):ch(d,p,o,r),mh(d)}if(this._updateCommon(e,r,s,a,n),l){d=this.childAt(0);if(!c){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,uh(d,p,o,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,r,a,n){var i,o,s,l,c,u,d,p,h,f=this.childAt(0),m=e.hostModel;if(a&&(i=a.emphasisItemStyle,o=a.blurItemStyle,s=a.selectItemStyle,l=a.focus,c=a.blurScope,d=a.labelStatesModels,p=a.hoverScale,h=a.cursorStyle,u=a.emphasisDisabled),!a||e.hasItemOption){var g=a&&a.itemModel?a.itemModel:e.getItemModel(t),v=g.getModel("emphasis");i=v.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),o=g.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),c=v.get("blurScope"),u=v.get("disabled"),d=xh(g),p=v.getShallow("scale"),h=g.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var b=Ow(e.getItemVisual(t,"symbolOffset"),r);b&&(f.x=b[0],f.y=b[1]),h&&f.attr("cursor",h);var _=e.getItemVisual(t,"style"),x=_.fill;if(f instanceof yd){var w=f.style;f.useStyle(Object(Ia["m"])({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(Object(Ia["m"])({},_)):f.useStyle(_),f.style.decal=null,f.setColor(x,n&&n.symbolInnerColor),f.style.strokeNoScale=!0;var D=e.getItemVisual(t,"liftZ"),S=this._z2;null!=D?null==S&&(this._z2=f.z2,f.z2+=D):null!=S&&(f.z2=S,this._z2=null);var C=n&&n.useNameLabel;function T(t){return C?e.getName(t):LO(e,t)}_h(f,d,{labelFetcher:m,labelDataIndex:t,defaultText:T,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=r[0]/2,this._sizeY=r[1]/2;var I=f.ensureState("emphasis");I.style=i,f.ensureState("select").style=s,f.ensureState("blur").style=o;var O=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*O,I.scaleY=this._sizeY*O,this.setSymbolScale(1),Yp(this,l,c,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,r){var a=this.childAt(0),n=Hd(this).dataIndex,i=r&&r.animation;if(this.silent=a.silent=!0,r&&r.fadeLabel){var o=a.getTextContent();o&&ph(o,{style:{opacity:0}},t,{dataIndex:n,removeOpt:i,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ph(a,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:n,cb:e,removeOpt:i})},t.getSymbolSize=function(e,t){return Iw(e.getItemVisual(t,"symbolSize"))},t}(Gs);function jO(e,t){this.parent.drift(e,t)}var VO=FO;function $O(e,t,r,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(r))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(r,"symbol")}function BO(e){return null==e||Object(Ia["A"])(e)||(e={isIgnore:e}),e||{}}function zO(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:xh(t),cursorStyle:t.get("cursor")}}var GO=function(){function e(e){this.group=new Gs,this._SymbolCtor=e||VO}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=BO(t);var r=this.group,a=e.hostModel,n=this._data,i=this._SymbolCtor,o=t.disableAnimation,s=zO(e),l={disableAnimation:o},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};n||r.removeAll(),e.diff(n).add((function(a){var n=c(a);if($O(e,n,a,t)){var o=new i(e,a,s,l);o.setPosition(n),e.setItemGraphicEl(a,o),r.add(o)}})).update((function(u,d){var p=n.getItemGraphicEl(d),h=c(u);if($O(e,h,u,t)){var f=e.getItemVisual(u,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==f)r.remove(p),p=new i(e,u,s,l),p.setPosition(h);else{p.updateData(e,u,s,l);var g={x:h[0],y:h[1]};o?p.attr(g):ch(p,g,a)}r.add(p),e.setItemGraphicEl(u,p)}else r.remove(p)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&t.fadeOut((function(){r.remove(t)}),a)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,r){var a=e._getSymbolPoint(r);t.setPosition(a),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=zO(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,r){function a(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],r=BO(r);for(var n=e.start;n0?r=a[0]:a[1]<0&&(r=a[1]),r}function qO(e,t,r,a){var n=NaN;e.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,a),o[1-i]=n,t.dataToPoint(o)}var YO="undefined"!==typeof Float32Array,XO=YO?Float32Array:Array;function KO(e){return Object(Ia["t"])(e)?YO?new Float32Array(e):e:new XO(e)}function ZO(e,t){var r=[];return t.diff(e).add((function(e){r.push({cmd:"+",idx:e})})).update((function(e,t){r.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){r.push({cmd:"-",idx:e})})).execute(),r}function JO(e,t,r,a,n,i,o,s){for(var l=ZO(e,t),c=[],u=[],d=[],p=[],h=[],f=[],m=[],g=WO(n,t,o),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b=n||m<0)break;if(tA(v,y)){if(l){m+=i;continue}break}if(m===r)e[i>0?"moveTo":"lineTo"](v,y),d=v,p=y;else{var b=v-c,_=y-u;if(b*b+_*_<.5){m+=i;continue}if(o>0){var x=m+i,w=t[2*x],D=t[2*x+1];while(w===v&&D===y&&g=a||tA(w,D))h=v,f=y;else{T=w-c,I=D-u;var M=v-c,P=w-v,k=y-u,N=D-y,E=void 0,L=void 0;if("x"===s){E=Math.abs(M),L=Math.abs(P);var R=T>0?1:-1;h=v-R*E*o,f=y,O=v+R*L*o,A=y}else if("y"===s){E=Math.abs(k),L=Math.abs(N);var F=I>0?1:-1;h=v,f=y-F*E*o,O=v,A=y+F*L*o}else E=Math.sqrt(M*M+k*k),L=Math.sqrt(P*P+N*N),C=L/(L+E),h=v-T*o*(1-C),f=y-I*o*(1-C),O=v+T*o*C,A=y+I*o*C,O=QO(O,eA(w,v)),A=QO(A,eA(D,y)),O=eA(O,QO(w,v)),A=eA(A,QO(D,y)),T=O-v,I=A-y,h=v-T*E/L,f=y-I*E/L,h=QO(h,eA(c,v)),f=QO(f,eA(u,y)),h=eA(h,QO(c,v)),f=eA(f,QO(u,y)),T=v-h,I=y-f,O=v+T*L/E,A=y+I*L/E}e.bezierCurveTo(d,p,h,f,v,y),d=O,p=A}else e.lineTo(v,y)}c=v,u=y,m+=i}return g}var aA=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),nA=function(e){function t(t){var r=e.call(this,t)||this;return r.type="ec-polyline",r}return Ca(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new aA},t.prototype.buildPath=function(e,t){var r=t.points,a=0,n=r.length/2;if(t.connectNulls){for(;n>0;n--)if(!tA(r[2*n-2],r[2*n-1]))break;for(;a=0){var y=s?(p-a)*v+a:(d-r)*v+r;return s?[e,y]:[y,e]}r=d,a=p;break;case o.C:d=i[c++],p=i[c++],h=i[c++],f=i[c++],m=i[c++],g=i[c++];var b=s?zi(r,d,h,m,e,l):zi(a,p,f,g,e,l);if(b>0)for(var _=0;_=0){y=s?$i(a,p,f,g,x):$i(r,d,h,m,x);return s?[e,y]:[y,e]}}r=m,a=g;break}}},t}(ud),iA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t}(aA),oA=function(e){function t(t){var r=e.call(this,t)||this;return r.type="ec-polygon",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new iA},t.prototype.buildPath=function(e,t){var r=t.points,a=t.stackedOnPoints,n=0,i=r.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;i>0;i--)if(!tA(r[2*i-2],r[2*i-1]))break;for(;nt){a?n.push(o(a,l,t)):r&&n.push(o(r,l,0),o(r,l,t));break}r&&(n.push(o(r,l,0)),r=null),n.push(l),a=l}}return n}function yA(e,t,r){var a=e.getVisual("visualMeta");if(a&&a.length&&e.count()&&"cartesian2d"===t.type){for(var n,i,o=a.length-1;o>=0;o--){var s=e.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,"x"===n||"y"===n){i=a[o];break}}if(i){var l=t.getAxis(n),c=Ia["H"](i.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,d=i.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var p=vA(c,"x"===n?r.getWidth():r.getHeight()),h=p.length;if(!h&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var f=10,m=p[0].coord-f,g=p[h-1].coord+f,v=g-m;if(v<.001)return"transparent";Ia["k"](p,(function(e){e.offset=(e.coord-m)/v})),p.push({offset:h?p[h-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:d[0]||"transparent"});var y=new m_(0,0,0,0,p,!0);return y[n]=m,y[n+"2"]=g,y}}}function bA(e,t,r){var a=e.get("showAllSymbol"),n="auto"===a;if(!a||n){var i=r.getAxesByScale("ordinal")[0];if(i&&(!n||!_A(i,t))){var o=t.mapDimension(i.dim),s={};return Ia["k"](i.getViewLabels(),(function(e){var t=i.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function _A(e,t){var r=e.getExtent(),a=Math.abs(r[1]-r[0])/e.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function xA(e,t){return isNaN(e)||isNaN(t)}function wA(e){for(var t=e.length/2;t>0;t--)if(!xA(e[2*t-2],e[2*t-1]))break;return t-1}function DA(e,t){return[e[2*t],e[2*t+1]]}function SA(e,t,r){for(var a,n,i=e.length/2,o="x"===r?0:1,s=0,l=-1,c=0;c=t||a>=t&&n<=t){l=c;break}s=c,a=n}else a=n;return{range:[s,l],t:(t-a)/(n-a)}}function CA(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}Hd(p).seriesIndex=e.seriesIndex,Yp(p,M,P,k);var E=fA(e.get("smooth")),L=e.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:L,connectNulls:x}),h){var R=i.getCalculationInfo("stackedOnSeries"),F=0;h.useStyle(Ia["i"](s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:i.getVisual("style").decal})),R&&(F=fA(R.get("smooth"))),h.setShape({smooth:E,stackedOnSmooth:F,smoothMonotone:L,connectNulls:x}),Jp(h,e,"areaStyle"),Hd(h).seriesIndex=e.seriesIndex,Yp(h,M,P,k)}var j=this._changePolyState;i.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=j)})),this._polyline.onHoverStateChange=j,this._data=i,this._coordSys=a,this._stackedOnPoints=b,this._points=l,this._step=C,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,p),h&&this.packEventData(e,h))},t.prototype.packEventData=function(e,t){Hd(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,r,a){var n=e.getData(),i=Zl(n,a);if(this._changePolyState("emphasis"),!(i instanceof Array)&&null!=i&&i>=0){var o=n.getLayout("points"),s=n.getItemGraphicEl(i);if(!s){var l=o[2*i],c=o[2*i+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,d=e.get("z")||0;s=new VO(n,i),s.x=l,s.y=c,s.setZ(u,d);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=u,p.z=d,p.z2=this._polyline.z2+1),s.__temp=!0,n.setItemGraphicEl(i,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else hx.prototype.highlight.call(this,e,t,r,a)},t.prototype.downplay=function(e,t,r,a){var n=e.getData(),i=Zl(n,a);if(this._changePolyState("normal"),null!=i&&i>=0){var o=n.getItemGraphicEl(i);o&&(o.__temp?(n.setItemGraphicEl(i,null),this.group.remove(o)):o.downplay())}else hx.prototype.downplay.call(this,e,t,r,a)},t.prototype._changePolyState=function(e){var t=this._polygon;_p(this._polyline,e),t&&_p(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new nA({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new oA({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,t,r){var a,n,i=t.getBaseAxis(),o=i.inverse;"cartesian2d"===t.type?(a=i.isHorizontal(),n=!1):"polar"===t.type&&(a="angle"===i.dim,n=!0);var s=e.hostModel,l=s.get("animationDuration");Ia["w"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=Ia["w"](c)?c(null):c;e.eachItemGraphicEl((function(e,i){var s=e;if(s){var d=[e.x,e.y],p=void 0,h=void 0,f=void 0;if(r)if(n){var m=r,g=t.pointToCoord(d);a?(p=m.startAngle,h=m.endAngle,f=-g[1]/180*Math.PI):(p=m.r0,h=m.r,f=g[0])}else{var v=r;a?(p=v.x,h=v.x+v.width,f=e.x):(p=v.y+v.height,h=v.y,f=e.y)}var y=h===p?0:(f-p)/(h-p);o&&(y=1-y);var b=Ia["w"](c)?c(i):l*y+u,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,r){var a=e.getModel("endLabel");if(CA(e)){var n=e.getData(),i=this._polyline,o=n.getLayout("points");if(!o)return i.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Wd({z2:200}),s.ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0);var l=wA(o);l>=0&&(_h(i,xh(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,r){return null!=r?RO(n,r):LO(n,e)},enableTextSetter:!0},IA(a,t)),i.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,r,a,n,i,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==a.originalX&&(a.originalX=s.x,a.originalY=s.y);var c=r.getLayout("points"),u=r.hostModel,d=u.get("connectNulls"),p=i.get("precision"),h=i.get("distance")||0,f=o.getBaseAxis(),m=f.isHorizontal(),g=f.inverse,v=t.shape,y=g?m?v.x:v.y+v.height:m?v.x+v.width:v.y,b=(m?h:0)*(g?-1:1),_=(m?0:-h)*(g?-1:1),x=m?"x":"y",w=SA(c,y,x),D=w.range,S=D[1]-D[0],C=void 0;if(S>=1){if(S>1&&!d){var T=DA(c,D[0]);s.attr({x:T[0]+b,y:T[1]+_}),n&&(C=u.getRawValue(D[0]))}else{T=l.getPointOn(y,x);T&&s.attr({x:T[0]+b,y:T[1]+_});var I=u.getRawValue(D[0]),O=u.getRawValue(D[1]);n&&(C=cc(r,p,I,O,w.t))}a.lastFrameIndex=D[0]}else{var A=1===e||a.lastFrameIndex>0?D[0]:0;T=DA(c,A);n&&(C=u.getRawValue(A)),s.attr({x:T[0]+b,y:T[1]+_})}if(n){var M=Ph(s);"function"===typeof M.setLabelText&&M.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,r,a,n,i,o){var s=this._polyline,l=this._polygon,c=e.hostModel,u=JO(this._data,e,this._stackedOnPoints,t,this._coordSys,r,this._valueOrigin,i),d=u.current,p=u.stackedOnCurrent,h=u.next,f=u.stackedOnNext;if(n&&(p=gA(u.stackedOnCurrent,u.current,r,n,o),d=gA(u.current,null,r,n,o),f=gA(u.stackedOnNext,u.next,r,n,o),h=gA(u.next,null,r,n,o)),hA(d,h)>3e3||l&&hA(p,f)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=d;var m={shape:{points:h}};u.current!==d&&(m.shape.__points=u.next),s.stopAnimation(),ch(s,m,c),l&&(l.setShape({points:d,stackedOnPoints:p}),l.stopAnimation(),ch(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var g=[],v=u.status,y=0;yt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&"cartesian2d"===i.type&&n){var s=i.getBaseAxis(),l=i.getOtherAxis(s),c=s.getExtent(),u=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(u||1),p=Math.round(o/d);if(isFinite(p)&&p>1){"lttb"===n?e.setData(a.lttbDownSample(a.mapDimension(l.dim),1/p)):"minmax"===n&&e.setData(a.minmaxDownSample(a.mapDimension(l.dim),1/p));var h=void 0;Object(Ia["C"])(n)?h=PA[n]:Object(Ia["w"])(n)&&(h=n),h&&e.setData(a.downSample(a.mapDimension(l.dim),1/p,h,kA))}}}}}function EA(e){e.registerChartView(AA),e.registerSeriesModel(EO),e.registerLayout(MA("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,NA("line"))}var LA="__ec_stack_";function RA(e){return e.get("stack")||LA+e.seriesIndex}function FA(e){return e.dim+e.index}function jA(e){var t=[],r=e.axis,a="axis0";if("category"===r.type){for(var n=r.getBandWidth(),i=0;i0&&(i=null===i?s:Math.min(i,s))}r[a]=i}}return r}function BA(e){var t=$A(e),r=[];return Object(Ia["k"])(e,(function(e){var a,n=e.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent();if("category"===i.type)a=i.getBandWidth();else if("value"===i.type||"time"===i.type){var s=i.dim+"_"+i.index,l=t[s],c=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),d=Math.abs(u[1]-u[0]);a=l?c/d*l:c}else{var p=e.getData();a=Math.abs(o[1]-o[0])/p.count()}var h=nl(e.get("barWidth"),a),f=nl(e.get("barMaxWidth"),a),m=nl(e.get("barMinWidth")||(qA(e)?.5:1),a),g=e.get("barGap"),v=e.get("barCategoryGap");r.push({bandWidth:a,barWidth:h,barMaxWidth:f,barMinWidth:m,barGap:g,barCategoryGap:v,axisKey:FA(i),stackId:RA(e)})})),zA(r)}function zA(e){var t={};Object(Ia["k"])(e,(function(e,r){var a=e.axisKey,n=e.bandWidth,i=t[a]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=i.stacks;t[a]=i;var s=e.stackId;o[s]||i.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(i.remainedWidth,l),i.remainedWidth-=l);var c=e.barMaxWidth;c&&(o[s].maxWidth=c);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;null!=d&&(i.gap=d);var p=e.barCategoryGap;null!=p&&(i.categoryGap=p)}));var r={};return Object(Ia["k"])(t,(function(e,t){r[t]={};var a=e.stacks,n=e.bandWidth,i=e.categoryGap;if(null==i){var o=Object(Ia["F"])(a).length;i=Math.max(35-4*o,15)+"%"}var s=nl(i,n),l=nl(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),Object(Ia["k"])(a,(function(e){var t=e.maxWidth,r=e.minWidth;if(e.width){a=e.width;t&&(a=Math.min(a,t)),r&&(a=Math.max(a,r)),e.width=a,c-=a+l*a,u--}else{var a=d;t&&ta&&(a=r),a!==d&&(e.width=a,c-=a+l*a,u--)}})),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var p,h=0;Object(Ia["k"])(a,(function(e,t){e.width||(e.width=d),p=e,h+=e.width*(1+l)})),p&&(h-=p.width*l);var f=-h/2;Object(Ia["k"])(a,(function(e,a){r[t][a]=r[t][a]||{bandWidth:n,offset:f,width:e.width},f+=e.width*(1+l)}))})),r}function GA(e,t,r){if(e&&t){var a=e[FA(t)];return null!=a&&null!=r?a[RA(r)]:a}}function UA(e,t){var r=VA(e,t),a=BA(r);Object(Ia["k"])(r,(function(e){var t=e.getData(),r=e.coordinateSystem,n=r.getBaseAxis(),i=RA(e),o=a[FA(n)][i],s=o.offset,l=o.width;t.setLayout({bandWidth:o.bandWidth,offset:s,size:l})}))}function WA(e){return{seriesType:e,plan:qy(),reset:function(e){if(HA(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),n=r.getOtherAxis(a),i=t.getDimensionIndex(t.mapDimension(n.dim)),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=e.get("showBackground",!0),l=t.mapDimension(n.dim),c=t.getCalculationInfo("stackResultDimension"),u=CO(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=n.isHorizontal(),p=YA(a,n),h=qA(e),f=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),g=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var a,n=e.count,l=h&&KO(3*n),c=h&&s&&KO(3*n),y=h&&KO(n),b=r.master.getRect(),_=d?b.width:b.height,x=t.getStore(),w=0;while(null!=(a=e.next())){var D=x.get(u?m:i,a),S=x.get(o,a),C=p,T=void 0;u&&(T=+D-x.get(i,a));var I=void 0,O=void 0,A=void 0,M=void 0;if(d){var P=r.dataToPoint([D,S]);if(u){var k=r.dataToPoint([T,S]);C=k[0]}I=C,O=P[1]+v,A=P[0]-C,M=g,Math.abs(A)0?r:1:r))}var XA=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){return kO(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,r){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.clampData(e),i=a.dataToPoint(n);if(r)Object(Ia["k"])(a.getAxes(),(function(e,r){if("category"===e.type&&null!=t){var a=e.getTicksCoords(),o=e.getTickModel().get("alignWithLabel"),s=n[r],l="x1"===t[r]||"y1"===t[r];if(l&&!o&&(s+=1),a.length<2)return;if(2===a.length)return void(i[r]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var c=void 0,u=void 0,d=1,p=0;ps){u=(h+c)/2;break}1===p&&(d=f-a[0].tickValue)}null==u&&(c?c&&(u=a[a.length-1].coord):u=a[0].coord),i[r]=e.toGlobalCoord(u)}}));else{var o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;i[c]+=s+l/2}return i}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Uy);Uy.registerClass(XA);var KA=XA,ZA=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.getInitialData=function(){return kO(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,r){return r.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Zh(KA.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(KA),JA=ZA,QA=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),eM=function(e){function t(t){var r=e.call(this,t)||this;return r.type="sausage",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new QA},t.prototype.buildPath=function(e,t){var r=t.cx,a=t.cy,n=Math.max(t.r0||0,0),i=Math.max(t.r,0),o=.5*(i-n),s=n+o,l=t.startAngle,c=t.endAngle,u=t.clockwise,d=2*Math.PI,p=u?c-lMath.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function nM(e,t,r){return t*Math.sin(e)*(r?-1:1)}function iM(e,t,r){return t*Math.cos(e)*(r?1:-1)}function oM(e,t,r){var a=e.get("borderRadius");if(null==a)return r?{cornerRadius:0}:null;Object(Ia["t"])(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(Ia["H"])(a,(function(e){return Ts(e,n)}))}}var sM=Math.max,lM=Math.min;function cM(e,t){var r=e.getArea&&e.getArea();if(uA(e,"cartesian2d")){var a=e.getBaseAxis();if("category"!==a.type||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(r.x-=n,r.width+=2*n):(r.y-=n,r.height+=2*n)}}return r}var uM=function(e){function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return Ca(t,e),t.prototype.render=function(e,t,r,a){this._model=e,this._removeOnRenderedListener(r),this._updateDrawMode(e);var n=e.get("coordinateSystem");("cartesian2d"===n||"polar"===n)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,r):this._renderNormal(e,t,r,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){nx(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,r,a){var n,i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?n=c.isHorizontal():"polar"===l.type&&(n="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=hM(e,l);d&&this._enableRealtimeSort(d,o,r);var p=e.get("clip",!0)||d,h=cM(l,o);i.removeClipPath();var f=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("borderRadius")||0,y=[],b=this._backgroundEls,_=a&&a.isInitSort,x=a&&"changeAxisOrder"===a.type;function w(e){var t=bM[l.type](o,e),r=MM(l,n,t);return r.useStyle(g.getItemStyle()),"cartesian2d"===l.type?r.setShape("r",v):r.setShape("cornerRadius",v),y[e]=r,r}o.diff(s).add((function(t){var r=o.getItemModel(t),a=bM[l.type](o,t,r);if(m&&w(t),o.hasValue(t)&&yM[l.type](a)){var s=!1;p&&(s=dM[l.type](h,a));var g=pM[l.type](e,o,t,a,n,u,c.model,!1,f);d&&(g.forceLabelAnimation=!0),wM(g,o,t,r,a,e,n,"polar"===l.type),_?g.attr({shape:a}):d?fM(d,u,g,a,t,n,!1,!1):uh(g,{shape:a},e,t),o.setItemGraphicEl(t,g),i.add(g),g.ignore=s}})).update((function(t,r){var a=o.getItemModel(t),D=bM[l.type](o,t,a);if(m){var S=void 0;0===b.length?S=w(r):(S=b[r],S.useStyle(g.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",v):S.setShape("cornerRadius",v),y[t]=S);var C=bM[l.type](o,t),T=AM(n,C,l);ch(S,{shape:T},u,t)}var I=s.getItemGraphicEl(r);if(o.hasValue(t)&&yM[l.type](D)){var O=!1;if(p&&(O=dM[l.type](h,D),O&&i.remove(I)),I?mh(I):I=pM[l.type](e,o,t,D,n,u,c.model,!!I,f),d&&(I.forceLabelAnimation=!0),x){var A=I.getTextContent();if(A){var M=Ph(A);null!=M.prevValue&&(M.prevValue=M.value)}}else wM(I,o,t,a,D,e,n,"polar"===l.type);_?I.attr({shape:D}):d?fM(d,u,I,D,t,n,!0,x):ch(I,{shape:D},e,t,null),o.setItemGraphicEl(t,I),I.ignore=O,i.add(I)}else i.remove(I)})).remove((function(t){var r=s.getItemGraphicEl(t);r&&fh(r,e,t)})).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Gs);D.removeAll();for(var S=0;Si)return!0;i=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var r=t.scale,a=r.getExtent(),n=Math.max(0,a[0]),i=Math.min(a[1],r.getOrdinalMeta().categories.length-1);n<=i;++n)if(e.ordinalNumbers[n]!==r.getRawOrdinalNumber(n))return!0},t.prototype._updateSortWithinSameData=function(e,t,r,a){if(this._isOrderChangedWithinSameData(e,t,r)){var n=this._dataSort(e,r,t);this._isOrderDifferentInView(n,r)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:n}))}},t.prototype._dispatchInitSort=function(e,t,r){var a=t.baseAxis,n=this._dataSort(e,a,(function(r){return e.get(e.mapDimension(t.otherAxis.dim),r)}));r.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:n})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,r=this._data;e&&e.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl((function(t){fh(t,e,Hd(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(hx),dM={cartesian2d:function(e,t){var r=t.width<0?-1:1,a=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=e.x+e.width,i=e.y+e.height,o=sM(t.x,e.x),s=lM(t.x+t.width,n),l=sM(t.y,e.y),c=lM(t.y+t.height,i),u=sn?s:o,t.y=d&&l>i?c:l,t.width=u?0:s-o,t.height=d?0:c-l,r<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var a=t.r;t.r=t.r0,t.r0=a}var n=lM(t.r,e.r),i=sM(t.r0,e.r0);t.r=n,t.r0=i;var o=n-i<0;if(r<0){a=t.r;t.r=t.r0,t.r0=a}return o}},pM={cartesian2d:function(e,t,r,a,n,i,o,s,l){var c=new Id({shape:Object(Ia["m"])({},a),z2:1});if(c.__dataIndex=r,c.name="item",i){var u=c.shape,d=n?"height":"width";u[d]=0}return c},polar:function(e,t,r,a,n,i,o,s,l){var c=!n&&l?tM:$b,u=new c({shape:a,z2:1});u.name="item";var d=xM(n);if(u.calculateTextPosition=rM(d,{isRoundCap:c===tM}),i){var p=u.shape,h=n?"r":"endAngle",f={};p[h]=n?a.r0:a.startAngle,f[h]=a[h],(s?ch:uh)(u,{shape:f},i)}return u}};function hM(e,t){var r=e.get("realtimeSort",!0),a=t.getBaseAxis();if(r&&"category"===a.type&&"cartesian2d"===t.type)return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function fM(e,t,r,a,n,i,o,s){var l,c;i?(c={x:a.x,width:a.width},l={y:a.y,height:a.height}):(c={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?ch:uh)(r,{shape:l},t,n,null);var u=t?e.baseAxis.model:null;(o?ch:uh)(r,{shape:c},u,n)}function mM(e,t){for(var r=0;r0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(e,t,r){var a=e.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function _M(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function xM(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function wM(e,t,r,a,n,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=e.shape,u=oM(a.getModel("itemStyle"),c,!0);Object(Ia["m"])(c,u),e.setShape(c)}}else{var d=a.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(l);var p=a.getShallow("cursor");p&&e.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",f=xh(a);_h(e,f,{labelFetcher:i,labelDataIndex:r,defaultText:LO(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var g=a.get(["label","position"]);e.textConfig.inside="middle"===g||null,aM(e,"outside"===g?h:g,xM(o),a.get(["label","rotate"]))}kh(m,f,i.getRawValue(r),(function(e){return RO(t,e)}));var v=a.getModel(["emphasis"]);Yp(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Jp(e,a),_M(n)&&(e.style.fill="none",e.style.stroke="none",Object(Ia["k"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function DM(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||"none"===r)return 0;var a=e.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var SM=function(){function e(){}return e}(),CM=function(e){function t(t){var r=e.call(this,t)||this;return r.type="largeBar",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new SM},t.prototype.buildPath=function(e,t){for(var r=t.points,a=this.baseDimIdx,n=1-this.baseDimIdx,i=[],o=[],s=this.barWidth,l=0;l=0?r:null}),30,!1);function OM(e,t,r){for(var a=e.baseDimIdx,n=1-a,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,d=i.length/3;u=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[u]}return-1}function AM(e,t,r){if(uA(r,"cartesian2d")){var a=t,n=r.getArea();return{x:e?a.x:n.x,y:e?n.y:a.y,width:e?a.width:n.width,height:e?n.height:a.height}}n=r.getArea();var i=t;return{cx:n.cx,cy:n.cy,r0:e?n.r0:i.r0,r:e?n.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:2*Math.PI}}function MM(e,t,r){var a="polar"===e.type?$b:Id;return new a({shape:AM(t,r,e),silent:!0,z2:0})}var PM=uM;function kM(e){e.registerChartView(PM),e.registerSeriesModel(JA),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ia["h"](UA,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,NA("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var NM=2*Math.PI,EM=Math.PI/180;function LM(e,t){return om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function RM(e,t){var r=LM(e,t),a=e.get("center"),n=e.get("radius");Ia["t"](n)||(n=[0,n]);var i,o,s=nl(r.width,t.getWidth()),l=nl(r.height,t.getHeight()),c=Math.min(s,l),u=nl(n[0],c/2),d=nl(n[1],c/2),p=e.coordinateSystem;if(p){var h=p.dataToPoint(a);i=h[0]||0,o=h[1]||0}else Ia["t"](a)||(a=[a,a]),i=nl(a[0],s)+r.x,o=nl(a[1],l)+r.y;return{cx:i,cy:o,r0:u,r:d}}function FM(e,t,r){t.eachSeriesByType(e,(function(e){var t=e.getData(),a=t.mapDimension("value"),n=LM(e,r),i=RM(e,r),o=i.cx,s=i.cy,l=i.r,c=i.r0,u=-e.get("startAngle")*EM,d=e.get("endAngle"),p=e.get("padAngle")*EM;d="auto"===d?u-NM:-d*EM;var h=e.get("minAngle")*EM,f=h+p,m=0;t.each(a,(function(e){!isNaN(e)&&m++}));var g=t.getSum(a),v=Math.PI/(g||m)*2,y=e.get("clockwise"),b=e.get("roseType"),_=e.get("stillShowZeroSum"),x=t.getDataExtent(a);x[0]=0;var w=y?1:-1,D=[u,d],S=w*p/2;Ru(D,!y),u=D[0],d=D[1];var C=jM(e);C.startAngle=u,C.endAngle=d,C.clockwise=y;var T=Math.abs(d-u),I=T,O=0,A=u;if(t.setLayout({viewRect:n,r:l}),t.each(a,(function(e,r){var a;if(isNaN(e))t.setItemLayout(r,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:o,cy:s,r0:c,r:b?NaN:l});else{a="area"!==b?0===g&&_?v:e*v:T/m,aa?(i=A+w*a/2,u=i):(i=A+S,u=n-S),t.setItemLayout(r,{angle:a,startAngle:i,endAngle:u,clockwise:y,cx:o,cy:s,r0:c,r:b?al(e,x,[c,l]):l}),A=n}})),Ir?o:i,u=Math.abs(l.label.y-r);if(u>=c.maxY){var d=l.label.x-t-l.len2*n,p=a+l.len,f=Math.abs(d)e.unconstrainedWidth?null:h:null;a.setStyle("width",f)}var m=a.getBoundingRect();i.width=m.width;var g=(a.style.margin||0)+2.1;i.height=m.height+g,i.y-=(i.height-d)/2}}}function UM(e){return"center"===e.position}function WM(e){var t,r,a=e.getData(),n=[],i=!1,o=(e.get("minShowLabelAngle")||0)*$M,s=a.getLayout("viewRect"),l=a.getLayout("r"),c=s.width,u=s.x,d=s.y,p=s.height;function h(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}a.each((function(e){var s=a.getItemGraphicEl(e),d=s.shape,p=s.getTextContent(),m=s.getTextGuideLine(),g=a.getItemModel(e),v=g.getModel("label"),y=v.get("position")||g.get(["emphasis","label","position"]),b=v.get("distanceToLabelLine"),_=v.get("alignTo"),x=nl(v.get("edgeDistance"),c),w=v.get("bleedMargin"),D=g.getModel("labelLine"),S=D.get("length");S=nl(S,c);var C=D.get("length2");if(C=nl(C,c),Math.abs(d.endAngle-d.startAngle)0?"right":"left":P>0?"left":"right"}var $=Math.PI,B=0,z=v.get("rotate");if(Object(Ia["z"])(z))B=z*($/180);else if("center"===y)B=0;else if("radial"===z||!0===z){var G=P<0?-M+$:-M;B=G}else if("tangential"===z&&"outside"!==y&&"outer"!==y){var U=Math.atan2(P,k);U<0&&(U=2*$+U);var W=k>0;W&&(U=$+U),B=U-$}if(i=!!B,p.x=T,p.y=I,p.rotation=B,p.setStyle({verticalAlign:"middle"}),N){p.setStyle({align:A});var H=p.states.select;H&&(H.x+=p.x,H.y+=p.y)}else{var q=p.getBoundingRect().clone();q.applyTransform(p.getComputedTransform());var Y=(p.style.margin||0)+2.1;q.y-=Y/2,q.height+=Y,n.push({label:p,labelLine:m,position:y,len:S,len2:C,minTurnAngle:D.get("minTurnAngle"),maxSurfaceAngle:D.get("maxSurfaceAngle"),surfaceNormal:new jn(P,k),linePoints:O,textAlign:A,labelDistance:b,labelAlignTo:_,edgeDistance:x,bleedMargin:w,rect:q,unconstrainedWidth:q.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:N})}})),!i&&e.get("avoidLabelOverlap")&&zM(n,t,r,l,c,p,u,d);for(var m=0;m0){for(var l=i.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=a.r0}},t.type="pie",t}(hx),YM=qM;function XM(e,t,r){t=Object(Ia["t"])(t)&&{coordDimensions:t}||Object(Ia["m"])({encodeDefine:e.getEncode()},t);var a=e.getSource(),n=mO(a,t).dimensions,i=new fO(n,e);return i.initData(a,r),i}var KM=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},e}(),ZM=KM,JM=Jl(),QM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ZM(Ia["c"](this.getData,this),Ia["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return XM(this,{coordDimensions:["value"],encodeDefaulter:Ia["h"](Nm,this)})},t.prototype.getDataParams=function(t){var r=this.getData(),a=JM(r),n=a.seats;if(!n){var i=[];r.each(r.mapDimension("value"),(function(e){i.push(e)})),n=a.seats=ul(i,r.hostModel.get("percentPrecision"))}var o=e.prototype.getDataParams.call(this,t);return o.percent=n[t]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){Pl(e,"labelLine",["show"]);var t=e.labelLine,r=e.emphasis.labelLine;t.show=t.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Uy),eP=QM;function tP(e){return{seriesType:e,reset:function(e,t){var r=e.getData();r.filterSelf((function(e){var t=r.mapDimension("value"),a=r.get(t,e);return!(Object(Ia["z"])(a)&&!isNaN(a)&&a<0)}))}}}function rP(e){e.registerChartView(YM),e.registerSeriesModel(eP),cw("pie",e.registerAction),e.registerLayout(Object(Ia["h"])(FM,"pie")),e.registerProcessor(VM("pie")),e.registerProcessor(tP("pie"))}var aP=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){return kO(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,r){return r.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Uy),nP=aP,iP=4,oP=function(){function e(){}return e}(),sP=function(e){function t(t){var r=e.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new oP},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var r,a=t.points,n=t.size,i=this.symbolProxy,o=i.shape,s=e.getContext?e.getContext():e,l=s&&n[0]=0;s--){var l=2*s,c=a[l]-i/2,u=a[l+1]-o/2;if(e>=c&&t>=u&&e<=c+i&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var r=this.transformCoordToLocal(e,t),a=this.getBoundingRect();if(e=r[0],t=r[1],a.contain(e,t)){var n=this.hoverDataIdx=this.findDataIndex(e,t);return n>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,r=t.points,a=t.size,n=a[0],i=a[1],o=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u=0&&(l.dataIndex=r+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),cP=lP,uP=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=e.getData(),n=this._updateSymbolDraw(a,e);n.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,r){var a=e.getData(),n=this._updateSymbolDraw(a,e);n.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,t,r){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,r){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var n=MA("").reset(e,t,r);n.progress&&n.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var r=this._symbolDraw,a=t.pipelineContext,n=a.large;return r&&n===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=n?new cP:new UO,this._isLargeDraw=n,this.group.removeAll()),this.group.add(r.group),r},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(hx),dP=uP,pP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(gm),hP=pP,fP=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),mP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rc).models[0]},t.type="cartesian2dAxis",t}(gm);Ia["K"](mP,fP);var gP={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},vP=Ia["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},gP),yP=Ia["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},gP),bP=Ia["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},yP),_P=Ia["i"]({logBase:10},yP),xP={category:vP,value:yP,time:bP,log:_P},wP=0,DP=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++wP}return e.createByAxisModel=function(t){var r=t.option,a=r.data,n=a&&Object(Ia["H"])(a,SP);return new e({categories:n,needCollect:!n,deduplication:!1!==r.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!Object(Ia["C"])(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),null==t&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(Ia["f"])(this.categories))},e}();function SP(e){return Object(Ia["A"])(e)&&null!=e.value?e.value:e+""}var CP=DP,TP={value:1,category:1,time:1,log:1};function IP(e,t,r,a){Object(Ia["k"])(TP,(function(n,i){var o=Object(Ia["I"])(Object(Ia["I"])({},xP[i],!0),a,!0),s=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t+"Axis."+i,r}return Ca(r,e),r.prototype.mergeDefaultAndTheme=function(e,t){var r=cm(this),a=r?dm(e):{},n=t.getTheme();Object(Ia["I"])(e,n.get(i+"Axis")),Object(Ia["I"])(e,this.getDefaultOption()),e.type=OP(e),r&&um(e,a,r)},r.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=CP.createByAxisModel(this))},r.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},r.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},r.type=t+"Axis."+i,r.defaultOption=o,r}(r);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",OP)}function OP(e){return e.type||(e.data?"category":"value")}var AP=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Dc(AP);var MP=AP;function PP(e){return"interval"===e.type||"log"===e.type}function kP(e,t,r,a){var n={},i=e[1]-e[0],o=n.interval=bl(i/t,!0);null!=r&&oa&&(o=n.interval=a);var s=n.intervalPrecision=EP(o),l=n.niceTickExtent=[il(Math.ceil(e[0]/o)*o,s),il(Math.floor(e[1]/o)*o,s)];return RP(l,e),n}function NP(e){var t=Math.pow(10,yl(e)),r=e/t;return r?2===r?r=3:3===r?r=5:r*=2:r=1,il(r*t)}function EP(e){return sl(e)+2}function LP(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function RP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),LP(e,0,t),LP(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function FP(e,t){return e>=t[0]&&e<=t[1]}function jP(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function VP(e,t){return e*(t[1]-t[0])+t[0]}var $P=function(e){function t(t){var r=e.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new CP({})),Object(Ia["t"])(a)&&(a=new CP({categories:Object(Ia["H"])(a,(function(e){return Object(Ia["A"])(e)?e.value:e}))})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return Ca(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(Ia["C"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),FP(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),jP(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(VP(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,r=t[0];while(r<=t[1])e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],n=0,i=this._ordinalMeta.categories.length,o=Math.min(i,t.length);n=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(MP);MP.registerClass($P);var BP=$P,zP=il,GP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Ca(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return FP(e,this._extent)},t.prototype.normalize=function(e){return jP(e,this._extent)},t.prototype.scale=function(e){return VP(e,this._extent)},t.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(t)||(r[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=EP(e)},t.prototype.getTicks=function(e){var t=this._interval,r=this._extent,a=this._niceExtent,n=this._intervalPrecision,i=[];if(!t)return i;var o=1e4;r[0]o)return[]}var l=i.length?i[i.length-1].value:a[1];return r[1]>l&&(e?i.push({value:zP(l+t,n)}):i.push({value:r[1]})),i},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),r=[],a=this.getExtent(),n=1;na[0]&&d>>1;e[n][1]r&&(this._approxInterval=r);var i=qP.length,o=Math.min(WP(qP,this._approxInterval,0,i),i-1);this._interval=qP[o][1],this._minLevelUnit=qP[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return Object(Ia["z"])(e)?e:+gl(e)},t.prototype.contain=function(e){return FP(this.parse(e),this._extent)},t.prototype.normalize=function(e){return jP(this.parse(e),this._extent)},t.prototype.scale=function(e){return VP(e,this._extent)},t.type="time",t}(UP),qP=[["second",df],["minute",pf],["hour",hf],["quarter-day",6*hf],["half-day",12*hf],["day",1.2*ff],["half-week",3.5*ff],["week",7*ff],["month",31*ff],["quarter",95*ff],["half-year",mf/2],["year",mf]];function YP(e,t,r,a){var n=gl(t),i=gl(r),o=function(e){return Of(n,e,a)===Of(i,e,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},c=function(){return l()&&o("day")},u=function(){return c()&&o("hour")},d=function(){return u()&&o("minute")},p=function(){return d()&&o("second")},h=function(){return p()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return d();case"second":return p();case"millisecond":return h()}}function XP(e,t){return e/=ff,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function KP(e){var t=30*ff;return e/=t,e>6?6:e>3?3:e>2?2:1}function ZP(e){return e/=hf,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function JP(e,t){return e/=t?pf:df,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function QP(e){return bl(e,!0)}function ek(e,t,r){var a=new Date(e);switch(wf(t)){case"year":case"month":a[Ff(r)](0);case"day":a[jf(r)](1);case"hour":a[Vf(r)](0);case"minute":a[$f(r)](0);case"second":a[Bf(r)](0),a[zf(r)](0)}return a.getTime()}function tk(e,t,r,a){var n=1e4,i=_f,o=0;function s(e,t,r,n,i,o,s){var l=new Date(t),c=t,u=l[n]();while(c1&&0===c&&i.unshift({value:i[0].value-p})}}for(c=0;c=a[0]&&y<=a[1]&&d++)}var b=(a[1]-a[0])/t;if(d>1.5*b&&p>b/1.5)break;if(c.push(g),d>b||e===i[h])break}u=[]}}}var _=Object(Ia["n"])(Object(Ia["H"])(c,(function(e){return Object(Ia["n"])(e,(function(e){return e.value>=a[0]&&e.value<=a[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],w=_.length-1;for(h=0;h<_.length;++h)for(var D=_[h],S=0;S0)a*=10;var i=[il(sk(t[0]/a)*a),il(ok(t[1]/a)*a)];this._interval=a,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){nk.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ck(e)/ck(this.base),FP(e,this._extent)},t.prototype.normalize=function(e){return e=ck(e)/ck(this.base),jP(e,this._extent)},t.prototype.scale=function(e){return e=VP(e,this._extent),lk(this.base,e)},t.type="log",t}(MP),dk=uk.prototype;function pk(e,t){return ik(e,sl(t))}dk.getMinorTicks=nk.getMinorTicks,dk.getLabel=nk.getLabel,MP.registerClass(uk);var hk=uk,fk=function(){function e(e,t,r){this._prepareParams(e,t,r)}return e.prototype._prepareParams=function(e,t,r){r[1]0&&s>0&&!l&&(o=0),o<0&&s<0&&!c&&(s=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(o=d,l=!0),null!=p&&(s=p,c=!0),{min:o,max:s,minFixed:l,maxFixed:c,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[gk[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var r=mk[e];this[r]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),mk={min:"_determinedMin",max:"_determinedMax"},gk={min:"_dataMin",max:"_dataMax"};function vk(e,t,r){var a=e.rawExtentInfo;return a||(a=new fk(e,t,r),e.rawExtentInfo=a,a)}function yk(e,t){return null==t?null:Object(Ia["l"])(t)?NaN:e.parse(t)}function bk(e,t){var r=e.type,a=vk(e,t,e.getExtent()).calculate();e.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&"time"===r){var s=VA("bar",o),l=!1;if(Ia["k"](s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var c=BA(s),u=_k(n,i,t,c);n=u.min,i=u.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function _k(e,t,r,a){var n=r.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=GA(a,r.axis);if(void 0===o)return{min:e,max:t};var s=1/0;Ia["k"](o,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;Ia["k"](o,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,d=1-(s+l)/i,p=u/d-u;return t+=p*(l/c),e-=p*(s/c),{min:e,max:t}}function xk(e,t){var r=t,a=bk(e,r),n=a.extent,i=r.get("splitNumber");e instanceof hk&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l="interval"===o||"time"===o;e.setExtent(n[0],n[1]),e.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function wk(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new BP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new rk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(MP.getClass(t)||UP)}}function Dk(e){var t=e.scale.getExtent(),r=t[0],a=t[1];return!(r>0&&a>0||r<0&&a<0)}function Sk(e){var t=e.getLabelModel().get("formatter"),r="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(r,a){return e.scale.getFormattedLabel(r,a,t)}}(t):Ia["C"](t)?function(t){return function(r){var a=e.scale.getLabel(r),n=t.replace("{value}",null!=a?a:"");return n}}(t):Ia["w"](t)?function(t){return function(a,n){return null!=r&&(n=a.value-r),t(Ck(e,a),n,null!=a.level?{level:a.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function Ck(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Tk(e){var t=e.model,r=e.scale;if(t.get(["axisLabel","show"])&&!r.isBlank()){var a,n,i=r.getExtent();r instanceof BP?n=r.count():(a=r.getTicks(),n=a.length);var o,s=e.getLabelModel(),l=Sk(e),c=1;n>40&&(c=Math.ceil(n/40));for(var u=0;ue[1]&&(e[1]=a[1])}))}var kk=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return Ia["H"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ia["n"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Nk=kk,Ek=["x","y"];function Lk(e){return"interval"===e.type||"time"===e.type}var Rk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Ek,t}return Ca(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(Lk(e)&&Lk(t)){var r=e.getExtent(),a=t.getExtent(),n=this.dataToPoint([r[0],a[0]]),i=this.dataToPoint([r[1],a[1]]),o=r[1]-r[0],s=a[1]-a[0];if(o&&s){var l=(i[0]-n[0])/o,c=(i[1]-n[1])/s,u=n[0]-r[0]*l,d=n[1]-a[0]*c,p=this._transform=[l,0,0,c,u,d];this._invTransform=Ln([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),r=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&r.contain(r.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var r=this.dataToPoint(e),a=this.dataToPoint(t),n=this.getArea(),i=new Yn(r[0],r[1],a[0]-r[0],a[1]-r[1]);return n.intersect(i)},t.prototype.dataToPoint=function(e,t,r){r=r||[];var a=e[0],n=e[1];if(this._transform&&null!=a&&isFinite(a)&&null!=n&&isFinite(n))return Ua(r,e,this._transform);var i=this.getAxis("x"),o=this.getAxis("y");return r[0]=i.toGlobalCoord(i.dataToCoord(a,t)),r[1]=o.toGlobalCoord(o.dataToCoord(n,t)),r},t.prototype.clampData=function(e,t){var r=this.getAxis("x").scale,a=this.getAxis("y").scale,n=r.getExtent(),i=a.getExtent(),o=r.parse(e[0]),s=a.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(n[0],n[1]),o),Math.max(n[0],n[1])),t[1]=Math.min(Math.max(Math.min(i[0],i[1]),s),Math.max(i[0],i[1])),t},t.prototype.pointToData=function(e,t){var r=[];if(this._invTransform)return Ua(r,e,this._invTransform);var a=this.getAxis("x"),n=this.getAxis("y");return r[0]=a.coordToData(a.toLocalCoord(e[0]),t),r[1]=n.coordToData(n.toLocalCoord(e[1]),t),r},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1])-e,n=Math.min(r[0],r[1])-e,i=Math.max(t[0],t[1])-a+e,o=Math.max(r[0],r[1])-n+e;return new Yn(a,n,i,o)},t}(Nk),Fk=Rk,jk=Jl();function Vk(e,t){var r=Ia["H"](t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function $k(e){var t=e.getLabelModel().get("customValues");if(t){var r=Sk(e),a=e.scale.getExtent(),n=Vk(e,t),i=Ia["n"](n,(function(e){return e>=a[0]&&e<=a[1]}));return{labels:Ia["H"](i,(function(t){var a={value:t};return{formattedLabel:r(a),rawLabel:e.scale.getLabel(a),tickValue:t}}))}}return"category"===e.type?zk(e):Wk(e)}function Bk(e,t){var r=e.getTickModel().get("customValues");if(r){var a=e.scale.getExtent(),n=Vk(e,r);return{ticks:Ia["n"](n,(function(e){return e>=a[0]&&e<=a[1]}))}}return"category"===e.type?Uk(e,t):{ticks:Ia["H"](e.scale.getTicks(),(function(e){return e.value}))}}function zk(e){var t=e.getLabelModel(),r=Gk(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Gk(e,t){var r,a,n=Hk(e,"labels"),i=Ok(t),o=qk(n,i);return o||(Ia["w"](i)?r=Qk(e,i):(a="auto"===i?Xk(e):i,r=Jk(e,a)),Yk(n,i,{labels:r,labelCategoryInterval:a}))}function Uk(e,t){var r,a,n=Hk(e,"ticks"),i=Ok(t),o=qk(n,i);if(o)return o;if(t.get("show")&&!e.scale.isBlank()||(r=[]),Ia["w"](i))r=Qk(e,i,!0);else if("auto"===i){var s=Gk(e,e.getLabelModel());a=s.labelCategoryInterval,r=Ia["H"](s.labels,(function(e){return e.tickValue}))}else a=i,r=Jk(e,a,!0);return Yk(n,i,{ticks:r,tickCategoryInterval:a})}function Wk(e){var t=e.scale.getTicks(),r=Sk(e);return{labels:Ia["H"](t,(function(t,a){return{level:t.level,formattedLabel:r(t,a),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function Hk(e,t){return jk(e)[t]||(jk(e)[t]=[])}function qk(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),p=0,h=0;l<=i[1];l+=s){var f=0,m=0,g=ws(r({value:l}),t.font,"center","top");f=1.3*g.width,m=1.3*g.height,p=Math.max(p,f,7),h=Math.max(h,m,7)}var v=p/u,y=h/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=jk(e.model),x=e.getExtent(),w=_.lastAutoInterval,D=_.lastTickCount;return null!=w&&null!=D&&Math.abs(w-b)<=1&&Math.abs(D-o)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=o,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function Zk(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Jk(e,t,r){var a=Sk(e),n=e.scale,i=n.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=i[0],u=n.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=Ak(e),p=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;p&&c!==i[0]&&m(i[0]);for(var f=c;f<=i[1];f+=l)m(f);function m(e){var t={value:e};s.push(r?e:{formattedLabel:a(t),rawLabel:n.getLabel(t),tickValue:e})}return h&&f-l!==i[1]&&m(i[1]),s}function Qk(e,t,r){var a=e.scale,n=Sk(e),i=[];return Ia["k"](a.getTicks(),(function(e){var o=a.getLabel(e),s=e.value;t(e.value,o)&&i.push(r?s:{formattedLabel:n(e),rawLabel:o,tickValue:s})})),i}var eN=[0,1],tN=function(){function e(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return e.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return cl(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},e.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&"ordinal"===a.type&&(r=r.slice(),rN(r,a.count())),al(e,eN,r,t)},e.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&"ordinal"===a.type&&(r=r.slice(),rN(r,a.count()));var n=al(e,r,eN,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=Bk(this,t),a=r.ticks,n=Object(Ia["H"])(a,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),i=t.get("alignWithLabel");return aN(this,n,i,e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=Object(Ia["H"])(r,(function(e){return Object(Ia["H"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return a},e.prototype.getViewLabels=function(){return $k(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);0===r&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(){return Kk(this)},e}();function rN(e,t){var r=e[1]-e[0],a=t,n=r/a/2;e[0]+=n,e[1]-=n}function aN(e,t,r,a){var n=t.length;if(e.onBand&&!r&&n){var i,o,s=e.getExtent();if(1===n)t[0].coord=s[0],i=t[1]={coord:s[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,c=(t[n-1].coord-t[0].coord)/l;Object(Ia["k"])(t,(function(e){e.coord-=c/2}));var u=e.scale.getExtent();o=1+u[1]-t[n-1].tickValue,i={coord:t[n-1].coord+c*o,tickValue:u[1]+1},t.push(i)}var d=s[0]>s[1];p(t[0].coord,s[0])&&(a?t[0].coord=s[0]:t.shift()),a&&p(s[0],t[0].coord)&&t.unshift({coord:s[0]}),p(s[1],i.coord)&&(a?i.coord=s[1]:t.pop()),a&&p(i.coord,s[1])&&t.push({coord:s[1]})}function p(e,t){return e=il(e),t=il(t),d?e>t:et[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(nN),oN=iN;function sN(e,t,r){r=r||{};var a=e.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,c=n.dim,u=a.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,f="x"===c?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));f[p.onZero]=Math.max(Math.min(m,f[1]),f[0])}i.position=["y"===c?f[p[l]]:d[0],"x"===c?f[p[l]]:d[3]],i.rotation=Math.PI/2*("x"===c?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?f[p[s]]-f[p.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ia["O"](r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=t.get(["axisLabel","rotate"]);return i.labelRotate="top"===l?-v:v,i.z2=1,i}function lN(e){return"cartesian2d"===e.get("coordinateSystem")}function cN(e){var t={xAxisModel:null,yAxisModel:null};return Ia["k"](t,(function(r,a){var n=a.replace(/Model$/,""),i=e.getReferringComponents(n,rc).models[0];t[a]=i})),t}var uN=Math.log;function dN(e,t,r){var a=UP.prototype,n=a.getTicks.call(r),i=a.getTicks.call(r,!0),o=n.length-1,s=a.getInterval.call(r),l=bk(e,t),c=l.extent,u=l.fixMin,d=l.fixMax;if("log"===e.type){var p=uN(e.base);c=[uN(c[0])/p,uN(c[1])/p]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var h=a.getExtent.call(e);u&&(c[0]=h[0]),d&&(c[1]=h[1]);var f=a.getInterval.call(e),m=c[0],g=c[1];if(u&&d)f=(g-m)/o;else if(u){g=c[0]+f*o;while(gc[0]&&isFinite(m)&&isFinite(c[0]))f=NP(f),m=c[1]-f*o}else{var v=e.getTicks().length-1;v>o&&(f=NP(f));var y=f*o;g=Math.ceil(c[1]/f)*f,m=il(g-y),m<0&&c[0]>=0?(m=0,g=il(y)):g>0&&c[1]<=0&&(g=0,m=-il(y))}var b=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(e,m+f*b,g+f*_),a.setInterval.call(e,f),(b||_)&&a.setNiceExtent.call(e,m+f,g-f)}var pN=function(){function e(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ek,this._initCartesian(e,t,r),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var r=this._axesMap;function a(e){var t,r=Object(Ia["F"])(e),a=r.length;if(a){for(var n=[],i=a-1;i>=0;i--){var o=+r[i],s=e[o],l=s.model,c=s.scale;PP(c)&&l.get("alignTicks")&&null==l.get("interval")?n.push(s):(xk(c,l),PP(c)&&(t=s))}n.length&&(t||(t=n.pop(),xk(t.scale,t.model)),Object(Ia["k"])(n,(function(e){dN(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),a(r.x),a(r.y);var n={};Object(Ia["k"])(r.x,(function(e){fN(r,"y",e,n)})),Object(Ia["k"])(r.y,(function(e){fN(r,"x",e,n)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),n=!r&&e.get("containLabel"),i=om(a,{width:t.getWidth(),height:t.getHeight()});this._rect=i;var o=this._axesList;function s(){Object(Ia["k"])(o,(function(e){var t=e.isHorizontal(),r=t?[0,i.width]:[0,i.height],a=e.inverse?1:0;e.setExtent(r[a],r[1-a]),gN(e,t?i.x:i.y)}))}s(),n&&(Object(Ia["k"])(o,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Tk(e);if(t){var r=e.isHorizontal()?"height":"width",a=e.model.get(["axisLabel","margin"]);i[r]-=t[r]+a,"top"===e.position?i.y+=t.height+a:"left"===e.position&&(i.x+=t.width+a)}}})),s()),Object(Ia["k"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(null!=r)return r[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var r="x"+e+"y"+t;return this._coordsMap[r]}Object(Ia["A"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a0?"top":"bottom",a="center"):fl(i-yN)?(n=r>0?"bottom":"top",a="center"):(n="middle",a=i>0&&i0?"right":"left":r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:n}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),_N={axisLine:function(e,t,r,a){var n=t.get(["axisLine","show"]);if("auto"===n&&e.handleAutoShown&&(n=e.handleAutoShown("axisLine")),n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],c=s[0]>l[0];o&&(Ua(s,s,o),Ua(l,l,o));var u=Object(Ia["m"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new t_({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});$_(d.shape,d.style.lineWidth),d.anid="line",r.add(d);var p=t.get(["axisLine","symbol"]);if(null!=p){var h=t.get(["axisLine","symbolSize"]);Object(Ia["C"])(p)&&(p=[p,p]),(Object(Ia["C"])(h)||Object(Ia["z"])(h))&&(h=[h,h]);var f=Ow(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],g=h[1];Object(Ia["k"])([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,a){if("none"!==p[a]&&null!=p[a]){var n=Tw(p[a],-m/2,-g/2,m,g,u.stroke,!0),i=t.r+t.offset,o=c?l:s;n.attr({rotation:t.rotate,x:o[0]+i*Math.cos(e.rotation),y:o[1]-i*Math.sin(e.rotation),silent:!0,z2:11}),r.add(n)}}))}}},axisTickLabel:function(e,t,r,a){var n=IN(r,a,t,e),i=AN(r,a,t,e);if(wN(t,i,n),ON(r,a,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=TC(Object(Ia["H"])(i,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));MC(o)}},axisName:function(e,t,r,a){var n=Object(Ia["O"])(e.axisName,t.get("name"));if(n){var i,o,s=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,d=t.axis.getExtent(),p=d[0]>d[1]?-1:1,h=["start"===s?d[0]-p*u:"end"===s?d[1]+p*u:(d[0]+d[1])/2,CN(s)?e.labelOffset+l*u:0],f=t.get("nameRotate");null!=f&&(f=f*yN/180),CN(s)?i=bN.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(i=xN(e.rotation,s,f||0,d),o=e.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(i.rotation)),!isFinite(o)&&(o=null)));var m=c.getFont(),g=t.get("nameTruncate",!0)||{},v=g.ellipsis,y=Object(Ia["O"])(e.nameTruncateMaxWidth,g.maxWidth,o),b=new Wd({x:h[0],y:h[1],rotation:i.rotation,silent:bN.isLabelSilent(t),style:wh(c,{text:n,font:m,overflow:"truncate",width:y,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||i.textAlign,verticalAlign:c.get("verticalAlign")||i.textVerticalAlign}),z2:1});if(rx({el:b,componentModel:t,itemName:n}),b.__fullText=n,b.anid="name",t.get("triggerEvent")){var _=bN.makeAxisEventDataBase(t);_.targetType="axisName",_.name=n,Hd(b).eventData=_}a.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function xN(e,t,r,a){var n,i,o=hl(r-e),s=a[0]>a[1],l="start"===t&&!s||"start"!==t&&s;return fl(o-yN/2)?(i=l?"bottom":"top",n="center"):fl(o-1.5*yN)?(i=l?"top":"bottom",n="center"):(i="middle",n=o<1.5*yN&&o>yN/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:n,textVerticalAlign:i}}function wN(e,t,r){if(!Ak(e.axis)){var a=e.get(["axisLabel","showMinLabel"]),n=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],c=r[0],u=r[1],d=r[r.length-1],p=r[r.length-2];!1===a?(DN(i),DN(c)):SN(i,o)&&(a?(DN(o),DN(u)):(DN(i),DN(c))),!1===n?(DN(s),DN(d)):SN(l,s)&&(n?(DN(l),DN(p)):(DN(s),DN(d)))}}function DN(e){e&&(e.ignore=!0)}function SN(e,t){var r=e&&e.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(r&&a){var n=An([]);return Nn(n,n,-e.rotation),r.applyTransform(Pn([],n,e.getLocalTransform())),a.applyTransform(Pn([],n,t.getLocalTransform())),r.intersect(a)}}function CN(e){return"middle"===e||"center"===e}function TN(e,t,r,a,n){for(var i=[],o=[],s=[],l=0;l=0||e===t}function FN(e){var t=jN(e);if(t){var r=t.axisPointerModel,a=t.axis.scale,n=r.option,i=r.get("status"),o=r.get("value");null!=o&&(o=a.parse(o));var s=$N(r);null==i&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=o;null!=d.color&&(p=Ia["i"]({color:d.color},o));var h=Ia["I"](Ia["d"](d),{boundaryGap:e,splitNumber:t,scale:r,axisLine:a,axisTick:n,axisLabel:i,name:d.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:u},!1);if(Ia["C"](l)){var f=h.name;h.name=l.replace("{value}",null!=f?f:"")}else Ia["w"](l)&&(h.name=l(h.name,h));var m=new Hh(h,null,this.ecModel);return Ia["K"](m,fP.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ia["I"]({lineStyle:{color:"#bbb"}},pE.axisLine),axisLabel:hE(pE.axisLabel,!1),axisTick:hE(pE.axisTick,!1),splitLine:hE(pE.splitLine,!0),splitArea:hE(pE.splitArea,!0),indicator:[]},t}(gm),mE=fE,gE=["axisLine","axisTickLabel","axisName"],vE=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,r=t.getIndicatorAxes(),a=Ia["H"](r,(function(e){var r=e.model.get("showName")?e.name:"",a=new MN(e.model,{axisName:r,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return a}));Ia["k"](a,(function(e){Ia["k"](gE,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,r=t.getIndicatorAxes();if(r.length){var a=e.get("shape"),n=e.getModel("splitLine"),i=e.getModel("splitArea"),o=n.getModel("lineStyle"),s=i.getModel("areaStyle"),l=n.get("show"),c=i.get("show"),u=o.get("color"),d=s.get("color"),p=Ia["t"](u)?u:[u],h=Ia["t"](d)?d:[d],f=[],m=[];if("circle"===a)for(var g=r[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b3?1.4:n>1?1.2:1.1,l=a>0?s:1/s;PE(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:i,originY:o,isAvailableBehavior:null})}if(r){var c=Math.abs(a),u=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);PE(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:i,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!OE(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;PE(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Za);function PE(e,t,r,a,n){e.pointerChecker&&e.pointerChecker(a,n.originX,n.originY)&&(wn(a.event),kE(e,t,r,a,n))}function kE(e,t,r,a,n){n.isAvailableBehavior=Object(Ia["c"])(NE,null,r,a),e.trigger(t,n)}function NE(e,t,r){var a=r[e];return!e||a&&(!Object(Ia["C"])(a)||t.event[a+"Key"])}var EE=ME;function LE(e,t,r){var a=e.target;a.x+=t,a.y+=r,a.dirty()}function RE(e,t,r,a){var n=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var c=o/e.zoom;e.zoom=o,n.x-=(r-n.x)*(c-1),n.y-=(a-n.y)*(c-1),n.scaleX*=c,n.scaleY*=c,n.dirty()}var FE,jE={axisPointer:1,tooltip:1,brush:1};function VE(e,t,r){var a=t.getComponentByElement(e.topTarget),n=a&&a.coordinateSystem;return a&&a!==r&&!jE.hasOwnProperty(a.mainType)&&n&&n.model!==r}function $E(e){if(Object(Ia["C"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;9===r.nodeType&&(r=r.firstChild);while("svg"!==r.nodeName.toLowerCase()||1!==r.nodeType)r=r.nextSibling;return r}var BE={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},zE=Object(Ia["F"])(BE),GE={"alignment-baseline":"textBaseline","stop-color":"stopColor"},UE=Object(Ia["F"])(GE),WE=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var r=$E(e);this._defsUsePending=[];var a=new Gs;this._root=a;var n=[],i=r.getAttribute("viewBox")||"",o=parseFloat(r.getAttribute("width")||t.width),s=parseFloat(r.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),ZE(r,a,null,!0,!1);var l,c,u=r.firstChild;while(u)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;if(tL(this._defs,this._defsUsePending),this._defsUsePending=[],i){var d=aL(i);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=o&&null!=s&&(c=uL(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var p=a;a=new Gs,a.add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return t.ignoreRootClip||null==o||null==s||a.setClipPath(new Id({shape:{x:0,y:0,width:o,height:s}})),{root:a,width:o,height:s,viewBoxRect:l,viewBoxTransform:c,named:n}},e.prototype._parseNode=function(e,t,r,a,n,i){var o,s=e.nodeName.toLowerCase(),l=a;if("defs"===s&&(n=!0),"text"===s&&(i=!0),"defs"===s||"switch"===s)o=t;else{if(!n){var c=FE[s];if(c&&Object(Ia["q"])(FE,s)){o=c.call(this,e,t);var u=e.getAttribute("name");if(u){var d={name:u,namedFrom:null,svgNodeTagLower:s,el:o};r.push(d),"g"===s&&(l=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:o});t.add(o)}}var p=HE[s];if(p&&Object(Ia["q"])(HE,s)){var h=p.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=h)}}if(o&&o.isGroup){var m=e.firstChild;while(m)1===m.nodeType?this._parseNode(m,o,r,l,n,i):3===m.nodeType&&i&&this._parseText(m,o),m=m.nextSibling}},e.prototype._parseText=function(e,t){var r=new hd({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),JE(r,t);var a=r.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,r.scaleX*=n/9,r.scaleY*=n/9);var i=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=i;var o=r.getBoundingRect();return this._textX+=o.width,t.add(r),r},e.internalField=function(){FE={g:function(e,t){var r=new Gs;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new Id;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new bb;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new t_;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new wb;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r,a=e.getAttribute("points");a&&(r=KE(a));var n=new Yb({shape:{points:r||[]},silent:!0});return XE(t,n),ZE(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var r,a=e.getAttribute("points");a&&(r=KE(a));var n=new Zb({shape:{points:r||[]},silent:!0});return XE(t,n),ZE(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var r=new yd;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",i=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(i);var o=new Gs;return XE(t,o),ZE(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");null!=r&&(this._textX=parseFloat(r)),null!=a&&(this._textY=parseFloat(a));var n=e.getAttribute("dx")||"0",i=e.getAttribute("dy")||"0",o=new Gs;return XE(t,o),ZE(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(e,t){var r=e.getAttribute("d")||"",a=hb(r);return XE(t,a),ZE(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),HE={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),a=parseInt(e.getAttribute("x2")||"10",10),n=parseInt(e.getAttribute("y2")||"0",10),i=new m_(t,r,a,n);return qE(e,i),YE(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),a=parseInt(e.getAttribute("r")||"0",10),n=new v_(t,r,a);return qE(e,n),YE(e,n),n}};function qE(e,t){var r=e.getAttribute("gradientUnits");"userSpaceOnUse"===r&&(t.global=!0)}function YE(e,t){var r=e.firstChild;while(r){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var a=r.getAttribute("offset"),n=void 0;n=a&&a.indexOf("%")>0?parseInt(a,10)/100:a?parseFloat(a):0;var i={};lL(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:n,color:o})}r=r.nextSibling}}function XE(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(Ia["i"])(t.__inheritedStyle,e.__inheritedStyle))}function KE(e){for(var t=aL(e),r=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=aL(o);switch(n=n||On(),s){case"translate":kn(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":En(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Nn(n,n,-parseFloat(l[0])*iL,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*iL);Pn(n,[1,0,c,1,0,0],n);break;case"skewY":var u=Math.tan(parseFloat(l[0])*iL);Pn(n,[1,u,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var sL=/([^\s:;]+)\s*:\s*([^:;]+)/g;function lL(e,t,r){var a=e.getAttribute("style");if(a){var n;sL.lastIndex=0;while(null!=(n=sL.exec(a))){var i=n[1],o=Object(Ia["q"])(BE,i)?BE[i]:null;o&&(t[o]=n[2]);var s=Object(Ia["q"])(GE,i)?GE[i]:null;s&&(r[s]=n[2])}}}function cL(e,t,r){for(var a=0;ar&&(e=n,r=o)}if(e)return yL(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var r=[1/0,1/0],a=[-1/0,-1/0],n=this.geometries;return Object(Ia["k"])(n,(function(t){"polygon"===t.type?vL(t.exterior,r,a,e):Object(Ia["k"])(t.points,(function(t){vL(t,r,a,e)}))})),isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])||(r[0]=r[1]=a[0]=a[1]=0),t=new Yn(r[0],r[1],a[0]-r[0],a[1]-r[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),r=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var a=0,n=r.length;a>1^-(1&s),l=l>>1^-(1&l),s+=n,l+=i,n=s,i=l,a.push([s/r,l/r])}return a}function PL(e,t){return e=OL(e),Ia["H"](Ia["n"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var r=e.properties,a=e.geometry,n=[];switch(a.type){case"Polygon":var i=a.coordinates;n.push(new _L(i[0],i.slice(1)));break;case"MultiPolygon":Ia["k"](a.coordinates,(function(e){e[0]&&n.push(new _L(e[0],e.slice(1)))}));break;case"LineString":n.push(new xL([a.coordinates]));break;case"MultiLineString":n.push(new xL(a.coordinates))}var o=new wL(r[t||"name"],n,r.cp);return o.properties=r,o}))}for(var kL=[126,25],NL="南海诸岛",EL=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],LL=0;LL0,m={api:r,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:f,isGeo:i,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(m):"geoSVG"===s.resourceType&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,l,r,a)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Ia["f"](),r=Ia["f"](),a=this._regionsGroup,n=e.transformInfoRaw,i=e.mapOrGeoModel,o=e.data,s=e.geo.projection,l=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*n.scaleX+n.x,e[1]*n.scaleY+n.y]}function u(e){for(var t=[],r=!l&&s&&s.project,a=0;a=0)&&(p=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;_h(t,xh(a),{labelFetcher:p,labelDataIndex:d,defaultText:r},h);var f=t.getTextContent();if(f&&(JL(f).ignore=f.ignore,t.textConfig&&o)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function nR(e,t,r,a,n,i){e.data?e.data.setItemGraphicEl(i,t):Hd(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:r,region:a&&a.option||{}}}function iR(e,t,r,a,n){e.data||rx({el:t,componentModel:n,itemName:r,itemTooltipOption:a.get("tooltip")})}function oR(e,t,r,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Yp(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&th(t,n,r),o}function sR(e,t,r){var a,n=[];function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&a.push([e,t])},sphere:function(){}});return!r&&s.polygonStart(),Ia["k"](e,(function(e){s.lineStart();for(var t=0;t-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Uy),pR=dR;function hR(e,t){var r={};return Ia["k"](e,(function(e){e.each(e.mapDimension("value"),(function(t,a){var n="ec-"+e.getName(a);r[n]=r[n]||[],isNaN(t)||r[n].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(a,n){for(var i,o="ec-"+e[0].getName(n),s=0,l=1/0,c=-1/0,u=r[o].length,d=0;d1?(h.width=p,h.height=p/b):(h.height=p,h.width=p*b),h.y=d[1]-h.height/2,h.x=d[0]-h.width/2;else{var x=e.getBoxLayoutParams();x.aspect=b,h=om(x,{width:v,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function TR(e,t){Ia["k"](t.get("geoCoord"),(function(t,r){e.addGeoCoord(r,t)}))}var IR=function(){function e(){this.dimensions=xR}return e.prototype.create=function(e,t){var r=[];function a(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,n){var i=e.get("map"),o=new SR(i+n,i,Ia["m"]({nameMap:e.get("nameMap")},a(e)));o.zoomLimit=e.get("scaleLimit"),r.push(o),e.coordinateSystem=o,o.model=e,o.resize=CR,o.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var a=e.get("geoIndex")||0;e.coordinateSystem=r[a]}}));var n={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();n[t]=n[t]||[],n[t].push(e)}})),Ia["k"](n,(function(e,n){var i=Ia["H"](e,(function(e){return e.get("nameMap")})),o=new SR(n,n,Ia["m"]({nameMap:Ia["J"](i)},a(e[0])));o.zoomLimit=Ia["O"].apply(null,Ia["H"](e,(function(e){return e.get("scaleLimit")}))),r.push(o),o.resize=CR,o.resize(e[0],t),Ia["k"](e,(function(e){e.coordinateSystem=o,TR(o,e)}))})),r},e.prototype.getFilledRegions=function(e,t,r,a){for(var n=(e||[]).slice(),i=Ia["f"](),o=0;o=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function $R(e,t){var r=e.isExpand?e.children:[],a=e.parentNode.children,n=e.hierNode.i?a[e.hierNode.i-1]:null;if(r.length){WR(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;n?(e.hierNode.prelim=n.hierNode.prelim+t(e,n),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else n&&(e.hierNode.prelim=n.hierNode.prelim+t(e,n));e.parentNode.hierNode.defaultAncestor=HR(e,n,e.parentNode.hierNode.defaultAncestor||a[0],t)}function BR(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function zR(e){return arguments.length?e:ZR}function GR(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function UR(e,t){return om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function WR(e){var t=e.children,r=t.length,a=0,n=0;while(--r>=0){var i=t[r];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function HR(e,t,r,a){if(t){var n=e,i=e,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,c=i.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;while(s=qR(s),i=YR(i),s&&i){n=qR(n),o=YR(o),n.hierNode.ancestor=e;var p=s.hierNode.prelim+d-i.hierNode.prelim-c+a(s,i);p>0&&(KR(XR(s,e,r),e,p),c+=p,l+=p),d+=s.hierNode.modifier,c+=i.hierNode.modifier,l+=n.hierNode.modifier,u+=o.hierNode.modifier}s&&!qR(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=d-l),i&&!YR(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=c-u,r=e)}return r}function qR(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function YR(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function XR(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function KR(e,t,r){var a=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=a}function ZR(e,t){return e.parentNode===t.parentNode?1:2}var JR=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),QR=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JR},t.prototype.buildPath=function(e,t){var r=t.childPoints,a=r.length,n=t.parentPoint,i=r[0],o=r[a-1];if(1===a)return e.moveTo(n[0],n[1]),void e.lineTo(i[0],i[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=nl(t.forkPosition,1),d=[];d[l]=n[l],d[c]=n[c]+(o[c]-n[c])*u,e.moveTo(n[0],n[1]),e.lineTo(d[0],d[1]),e.moveTo(i[0],i[1]),d[l]=i[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var p=1;py.x,x||(_-=Math.PI));var D=x?"left":"right",S=s.getModel("label"),C=S.get("rotate"),T=C*(Math.PI/180),I=g.getTextContent();I&&(g.setTextConfig({position:S.get("position")||D,rotation:null==C?-_:T,origin:"center"}),I.setStyle("verticalAlign","middle"))}var O=s.get(["emphasis","focus"]),A="relative"===O?Ia["e"](o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===O?o.getAncestorsIndices():"descendant"===O?o.getDescendantIndices():null;A&&(Hd(r).focus=A),aF(n,o,u,r,f,h,m,a),r.__edge&&(r.onHoverStateChange=function(t){if("blur"!==t){var a=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);a&&a.hoverState===Qd||_p(r.__edge,t)}})}function aF(e,t,r,a,n,i,o,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),d=e.getOrient(),p=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),m=a.__edge;if("curve"===c)t.parentNode&&t.parentNode!==r&&(m||(m=a.__edge=new o_({shape:sF(u,d,p,n,n)})),ch(m,{shape:sF(u,d,p,i,o)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==r&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var g=t.children,v=[],y=0;yt&&(t=a.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=r.getData().tree.root,n=e.targetNode;if(Ia["C"](n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=e.targetNodeId;if(null!=i&&(n=a.getNodeById(i)))return{node:n}}}function CF(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function TF(e,t){var r=CF(e);return Ia["r"](r,t)>=0}function IF(e,t){var r=[];while(e){var a=e.dataIndex;r.push({name:e.name,dataIndex:a,value:t.getRawValue(a)}),e=e.parentNode}return r.reverse(),r}var OF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Ca(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},r=e.leaves||{},a=new Hh(r,this,this.ecModel),n=DF.createTree(t,this,i);function i(e){e.wrapMethod("getItemModel",(function(e,t){var r=n.getNodeByDataIndex(t);return r&&r.children.length&&r.isExpand||(e.parentModel=a),e}))}var o=0;n.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return n.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),n.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,r){var a=this.getData().tree,n=a.root.children[0],i=a.getNodeByDataIndex(e),o=i.getValue(),s=i.name;while(i&&i!==n)s=i.parentNode.name+"."+s,i=i.parentNode;return fy("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=IF(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Uy),AF=OF;function MF(e,t,r){var a,n=[e],i=[];while(a=n.pop())if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;i--)a.push(n[i])}}function kF(e,t){e.eachSeriesByType("tree",(function(e){NF(e,t)}))}function NF(e,t){var r=UR(e,t);e.layoutInfo=r;var a=e.get("layout"),n=0,i=0,o=null;"radial"===a?(n=2*Math.PI,i=Math.min(r.height,r.width)/2,o=zR((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(n=r.width,i=r.height,o=zR());var s=e.getData().tree.root,l=s.children[0];if(l){VR(s),MF(l,$R,o),s.hierNode.modifier=-l.hierNode.prelim,PF(l,BR);var c=l,u=l,d=l;PF(l,(function(e){var t=e.getLayout().x;tu.getLayout().x&&(u=e),e.depth>d.depth&&(d=e)}));var p=c===u?1:o(c,u)/2,h=p-c.getLayout().x,f=0,m=0,g=0,v=0;if("radial"===a)f=n/(u.getLayout().x+p+h),m=i/(d.depth-1||1),PF(l,(function(e){g=(e.getLayout().x+h)*f,v=(e.depth-1)*m;var t=GR(g,v);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(m=i/(u.getLayout().x+p+h),f=n/(d.depth-1||1),PF(l,(function(e){v=(e.getLayout().x+h)*m,g="LR"===y?(e.depth-1)*f:n-(e.depth-1)*f,e.setLayout({x:g,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=n/(u.getLayout().x+p+h),m=i/(d.depth-1||1),PF(l,(function(e){g=(e.getLayout().x+h)*f,v="TB"===y?(e.depth-1)*m:i-(e.depth-1)*m,e.setLayout({x:g,y:v},!0)})))}}}function EF(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(e){var r=e.getModel(),a=r.getModel("itemStyle").getItemStyle(),n=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(Ia["m"])(n,a)}))}))}function LF(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=e.dataIndex,a=t.getData().tree,n=a.getNodeByDataIndex(r);n.isExpand=!n.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var a=t.coordinateSystem,n=NR(a,e,void 0,r);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))}function RF(e){e.registerChartView(lF),e.registerSeriesModel(AF),e.registerLayout(kF),e.registerVisual(EF),LF(e)}var FF=["treemapZoomToNode","treemapRender","treemapMove"];function jF(e){for(var t=0;t1)r=r.parentNode;var n=Um(e.ecModel,r.name||r.dataIndex+"",a);t.setVisual("decal",n)}))}var $F=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){var r={name:e.name,children:e.data};BF(r);var a=e.levels||[],n=this.designatedVisualItemStyle={},i=new Hh({itemStyle:n},this,t);a=e.levels=zF(a,t);var o=Ia["H"](a||[],(function(e){return new Hh(e,i,t)}),this),s=DF.createTree(r,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var r=s.getNodeByDataIndex(t),a=r?o[r.depth]:null;return e.parentModel=a||i,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,r){var a=this.getData(),n=this.getRawValue(e),i=a.getName(e);return fy("nameValue",{name:i,value:n})},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=IF(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Ia["m"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Ia["f"](),this._idIndexMapCount=0);var r=t.get(e);return null==r&&t.set(e,r=this._idIndexMapCount++),r},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){VF(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Uy);function BF(e){var t=0;Ia["k"](e.children,(function(e){BF(e);var r=e.value;Ia["t"](r)&&(r=r[0]),t+=r}));var r=e.value;Ia["t"](r)&&(r=r[0]),(null==r||isNaN(r))&&(r=t),r<0&&(r=0),Ia["t"](e.value)?e.value[0]=r:e.value=r}function zF(e,t){var r=Ml(t.get("color")),a=Ml(t.get(["aria","decal","decals"]));if(r){var n,i;e=e||[],Ia["k"](e,(function(e){var t=new Hh(e),r=t.get("color"),a=t.get("decal");(t.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(t.get(["itemStyle","decal"])||a&&"none"!==a)&&(i=!0)}));var o=e[0]||(e[0]={});return n||(o.color=r.slice()),!i&&a&&(o.decal=a.slice()),e}}var GF=$F,UF=8,WF=8,HF=5,qF=function(){function e(e){this.group=new Gs,e.add(this.group)}return e.prototype.render=function(e,t,r,a){var n=e.getModel("breadcrumb"),i=this.group;if(i.removeAll(),n.get("show")&&r){var o=n.getModel("itemStyle"),s=n.getModel("emphasis"),l=o.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,u,l),this._renderContent(e,u,o,s,l,c,a),sm(i,u.pos,u.box)}},e.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var n=Ul(a.getModel().get("name"),""),i=r.getTextRect(n),o=Math.max(i.width+2*UF,t.emptyItemWidth);t.totalWidth+=o+WF,t.renderList.push({node:a,text:n,width:o})}},e.prototype._renderContent=function(e,t,r,a,n,i,o){for(var s=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=im(t.pos,t.box),d=t.totalWidth,p=t.renderList,h=a.getModel("itemStyle").getItemStyle(),f=p.length-1;f>=0;f--){var m=p[f],g=m.node,v=m.width,y=m.text;d>u.width&&(d-=v-l,v=l,y=null);var b=new Yb({shape:{points:YF(s,0,v,c,f===p.length-1,0===f)},style:Object(Ia["i"])(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Wd({style:wh(n,{text:y})}),textConfig:{position:"inside"},z2:1e4*ap,onclick:Object(Ia["h"])(o,g)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=wh(i,{text:y}),b.ensureState("emphasis").style=h,Yp(b,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(b),XF(b,e,g),s+=v+WF}},e.prototype.remove=function(){this.group.removeAll()},e}();function YF(e,t,r,a,n,i){var o=[[n?e:e-HF,t],[e+r,t],[e+r,t+a],[n?e:e-HF,t+a]];return!i&&o.splice(2,0,[e+r+HF,t+a/2]),!n&&o.push([e,t+a/2]),o}function XF(e,t,r){Hd(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&IF(r,t)}}var KF=qF,ZF=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,r,a,n){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:n}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,n=this._storage.length;atj||Math.abs(e.dy)>tj)){var t=this.seriesModel.getData().tree.root;if(!t)return;var r=t.getLayout();if(!r)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x+e.dx,y:r.y+e.dy,width:r.width,height:r.height}})}},t.prototype._onZoom=function(e){var t=e.originX,r=e.originY,a=e.scale;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;var o=new Yn(i.x,i.y,i.width,i.height),s=null,l=this._controllerHost;s=l.zoomLimit;var c=l.zoom=l.zoom||1;if(c*=a,s){var u=s.min||0,d=s.max||1/0;c=Math.max(Math.min(d,c),u)}var p=c/l.zoom;l.zoom=c;var h=this.seriesModel.layoutInfo;t-=h.x,r-=h.y;var f=On();kn(f,f,[-t,-r]),En(f,f,[p,p]),kn(f,f,[t,r]),o.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var r=t.seriesModel.get("nodeClick",!0);if(r){var a=t.findTarget(e.offsetX,e.offsetY);if(a){var n=a.node;if(n.getLayout().isLeafRoot)t._rootToNode(a);else if("zoomToNode"===r)t._zoomToNode(a);else if("link"===r){var i=n.hostTree.data.getItemModel(n.dataIndex),o=i.get("link",!0),s=i.get("target",!0)||"blank";o&&Qf(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,r){var a=this;r||(r=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),r||(r={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new KF(this.group))).render(e,t,r.node,(function(t){"animating"!==a._state&&(TF(e.getViewRoot(),t)?a._rootToNode({node:t}):a._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dj(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var r,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},(function(a){var n=this._storage.background[a.getRawIndex()];if(n){var i=n.transformCoordToLocal(e,t),o=n.shape;if(!(o.x<=i[0]&&i[0]<=o.x+o.width&&o.y<=i[1]&&i[1]<=o.y+o.height))return!1;r={node:a,offsetX:i[0],offsetY:i[1]}}}),this),r},t.type="treemap",t}(hx);function dj(){return{nodeGroup:[],background:[],content:[]}}function pj(e,t,r,a,n,i,o,s,l,c){if(o){var u=o.getLayout(),d=e.getData(),p=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),u&&u.isInView){var h=u.width,f=u.height,m=u.borderWidth,g=u.invisible,v=o.getRawIndex(),y=s&&s.getRawIndex(),b=o.viewChildren,_=u.upperHeight,x=b&&b.length,w=p.getModel("itemStyle"),D=p.getModel(["emphasis","itemStyle"]),S=p.getModel(["blur","itemStyle"]),C=p.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,I=B("nodeGroup",QF);if(I){if(l.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),cj(I).nodeWidth=h,cj(I).nodeHeight=f,u.isAboveViewRoot)return I;var O=B("background",ej,c,ij);O&&R(I,O,x&&u.upperLabelHeight);var A=p.getModel("emphasis"),M=A.get("focus"),P=A.get("blurScope"),k=A.get("disabled"),N="ancestor"===M?o.getAncestorsIndices():"descendant"===M?o.getDescendantIndices():M;if(x)eh(I)&&Qp(I,!1),O&&(Qp(O,!k),d.setItemGraphicEl(o.dataIndex,O),Xp(O,N,P));else{var E=B("content",ej,c,oj);E&&F(I,E),O.disableMorphing=!0,O&&eh(O)&&Qp(O,!1),Qp(I,!k),d.setItemGraphicEl(o.dataIndex,I);var L=p.getShallow("cursor");L&&E.attr("cursor",L),Xp(I,N,P)}return I}}}function R(t,r,a){var n=Hd(r);if(n.dataIndex=o.dataIndex,n.seriesIndex=e.seriesIndex,r.setShape({x:0,y:0,width:h,height:f,r:T}),g)j(r);else{r.invisible=!1;var i=o.getVisual("style"),s=i.stroke,l=lj(w);l.fill=s;var c=sj(D);c.fill=D.get("borderColor");var u=sj(S);u.fill=S.get("borderColor");var d=sj(C);if(d.fill=C.get("borderColor"),a){var p=h-2*m;V(r,s,i.opacity,{x:m,y:0,width:p,height:_})}else r.removeTextContent();r.setStyle(l),r.ensureState("emphasis").style=c,r.ensureState("blur").style=u,r.ensureState("select").style=d,Tp(r)}t.add(r)}function F(t,r){var a=Hd(r);a.dataIndex=o.dataIndex,a.seriesIndex=e.seriesIndex;var n=Math.max(h-2*m,0),i=Math.max(f-2*m,0);if(r.culling=!0,r.setShape({x:m,y:m,width:n,height:i,r:T}),g)j(r);else{r.invisible=!1;var s=o.getVisual("style"),l=s.fill,c=lj(w);c.fill=l,c.decal=s.decal;var u=sj(D),d=sj(S),p=sj(C);V(r,l,s.opacity,null),r.setStyle(c),r.ensureState("emphasis").style=u,r.ensureState("blur").style=d,r.ensureState("select").style=p,Tp(r)}t.add(r)}function j(e){!e.invisible&&i.push(e)}function V(t,r,a,n){var i=p.getModel(n?aj:rj),s=Ul(p.get("name"),null),l=i.getShallow("show");_h(t,xh(p,n?aj:rj),{defaultText:l?s:null,inheritColor:r,defaultOpacity:a,labelFetcher:e,labelDataIndex:o.dataIndex});var c=t.getTextContent();if(c){var d=c.style,h=Object(Ia["M"])(d.padding||0);n&&(t.setTextConfig({layoutRect:n}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((n?n.width:t.shape.width)-h[1]-h[3],0),r=Math.max((n?n.height:t.shape.height)-h[0]-h[2],0);d.width===e&&d.height===r||c.setStyle({width:e,height:r})},d.truncateMinChar=2,d.lineOverflow="truncate",$(d,n,u);var f=c.getState("emphasis");$(f?f.style:null,n,u)}}function $(t,r,a){var n=t?t.text:null;if(!r&&a.isLeafRoot&&null!=n){var i=e.get("drillDownIcon",!0);t.text=i?i+" "+n:n}}function B(e,a,i,o){var s=null!=y&&r[e][y],l=n[e];return s?(r[e][y]=null,z(l,s)):g||(s=new a,s instanceof au&&(s.z2=hj(i,o)),G(l,s)),t[e][v]=s}function z(e,t){var r=e[v]={};t instanceof QF?(r.oldX=t.x,r.oldY=t.y):r.oldShape=Object(Ia["m"])({},t.shape)}function G(e,t){var r=e[v]={},i=o.parentNode,s=t instanceof Gs;if(i&&(!a||"drillDown"===a.direction)){var l=0,c=0,u=n.background[i.getRawIndex()];!a&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(r.oldX=0,r.oldY=c):r.oldShape={x:l,y:c,width:0,height:0}}r.fadein=!s}}function hj(e,t){return e*nj+t}var fj=uj,mj=Ia["k"],gj=Ia["A"],vj=-1,yj=function(){function e(t){var r=t.mappingMethod,a=t.type,n=this.option=Ia["d"](t);this.type=a,this.mappingMethod=r,this._normalizeData=Mj[r];var i=e.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],"piecewise"===r?(xj(n),bj(n)):"category"===r?n.categories?_j(n):xj(n,!0):(Ia["b"]("linear"!==r||n.dataExtent),xj(n))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return Ia["c"](this._normalizeData,this)},e.listVisualTypes=function(){return Ia["F"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,r){Ia["A"](e)?Ia["k"](e,t,r):t.call(r,e)},e.mapVisual=function(t,r,a){var n,i=Ia["t"](t)?[]:Ia["A"](t)?{}:(n=!0,null);return e.eachVisual(t,(function(e,t){var o=r.call(a,e,t);n?i=o:i[t]=o})),i},e.retrieveVisuals=function(t){var r,a={};return t&&mj(e.visualHandlers,(function(e,n){t.hasOwnProperty(n)&&(a[n]=t[n],r=!0)})),r?a:null},e.prepareVisualTypes=function(e){if(Ia["t"](e))e=e.slice();else{if(!gj(e))return[];var t=[];mj(e,(function(e,r){t.push(r)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,r){for(var a,n=1/0,i=0,o=t.length;i=0;i--)null==a[i]&&(delete r[t[i]],t.pop())}function xj(e,t){var r=e.visual,a=[];Ia["A"](r)?mj(r,(function(e){a.push(e)})):null!=r&&a.push(r);var n={color:1,symbol:1};t||1!==a.length||n.hasOwnProperty(e.type)||(a[1]=a[0]),Aj(e,a)}function wj(e){return{applyVisual:function(t,r,a){var n=this.mapValueToVisual(t);a("color",e(r("color"),n))},_normalizedToVisual:Ij([0,1])}}function Dj(e){var t=this.option.visual;return t[Math.round(al(e,[0,1],[0,t.length-1],!0))]||{}}function Sj(e){return function(t,r,a){a(e,this.mapValueToVisual(t))}}function Cj(e){var t=this.option.visual;return t[this.option.loop&&e!==vj?e%t.length:e]}function Tj(){return this.option.visual[0]}function Ij(e){return{linear:function(t){return al(t,e,this.option.visual,!0)},category:Cj,piecewise:function(t,r){var a=Oj.call(this,r);return null==a&&(a=al(t,e,this.option.visual,!0)),a},fixed:Tj}}function Oj(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var a=yj.findPieceIndex(e,r),n=r[a];if(n&&n.visual)return n.visual[this.type]}}function Aj(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=Ia["H"](t,(function(e){var t=no["h"](e);return t||[0,0,0,1]}))),t}var Mj={linear:function(e){return al(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=yj.findPieceIndex(e,t,!0);if(null!=r)return al(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?vj:t},fixed:Ia["L"]};function Pj(e,t,r){return e?t<=r:t=r.length||e===r[e.depth]){var i=Gj(n,c,e,t,f,a);Rj(e,i,r,a)}}))}else s=jj(c),u.fill=s}}function Fj(e,t,r){var a=Object(Ia["m"])({},t),n=r.designatedVisualItemStyle;return Object(Ia["k"])(["color","colorAlpha","colorSaturation"],(function(r){n[r]=t[r];var i=e.get(r);n[r]=null,null!=i&&(a[r]=i)})),a}function jj(e){var t=$j(e,"color");if(t){var r=$j(e,"colorAlpha"),a=$j(e,"colorSaturation");return a&&(t=Object(no["g"])(t,null,null,a)),r&&(t=Object(no["f"])(t,r)),t}}function Vj(e,t){return null!=t?Object(no["g"])(t,null,null,e):null}function $j(e,t){var r=e[t];if(null!=r&&"none"!==r)return r}function Bj(e,t,r,a,n,i){if(i&&i.length){var o=zj(t,"color")||null!=n.color&&"none"!==n.color&&(zj(t,"colorAlpha")||zj(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),c=r.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var u=t.get("colorMappingBy"),d={type:o.name,dataExtent:c,visual:o.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new kj(d);return Ej(p).drColorMappingBy=u,p}}}function zj(e,t){var r=e.get(t);return Object(Ia["t"])(r)&&r.length?{name:t,range:r}:null}function Gj(e,t,r,a,n,i){var o=Object(Ia["m"])({},t);if(n){var s=n.type,l="color"===s&&Ej(n).drColorMappingBy,c="index"===l?a:"id"===l?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=n.mapValueToVisual(c)}return o}var Uj=Math.max,Wj=Math.min,Hj=Ia["O"],qj=Ia["k"],Yj=["itemStyle","borderWidth"],Xj=["itemStyle","gapWidth"],Kj=["upperLabel","show"],Zj=["upperLabel","height"],Jj={seriesType:"treemap",reset:function(e,t,r,a){var n=r.getWidth(),i=r.getHeight(),o=e.option,s=om(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],c=nl(Hj(s.width,l[0]),n),u=nl(Hj(s.height,l[1]),i),d=a&&a.type,p=["treemapZoomToNode","treemapRootToNode"],h=SF(a,p,e),f="treemapRender"===d||"treemapMove"===d?a.rootRect:null,m=e.getViewRoot(),g=CF(m);if("treemapMove"!==d){var v="treemapZoomToNode"===d?oV(e,h,m,c,u):f?[f.width,f.height]:[c,u],y=o.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var b={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};m.setLayout(_),Qj(m,b,!1,0),_=m.getLayout(),qj(g,(function(e,t){var r=(g[t+1]||m).getValue();e.setLayout(Ia["m"]({dataExtent:[r,r],borderWidth:0,upperHeight:0},_))}))}var x=e.getData().tree.root;x.setLayout(sV(s,f,h),!0),e.setLayoutInfo(s),lV(x,new Yn(-s.x,-s.y,n,i),g,m,0)}};function Qj(e,t,r,a){var n,i;if(!e.isRemoved()){var o=e.getLayout();n=o.width,i=o.height;var s=e.getModel(),l=s.get(Yj),c=s.get(Xj)/2,u=cV(s),d=Math.max(l,u),p=l-c,h=d-c;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),n=Uj(n-2*p,0),i=Uj(i-p-h,0);var f=n*i,m=eV(e,s,f,t,r,a);if(m.length){var g={x:p,y:h,width:n,height:i},v=Wj(n,i),y=1/0,b=[];b.area=0;for(var _=0,x=m.length;_=0;l--){var c=n["asc"===a?o-l-1:l].getValue();c/r*to[1]&&(o[1]=t)}))):o=[NaN,NaN],{sum:a,dataExtent:o}}function nV(e,t,r){for(var a=0,n=1/0,i=0,o=void 0,s=e.length;ia&&(a=o));var l=e.area*e.area,c=t*t*r;return l?Uj(c*a/l,l/(c*n)):1/0}function iV(e,t,r,a,n){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],c=r[s[i]],u=t?e.area/t:0;(n||u>r[l[o]])&&(u=r[l[o]]);for(var d=0,p=e.length;dpl&&(c=pl),o=i}ca&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(y[0]=-y[0],y[1]=-y[1]);var _=v[0]<0?-1:1;if("start"!==a.__position&&"end"!==a.__position){var x=-Math.atan2(v[1],v[0]);c[0].8?"left":u[0]<-.8?"right":"center",p=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":a.x=-u[0]*f+l[0],a.y=-u[1]*m+l[1],d=u[0]>.8?"right":u[0]<-.8?"left":"center",p=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=f*_+l[0],a.y=l[1]+w,d=v[0]<0?"right":"left",a.originX=-f*_,a.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+w,d="center",a.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-f*_+c[0],a.y=c[1]+w,d=v[0]>=0?"right":"left",a.originX=f*_,a.originY=-w;break}a.scaleX=a.scaleY=n,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}}}function D(e,t){var r=e.__specifiedRotation;if(null==r){var a=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(a[1],a[0]))}else e.attr("rotation",r)}},t}(Gs),t$=e$,r$=function(){function e(e){this.group=new Gs,this._LineCtor=e||t$}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,n=r._lineData;r._lineData=e,n||a.removeAll();var i=n$(e);e.diff(n).add((function(r){t._doAdd(e,r,i)})).update((function(r,a){t._doUpdate(n,e,a,r,i)})).remove((function(e){a.remove(n.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,r){t.updateLayout(e,r)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=n$(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function r(e){e.isGroup||a$(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var a=e.start;a0}function n$(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:xh(t)}}function i$(e){return isNaN(e[0])||isNaN(e[1])}function o$(e){return e&&!i$(e[0])&&!i$(e[1])}var s$=r$,l$=[],c$=[],u$=[],d$=qi,p$=za,h$=Math.abs;function f$(e,t,r){for(var a,n=e[0],i=e[1],o=e[2],s=1/0,l=r*r,c=.1,u=.1;u<=.9;u+=.1){l$[0]=d$(n[0],i[0],o[0],u),l$[1]=d$(n[1],i[1],o[1],u);var d=h$(p$(l$,t)-l);d=0?a+=c:a-=c:f>=0?a-=c:a+=c}return a}function m$(e,t){var r=[],a=Zi,n=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Ma(l[0]),Ma(l[1])],l[2]&&l.__original.push(Ma(l[2])));var d=l.__original;if(null!=l[2]){if(Aa(n[0],d[0]),Aa(n[1],d[2]),Aa(n[2],d[1]),c&&"none"!==c){var p=MV(e.node1),h=f$(n,d[0],p*t);a(n[0][0],n[1][0],n[2][0],h,r),n[0][0]=r[3],n[1][0]=r[4],a(n[0][1],n[1][1],n[2][1],h,r),n[0][1]=r[3],n[1][1]=r[4]}if(u&&"none"!==u){p=MV(e.node2),h=f$(n,d[1],p*t);a(n[0][0],n[1][0],n[2][0],h,r),n[1][0]=r[1],n[2][0]=r[2],a(n[0][1],n[1][1],n[2][1],h,r),n[1][1]=r[1],n[2][1]=r[2]}Aa(l[0],n[0]),Aa(l[1],n[2]),Aa(l[2],n[1])}else{if(Aa(i[0],d[0]),Aa(i[1],d[1]),Ea(o,i[1],i[0]),ja(o,o),c&&"none"!==c){p=MV(e.node1);Na(i[0],i[0],o,p*t)}if(u&&"none"!==u){p=MV(e.node2);Na(i[1],i[1],o,-p*t)}Aa(l[0],i[0]),Aa(l[1],i[1])}}))}function g$(e){return"view"===e.type}var v$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(e,t){var r=new UO,a=new s$,n=this.group;this._controller=new EE(t.getZr()),this._controllerHost={target:n},n.add(r.group),n.add(a.group),this._symbolDraw=r,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(e,t,r){var a=this,n=e.coordinateSystem;this._model=e;var i=this._symbolDraw,o=this._lineDraw,s=this.group;if(g$(n)){var l={x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY};this._firstRender?s.attr(l):ch(s,l,e)}m$(e.getGraph(),AV(e));var c=e.getData();i.updateData(c);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,r),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p);var h=e.get("layout");c.graph.eachNode((function(t){var r=t.dataIndex,n=t.getGraphicEl(),i=t.getModel();if(n){n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",(function(i){switch(h){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,p),d.setFixed(r),c.setItemLayout(r,[n.x,n.y]);break;case"circular":c.setItemLayout(r,[n.x,n.y]),t.setLayout({fixed:!0},!0),NV(e,"symbolSize",t,[i.offsetX,i.offsetY]),a.updateLayout(e);break;case"none":default:c.setItemLayout(r,[n.x,n.y]),IV(e.getGraph(),e),a.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(r)})),n.setDraggable(o,!!i.get("cursor"));var s=i.get(["emphasis","focus"]);"adjacency"===s&&(Hd(n).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),r=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===r&&(Hd(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=c.getLayout("cx"),g=c.getLayout("cy");c.graph.eachNode((function(e){LV(e,f,m,g)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var r=this;(function a(){e.step((function(e){r.updateLayout(r._model),(r._layouting=!e)&&(t?r._layoutTimeout=setTimeout(a,16):a())}))})()},t.prototype._updateController=function(e,t,r){var a=this,n=this._controller,i=this._controllerHost,o=this.group;n.setPointerChecker((function(t,a,n){var i=o.getBoundingRect();return i.applyTransform(o.transform),i.contain(a,n)&&!VE(t,r,e)})),g$(e.coordinateSystem)?(n.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(t){LE(i,t.dx,t.dy),r.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){RE(i,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),a._updateNodeAndLinkScale(),m$(e.getGraph(),AV(e)),a._lineDraw.updateLayout(),r.updateLabelLayout()}))):n.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),r=AV(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(r)}))},t.prototype.updateLayout=function(e){m$(e.getGraph(),AV(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(hx),y$=v$;function b$(e){return"_EC_"+e}var _$=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var r=this._nodesMap;if(!r[b$(e)]){var a=new x$(e,t);return a.hostGraph=this,this.nodes.push(a),r[b$(e)]=a,a}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[b$(e)]},e.prototype.addEdge=function(e,t,r){var a=this._nodesMap,n=this._edgesMap;if(Ia["z"](e)&&(e=this.nodes[e]),Ia["z"](t)&&(t=this.nodes[t]),e instanceof x$||(e=a[b$(e)]),t instanceof x$||(t=a[b$(t)]),e&&t){var i=e.id+"-"+t.id,o=new w$(e,t,r);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),n[i]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof x$&&(e=e.id),t instanceof x$&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,n=0;n=0&&e.call(t,r[n],n)},e.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,n=0;n=0&&r[n].node1.dataIndex>=0&&r[n].node2.dataIndex>=0&&e.call(t,r[n],n)},e.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof x$||(t=this._nodesMap[b$(t)]),t){for(var n="out"===r?"outEdges":"in"===r?"inEdges":"edges",i=0;i=0&&r.node2.dataIndex>=0}));for(n=0,i=a.length;n=0&&this[e][t].setItemVisual(this.dataIndex,r,a)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,a){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,a)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Ia["K"](x$,D$("hostGraph","data")),Ia["K"](w$,D$("hostGraph","edgeData"));var S$=_$;function C$(e,t,r,a,n){for(var i=new S$(a),o=0;o "+p)),c++)}var h,f=r.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)h=kO(e,r);else{var m=hg.get(f),g=m&&m.dimensions||[];Ia["r"](g,"value")<0&&g.concat(["value"]);var v=mO(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;h=new fO(v,r),h.initData(e)}var y=new fO(["value"],r);return y.initData(l,s),n&&n(h,y),bF({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var T$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return Ca(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new ZM(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Pl(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var r=e.edges||e.links||[],a=e.data||e.nodes||[],n=this;if(a&&r){DV(this);var i=C$(a,r,this,!0,o);return Ia["k"](i.edges,(function(e){SV(e.node1,e.node2,this,e.dataIndex)}),this),i.data}function o(e,t){e.wrapMethod("getItemModel",(function(e){var t=n._categoriesModels,r=e.getShallow("category"),a=t[r];return a&&(a.parentModel=e.parentModel,e.parentModel=a),e}));var r=Hh.prototype.getModel;function a(e,t){var a=r.call(this,e,t);return a.resolveParentPath=i,a}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=i,e.getModel=a,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,r){if("edge"===r){var a=this.getData(),n=this.getDataParams(e,r),i=a.graph.getEdgeByIndex(e),o=a.getName(i.node1.dataIndex),s=a.getName(i.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),fy("nameValue",{name:l.join(" > "),value:n.value,noValue:null==n.value})}var c=My({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=Ia["H"](this.option.categories||[],(function(e){return null!=e.value?e:Ia["m"]({value:0},e)})),t=new fO(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Uy),I$=T$,O$={type:"graphRoam",event:"graphRoam",update:"none"};function A$(e){e.registerChartView(y$),e.registerSeriesModel(I$),e.registerProcessor(dV),e.registerVisual(pV),e.registerVisual(fV),e.registerLayout(OV),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,RV),e.registerLayout(VV),e.registerCoordinateSystem("graphView",{dimensions:bR.dimensions,create:BV}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ia["L"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ia["L"]),e.registerAction(O$,(function(e,t,r){t.eachComponent({mainType:"series",query:e},(function(t){var a=t.coordinateSystem,n=NR(a,e,void 0,r);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))}var M$=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),P$=function(e){function t(t){var r=e.call(this,t)||this;return r.type="pointer",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new M$},t.prototype.buildPath=function(e,t){var r=Math.cos,a=Math.sin,n=t.r,i=t.width,o=t.angle,s=t.x-r(o)*i*(i>=n/3?1:2),l=t.y-a(o)*i*(i>=n/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+r(o)*i,t.y+a(o)*i),e.lineTo(t.x+r(t.angle)*n,t.y+a(t.angle)*n),e.lineTo(t.x-r(o)*i,t.y-a(o)*i),e.lineTo(s,l)},t}(ud),k$=P$;function N$(e,t){var r=e.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=nl(r[0],t.getWidth()),s=nl(r[1],t.getHeight()),l=nl(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function E$(e,t){var r=null==e?"":e+"";return t&&(Object(Ia["C"])(t)?r=t.replace("{value}",r):Object(Ia["w"])(t)&&(r=t(e))),r}var L$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){this.group.removeAll();var a=e.get(["axisLine","lineStyle","color"]),n=N$(e,r);this._renderMain(e,t,r,a,n),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,r,a,n){var i=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),d=u?tM:$b,p=c.get("show"),h=c.getModel("lineStyle"),f=h.get("width"),m=[s,l];Ru(m,!o),s=m[0],l=m[1];for(var g=l-s,v=s,y=[],b=0;p&&b=e&&(0===t?0:a[t-1][0])Math.PI/2&&(j+=Math.PI)):"tangential"===F?j=-S-Math.PI/2:Object(Ia["z"])(F)&&(j=F*Math.PI/180),0===j?d.add(new Wd({style:wh(b,{text:N,x:L,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:E}),silent:!0})):d.add(new Wd({style:wh(b,{text:N,x:L,y:R,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:L,originY:R,rotation:j}))}if(y.get("show")&&M!==_){P=y.get("distance");P=P?P+l:l;for(var V=0;V<=x;V++){c=Math.cos(S),u=Math.sin(S);var $=new t_({shape:{x1:c*(f-P)+p,y1:u*(f-P)+h,x2:c*(f-D-P)+p,y2:u*(f-D-P)+h},silent:!0,style:O});"auto"===O.stroke&&$.setStyle({stroke:a((M+V/x)/_)}),d.add($),S+=T}S-=T}else S+=C}},t.prototype._renderPointer=function(e,t,r,a,n,i,o,s,l){var c=this.group,u=this._data,d=this._progressEls,p=[],h=e.get(["pointer","show"]),f=e.getModel("progress"),m=f.get("show"),g=e.getData(),v=g.mapDimension("value"),y=+e.get("min"),b=+e.get("max"),_=[y,b],x=[i,o];function w(t,r){var a,i=g.getItemModel(t),o=i.getModel("pointer"),s=nl(o.get("width"),n.r),l=nl(o.get("length"),n.r),c=e.get(["pointer","icon"]),u=o.get("offsetCenter"),d=nl(u[0],n.r),p=nl(u[1],n.r),h=o.get("keepAspect");return a=c?Tw(c,d-s/2,p-l,s,l,null,h):new k$({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:p}}),a.rotation=-(r+Math.PI/2),a.x=n.cx,a.y=n.cy,a}function D(e,t){var r=f.get("roundCap"),a=r?tM:$b,o=f.get("overlap"),c=o?f.get("width"):l/g.count(),u=o?n.r-c:n.r-(e+1)*c,d=o?n.r:n.r-e*c,p=new a({shape:{startAngle:i,endAngle:t,cx:n.cx,cy:n.cy,clockwise:s,r0:u,r:d}});return o&&(p.z2=al(g.get(v,e),[y,b],[100,0],!0)),p}(m||h)&&(g.diff(u).add((function(t){var r=g.get(v,t);if(h){var a=w(t,i);uh(a,{rotation:-((isNaN(+r)?x[0]:al(r,_,x,!0))+Math.PI/2)},e),c.add(a),g.setItemGraphicEl(t,a)}if(m){var n=D(t,i),o=f.get("clip");uh(n,{shape:{endAngle:al(r,_,x,o)}},e),c.add(n),qd(e.seriesIndex,g.dataType,t,n),p[t]=n}})).update((function(t,r){var a=g.get(v,t);if(h){var n=u.getItemGraphicEl(r),o=n?n.rotation:i,s=w(t,o);s.rotation=o,ch(s,{rotation:-((isNaN(+a)?x[0]:al(a,_,x,!0))+Math.PI/2)},e),c.add(s),g.setItemGraphicEl(t,s)}if(m){var l=d[r],y=l?l.shape.endAngle:i,b=D(t,y),S=f.get("clip");ch(b,{shape:{endAngle:al(a,_,x,S)}},e),c.add(b),qd(e.seriesIndex,g.dataType,t,b),p[t]=b}})).execute(),g.each((function(e){var t=g.getItemModel(e),r=t.getModel("emphasis"),n=r.get("focus"),i=r.get("blurScope"),o=r.get("disabled");if(h){var s=g.getItemGraphicEl(e),l=g.getItemVisual(e,"style"),c=l.fill;if(s instanceof yd){var u=s.style;s.useStyle(Object(Ia["m"])({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",a(al(g.get(v,e),_,[0,1],!0))),s.z2EmphasisLift=0,Jp(s,t),Yp(s,n,i,o)}if(m){var d=p[e];d.useStyle(g.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Jp(d,t),Yp(d,n,i,o)}})),this._progressEls=p)},t.prototype._renderAnchor=function(e,t){var r=e.getModel("anchor"),a=r.get("show");if(a){var n=r.get("size"),i=r.get("icon"),o=r.get("offsetCenter"),s=r.get("keepAspect"),l=Tw(i,t.cx-n/2+nl(o[0],t.r),t.cy-n/2+nl(o[1],t.r),n,n,null,s);l.z2=r.get("showAbove")?1:0,l.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,r,a,n){var i=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new Gs,d=[],p=[],h=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);o.diff(this._data).add((function(e){d[e]=new Wd({silent:!0}),p[e]=new Wd({silent:!0})})).update((function(e,t){d[e]=i._titleEls[t],p[e]=i._detailEls[t]})).execute(),o.each((function(t){var r=o.getItemModel(t),i=o.get(s,t),m=new Gs,g=a(al(i,[l,c],[0,1],!0)),v=r.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=n.cx+nl(y[0],n.r),_=n.cy+nl(y[1],n.r),x=d[t];x.attr({z2:f?0:2,style:wh(v,{x:b,y:_,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),m.add(x)}var w=r.getModel("detail");if(w.get("show")){var D=w.get("offsetCenter"),S=n.cx+nl(D[0],n.r),C=n.cy+nl(D[1],n.r),T=nl(w.get("width"),n.r),I=nl(w.get("height"),n.r),O=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:g,A=(x=p[t],w.get("formatter"));x.attr({z2:f?0:2,style:wh(w,{x:S,y:C,text:E$(i,A),width:isNaN(T)?null:T,height:isNaN(I)?null:I,align:"center",verticalAlign:"middle"},{inheritColor:O})}),kh(x,{normal:w},i,(function(e){return E$(e,A)})),h&&Nh(x,t,o,e,{getFormattedLabel:function(e,t,r,a,n,o){return E$(o?o.interpolatedValue:i,A)}}),m.add(x)}u.add(m)})),this.group.add(u),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(hx),R$=L$,F$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return Ca(t,e),t.prototype.getInitialData=function(e,t){return XM(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Uy),j$=F$;function V$(e){e.registerChartView(R$),e.registerSeriesModel(j$)}var $$=["itemStyle","opacity"],B$=function(e){function t(t,r){var a=e.call(this)||this,n=a,i=new Zb,o=new Wd;return n.setTextContent(o),a.setTextGuideLine(i),a.updateData(t,r,!0),a}return Ca(t,e),t.prototype.updateData=function(e,t,r){var a=this,n=e.hostModel,i=e.getItemModel(t),o=e.getItemLayout(t),s=i.getModel("emphasis"),l=i.get($$);l=null==l?1:l,r||mh(a),a.useStyle(e.getItemVisual(t,"style")),a.style.lineJoin="round",r?(a.setShape({points:o.points}),a.style.opacity=0,uh(a,{style:{opacity:l}},n,t)):ch(a,{style:{opacity:l},shape:{points:o.points}},n,t),Jp(a,i),this._updateLabel(e,t),Yp(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var r=this,a=this.getTextGuideLine(),n=r.getTextContent(),i=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;_h(n,xh(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),r.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var d=l.linePoints;a.setShape({points:d}),r.textGuideLineConfig={anchor:d?new jn(d[0][0],d[0][1]):null},ch(n,{style:{x:l.x,y:l.y}},i,t),n.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),SC(r,CC(o),{stroke:u})},t}(Yb),z$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=e.getData(),n=this._data,i=this.group;a.diff(n).add((function(e){var t=new B$(a,e);a.setItemGraphicEl(e,t),i.add(t)})).update((function(e,t){var r=n.getItemGraphicEl(t);r.updateData(a,e),i.add(r),a.setItemGraphicEl(e,r)})).remove((function(t){var r=n.getItemGraphicEl(t);fh(r,e,t)})).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(hx),G$=z$,U$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ZM(Ia["c"](this.getData,this),Ia["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return XM(this,{coordDimensions:["value"],encodeDefaulter:Ia["h"](Nm,this)})},t.prototype._defaultLabelLine=function(e){Pl(e,"labelLine",["show"]);var t=e.labelLine,r=e.emphasis.labelLine;t.show=t.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var r=this.getData(),a=e.prototype.getDataParams.call(this,t),n=r.mapDimension("value"),i=r.getSum(n);return a.percent=i?+(r.get(n,t)/i*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Uy),W$=U$;function H$(e,t){return om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function q$(e,t){for(var r=e.mapDimension("value"),a=e.mapArray(r,(function(e){return e})),n=[],i="ascending"===t,o=0,s=e.count();ogB)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&bB(this,"mousemove")){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),a=r.behavior;"jump"===a&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===a?null:{axisExpandWindow:r.axisExpandWindow,animation:"jump"===a?null:{duration:0}})}}};function bB(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var _B=vB,xB=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&Ia["I"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var r=e.get("parallelIndex");return null!=r&&t.getComponent("parallel",r)===this},t.prototype.setAxisExpand=function(e){Ia["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],r=Ia["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);Ia["k"](r,(function(r){e.push("dim"+r.get("dim")),t.push(r.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(gm),wB=xB,DB=function(e){function t(t,r,a,n,i){var o=e.call(this,t,r,a)||this;return o.type=n||"value",o.axisIndex=i,o}return Ca(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(nN),SB=DB;function CB(e,t,r,a,n,i){e=e||0;var o=r[1]-r[0];if(null!=n&&(n=IB(n,[0,o])),null!=i&&(i=Math.max(i,null!=n?n:0)),"all"===a){var s=Math.abs(t[1]-t[0]);s=IB(s,[0,o]),n=i=IB(s,[n,i]),a=0}t[0]=IB(t[0],r),t[1]=IB(t[1],r);var l=TB(t,a);t[a]+=e;var c,u=n||0,d=r.slice();return l.sign<0?d[0]+=u:d[1]-=u,t[a]=IB(t[a],d),c=TB(t,a),null!=n&&(c.sign!==l.sign||c.spani&&(t[1-a]=t[a]+c.sign*i),t}function TB(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function IB(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var OB=Ia["k"],AB=Math.min,MB=Math.max,PB=Math.floor,kB=Math.ceil,NB=il,EB=Math.PI,LB=function(){function e(e,t,r){this.type="parallel",this._axesMap=Ia["f"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return e.prototype._init=function(e,t,r){var a=e.dimensions,n=e.parallelAxisIndex;OB(a,(function(e,r){var a=n[r],i=t.getComponent("parallelAxis",a),o=this._axesMap.set(e,new SB(e,wk(i),[0,0],i.get("type"),a)),s="category"===o.type;o.onBand=s&&i.get("boundaryGap"),o.inverse=i.get("inverse"),i.axis=o,o.model=i,o.coordinateSystem=i.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,n=t.pixelDimIndex,i=e[1-n],o=e[n];return i>=r&&i<=r+t.axisLength&&o>=a&&o<=a+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(r){if(e.contains(r,t)){var a=r.getData();OB(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(a,a.mapDimension(e)),xk(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,r=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o="horizontal"===i?0:1,s=r[n[o]],l=[0,s],c=this.dimensions.length,u=RB(t.get("axisExpandWidth"),l),d=RB(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,h=t.get("axisExpandWindow");if(h)e=RB(h[1]-h[0],l),h[1]=h[0]+e;else{e=RB(u*(d-1),l);var f=t.get("axisExpandCenter")||PB(c/2);h=[u*f-e/2],h[1]=h[0]+e}var m=(s-e)/(c-d);m<3&&(m=0);var g=[PB(NB(h[0]/u,1))+1,kB(NB(h[1]/u,1))-1],v=m/u*h[0];return{layout:i,pixelDimIndex:o,layoutBase:r[a[o]],layoutLength:s,axisBase:r[a[1-o]],axisLength:r[n[1-o]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:m,axisExpandWindow:h,axisCount:c,winInnerIndices:g,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;t.each((function(e){var t=[0,a.axisLength],r=e.inverse?1:0;e.setExtent(t[r],t[1-r])})),OB(r,(function(t,r){var i=(a.axisExpandable?jB:FB)(r,a),o={horizontal:{x:i.position,y:a.axisLength},vertical:{x:0,y:i.position}},s={horizontal:EB/2,vertical:0},l=[o[n].x+e.x,o[n].y+e.y],c=s[n],u=On();Nn(u,u,c),kn(u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:i.axisNameAvailableWidth,axisLabelShow:i.axisLabelShow,nameTruncateMaxWidth:i.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,r,a){null==r&&(r=0),null==a&&(a=e.count());var n=this._axesMap,i=this.dimensions,o=[],s=[];Ia["k"](i,(function(t){o.push(e.mapDimension(t)),s.push(n.get(t).model)}));for(var l=this.hasAxisBrushed(),c=r;cn*(1-u[0])?(l="jump",o=s-n*(1-u[2])):(o=s-n*u[1])>=0&&(o=s-n*(1-u[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?CB(o,a,i,"all"):l="none";else{var p=a[1]-a[0],h=i[1]*s/p;a=[MB(0,h-p/2)],a[1]=AB(i[1],a[0]+p),a[0]=a[1]-p}return{axisExpandWindow:a,behavior:l}},e}();function RB(e,t){return AB(MB(e,t[0]),t[1])}function FB(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function jB(e,t){var r,a,n=t.layoutLength,i=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e=0;r--)ol(t[r])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var r=t[0];if(r[0]<=e&&e<=r[1])return"active"}else for(var a=0,n=t.length;aKB}function mz(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function gz(e,t,r,a){var n=new Gs;return n.add(new Id({name:"main",style:_z(r),silent:!0,draggable:!0,cursor:"move",drift:Object(Ia["h"])(Cz,e,t,n,["n","s","w","e"]),ondragend:Object(Ia["h"])(hz,t,{isEnd:!0})})),Object(Ia["k"])(a,(function(r){n.add(new Id({name:r.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(Ia["h"])(Cz,e,t,n,r),ondragend:Object(Ia["h"])(hz,t,{isEnd:!0})}))})),n}function vz(e,t,r,a){var n=a.brushStyle.lineWidth||0,i=qB(n,ZB),o=r[0][0],s=r[1][0],l=o-n/2,c=s-n/2,u=r[0][1],d=r[1][1],p=u-i+n/2,h=d-i+n/2,f=u-o,m=d-s,g=f+n,v=m+n;bz(e,t,"main",o,s,f,m),a.transformable&&(bz(e,t,"w",l,c,i,v),bz(e,t,"e",p,c,i,v),bz(e,t,"n",l,c,g,i),bz(e,t,"s",l,h,g,i),bz(e,t,"nw",l,c,i,i),bz(e,t,"ne",p,c,i,i),bz(e,t,"sw",l,h,i,i),bz(e,t,"se",p,h,i,i))}function yz(e,t){var r=t.__brushOption,a=r.transformable,n=t.childAt(0);n.useStyle(_z(r)),n.attr({silent:!a,cursor:a?"move":"default"}),Object(Ia["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(r){var n=t.childOfName(r.join("")),i=1===r.length?Dz(e,r[0]):Sz(e,r);n&&n.attr({silent:!a,invisible:!a,cursor:a?ez[i]+"-resize":null})}))}function bz(e,t,r,a,n,i,o){var s=t.childOfName(r);s&&s.setShape(Az(Oz(e,t,[[a,n],[a+i,n+o]])))}function _z(e){return Object(Ia["i"])({strokeNoScale:!0},e.brushStyle)}function xz(e,t,r,a){var n=[HB(e,r),HB(t,a)],i=[qB(e,r),qB(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function wz(e){return G_(e.group)}function Dz(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=W_(r[t],wz(e));return a[n]}function Sz(e,t){var r=[Dz(e,t[0]),Dz(e,t[1])];return("e"===r[0]||"w"===r[0])&&r.reverse(),r.join("")}function Cz(e,t,r,a,n,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=Iz(t,n,i);Object(Ia["k"])(a,(function(e){var t=QB[e];s[t[0]][t[1]]+=l[t[0]]})),o.range=e.fromRectRange(xz(s[0][0],s[1][0],s[0][1],s[1][1])),lz(t,r),hz(t,{isEnd:!1})}function Tz(e,t,r,a){var n=t.__brushOption.range,i=Iz(e,r,a);Object(Ia["k"])(n,(function(e){e[0]+=i[0],e[1]+=i[1]})),lz(e,t),hz(e,{isEnd:!1})}function Iz(e,t,r){var a=e.group,n=a.transformCoordToLocal(t,r),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Oz(e,t,r){var a=dz(e,t);return a&&a!==WB?a.clipPath(r,e._transform):Object(Ia["d"])(r)}function Az(e){var t=HB(e[0][0],e[1][0]),r=HB(e[0][1],e[1][1]),a=qB(e[0][0],e[1][0]),n=qB(e[0][1],e[1][1]);return{x:t,y:r,width:a-t,height:n-r}}function Mz(e,t,r){if(e._brushType&&!Fz(e,t.offsetX,t.offsetY)){var a=e._zr,n=e._covers,i=uz(e,t,r);if(!e._dragging)for(var o=0;oa.getWidth()||r<0||r>a.getHeight()}var jz={lineX:Vz(0),lineY:Vz(1),rect:{createCover:function(e,t){function r(e){return e}return gz({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=mz(e);return xz(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,a){vz(e,t,r,a)},updateCommon:yz,contain:kz},polygon:{createCover:function(e,t){var r=new Gs;return r.add(new Zb({name:"main",style:_z(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Yb({name:"main",draggable:!0,drift:Object(Ia["h"])(Tz,e,t),ondragend:Object(Ia["h"])(hz,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,a){t.childAt(0).setShape({points:Oz(e,t,r)})},updateCommon:yz,contain:kz}};function Vz(e){return{createCover:function(t,r){return gz({toRectRange:function(t){var r=[t,[0,100]];return e&&r.reverse(),r},fromRectRange:function(t){return t[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=mz(t),a=HB(r[0][e],r[1][e]),n=qB(r[0][e],r[1][e]);return[a,n]},updateCoverShape:function(t,r,a,n){var i,o=dz(t,r);if(o!==WB&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[a,i];e&&l.reverse(),vz(t,r,l,n)},updateCommon:yz,contain:kz}}var $z=az;function Bz(e){return e=Uz(e),function(t){return X_(t,e)}}function zz(e,t){return e=Uz(e),function(r){var a=null!=t?t:r,n=a?e.width:e.height,i=a?e.x:e.y;return[i,i+(n||0)]}}function Gz(e,t,r){var a=Uz(e);return function(e,n){return a.contain(n[0],n[1])&&!VE(e,t,r)}}function Uz(e){return Yn.create(e)}var Wz=["axisLine","axisTickLabel","axisName"],Hz=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(t,r){e.prototype.init.apply(this,arguments),(this._brushController=new $z(r.getZr())).on("brush",Ia["c"](this._onBrush,this))},t.prototype.render=function(e,t,r,a){if(!qz(e,t,a)){this.axisModel=e,this.api=r,this.group.removeAll();var n=this._axisGroup;if(this._axisGroup=new Gs,this.group.add(this._axisGroup),e.get("show")){var i=Xz(e,t),o=i.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=o.getAxisLayout(c),d=Ia["m"]({strokeContainThreshold:l},u),p=new MN(e,d);Ia["k"](Wz,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,s,e,i,l,r),Y_(n,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,r,a,n,i){var o=r.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),c=Yn.create({x:o[0],y:-n/2,width:s,height:n});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Bz(c),isTargetByCursor:Gz(c,i,a),getLinearBrushOtherExtent:zz(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Yz(r))},t.prototype._onBrush=function(e){var t=e.areas,r=this.axisModel,a=r.axis,n=Ia["H"](t,(function(e){return[a.coordToData(e.range[0],!0),a.coordToData(e.range[1],!0)]}));(!r.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:n})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Hy);function qz(e,t,r){return r&&"axisAreaSelect"===r.type&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function Yz(e){var t=e.axis;return Ia["H"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Xz(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Kz=Hz,Zz={type:"axisAreaSelect",event:"axisAreaSelected"};function Jz(e){e.registerAction(Zz,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var Qz={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function eG(e){e.registerComponentView(_B),e.registerComponentModel(wB),e.registerCoordinateSystem("parallel",zB),e.registerPreprocessor(hB),e.registerComponentModel(UB),e.registerComponentView(Kz),IP(e,"parallel",UB,Qz),Jz(e)}function tG(e){tC(eG),e.registerChartView(iB),e.registerSeriesModel(cB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,pB)}var rG=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),aG=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultShape=function(){return new rG},t.prototype.buildPath=function(e,t){var r=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+r,t.y2),e.bezierCurveTo(t.cpx2+r,t.cpy2,t.cpx1+r,t.cpy1,t.x1+r,t.y1)):(e.lineTo(t.x2,t.y2+r),e.bezierCurveTo(t.cpx2,t.cpy2+r,t.cpx1,t.cpy1+r,t.x1,t.y1+r)),e.closePath()},t.prototype.highlight=function(){Ap(this)},t.prototype.downplay=function(){Mp(this)},t}(ud),nG=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=this,n=e.getGraph(),i=this.group,o=e.layoutInfo,s=o.width,l=o.height,c=e.getData(),u=e.getData("edge"),d=e.get("orient");this._model=e,i.removeAll(),i.x=o.x,i.y=o.y,n.eachEdge((function(t){var r=new aG,a=Hd(r);a.dataIndex=t.dataIndex,a.seriesIndex=e.seriesIndex,a.dataType="edge";var n,o,c,p,h,f,m,g,v=t.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),_=t.node1.getLayout(),x=t.node1.getModel(),w=x.get("localX"),D=x.get("localY"),S=t.node2.getLayout(),C=t.node2.getModel(),T=C.get("localX"),I=C.get("localY"),O=t.getLayout();r.shape.extent=Math.max(1,O.dy),r.shape.orient=d,"vertical"===d?(n=(null!=w?w*s:_.x)+O.sy,o=(null!=D?D*l:_.y)+_.dy,c=(null!=T?T*s:S.x)+O.ty,p=null!=I?I*l:S.y,h=n,f=o*(1-b)+p*b,m=c,g=o*b+p*(1-b)):(n=(null!=w?w*s:_.x)+_.dx,o=(null!=D?D*l:_.y)+O.sy,c=null!=T?T*s:S.x,p=(null!=I?I*l:S.y)+O.ty,h=n*(1-b)+c*b,f=o,m=n*b+c*(1-b),g=p),r.setShape({x1:n,y1:o,x2:c,y2:p,cpx1:h,cpy1:f,cpx2:m,cpy2:g}),r.useStyle(y.getItemStyle()),iG(r.style,d,t);var A=""+v.get("value"),M=xh(v,"edgeLabel");_h(r,M,{labelFetcher:{getFormattedLabel:function(t,r,a,n,i,o){return e.getFormattedLabel(t,r,"edge",n,Object(Ia["Q"])(i,M.normal&&M.normal.get("formatter"),A),o)}},labelDataIndex:t.dataIndex,defaultText:A}),r.setTextConfig({position:"inside"});var P=v.getModel("emphasis");Jp(r,v,"lineStyle",(function(e){var r=e.getItemStyle();return iG(r,d,t),r})),i.add(r),u.setItemGraphicEl(t.dataIndex,r);var k=P.get("focus");Yp(r,"adjacency"===k?t.getAdjacentDataIndices():"trajectory"===k?t.getTrajectoryDataIndices():k,P.get("blurScope"),P.get("disabled"))})),n.eachNode((function(t){var r=t.getLayout(),a=t.getModel(),n=a.get("localX"),o=a.get("localY"),u=a.getModel("emphasis"),d=a.get(["itemStyle","borderRadius"])||0,p=new Id({shape:{x:null!=n?n*s:r.x,y:null!=o?o*l:r.y,width:r.dx,height:r.dy,r:d},style:a.getModel("itemStyle").getItemStyle(),z2:10});_h(p,xh(a),{labelFetcher:{getFormattedLabel:function(t,r){return e.getFormattedLabel(t,r,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),p.disableLabelAnimation=!0,p.setStyle("fill",t.getVisual("color")),p.setStyle("decal",t.getVisual("style").decal),Jp(p,a),i.add(p),c.setItemGraphicEl(t.dataIndex,p),Hd(p).dataType="node";var h=u.get("focus");Yp(p,"adjacency"===h?t.getAdjacentDataIndices():"trajectory"===h?t.getTrajectoryDataIndices():h,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,n){var i=c.getItemModel(n);i.get("draggable")&&(t.drift=function(t,i){a._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=i,this.dirty(),r.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){a._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&i.setClipPath(oG(i.getBoundingRect(),e,(function(){i.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(hx);function iG(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var a=r.node1.getVisual("color"),n=r.node2.getVisual("color");Object(Ia["C"])(a)&&Object(Ia["C"])(n)&&(e.fill=new m_(0,0,+("horizontal"===t),+("vertical"===t),[{color:a,offset:0},{color:n,offset:1}]))}}function oG(e,t,r){var a=new Id({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return uh(a,{shape:{width:e.width+20}},t,r),a}var sG=nG,lG=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){var r=e.edges||e.links||[],a=e.data||e.nodes||[],n=e.levels||[];this.levelModels=[];for(var i=this.levelModels,o=0;o=0&&(i[n[o].depth]=new Hh(n[o],this,t));var s=C$(a,r,this,!0,l);return s.data;function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var r=e.parentModel,a=r.getData().getItemLayout(t);if(a){var n=a.depth,i=r.levelModels[n];i&&(e.parentModel=i)}return e})),t.wrapMethod("getItemModel",(function(e,t){var r=e.parentModel,a=r.getGraph().getEdgeByIndex(t),n=a.node1.getLayout();if(n){var i=n.depth,o=r.levelModels[i];o&&(e.parentModel=o)}return e}))}},t.prototype.setNodePosition=function(e,t){var r=this.option.data||this.option.nodes,a=r[e];a.localX=t[0],a.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,r){function a(e){return isNaN(e)||null==e}if("edge"===r){var n=this.getDataParams(e,r),i=n.data,o=n.value,s=i.source+" -- "+i.target;return fy("nameValue",{name:s,value:o,noValue:a(o)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,r).data.name;return fy("nameValue",{name:null!=u?u+"":null,value:c,noValue:a(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,r){var a=e.prototype.getDataParams.call(this,t,r);if(null==a.value&&"node"===r){var n=this.getGraph().getNodeByIndex(t),i=n.getLayout().value;a.value=i}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Uy),cG=lG;function uG(e,t){e.eachSeriesByType("sankey",(function(e){var r=e.get("nodeWidth"),a=e.get("nodeGap"),n=dG(e,t);e.layoutInfo=n;var i=n.width,o=n.height,s=e.getGraph(),l=s.nodes,c=s.edges;hG(l);var u=Ia["n"](l,(function(e){return 0===e.getLayout().value})),d=0!==u.length?0:e.get("layoutIterations"),p=e.get("orient"),h=e.get("nodeAlign");pG(l,c,r,a,i,o,d,p,h)}))}function dG(e,t){return om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function pG(e,t,r,a,n,i,o,s,l){fG(e,t,r,n,i,s,l),bG(e,t,i,n,a,o,s),kG(e,s)}function hG(e){Ia["k"](e,(function(e){var t=MG(e.outEdges,AG),r=MG(e.inEdges,AG),a=e.getValue()||0,n=Math.max(t,r,a);e.setLayout({value:n},!0)}))}function fG(e,t,r,a,n,i,o){for(var s=[],l=[],c=[],u=[],d=0,p=0;p=0;v&&g.depth>h&&(h=g.depth),m.setLayout({depth:v?g.depth:d},!0),"vertical"===i?m.setLayout({dy:r},!0):m.setLayout({dx:r},!0);for(var y=0;yd-1?h:d-1;o&&"left"!==o&&gG(e,o,i,D);var S="vertical"===i?(n-r)/D:(a-r)/D;yG(e,S,i)}function mG(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function gG(e,t,r,a){if("right"===t){var n=[],i=e,o=0;while(i.length){for(var s=0;s0;i--)l*=.99,DG(s,l,o),wG(s,n,r,a,o),PG(s,l,o),wG(s,n,r,a,o)}function _G(e,t){var r=[],a="vertical"===t?"y":"x",n=lc(e,(function(e){return e.getLayout()[a]}));return n.keys.sort((function(e,t){return e-t})),Ia["k"](n.keys,(function(e){r.push(n.buckets.get(e))})),r}function xG(e,t,r,a,n,i){var o=1/0;Ia["k"](e,(function(e){var t=e.length,s=0;Ia["k"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===i?(a-(t-1)*n)/s:(r-(t-1)*n)/s;l0&&(o=s.getLayout()[i]+l,"vertical"===n?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[i]+s.getLayout()[d]+t;var h="vertical"===n?a:r;if(l=c-t-h,l>0){o=s.getLayout()[i]-l,"vertical"===n?s.setLayout({x:o},!0):s.setLayout({y:o},!0),c=o;for(p=u-2;p>=0;--p)s=e[p],l=s.getLayout()[i]+s.getLayout()[d]+t-c,l>0&&(o=s.getLayout()[i]-l,"vertical"===n?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[i]}}))}function DG(e,t,r){Ia["k"](e.slice().reverse(),(function(e){Ia["k"](e,(function(e){if(e.outEdges.length){var a=MG(e.outEdges,SG,r)/MG(e.outEdges,AG);if(isNaN(a)){var n=e.outEdges.length;a=n?MG(e.outEdges,CG,r)/n:0}if("vertical"===r){var i=e.getLayout().x+(a-OG(e,r))*t;e.setLayout({x:i},!0)}else{var o=e.getLayout().y+(a-OG(e,r))*t;e.setLayout({y:o},!0)}}}))}))}function SG(e,t){return OG(e.node2,t)*e.getValue()}function CG(e,t){return OG(e.node2,t)}function TG(e,t){return OG(e.node1,t)*e.getValue()}function IG(e,t){return OG(e.node1,t)}function OG(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function AG(e){return e.getValue()}function MG(e,t,r){var a=0,n=e.length,i=-1;while(++ii&&(i=t)})),Ia["k"](r,(function(t){var r=new kj({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:e.get("color")}),a=r.mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",a),t.setVisual("style",{fill:a}))}))}a.length&&Ia["k"](a,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function EG(e){e.registerChartView(sG),e.registerSeriesModel(cG),e.registerLayout(uG),e.registerVisual(NG),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var LG=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},e.prototype.getInitialData=function(e,t){var r,a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type");"category"===o?(e.layout="horizontal",r=n.getOrdinalMeta(),a=!this._hasEncodeRule("x")):"category"===s?(e.layout="vertical",r=i.getOrdinalMeta(),a=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],d=l[1-c],p=[n,i],h=p[c].get("type"),f=p[1-c].get("type"),m=e.data;if(m&&a){var g=[];Ia["k"](m,(function(e,t){var r;Ia["t"](e)?(r=e.slice(),e.unshift(t)):Ia["t"](e.value)?(r=Ia["m"]({},e),r.value=r.value.slice(),e.value.unshift(t)):r=e,g.push(r)})),e.data=g}var v=this.defaultValueDimensions,y=[{name:u,type:zI(h),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:zI(f),dimsDef:v.slice()}];return XM(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:Ia["h"](km,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),RG=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return Ca(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Uy);Object(Ia["K"])(RG,LG,!0);var FG=RG,jG=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=e.getData(),n=this.group,i=this._data;this._data||n.removeAll();var o="horizontal"===e.get("layout")?1:0;a.diff(i).add((function(e){if(a.hasValue(e)){var t=a.getItemLayout(e),r=BG(t,a,e,o,!0);a.setItemGraphicEl(e,r),n.add(r)}})).update((function(e,t){var r=i.getItemGraphicEl(t);if(a.hasValue(e)){var s=a.getItemLayout(e);r?(mh(r),zG(s,r,a,e)):r=BG(s,a,e,o),n.add(r),a.setItemGraphicEl(e,r)}else n.remove(r)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&n.remove(t)})).execute(),this._data=a},t.prototype.remove=function(e){var t=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(hx),VG=function(){function e(){}return e}(),$G=function(e){function t(t){var r=e.call(this,t)||this;return r.type="boxplotBoxPath",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new VG},t.prototype.buildPath=function(e,t){var r=t.points,a=0;for(e.moveTo(r[a][0],r[a][1]),a++;a<4;a++)e.lineTo(r[a][0],r[a][1]);for(e.closePath();am){var _=[v,b];a.push(_)}}}return{boxData:r,outliers:a}}var ZG={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==wm){var r="";0,Jm(r)}var a=KG(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function JG(e){e.registerSeriesModel(FG),e.registerChartView(UG),e.registerLayout(HG),e.registerTransform(ZG)}var QG=["itemStyle","borderColor"],eU=["itemStyle","borderColor0"],tU=["itemStyle","borderColorDoji"],rU=["itemStyle","color"],aU=["itemStyle","color0"];function nU(e,t){return t.get(e>0?rU:aU)}function iU(e,t){return t.get(0===e?tU:e>0?QG:eU)}var oU={seriesType:"candlestick",plan:qy(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var a=t.getItemModel(r),n=t.getItemLayout(r).sign,i=a.getItemStyle();i.fill=nU(n,a),i.stroke=iU(n,a)||i.fill;var o=t.ensureUniqueItemVisual(r,"style");Object(Ia["m"])(o,i)}}}}}},sU=oU,lU=["color","borderColor"],cU=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,r){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,r,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){nx(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),r=this._data,a=this.group,n=t.getLayout("isSimpleBox"),i=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||a.removeAll(),t.diff(r).add((function(r){if(t.hasValue(r)){var o=t.getItemLayout(r);if(i&&hU(s,o))return;var l=pU(o,r,!0);uh(l,{shape:{points:o.ends}},e,r),fU(l,t,r,n),a.add(l),t.setItemGraphicEl(r,l)}})).update((function(o,l){var c=r.getItemGraphicEl(l);if(t.hasValue(o)){var u=t.getItemLayout(o);i&&hU(s,u)?a.remove(c):(c?(ch(c,{shape:{points:u.ends}},e,o),mh(c)):c=pU(u,o),fU(c,t,o,n),a.add(c),t.setItemGraphicEl(o,c))}else a.remove(c)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&a.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),yU(e,this.group);var t=e.get("clip",!0)?cA(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var r,a=t.getData(),n=a.getLayout("isSimpleBox");while(null!=(r=e.next())){var i=a.getItemLayout(r),o=pU(i,r);fU(o,a,r,n),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){yU(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(hx),uU=function(){function e(){}return e}(),dU=function(e){function t(t){var r=e.call(this,t)||this;return r.type="normalCandlestickBox",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new uU},t.prototype.buildPath=function(e,t){var r=t.points;this.__simpleBox?(e.moveTo(r[4][0],r[4][1]),e.lineTo(r[6][0],r[6][1])):(e.moveTo(r[0][0],r[0][1]),e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]),e.lineTo(r[3][0],r[3][1]),e.closePath(),e.moveTo(r[4][0],r[4][1]),e.lineTo(r[5][0],r[5][1]),e.moveTo(r[6][0],r[6][1]),e.lineTo(r[7][0],r[7][1]))},t}(ud);function pU(e,t,r){var a=e.ends;return new dU({shape:{points:r?mU(a,e):a},z2:100})}function hU(e,t){for(var r=!0,a=0;am?x[i]:_[i],ends:S,brushRect:A(g,v,h)})}function I(e,r){var a=[];return a[n]=r,a[i]=e,isNaN(r)||isNaN(e)?[NaN,NaN]:t.dataToPoint(a)}function O(e,t,r){var i=t.slice(),o=t.slice();i[n]=z_(i[n]+a/2,1,!1),o[n]=z_(o[n]-a/2,1,!0),r?e.push(i,o):e.push(o,i)}function A(e,t,r){var o=I(e,r),s=I(t,r);return o[n]-=a/2,s[n]-=a/2,{x:o[0],y:o[1],width:i?a:s[0]-o[0],height:i?s[1]-o[1]:a}}function M(e){return e[n]=z_(e[n],1),e}}function f(r,a){var o,l,h=KO(4*r.count),f=0,m=[],g=[],v=a.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=r.next())){var b=v.get(s,l),_=v.get(c,l),x=v.get(u,l),w=v.get(d,l),D=v.get(p,l);isNaN(b)||isNaN(w)||isNaN(D)?(h[f++]=NaN,f+=3):(h[f++]=CU(v,l,_,x,u,y),m[n]=b,m[i]=w,o=t.dataToPoint(m,null,g),h[f++]=o?o[0]:NaN,h[f++]=o?o[1]:NaN,m[i]=D,o=t.dataToPoint(m,null,g),h[f++]=o?o[1]:NaN)}a.setLayout("largePoints",h)}}};function CU(e,t,r,a,n,i){var o;return o=r>a?-1:r0?e.get(n,t-1)<=a?1:-1:1,o}function TU(e,t){var r,a=e.getBaseAxis(),n="category"===a.type?a.getBandWidth():(r=a.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=nl(Object(Ia["P"])(e.get("barMaxWidth"),n),n),o=nl(Object(Ia["P"])(e.get("barMinWidth"),1),n),s=e.get("barWidth");return null!=s?nl(s,n):Math.max(Math.min(n/2,i),o)}var IU=SU;function OU(e){e.registerChartView(_U),e.registerSeriesModel(wU),e.registerPreprocessor(DU),e.registerVisual(sU),e.registerLayout(IU)}function AU(e,t){var r=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?r:null,fill:"fill"===t.brushType?r:null}})}))}var MU=function(e){function t(t,r){var a=e.call(this)||this,n=new VO(t,r),i=new Gs;return a.add(n),a.add(i),a.updateData(t,r),a}return Ca(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,r=e.color,a=e.rippleNumber,n=this.childAt(1),i=0;i0&&(i=this._getLineLength(a)/l*1e3),i!==this._period||o!==this._loop||s!==this._roundTrip){a.stopAnimation();var u=void 0;u=Ia["w"](c)?c(r):c,a.__t>0&&(u=-i*a.__t),this._animateSymbol(a,i,u,o,s)}this._period=i,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,r,a,n){if(t>0){e.__t=0;var i=this,o=e.animate("",a).when(n?2*t:t,{__t:n?2:1}).delay(r).during((function(){i._updateSymbolPosition(e)}));a||o.done((function(){i.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return $a(e.__p1,e.__cp1)+$a(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,r){this.childAt(0).updateData(e,t,r),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,r=e.__p2,a=e.__cp1,n=e.__t<1?e.__t:2-e.__t,i=[e.x,e.y],o=i.slice(),s=qi,l=Yi;i[0]=s(t[0],a[0],r[0],n),i[1]=s(t[1],a[1],r[1],n);var c=e.__t<1?l(t[0],a[0],r[0],n):l(r[0],a[0],t[0],1-n),u=e.__t<1?l(t[1],a[1],r[1],n):l(r[1],a[1],t[1],1-n);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;i--)if(a[i]<=t)break;i=Math.min(i,n-2)}else{for(i=o;it)break;i=Math.min(i-1,n-2)}var l=(t-a[i])/(a[i+1]-a[i]),c=r[i],u=r[i+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var d=e.__t<1?u[0]-c[0]:c[0]-u[0],p=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(p,d)-Math.PI/2,this._lastFrame=i,this._lastFramePercent=t,e.ignore=!1}},t}(jU),zU=BU,GU=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),UU=function(e){function t(t){var r=e.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return Ca(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GU},t.prototype.buildPath=function(e,t){var r,a=t.segs,n=t.curveness;if(t.polyline)for(r=this._off;r0){e.moveTo(a[r++],a[r++]);for(var o=1;o0){var d=(s+c)/2-(l-u)*n,p=(l+u)/2-(c-s)*n;e.quadraticCurveTo(d,p,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=r,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var r=this.shape,a=r.segs,n=r.curveness,i=this.style.lineWidth;if(r.polyline)for(var o=0,s=0;s0)for(var c=a[s++],u=a[s++],d=1;d0){var f=(c+p)/2-(u-h)*n,m=(u+h)/2-(p-c)*n;if(Bu(c,u,f,m,p,h,i,e,t))return o}else if(Vu(c,u,p,h,i,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var r=this.transformCoordToLocal(e,t),a=this.getBoundingRect();if(e=r[0],t=r[1],a.contain(e,t)){var n=this.hoverDataIdx=this.findDataIndex(e,t);return n>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,r=t.segs,a=1/0,n=1/0,i=-1/0,o=-1/0,s=0;s0&&(i.dataIndex=r+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),HU=WU,qU={seriesType:"lines",plan:qy(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),a=e.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(r){for(var c=0,u=n.start;u0&&(l||s.configLayer(i,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),n.updateData(a);var c=e.get("clip",!0)&&cA(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=i,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,r){var a=e.getData(),n=this._updateLineDraw(a,e);n.incrementalPrepareUpdate(a),this._clearLayer(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,r){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,r){var a=e.getData(),n=e.pipelineContext;if(!this._finished||n.large||n.progressiveRender)return{update:!0};var i=YU.reset(e,t,r);i.progress&&i.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(r)},t.prototype._updateLineDraw=function(e,t){var r=this._lineDraw,a=this._showEffect(t),n=!!t.get("polyline"),i=t.pipelineContext,o=i.large;return r&&a===this._hasEffet&&n===this._isPolyline&&o===this._isLargeDraw||(r&&r.remove(),r=this._lineDraw=o?new HU:new s$(n?a?zU:$U:a?jU:t$),this._hasEffet=a,this._isPolyline=n,this._isLargeDraw=o),this.group.add(r.group),r},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),r="svg"===t.painter.getType();r||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(hx),KU=XU,ZU="undefined"===typeof Uint32Array?Array:Uint32Array,JU="undefined"===typeof Float64Array?Array:Float64Array;function QU(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(Ia["H"])(t,(function(e){var t=[e[0].coord,e[1].coord],r={coords:t};return e[0].name&&(r.fromName=e[0].name),e[1].name&&(r.toName=e[1].name),Object(Ia["J"])([r,e[0],e[1]])})))}var eW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return Ca(t,e),t.prototype.init=function(t){t.data=t.data||[],QU(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(QU(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(Ia["e"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(Ia["e"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),r=t.option instanceof Array?t.option:t.getShallow("coords");return r},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var r=this._flatCoordsOffset[2*e],a=this._flatCoordsOffset[2*e+1],n=0;n ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Uy),tW=eW;function rW(e){return e instanceof Array||(e=[e,e]),e}var aW={seriesType:"lines",reset:function(e){var t=rW(e.get("symbol")),r=rW(e.get("symbolSize")),a=e.getData();function n(e,t){var r=e.getItemModel(t),a=rW(r.getShallow("symbol",!0)),n=rW(r.getShallow("symbolSize",!0));a[0]&&e.setItemVisual(t,"fromSymbol",a[0]),a[1]&&e.setItemVisual(t,"toSymbol",a[1]),n[0]&&e.setItemVisual(t,"fromSymbolSize",n[0]),n[1]&&e.setItemVisual(t,"toSymbolSize",n[1])}return a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",r&&r[0]),a.setVisual("toSymbolSize",r&&r[1]),{dataEach:a.hasItemOption?n:null}}},nW=aW;function iW(e){e.registerChartView(KU),e.registerSeriesModel(tW),e.registerLayout(YU),e.registerVisual(nW)}var oW=256,sW=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ys["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,r,a,n,i){var o=this._getBrush(),s=this._getGradient(n,"inRange"),l=this._getGradient(n,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),p=e.length;u.width=t,u.height=r;for(var h=0;h0){var I=i(y)?s:l;y>0&&(y=y*C+D),_[x++]=I[T],_[x++]=I[T+1],_[x++]=I[T+2],_[x++]=I[T+3]*y*256}else x+=4}return d.putImageData(b,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ys["d"].createCanvas()),t=this.pointSize+this.blurSize,r=2*t;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,2*Math.PI,!0),a.closePath(),a.fill(),e},e.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(1024)),n=[0,0,0,0],i=0,o=0;o<256;o++)e[t](o/255,!0,n),a[i++]=n[0],a[i++]=n[1],a[i++]=n[2],a[i++]=n[3];return a},e}(),lW=sW;function cW(e,t,r){var a=e[1]-e[0];t=Ia["H"](t,(function(t){return{interval:[(t.interval[0]-e[0])/a,(t.interval[1]-e[0])/a]}}));var n=t.length,i=0;return function(e){var a;for(a=i;a=0;a--){o=t[a].interval;if(o[0]<=e&&e<=o[1]){i=a;break}}return a>=0&&a=t[0]&&e<=t[1]}}function dW(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var pW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(r){r===e&&(a=t)}))})),this._progressiveEls=null,this.group.removeAll();var n=e.coordinateSystem;"cartesian2d"===n.type||"calendar"===n.type?this._renderOnCartesianAndCalendar(e,r,0,e.getData().count()):dW(n)&&this._renderOnGeo(n,e,a,r)},t.prototype.incrementalPrepareRender=function(e,t,r){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,r,a){var n=t.coordinateSystem;n&&(dW(n)?this.render(t,r,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,a,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){nx(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,r,a,n){var i,o,s,l,c=e.coordinateSystem,u=uA(c,"cartesian2d");if(u){var d=c.getAxis("x"),p=c.getAxis("y");0,i=d.getBandWidth()+.5,o=p.getBandWidth()+.5,s=d.scale.getExtent(),l=p.scale.getExtent()}for(var h=this.group,f=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=xh(e),_=e.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),D=_.get("disabled"),S=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=r;Cs[1]||Al[1])continue;var M=c.dataToPoint([O,A]);T=new Id({shape:{x:M[0]-i/2,y:M[1]-o/2,width:i,height:o},style:I})}else{if(isNaN(f.get(S[1],C)))continue;T=new Id({z2:1,shape:c.dataToRect([f.get(S[0],C)]).contentShape,style:I})}if(f.hasItemOption){var P=f.getItemModel(C),k=P.getModel("emphasis");m=k.getModel("itemStyle").getItemStyle(),g=P.getModel(["blur","itemStyle"]).getItemStyle(),v=P.getModel(["select","itemStyle"]).getItemStyle(),y=P.get(["itemStyle","borderRadius"]),x=k.get("focus"),w=k.get("blurScope"),D=k.get("disabled"),b=xh(P)}T.shape.r=y;var N=e.getRawValue(C),E="-";N&&null!=N[2]&&(E=N[2]+""),_h(T,b,{labelFetcher:e,labelDataIndex:C,defaultOpacity:I.opacity,defaultText:E}),T.ensureState("emphasis").style=m,T.ensureState("blur").style=g,T.ensureState("select").style=v,Yp(T,x,w,D),T.incremental=n,n&&(T.states.emphasis.hoverLayer=!0),h.add(T),f.setItemGraphicEl(C,T),this._progressiveEls&&this._progressiveEls.push(T)}},t.prototype._renderOnGeo=function(e,t,r,a){var n=r.targetVisuals.inRange,i=r.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new lW;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),d=Math.max(l.y,0),p=Math.min(l.width+l.x,a.getWidth()),h=Math.min(l.height+l.y,a.getHeight()),f=p-u,m=h-d,g=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],v=o.mapArray(g,(function(t,r,a){var n=e.dataToPoint([t,r]);return n[0]-=u,n[1]-=d,n.push(a),n})),y=r.getExtent(),b="visualMap.continuous"===r.type?uW(y,r.option.range):cW(y,r.getPieceList(),r.option.selected);s.update(v,f,m,n.color.getNormalizer(),{inRange:n.color.getColorMapper(),outOfRange:i.color.getColorMapper()},b);var _=new yd({style:{width:f,height:m,x:u,y:d,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(hx),hW=pW,fW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){return kO(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=hg.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Uy),mW=fW;function gW(e){e.registerChartView(hW),e.registerSeriesModel(mW)}var vW=["itemStyle","borderWidth"],yW=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],bW=new bb,_W=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=this.group,n=e.getData(),i=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),c=o.master.getRect(),u={ecSize:{width:r.getWidth(),height:r.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:yW[+l],categoryDim:yW[1-+l]};n.diff(i).add((function(e){if(n.hasValue(e)){var t=kW(n,e),r=xW(n,e,t,u),i=LW(n,u,r);n.setItemGraphicEl(e,i),a.add(i),BW(i,u,r)}})).update((function(e,t){var r=i.getItemGraphicEl(t);if(n.hasValue(e)){var o=kW(n,e),s=xW(n,e,o,u),l=jW(n,s);r&&l!==r.__pictorialShapeStr&&(a.remove(r),n.setItemGraphicEl(e,null),r=null),r?RW(r,u,s):r=LW(n,u,s,!0),n.setItemGraphicEl(e,r),r.__pictorialSymbolMeta=s,a.add(r),BW(r,u,s)}else a.remove(r)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&FW(i,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var d=e.get("clip",!0)?cA(e.coordinateSystem,!1,e):null;return d?a.setClipPath(d):a.removeClipPath(),this._data=n,this.group},t.prototype.remove=function(e,t){var r=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl((function(t){FW(a,Hd(t).dataIndex,e,t)})):r.removeAll()},t.type="pictorialBar",t}(hx);function xW(e,t,r,a){var n=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=r.get("symbolPatternSize")||2,d=r.isAnimationEnabled(),p={dataIndex:t,layout:n,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?r:null,hoverScale:d&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};wW(r,i,n,a,p),SW(e,t,n,i,o,p.boundingLength,p.pxSign,u,a,p),CW(r,p.symbolScale,c,a,p);var h=p.symbolSize,f=Ow(r.get("symbolOffset"),h);return TW(r,h,n,i,o,f,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,a,p),p}function wW(e,t,r,a,n){var i,o=a.valueDim,s=e.get("symbolBoundingData"),l=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(r[o.wh]<=0);if(Ia["t"](s)){var d=[DW(l,s[0])-c,DW(l,s[1])-c];d[1]=0?1:-1:i>0?1:-1}function DW(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function SW(e,t,r,a,n,i,o,s,l,c){var u,d=l.valueDim,p=l.categoryDim,h=Math.abs(r[p.wh]),f=e.getItemVisual(t,"symbolSize");u=Ia["t"](f)?f.slice():null==f?["100%","100%"]:[f,f],u[p.index]=nl(u[p.index],h),u[d.index]=nl(u[d.index],a?h:Math.abs(i)),c.symbolSize=u;var m=c.symbolScale=[u[0]/s,u[1]/s];m[d.index]*=(l.isHorizontal?-1:1)*o}function CW(e,t,r,a,n){var i=e.get(vW)||0;i&&(bW.attr({scaleX:t[0],scaleY:t[1],rotation:r}),bW.updateTransform(),i/=bW.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function TW(e,t,r,a,n,i,o,s,l,c,u,d){var p=u.categoryDim,h=u.valueDim,f=d.pxSign,m=Math.max(t[h.index]+s,0),g=m;if(a){var v=Math.abs(l),y=Ia["O"](e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var _=nl(y,t[h.index]),x=Math.max(m+2*_,0),w=b?0:2*_,D=Dl(a),S=D?a:zW((v+w)/x),C=v-S*m;_=C/2/(b?S:Math.max(S-1,1)),x=m+2*_,w=b?0:2*_,D||"fixed"===a||(S=c?zW((Math.abs(c)+w)/x):0),g=S*x-w,d.repeatTimes=S,d.symbolMargin=_}var T=f*(g/2),I=d.pathPosition=[];I[p.index]=r[p.wh]/2,I[h.index]="start"===o?T:"end"===o?l-T:l/2,i&&(I[0]+=i[0],I[1]+=i[1]);var O=d.bundlePosition=[];O[p.index]=r[p.xy],O[h.index]=r[h.xy];var A=d.barRectShape=Ia["m"]({},r);A[h.wh]=f*Math.max(Math.abs(r[h.wh]),Math.abs(I[h.index]+T)),A[p.wh]=r[p.wh];var M=d.clipShape={};M[p.xy]=-r[p.xy],M[p.wh]=u.ecSize[p.wh],M[h.xy]=0,M[h.wh]=r[h.wh]}function IW(e){var t=e.symbolPatternSize,r=Tw(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),"image"!==r.type&&r.setStyle({strokeNoScale:!0}),r}function OW(e,t,r,a){var n=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,c=r.repeatTimes||0,u=0,d=i[t.valueDim.index]+o+2*r.symbolMargin;for(VW(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:a<0)&&(n=c-1-e),t[l.index]=d*(n-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function AW(e,t,r,a){var n=e.__pictorialBundle,i=e.__pictorialMainPath;i?$W(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,a):(i=e.__pictorialMainPath=IW(r),n.add(i),$W(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,a))}function MW(e,t,r){var a=Ia["m"]({},t.barRectShape),n=e.__pictorialBarRect;n?$W(n,null,{shape:a},t,r):(n=e.__pictorialBarRect=new Id({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,e.add(n))}function PW(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,o=Ia["m"]({},r.clipShape),s=t.valueDim,l=r.animationModel,c=r.dataIndex;if(i)ch(i,{shape:o},l,c);else{o[s.wh]=0,i=new Id({shape:o}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[s.wh]=r.clipShape[s.wh],a[n?"updateProps":"initProps"](i,{shape:u},l,c)}}}function kW(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=NW,r.isAnimationEnabled=EW,r}function NW(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function EW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function LW(e,t,r,a){var n=new Gs,i=new Gs;return n.add(i),n.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?OW(n,t,r):AW(n,t,r),MW(n,r,a),PW(n,t,r,a),n.__pictorialShapeStr=jW(e,r),n.__pictorialSymbolMeta=r,n}function RW(e,t,r){var a=r.animationModel,n=r.dataIndex,i=e.__pictorialBundle;ch(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},a,n),r.symbolRepeat?OW(e,t,r,!0):AW(e,t,r,!0),MW(e,r,!0),PW(e,t,r,!0)}function FW(e,t,r,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];VW(a,(function(e){i.push(e)})),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(r=null),Ia["k"](i,(function(e){ph(e,{scaleX:0,scaleY:0},r,t,(function(){a.parent&&a.parent.remove(a)}))})),e.setItemGraphicEl(t,null)}function jW(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function VW(e,t,r){Ia["k"](e.__pictorialBundle.children(),(function(a){a!==e.__pictorialBarRect&&t.call(r,a)}))}function $W(e,t,r,n,i,o){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&a[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,o)}function BW(e,t,r){var a=r.dataIndex,n=r.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),c=n.getShallow("cursor"),u=i.get("focus"),d=i.get("blurScope"),p=i.get("scale");VW(e,(function(e){if(e instanceof yd){var t=e.style;e.useStyle(Ia["m"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},r.style))}else e.useStyle(r.style);var a=e.ensureState("emphasis");a.style=o,p&&(a.scaleX=1.1*e.scaleX,a.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,c&&(e.cursor=c),e.z2=r.z2}));var h=t.valueDim.posDesc[+(r.boundingLength>0)],f=e.__pictorialBarRect;f.ignoreClip=!0,_h(f,xh(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:LO(t.seriesModel.getData(),a),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Yp(e,u,d,i.get("disabled"))}function zW(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var GW=_W,UW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return Ca(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Zh(KA.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(KA),WW=UW;function HW(e){e.registerChartView(GW),e.registerSeriesModel(WW),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(Ia["h"])(UA,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA("pictorialBar"))}var qW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=e.getData(),n=this,i=this.group,o=e.getLayerSeries(),s=a.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}i.x=0,i.y=l.y+c[0];var d=new jI(this._layersSeries||[],o,u,u),p=[];function h(t,r,s){var l=n._layers;if("remove"!==t){for(var c,u,d=[],h=[],f=o[r].indices,m=0;mi&&(i=s),a.push(s)}for(var c=0;ci&&(i=d)}return{y0:n,max:i}}function rH(e){e.registerChartView(XW),e.registerSeriesModel(JW),e.registerLayout(QW),e.registerProcessor(VM("themeRiver"))}var aH=2,nH=4,iH=function(e){function t(t,r,a,n){var i=e.call(this)||this;i.z2=aH,i.textConfig={inside:!0},Hd(i).seriesIndex=r.seriesIndex;var o=new Wd({z2:nH,silent:t.getModel().get(["label","silent"])});return i.setTextContent(o),i.updateData(!0,t,r,a,n),i}return Ca(t,e),t.prototype.updateData=function(e,t,r,a,n){this.node=t,t.piece=this,r=r||this._seriesModel,a=a||this._ecModel;var i=this;Hd(i).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),c=Ia["m"]({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var d=t.getVisual("decal");d&&(u.decal=mD(d,n));var p=oM(o.getModel("itemStyle"),c,!0);Ia["m"](c,p),Ia["k"](tp,(function(e){var t=i.ensureState(e),r=o.getModel([e,"itemStyle"]);t.style=r.getItemStyle();var a=oM(r,c);a&&(t.shape=a)})),e?(i.setShape(c),i.shape.r=l.r0,uh(i,{shape:{r:l.r}},r,t.dataIndex)):(ch(i,{shape:c},r),mh(i)),i.useStyle(u),this._updateLabel(r);var h=o.getShallow("cursor");h&&i.attr("cursor",h),this._seriesModel=r||this._seriesModel,this._ecModel=a||this._ecModel;var f=s.get("focus"),m="relative"===f?Ia["e"](t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Yp(this,m,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,r=this.node.getModel(),a=r.getModel("label"),n=this.node.getLayout(),i=n.endAngle-n.startAngle,o=(n.startAngle+n.endAngle)/2,s=Math.cos(o),l=Math.sin(o),c=this,u=c.getTextContent(),d=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,h=a.get("show")&&!(null!=p&&Math.abs(i)C&&!fl(I-C)&&I0?(n.virtualPiece?n.virtualPiece.updateData(!1,a,e,t,r):(n.virtualPiece=new oH(a,e,t,r),l.add(n.virtualPiece)),i.piece.off("click"),n.virtualPiece.on("click",(function(e){n._rootToNode(i.parentNode)}))):n.virtualPiece&&(l.remove(n.virtualPiece),n.virtualPiece=null)}p(u,d),m(o,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var r=!1,a=e.seriesModel.getViewRoot();a.eachNode((function(a){if(!r&&a.piece&&a.piece===t.target){var n=a.getModel().get("nodeClick");if("rootToNode"===n)e._rootToNode(a);else if("link"===n){var i=a.getModel(),o=i.get("link");if(o){var s=i.get("target",!0)||"_blank";Qf(o,s)}}r=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:sH,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var r=t.getData(),a=r.getItemLayout(0);if(a){var n=e[0]-a.cx,i=e[1]-a.cy,o=Math.sqrt(n*n+i*i);return o<=a.r&&o>=a.r0}},t.type="sunburst",t}(hx),pH=dH,hH=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){var r={name:e.name,children:e.data};fH(r);var a=this._levelModels=Ia["H"](e.levels||[],(function(e){return new Hh(e,this,t)}),this),n=DF.createTree(r,this,i);function i(e){e.wrapMethod("getItemModel",(function(e,t){var r=n.getNodeByDataIndex(t),i=a[r.depth];return i&&(e.parentModel=i),e}))}return n.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=IF(a,this),r},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){VF(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Uy);function fH(e){var t=0;Ia["k"](e.children,(function(e){fH(e);var r=e.value;Ia["t"](r)&&(r=r[0]),t+=r}));var r=e.value;Ia["t"](r)&&(r=r[0]),(null==r||isNaN(r))&&(r=t),r<0&&(r=0),Ia["t"](e.value)?e.value[0]=r:e.value=r}var mH=hH,gH=Math.PI/180;function vH(e,t,r){t.eachSeriesByType(e,(function(e){var t=e.get("center"),a=e.get("radius");Ia["t"](a)||(a=[0,a]),Ia["t"](t)||(t=[t,t]);var n=r.getWidth(),i=r.getHeight(),o=Math.min(n,i),s=nl(t[0],n),l=nl(t[1],i),c=nl(a[0],o/2),u=nl(a[1],o/2),d=-e.get("startAngle")*gH,p=e.get("minAngle")*gH,h=e.getData().tree.root,f=e.getViewRoot(),m=f.depth,g=e.get("sort");null!=g&&yH(f,g);var v=0;Ia["k"](f.children,(function(e){!isNaN(e.getValue())&&v++}));var y=f.getValue(),b=Math.PI/(y||v)*2,_=f.depth>0,x=f.height-(_?-1:1),w=(u-c)/(x||1),D=e.get("clockwise"),S=e.get("stillShowZeroSum"),C=D?1:-1,T=function(t,r){if(t){var a=r;if(t!==h){var n=t.getValue(),i=0===y&&S?b:n*b;i1)n=n.parentNode;var i=r.getColorFromPalette(n.name||n.dataIndex+"",t);return e.depth>1&&Object(Ia["C"])(i)&&(i=Object(no["c"])(i,(e.depth-1)/(a-1)*.5)),i}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),a=t.tree;a.eachNode((function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle();o.fill||(o.fill=r(n,e,a.root.height));var s=t.ensureUniqueItemVisual(n.dataIndex,"style");Object(Ia["m"])(s,o)}))}))}function xH(e){e.registerChartView(pH),e.registerSeriesModel(mH),e.registerLayout(Object(Ia["h"])(vH,"sunburst")),e.registerProcessor(Object(Ia["h"])(VM,"sunburst")),e.registerVisual(_H),uH(e)}var wH={color:"fill",borderColor:"stroke"},DH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},SH=Jl(),CH=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return kO(null,this)},t.prototype.getDataParams=function(t,r,a){var n=e.prototype.getDataParams.call(this,t,r);return a&&(n.info=SH(a).info),n},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Uy),TH=CH;function IH(e,t){return t=t||[0,0],Ia["H"](["x","y"],(function(r,a){var n=this.getAxis(r),i=t[a],o=e[a]/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}),this)}function OH(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Ia["c"](IH,e)}}}function AH(e,t){return t=t||[0,0],Ia["H"]([0,1],(function(r){var a=t[r],n=e[r]/2,i=[],o=[];return i[r]=a-n,o[r]=a+n,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])}),this)}function MH(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:Ia["c"](AH,e)}}}function PH(e,t){var r=this.getAxis(),a=t instanceof Array?t[0]:t,n=(e instanceof Array?e[0]:e)/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-n)-r.dataToCoord(a+n))}function kH(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(Ia["c"])(PH,e)}}}function NH(e,t){return t=t||[0,0],Ia["H"](["Radius","Angle"],(function(r,a){var n="get"+r+"Axis",i=this[n](),o=t[a],s=e[a]/2,l="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return"Angle"===r&&(l=l*Math.PI/180),l}),this)}function EH(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:a[1],r0:a[0]},api:{coord:function(a){var n=t.dataToRadius(a[0]),i=r.dataToAngle(a[1]),o=e.coordToPoint([n,i]);return o.push(n,i*Math.PI/180),o},size:Ia["c"](NH,e)}}}function LH(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(t,r){return e.dataToPoint(t,r)}}}}function RH(e,t,r,a){return e&&(e.legacy||!1!==e.legacy&&!r&&!a&&"tspan"!==t&&("text"===t||Object(Ia["q"])(e,"text")))}function FH(e,t,r){var a,n,i,o=e;if("text"===t)i=o;else{i={},Object(Ia["q"])(o,"text")&&(i.text=o.text),Object(Ia["q"])(o,"rich")&&(i.rich=o.rich),Object(Ia["q"])(o,"textFill")&&(i.fill=o.textFill),Object(Ia["q"])(o,"textStroke")&&(i.stroke=o.textStroke),Object(Ia["q"])(o,"fontFamily")&&(i.fontFamily=o.fontFamily),Object(Ia["q"])(o,"fontSize")&&(i.fontSize=o.fontSize),Object(Ia["q"])(o,"fontStyle")&&(i.fontStyle=o.fontStyle),Object(Ia["q"])(o,"fontWeight")&&(i.fontWeight=o.fontWeight),n={type:"text",style:i,silent:!0},a={};var s=Object(Ia["q"])(o,"textPosition");r?a.position=s?o.textPosition:"inside":s&&(a.position=o.textPosition),Object(Ia["q"])(o,"textPosition")&&(a.position=o.textPosition),Object(Ia["q"])(o,"textOffset")&&(a.offset=o.textOffset),Object(Ia["q"])(o,"textRotation")&&(a.rotation=o.textRotation),Object(Ia["q"])(o,"textDistance")&&(a.distance=o.textDistance)}return jH(i,e),Object(Ia["k"])(i.rich,(function(e){jH(e,e)})),{textConfig:a,textContent:n}}function jH(e,t){t&&(t.font=t.textFont||t.font,Object(Ia["q"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(Ia["q"])(t,"textAlign")&&(e.align=t.textAlign),Object(Ia["q"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(Ia["q"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(Ia["q"])(t,"textWidth")&&(e.width=t.textWidth),Object(Ia["q"])(t,"textHeight")&&(e.height=t.textHeight),Object(Ia["q"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(Ia["q"])(t,"textPadding")&&(e.padding=t.textPadding),Object(Ia["q"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(Ia["q"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(Ia["q"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(Ia["q"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(Ia["q"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(Ia["q"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(Ia["q"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function VH(e,t,r){var a=e;a.textPosition=a.textPosition||r.position||"inside",null!=r.offset&&(a.textOffset=r.offset),null!=r.rotation&&(a.textRotation=r.rotation),null!=r.distance&&(a.textDistance=r.distance);var n=a.textPosition.indexOf("inside")>=0,i=e.fill||"#000";$H(a,t);var o=null==a.textFill;return n?o&&(a.textFill=r.insideFill||"#fff",!a.textStroke&&r.insideStroke&&(a.textStroke=r.insideStroke),!a.textStroke&&(a.textStroke=i),null==a.textStrokeWidth&&(a.textStrokeWidth=2)):(o&&(a.textFill=e.fill||r.outsideFill||"#000"),!a.textStroke&&r.outsideStroke&&(a.textStroke=r.outsideStroke)),a.text=t.text,a.rich=t.rich,Object(Ia["k"])(t.rich,(function(e){$H(e,e)})),a}function $H(e,t){t&&(Object(Ia["q"])(t,"fill")&&(e.textFill=t.fill),Object(Ia["q"])(t,"stroke")&&(e.textStroke=t.fill),Object(Ia["q"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(Ia["q"])(t,"font")&&(e.font=t.font),Object(Ia["q"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(Ia["q"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(Ia["q"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(Ia["q"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(Ia["q"])(t,"align")&&(e.textAlign=t.align),Object(Ia["q"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(Ia["q"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(Ia["q"])(t,"width")&&(e.textWidth=t.width),Object(Ia["q"])(t,"height")&&(e.textHeight=t.height),Object(Ia["q"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(Ia["q"])(t,"padding")&&(e.textPadding=t.padding),Object(Ia["q"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(Ia["q"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(Ia["q"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(Ia["q"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(Ia["q"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(Ia["q"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(Ia["q"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(Ia["q"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(Ia["q"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(Ia["q"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(Ia["q"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var BH={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},zH=Object(Ia["F"])(BH),GH=(Object(Ia["N"])(fs,(function(e,t){return e[t]=1,e}),{}),fs.join(", "),["","style","shape","extra"]),UH=Jl();function WH(e,t,r,a,n){var i=e+"Animation",o=sh(e,a,n)||{},s=UH(t).userDuring;return o.duration>0&&(o.during=s?Object(Ia["c"])(tq,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Object(Ia["m"])(o,r[i]),o}function HH(e,t,r,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=r.isAnimationEnabled(),l=UH(e),c=t.style;l.userDuring=t.during;var u={},d={};if(iq(e,t,d),aq("shape",t,d),aq("extra",t,d),!i&&s&&(nq(e,t,u),rq("shape",e,t,u),rq("extra",e,t,u),oq(e,t,c,u)),d.style=c,KH(e,d,o),JH(e,t),s)if(i){var p={};Object(Ia["k"])(GH,(function(e){var r=e?t[e]:t;r&&r.enterFrom&&(e&&(p[e]=p[e]||{}),Object(Ia["m"])(e?p[e]:p,r.enterFrom))}));var h=WH("enter",e,t,r,n);h.duration>0&&e.animateFrom(p,h)}else ZH(e,t,n||0,r,u);qH(e,t),c?e.dirty():e.markRedraw()}function qH(e,t){for(var r=UH(e).leaveToProps,a=0;a0&&e.animateFrom(n,i)}}function JH(e,t){Object(Ia["q"])(t,"silent")&&(e.silent=t.silent),Object(Ia["q"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof au&&Object(Ia["q"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof ud&&Object(Ia["q"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var QH={},eq={setTransform:function(e,t){return QH.el[e]=t,this},getTransform:function(e){return QH.el[e]},setShape:function(e,t){var r=QH.el,a=r.shape||(r.shape={});return a[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=QH.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=QH.el,a=r.style;return a&&(a[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=QH.el.style;if(t)return t[e]},setExtra:function(e,t){var r=QH.el.extra||(QH.el.extra={});return r[e]=t,this},getExtra:function(e){var t=QH.el.extra;if(t)return t[e]}};function tq(){var e=this,t=e.el;if(t){var r=UH(t).userDuring,a=e.userDuring;r===a?(QH.el=t,a(eq)):e.el=e.userDuring=null}}function rq(e,t,r,a){var n=r[e];if(n){var i,o=t[e];if(o){var s=r.transition,l=n.transition;if(l)if(!i&&(i=a[e]={}),XH(l))Object(Ia["m"])(i,o);else for(var c=Ml(l),u=0;u=0){!i&&(i=a[e]={});var h=Object(Ia["F"])(o);for(u=0;u=0)){var p=e.getAnimationStyleProps(),h=p?p.style:null;if(h){!n&&(n=a.style={});var f=Object(Ia["F"])(r);for(c=0;c=0?t.getStore().get(n,r):void 0}var i=t.get(a.name,r),o=a&&a.ordinalMeta;return o?o.categories[i]:i}function w(r,a){null==a&&(a=s);var n=t.getItemVisual(a,"style"),i=n&&n.fill,o=n&&n.opacity,l=y(a,hq).getItemStyle();null!=i&&(l.fill=i),null!=o&&(l.opacity=o);var c={inheritColor:Object(Ia["C"])(i)?i:"#000"},u=b(a,hq),d=wh(u,null,c,!1,!0);d.text=u.getShallow("show")?Object(Ia["P"])(e.getFormattedLabel(a,hq),LO(t,a)):null;var p=Dh(u,c,!1);return C(r,l),l=VH(l,d,p),r&&S(l,r),l.legacy=!0,l}function D(r,a){null==a&&(a=s);var n=y(a,pq).getItemStyle(),i=b(a,pq),o=wh(i,null,null,!0,!0);o.text=i.getShallow("show")?Object(Ia["Q"])(e.getFormattedLabel(a,pq),e.getFormattedLabel(a,hq),LO(t,a)):null;var l=Dh(i,null,!0);return C(r,n),n=VH(n,o,l),r&&S(n,r),n.legacy=!0,n}function S(e,t){for(var r in t)Object(Ia["q"])(t,r)&&(e[r]=t[r])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function T(e,r){if(null==r&&(r=s),Object(Ia["q"])(wH,e)){var a=t.getItemVisual(r,"style");return a?a[wH[e]]:null}if(Object(Ia["q"])(DH,e))return t.getItemVisual(r,e)}function I(e){if("cartesian2d"===i.type){var t=i.getBaseAxis();return jA(Object(Ia["i"])({axis:t},e))}}function O(){return r.getCurrentSeriesIndices()}function A(e){return Mh(e,r)}}function Eq(e){var t={};return Object(Ia["k"])(e.dimensions,(function(r){var a=e.getDimensionInfo(r);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=e.getDimensionIndex(r)}})),t}function Lq(e,t,r,a,n,i,o){if(a){var s=Rq(e,t,r,a,n,i);return s&&o.setItemGraphicEl(r,s),s&&Yp(s,a.focus,a.blurScope,a.emphasisDisabled),s}i.remove(t)}function Rq(e,t,r,a,n,i){var o=-1,s=t;t&&Fq(t,a,n)&&(o=Object(Ia["r"])(i.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=Oq(a),s&&Cq(s,c)),!1===a.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),xq.normal.cfg=xq.normal.conOpt=xq.emphasis.cfg=xq.emphasis.conOpt=xq.blur.cfg=xq.blur.conOpt=xq.select.cfg=xq.select.conOpt=null,xq.isLegacy=!1,Vq(c,r,a,n,l,xq),jq(c,r,a,n,l),Aq(e,c,r,a,xq,n,l),Object(Ia["q"])(a,"info")&&(SH(c).info=a.info);for(var u=0;u=0?i.replaceAt(c,o):i.add(c),c}function Fq(e,t,r){var a=SH(e),n=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||null!=n&&n!==a.customGraphicType||"path"===n&&Kq(i)&&Xq(i)!==a.customPathData||"image"===n&&Object(Ia["q"])(o,"image")&&o.image!==a.customImagePath}function jq(e,t,r,a,n){var i=r.clipPath;if(!1===i)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&Fq(o,i,a)&&(o=null),o||(o=Oq(i),e.setClipPath(o)),Aq(null,o,t,i,null,a,n)}}function Vq(e,t,r,a,n,i){if(!e.isGroup){$q(r,null,i),$q(r,pq,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,c=i.select.conOpt;if(null!=o||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===o)u&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=Oq(o),e.setTextContent(u)),Aq(null,u,t,o,null,a,n);for(var d=o&&o.style,p=0;p=u;h--){var f=t.childAt(h);Uq(t,f,n)}}}function Uq(e,t,r){t&&YH(t,SH(e).option,r)}function Wq(e){new jI(e.oldChildren,e.newChildren,Hq,Hq,e).add(qq).update(qq).remove(Yq).execute()}function Hq(e,t){var r=e&&e.name;return null!=r?r:_q+t}function qq(e,t){var r=this.context,a=null!=e?r.newChildren[e]:null,n=null!=t?r.oldChildren[t]:null;Rq(r.api,n,r.dataIndex,a,r.seriesModel,r.group)}function Yq(e){var t=this.context,r=t.oldChildren[e];r&&YH(r,SH(r).option,t.seriesModel)}function Xq(e){return e&&(e.pathData||e.d)}function Kq(e){return e&&(Object(Ia["q"])(e,"pathData")||Object(Ia["q"])(e,"d"))}function Zq(e){e.registerChartView(Iq),e.registerSeriesModel(TH)}var Jq=Jl(),Qq=Ia["d"],eY=Ia["c"],tY=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,r,a){var n=t.get("value"),i=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,a||this._lastValue!==n||this._lastStatus!==i){this._lastValue=n,this._lastStatus=i;var o=this._group,s=this._handle;if(!i||"hide"===i)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,n,e,t,r);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(o){var d=Ia["h"](rY,t,u);this.updatePointerEl(o,l,d),this.updateLabelEl(o,l,d,t)}else o=this._group=new Gs,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),r.getZr().add(o);oY(o,t,!0),this._renderHandle(n)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,n="category"===a.type,i=t.get("snap");if(!i&&!n)return!1;if("auto"===r||null==r){var o=this.animationThreshold;if(n&&a.getBandWidth()>o)return!0;if(i){var s=jN(e).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===r},e.prototype.makeElOption=function(e,t,r,a,n){},e.prototype.createPointerEl=function(e,t,r,n){var i=t.pointer;if(i){var o=Jq(e).pointerEl=new a[i.type](Qq(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,r,a){if(t.label){var n=Jq(e).labelEl=new Wd(Qq(t.label));e.add(n),nY(n,a)}},e.prototype.updatePointerEl=function(e,t,r){var a=Jq(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,r,a){var n=Jq(e).labelEl;n&&(n.setStyle(t.label.style),r(n,{x:t.label.x,y:t.label.y}),nY(n,a))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,r=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||"hide"===o)return n&&a.remove(n),void(this._handle=null);this._handle||(t=!0,n=this._handle=Z_(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){wn(e.event)},onmousedown:eY(this._onHandleDragMove,this,0,0),drift:eY(this._onHandleDragMove,this),ondragend:eY(this._onHandleDragEnd,this)}),a.add(n)),oY(n,r,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");Ia["t"](s)||(s=[s,s]),n.scaleX=s[0]/2,n.scaleY=s[1]/2,yx(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){rY(this._axisPointerModel,!t&&this._moveAnimation,this._handle,iY(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(iY(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(iY(a)),Jq(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),bx(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},e}();function rY(e,t,r,a){aY(Jq(r).lastProp,a)||(Jq(r).lastProp=a,t?ch(r,a,e):(r.stopAnimation(),r.attr(a)))}function aY(e,t){if(Ia["A"](e)&&Ia["A"](t)){var r=!0;return Ia["k"](t,(function(t,a){r=r&&aY(e[a],t)})),!!r}return e===t}function nY(e,t){e[t.get(["label","show"])?"show":"hide"]()}function iY(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function oY(e,t,r){var a=t.get("z"),n=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=a&&(e.z=a),null!=n&&(e.zlevel=n),e.silent=r)}))}var sY=tY;function lY(e){var t,r=e.get("type"),a=e.getModel(r+"Style");return"line"===r?(t=a.getLineStyle(),t.fill=null):"shadow"===r&&(t=a.getAreaStyle(),t.stroke=null),t}function cY(e,t,r,a,n){var i=r.get("value"),o=dY(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Wf(s.get("padding")||0),c=s.getFont(),u=ws(o,c),d=n.position,p=u.width+l[1]+l[3],h=u.height+l[0]+l[2],f=n.align;"right"===f&&(d[0]-=p),"center"===f&&(d[0]-=p/2);var m=n.verticalAlign;"bottom"===m&&(d[1]-=h),"middle"===m&&(d[1]-=h/2),uY(d,p,h,a);var g=s.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:wh(s,{text:o,font:c,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function uY(e,t,r,a){var n=a.getWidth(),i=a.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function dY(e,t,r,a,n){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ck(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Ia["k"](a,(function(e){var t=r.getSeriesByIndex(e.seriesIndex),a=e.dataIndexInside,n=t&&t.getDataParams(a);n&&s.seriesData.push(n)})),Ia["C"](o)?i=o.replace("{value}",i):Ia["w"](o)&&(i=o(s))}return i}function pY(e,t,r){var a=On();return Nn(a,a,r.rotation),kn(a,a,r.position),U_([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],a)}function hY(e,t,r,a,n,i){var o=MN.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),cY(t,a,n,i,{position:pY(a.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function fY(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function mY(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function gY(e,t,r,a,n,i){return{cx:e,cy:t,r0:r,r:a,startAngle:n,endAngle:i,clockwise:!0}}var vY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.makeElOption=function(e,t,r,a,n){var i=r.axis,o=i.grid,s=a.get("type"),l=yY(o,i).getOtherAxis(i).getGlobalExtent(),c=i.toGlobalCoord(i.dataToCoord(t,!0));if(s&&"none"!==s){var u=lY(a),d=bY[s](i,c,l);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=sN(o.model,r);hY(t,e,p,r,a,n)},t.prototype.getHandleTransform=function(e,t,r){var a=sN(t.axis.grid.model,t,{labelInside:!1});a.labelMargin=r.get(["handle","margin"]);var n=pY(t.axis,e,a);return{x:n[0],y:n[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,r,a){var n=r.axis,i=n.grid,o=n.getGlobalExtent(!0),s=yY(i,n).getOtherAxis(n).getGlobalExtent(),l="x"===n.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(o[1],c[l]),c[l]=Math.max(o[0],c[l]);var u=(s[1]+s[0])/2,d=[u,u];d[l]=c[l];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:p[l]}},t}(sY);function yY(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var bY={line:function(e,t,r){var a=fY([t,r[0]],[t,r[1]],_Y(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r){var a=Math.max(1,e.getBandWidth()),n=r[1]-r[0];return{type:"Rect",shape:mY([t-a/2,r[0]],[a,n],_Y(e))}}};function _Y(e){return"x"===e.dim?0:1}var xY=vY,wY=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(gm),DY=wY,SY=Jl(),CY=Ia["k"];function TY(e,t,r){if(!Ta["a"].node){var a=t.getZr();SY(a).records||(SY(a).records={}),IY(a,t);var n=SY(a).records[e]||(SY(a).records[e]={});n.handler=r}}function IY(e,t){function r(r,a){e.on(r,(function(r){var n=PY(t);CY(SY(e).records,(function(e){e&&a(e,r,n.dispatchAction)})),OY(n.pendings,t)}))}SY(e).initialized||(SY(e).initialized=!0,r("click",Ia["h"](MY,"click")),r("mousemove",Ia["h"](MY,"mousemove")),r("globalout",AY))}function OY(e,t){var r,a=e.showTip.length,n=e.hideTip.length;a?r=e.showTip[a-1]:n&&(r=e.hideTip[n-1]),r&&(r.dispatchAction=null,t.dispatchAction(r))}function AY(e,t,r){e.handler("leave",null,r)}function MY(e,t,r,a){t.handler(e,r,a)}function PY(e){var t={showTip:[],hideTip:[]},r=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=r,e.dispatchAction(a))};return{dispatchAction:r,pendings:t}}function kY(e,t){if(!Ta["a"].node){var r=t.getZr(),a=(SY(r).records||{})[e];a&&(SY(r).records[e]=null)}}var NY=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=t.getComponent("tooltip"),n=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";TY("axisPointer",r,(function(e,t,r){"none"!==n&&("leave"===e||n.indexOf(e)>=0)&&r({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){kY("axisPointer",t)},t.prototype.dispose=function(e,t){kY("axisPointer",t)},t.type="axisPointer",t}(Hy),EY=NY;function LY(e,t){var r,a=[],n=e.seriesIndex;if(null==n||!(r=t.getSeriesByIndex(n)))return{point:[]};var i=r.getData(),o=Zl(i,e);if(null==o||o<0||Ia["t"](o))return{point:[]};var s=i.getItemGraphicEl(o),l=r.coordinateSystem;if(r.getTooltipPosition)a=r.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),d=u.dim,p=c.dim,h="x"===d||"radius"===d?1:0,f=i.mapDimension(p),m=[];m[h]=i.get(f,o),m[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),a=l.dataToPoint(m)||[]}else a=l.dataToPoint(i.getValues(Ia["H"](l.dimensions,(function(e){return i.mapDimension(e)})),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),a=[g.x+g.width/2,g.y+g.height/2]}return{point:a,el:s}}var RY=Jl();function FY(e,t,r){var a=e.currTrigger,n=[e.x,e.y],i=e,o=e.dispatchAction||Object(Ia["c"])(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){qY(n)&&(n=LY({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=qY(n),c=i.axesInfo,u=s.axesInfo,d="leave"===a||qY(n),p={},h={},f={list:[],map:{}},m={showPointer:Object(Ia["h"])($Y,h),showTooltip:Object(Ia["h"])(BY,f)};Object(Ia["k"])(s.coordSysMap,(function(e,t){var r=l||e.containPoint(n);Object(Ia["k"])(s.coordSysAxesInfo[t],(function(e,t){var a=e.axis,i=WY(c,e);if(!d&&r&&(!c||i)){var o=i&&i.value;null!=o||l||(o=a.pointToData(n)),null!=o&&jY(e,o,m,!1,p)}}))}));var g={};return Object(Ia["k"])(u,(function(e,t){var r=e.linkGroup;r&&!h[t]&&Object(Ia["k"])(r.axesInfo,(function(t,a){var n=h[a];if(t!==e&&n){var i=n.value;r.mapper&&(i=e.axis.scale.parse(r.mapper(i,HY(t),HY(e)))),g[e.key]=i}}))})),Object(Ia["k"])(g,(function(e,t){jY(u[t],e,m,!0,p)})),zY(h,u,p),GY(f,n,e,o),UY(u,o,r),p}}function jY(e,t,r,a,n){var i=e.axis;if(!i.scale.isBlank()&&i.containData(t))if(e.involveSeries){var o=VY(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==n.seriesIndex&&Object(Ia["m"])(n,s[0]),!a&&e.snap&&i.containData(l)&&null!=l&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}else r.showPointer(e,t)}function VY(e,t){var r=t.axis,a=r.dim,n=e,i=[],o=Number.MAX_VALUE,s=-1;return Object(Ia["k"])(t.seriesModels,(function(t,l){var c,u,d=t.getData().mapDimensionsAll(a);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,r);u=p.dataIndices,c=p.nestestValue}else{if(u=t.getData().indicesOfNearest(d[0],e,"category"===r.type?.5:null),!u.length)return;c=t.getData().get(d[0],u[0])}if(null!=c&&isFinite(c)){var h=e-c,f=Math.abs(h);f<=o&&((f=0&&s<0)&&(o=f,s=h,n=c,i.length=0),Object(Ia["k"])(u,(function(e){i.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:i,snapToValue:n}}function $Y(e,t,r,a){e[t.key]={value:r,payloadBatch:a}}function BY(e,t,r,a){var n=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(t.triggerTooltip&&n.length){var l=t.coordSys.model,c=BN(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function zY(e,t,r){var a=r.axesInfo=[];Object(Ia["k"])(t,(function(t,r){var n=t.axisPointerModel.option,i=e[r];i?(!t.useHandle&&(n.status="show"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):!t.useHandle&&(n.status="hide"),"show"===n.status&&a.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}))}function GY(e,t,r,a){if(!qY(t)&&e.list.length){var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}else a({type:"hideTip"})}function UY(e,t,r){var a=r.getZr(),n="axisPointerLastHighlights",i=RY(a)[n]||{},o=RY(a)[n]={};Object(Ia["k"])(e,(function(e,t){var r=e.axisPointerModel.option;"show"===r.status&&e.triggerEmphasis&&Object(Ia["k"])(r.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));var s=[],l=[];Object(Ia["k"])(i,(function(e,t){!o[t]&&l.push(e)})),Object(Ia["k"])(o,(function(e,t){!i[t]&&s.push(e)})),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function WY(e,t){for(var r=0;r<(e||[]).length;r++){var a=e[r];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function HY(e){var t=e.axis.model,r={},a=r.axisDim=e.axis.dim;return r.axisIndex=r[a+"AxisIndex"]=t.componentIndex,r.axisName=r[a+"AxisName"]=t.name,r.axisId=r[a+"AxisId"]=t.id,r}function qY(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function YY(e){UN.registerAxisPointerClass("CartesianAxisPointer",xY),e.registerComponentModel(DY),e.registerComponentView(EY),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(Ia["t"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=PN(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},FY)}function XY(e){tC(rE),tC(YY)}var KY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.makeElOption=function(e,t,r,a,n){var i=r.axis;"angle"===i.dim&&(this.animationThreshold=Math.PI/18);var o=i.polar,s=o.getOtherAxis(i),l=s.getExtent(),c=i.dataToCoord(t),u=a.get("type");if(u&&"none"!==u){var d=lY(a),p=JY[u](i,o,c,l);p.style=d,e.graphicKey=p.type,e.pointer=p}var h=a.get(["label","margin"]),f=ZY(t,r,a,o,h);cY(e,r,a,n,f)},t}(sY);function ZY(e,t,r,a,n){var i=t.axis,o=i.dataToCoord(e),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,d=a.getRadiusAxis().getExtent();if("radius"===i.dim){var p=On();Nn(p,p,s),kn(p,p,[a.cx,a.cy]),l=U_([o,-n],p);var h=t.getModel("axisLabel").get("rotate")||0,f=MN.innerTextLayout(s,h*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var m=d[1];l=a.coordToPoint([m+n,o]);var g=a.cx,v=a.cy;c=Math.abs(l[0]-g)/m<.3?"center":l[0]>g?"left":"right",u=Math.abs(l[1]-v)/m<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var JY={line:function(e,t,r,a){return"angle"===e.dim?{type:"Line",shape:fY(t.coordToPoint([a[0],r]),t.coordToPoint([a[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:r}}},shadow:function(e,t,r,a){var n=Math.max(1,e.getBandWidth()),i=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:gY(t.cx,t.cy,a[0],a[1],(-r-n/2)*i,(n/2-r)*i)}:{type:"Sector",shape:gY(t.cx,t.cy,r-n/2,r+n/2,0,2*Math.PI)}}},QY=KY,eX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.findAxisModel=function(e){var t,r=this.ecModel;return r.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(gm),tX=eX,rX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rc).models[0]},t.type="polarAxis",t}(gm);Ia["K"](rX,fP);var aX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="angleAxis",t}(rX),nX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="radiusAxis",t}(rX),iX=function(e){function t(t,r){return e.call(this,"radius",t,r)||this}return Ca(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(nN);iX.prototype.dataToRadius=nN.prototype.dataToCoord,iX.prototype.radiusToData=nN.prototype.coordToData;var oX=iX,sX=Jl(),lX=function(e){function t(t,r){return e.call(this,"angle",t,r||[0,360])||this}return Ca(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),r=e.scale,a=r.getExtent(),n=r.count();if(a[1]-a[0]<1)return 0;var i=a[0],o=e.dataToCoord(i+1)-e.dataToCoord(i),s=Math.abs(o),l=ws(null==i?"":i+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var d=Math.max(0,Math.floor(u)),p=sX(e.model),h=p.lastAutoInterval,f=p.lastTickCount;return null!=h&&null!=f&&Math.abs(h-d)<=1&&Math.abs(f-n)<=1&&h>d?d=h:(p.lastTickCount=n,p.lastAutoInterval=d),d},t}(nN);lX.prototype.dataToAngle=nN.prototype.dataToCoord,lX.prototype.angleToData=nN.prototype.coordToData;var cX=lX,uX=["radius","angle"],dX=function(){function e(e){this.dimensions=uX,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new oX,this._angleAxis=new cX,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);a.inverse?i=o-360:o=i+360;var s=Math.sqrt(t*t+r*r);t/=s,r/=s;var l=Math.atan2(-r,t)/Math.PI*180,c=lo)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,n=-Math.sin(r)*t+this.cy;return[a,n]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),n=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:e.inverse,contain:function(e,t){var r=e-this.cx,a=t-this.cy,n=r*r+a*a,o=this.r,s=this.r0;return o!==s&&n-i<=o*o&&n+i>=s*s}}},e.prototype.convertToPixel=function(e,t,r){var a=pX(t);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(e,t,r){var a=pX(t);return a===this?this.pointToData(r):null},e}();function pX(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}var hX=dX;function fX(e,t,r){var a=t.get("center"),n=r.getWidth(),i=r.getHeight();e.cx=nl(a[0],n),e.cy=nl(a[1],i);var o=e.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");null==l?l=[0,"100%"]:Ia["t"](l)||(l=[0,l]);var c=[nl(l[0],s),nl(l[1],s)];o.inverse?o.setExtent(c[1],c[0]):o.setExtent(c[0],c[1])}function mX(e,t){var r=this,a=r.getAngleAxis(),n=r.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===r){var t=e.getData();Ia["k"](Mk(t,"radius"),(function(e){n.scale.unionExtentFromData(t,e)})),Ia["k"](Mk(t,"angle"),(function(e){a.scale.unionExtentFromData(t,e)}))}})),xk(a.scale,a.model),xk(n.scale,n.model),"category"===a.type&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function gX(e){return"angleAxis"===e.mainType}function vX(e,t){var r;if(e.type=t.get("type"),e.scale=wk(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),gX(t)){e.inverse=e.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=null!==(r=t.get("endAngle"))&&void 0!==r?r:a+(e.inverse?-360:360);e.setExtent(a,n)}t.axis=e,e.model=t}var yX={dimensions:uX,create:function(e,t){var r=[];return e.eachComponent("polar",(function(e,a){var n=new hX(a+"");n.update=mX;var i=n.getRadiusAxis(),o=n.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");vX(i,s),vX(o,l),fX(n,e,t),r.push(n),e.coordinateSystem=n,n.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",rc).models[0];0,e.coordinateSystem=t.coordinateSystem}})),r}},bX=yX,_X=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function xX(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var a=e.coordToPoint([t[0],r]),n=e.coordToPoint([t[1],r]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function wX(e){var t=e.getRadiusAxis();return t.inverse?0:1}function DX(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var SX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return Ca(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var r=e.axis,a=r.polar,n=a.getRadiusAxis().getExtent(),i=r.getTicksCoords(),o=r.getMinorTicksCoords(),s=Ia["H"](r.getViewLabels(),(function(e){e=Ia["d"](e);var t=r.scale,a="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=r.dataToCoord(a),e}));DX(s),DX(i),Ia["k"](_X,(function(t){!e.get([t,"show"])||r.scale.isBlank()&&"axisLine"!==t||CX[t](this.group,e,a,i,o,n,s)}),this)}},t.type="angleAxis",t}(UN),CX={axisLine:function(e,t,r,n,i,o){var s,l=t.getModel(["axisLine","lineStyle"]),c=r.getAngleAxis(),u=Math.PI/180,d=c.getExtent(),p=wX(r),h=p?0:1,f=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=0===o[h]?new a[f]({shape:{cx:r.cx,cy:r.cy,r:o[p],startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:c.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new Gb({shape:{cx:r.cx,cy:r.cy,r:o[p],r0:o[h]},style:l.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,e.add(s)},axisTick:function(e,t,r,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[wX(r)],c=Ia["H"](a,(function(e){return new t_({shape:xX(r,[l,l+s],e.coord)})}));e.add(j_(c,{style:Ia["i"](o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),c=i[wX(r)],u=[],d=0;df?"left":"right",v=Math.abs(h[1]-m)/p<.3?"middle":h[1]>m?"top":"bottom";if(s&&s[d]){var y=s[d];Ia["A"](y)&&y.textStyle&&(o=new Hh(y.textStyle,l,l.ecModel))}var b=new Wd({silent:MN.isLabelSilent(t),style:wh(o,{x:h[0],y:h[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:a.formattedLabel,align:g,verticalAlign:v})});if(e.add(b),u){var _=MN.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=a.rawLabel,Hd(b).eventData=_}}),this)},splitLine:function(e,t,r,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d=0?"p":"n",O=w;y&&(a[s][T]||(a[s][T]={p:w,n:w}),O=a[s][T][I]);var A=void 0,M=void 0,P=void 0,k=void 0;if("radius"===d.dim){var N=d.dataToCoord(C)-w,E=i.dataToCoord(T);Math.abs(N)=k})}}}))}function RX(e){var t={};Ia["k"](e,(function(e,r){var a=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=EX(n,i),s=i.getExtent(),l="category"===i.type?i.getBandWidth():Math.abs(s[1]-s[0])/a.count(),c=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[o]=c;var d=NX(e);u[d]||c.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var p=nl(e.get("barWidth"),l),h=nl(e.get("barMaxWidth"),l),f=e.get("barGap"),m=e.get("barCategoryGap");p&&!u[d].width&&(p=Math.min(c.remainedWidth,p),u[d].width=p,c.remainedWidth-=p),h&&(u[d].maxWidth=h),null!=f&&(c.gap=f),null!=m&&(c.categoryGap=m)}));var r={};return Ia["k"](t,(function(e,t){r[t]={};var a=e.stacks,n=e.bandWidth,i=nl(e.categoryGap,n),o=nl(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-i)/(l+(l-1)*o);c=Math.max(c,0),Ia["k"](a,(function(e,t){var r=e.maxWidth;r&&r=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],n="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),a[n]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-n]=0===n?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(e,t,r){var a=eK(t);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(e,t,r){var a=eK(t);return a===this?this.pointToData(r):null},e}();function eK(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}var tK=QX;function rK(e,t){var r=[];return e.eachComponent("singleAxis",(function(a,n){var i=new tK(a,e,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,r.push(i)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",rc).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),r}var aK={create:rK,dimensions:JX},nK=aK,iK=["x","y"],oK=["width","height"],sK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.makeElOption=function(e,t,r,a,n){var i=r.axis,o=i.coordinateSystem,s=uK(o,1-cK(i)),l=o.dataToPoint(t)[0],c=a.get("type");if(c&&"none"!==c){var u=lY(a),d=lK[c](i,l,s);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=zX(r);hY(t,e,p,r,a,n)},t.prototype.getHandleTransform=function(e,t,r){var a=zX(t,{labelInside:!1});a.labelMargin=r.get(["handle","margin"]);var n=pY(t.axis,e,a);return{x:n[0],y:n[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,r,a){var n=r.axis,i=n.coordinateSystem,o=cK(n),s=uK(i,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=uK(i,1-o),u=(c[1]+c[0])/2,d=[u,u];return d[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(sY),lK={line:function(e,t,r){var a=fY([t,r[0]],[t,r[1]],cK(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r){var a=e.getBandWidth(),n=r[1]-r[0];return{type:"Rect",shape:mY([t-a/2,r[0]],[a,n],cK(e))}}};function cK(e){return e.isHorizontal()?0:1}function uK(e,t){var r=e.getRect();return[r[iK[t]],r[iK[t]]+r[oK[t]]]}var dK=sK,pK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="single",t}(Hy);function hK(e){tC(YY),UN.registerAxisPointerClass("SingleAxisPointer",dK),e.registerComponentView(pK),e.registerComponentView(qX),e.registerComponentModel(XX),IP(e,"single",XX,XX.defaultOption),e.registerCoordinateSystem("single",nK)}var fK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(t,r,a){var n=dm(t);e.prototype.init.apply(this,arguments),mK(t,n)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),mK(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(gm);function mK(e,t){var r,a=e.cellSize;r=Ia["t"](a)?a:e.cellSize=[a,a],1===r.length&&(r[1]=r[0]);var n=Ia["H"]([0,1],(function(e){return lm(t,e)&&(r[e]="auto"),null!=r[e]&&"auto"!==r[e]}));um(e,t,{type:"box",ignoreSize:n})}var gK=fK,vK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=this.group;a.removeAll();var n=e.coordinateSystem,i=n.getRangeInfo(),o=n.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,i,a),this._renderLines(e,i,o,a),this._renderYearText(e,i,o,a),this._renderMonthText(e,s,o,a),this._renderWeekText(e,s,i,o,a)},t.prototype._renderDayRect=function(e,t,r){for(var a=e.coordinateSystem,n=e.getModel("itemStyle").getItemStyle(),i=a.getCellWidth(),o=a.getCellHeight(),s=t.start.time;s<=t.end.time;s=a.getNextNDay(s,1).time){var l=a.dataToRect([s],!1).tl,c=new Id({shape:{x:l[0],y:l[1],width:i,height:o},cursor:"default",style:n});r.add(c)}},t.prototype._renderLines=function(e,t,r,a){var n=this,i=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){p(c.formatedDate),0===u&&(c=i.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=i.getDateInfo(d)}function p(t){n._firstDayOfMonth.push(i.getDateInfo(t)),n._firstDayPoints.push(i.dataToRect([t],!1).tl);var l=n._getLinePointsOfOneWeek(e,t,r);n._tlpoints.push(l[0]),n._blpoints.push(l[l.length-1]),s&&n._drawSplitline(l,o,a)}p(i.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(n._getEdgesPoints(n._tlpoints,l,r),o,a),s&&this._drawSplitline(n._getEdgesPoints(n._blpoints,l,r),o,a)},t.prototype._getEdgesPoints=function(e,t,r){var a=[e[0].slice(),e[e.length-1].slice()],n="horizontal"===r?0:1;return a[0][n]=a[0][n]-t/2,a[1][n]=a[1][n]+t/2,a},t.prototype._drawSplitline=function(e,t,r){var a=new Zb({z2:20,shape:{points:e},style:t});r.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,t,r){for(var a=e.coordinateSystem,n=a.getDateInfo(t),i=[],o=0;o<7;o++){var s=a.getNextNDay(n.time,o),l=a.dataToRect([s.time],!1);i[2*s.day]=l.tl,i[2*s.day+1]=l["horizontal"===r?"bl":"tr"]}return i},t.prototype._formatterLabel=function(e,t){return Object(Ia["C"])(e)&&e?Kf(e,t):Object(Ia["w"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,r,a,n){var i=t[0],o=t[1],s=["center","bottom"];"bottom"===a?(o+=n,s=["center","top"]):"left"===a?i-=n:"right"===a?(i+=n,s=["center","top"]):o-=n;var l=0;return"left"!==a&&"right"!==a||(l=Math.PI/2),{rotation:l,x:i,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,r,a){var n=e.getModel("yearLabel");if(n.get("show")){var i=n.get("margin"),o=n.get("position");o||(o="horizontal"!==r?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===r?0:1,d={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var h=n.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:p},m=this._formatterLabel(h,f),g=new Wd({z2:30,style:wh(n,{text:m}),silent:n.get("silent")});g.attr(this._yearTextPositionControl(g,d[o],r,o,i)),a.add(g)}},t.prototype._monthTextPositionControl=function(e,t,r,a,n){var i="left",o="top",s=e[0],l=e[1];return"horizontal"===r?(l+=n,t&&(i="center"),"start"===a&&(o="bottom")):(s+=n,t&&(o="middle"),"start"===a&&(i="right")),{x:s,y:l,align:i,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,r,a){var n=e.getModel("monthLabel");if(n.get("show")){var i=n.get("nameMap"),o=n.get("margin"),s=n.get("position"),l=n.get("align"),c=[this._tlpoints,this._blpoints];i&&!Object(Ia["C"])(i)||(i&&(t=cf(i)||t),i=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,d="horizontal"===r?0:1;o="start"===s?-o:o;for(var p="center"===l,h=n.get("silent"),f=0;f=a.start.time&&r.timeo.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];r[0].time>r[1].time&&(t=!0,r.reverse());var a=Math.floor(r[1].time/bK)-Math.floor(r[0].time/bK)+1,n=new Date(r[0].time),i=n.getDate(),o=r[1].date.getDate();n.setDate(i+a-1);var s=n.getDate();if(s!==o){var l=n.getTime()-r[1].time>0?1:-1;while((s=n.getDate())!==o&&(n.getTime()-r[1].time)*l>0)a-=l,n.setDate(s-l)}var c=Math.floor((a+r[0].day+6)/7),u=t?1-c:c-1;return t&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:c,nthWeek:u,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||0===e&&ta.lweek)return null;var n=7*(e-1)-a.fweek+t,i=new Date(a.start.time);return i.setDate(+a.start.d+n),this.getDateInfo(i)},e.create=function(t,r){var a=[];return t.eachComponent("calendar",(function(n){var i=new e(n,t,r);a.push(i),n.coordinateSystem=i})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=a[e.get("calendarIndex")||0])})),a},e.dimensions=["time","value"],e}();function xK(e){var t=e.calendarModel,r=e.seriesModel,a=t?t.coordinateSystem:r?r.coordinateSystem:null;return a}var wK=_K;function DK(e){e.registerComponentModel(gK),e.registerComponentView(yK),e.registerCoordinateSystem("calendar",wK)}function SK(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),null==t.parentId){var a=t.parentOption;a?t.parentId=a.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function CK(e,t){var r;return Ia["k"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(r=!0)})),r}function TK(e,t,r){var a=Ia["m"]({},r),n=e[t],i=r.$action||"merge";"merge"===i?n?(Ia["I"](n,a,!0),um(n,a,{ignoreSize:!0}),pm(r,n),AK(r,n),AK(r,n,"shape"),AK(r,n,"style"),AK(r,n,"extra"),r.clipPath=n.clipPath):e[t]=a:"replace"===i?e[t]=a:"remove"===i&&n&&(e[t]=null)}var IK=["transition","enterFrom","leaveTo"],OK=IK.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function AK(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),e&&t)for(var a=r?IK:OK,n=0;n=0;l--){c=r[l],u=Ul(c.id,null),d=null!=u?n.get(u):null;if(d){p=d.parent,m=NK(p);var g=p===a?{width:i,height:o}:{width:m.width,height:m.height},v={},y=sm(d,c,g,null,{hv:c.hv,boundingMode:c.bounding},v);if(!NK(d).isNew&&y){for(var b=c.transition,_={},x=0;x=0)?_[w]=D:d[w]=D}ch(d,_,e,0)}else d.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(r){FK(r,NK(r).option,t,e._lastGraphicModel)})),this._elMap=Ia["f"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Hy);function LK(e){var t=Ia["q"](kK,e)?kK[e]:E_(e);var r=new t({});return NK(r).type=e,r}function RK(e,t,r,a){var n=LK(r);return t.add(n),a.set(e,n),NK(n).id=e,NK(n).isNew=!0,n}function FK(e,t,r,a){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){FK(e,t,r,a)})),YH(e,t,a),r.removeKey(NK(e).id))}function jK(e,t,r,a){e.isGroup||Ia["k"]([["cursor",au.prototype.cursor],["zlevel",a||0],["z",r||0],["z2",0]],(function(r){var a=r[0];Ia["q"](t,a)?e[a]=Ia["P"](t[a],r[1]):null==e[a]&&(e[a]=r[1])})),Ia["k"](Ia["F"](t),(function(r){if(0===r.indexOf("on")){var a=t[r];e[r]=Ia["w"](a)?a:null}})),Ia["q"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function VK(e){return e=Ia["m"]({},e),Ia["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(tm),(function(t){delete e[t]})),e}function $K(e,t,r){var a=Hd(e).eventData;e.silent||e.ignore||a||(a=Hd(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),a&&(a.info=r.info)}function BK(e){e.registerComponentModel(PK),e.registerComponentView(EK),e.registerPreprocessor((function(e){var t=e.graphic;Object(Ia["t"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var zK=["x","y","radius","angle","single"],GK=["cartesian2d","polar","singleAxis"];function UK(e){var t=e.get("coordinateSystem");return Object(Ia["r"])(GK,t)>=0}function WK(e){return e+"Axis"}function HK(e,t){var r,a=Object(Ia["f"])(),n=[],i=Object(Ia["f"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){i.get(e.uid)||s(e)}));do{r=!1,e.eachComponent("dataZoom",o)}while(r);function o(e){!i.get(e.uid)&&l(e)&&(s(e),r=!0)}function s(e){i.set(e.uid,!0),n.push(e),c(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,r){var n=a.get(e);n&&n[r]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(a.get(e)||a.set(e,[]))[t]=!0}))}return n}function qK(e){var t=e.ecModel,r={infoList:[],infoMap:Object(Ia["f"])()};return e.eachTargetAxis((function(e,a){var n=t.getComponent(WK(e),a);if(n){var i=n.getCoordSysModel();if(i){var o=i.uid,s=r.infoMap.get(o);s||(s={model:i,axisModels:[]},r.infoList.push(s),r.infoMap.set(o,s)),s.axisModels.push(n)}}})),r}var YK=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),XK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return Ca(t,e),t.prototype.init=function(e,t,r){var a=KK(e);this.settledOption=a,this.mergeDefaultAndTheme(e,r),this._doInit(a)},t.prototype.mergeOption=function(e){var t=KK(e);Object(Ia["I"])(this.option,e,!0),Object(Ia["I"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var r=this.settledOption;Object(Ia["k"])([["start","startValue"],["end","endValue"]],(function(e,a){"value"===this._rangePropMode[a]&&(t[e[0]]=r[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(Ia["f"])(),r=this._fillSpecifiedTargetAxis(t);r?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(Ia["k"])(zK,(function(r){var a=this.getReferringComponents(WK(r),ac);if(a.specified){t=!0;var n=new YK;Object(Ia["k"])(a.models,(function(e){n.add(e.componentIndex)})),e.set(r,n)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var r=this.ecModel,a=!0;if(a){var n="vertical"===t?"y":"x",i=r.findComponents({mainType:n+"Axis"});o(i,n)}if(a){i=r.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});o(i,"single")}function o(t,r){var n=t[0];if(n){var i=new YK;if(i.add(n.componentIndex),e.set(r,i),a=!1,"x"===r||"y"===r){var o=n.getReferringComponents("grid",rc).models[0];o&&Object(Ia["k"])(t,(function(e){n.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",rc).models[0]&&i.add(e.componentIndex)}))}}}a&&Object(Ia["k"])(zK,(function(t){if(a){var n=r.findComponents({mainType:WK(t),filter:function(e){return"category"===e.get("type",!0)}});if(n[0]){var i=new YK;i.add(n[0].componentIndex),e.set(t,i),a=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,r=this.get("rangeMode");Object(Ia["k"])([["start","startValue"],["end","endValue"]],(function(a,n){var i=null!=e[a[0]],o=null!=e[a[1]];i&&!o?t[n]="percent":!i&&o?t[n]="value":r?t[n]=r[n]:i&&(t[n]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,r){null==e&&(e=this.ecModel.getComponent(WK(t),r))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(r,a){Object(Ia["k"])(r.indexList,(function(r){e.call(t,a,r)}))}))},t.prototype.getAxisProxy=function(e,t){var r=this.getAxisModel(e,t);if(r)return r.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var r=this._targetAxisInfoMap.get(e);if(r&&r.indexMap[t])return this.ecModel.getComponent(WK(e),t)},t.prototype.setRawRange=function(e){var t=this.option,r=this.settledOption;Object(Ia["k"])([["start","startValue"],["end","endValue"]],(function(a){null==e[a[0]]&&null==e[a[1]]||(t[a[0]]=r[a[0]]=e[a[0]],t[a[1]]=r[a[1]]=e[a[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(Ia["k"])(["start","startValue","end","endValue"],(function(r){t[r]=e[r]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var r=this.findRepresentativeAxisProxy();return r?r.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,r=this._targetAxisInfoMap.keys(),a=0;ai[1];if(u&&!d&&!p)return!0;u&&(n=!0),d&&(t=!0),p&&(r=!0)}return n&&t&&r}))}else nZ(a,(function(r){if("empty"===n)e.setData(t=t.map(r,(function(e){return o(e)?e:NaN})));else{var a={};a[r]=i,t.selectRange(a)}}));nZ(a,(function(e){t.setApproximateExtent(i,e)}))}}))}function o(e){return e>=i[0]&&e<=i[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;nZ(["min","max"],(function(a){var n=t.get(a+"Span"),i=t.get(a+"ValueSpan");null!=i&&(i=this.getAxisModel().axis.scale.parse(i)),null!=i?n=al(r[0]+i,r,[0,100],!0):null!=n&&(i=al(n,[0,100],r,!0)-r[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=i}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=cl(r,[0,500]);a=Math.min(a,20);var n=e.axis.scale.rawExtentInfo;0!==t[0]&&n.setDeterminedMinMax("min",+r[0].toFixed(a)),100!==t[1]&&n.setDeterminedMinMax("max",+r[1].toFixed(a)),n.freeze()}},e}();function sZ(e,t,r){var a=[1/0,-1/0];nZ(r,(function(e){Pk(a,e.getData(),t)}));var n=e.getAxisModel(),i=vk(n.axis.scale,n,a).calculate();return[i.min,i.max]}var lZ=oZ,cZ={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(r){r.eachTargetAxis((function(a,n){var i=e.getComponent(WK(a),n);t(a,n,i,r)}))}))}t((function(e,t,r,a){r.__dzAxisProxy=null}));var r=[];t((function(t,a,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new lZ(t,a,i,e),r.push(n.__dzAxisProxy))}));var a=Object(Ia["f"])();return Object(Ia["k"])(r,(function(e){Object(Ia["k"])(e.getTargetSeriesModels(),(function(e){a.set(e.uid,e)}))})),a},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,r){e.getAxisProxy(t,r).reset(e)})),e.eachTargetAxis((function(r,a){e.getAxisProxy(r,a).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var r=t.getDataPercentWindow(),a=t.getDataValueWindow();e.setCalculatedRange({start:r[0],end:r[1],startValue:a[0],endValue:a[1]})}}))}},uZ=cZ;function dZ(e){e.registerAction("dataZoom",(function(e,t){var r=HK(t,e);Object(Ia["k"])(r,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var pZ=!1;function hZ(e){pZ||(pZ=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,uZ),dZ(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function fZ(e){e.registerComponentModel(QK),e.registerComponentView(aZ),hZ(e)}var mZ=function(){function e(){}return e}(),gZ={};function vZ(e,t){gZ[e]=t}function yZ(e){return gZ[e]}var bZ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;Ia["k"](this.option.feature,(function(e,r){var a=yZ(r);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Ia["I"](e,a.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(gm),_Z=bZ;function xZ(e,t,r){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=om(a,i,n);nm(t.get("orient"),e,t.get("itemGap"),o.width,o.height),sm(e,a,i,n)}function wZ(e,t){var r=Wf(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),e=new Id({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),e}var DZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.render=function(e,t,r,a){var n=this.group;if(n.removeAll(),e.get("show")){var i=+e.get("itemSize"),o="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),c=[];Ia["k"](s,(function(e,t){c.push(t)})),new jI(this._featureNames||[],c).add(u).update(u).remove(Ia["h"](u,null)).execute(),this._featureNames=c,xZ(n,e,r),n.add(wZ(n.getBoundingRect(),e)),o||n.eachChild((function(e){var t=e.__title,a=e.ensureState("emphasis"),o=a.textConfig||(a.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Ia["w"](l)&&t){var c=l.style||(l.style={}),u=ws(t,Wd.makeFont(c)),d=e.x+n.x,p=e.y+n.y+i,h=!1;p+u.height>r.getHeight()&&(o.position="top",h=!0);var f=h?-5-u.height:i+10;d+u.width/2>r.getWidth()?(o.position=["100%",f],c.align="right"):d-u.width/2<0&&(o.position=[0,f],c.align="left")}}))}function u(n,i){var o,u=c[n],p=c[i],h=s[u],f=new Hh(h,e,e.ecModel);if(a&&null!=a.newTitle&&a.featureName===u&&(h.title=a.newTitle),u&&!p){if(SZ(u))o={onclick:f.option.onclick,featureName:u};else{var m=yZ(u);if(!m)return;o=new m}l[u]=o}else if(o=l[p],!o)return;o.uid=Yh("toolbox-feature"),o.model=f,o.ecModel=t,o.api=r;var g=o instanceof mZ;u||!p?!f.get("show")||g&&o.unusable?g&&o.remove&&o.remove(t,r):(d(f,o,u),f.setIconStatus=function(e,t){var r=this.option,a=this.iconPaths;r.iconStatus=r.iconStatus||{},r.iconStatus[e]=t,a[e]&&("emphasis"===t?Ap:Mp)(a[e])},o instanceof mZ&&o.render&&o.render(f,t,r,a)):g&&o.dispose&&o.dispose(t,r)}function d(a,s,l){var c,u,d=a.getModel("iconStyle"),p=a.getModel(["emphasis","iconStyle"]),h=s instanceof mZ&&s.getIcons?s.getIcons():a.get("icon"),f=a.get("title")||{};Ia["C"](h)?(c={},c[l]=h):c=h,Ia["C"](f)?(u={},u[l]=f):u=f;var m=a.iconPaths={};Ia["k"](c,(function(l,c){var h=Z_(l,{},{x:-i/2,y:-i/2,width:i,height:i});h.setStyle(d.getItemStyle());var f=h.ensureState("emphasis");f.style=p.getItemStyle();var g=new Wd({style:{text:u[c],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:Mh({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},t)},ignore:!0});h.setTextContent(g),rx({el:h,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),h.__title=u[c],h.on("mouseover",(function(){var t=p.getItemStyle(),a=o?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";g.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),h.setTextConfig({position:p.get("textPosition")||a}),g.ignore=!e.get("showTitle"),r.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==a.get(["iconStatus",c])&&r.leaveEmphasis(this),g.hide()})),("emphasis"===a.get(["iconStatus",c])?Ap:Mp)(h),n.add(h),h.on("click",Ia["c"](s.onclick,s,t,r,c)),m[c]=h}))}},t.prototype.updateView=function(e,t,r,a){Ia["k"](this._features,(function(e){e instanceof mZ&&e.updateView&&e.updateView(e.model,t,r,a)}))},t.prototype.remove=function(e,t){Ia["k"](this._features,(function(r){r instanceof mZ&&r.remove&&r.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){Ia["k"](this._features,(function(r){r instanceof mZ&&r.dispose&&r.dispose(e,t)}))},t.type="toolbox",t}(Hy);function SZ(e){return 0===e.indexOf("my")}var CZ=DZ,TZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.onclick=function(e,t){var r=this.model,a=r.get("name")||e.get("title.0.text")||"echarts",n="svg"===t.getZr().painter.getType(),i=n?"svg":r.get("type",!0)||"png",o=t.getConnectedDataURL({type:i,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),s=Ta["a"].browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||n){var l=o.split(","),c=l[0].indexOf("base64")>-1,u=n?decodeURIComponent(l[1]):l[1];c&&(u=window.atob(u));var d=a+"."+i;if(window.navigator.msSaveOrOpenBlob){var p=u.length,h=new Uint8Array(p);while(p--)h[p]=u.charCodeAt(p);var f=new Blob([h]);window.navigator.msSaveOrOpenBlob(f,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var g=m.contentWindow,v=g.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),g.focus(),v.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var y=r.get("lang"),b='',_=window.open();_.document.write(b),_.document.title=a}else{var x=document.createElement("a");x.download=a+"."+i,x.target="_blank",x.href=o;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(w)}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(mZ),IZ=TZ,OZ="__ec_magicType_stack__",AZ=[["line","bar"],["stack"]],MZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),r={};return Ia["k"](e.get("type"),(function(e){t[e]&&(r[e]=t[e])})),r},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,r){var a=this.model,n=a.get(["seriesIndex",r]);if(PZ[r]){var i,o={series:[]},s=function(e){var t=e.subType,n=e.id,i=PZ[r](t,n,e,a);i&&(Ia["i"](i,e.option),o.series.push(i));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===r||"bar"===r)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",d=e.getReferringComponents(u,rc).models[0],p=d.componentIndex;o[u]=o[u]||[];for(var h=0;h<=p;h++)o[u][p]=o[u][p]||{};o[u][p].boundaryGap="bar"===r}}};Ia["k"](AZ,(function(e){Ia["r"](e,r)>=0&&Ia["k"](e,(function(e){a.setIconStatus(e,"normal")}))})),a.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:null==n?null:{seriesIndex:n}},s);var l=r;"stack"===r&&(i=Ia["I"]({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),"emphasis"!==a.get(["iconStatus",r])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:i,featureName:"magicType"})}},t}(mZ),PZ={line:function(e,t,r,a){if("bar"===e)return Ia["I"]({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(e,t,r,a){if("line"===e)return Ia["I"]({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(e,t,r,a){var n=r.get("stack")===OZ;if("line"===e||"bar"===e)return a.setIconStatus("stack",n?"normal":"emphasis"),Ia["I"]({id:t,stack:n?"":OZ},a.get(["option","stack"])||{},!0)}};US({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var kZ=MZ,NZ=new Array(60).join("-"),EZ="\t";function LZ(e){var t={},r=[],a=[];return e.eachRawSeries((function(e){var n=e.coordinateSystem;if(!n||"cartesian2d"!==n.type&&"polar"!==n.type)r.push(e);else{var i=n.getBaseAxis();if("category"===i.type){var o=i.dim+"_"+i.index;t[o]||(t[o]={categoryAxis:i,valueAxis:n.getOtherAxis(i),series:[]},a.push({axisDim:i.dim,axisIndex:i.index})),t[o].series.push(e)}else r.push(e)}})),{seriesGroupByCategoryAxis:t,other:r,meta:a}}function RZ(e){var t=[];return Ia["k"](e,(function(e,r){var a=e.categoryAxis,n=e.valueAxis,i=n.dim,o=[" "].concat(Ia["H"](e.series,(function(e){return e.name}))),s=[a.model.getCategories()];Ia["k"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(i),(function(e){return e})))}));for(var l=[o.join(EZ)],c=0;c=0)return!0}var BZ=new RegExp("["+EZ+"]+","g");function zZ(e){for(var t=e.split(/\n+/g),r=VZ(t.shift()).split(BZ),a=[],n=Ia["H"](r,(function(e){return{name:e,data:[]}})),i=0;i=0;n--){var i=r[n];if(i[a])break}if(n<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var s=o.getPercentRange();r[0][a]={dataZoomId:a,start:s[0],end:s[1]}}}})),r.push(t)}function ZZ(e){var t=eJ(e),r=t[t.length-1];t.length>1&&t.pop();var a={};return YZ(r,(function(e,r){for(var n=t.length-1;n>=0;n--)if(e=t[n][r],e){a[r]=e;break}})),a}function JZ(e){XZ(e).snapshots=null}function QZ(e){return eJ(e).length}function eJ(e){var t=XZ(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var tJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.onclick=function(e,t){JZ(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(mZ);US({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var rJ=tJ,aJ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],nJ=function(){function e(e,t,r){var a=this;this._targetInfoList=[];var n=oJ(t,e);Object(Ia["k"])(sJ,(function(e,t){(!r||!r.include||Object(Ia["r"])(r.include,t)>=0)&&e(n,a._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,r){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var a=uJ[e.brushType](0,r,t);e.__rangeOffset={offset:pJ[e.brushType](a.values,e.range,[1,1]),xyMinMax:a.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,r){Object(Ia["k"])(e,(function(e){var a=this.findTargetInfo(e,t);a&&!0!==a&&Object(Ia["k"])(a.coordSyses,(function(a){var n=uJ[e.brushType](1,a,e.range,!0);r(e,n.values,a,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(Ia["k"])(e,(function(e){var r=this.findTargetInfo(e,t);if(e.range=e.range||[],r&&!0!==r){e.panelId=r.panelId;var a=uJ[e.brushType](0,r.coordSys,e.coordRange),n=e.__rangeOffset;e.range=n?pJ[e.brushType](a.values,n.offset,fJ(a.xyMinMax,n.xyMinMax)):a.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(Ia["H"])(this._targetInfoList,(function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Bz(a),isTargetByCursor:Gz(a,e,r.coordSysModel),getLinearBrushOtherExtent:zz(a)}}))},e.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return!0===a||a&&Object(Ia["r"])(a.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=oJ(t,e),n=0;ne[1]&&e.reverse(),e}function oJ(e,t){return ec(e,t,{includeMainTypes:aJ})}var sJ={grid:function(e,t){var r=e.xAxisModels,a=e.yAxisModels,n=e.gridModels,i=Object(Ia["f"])(),o={},s={};(r||a||n)&&(Object(Ia["k"])(r,(function(e){var t=e.axis.grid.model;i.set(t.id,t),o[t.id]=!0})),Object(Ia["k"])(a,(function(e){var t=e.axis.grid.model;i.set(t.id,t),s[t.id]=!0})),Object(Ia["k"])(n,(function(e){i.set(e.id,e),o[e.id]=!0,s[e.id]=!0})),i.each((function(e){var n=e.coordinateSystem,i=[];Object(Ia["k"])(n.getCartesians(),(function(e,t){(Object(Ia["r"])(r,e.getAxis("x").model)>=0||Object(Ia["r"])(a,e.getAxis("y").model)>=0)&&i.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:i[0],coordSyses:i,getPanelRect:cJ.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(Ia["k"])(e.geoModels,(function(e){var r=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:r,coordSyses:[r],getPanelRect:cJ.geo})}))}},lJ=[function(e,t){var r=e.xAxisModel,a=e.yAxisModel,n=e.gridModel;return!n&&r&&(n=r.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],cJ={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(G_(e)),t}},uJ={lineX:Object(Ia["h"])(dJ,0),lineY:Object(Ia["h"])(dJ,1),rect:function(e,t,r,a){var n=e?t.pointToData([r[0][0],r[1][0]],a):t.dataToPoint([r[0][0],r[1][0]],a),i=e?t.pointToData([r[0][1],r[1][1]],a):t.dataToPoint([r[0][1],r[1][1]],a),o=[iJ([n[0],i[0]]),iJ([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Object(Ia["H"])(r,(function(r){var i=e?t.pointToData(r,a):t.dataToPoint(r,a);return n[0][0]=Math.min(n[0][0],i[0]),n[1][0]=Math.min(n[1][0],i[1]),n[0][1]=Math.max(n[0][1],i[0]),n[1][1]=Math.max(n[1][1],i[1]),i}));return{values:i,xyMinMax:n}}};function dJ(e,t,r,a){var n=r.getAxis(["x","y"][e]),i=iJ(Object(Ia["H"])([0,1],(function(e){return t?n.coordToData(n.toLocalCoord(a[e]),!0):n.toGlobalCoord(n.dataToCoord(a[e]))}))),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var pJ={lineX:Object(Ia["h"])(hJ,0),lineY:Object(Ia["h"])(hJ,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Object(Ia["H"])(e,(function(e,a){return[e[0]-r[0]*t[a][0],e[1]-r[1]*t[a][1]]}))}};function hJ(e,t,r,a){return[t[0]-a[e]*r[0],t[1]-a[e]*r[1]]}function fJ(e,t){var r=mJ(e),a=mJ(t),n=[r[0]/a[0],r[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function mJ(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var gJ=nJ,vJ=Ia["k"],yJ=ql("toolbox-dataZoom_"),bJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.render=function(e,t,r,a){this._brushController||(this._brushController=new $z(r.getZr()),this._brushController.on("brush",Ia["c"](this._onBrush,this)).mount()),DJ(e,t,this,a,r),wJ(e,t)},t.prototype.onclick=function(e,t,r){_J[r].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var r={},a=this.ecModel;this._brushController.updateCovers([]);var n=new gJ(xJ(this.model),a,{include:["grid"]});n.matchOutputRanges(t,a,(function(e,t,r){if("cartesian2d"===r.type){var a=e.brushType;"rect"===a?(i("x",r,t[0]),i("y",r,t[1])):i({lineX:"x",lineY:"y"}[a],r,t)}})),KZ(a,r),this._dispatchZoomAction(r)}function i(e,t,n){var i=t.getAxis(e),s=i.model,l=o(e,s,a),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(n=CB(0,n.slice(),i.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(r[l.id]={dataZoomId:l.id,startValue:n[0],endValue:n[1]})}function o(e,t,r){var a;return r.eachComponent({mainType:"dataZoom",subType:"select"},(function(r){var n=r.getAxisModel(e,t.componentIndex);n&&(a=r)})),a}},t.prototype._dispatchZoomAction=function(e){var t=[];vJ(e,(function(e,r){t.push(Ia["d"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(mZ),_J={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(ZZ(this.ecModel))}};function xJ(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function wJ(e,t){e.setIconStatus("back",QZ(t)>1?"emphasis":"normal")}function DJ(e,t,r,a,n){var i=r._isZoomActive;a&&"takeGlobalCursor"===a.type&&(i="dataZoomSelect"===a.key&&a.dataZoomSelectActive),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new gJ(xJ(e),t,{include:["grid"]}),s=o.makePanelOpts(n,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));r._brushController.setPanels(s).enableBrush(!(!i||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Vm("dataZoom",(function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(t&&null!=t.get(r)){var a=t.getModel(r),n=[],i=xJ(a),o=ec(e,i);return vJ(o.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),vJ(o.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),n}function s(e,t,r){var i=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:yJ+t+i};o[r]=i,n.push(o)}}));var SJ=bJ;function CJ(e){e.registerComponentModel(_Z),e.registerComponentView(CZ),vZ("saveAsImage",IZ),vZ("magicType",kZ),vZ("dataView",qZ),vZ("dataZoom",SJ),vZ("restore",rJ),tC(fZ)}var TJ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(gm),IJ=TJ;function OJ(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function AJ(e){if(Ta["a"].domSupported)for(var t=document.documentElement.style,r=0,a=e.length;r-1?(l+="top:50%",c+="translateY(-50%) rotate("+(i="left"===o?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(i="top"===o?225:45)+"deg)");var u=i*Math.PI/180,d=s+n,p=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),h=Math.round(100*((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-d)/2))/100;l+=";"+o+":-"+h+"px";var f=t+" solid "+n+"px;",m=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+a+";"];return'
'}function VJ(e,t){var r="cubic-bezier(0.23,1,0.32,1)",a=" "+e/2+"s "+r,n="opacity"+a+",visibility"+a;return t||(a=" "+e+"s "+r,n+=Ta["a"].transformSupported?","+LJ+a:",left"+a+",top"+a),EJ+":"+n}function $J(e,t,r){var a=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Ta["a"].transformSupported)return r?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ta["a"].transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return r?"top:0;left:0;"+LJ+":"+o+";":[["top",0],["left",0],[MJ,o]]}function BJ(e){var t=[],r=e.get("fontSize"),a=e.getTextColor();a&&t.push("color:"+a),t.push("font:"+e.getFont());var n=Object(Ia["P"])(e.get("lineHeight"),Math.round(3*r/2));r&&t.push("line-height:"+n+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),Object(Ia["k"])(["decoration","align"],(function(r){var a=e.get(r);a&&t.push("text-"+r+":"+a)})),t.join(";")}function zJ(e,t,r){var a=[],n=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),d=Oy(e,"html"),p=l+"px "+c+"px "+o+"px "+s;return a.push("box-shadow:"+p),t&&n&&a.push(VJ(n,r)),i&&a.push("background-color:"+i),Object(Ia["k"])(["width","color","radius"],(function(t){var r="border-"+t,n=Uf(r),i=e.get(n);null!=i&&a.push(r+":"+i+("color"===t?"":"px"))})),a.push(BJ(u)),null!=d&&a.push("padding:"+Wf(d).join("px ")+"px"),a.join(";")+";"}function GJ(e,t,r,a,n){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&an(e,o,r,a,n)}else{e[0]=a,e[1]=n;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var UJ=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ta["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=e.getZr(),n=t.appendTo,i=n&&(Object(Ia["C"])(n)?document.querySelector(n):Object(Ia["v"])(n)?n:Object(Ia["w"])(n)&&n(e.getDom()));GJ(this._styleCoord,a,i,e.getWidth()/2,e.getHeight()/2),(i||e.getDom()).appendChild(r),this._api=e,this._container=i;var o=this;r.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=a.handler,r=a.painter.getViewportRoot();yn(r,e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),r=NJ(t,"position"),a=t.style;"absolute"!==a.position&&"absolute"!==r&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,n=this._styleCoord;r.innerHTML?a.cssText=RJ+zJ(e,!this._firstShow,this._longHide)+$J(n[0],n[1],!0)+"border-color:"+Jf(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,r,a,n){var i=this.el;if(null!=e){var o="";if(Object(Ia["C"])(n)&&"item"===r.get("trigger")&&!OJ(r)&&(o=jJ(r,a,n)),Object(Ia["C"])(e))i.innerHTML=e+o;else if(e){i.innerHTML="",Object(Ia["t"])(e)||(e=[e]);for(var s=0;s=0?this._tryShow(r,a):"leave"===e&&this._hide(a))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,r=this._api,a=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a&&"click"!==a){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!r.isDisposed()&&n.manuallyShowTip(e,t,r,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,r,a){if(a.from!==this.uid&&!Ta["a"].node&&r.getDom()){var n=eQ(a,r);this._ticket="";var i=a.dataByCoordSys,o=iQ(a,t,r);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:a.position,positionDefault:"bottom"},n)}else if(a.tooltip&&null!=a.x&&null!=a.y){var l=ZJ;l.x=a.x,l.y=a.y,l.update(),Hd(l).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:l},n)}else if(i)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:i,tooltipOption:a.tooltipOption},n);else if(null!=a.seriesIndex){if(this._manuallyAxisShowTip(e,t,r,a))return;var c=LY(a,t),u=c.point[0],d=c.point[1];null!=u&&null!=d&&this._tryShow({offsetX:u,offsetY:d,target:c.el,position:a.position,positionDefault:"bottom"},n)}else null!=a.x&&null!=a.y&&(r.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:r.getZr().findHover(a.x,a.y).target},n))}},t.prototype.manuallyHideTip=function(e,t,r,a){var n=this._tooltipContent;this._tooltipModel&&n.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(eQ(a,r))},t.prototype._manuallyAxisShowTip=function(e,t,r,a){var n=a.seriesIndex,i=a.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=n&&null!=i&&null!=o){var s=t.getSeriesByIndex(n);if(s){var l=s.getData(),c=QJ([l.getItemModel(i),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return r.dispatchAction({type:"updateAxisPointer",seriesIndex:n,dataIndex:i,position:a.position}),!0}}},t.prototype._tryShow=function(e,t){var r=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var n=e.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,e);else if(r){var i,o,s=Hd(r);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,pw(r,(function(e){return null!=Hd(e).dataIndex?(i=e,!0):null!=Hd(e).tooltipConfig?(o=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var r=e.get("showDelay");t=Object(Ia["c"])(t,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(t,r):t()},t.prototype._showAxisTooltip=function(e,t){var r=this._ecModel,a=this._tooltipModel,n=[t.offsetX,t.offsetY],i=QJ([t.tooltipOption],a),o=this._renderMode,s=[],l=fy("section",{blocks:[],noHeader:!0}),c=[],u=new Ay;Object(Ia["k"])(e,(function(e){Object(Ia["k"])(e.dataByAxis,(function(e){var t=r.getComponent(e.axisDim+"Axis",e.axisIndex),n=e.value;if(t&&null!=n){var i=dY(n,t.axis,r,e.seriesDataIndices,e.valueLabelOpt),d=fy("section",{header:i,noHeader:!Object(Ia["T"])(i),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(Ia["k"])(e.seriesDataIndices,(function(l){var p=r.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=p.getDataParams(h);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=Ck(t.axis,{value:n}),f.axisValueLabel=i,f.marker=u.makeTooltipMarker("item",Jf(f.color),o);var m=Dv(p.formatTooltip(h,!0,null)),g=m.frag;if(g){var v=QJ([p],a).get("valueFormatter");d.blocks.push(v?Object(Ia["m"])({valueFormatter:v},g):g)}m.text&&c.push(m.text),s.push(f)}}))}}))})),l.blocks.reverse(),c.reverse();var d=t.position,p=i.get("order"),h=_y(l,u,o,p,r.get("useUTC"),i.get("textStyle"));h&&c.unshift(h);var f="richText"===o?"\n\n":"
",m=c.join(f);this._showOrMove(i,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(i,d,n[0],n[1],this._tooltipContent,s):this._showTooltipContent(i,m,s,Math.random()+"",n[0],n[1],d,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,r){var a=this._ecModel,n=Hd(t),i=n.seriesIndex,o=a.getSeriesByIndex(i),s=n.dataModel||o,l=n.dataIndex,c=n.dataType,u=s.getData(c),d=this._renderMode,p=e.positionDefault,h=QJ([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=h.get("trigger");if(null==f||"item"===f){var m=s.getDataParams(l,c),g=new Ay;m.marker=g.makeTooltipMarker("item",Jf(m.color),d);var v=Dv(s.formatTooltip(l,!1,c)),y=h.get("order"),b=h.get("valueFormatter"),_=v.frag,x=_?_y(b?Object(Ia["m"])({valueFormatter:b},_):_,g,d,y,a.get("useUTC"),h.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,x,m,w,e.offsetX,e.offsetY,e.position,e.target,g)})),r({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:i,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,r){var a="html"===this._renderMode,n=Hd(t),i=n.tooltipConfig,o=i.option||{},s=o.encodeHTMLContent;if(Object(Ia["C"])(o)){var l=o;o={content:l,formatter:l},s=!0}s&&a&&o.content&&(o=Object(Ia["d"])(o),o.content=dn(o.content));var c=[o],u=this._ecModel.getComponent(n.componentMainType,n.componentIndex);u&&c.push(u),c.push({formatter:o.content});var d=e.positionDefault,p=QJ(c,this._tooltipModel,d?{position:d}:null),h=p.get("content"),f=Math.random()+"",m=new Ay;this._showOrMove(p,(function(){var r=Object(Ia["d"])(p.get("formatterParams")||{});this._showTooltipContent(p,h,r,f,e.offsetX,e.offsetY,e.position,t,m)})),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,r,a,n,i,o,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");o=o||e.get("position");var d=t,p=this._getNearestPoint([n,i],r,e.get("trigger"),e.get("borderColor")),h=p.color;if(u)if(Object(Ia["C"])(u)){var f=e.ecModel.get("useUTC"),m=Object(Ia["t"])(r)?r[0]:r,g=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=u,g&&(d=Cf(m.axisValue,d,f)),d=Xf(d,r,!0)}else if(Object(Ia["w"])(u)){var v=Object(Ia["c"])((function(t,a){t===this._ticket&&(c.setContent(a,l,e,h,o),this._updatePosition(e,o,n,i,c,r,s))}),this);this._ticket=a,d=u(r,a,v)}else d=u;c.setContent(d,l,e,h,o),c.show(e,h),this._updatePosition(e,o,n,i,c,r,s)}},t.prototype._getNearestPoint=function(e,t,r,a){return"axis"===r||Object(Ia["t"])(t)?{color:a||("html"===this._renderMode?"#fff":"none")}:Object(Ia["t"])(t)?void 0:{color:a||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,r,a,n,i,o){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=n.getSize(),u=e.get("align"),d=e.get("verticalAlign"),p=o&&o.getBoundingRect().clone();if(o&&p.applyTransform(o.transform),Object(Ia["w"])(t)&&(t=t([r,a],i,n.el,p,{viewSize:[s,l],contentSize:c.slice()})),Object(Ia["t"])(t))r=nl(t[0],s),a=nl(t[1],l);else if(Object(Ia["A"])(t)){var h=t;h.width=c[0],h.height=c[1];var f=om(h,{width:s,height:l});r=f.x,a=f.y,u=null,d=null}else if(Object(Ia["C"])(t)&&o){var m=aQ(t,p,c,e.get("borderWidth"));r=m[0],a=m[1]}else{m=tQ(r,a,n,s,l,u?null:20,d?null:20);r=m[0],a=m[1]}if(u&&(r-=nQ(u)?c[0]/2:"right"===u?c[0]:0),d&&(a-=nQ(d)?c[1]/2:"bottom"===d?c[1]:0),OJ(e)){m=rQ(r,a,n,s,l);r=m[0],a=m[1]}n.moveTo(r,a)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var r=this._lastDataByCoordSys,a=this._cbParamsList,n=!!r&&r.length===e.length;return n&&Object(Ia["k"])(r,(function(r,i){var o=r.dataByAxis||[],s=e[i]||{},l=s.dataByAxis||[];n=n&&o.length===l.length,n&&Object(Ia["k"])(o,(function(e,r){var i=l[r]||{},o=e.seriesDataIndices||[],s=i.seriesDataIndices||[];n=n&&e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&o.length===s.length,n&&Object(Ia["k"])(o,(function(e,t){var r=s[t];n=n&&e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex})),a&&Object(Ia["k"])(e.seriesDataIndices,(function(e){var r=e.seriesIndex,i=t[r],o=a[r];i&&o&&o.data!==i.data&&(n=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!n},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!Ta["a"].node&&t.getDom()&&(bx(this,"_updatePosition"),this._tooltipContent.dispose(),kY("itemTooltip",t))},t.type="tooltip",t}(Hy);function QJ(e,t,r){var a,n=t.ecModel;r?(a=new Hh(r,n,n),a=new Hh(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Hh&&(o=o.get("tooltip",!0)),Object(Ia["C"])(o)&&(o={formatter:o}),o&&(a=new Hh(o,a,n)))}return a}function eQ(e,t){return e.dispatchAction||Object(Ia["c"])(t.dispatchAction,t)}function tQ(e,t,r,a,n,i,o){var s=r.getSize(),l=s[0],c=s[1];return null!=i&&(e+l+i+2>a?e-=l+i:e+=i),null!=o&&(t+c+o>n?t-=c+o:t+=o),[e,t]}function rQ(e,t,r,a,n){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,a)-o,t=Math.min(t+s,n)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function aQ(e,t,r,a){var n=r[0],i=r[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-n/2,l=t.y+u/2-i/2;break;case"top":s=t.x+c/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+c/2-n/2,l=t.y+u+o;break;case"left":s=t.x-n-o,l=t.y+u/2-i/2;break;case"right":s=t.x+c+o,l=t.y+u/2-i/2}return[s,l]}function nQ(e){return"center"===e||"middle"===e}function iQ(e,t,r){var a=tc(e).queryOptionMap,n=a.keys()[0];if(n&&"series"!==n){var i=nc(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s,l=r.getViewOfComponentModel(o);return l.group.traverse((function(t){var r=Hd(t).tooltipConfig;if(r&&r.name===e.name)return s=t,!0})),s?{componentMainType:n,componentIndex:o.componentIndex,el:s}:void 0}}}var oQ=JJ;function sQ(e){tC(YY),e.registerComponentModel(IJ),e.registerComponentView(oQ),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ia["L"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ia["L"])}var lQ=["rect","polygon","keep","clear"];function cQ(e,t){var r=Ml(e?e.brush:[]);if(r.length){var a=[];Ia["k"](r,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(a=a.concat(t))}));var n=e&&e.toolbox;Ia["t"](n)&&(n=n[0]),n||(n={feature:{}},e.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),uQ(s),t&&!s.length&&s.push.apply(s,lQ)}}function uQ(e){var t={};Ia["k"](e,(function(e){t[e]=1})),e.length=0,Ia["k"](t,(function(t,r){e.push(r)}))}var dQ=Ia["k"];function pQ(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function hQ(e,t,r){var a={};return dQ(t,(function(t){var i=a[t]=n();dQ(e[t],(function(e,a){if(kj.isValidType(a)){var n={type:a,visual:e};r&&r(n,t),i[a]=new kj(n),"opacity"===a&&(n=Ia["d"](n),n.type="colorAlpha",i.__hidden.__alphaForOpacity=new kj(n))}}))})),a;function n(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function fQ(e,t,r){var a;Ia["k"](r,(function(e){t.hasOwnProperty(e)&&pQ(t[e])&&(a=!0)})),a&&Ia["k"](r,(function(r){t.hasOwnProperty(r)&&pQ(t[r])?e[r]=Ia["d"](t[r]):delete e[r]}))}function mQ(e,t,r,a,n,i){var o,s={};function l(e){return ow(r,o,e)}function c(e,t){lw(r,o,e,t)}function u(e,u){o=null==i?e:u;var d=r.getRawDataItem(o);if(!d||!1!==d.visualMap)for(var p=a.call(n,e),h=t[p],f=s[p],m=0,g=f.length;mt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&PQ(t)}};function PQ(e){return new Yn(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var kQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new $z(t.getZr())).on("brush",Ia["c"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,r,a){this.model=e,this._updateController(e,t,r,a)},t.prototype.updateTransform=function(e,t,r,a){SQ(t),this._updateController(e,t,r,a)},t.prototype.updateVisual=function(e,t,r,a){this.updateTransform(e,t,r,a)},t.prototype.updateView=function(e,t,r,a){this._updateController(e,t,r,a)},t.prototype._updateController=function(e,t,r,a){(!a||a.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(r)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,r=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:Ia["d"](r),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:Ia["d"](r),$from:t})},t.type="brush",t}(Hy),NQ=kQ,EQ="#ddd",LQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return Ca(t,e),t.prototype.optionUpdated=function(e,t){var r=this.option;!t&&fQ(r,e,["inBrush","outOfBrush"]);var a=r.inBrush=r.inBrush||{};r.outOfBrush=r.outOfBrush||{color:EQ},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Ia["H"](e,(function(e){return RQ(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=RQ(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(gm);function RQ(e,t){return Ia["I"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Hh(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var FQ=LQ,jQ=["rect","polygon","lineX","lineY","keep","clear"],VQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.render=function(e,t,r){var a,n,i;t.eachComponent({mainType:"brush"},(function(e){a=e.brushType,n=e.brushOption.brushMode||"single",i=i||!!e.areas.length})),this._brushType=a,this._brushMode=n,Ia["k"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===n:"clear"===t?i:t===a)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,r){this.render(e,t,r)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),r={};return Ia["k"](e.get("type",!0),(function(e){t[e]&&(r[e]=t[e])})),r},t.prototype.onclick=function(e,t,r){var a=this._brushType,n=this._brushMode;"clear"===r?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===r?a:a!==r&&r,brushMode:"keep"===r?"multiple"===n?"single":"multiple":n}})},t.getDefaultOption=function(e){var t={show:!0,type:jQ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(mZ),$Q=VQ;function BQ(e){e.registerComponentView(NQ),e.registerComponentModel(FQ),e.registerPreprocessor(cQ),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,CQ),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Ia["L"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ia["L"]),vZ("brush",$Q)}var zQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return Ca(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(gm),GQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){if(this.group.removeAll(),e.get("show")){var a=this.group,n=e.getModel("textStyle"),i=e.getModel("subtextStyle"),o=e.get("textAlign"),s=Ia["P"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new Wd({style:wh(n,{text:e.get("text"),fill:n.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),d=new Wd({style:wh(i,{text:u,fill:i.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),h=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!p&&!f,d.silent=!h&&!f,p&&l.on("click",(function(){Qf(p,"_"+e.get("target"))})),h&&d.on("click",(function(){Qf(h,"_"+e.get("subtarget"))})),Hd(l).eventData=Hd(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(l),u&&a.add(d);var m=a.getBoundingRect(),g=e.getBoxLayoutParams();g.width=m.width,g.height=m.height;var v=om(g,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));o||(o=e.get("left")||e.get("right"),"middle"===o&&(o="center"),"right"===o?v.x+=v.width:"center"===o&&(v.x+=v.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),a.x=v.x,a.y=v.y,a.markRedraw();var y={align:o,verticalAlign:s};l.setStyle(y),d.setStyle(y),m=a.getBoundingRect();var b=v.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var x=new Id({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(Hy);function UQ(e){e.registerComponentModel(zQ),e.registerComponentView(GQ)}var WQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return Ca(t,e),t.prototype.init=function(e,t,r){this.mergeDefaultAndTheme(e,r),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,r=t.data||[],a=t.axisType,n=this._names=[];"category"===a?(e=[],Object(Ia["k"])(r,(function(t,r){var a,i=Ul(Nl(t),"");Object(Ia["A"])(t)?(a=Object(Ia["d"])(t),a.value=r):a=r,e.push(a),n.push(i)}))):e=r;var i={category:"ordinal",time:"time",value:"number"}[a]||"number",o=this._data=new fO([{name:"value",type:i}],this);o.initData(e,n)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(gm),HQ=WQ,qQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="timeline.slider",t.defaultOption=Zh(HQ.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(HQ);Object(Ia["K"])(qQ,wv.prototype);var YQ=qQ,XQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="timeline",t}(Hy),KQ=XQ,ZQ=function(e){function t(t,r,a,n){var i=e.call(this,t,r,a)||this;return i.type=n||"value",i}return Ca(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(nN),JQ=ZQ,QQ=Math.PI,e0=Jl(),t0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,r){if(this.model=e,this.api=r,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,r),n=this._createGroup("_mainGroup"),i=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(a,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return fy("nameValue",{noName:!0,value:t})},Object(Ia["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](a,n,o,e)}),this),this._renderAxisLabel(a,i,o,e),this._position(a,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var r,a=e.get(["label","position"]),n=e.get("orient"),i=a0(e,t);r=null==a||"auto"===a?"horizontal"===n?i.y+i.height/2=0||"+"===r?"left":"right"},u={horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:QQ/2},p="vertical"===n?i.height:i.width,h=e.getModel("controlStyle"),f=h.get("show",!0),m=f?h.get("itemSize"):0,g=f?h.get("itemGap"):0,v=m+g,y=e.get(["label","rotate"])||0;y=y*QQ/180;var b=h.get("position",!0),_=f&&h.get("showPlayBtn",!0),x=f&&h.get("showPrevBtn",!0),w=f&&h.get("showNextBtn",!0),D=0,S=p;"left"===b||"bottom"===b?(_&&(o=[0,0],D+=v),x&&(s=[D,0],D+=v),w&&(l=[S-m,0],S-=v)):(_&&(o=[S-m,0],S-=v),x&&(s=[0,0],D+=v),w&&(l=[S-m,0],S-=v));var C=[D,S];return e.get("inverse")&&C.reverse(),{viewRect:i,mainLength:p,orient:n,rotation:d[n],labelRotation:y,labelPosOpt:r,labelAlign:e.get(["label","align"])||c[n],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[n],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:m,controlGap:g}},t.prototype._position=function(e,t){var r=this._mainGroup,a=this._labelGroup,n=e.viewRect;if("vertical"===e.orient){var i=On(),o=n.x,s=n.y+n.height;kn(i,i,[-o,-s]),Nn(i,i,-QQ/2),kn(i,i,[o,s]),n=n.clone(),n.applyTransform(i)}var l=g(n),c=g(r.getBoundingRect()),u=g(a.getBoundingRect()),d=[r.x,r.y],p=[a.x,a.y];p[0]=d[0]=l[0][0];var h=e.labelPosOpt;if(null==h||Object(Ia["C"])(h)){var f="+"===h?0:1;v(d,c,l,1,f),v(p,u,l,1,1-f)}else{f=h>=0?0:1;v(d,c,l,1,f),p[1]=d[1]+h}function m(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,r,a,n){e[a]+=r[a][n]-t[a][n]}r.setPosition(d),a.setPosition(p),r.rotation=a.rotation=e.rotation,m(r),m(a)},t.prototype._createAxis=function(e,t){var r=t.getData(),a=t.get("axisType"),n=r0(t,a);n.getTicks=function(){return r.mapArray(["value"],(function(e){return{value:e}}))};var i=r.getDataExtent("value");n.setExtent(i[0],i[1]),n.calcNiceTicks();var o=new JQ("value",n,e.axisExtent,a);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new Gs;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,r,a){var n=r.getExtent();if(a.get(["lineStyle","show"])){var i=new t_({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:Object(Ia["m"])({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(i);var o=this._progressLine=new t_({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:Object(Ia["i"])({lineCap:"round",lineWidth:i.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,r,a){var n=this,i=a.getData(),o=r.scale.getTicks();this._tickSymbols=[],Object(Ia["k"])(o,(function(e){var o=r.dataToCoord(e.value),s=i.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),d={x:o,y:0,onclick:Object(Ia["c"])(n._changeTimeline,n,e.value)},p=i0(s,l,t,d);p.ensureState("emphasis").style=c.getItemStyle(),p.ensureState("progress").style=u.getItemStyle(),Hp(p);var h=Hd(p);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=a):h.dataIndex=h.dataModel=null,n._tickSymbols.push(p)}))},t.prototype._renderAxisLabel=function(e,t,r,a){var n=this,i=r.getLabelModel();if(i.get("show")){var o=a.getData(),s=r.getViewLabels();this._tickLabels=[],Object(Ia["k"])(s,(function(a){var i=a.tickValue,s=o.getItemModel(i),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),d=r.dataToCoord(a.tickValue),p=new Wd({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(Ia["c"])(n._changeTimeline,n,i),silent:!1,style:wh(l,{text:a.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});p.ensureState("emphasis").style=wh(c),p.ensureState("progress").style=wh(u),t.add(p),Hp(p),e0(p).dataIndex=i,n._tickLabels.push(p)}))}},t.prototype._renderControl=function(e,t,r,a){var n=e.controlSize,i=e.rotation,o=a.getModel("controlStyle").getItemStyle(),s=a.getModel(["emphasis","controlStyle"]).getItemStyle(),l=a.getPlayState(),c=a.get("inverse",!0);function u(e,r,l,c){if(e){var u=Ts(Object(Ia["P"])(a.get(["controlStyle",r+"BtnSize"]),n),n),d=[0,-u/2,u,u],p=n0(a,r+"Icon",d,{x:e[0],y:e[1],originX:n/2,originY:0,rotation:c?-i:0,rectHover:!0,style:o,onclick:l});p.ensureState("emphasis").style=s,t.add(p),Hp(p)}}u(e.nextBtnPosition,"next",Object(Ia["c"])(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",Object(Ia["c"])(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",Object(Ia["c"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,r,a){var n=a.getData(),i=a.getCurrentIndex(),o=n.getItemModel(i).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(Ia["c"])(s._handlePointerDrag,s),e.ondragend=Object(Ia["c"])(s._handlePointerDragend,s),o0(e,s._progressLine,i,r,a,!0)},onUpdate:function(e){o0(e,s._progressLine,i,r,a)}};this._currentPointer=i0(o,o,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,r){this._clearTimer(),this._pointerChangeTimeline([r.offsetX,r.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var r=this._toAxisCoord(e)[0],a=this._axis,n=ol(a.getExtent().slice());r>n[1]&&(r=n[1]),r=0&&(o[i]=+o[i].toFixed(p)),[o,d]}var S0={min:Object(Ia["h"])(D0,"min"),max:Object(Ia["h"])(D0,"max"),average:Object(Ia["h"])(D0,"average"),median:Object(Ia["h"])(D0,"median")};function C0(e,t){if(t){var r=e.getData(),a=e.coordinateSystem,n=a&&a.dimensions;if(!w0(t)&&!Object(Ia["t"])(t.coord)&&Object(Ia["t"])(n)){var i=T0(t,r,a,e);if(t=Object(Ia["d"])(t),t.type&&S0[t.type]&&i.baseAxis&&i.valueAxis){var o=Object(Ia["r"])(n,i.baseAxis.dim),s=Object(Ia["r"])(n,i.valueAxis.dim),l=S0[t.type](r,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(Ia["t"])(n))for(var c=t.coord,u=0;u<2;u++)S0[c[u]]&&(c[u]=P0(r,r.mapDimension(n[u]),c[u]));else t.coord=[];return t}}function T0(e,t,r,a){var n={};return null!=e.valueIndex||null!=e.valueDim?(n.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,n.valueAxis=r.getAxis(I0(a,n.valueDataDim)),n.baseAxis=r.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=r.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function I0(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function O0(e,t){return!(e&&e.containData&&t.coord&&!x0(t))||e.containData(t.coord)}function A0(e,t,r){return!(e&&e.containZone&&t.coord&&r.coord&&!x0(t)&&!x0(r))||e.containZone(t.coord,r.coord)}function M0(e,t){return e?function(e,r,a,n){var i=n<2?e.coord&&e.coord[n]:e.value;return Iv(i,t[n])}:function(e,r,a,n){return Iv(e.value,t[n])}}function P0(e,t,r){if("average"===r){var a=0,n=0;return e.each(t,(function(e,t){isNaN(e)||(a+=e,n++)})),a/n}return"median"===r?e.getMedian(t):e.getDataExtent(t)["max"===r?1:0]}var k0=Jl(),N0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(){this.markerGroupMap=Object(Ia["f"])()},t.prototype.render=function(e,t,r){var a=this,n=this.markerGroupMap;n.each((function(e){k0(e).keep=!1})),t.eachSeries((function(e){var n=y0.getMarkerModelFromSeries(e,a.type);n&&a.renderSeries(e,n,t,r)})),n.each((function(e){!k0(e).keep&&a.group.remove(e.group)}))},t.prototype.markKeep=function(e){k0(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var r=this;Object(Ia["k"])(e,(function(e){var a=y0.getMarkerModelFromSeries(e,r.type);if(a){var n=a.getData();n.eachItemGraphicEl((function(e){e&&(t?Pp(e):kp(e))}))}}))},t.type="marker",t}(Hy),E0=N0;function L0(e,t,r){var a=t.coordinateSystem;e.each((function(n){var i,o=e.getItemModel(n),s=nl(o.get("x"),r.getWidth()),l=nl(o.get("y"),r.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)i=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(a){var c=e.get(a.dimensions[0],n),u=e.get(a.dimensions[1],n);i=a.dataToPoint([c,u])}}else i=[s,l];isNaN(s)||(i[0]=s),isNaN(l)||(i[1]=l),e.setItemLayout(n,i)}))}var R0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=y0.getMarkerModelFromSeries(e,"markPoint");t&&(L0(t.getData(),e,r),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,r,a){var n=e.coordinateSystem,i=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,new UO),c=F0(n,e,t);t.setData(c),L0(t.getData(),e,a),c.each((function(e){var r=c.getItemModel(e),a=r.getShallow("symbol"),n=r.getShallow("symbolSize"),i=r.getShallow("symbolRotate"),s=r.getShallow("symbolOffset"),l=r.getShallow("symbolKeepAspect");if(Object(Ia["w"])(a)||Object(Ia["w"])(n)||Object(Ia["w"])(i)||Object(Ia["w"])(s)){var u=t.getRawValue(e),d=t.getDataParams(e);Object(Ia["w"])(a)&&(a=a(u,d)),Object(Ia["w"])(n)&&(n=n(u,d)),Object(Ia["w"])(i)&&(i=i(u,d)),Object(Ia["w"])(s)&&(s=s(u,d))}var p=r.getModel("itemStyle").getItemStyle(),h=sw(o,"color");p.fill||(p.fill=h),c.setItemVisual(e,{symbol:a,symbolSize:n,symbolRotate:i,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Hd(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(E0);function F0(e,t,r){var a;a=e?Object(Ia["H"])(e&&e.dimensions,(function(e){var r=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(Ia["m"])(Object(Ia["m"])({},r),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var n=new fO(a,r),i=Object(Ia["H"])(r.get("data"),Object(Ia["h"])(C0,t));e&&(i=Object(Ia["n"])(i,Object(Ia["h"])(O0,e)));var o=M0(!!e,a);return n.initData(i,null,o),n}var j0=R0;function V0(e){e.registerComponentModel(_0),e.registerComponentView(j0),e.registerPreprocessor((function(e){f0(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var $0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.createMarkerModelFromSeries=function(e,r,a){return new t(e,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(y0),B0=$0,z0=Jl(),G0=function(e,t,r,a){var n,i=e.getData();if(Object(Ia["t"])(a))n=a;else{var o=a.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=a.xAxis||null!=a.yAxis){var s=void 0,l=void 0;if(null!=a.yAxis||null!=a.xAxis)s=t.getAxis(null!=a.yAxis?"y":"x"),l=Object(Ia["O"])(a.yAxis,a.xAxis);else{var c=T0(a,i,t,e);s=c.valueAxis;var u=TO(i,c.valueDataDim);l=P0(i,u,o)}var d="x"===s.dim?0:1,p=1-d,h=Object(Ia["d"])(a),f={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,f.coord[p]=1/0;var m=r.get("precision");m>=0&&Object(Ia["z"])(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[d]=f.coord[d]=l,n=[h,f,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var g=[C0(e,n[0]),C0(e,n[1]),Object(Ia["m"])({},n[2])];return g[2].type=g[2].type||null,Object(Ia["I"])(g[2],g[0]),Object(Ia["I"])(g[2],g[1]),g};function U0(e){return!isNaN(e)&&!isFinite(e)}function W0(e,t,r,a){var n=1-e,i=a.dimensions[e];return U0(t[n])&&U0(r[n])&&t[e]===r[e]&&a.getAxis(i).containData(t[e])}function H0(e,t){if("cartesian2d"===e.type){var r=t[0].coord,a=t[1].coord;if(r&&a&&(W0(1,r,a,e)||W0(0,r,a,e)))return!0}return O0(e,t[0])&&O0(e,t[1])}function q0(e,t,r,a,n){var i,o=a.coordinateSystem,s=e.getItemModel(t),l=nl(s.get("x"),n.getWidth()),c=nl(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(c)){if(a.getMarkerPosition)i=a.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,d=e.get(u[0],t),p=e.get(u[1],t);i=o.dataToPoint([d,p])}if(uA(o,"cartesian2d")){var h=o.getAxis("x"),f=o.getAxis("y");u=o.dimensions;U0(e.get(u[0],t))?i[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):U0(e.get(u[1],t))&&(i[1]=f.toGlobalCoord(f.getExtent()[r?0:1]))}isNaN(l)||(i[0]=l),isNaN(c)||(i[1]=c)}else i=[l,c];e.setItemLayout(t,i)}var Y0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=y0.getMarkerModelFromSeries(e,"markLine");if(t){var a=t.getData(),n=z0(t).from,i=z0(t).to;n.each((function(t){q0(n,t,!0,e,r),q0(i,t,!1,e,r)})),a.each((function(e){a.setItemLayout(e,[n.getItemLayout(e),i.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,r,a){var n=e.coordinateSystem,i=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,new s$);this.group.add(l.group);var c=X0(n,e,t),u=c.from,d=c.to,p=c.line;z0(t).from=u,z0(t).to=d,t.setData(p);var h=t.get("symbol"),f=t.get("symbolSize"),m=t.get("symbolRotate"),g=t.get("symbolOffset");function v(t,r,n){var i=t.getItemModel(r);q0(t,r,n,e,a);var s=i.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=sw(o,"color")),t.setItemVisual(r,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:Object(Ia["P"])(i.get("symbolOffset",!0),g[n?0:1]),symbolRotate:Object(Ia["P"])(i.get("symbolRotate",!0),m[n?0:1]),symbolSize:Object(Ia["P"])(i.get("symbolSize"),f[n?0:1]),symbol:Object(Ia["P"])(i.get("symbol",!0),h[n?0:1]),style:s})}Object(Ia["t"])(h)||(h=[h,h]),Object(Ia["t"])(f)||(f=[f,f]),Object(Ia["t"])(m)||(m=[m,m]),Object(Ia["t"])(g)||(g=[g,g]),c.from.each((function(e){v(u,e,!0),v(d,e,!1)})),p.each((function(e){var t=p.getItemModel(e).getModel("lineStyle").getLineStyle();p.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),p.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(p),c.line.eachItemGraphicEl((function(e){Hd(e).dataModel=t,e.traverse((function(e){Hd(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(E0);function X0(e,t,r){var a;a=e?Object(Ia["H"])(e&&e.dimensions,(function(e){var r=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(Ia["m"])(Object(Ia["m"])({},r),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var n=new fO(a,r),i=new fO(a,r),o=new fO([],r),s=Object(Ia["H"])(r.get("data"),Object(Ia["h"])(G0,t,e,r));e&&(s=Object(Ia["n"])(s,Object(Ia["h"])(H0,e)));var l=M0(!!e,a);return n.initData(Object(Ia["H"])(s,(function(e){return e[0]})),null,l),i.initData(Object(Ia["H"])(s,(function(e){return e[1]})),null,l),o.initData(Object(Ia["H"])(s,(function(e){return e[2]}))),o.hasItemOption=!0,{from:n,to:i,line:o}}var K0=Y0;function Z0(e){e.registerComponentModel(B0),e.registerComponentView(K0),e.registerPreprocessor((function(e){f0(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var J0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.createMarkerModelFromSeries=function(e,r,a){return new t(e,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(y0),Q0=J0,e1=Jl(),t1=function(e,t,r,a){var n=a[0],i=a[1];if(n&&i){var o=C0(e,n),s=C0(e,i),l=o.coord,c=s.coord;l[0]=Object(Ia["O"])(l[0],-1/0),l[1]=Object(Ia["O"])(l[1],-1/0),c[0]=Object(Ia["O"])(c[0],1/0),c[1]=Object(Ia["O"])(c[1],1/0);var u=Object(Ia["J"])([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function r1(e){return!isNaN(e)&&!isFinite(e)}function a1(e,t,r,a){var n=1-e;return r1(t[n])&&r1(r[n])}function n1(e,t){var r=t.coord[0],a=t.coord[1],n={coord:r,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return uA(e,"cartesian2d")?!(!r||!a||!a1(1,r,a,e)&&!a1(0,r,a,e))||A0(e,n,i):O0(e,n)||O0(e,i)}function i1(e,t,r,a,n){var i,o=a.coordinateSystem,s=e.getItemModel(t),l=nl(s.get(r[0]),n.getWidth()),c=nl(s.get(r[1]),n.getHeight());if(isNaN(l)||isNaN(c)){if(a.getMarkerPosition){var u=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=o.clampData(u),h=o.clampData(d),f=[];"x0"===r[0]?f[0]=p[0]>h[0]?d[0]:u[0]:f[0]=p[0]>h[0]?u[0]:d[0],"y0"===r[1]?f[1]=p[1]>h[1]?d[1]:u[1]:f[1]=p[1]>h[1]?u[1]:d[1],i=a.getMarkerPosition(f,r,!0)}else{var m=e.get(r[0],t),g=e.get(r[1],t),v=[m,g];o.clampData&&o.clampData(v,v),i=o.dataToPoint(v,!0)}if(uA(o,"cartesian2d")){var y=o.getAxis("x"),b=o.getAxis("y");m=e.get(r[0],t),g=e.get(r[1],t);r1(m)?i[0]=y.toGlobalCoord(y.getExtent()["x0"===r[0]?0:1]):r1(g)&&(i[1]=b.toGlobalCoord(b.getExtent()["y0"===r[1]?0:1]))}isNaN(l)||(i[0]=l),isNaN(c)||(i[1]=c)}else i=[l,c];return i}var o1=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],s1=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=y0.getMarkerModelFromSeries(e,"markArea");if(t){var a=t.getData();a.each((function(t){var n=Object(Ia["H"])(o1,(function(n){return i1(a,t,n,e,r)}));a.setItemLayout(t,n);var i=a.getItemGraphicEl(t);i.setShape("points",n)}))}}),this)},t.prototype.renderSeries=function(e,t,r,a){var n=e.coordinateSystem,i=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,{group:new Gs});this.group.add(l.group),this.markKeep(l);var c=l1(n,e,t);t.setData(c),c.each((function(t){var r=Object(Ia["H"])(o1,(function(r){return i1(c,t,r,e,a)})),i=n.getAxis("x").scale,s=n.getAxis("y").scale,l=i.getExtent(),u=s.getExtent(),d=[i.parse(c.get("x0",t)),i.parse(c.get("x1",t))],p=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];ol(d),ol(p);var h=!(l[0]>d[1]||l[1]p[1]||u[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(gm),h1=p1,f1=Ia["h"],m1=Ia["k"],g1=Gs,v1=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return Ca(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new g1),this.group.add(this._selectorGroup=new g1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,r){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var n=e.get("align"),i=e.get("orient");n&&"auto"!==n||(n="right"===e.get("left")&&"vertical"===i?"right":"left");var o=e.get("selector",!0),s=e.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===i?"end":"start"),this.renderInner(n,e,t,r,o,i,s);var l=e.getBoxLayoutParams(),c={width:r.getWidth(),height:r.getHeight()},u=e.get("padding"),d=om(l,c,u),p=this.layoutInner(e,n,d,a,o,s),h=om(Ia["i"]({width:p.width,height:p.height},l),c,u);this.group.x=h.x-p.x,this.group.y=h.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wZ(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,r,a,n,i,o){var s=this.getContentGroup(),l=Ia["f"](),c=t.get("selectedMode"),u=[];r.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),m1(t.getData(),(function(n,i){var o=n.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var d=new g1;return d.newline=!0,void s.add(d)}var p=r.getSeriesByName(o)[0];if(!l.get(o)){if(p){var h=p.getData(),f=h.getVisual("legendLineStyle")||{},m=h.getVisual("legendIcon"),g=h.getVisual("style"),v=this._createItem(p,o,i,n,t,e,f,g,m,c,a);v.on("click",f1(_1,o,null,a,u)).on("mouseover",f1(w1,p.name,null,a,u)).on("mouseout",f1(D1,p.name,null,a,u)),r.ssr&&v.eachChild((function(e){var t=Hd(e);t.seriesIndex=p.seriesIndex,t.dataIndex=i,t.ssrType="legend"})),l.set(o,!0)}else r.eachRawSeries((function(s){if(!l.get(o)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(o))return;var p=d.indexOfName(o),h=d.getItemVisual(p,"style"),f=d.getItemVisual(p,"legendIcon"),m=Object(no["h"])(h.fill);m&&0===m[3]&&(m[3]=.2,h=Ia["m"](Ia["m"]({},h),{fill:Object(no["i"])(m,"rgba")}));var g=this._createItem(s,o,i,n,t,e,{},h,f,c,a);g.on("click",f1(_1,null,o,a,u)).on("mouseover",f1(w1,null,o,a,u)).on("mouseout",f1(D1,null,o,a,u)),r.ssr&&g.eachChild((function(e){var t=Hd(e);t.seriesIndex=s.seriesIndex,t.dataIndex=i,t.ssrType="legend"})),l.set(o,!0)}}),this);0}}),this),n&&this._createSelector(n,t,a,i,o)},t.prototype._createSelector=function(e,t,r,a,n){var i=this.getSelectorGroup();m1(e,(function(e){var a=e.type,n=new Wd({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:"all"===a?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});i.add(n);var o=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);_h(n,{normal:o,emphasis:s},{defaultText:e.title}),Hp(n)}))},t.prototype._createItem=function(e,t,r,a,n,i,o,s,l,c,u){var d=e.visualDrawType,p=n.get("itemWidth"),h=n.get("itemHeight"),f=n.isSelected(t),m=a.get("symbolRotate"),g=a.get("symbolKeepAspect"),v=a.get("icon");l=v||l||"roundRect";var y=y1(l,a,o,s,d,f,u),b=new g1,_=a.getModel("textStyle");if(!Ia["w"](e.getLegendIcon)||v&&"inherit"!==v){var x="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===m?e.getData().getVisual("symbolRotate"):m:0;b.add(b1({itemWidth:p,itemHeight:h,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}))}else b.add(e.getLegendIcon({itemWidth:p,itemHeight:h,icon:l,iconRotate:m,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}));var w="left"===i?p+5:-5,D=i,S=n.get("formatter"),C=t;Ia["C"](S)&&S?C=S.replace("{name}",null!=t?t:""):Ia["w"](S)&&(C=S(t));var T=f?_.getTextColor():a.get("inactiveColor");b.add(new Wd({style:wh(_,{text:C,x:w,y:h/2,fill:T,align:D,verticalAlign:"middle"},{inheritColor:T})}));var I=new Id({shape:b.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&rx({el:I,componentModel:n,itemName:t,itemTooltipOption:O.option}),b.add(I),b.eachChild((function(e){e.silent=!0})),I.silent=!c,this.getContentGroup().add(b),Hp(b),b.__legendDataIndex=r,b},t.prototype.layoutInner=function(e,t,r,a,n,i){var o=this.getContentGroup(),s=this.getSelectorGroup();nm(e.get("orient"),o,e.get("itemGap"),r.width,r.height);var l=o.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),n){nm("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],p=e.get("selectorButtonGap",!0),h=e.getOrient().index,f=0===h?"width":"height",m=0===h?"height":"width",g=0===h?"y":"x";"end"===i?d[h]+=l[f]+p:c[h]+=u[f]+p,d[1-h]+=l[m]/2-u[m]/2,s.x=d[0],s.y=d[1],o.x=c[0],o.y=c[1];var v={x:0,y:0};return v[f]=l[f]+p+u[f],v[m]=Math.max(l[m],u[m]),v[g]=Math.min(0,u[g]+d[1-h]),v}return o.x=c[0],o.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Hy);function y1(e,t,r,a,n,i,o){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),m1(e,(function(r,a){"inherit"===e[a]&&(e[a]=t[a])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");c.decal=d&&"inherit"!==d?mD(d,o):a.decal,"inherit"===c.fill&&(c.fill=a[n]),"inherit"===c.stroke&&(c.stroke=a[u]),"inherit"===c.opacity&&(c.opacity=("fill"===n?a:r).opacity),s(c,a);var p=t.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),"auto"===c.fill&&(c.fill=a.fill),"auto"===c.stroke&&(c.stroke=a.fill),"auto"===h.stroke&&(h.stroke=a.fill),!i){var f=t.get("inactiveBorderWidth"),m=c[u];c.lineWidth="auto"===f?a.lineWidth>0&&m?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}function b1(e){var t=e.icon||"roundRect",r=Tw(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function _1(e,t,r,a){D1(e,t,r,a),r.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),w1(e,t,r,a)}function x1(e){var t,r=e.getZr().storage.getDisplayList(),a=0,n=r.length;while(ar[n],f=[-d.x,-d.y];t||(f[a]=l[s]);var m=[0,0],g=[-p.x,-p.y],v=Ia["P"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(h){var y=e.get("pageButtonPosition",!0);"end"===y?g[a]+=r[n]-p[n]:m[a]+=p[n]+v}g[1-a]+=d[i]/2-p[i]/2,l.setPosition(f),c.setPosition(m),u.setPosition(g);var b={x:0,y:0};if(b[n]=h?r[n]:d[n],b[i]=Math.max(d[i],p[i]),b[o]=Math.min(0,p[o]+g[1-a]),c.__rectSize=r[n],h){var _={x:0,y:0};_[n]=Math.max(r[n]-p[n]-v,0),_[i]=b[i],c.setClipPath(new Id({shape:_})),c.__rectSize=_[n]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&ch(l,{x:x.contentPosition[0],y:x.contentPosition[1]},h?e:null),this._updatePageInfoView(e,x),b},t.prototype._pageGo=function(e,t,r){var a=this._getPageInfo(t)[e];null!=a&&r.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var r=this._controllerGroup;Ia["k"](["pagePrev","pageNext"],(function(a){var n=a+"DataIndex",i=null!=t[n],o=r.childOfName(a);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var a=r.childOfName("pageText"),n=e.get("pageFormatter"),i=t.pageIndex,o=null!=i?i+1:0,s=t.pageCount;a&&n&&a.setStyle("text",Ia["C"](n)?n.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):n({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),r=this.getContentGroup(),a=this._containerGroup.__rectSize,n=e.getOrient().index,i=E1[n],o=L1[n],s=this._findTargetItemIndex(t),l=r.children(),c=l[s],u=l.length,d=u?1:0,p={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var h=y(c);p.contentPosition[n]=-h.s;for(var f=s+1,m=h,g=h,v=null;f<=u;++f)v=y(l[f]),(!v&&g.e>m.s+a||v&&!b(v,m.s))&&(m=g.i>m.i?g:v,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),g=v;for(f=s-1,m=h,g=h,v=null;f>=-1;--f)v=y(l[f]),v&&b(g,v.s)||!(m.i=t&&e.s<=t+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,r,a=this.getContentGroup();return a.eachChild((function(a,n){var i=a.__legendDataIndex;null==r&&null!=i&&(r=n),i===e&&(t=n)})),null!=t?t:r},t.type="legend.scroll",t}(S1),F1=R1;function j1(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var r=e.scrollDataIndex;null!=r&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(r)}))}))}function V1(e){tC(A1),e.registerComponentModel(k1),e.registerComponentView(F1),j1(e)}function $1(e){tC(A1),tC(V1)}var B1=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="dataZoom.inside",t.defaultOption=Zh(ZK.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ZK),z1=B1,G1=Jl();function U1(e,t,r){G1(e).coordSysRecordMap.each((function(e){var a=e.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)}))}function W1(e,t){for(var r=G1(e).coordSysRecordMap,a=r.keys(),n=0;na[r+t]&&(t=o),n=n&&i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function Z1(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var r=G1(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=Object(Ia["f"])());a.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var r=qK(e);Object(Ia["k"])(r.infoList,(function(r){var n=r.model.uid,i=a.get(n)||a.set(n,q1(t,r.model)),o=i.dataZoomInfoMap||(i.dataZoomInfoMap=Object(Ia["f"])());o.set(e.uid,{dzReferCoordSysInfo:r,model:e,getRange:null})}))})),a.each((function(e){var t,r=e.controller,n=e.dataZoomInfoMap;if(n){var i=n.keys()[0];null!=i&&(t=n.get(i))}if(t){var o=K1(n);r.enable(o.controlType,o.opt),r.setPointerChecker(e.containsPoint),yx(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else H1(a,e)}))}))}var J1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Ca(t,e),t.prototype.render=function(t,r,a){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),U1(a,t,{pan:Object(Ia["c"])(Q1.pan,this),zoom:Object(Ia["c"])(Q1.zoom,this),scrollMove:Object(Ia["c"])(Q1.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){W1(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(tZ),Q1={zoom:function(e,t,r,a){var n=this.range,i=n.slice(),o=e.axisModels[0];if(o){var s=t2[t](null,[a.originX,a.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/a.scale,0);i[0]=(i[0]-l)*c+l,i[1]=(i[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return CB(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1]?i:void 0}},pan:e2((function(e,t,r,a,n,i){var o=t2[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:e2((function(e,t,r,a,n,i){var o=t2[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,r);return o.signal*(e[1]-e[0])*i.scrollDelta}))};function e2(e){return function(t,r,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,a,n);return CB(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}}}var t2={grid:function(e,t,r,a,n){var i=r.axis,o={},s=n.model.coordinateSystem.getRect();return e=e||[0,0],"x"===i.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,a,n){var i=r.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===r.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,a,n){var i=r.axis,o=n.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===i.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}},r2=J1;function a2(e){hZ(e),e.registerComponentModel(z1),e.registerComponentView(r2),Z1(e)}var n2=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Zh(ZK.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(ZK),i2=n2,o2=Id,s2=7,l2=1,c2=30,u2=7,d2="horizontal",p2="vertical",h2=5,f2=["line","bar","candlestick","scatter"],m2={easing:"cubicOut",duration:100,delay:0},g2=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return Ca(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(Ia["c"])(this._onBrush,this),this._onBrushEnd=Object(Ia["c"])(this._onBrushEnd,this)},t.prototype.render=function(t,r,a,n){if(e.prototype.render.apply(this,arguments),yx(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){bx(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Gs;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,r=e.get("brushSelect"),a=r?u2:0,n=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o=this._orient===d2?{right:i.width-n.x-n.width,top:i.height-c2-s2-a,width:n.width,height:c2}:{right:s2,top:n.y,width:c2,height:n.height},s=dm(e.option);Object(Ia["k"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=o[e])}));var l=om(s,i);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===p2&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,r=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),n=a&&a.get("inverse"),i=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;i.attr(r!==d2||n?r===d2&&n?{scaleY:o?1:-1,scaleX:-1}:r!==p2||n?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=e.getBoundingRect([i]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,r=this._displayables.sliderGroup,a=e.get("brushSelect");r.add(new o2({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var n=new o2({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(Ia["c"])(this._onClickPanel,this)}),i=this.api.getZr();a?(n.on("mousedown",this._onBrushStart,this),n.cursor="crosshair",i.on("mousemove",this._onBrush),i.on("mouseup",this._onBrushEnd)):(i.off("mousemove",this._onBrush),i.off("mouseup",this._onBrushEnd)),r.add(n)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,r=this._shadowSize||[],a=e.series,n=a.getRawData(),i=a.getShadowDim&&a.getShadowDim(),o=i&&n.getDimensionInfo(i)?a.getShadowDim():e.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(n!==this._shadowData||o!==this._shadowDim||t[0]!==r[0]||t[1]!==r[1]){var c=n.getDataExtent(o),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var d,p=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],m=[],g=h[1]/(n.count()-1),v=0,y=Math.round(n.count()/t[0]);n.each([o],(function(e,t){if(y>0&&t%y)v+=g;else{var r=null==e||isNaN(e)||""===e,a=r?0:al(e,c,p,!0);r&&!d&&t?(f.push([f[f.length-1][0],0]),m.push([m[m.length-1][0],0])):!r&&d&&(f.push([v,0]),m.push([v,0])),f.push([v,a]),m.push([v,a]),v+=g,d=r}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=m}this._shadowData=n,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),r=new Gs,a=new Yb({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),n=new Zb({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return r.add(a),r.add(n),r}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var r,a=this.ecModel;return e.eachTargetAxis((function(n,i){var o=e.getAxisProxy(n,i).getTargetSeriesModels();Object(Ia["k"])(o,(function(e){if(!r&&!(!0!==t&&Object(Ia["r"])(f2,e.get("type"))<0)){var o,s=a.getComponent(WK(n),i).axis,l=v2(n),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(o=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),r={thisAxis:s,series:e,thisDim:n,otherDim:l,otherAxisInverse:o}}}),this)}),this),r}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,r=t.handles=[null,null],a=t.handleLabels=[null,null],n=this._displayables.sliderGroup,i=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,c=o.get("brushSelect"),u=t.filler=new o2({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});n.add(u),n.add(new o2({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:l2,fill:"rgba(0,0,0,0)"}})),Object(Ia["k"])([0,1],(function(t){var i=o.get("handleIcon");!Dw[i]&&i.indexOf("path://")<0&&i.indexOf("image://")<0&&(i="path://"+i);var s=Tw(i,-1,0,2,2,null,!0);s.attr({cursor:y2(this._orient),draggable:!0,drift:Object(Ia["c"])(this._onDragMove,this,t),ondragend:Object(Ia["c"])(this._onDragEnd,this),onmouseover:Object(Ia["c"])(this._showDataInfo,this,!0),onmouseout:Object(Ia["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=o.get("handleSize");this._handleHeight=nl(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Hp(s);var u=o.get("handleColor");null!=u&&(s.style.fill=u),n.add(r[t]=s);var d=o.getModel("textStyle"),p=o.get("handleLabel")||{},h=p.show||!1;e.add(a[t]=new Wd({silent:!0,invisible:!h,style:wh(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=u;if(c){var p=nl(o.get("moveHandleSize"),i[1]),h=t.moveHandle=new Id({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),f=.8*p,m=t.moveHandleIcon=Tw(o.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);m.silent=!0,m.y=i[1]+p/2-.5,h.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var g=Math.min(i[1]/2,Math.max(p,10));d=t.moveZone=new Id({invisible:!0,shape:{y:i[1]-g,height:p+g}}),d.on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),n.add(h),n.add(m),n.add(d)}d.attr({draggable:!0,cursor:y2(this._orient),drift:Object(Ia["c"])(this._onDragMove,this,"all"),ondragstart:Object(Ia["c"])(this._showDataInfo,this,!0),ondragend:Object(Ia["c"])(this._onDragEnd,this),onmouseover:Object(Ia["c"])(this._showDataInfo,this,!0),onmouseout:Object(Ia["c"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[al(e[0],[0,100],t,!0),al(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var r=this.dataZoomModel,a=this._handleEnds,n=this._getViewExtent(),i=r.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];CB(t,a,n,r.get("zoomLock")?"all":e,null!=i.minSpan?al(i.minSpan,o,n,!0):null,null!=i.maxSpan?al(i.maxSpan,o,n,!0):null);var s=this._range,l=this._range=ol([al(a[0],n,o,!0),al(a[1],n,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,r=this._handleEnds,a=ol(r.slice()),n=this._size;Object(Ia["k"])([0,1],(function(e){var a=t.handles[e],i=this._handleHeight;a.attr({scaleX:i/2,scaleY:i/2,x:r[e]+(e?-1:1),y:n[1]/2-i/2})}),this),t.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:n[1]});var i={x:a[0],width:a[1]-a[0]};t.moveHandle&&(t.moveHandle.setShape(i),t.moveZone.setShape(i),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",i.x+i.width/2));for(var o=t.dataShadowSegs,s=[0,a[0],a[1],n[0]],l=0;lt[0]||r[1]<0||r[1]>t[1])){var a=this._handleEnds,n=(a[0]+a[1])/2,i=this._updateInterval("all",r[0]-n);this._updateView(),i&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,r=e.offsetY;this._brushStart=new jn(t,r),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var r=t.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(r.width)<5)){var n=this._getViewExtent(),i=[0,100];this._range=ol([al(r.x,n,i,!0),al(r.x+r.width,n,i,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(wn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var r=this._displayables,a=this.dataZoomModel,n=r.brushRect;n||(n=r.brushRect=new o2({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(n)),n.attr("ignore",!1);var i=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(i.x,i.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),n.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?m2:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=qK(this.dataZoomModel).infoList;if(!e&&t.length){var r=t[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var a=this.api.getWidth(),n=this.api.getHeight();e={x:.2*a,y:.2*n,width:.6*a,height:.6*n}}return e},t.type="dataZoom.slider",t}(tZ);function v2(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function y2(e){return"vertical"===e?"ns-resize":"ew-resize"}var b2=g2;function _2(e){e.registerComponentModel(i2),e.registerComponentView(b2),hZ(e)}function x2(e){tC(a2),tC(_2)}var w2={get:function(e,t,r){var a=Ia["d"]((D2[e]||{})[t]);return r&&Ia["t"](a)?a[a.length-1]:a}},D2={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},S2=w2,C2=kj.mapVisual,T2=kj.eachVisual,I2=Ia["t"],O2=Ia["k"],A2=ol,M2=al,P2=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return Ca(t,e),t.prototype.init=function(e,t,r){this.mergeDefaultAndTheme(e,r)},t.prototype.optionUpdated=function(e,t){var r=this.option;!t&&fQ(r,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=Ia["c"](e,this),this.controllerVisuals=hQ(this.option.controller,t,e),this.targetVisuals=hQ(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,r){t.push(r)})):t=Ml(e),t},t.prototype.eachTargetSeries=function(e,t){Ia["k"](this.getTargetSeriesIndices(),(function(r){var a=this.ecModel.getSeriesByIndex(r);a&&e.call(t,a)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(r){r===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,r){var a,n=this.option,i=n.precision,o=this.dataBound,s=n.formatter;r=r||["<",">"],Ia["t"](e)&&(e=e.slice(),a=!0);var l=t?e:a?[c(e[0]),c(e[1])]:c(e);return Ia["C"](s)?s.replace("{value}",a?l[0]:l).replace("{value2}",a?l[1]:l):Ia["w"](s)?a?s(e[0],e[1]):s(e):a?e[0]===o[0]?r[0]+" "+l[1]:e[1]===o[1]?r[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=A2([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var r=e.dimensions,a=r.length-1;a>=0;a--){var n=r[a],i=e.getDimensionInfo(n);if(!i.isCalculationCoord)return i.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,r={inRange:t.inRange,outOfRange:t.outOfRange},a=t.target||(t.target={}),n=t.controller||(t.controller={});Ia["I"](a,r),Ia["I"](n,r);var i=this.isCategory();function o(r){I2(t.color)&&!r.inRange&&(r.inRange={color:t.color.slice().reverse()}),r.inRange=r.inRange||{color:e.get("gradientColor")}}function s(e,t,r){var a=e[t],n=e[r];a&&!n&&(n=e[r]={},O2(a,(function(e,t){if(kj.isValidType(t)){var r=S2.get(t,"inactive",i);null!=r&&(n[t]=r,"color"!==t||n.hasOwnProperty("opacity")||n.hasOwnProperty("colorAlpha")||(n.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,r=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,a=this.get("inactiveColor"),n=this.getItemSymbol(),o=n||"roundRect";O2(this.stateList,(function(n){var s=this.itemSize,l=e[n];l||(l=e[n]={color:i?a:[a]}),null==l.symbol&&(l.symbol=t&&Ia["d"](t)||(i?o:[o])),null==l.symbolSize&&(l.symbolSize=r&&Ia["d"](r)||(i?s[0]:[s[0],s[0]])),l.symbol=C2(l.symbol,(function(e){return"none"===e?o:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;T2(c,(function(e){e>u&&(u=e)})),l.symbolSize=C2(c,(function(e){return M2(e,[0,u],[0,s[0]],!0)}))}}),this)}o.call(this,a),o.call(this,n),s.call(this,a,"inRange","outOfRange"),l.call(this,n)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(gm),k2=P2,N2=[20,140],E2=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.optionUpdated=function(t,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=N2[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=N2[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):Ia["t"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Ia["k"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=ol((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=r[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(r){var a=[],n=r.getData();n.each(this.getDataDimensionIndex(n),(function(t,r){e[0]<=t&&t<=e[1]&&a.push(r)}),this),t.push({seriesId:r.id,dataIndex:a})}),this),t},t.prototype.getVisualMeta=function(e){var t=L2(this,"outOfRange",this.getExtent()),r=L2(this,"inRange",this.option.range.slice()),a=[];function n(t,r){a.push({value:t,color:e(t,r)})}for(var i=0,o=0,s=r.length,l=t.length;oe[1])break;a.push({color:this.getControllerVisual(o,"color",t),offset:i/r})}return a.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),a},t.prototype._createBarPoints=function(e,t){var r=this.visualMapModel.itemSize;return[[r[0]-t[0],e[0]],[r[0],e[0]],[r[0],e[1]],[r[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,r=this.visualMapModel.get("inverse");return new Gs("horizontal"!==t||r?"horizontal"===t&&r?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||r?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var r=this._shapes,a=this.visualMapModel,n=r.handleThumbs,i=r.handleLabels,o=a.itemSize,s=a.getExtent(),l=this._applyTransform("left",r.mainGroup);G2([0,1],(function(c){var u=n[c];u.setStyle("fill",t.handlesColor[c]),u.y=e[c];var d=z2(e[c],[0,o[1]],s,!0),p=this.getControllerVisual(d,"symbolSize");u.scaleX=u.scaleY=p/o[0],u.x=o[0]-p/2;var h=U_(r.handleLabelPoints[c],G_(u,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(o[0]-p)/2:(o[0]-p)/-2;h[1]+=f}i[c].setStyle({x:h[0],y:h[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,r,a){var n=this.visualMapModel,i=n.getExtent(),o=n.itemSize,s=[0,o[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",u),p=this.getControllerVisual(e,"symbolSize"),h=z2(e,i,s,!0),f=o[0]-p/2,m={x:c.x,y:c.y};c.y=h,c.x=f;var g=U_(l.indicatorLabelPoint,G_(c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(r||"")+n.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var x={x:f,y:h,style:{fill:d}},w={style:{x:g[0],y:g[1]}};if(n.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};c.x=m.x,c.y=m.y,c.animateTo(x,D),v.animateTo(w,D)}else c.attr(x),v.attr(w);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Cn[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,d=[];(t||Z2(r))&&(d=this._hoverLinkDataIndices=r.findTargetDataIndices(c));var p=Kl(u,d);this._dispatchHighDown("downplay",B2(p[0],r)),this._dispatchHighDown("highlight",B2(p[1],r))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(pw(e.target,(function(e){var r=Hd(e);if(null!=r.dataIndex)return t=r,!0}),!0),t){var r=this.ecModel.getSeriesByIndex(t.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(r)){var n=r.getData(t.dataType),i=n.getStore().get(a.getDataDimensionIndex(n),t.dataIndex);isNaN(i)||this._showIndicator(i,i)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var r=0;r=0&&(n.dimension=i,a.push(n))}})),e.getData().setVisual("visualMeta",a)}}];function a5(e,t,r,a){for(var n=t.targetVisuals[a],i=kj.prepareVisualTypes(n),o={color:sw(e.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(e5,t5),Object(Ia["k"])(r5,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(i5))}function c5(e){e.registerComponentModel(R2),e.registerComponentView(Q2),l5(e)}var u5=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return Ca(t,e),t.prototype.optionUpdated=function(t,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],d5[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var n=this.option.categories;this.resetVisual((function(e,t){"categories"===a?(e.mappingMethod="category",e.categories=Ia["d"](n)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=Ia["H"](this._pieceList,(function(e){return e=Ia["d"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,r={},a=kj.listVisualTypes(),n=this.isCategory();function i(e,t,r){return e&&e[t]&&e[t].hasOwnProperty(r)}Ia["k"](t.pieces,(function(e){Ia["k"](a,(function(t){e.hasOwnProperty(t)&&(r[t]=1)}))})),Ia["k"](r,(function(e,r){var a=!1;Ia["k"](this.stateList,(function(e){a=a||i(t,e,r)||i(t.target,e,r)}),this),!a&&Ia["k"](this.stateList,(function(e){(t[e]||(t[e]={}))[r]=S2.get(r,"inRange"===e?"active":"inactive",n)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var r=this.option,a=this._pieceList,n=(t?r:e).selected||{};if(r.selected=n,Ia["k"](a,(function(e,t){var r=this.getSelectedMapKey(e);n.hasOwnProperty(r)||(n[r]=!0)}),this),"single"===r.selectedMode){var i=!1;Ia["k"](a,(function(e,t){var r=this.getSelectedMapKey(e);n[r]&&(i?n[r]=!1:i=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Ia["d"](e)},t.prototype.getValueState=function(e){var t=kj.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],r=this._pieceList;return this.eachTargetSeries((function(a){var n=[],i=a.getData();i.each(this.getDataDimensionIndex(i),(function(t,a){var i=kj.findPieceIndex(t,r);i===e&&n.push(a)}),this),t.push({seriesId:a.id,dataIndex:n})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var r=e.interval||[];t=r[0]===-1/0&&r[1]===1/0?0:(r[0]+r[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],r=["",""],a=this,n=this._pieceList.slice();if(n.length){var i=n[0].interval[0];i!==-1/0&&n.unshift({interval:[-1/0,i]}),i=n[n.length-1].interval[1],i!==1/0&&n.push({interval:[i,1/0]})}else n.push({interval:[-1/0,1/0]});var o=-1/0;return Ia["k"](n,(function(e){var t=e.interval;t&&(t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])}),this),{stops:t,outerColors:r}}function s(n,i){var o=a.getRepresentValue({interval:n});i||(i=a.getValueState(o));var s=e(o,i);n[0]===-1/0?r[0]=s:n[1]===1/0?r[1]=s:t.push({value:n[0],color:s},{value:n[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Zh(k2.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(k2),d5={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;var i=(a[1]-a[0])/n;while(+i.toFixed(r)!==i&&r<5)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,r)}),this)}};function p5(e,t){var r=e.inverse;("vertical"===e.orient?!r:r)&&t.reverse()}var h5=u5,f5=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,r=t.get("textGap"),a=t.textStyleModel,n=a.getFont(),i=a.getTextColor(),o=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=Ia["O"](t.get("showLabel",!0),!c),d=!t.get("selectedMode");c&&this._renderEndsText(e,c[0],s,u,o),Ia["k"](l.viewPieceList,(function(a){var l=a.piece,c=new Gs;c.onclick=Ia["c"](this._onItemClick,this,l),this._enableHoverLink(c,a.indexInModelPieceList);var p=t.getRepresentValue(l);if(this._createItemSymbol(c,p,[0,0,s[0],s[1]],d),u){var h=this.visualMapModel.getValueState(p);c.add(new Wd({style:{x:"right"===o?-r:s[0]+r,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:n,fill:i,opacity:"outOfRange"===h?.5:1},silent:d}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,u,o),nm(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var r=this;e.on("mouseover",(function(){return a("highlight")})).on("mouseout",(function(){return a("downplay")}));var a=function(e){var a=r.visualMapModel;a.option.hoverLink&&r.api.dispatchAction({type:e,batch:B2(a.findTargetDataIndices(t),a)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return $2(e,this.api,e.itemSize);var r=t.align;return r&&"auto"!==r||(r="left"),r},t.prototype._renderEndsText=function(e,t,r,a,n){if(t){var i=new Gs,o=this.visualMapModel.textStyleModel;i.add(new Wd({style:wh(o,{x:a?"right"===n?r[0]:0:r[0]/2,y:r[1]/2,verticalAlign:"middle",align:a?n:"center",text:t})})),e.add(i)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=Ia["H"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),r=e.get("text"),a=e.get("orient"),n=e.get("inverse");return("horizontal"===a?n:!n)?t.reverse():r&&(r=r.slice().reverse()),{viewPieceList:t,endsText:r}},t.prototype._createItemSymbol=function(e,t,r,a){var n=Tw(this.getControllerVisual(t,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(t,"color"));n.silent=a,e.add(n)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,r=t.option,a=r.selectedMode;if(a){var n=Ia["d"](r.selected),i=t.getSelectedMapKey(e);"single"===a||!0===a?(n[i]=!0,Ia["k"](n,(function(e,t){n[t]=t===i}))):n[i]=!n[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}},t.type="visualMap.piecewise",t}(j2),m5=f5;function g5(e){e.registerComponentModel(h5),e.registerComponentView(m5),l5(e)}function v5(e){tC(c5),tC(g5)}var y5={label:{enabled:!0},decal:{show:!1}},b5=Jl(),_5={};function x5(e,t){var r=e.getModel("aria");if(r.get("enabled")){var a=Ia["d"](y5);Ia["I"](a.label,e.getLocaleModel().get("aria"),!1),Ia["I"](r.option,a,!1),n(),i()}function n(){var t=r.getModel("decal"),a=t.get("show");if(a){var n=Ia["f"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=n.get(e.type);t||(t={},n.set(e.type,t)),b5(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(Ia["w"](t.enableAriaDecal))t.enableAriaDecal();else{var r=t.getData();if(t.isColorBySeries()){var a=Um(t.ecModel,t.name,_5,e.getSeriesCount()),n=r.getVisual("decal");r.setVisual("decal",c(n,a))}else{var i=t.getRawData(),o={},s=b5(t).scope;r.each((function(e){var t=r.getRawIndex(e);o[t]=e}));var l=i.count();i.each((function(e){var a=o[e],n=i.getName(e)||e+"",u=Um(t.ecModel,n,s,l),d=r.getItemVisual(a,"decal");r.setItemVisual(a,"decal",c(d,u))}))}}function c(e,t){var r=e?Ia["m"](Ia["m"]({},t),e):t;return r.dirty=!0,r}}))}}function i(){var a=t.getZr().dom;if(a){var n=e.getLocaleModel().get("aria"),i=r.getModel("label");if(i.option=Ia["i"](i.option,n),i.get("enabled"))if(a.setAttribute("role","img"),i.get("description"))a.setAttribute("aria-label",i.get("description"));else{var c,u=e.getSeriesCount(),d=i.get(["data","maxCount"])||10,p=i.get(["series","maxCount"])||10,h=Math.min(u,p);if(!(u<1)){var f=s();if(f){var m=i.get(["general","withTitle"]);c=o(m,{title:f})}else c=i.get(["general","withoutTitle"]);var g=[],v=u>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);c+=o(v,{seriesCount:u}),e.eachSeries((function(e,t){if(t1?i.get(["series","multiple",n]):i.get(["series","single",n]),r=o(r,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var c=i.get(["data","partialData"]);r+=o(c,{displayCnt:d})}else r+=i.get(["data","allData"]);for(var p=i.get(["data","separator","middle"]),f=i.get(["data","separator","end"]),m=i.get(["data","excludeDimensionId"]),v=[],y=0;y":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},C5=function(){function e(e){var t=this._condVal=Object(Ia["C"])(e)?new RegExp(e):Object(Ia["B"])(e)?e:null;if(null==t){var r="";0,Jm(r)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(Ia["C"])(t)?this._condVal.test(e):!!Object(Ia["z"])(t)&&this._condVal.test(e+"")},e}(),T5=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),I5=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,r]}function f(e,r,a,n){W5(e,a)&&W5(r,n)||t.push(e,r,a,n,a,n)}function m(e,r,a,n,i,o){var s=Math.abs(r-e),l=4*Math.tan(s/4)/3,c=rS:I2&&l.push(t),l}function q5(e,t,r,a,n,i,o,s,l,c){if(W5(e,r)&&W5(t,a)&&W5(n,o)&&W5(i,s))l.push(o,s);else{var u=2/c,d=u*u,p=o-e,h=s-t,f=Math.sqrt(p*p+h*h);p/=f,h/=f;var m=r-e,g=a-t,v=n-o,y=i-s,b=m*m+g*g,_=v*v+y*y;if(b=0&&S=0)l.push(o,s);else{var C=[],T=[];Ui(e,r,n,o,.5,C),Ui(t,a,i,s,.5,T),q5(C[0],T[0],C[1],T[1],C[2],T[2],C[3],T[3],l,c),q5(C[4],T[4],C[5],T[5],C[6],T[6],C[7],T[7],l,c)}}}}function Y5(e,t){var r=H5(e),a=[];t=t||1;for(var n=0;n0)for(c=0;cMath.abs(c),d=X5([l,c],u?0:1,t),p=(u?s:c)/d.length,h=0;hn,o=X5([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",c=i?"x":"y",u=i?"y":"x",d=e[s]/o.length,p=0;p1?null:new jn(m*l+e,m*c+t)}function e3(e,t,r){var a=new jn;jn.sub(a,r,t),a.normalize();var n=new jn;jn.sub(n,e,t);var i=n.dot(a);return i}function t3(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function r3(e,t,r){for(var a=e.length,n=[],i=0;io?(c.x=u.x=s+i/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+i),r3(t,c,u)}function n3(e,t,r,a){if(1===r)a.push(t);else{var n=Math.floor(r/2),i=e(t);n3(e,i[0],n,a),n3(e,i[1],r-n,a)}return a}function i3(e,t){for(var r=[],a=0;a0)for(var x=a/r,w=-a/2;w<=a/2;w+=x){var D=Math.sin(w),S=Math.cos(w),C=0;for(b=0;b0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),l+=c*c*(3*u^d),0===d&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function S3(e){var t=1/0,r=1/0,a=-1/0,n=-1/0,i=Object(Ia["H"])(e,(function(e){var i=e.getBoundingRect(),o=e.getComputedTransform(),s=i.x+i.width/2+(o?o[4]:0),l=i.y+i.height/2+(o?o[5]:0);return t=Math.min(s,t),r=Math.min(l,r),a=Math.max(s,a),n=Math.max(l,n),[s,l]})),o=Object(Ia["H"])(i,(function(i,o){return{cp:i,z:D3(i[0],i[1],t,r,a,n),path:e[o]}}));return o.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function C3(e){return l3(e.path,e.count)}function T3(){return{fromIndividuals:[],toIndividuals:[],count:0}}function I3(e,t,r){var a=[];function n(e){for(var t=0;t=0;n--)if(!r[n].many.length){var l=r[s].many;if(l.length<=1){if(!s)return r;s=0}i=l.length;var c=Math.ceil(i/2);r[n].many=l.slice(c,i),r[s].many=l.slice(0,c),s++}return r}var P3={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),a=0;a0){var s,l,c=a.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o);A3(e)&&(s=e,l=t),A3(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,p=s?M3(l,s):M3(d?t:e,[d?e:t]),h=0,f=0;fE3))for(var n=r.getIndices(),i=0;i0&&n.group.traverse((function(e){e instanceof ud&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)}))}))}function X3(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function K3(e){return Object(Ia["t"])(e)?e.sort().join(","):e}function Z3(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function J3(e,t){var r=Object(Ia["f"])(),a=Object(Ia["f"])(),n=Object(Ia["f"])();return Object(Ia["k"])(e.oldSeries,(function(t,r){var i=e.oldDataGroupIds[r],o=e.oldData[r],s=X3(t),l=K3(s);a.set(l,{dataGroupId:i,data:o}),Object(Ia["t"])(s)&&Object(Ia["k"])(s,(function(e){n.set(e,{key:l,dataGroupId:i,data:o})}))})),Object(Ia["k"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),i=e.getData(),o=X3(e),s=K3(o),l=a.get(s);if(l)r.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Z3(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:Z3(i),data:i}]});else if(Object(Ia["t"])(o)){0;var c=[];Object(Ia["k"])(o,(function(e){var t=a.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:Z3(t.data),data:t.data})})),c.length&&r.set(s,{oldSeries:c,newSeries:[{dataGroupId:t,data:i,divide:Z3(i)}]})}else{var u=n.get(o);if(u){var d=r.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:Z3(u.data)}],newSeries:[]},r.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:i,divide:Z3(i)})}}}})),r}function Q3(e,t){for(var r=0;r=0&&n.push({dataGroupId:t.oldDataGroupIds[r],data:t.oldData[r],divide:Z3(t.oldData[r]),groupIdDim:e.dimension})})),Object(Ia["k"])(Ml(e.to),(function(e){var a=Q3(r.updatedSeries,e);if(a>=0){var n=r.updatedSeries[a].getData();i.push({dataGroupId:t.oldDataGroupIds[a],data:n,divide:Z3(n),groupIdDim:e.dimension})}})),n.length>0&&i.length>0&&Y3(n,i,a)}function t4(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,r){Object(Ia["k"])(Ml(r.seriesTransition),(function(e){Object(Ia["k"])(Ml(e.to),(function(e){for(var t=r.updatedSeries,a=0;a0?r("span",{staticClass:"hidden-count"},[e._v("("+e._s(e.hiddenParams.length)+")")]):e._e()]),r("el-button",{staticClass:"download-comparison-data-button",on:{click:e.handleDownloadComparisonData}},[e._v(" 下载对比数据 ")])],1)])]),r("div",{staticClass:"model-query-content"},[r("div",{staticClass:"left-param-panel"},[r("div",{staticClass:"tree-search-header"},[r("el-radio-group",{staticClass:"search-mode-switch",attrs:{size:"mini"},model:{value:e.treeSearchMode,callback:function(t){e.treeSearchMode=t},expression:"treeSearchMode"}},[r("el-radio-button",{attrs:{label:"subsystem"}},[e._v(" 子系统 ")]),r("el-radio-button",{attrs:{label:"parts"}},[e._v(" 零部件名称 ")])],1)],1),r("el-input",{staticClass:"tree-search",attrs:{size:"small",placeholder:"subsystem"===e.treeSearchMode?"请输入子系统名称":"请输入零部件名称",clearable:""},model:{value:e.treeFilterText,callback:function(t){e.treeFilterText=t},expression:"treeFilterText"}}),r("div",{staticClass:"tree-select-actions"},[r("el-checkbox",{staticClass:"tree-select-checkbox",attrs:{indeterminate:e.treeSelectAllIndeterminate},model:{value:e.treeSelectAllMaster,callback:function(t){e.treeSelectAllMaster=t},expression:"treeSelectAllMaster"}},[e._v(" 全选 ")])],1),r("el-tree",{ref:"paramTree",attrs:{data:e.treeData,"node-key":"id","show-checkbox":"","checked-keys":e.checkedKeys,"default-expanded-keys":[],props:{children:"children",label:"label"},"filter-node-method":e.filterTreeNode},on:{check:e.handleTreeCheck},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return r("span",{staticClass:"custom-tree-node"},[r("span",[e._v(e._s(a.label))]),a.tip?r("span",{staticClass:"red-tip"},[e._v(e._s(a.tip))]):e._e()])}}])})],1),r("div",{staticClass:"right-comparison-panel"},[r("div",{staticClass:"comparison-table-wrapper"},[r("table",{staticClass:"comparison-table"},[r("thead",[r("tr",[r("th",{staticClass:"subsystem-column"},[e._v(" 子系统名称 ")]),r("th",{staticClass:"parts-column"},[e._v(" 零部件名称 ")]),r("th",{staticClass:"param-column"},[e._v(" 参数名称 ")]),r("th",{staticClass:"unit-column"},[e._v(" 单位 ")]),e._l(e.comparisonModels,(function(t,a){return r("th",{key:a,staticClass:"model-column"},[r("div",{staticClass:"model-header"},[t.name?r("div",{staticClass:"model-name"},[e._v(" "+e._s(t.name)+" V"+e._s(t.parameterVersion)+" ")]):e._e(),t.name?r("i",{staticClass:"el-icon-close model-remove",on:{click:function(t){return e.handleRemoveModel(a)}}}):r("div",{staticClass:"add-model-placeholder",on:{click:e.handleAddModel}},[r("i",{staticClass:"el-icon-plus",staticStyle:{"font-size":"16px","font-weight":"bold"}}),r("span",[e._v("添加机型")])])])])})),r("th",{staticClass:"add-column"},[r("div",{staticClass:"add-model-placeholder",on:{click:e.handleAddModel}},[r("i",{staticClass:"el-icon-plus",staticStyle:{"font-size":"16px","font-weight":"bold"}}),r("span",[e._v("添加机型")])])])],2)]),r("tbody",e._l(e.displayParams,(function(t,a){return r("tr",{key:a},[r("td",{staticClass:"subsystem-column"},[e._v(" "+e._s(t.subsystemName)+" ")]),r("td",{staticClass:"parts-column"},[e._v(" "+e._s(t.displayPartsName)+" ")]),r("td",{staticClass:"param-column"},[r("span",{staticClass:"param-name"},[e._v(e._s(e.getParamDisplayName(t)))]),r("i",{staticClass:"el-icon-remove-outline param-config-icon",on:{click:function(r){return r.stopPropagation(),e.handleHideParam(t)}}})]),r("td",{staticClass:"unit-column"},[e._v(" "+e._s(t.unit||"-")+" ")]),e._l(e.comparisonModels,(function(a,n){return r("td",{key:n,staticClass:"model-column"},[e._v(" "+e._s(e.getParamValue(a,t))+" ")])})),r("td",{staticClass:"add-column"})],2)})),0)])])])]),r("el-dialog",{attrs:{title:"选择机型",visible:e.addModelDialogVisible,width:"800px","append-to-body":""},on:{"update:visible":function(t){e.addModelDialogVisible=t},close:e.handleAddModelDialogClose}},[r("div",{staticClass:"model-select-dialog"},[e.isUserPermissionsEmpty()?[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v(" 无权限查看 ")])])]:[r("el-input",{staticClass:"model-search-input",attrs:{placeholder:"请输入产品型号,状态代号/产品编号,平台,系列搜索","prefix-icon":"el-icon-search",clearable:""},model:{value:e.modelSearchText,callback:function(t){e.modelSearchText=t},expression:"modelSearchText"}}),r("div",{staticClass:"model-list-wrapper"},[r("el-table",{ref:"modelTable",attrs:{data:e.filteredModelList,height:"400"},on:{"selection-change":e.handleModelSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),r("el-table-column",{attrs:{prop:"modelName",label:"产品型号","min-width":"150"}}),r("el-table-column",{attrs:{prop:"parameterVersion",label:"机型版本","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v("V"+e._s(t.row.parameterVersion))])]}}],null,!1,3982641864)}),r("el-table-column",{attrs:{prop:"productNumber",label:"状态代号/产品编号","min-width":"100"}}),r("el-table-column",{attrs:{prop:"platform",label:"平台","min-width":"70"}}),r("el-table-column",{attrs:{prop:"series",label:"系列","min-width":"70"}})],1)],1)]],2),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddModelDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.loadingModelDetail},on:{click:e.handleConfirmAddModel}},[e._v(" 确定 ")])],1)]),r("el-dialog",{attrs:{title:"已隐藏参数",visible:e.hiddenParamsDialogVisible,width:"800px","append-to-body":""},on:{"update:visible":function(t){e.hiddenParamsDialogVisible=t},close:e.handleHiddenParamsDialogClose}},[r("div",{staticClass:"hidden-params-dialog-content"},[0===e.hiddenParamsList.length?r("div",{staticClass:"empty-hint"},[e._v(" 暂无隐藏的参数 ")]):[r("div",{staticClass:"hidden-params-header"},[r("el-button",{attrs:{size:"small"},on:{click:e.handleRestoreAll}},[e._v(" 全部恢复 ")]),r("el-button",{attrs:{size:"small",disabled:0===e.selectedParamsToRestore.length},on:{click:e.handleRestoreSelected}},[e._v(" 恢复已选择 ")])],1),r("el-table",{ref:"hiddenParamsTable",staticStyle:{width:"100%"},attrs:{data:e.hiddenParamsList,border:"",height:"400"},on:{"selection-change":e.handleHiddenParamsSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),r("el-table-column",{attrs:{prop:"subsystemName",label:"子系统","min-width":"150"}}),r("el-table-column",{attrs:{prop:"parameterName",label:"参数名称","min-width":"200","show-overflow-tooltip":""}})],1)]],2),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleHiddenParamsDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:0===e.selectedParamsToRestore.length},on:{click:e.handleConfirmRestoreParams}},[e._v(" 确定恢复("+e._s(e.selectedParamsToRestore.length)+") ")])],1)]),r("el-dialog",{attrs:{title:"新增常用",visible:e.addFavoriteDialogVisible,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.addFavoriteDialogVisible=t},close:e.handleAddFavoriteDialogClose}},[r("el-form",{ref:"addFavoriteForm",attrs:{model:e.addFavoriteFormData,rules:e.addFavoriteFormRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"常用名称",prop:"commonName"}},[r("el-input",{attrs:{placeholder:"请输入常用名称",maxlength:"50","show-word-limit":""},model:{value:e.addFavoriteFormData.commonName,callback:function(t){e.$set(e.addFavoriteFormData,"commonName",t)},expression:"addFavoriteFormData.commonName"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddFavoriteDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.savingFavorite},on:{click:e.handleConfirmAddFavorite}},[e._v(" 确定 ")])],1)],1)],1)},a4=[];r("e781");function n4(e){return s4(e)||o4(e)||h4(e)||i4()}function i4(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o4(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s4(e){if(Array.isArray(e))return f4(e)}function l4(e,t){return d4(e)||u4(e,t)||h4(e,t)||c4()}function c4(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u4(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(u){c=!0,n=u}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function d4(e){if(Array.isArray(e))return e}function p4(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h4(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function h4(e,t){if(e){if("string"===typeof e)return f4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f4(e,t):void 0}}function f4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&r>0&&r0&&r===t.length},set:function(e){e?this.handleTreeSelectAll():this.handleTreeDeselectAll()}}},watch:{treeFilterText:function(e){this.$refs.paramTree&&this.$refs.paramTree.filter(e)},treeSearchMode:function(){this.$refs.paramTree&&this.treeFilterText&&this.$refs.paramTree.filter(this.treeFilterText)},userPermissions:{handler:function(){var e=this;this.$nextTick((function(){e.$forceUpdate()}))},deep:!0}},mounted:function(){this.loadUserSelfRole(),console.log("加载树数据"),this.loadTreeData()},methods:{loadUserSelfRole:function(){var e=this;try{var t=localStorage.getItem("user_self_role");t&&(this.userPermissions=JSON.parse(t))}catch(a){console.error("从 localStorage 加载用户权限数据失败:",a)}var r=v4(v4({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){if(t&&t.data){e.userPermissions=t.data;try{localStorage.setItem("user_self_role",JSON.stringify(t.data))}catch(a){console.error("存储权限数据到 localStorage 失败:",a)}e.$nextTick((function(){e.$forceUpdate()}))}})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},isAdmin:function(){return!(!this.userPermissions||!Array.isArray(this.userPermissions))&&this.userPermissions.some((function(e){return 1===e.isAdmin||"1"===e.isAdmin}))},isUserPermissionsEmpty:function(){return!this.userPermissions||!Array.isArray(this.userPermissions)||0===this.userPermissions.length},hasParamPermission:function(e,t){if(this.isAdmin())return!0;if(!this.userPermissions||!Array.isArray(this.userPermissions)||0===this.userPermissions.length)return!1;var r="".concat(e.id,"_").concat(e.parameterVersion||1),a=this.allModelRawData[r],n=a&&a.ycOrOth||"",i="玉柴"===n||"YC"===n||"yc"===n,o=i?"玉柴发动机数据":"竞品发动机数据",s=t.subsystemName||"",l=t.partsName||"";"/"===l&&(l="");var c=this.userPermissions.filter((function(e){var t=e.permissionPath||"";return t.includes(o)}));if(0===c.length)return!1;var u=c.filter((function(e){var t=e.permissionPath||"";if(t.startsWith(o+"/")){var r=t.split("/");return r.length>=3}return!1}));if(0===u.length){var d=c.some((function(e){var t=e.permissionPath||"",r=t.split("/");return t===o||t.startsWith(o+"/")&&2===r.length}));return!!d}var p=u.some((function(e){var t=e.permissionPath||"";if(t.startsWith(o+"/")){var r=t.split("/");if(r.length>=3){var a=r[1]||"",n=r[2]||"";return""===l&&""===n?a===s:a===s&&n===l}}return!1}));return!!p},filterTreeNode:function(e,t){if(!e)return!0;var r=e.toLowerCase(),a=this.nodeMap[t.id];if(!a)return(t.label||"").toLowerCase().includes(r);var n=(t.label||"").toLowerCase(),i=null===a.parentLabel,o=null!==a.parentLabel;if("subsystem"===this.treeSearchMode){if(i)return n.includes(r);if(o){var s=(a.parentLabel||"").toLowerCase();return s.includes(r)}return!1}return o?n.includes(r):!!(i&&t.children&&Array.isArray(t.children))&&t.children.some((function(e){var t=(e.label||"").toLowerCase();return t.includes(r)}))},handleTreeCheck:function(e,t){this.checkedKeys=t.checkedKeys,this.reloadModelDetailsForCheckedNodes()},getTreeSelectAllStats:function(){var e=this.allTreeData&&this.allTreeData.length>0?this.allTreeData:this.treeData;if(!e||!e.length)return{allKeys:[],selectedCount:0};var t=this.getAllNodeKeys(e),r=new Set(this.checkedKeys),a=t.filter((function(e){return r.has(e)})).length;return{allKeys:t,selectedCount:a}},handleTreeSelectAll:function(){var e=this,t=this.allTreeData&&this.allTreeData.length>0?this.allTreeData:this.treeData;if(t&&t.length){var r=this.getAllNodeKeys(t);this.checkedKeys=r,this.$nextTick((function(){e.$refs.paramTree&&r.length>0&&e.$refs.paramTree.setCheckedKeys(r),e.reloadModelDetailsForCheckedNodes()}))}else this.$message({type:"warning",message:"暂无参数树数据"})},handleTreeDeselectAll:function(){var e=this;this.checkedKeys=[],this.$nextTick((function(){e.$refs.paramTree&&e.$refs.paramTree.setCheckedKeys([]),e.reloadModelDetailsForCheckedNodes()}))},getParamValue:function(e,t){if(!e||!e.id||!t)return"-";var r=e.parameterVersion||1,a="".concat(e.id,"_").concat(r);if(!this.hasParamPermission(e,t))return"-";if(this.isWholeEngineSubsystemName(t.subsystemName)){var n={"产品型号":"modelName","状态代号":"productNumber","板块":"plate","平台":"platform","系列":"series","细节市场":"marketSegment","项目名称":"projectName","项目编号":"projectNumber","标准参数":"parameterNum"},i=n[t.parameterName];if(i){var o=this.allModelRawData[a];return o&&void 0!==o[i]&&null!==o[i]&&""!==o[i]?o[i]:"-"}}var s=this.allModelDetailData[a];if(!s||"object"!==m4(s))return"-";var l=s[t.subsystemName];if(!Array.isArray(l))return"-";var c=null;return t.parameterId&&(c=l.find((function(e){return e.subsystemName===t.subsystemName&&e.parameterId===t.parameterId}))),c||(c=l.find((function(e){return e.subsystemName===t.subsystemName&&e.parameterName===t.parameterName}))),c&&void 0!==c.parameterValue&&null!==c.parameterValue&&""!==c.parameterValue?c.parameterValue:"-"},getParamDisplayName:function(e){return e&&e.parameterName||""},handleAddModel:function(){this.addModelDialogVisible=!0,0===this.modelList.length&&this.loadModelListForDialog()},loadModelListForDialog:function(){var e=this,t=v4(v4({},et.GET_MODEL_QUERT_TABLE_BY_VERSION),{},{params:{page:1,size:999,userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){t&&t.data&&t.data.list?e.modelList=t.data.list:e.modelList=[]})).asyncErrorCatch((function(t){console.error("获取机型列表失败:",t),e.$message.error("获取机型列表失败"),e.modelList=[]}))},handleModelSelectionChange:function(e){this.selectedModels=e},handleAddModelDialogClose:function(){this.addModelDialogVisible=!1,this.selectedModels=[],this.modelSearchText="",this.$refs.modelTable&&this.$refs.modelTable.clearSelection()},handleConfirmAddModel:function(){var e=this;if(0!==this.selectedModels.length){this.loadingModelDetail=!0;var t=1500,r=new Promise((function(e){setTimeout(e,t)})),a=this.getSelectedSubsystemsAndTypes(),n=a.subsystemTypes,i=this.selectedModels.map((function(t){var r=t.id||t.rowId||t.engineModelID,a=t.parameterVersion||1,i="".concat(r,"_").concat(a);return e.$set(e.allModelRawData,i,{modelName:t.modelName||t.productFullName||"",productNumber:t.productNumber||"",plate:t.plate||"",platform:t.platform||"",ycOrOth:t.ycOrOth||"",series:t.series||"",marketSegment:t.marketSegment||"",projectName:t.projectName||"",projectNumber:t.projectNumber||"",parameterNum:t.parameterNum||""}),e.loadModelDetail(r,t,a,n)}));Promise.all([Promise.all(i),r]).then((function(){e.handleAddModelDialogClose()})).catch((function(t){console.error("加载机型详情失败:",t),e.$message.error("加载机型详情失败")})).finally((function(){e.loadingModelDetail=!1}))}else this.$message({type:"warning",message:"请至少选择一个机型"})},loadModelDetail:function(e,t,r,a){var n=this;return new Promise((function(i,o){var s=v4(v4({},et.GET_MODEL_QUERT_DETAIL),{},{params:{engineModelID:e,parameterVersion:r,userID:de(),subsystemParts:a},disableSuccessMsg:!0});n.$request(s).asyncThen((function(a){if(a&&a.data){var o={};Object.keys(a.data).forEach((function(e){var t=a.data[e];Array.isArray(t)&&(o[e]=t.map((function(t){return v4(v4({},t),{},{subsystemName:t.subsystemName||e})})))}));var s="".concat(e,"_").concat(r),l=n.allModelDetailData[s]||{},c=v4(v4({},l),o);n.$set(n.allModelDetailData,s,c),n.currentCommonConfig;var u=n.comparisonModels.find((function(t){var a=t.parameterVersion||1;return t.id===e&&a===r}));if(!u){var d={id:e,name:t.modelName||t.productFullName||"未知机型",image:t.image||t.imageUrl||"",parameterVersion:r};n.comparisonModels.push(d)}i()}else{var p="".concat(e,"_").concat(r),h=n.allModelDetailData[p]||{};n.$set(n.allModelDetailData,p,h);var f=n.comparisonModels.find((function(t){var a=t.parameterVersion||1;return t.id===e&&a===r}));if(!f){var m={id:e,name:t.modelName||t.productFullName||"未知机型",image:t.image||t.imageUrl||"",parameterVersion:r||t.parameterVersion||1};n.comparisonModels.push(m)}i()}})).asyncErrorCatch((function(a){console.error("获取机型详情失败:",a);var i="".concat(e,"_").concat(r),s=n.allModelDetailData[i]||{};n.$set(n.allModelDetailData,i,s);var l=n.comparisonModels.find((function(t){var a=t.parameterVersion||1;return t.id===e&&a===r}));if(!l){var c={id:e,name:t.modelName||t.productFullName||"未知机型",image:t.image||t.imageUrl||"",parameterVersion:r||t.parameterVersion||1};n.comparisonModels.push(c)}o(a)}))}))},reloadModelDetailsForCheckedNodes:function(){var e=this;if(this.comparisonModels&&0!==this.comparisonModels.length){var t=this.getSelectedSubsystemsAndTypes(),r=t.subsystemNames,a=t.parameterTypes,n=t.subsystemTypes;if(0!==r.length||0!==a.length){var i=this.comparisonModels.map((function(t){var r=t.id,a=t.parameterVersion||1;if(!r)return Promise.resolve();var i=e.modelList.find((function(e){return(e.id||e.rowId||e.engineModelID)===r}));i||(i={id:r,modelName:t.name,parameterVersion:a,productFullName:t.name,image:t.image,imageUrl:t.image});var o="".concat(r,"_").concat(a);return e.allModelRawData[o]?!e.allModelRawData[o].ycOrOth&&i.ycOrOth&&e.$set(e.allModelRawData[o],"ycOrOth",i.ycOrOth):e.$set(e.allModelRawData,o,{modelName:i.modelName||i.productFullName||t.name||"",productNumber:i.productNumber||"",plate:i.plate||"",platform:i.platform||"",ycOrOth:i.ycOrOth||"",series:i.series||"",marketSegment:i.marketSegment||"",projectName:i.projectName||"",projectNumber:i.projectNumber||"",parameterNum:i.parameterNum||""}),e.loadModelDetail(r,i,a,n)}));Promise.all(i).then((function(){})).catch((function(e){console.error("重新加载机型详情失败:",e)}))}}},extractParamsFromDetail:function(e){var t=this,r={};return e&&"object"===m4(e)?(Object.keys(e).forEach((function(a){var n=e[a];Array.isArray(n)&&n.forEach((function(e){var a=e.parameterName||"",n=Object.keys(t.paramMap).find((function(e){return t.paramMap[e].label===a}));n&&void 0!==e.parameterValue&&null!==e.parameterValue&&(r[n]=e.parameterValue)}))})),r):r},extractParamsFromList:function(e){var t=this,r={};return Array.isArray(e)&&0!==e.length?(e.forEach((function(e){var a=e.parameterName||"",n=Object.keys(t.paramMap).find((function(e){return t.paramMap[e].label===a}));n&&void 0!==e.minorVersion&&null!==e.minorVersion&&(r[n]=e.minorVersion)})),r):r},getSelectedSubsystemsAndTypes:function(){var e=this,t=[],r=[],a=[],n=new Set,i=new Set,o=new Set;return this.checkedKeys.forEach((function(s){var l=e.nodeMap[s];if(l)if(l.isParent)n.has(l.label)||(t.push(l.label),n.add(l.label));else if(l.parentLabel&&!n.has(l.parentLabel)&&(t.push(l.parentLabel),n.add(l.parentLabel)),l.parentLabel&&o.add(l.parentLabel),l.label&&r.push(l.label),l.parentLabel&&l.label){var c="/"===l.label?"/":l.label,u="".concat(l.parentLabel,"-").concat(c);i.has(u)||(a.push(u),i.add(u))}})),t.forEach((function(e){if(!o.has(e)){var t="".concat(e,"-/");i.has(t)||(a.push(t),i.add(t))}})),{subsystemNames:t,parameterTypes:r,subsystemTypes:a}},handleRemoveModel:function(e){var t=this.comparisonModels[e];if(t&&t.id){var r=t.parameterVersion||1,a="".concat(t.id,"_").concat(r);this.$delete(this.allModelDetailData,a),this.$delete(this.allModelRawData,a)}this.comparisonModels.splice(e,1)},loadFavoritesList:function(){var e=this,t=v4(v4({},et.GET_USER_COMMONLY_USED),{},{params:{userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r=[];Array.isArray(t.data)?r=t.data:t.data.list&&Array.isArray(t.data.list)?r=t.data.list:t.data.data&&Array.isArray(t.data.data)&&(r=t.data.data),e.favoritesOptions=r.map((function(e){return{label:e.commonName||e.name||"",value:e.commonId||e.commonName||e.name||"",data:e}}))}})).asyncErrorCatch((function(t){console.error("获取常用列表失败:",t),e.$message.error("获取常用列表失败")}))},handleFavoriteChange:function(e){var t=this;if(!e){this.currentCommonConfig=null,this.treeData=JSON.parse(JSON.stringify(this.allTreeData)),this.nodeMap=JSON.parse(JSON.stringify(this.allNodeMap)),this.hiddenParams=[];var r=this.getAllNodeKeys(this.treeData);return this.defaultExpandedKeys=r,this.checkedKeys=r,void this.$nextTick((function(){t.$refs.paramTree&&r.length>0&&t.$refs.paramTree.setCheckedKeys(r)}))}var a=this.favoritesOptions.find((function(t){return t.value===e||t.data&&(t.data.commonId===e||t.data.commonName===e)}));a&&a.data?(this.currentCommonConfig=a.data,this.allTreeData&&this.allTreeData.length>0&&Object.keys(this.allNodeMap).length>0?this.updateCheckedKeysByDisplayParams():console.log("树数据还未加载完成,等待加载完成后再更新选中状态"),this.$nextTick((function(){t.hideParamsNotInCommonByDisplayParams()}))):this.$message({type:"warning",message:"未找到选中的常用配置"})},handleDownloadComparisonData:function(){var e=this,t=this.comparisonModels.filter((function(e){return e.id})).map((function(e){return{modelId:e.id,parameterVersion:e.parameterVersion||""}}));if(0!==t.length){var r=this.getSelectedSubsystemsAndTypes(),a=r.subsystemTypes,n=a.filter((function(t){return!e.isWholeEngineSubsystemPrefix(t)})),i=this.collectCurrentDisplayParams(),o=[];i&&i.subsystems&&i.subsystems.length>0&&i.subsystems.forEach((function(t){var r=e.isWholeEngineSubsystemName(t.subsystem)?1:0;t.parameters.forEach((function(e){o.push({parameterId:e.parameterId,isGlobal:r})}))}));var s=o.filter((function(e){return 1!==e.isGlobal&&e.parameterId})).map((function(e){return e.parameterId})),l=et.DOWNLOAD_MODEL_QUERY_DATA||{},c=l.url,u=l.method,d=void 0===u?"post":u,p=l.headers,h=void 0===p?{}:p,f={url:c,method:d,data:{userID:de(),modelIds:t,parameterIds:s,subsystemParts:n},responseType:"blob",headers:h,disableSuccessMsg:!0};this.$axios(f).then((function(e){var t=e.data;if(t){var r=e.headers&&(e.headers["content-type"]||e.headers["Content-Type"]);if(r&&r.includes("application/json"))try{var a=new FileReader;a.onload=function(){console.log("下载失败: ".concat(a.result))},a.readAsText(t)}catch(u){console.error("解析下载失败响应异常:",u)}else{var n=e.headers&&(e.headers["content-disposition"]||e.headers["Content-Disposition"]),i="对比数据.xlsx";if(n){var o=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(n),s=o?o[1]||o[2]:"";if(s)try{i=decodeURIComponent(s)}catch(u){i=s}}var l=window.URL.createObjectURL(t),c=document.createElement("a");c.href=l,c.download=i,document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l),console.log("下载开始,请查看浏览器下载列表")}}else console.log("下载失败,文件内容为空")})).catch((function(e){console.error("下载失败:",e),console.log("下载失败,请稍后重试")}))}else this.$message({type:"warning",message:"请先添加机型"})},updateCheckedKeysByDisplayParams:function(){var e=this;if(console.log("根据可显示的参数更新树节点选中状态(不改变树数据)"),this.treeData=JSON.parse(JSON.stringify(this.allTreeData)),this.nodeMap=JSON.parse(JSON.stringify(this.allNodeMap)),!this.currentCommonConfig||!this.currentCommonConfig.subsystems){var t=this.getAllNodeKeys(this.treeData);return this.checkedKeys=t,this.defaultExpandedKeys=t,void this.$nextTick((function(){e.$refs.paramTree&&t.length>0&&e.$refs.paramTree.setCheckedKeys(t)}))}var r=new Map;this.currentCommonConfig.subsystems.forEach((function(t){var a=t.subsystem;r.has(a)||r.set(a,new Set),t.parameters.forEach((function(t){var n=1===t.isGlobal||"1"===t.isGlobal,i=a;if(n&&(i=x4,r.has(i)||r.set(i,new Set)),t.partsName){var o=t.partsName,s=o;r.get(i).add(s)}else{var l=e.allParametersData[i];if(Array.isArray(l)){var c=l.find((function(e){return t.parameterId?e.parameterId===t.parameterId:!!t.parameterName&&e.parameterName===t.parameterName}));if(c&&c.partsName){var u=c.partsName,d=u;r.get(i).add(d)}else r.get(i).add("/")}else r.get(i).add("/")}}))}));var a=[];this.allTreeData.forEach((function(e){var t,n=null,i=p4(r);try{for(i.s();!(t=i.n()).done;){var o=l4(t.value,1),s=o[0];if(e.label===s||e.label.includes(s)||s.includes(e.label)){n=s;break}}}catch(c){i.e(c)}finally{i.f()}if(n){var l=r.get(n);l.has("/")&&(a.push(e.id),l.delete("/")),e.children&&Array.isArray(e.children)&&l.size>0&&e.children.forEach((function(e){var t,r=p4(l);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(e.label===n||e.label.includes(n)||n.includes(e.label)){a.push(e.id);break}}}catch(c){r.e(c)}finally{r.f()}}))}})),this.checkedKeys=a;var n=[];this.allTreeData.forEach((function(e){var t,a=p4(r);try{for(a.s();!(t=a.n()).done;){var i=l4(t.value,1),o=i[0];if(e.label===o||e.label.includes(o)||o.includes(e.label)){n.push(e.id);break}}}catch(s){a.e(s)}finally{a.f()}})),n.push.apply(n,a),this.defaultExpandedKeys=n,this.$nextTick((function(){e.$refs.paramTree&&(a.length>0?(e.$refs.paramTree.setCheckedKeys(a),e.$refs.paramTree.setExpandedKeys(n)):e.$refs.paramTree.setCheckedKeys([]))})),this.reloadModelDetailsForCheckedNodes()},rebuildNodeMap:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.forEach((function(e,a){var n=!r,i=e.label;t.nodeMap[e.id]={label:i,parentLabel:r,isParent:n},e.children&&e.children.length>0&&t.rebuildNodeMap(e.children,i)}))},hideParamsNotInCommonByDisplayParams:function(){var e=this;if(this.currentCommonConfig&&this.currentCommonConfig.subsystems){var t=this.getSelectedSubsystemsAndTypes(),r=t.subsystemNames,a=t.parameterTypes,n=t.subsystemTypes;if(0!==r.length||0!==a.length){var i=new Map;this.currentCommonConfig.subsystems.forEach((function(e){var t=e.subsystem;e.parameters.forEach((function(e){var r=1===e.isGlobal||"1"===e.isGlobal,a=r?x4:t,n=e.parameterId||e.parameterName;n&&(i.has(a)||i.set(a,new Set),i.get(a).add(n))}))}));var o=[];r.forEach((function(t){var r=e.allParametersData[t];Array.isArray(r)&&0!==r.length&&r.forEach((function(r){var i=r.parameterName||"",s=r.parameterId||"",l=r.partsName||"",c=!1,u=e.checkedKeys.some((function(r){var a=e.nodeMap[r];return a&&a.isParent&&a.label===t&&!e.checkedKeys.some((function(r){var a=e.nodeMap[r];return a&&!a.isParent&&a.parentLabel===t}))}));if(u){var d=e.treeData.some((function(e){return!(e.label!==t||!e.children)&&e.children.some((function(e){return e.label===l}))}));if(d){var p=e.checkedKeys.some((function(r){var a=e.nodeMap[r];return a&&!a.isParent&&a.parentLabel===t&&a.label===l}));c=p}else c=!0}else 0===a.length?c=!1:(a.includes(l)&&(c=!0),c||(c=n.includes("".concat(t,"-").concat(l))));c&&o.push({subsystemName:t,parameterName:i,parameterId:s,partsName:l})}))}));var s=[];o.forEach((function(e){var t=e.subsystemName,r=e.parameterName,a=e.parameterId,n=i.has(t),o=i.get(t)||new Set,l=a||r,c=n&&o.has(l);if(!c){var u="".concat(t,"-").concat(r);s.includes(u)||s.push(u)}})),this.hiddenParams=s}}},hideParamsNotInCommon:function(){var e=this;if(this.currentCommonConfig&&this.currentCommonConfig.subsystems){var t=new Map;this.currentCommonConfig.subsystems.forEach((function(e){var r=e.subsystem,a=new Set(e.parameters.map((function(e){return e.parameterId}))),n=new Set(e.parameters.map((function(e){return e.parameterName})));t.set(r,{parameterIds:a,parameterNames:n})}));var r=[];Object.keys(this.allParametersData).forEach((function(a){if(t.has(a)){var n=t.get(a),i=e.allParametersData[a];Array.isArray(i)&&i.forEach((function(e){var t=e.parameterName||"",i=e.parameterId||"",o=i?n.parameterIds.has(i):n.parameterNames.has(t);if(!o){var s="".concat(a,"-").concat(t);r.includes(s)||r.push(s)}}))}else{var o=e.allParametersData[a];Array.isArray(o)&&o.forEach((function(e){var t=e.parameterName||"",n="".concat(a,"-").concat(t);r.includes(n)||r.push(n)}))}})),r.forEach((function(t){e.hiddenParams.includes(t)||e.hiddenParams.push(t)}))}},handleUpdateFavorite:function(){var e=this;if(this.currentCommonConfig)if(0!==this.displayParams.length){var t=this.collectCurrentDisplayParams();if(t&&t.subsystems&&0!==t.subsystems.length){var r=[];t.subsystems.forEach((function(t){var a=e.isWholeEngineSubsystemName(t.subsystem)?1:0;t.parameters.forEach((function(e){r.push({parameterId:e.parameterId,isGlobal:a})}))}));var a={userId:de(),commonName:this.currentCommonConfig.commonName||this.currentCommonConfig.name,parameters:r};this.currentCommonConfig.commonId?a.commonId=this.currentCommonConfig.commonId:this.currentCommonConfig.id&&(a.id=this.currentCommonConfig.id),this.savingFavorite=!0;var n=v4(v4({},et.UPDATE_USER_COMMONLY_USED),{},{params:a});this.$request(n).asyncThen((function(t){e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("更新常用失败:",t),e.$message.error(t.message||"更新常用失败")})).finally((function(){e.savingFavorite=!1}))}else this.$message({type:"warning",message:"当前没有可保存的参数"})}else this.$message({type:"warning",message:"当前没有可保存的参数,请先选择参数"});else this.$message({type:"warning",message:"请先选择一个常用配置"})},handleAddFavorite:function(){0!==this.displayParams.length?this.addFavoriteDialogVisible=!0:this.$message({type:"warning",message:"当前没有可保存的参数,请先选择参数"})},handleAddFavoriteDialogClose:function(){this.addFavoriteDialogVisible=!1,this.addFavoriteFormData.commonName="",this.$refs.addFavoriteForm&&this.$refs.addFavoriteForm.clearValidate()},handleConfirmAddFavorite:function(){var e=this;this.$refs.addFavoriteForm.validate((function(t){if(!t)return!1;if(0!==e.displayParams.length){var r=e.collectCurrentDisplayParams();if(r&&r.subsystems&&0!==r.subsystems.length){var a=[];r.subsystems.forEach((function(t){var r=e.isWholeEngineSubsystemName(t.subsystem)?1:0;t.parameters.forEach((function(e){a.push({parameterId:e.parameterId,isGlobal:r})}))}));var n={userId:de(),commonName:e.addFavoriteFormData.commonName,parameters:a};e.savingFavorite=!0;var i=v4(v4({},et.ADD_USER_COMMONLY_USED),{},{params:n});e.$request(i).asyncThen((function(t){e.handleAddFavoriteDialogClose(),e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("新增常用失败:",t),e.$message.error(t.message||"新增常用失败")})).finally((function(){e.savingFavorite=!1}))}else e.$message({type:"warning",message:"当前没有可保存的参数"})}else e.$message({type:"warning",message:"当前没有可保存的参数"})}))},collectCurrentDisplayParams:function(){var e=this,t=new Map;this.displayParams.forEach((function(r){var a=r.subsystemName;t.has(a)||t.set(a,{subsystem:a,parameters:[]});var n=r.parameterId||null;if(!n&&e.allParametersData[a]){var i=e.allParametersData[a];if(Array.isArray(i)){var o=i.find((function(e){return e.parameterName===r.parameterName}));o&&o.parameterId&&(n=o.parameterId)}}if(n){var s=t.get(a),l=s.parameters.some((function(e){return e.parameterId===n}));l||s.parameters.push({parameterId:n,parameterName:r.parameterName})}else{var c=t.get(a),u=c.parameters.some((function(e){return e.parameterName===r.parameterName}));u||c.parameters.push({parameterId:"",parameterName:r.parameterName})}}));var r=Array.from(t.values());return{subsystems:r}},handleHideParam:function(e){var t="".concat(e.subsystemName,"-").concat(e.parameterName);this.hiddenParams.includes(t)||this.hiddenParams.push(t)},handleShowHiddenParams:function(){var e=this;this.selectedParamsToRestore=[],this.hiddenParamsDialogVisible=!0,this.$nextTick((function(){e.$refs.hiddenParamsTable&&e.$refs.hiddenParamsTable.clearSelection()}))},handleHiddenParamsDialogClose:function(){this.hiddenParamsDialogVisible=!1,this.selectedParamsToRestore=[],this.$refs.hiddenParamsTable&&this.$refs.hiddenParamsTable.clearSelection()},handleHiddenParamsSelectionChange:function(e){this.selectedParamsToRestore=e.map((function(e){return e.key||"".concat(e.subsystemName,"-").concat(e.parameterName)}))},handleRestoreAll:function(){var e=this;0!==this.hiddenParamsList.length?this.$nextTick((function(){e.$refs.hiddenParamsTable&&e.$refs.hiddenParamsTable.toggleAllSelection()})):this.$message({type:"warning",message:"没有可恢复的参数"})},handleRestoreSelected:function(){0!==this.selectedParamsToRestore.length?this.executeRestoreParams(this.selectedParamsToRestore):this.$message({type:"warning",message:"请至少选择一个要恢复的参数"})},handleConfirmRestoreParams:function(){0!==this.selectedParamsToRestore.length?this.executeRestoreParams(this.selectedParamsToRestore):this.$message({type:"warning",message:"请至少选择一个要恢复的参数"})},executeRestoreParams:function(e){var t=this;e&&0!==e.length&&(e.forEach((function(e){var r=t.hiddenParams.indexOf(e);r>-1&&t.hiddenParams.splice(r,1)})),this.selectedParamsToRestore=[],this.$refs.hiddenParamsTable&&this.$refs.hiddenParamsTable.clearSelection(),this.hiddenParamsDialogVisible=!1)},loadTreeData:function(){var e=this;console.log("加载树数据,调用接口获取树数据"),this.loadAllParametersData().then((function(){var t=v4(v4({},et.GET_ENGINE_DETAIL_QUERY),{},{params:{tcData:"tc",userId:de()},disableSuccessMsg:!0});e.$request(t).asyncThen((function(t){var r=[];if(t&&t.data){var a=t.data;"object"!==m4(a)||Array.isArray(a)?Array.isArray(a)&&(r=e.formatTreeData(a)):r=e.convertObjectToTree(a)}var n=e.buildWholeEngineParamsNode();if(console.log('根据接口返回的"整车参数"参数数据构建树结构',n),r=[n].concat(n4(r)),console.log('将"整车参数"节点放在第一位,其他节点放在后面',r),e.allTreeData=JSON.parse(JSON.stringify(r)),e.allNodeMap=JSON.parse(JSON.stringify(e.nodeMap)),console.log("保存完整的树数据(未过滤)",e.allTreeData),e.treeData=JSON.parse(JSON.stringify(e.allTreeData)),console.log("始终使用完整的树数据",e.treeData),e.currentCommonConfig)e.$nextTick((function(){e.updateCheckedKeysByDisplayParams(),e.$nextTick((function(){console.log("比较当前显示的参数和常用配置中的参数,找出不在常用中的参数,隐藏它们"),e.hideParamsNotInCommonByDisplayParams()}))}));else{console.log("否则全选");var i=e.getAllNodeKeys(e.treeData);e.defaultExpandedKeys=i,e.checkedKeys=i,e.$nextTick((function(){e.$refs.paramTree&&i.length>0&&e.$refs.paramTree.setCheckedKeys(i)}))}})).asyncErrorCatch((function(t){console.error("获取参数列表失败:",t),e.$message.error("获取参数列表失败")}))}))},loadAllParametersData:function(){var e=this,t=v4(v4({},et.GET_ALL_DATA_SYSTEAM_LIST),{},{disableSuccessMsg:!0});return this.$request(t).asyncThen((function(t){var r={};t&&t.data&&Array.isArray(t.data)&&t.data.forEach((function(e){e.subsystem&&Array.isArray(e.parameters)&&(r[e.subsystem]=e.parameters.map((function(t){return{parameterId:t.parameterId||"",parameterName:t.parameterName||"",partsName:t.partsName||"",subsystem:e.subsystem,unit:t.unit||""}})))})),e.allParametersData=r,e.savedAllParametersData=JSON.parse(JSON.stringify(r)),e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("获取所有参数数据失败:",t),e.allParametersData={},e.savedAllParametersData=JSON.parse(JSON.stringify(e.allParametersData)),e.loadFavoritesList()}))},convertObjectToTree:function(e){var t=this,r=[];return this.nodeMap={},Object.keys(e).forEach((function(a,n){var i="parent-".concat(n),o=[],s=new Set;t.nodeMap[i]={label:a,parentLabel:null,isParent:!0},Array.isArray(e[a])&&e[a].forEach((function(e,r){if(!s.has(e)){s.add(e);var n="".concat(i,"-").concat(r);o.push({id:n,label:e,tip:""}),t.nodeMap[n]={label:e,parentLabel:a,isParent:!1}}})),r.push({id:i,label:a,tip:"",children:o})})),r},formatTreeData:function(e){var t=this;return e.map((function(e,r){var a={id:e.id||e.key||"node-".concat(r),label:e.label||e.name||e.title||"",tip:e.tip||""};if(e.children&&e.children.length>0){var n=new Set,i=[];e.children.forEach((function(e){var t=e.label||e.name||e.title||"";n.has(t)||(n.add(t),i.push(e))})),a.children=t.formatTreeData(i)}return a}))},getAllNodeKeys:function(e){var t=this,r=[];return e.forEach((function(e){r.push(e.id),e.children&&e.children.length>0&&(r=r.concat(t.getAllNodeKeys(e.children)))})),r},isWholeEngineSubsystemName:function(e){return w4.includes(e)},isWholeEngineSubsystemPrefix:function(e){return!(!e||"string"!==typeof e)&&w4.some((function(t){return e.startsWith("".concat(t,"-"))}))},getWholeEngineParametersList:function(){for(var e=0;e0?r("div",{staticClass:"handler-display"},e._l(t.handlers,(function(a,n){return r("span",{key:n,staticClass:"handler-tag"},[e._v(" "+e._s(e.getHandlerName(a,t.options))+" ")])})),0):r("span",{staticClass:"handler-empty"},[e._v("--")])]],2)])})),0)])])])]):e._e(),e.reportDetail.status&&"DRAFT"!==e.reportDetail.status&&e.detail.flowId&&!e.isEditMode?r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title"},[e._v(" 审批流程 ")]),e.timelineNodes&&e.timelineNodes.length>0?r("div",{staticClass:"approval-timeline"},[r("el-timeline",e._l(e.timelineNodes,(function(t,a){return r("el-timeline-item",{key:a,attrs:{color:e.getTimelineColor(t.result||t.status,a,e.timelineNodes.length)}},[r("div",{staticClass:"timeline-item-content"},[r("div",{staticClass:"node-title"},[e._v(" "+e._s(t.title)+" ")]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"node-info"},[r("div",{staticClass:"node-user"},[e._v(" "+e._s(t.userName||"--")+" "),r("span",{staticClass:"node-time"},[e._v(" "+e._s(e.formatTime(t.operateTime))+" ")])])]),r("div",{staticClass:"node-status",class:e.getStatusClass(t.result||t.status)},[e._v(" "+e._s(e.setStatusText(t.result||t.status))+" ")]),t.opinion?r("div",{staticClass:"node-opinion"},[e._v(" 审批意见:"+e._s(t.opinion)+" ")]):e._e()])])])})),1)],1):r("div",{staticClass:"empty-progress"},[r("span",{staticClass:"empty-text"},[e._v("暂无审批流程数据")])])]):e._e()])]),r("el-dialog",{attrs:{title:"提交",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,rules:e.approvalFormRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"提交意见:"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入提交意见(可选)"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择退回节点",visible:e.returnNodeDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.returnNodeDialogVisible=t},close:e.handleReturnNodeDialogClose}},[r("div",{staticClass:"return-node-dialog-content"},[r("el-radio-group",{on:{change:e.handleReturnNodeChange},model:{value:e.selectedReturnNode,callback:function(t){e.selectedReturnNode=t},expression:"selectedReturnNode"}},e._l(e.returnableNodes,(function(e){return r("el-radio",{key:e,attrs:{label:e}})})),1),"编制"===e.selectedReturnNode?r("div",{staticClass:"return-opinion-section"},[r("div",{staticClass:"opinion-label"},[e._v(" 退回意见: ")]),r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入退回意见"},model:{value:e.returnOpinion,callback:function(t){e.returnOpinion=t},expression:"returnOpinion"}})],1):e._e()],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleReturnNodeDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.returnSubmitting,disabled:!e.selectedReturnNode},on:{click:e.handleReturnSubmit}},[e._v(" 确定 ")])],1)])],1):e._e()])},M4=[],P4=["processTitle"];function k4(e){return k4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k4(e)}function N4(e,t){if(null==e)return{};var r,a,n=E4(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E4(e,t){if(null==e)return{};var r,a,n={},i=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}function L4(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L4=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new C(n||[]);return a(o,"_invoke",{value:x(e,r,s)}),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==k4(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function R4(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function F4(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){R4(i,a,n,o,s,"next",e)}function s(e){R4(i,a,n,o,s,"throw",e)}o(void 0)}))}}function j4(e){return z4(e)||B4(e)||$4(e)||V4()}function V4(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $4(e,t){if(e){if("string"===typeof e)return G4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G4(e,t):void 0}}function B4(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function z4(e){if(Array.isArray(e))return G4(e)}function G4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0){var t=this.flowNodes.findIndex((function(e){return"REJECT"===e.result})),r=this.flowNodes;if(-1!==t);else{var a=r.findIndex((function(e){return"待审批"===e.result}));-1!==a&&(r=r.map((function(e,t){return t===a?W4(W4({},e),{},{result:"APPROVING"}):e})))}r.forEach((function(t){var r="APPROVING",a="APPROVING";t.result&&("REJECT"===t.result?(r="REJECT",a="REJECT"):"MSG"===t.result?(r="MSG",a="MSG"):"RETURN"===t.result?(r="PASS",a="PASS"):"APPROVING"===t.result?(r="APPROVING",a="APPROVING"):"PASS"===t.result?(r="PASS",a="PASS"):"待审批"===t.result&&(r="待审批",a="STAY"));var n=t.opinions&&Array.isArray(t.opinions)&&t.opinions.length>0?t.opinions[0]:null,i=t.todoUserName||t.undoUserName||"--";e.push({title:t.node||"审批节点",userName:i,operateTime:t.approvalTime||"",result:r,status:a,opinion:n})}))}return e},currentNode:function(){if("DRAFT"===this.reportDetail.status)return"草稿";if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.node||"--";var t=this.flowNodes[this.flowNodes.length-1];return t&&t.node||"--"}return"--"},currentProcessor:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.undoUserName||e.todoUserName||"--"}return"--"}},watch:{detail:{handler:function(e){e&&e.reportId&&(this.loadReportDetailFromApi(e.reportId,e.flowId),e.flowId&&this.getApprovalSpet(e.flowId))},immediate:!0,deep:!0}},mounted:function(){this.loadUserSelfRole()},methods:{loadUserSelfRole:function(){var e=W4(W4({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){if(e&&e.data)try{localStorage.setItem("user_self_role",JSON.stringify(e.data))}catch(t){console.error("存储权限数据到 localStorage 失败:",t)}})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},isAdmin:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){return 1===e.isAdmin||"1"===e.isAdmin}))}catch(r){return console.error("检查管理员权限失败:",r),!1}},hasGlobalEditPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return"对标报告"===t&&"编辑"===r}))}catch(r){return console.error("检查全局编辑权限失败:",r),!1}},hasOperationPermission:function(){return!!this.isAdmin()||!!this.hasGlobalEditPermission()},setStatusText:function(e){var t={PASS:"通过",REJECT:"驳回",REFUSE:"驳回",APPROVE:"批准",APPROVING:"审批中",PENDING:"待处理",WAITING:"待处理",INITIATE:"发起审批",MSG:"通过"};return t[e]||e||"待处理"},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},getTimelineColor:function(e,t,r){return"PASS"===e||"APPROVE"===e?"#67C23A":"REJECT"===e||"REFUSE"===e?"#F56C6C":"APPROVING"===e||"PENDING"===e||"WAITING"===e?"#E6A23C":"#409EFF"},getStatusClass:function(e){var t={PASS:"status-pass",APPROVE:"status-approve",REJECT:"status-reject",REFUSE:"status-reject",APPROVING:"status-approving",PENDING:"status-pending",WAITING:"status-pending",INITIATE:"status-initiate",MSG:"status-msg"};return t[e]||"status-default"},loadReportDetail:function(){this.detail&&Object.keys(this.detail).length>0&&(this.detail.reportId?this.loadReportDetailFromApi(this.detail.reportId):(this.reportDetail=this.detail,this.detail.flowId&&this.reportDetail.status&&"DRAFT"!==this.reportDetail.status&&this.getApprovalSpet(this.detail.flowId)))},loadReportDetailFromApi:function(e,t){var r=this;if(console.log(e,t,"reportId, flowId"),e){var a=W4(W4({},et.GET_REPORT_DETAIL),{},{params:{reportId:e},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){if(r.reportDetail=e.data||e,r.originalReportDetail=JSON.parse(JSON.stringify(r.reportDetail)),"DRAFT"===r.reportDetail.status){var a=t||r.detail.flowId||r.reportDetail.flowId;a&&(r.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],r.loadApprovalUsers(a))}else t&&r.reportDetail.status&&"DRAFT"!==r.reportDetail.status&&r.getApprovalSpet(t)})).asyncErrorCatch((function(e){console.error("获取报告详情失败:",e),r.$message.error("获取报告详情失败,请重试")}))}},getApprovalSpet:function(e){var t=this;if(e){var r=this.reportDetail.reportId||this.reportDetail.id||this.detail.reportId||this.detail.id;if(r){var a=W4(W4({},et.GET_REPORT_DETAIL_PROCESS),{},{params:{flowId:e},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){console.log("审批流程数据:",e);var r=e.data||e;t.progressDetail={explanation:r.explanation||"",flowStatus:r.flowStatus||"",progressTitle:r.progressTitle||"",templateVersion:r.templateVersion||"",contentName:r.contentName||""},t.reportDetail.processTitle=r.progressTitle;var a=r.flowStatus||"",n=r.createBy||"";a&&t.$set(t.reportDetail,"status",a),t.showTopDetail={processTitle:r.progressTitle,createBy:n,createTime:r.createTime||"",currentNode:"REJECTED"===a?"编制":r.currentNode||"",currentProcessor:"REJECTED"===a?n:r.processor||""},t.flowNodes=r.flowNodes||[]})).asyncErrorCatch((function(e){console.error("获取审批流程数据失败:",e),t.flowNodes=[],t.progressDetail={}}))}}},handleBack:function(){this.$emit("close")},handleDownload:function(e){var t=document.createElement("a");t.href=e.filePath,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},handleReturn:function(){var e=this;if(this.detail&&this.detail.flowId){var t=W4(W4({},et.GET_CAN_RETURN_NODE),{},{params:{flowId:this.detail.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t);var r=Array.isArray(t.data)?t.data:[];e.returnableNodes=["编制"].concat(j4(r))})).asyncErrorCatch((function(t){console.error("获取退回节点失败:",t),e.returnableNodes=["编制"]})),this.selectedReturnNode="",this.returnOpinion="拒绝",this.returnNodeDialogVisible=!0}else this.$message.error("缺少审批信息")},handleReturnNodeDialogClose:function(){this.returnNodeDialogVisible=!1,this.selectedReturnNode="",this.returnOpinion="拒绝"},handleReturnNodeChange:function(){"编制"!==this.selectedReturnNode?this.returnOpinion="":this.returnOpinion||(this.returnOpinion="拒绝")},handleReturnSubmit:function(){var e=this;if(this.selectedReturnNode)if(this.detail&&this.detail.flowId)if(this.returnSubmitting=!0,"编制"===this.selectedReturnNode){var t={flowId:this.detail.flowId,userId:de(),result:"REJECT",opinion:this.returnOpinion||""},r=W4(W4({},et.START_REPORT_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.detail.flowId&&e.getApprovalSpet(e.detail.flowId),e.$message({message:"拒绝成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("拒绝失败:",t),e.$message({message:t.message||"拒绝失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else{var a=this.reportDetail.createdById||this.detail.createdById||"";if(!a)return this.$message.error("无法获取流程发起人信息"),void(this.returnSubmitting=!1);var n=de(),i={flowId:this.detail.flowId,nodeName:this.selectedReturnNode,createUserId:a,processUserId:n},o=W4(W4({},et.RETURN_REPORT_TODO),{},{params:i,disableSuccessMsg:!0});this.$request(o).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.detail.flowId&&e.getApprovalSpet(e.detail.flowId),e.$message({message:"退回成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("退回失败:",t),e.$message({message:t.message||"退回失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择要退回的节点")},handleResend:function(){var e=this,t=this.reportDetail.reportId||this.reportDetail.id||this.detail.reportId||this.detail.id;t?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0;var r=W4(W4({},et.RESEND_REPORT_APPROVAL),{},{params:{reportId:t,userId:de()},disableSuccessMsg:!0});e.$request(r).asyncThen((function(t){e.detail.flowId&&e.getApprovalSpet(e.detail.flowId),e.$message({message:"直送成功",type:"success"}),e.$emit("refresh"),e.resending=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1})).finally((function(){e.resending=!1}))})).catch((function(){})):this.$message.error("缺少报告ID,无法执行直送操作")},handleSubmit:function(){var e=this;this.approvalFormData={result:"PASS",opinion:"同意"},this.approvalDialogVisible=!0,this.$nextTick((function(){e.$refs.approvalForm&&e.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalFormData={result:"",opinion:""},this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;this.$refs.approvalForm.validate((function(t){if(!t)return!1;if(e.detail&&e.detail.flowId){var r={flowId:e.detail.flowId,userId:de(),result:e.approvalFormData.result,opinion:e.approvalFormData.opinion||""};e.approvalSubmitting=!0;var a=W4(W4({},et.START_REPORT_APPROVAL),{},{params:r,disableSuccessMsg:!0});e.$request(a).asyncThen((function(t){e.handleApprovalDialogClose(),e.detail.flowId&&e.getApprovalSpet(e.detail.flowId),e.$message({message:"审批提交成功",type:"success"}),e.$emit("refresh"),e.approvalSubmitting=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message({message:"审批提交失败,请重试",type:"error"}),e.approvalSubmitting=!1})).finally((function(){e.approvalSubmitting=!1}))}else e.$message.error("缺少审批信息")}))},deduplicateSteps:function(e){var t=this;if(!Array.isArray(e)||0===e.length)return[];var r=new Map,a=[];return e.forEach((function(e){var t=null;if(e.id)t="id_".concat(e.id);else{var n=e.userName||e.operator||e.username||e.handlerName||e.handler||"",i=e.approvalTime||e.handleTime||e.createTime||"",o=e.result||e.status||"";t="combo_".concat(n,"_").concat(i,"_").concat(o)}if(t)if(r.has(t)){var s=r.get(t),l=a[s],c=!!(e.approvalTime||e.handleTime||e.createTime),u=!!(l.approvalTime||l.handleTime||l.createTime);c&&!u&&(a[s]=e)}else r.set(t,a.length),a.push(e)})),a.map((function(e){var r=W4({},e);return r.approvalTime&&(r.approvalTime=t.formatTime(r.approvalTime)),r.handleTime&&(r.handleTime=t.formatTime(r.handleTime)),r.createTime&&(r.createTime=t.formatTime(r.createTime)),r}))},handleLaunch:function(){var e=this,t=this.reportDetail.reportId||this.reportDetail.id||this.detail.reportId||this.detail.id,r=this.approvalFlowIdFromUsers||this.detail.flowId||this.reportDetail.flowId,a=this.canResend;t?r?this.$confirm("确定发起审批吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var n=null;if(a){var i=e.approvalFlowIdFromUsers||r;if(!i)return void e.$message.error("缺少流程ID,无法继续发起审批");n=W4(W4({},et.CONTINUE_REPORT_APPROVAL),{},{params:{flowId:i,userId:de()},disableSuccessMsg:!0})}else{var o={reportId:t,flowId:r,userId:de()};n=W4(W4({},et.ADD_REPORT),{},{params:o,disableSuccessMsg:!0})}e.launching=!0,e.$request(n).asyncThen((function(a){e.launching=!1,e.loadReportDetailFromApi(t,r),e.$message({type:"success",message:"发起成功"}),e.$emit("refresh")})).asyncErrorCatch((function(t){console.error("发起失败:",t),e.launching=!1,e.$message({type:"error",message:"发起失败,请重试"})}))})).catch((function(){e.$message({type:"info",message:"取消发起审批"})})):this.$message.error("缺少流程ID,无法发起审批"):this.$message.error("缺少报告ID,无法发起审批")},handleResatrtLaunch:function(){var e=this,t=this.reportDetail.reportId||this.reportDetail.id||this.detail.reportId||this.detail.id;t?this.$confirm("确定重新发起吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=e.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),a=W4(W4({reportId:t},e.editFormData),{},{flowId:"",title:e.editingProcessTitle||"",processTitle:e.editFormData.processTitle||"",explanation:"",nodeList:r,userId:de()}),n=W4(W4({},et.RESTART_REPORT_APPROVAL),{},{params:a,disableSuccessMsg:!0});e.launching=!0,e.$request(n).asyncThen((function(r){e.launching=!1;var a=e.detail.flowId||e.reportDetail.flowId;e.loadReportDetailFromApi(t,a),e.$message({type:"success",message:"发起成功"}),e.$emit("refresh")})).asyncErrorCatch((function(t){console.error("发起失败:",t),e.launching=!1,e.$message({type:"error",message:"发起失败,请重试"})}))})).catch((function(){e.$message({type:"info",message:"取消发起审批"})})):this.$message.error("缺少报告ID,无法发起审批")},loadApprovalUsers:function(e){var t=this;if(!e)return Promise.resolve();var r=W4(W4({},et.GET_REPORT_APPROVAL_USERS),{},{params:{flowId:e},disableSuccessMsg:!0});return this.$request(r).asyncThen((function(r){console.log("获取审批流程信息:",r);var a=t.parseApprovalUsersMeta(r);t.approvalCanSend=!!a.canSend,t.approvalFlowIdFromUsers=a.flowId||e||"",a.title&&(t.reportDetail.processTitle=a.title,t.showTopDetail.processTitle=a.title,t.isEditMode&&(t.editFormData.processTitle=a.title)),t.fillApprovalUsersData(r,t.approvalWorkflowSteps)})).asyncErrorCatch((function(e){throw console.error("获取审批流程信息失败:",e),e}))},parseApprovalUsersMeta:function(e){var t,r={flowId:"",canSend:!1,title:""},a=null!==(t=null===e||void 0===e?void 0:e.data)&&void 0!==t?t:e,n=function(e){e&&!Array.isArray(e)&&(r.flowId=r.flowId||e.flowId||e.id||e.flowid||"",r.canSend=r.canSend||e.canSend||e.canResend||!1,r.title=r.title||e.progressTitle||e.processTitle||e.title||"")};return a&&!Array.isArray(a)&&(n(a),a.data&&!Array.isArray(a.data)&&n(a.data)),r},fillApprovalUsersData:function(e,t){var r,a,n=[],i=null;Array.isArray(e.data)?i=e.data:Array.isArray(null===(r=e.data)||void 0===r?void 0:r.data)?i=e.data.data:Array.isArray(null===(a=e.data)||void 0===a?void 0:a.result)?i=e.data.result:Array.isArray(e)?i=e:e.data&&!Array.isArray(e.data)&&(i=e.data),Array.isArray(i)?n=i:i&&Array.isArray(i.data)?n=i.data:i&&Array.isArray(i.result)?n=i.result:i&&Array.isArray(i.nodeList)?n=i.nodeList:i&&Array.isArray(i.flowNodes)&&(n=i.flowNodes),n&&n.length>0&&n.forEach((function(e){var r=e.nodeName||e.node||"";if(r){var a=t.find((function(e){return e.name===r}));if(a){var n=e.assignees||[];if(Array.isArray(n)&&0!==n.length){var i=n.map((function(e){var t=e.userId||e.id||"";return{userId:t,username:e.username||"",userNumber:e.userNumber||e.account||""}})).filter((function(e){return e.userId}));i.length>0&&(a.handlers=i.map((function(e){return e.userId})).filter(Boolean),a.options=i.map((function(e){return{userId:e.userId,username:e.username||"",userNumber:e.userNumber||""}})).filter((function(e){return e.userId})))}}}}))},getHandlerName:function(e,t){var r=t.find((function(t){return t.userId===e}));return r?r.username:e},handleRemoteSearch:function(e,t){var r=this.approvalWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=W4(W4({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},handleResendApproval:function(){this.handleResatrtLaunch()},handleProcessTitleChange:function(){},loadLaunchApprovalUsers:function(e){var t=this;if(e){var r=W4(W4({},et.GET_REPORT_APPROVAL_USERS),{},{params:{flowId:e},disableSuccessMsg:!0});this.$request(r).asyncThen((function(e){console.log("获取审批流程信息:",e),t.fillResendApprovalData(e)})).asyncErrorCatch((function(e){console.error("获取审批流程信息失败:",e)}))}else console.error("缺少流程ID,无法获取审批人员信息")},handleEdit:function(){var e=this;return F4(L4().mark((function t(){var r;return L4().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.originalReportDetail=JSON.parse(JSON.stringify(e.reportDetail)),e.editFormData={title:e.reportDetail.title||"",manufacturerName:e.reportDetail.manufacturerName||"",modelName:e.reportDetail.modelName||"",manufacturerAbbreviation:e.reportDetail.manufacturerAbbreviation||"",modelAbbreviation:e.reportDetail.modelAbbreviation||"",productNumber:e.reportDetail.productNumber||"",module:e.reportDetail.module||"",plate:e.reportDetail.plate||"",platform:e.reportDetail.platform||"",series:e.reportDetail.series||"",marketSegment:e.reportDetail.marketSegment||"",projectName:e.reportDetail.projectName||"",projectNumber:e.reportDetail.projectNumber||"",explanation:e.reportDetail.explanation||"",fileUrl:e.reportDetail.fileUrl||e.reportDetail.filePath||"",fileName:e.reportDetail.fileName||"",processTitle:e.reportDetail.processTitle||e.showTopDetail.processTitle||""},e.reportDetail.fileUrl||e.reportDetail.filePath?e.fileList=[{name:e.reportDetail.fileName||"文件",url:e.reportDetail.fileUrl||e.reportDetail.filePath}]:e.fileList=[],e.selectedFile=null,e.isEditMode=!0,"DRAFT"!==e.reportDetail.status){t.next=15;break}if(r=e.detail.flowId||e.reportDetail.flowId,!r){t.next=15;break}return t.prev=8,t.next=11,e.loadApprovalUsers(r);case 11:t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](8);case 15:e.originalEditSnapshot=e.buildEditSnapshot();case 16:case"end":return t.stop()}}),t,null,[[8,13]])})))()},handleCancelEdit:function(){this.reportDetail=JSON.parse(JSON.stringify(this.originalReportDetail)),this.editFormData={title:"",manufacturerName:"",modelName:"",manufacturerAbbreviation:"",modelAbbreviation:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",explanation:"",fileUrl:"",fileName:"",processTitle:""},this.fileList=[],this.selectedFile=null,this.originalEditSnapshot=null,this.isEditMode=!1,this.$refs.editForm&&this.$refs.editForm.clearValidate()},handleFileChange:function(e,t){var r=[".doc",".pdf",".xls",".xlsx",".ppt",".pptx"],a=e.name.toLowerCase(),n=r.some((function(e){return a.endsWith(e)}));if(!n)return this.$message.error("不支持的文件类型,仅支持 .doc .pdf .xls .xlsx .ppt .pptx"),this.$refs.upload.handleRemove(e),!1;this.selectedFile=e&&e.raw?e.raw:null,this.fileList=t.slice(-1)},handleFileRemove:function(e,t){this.selectedFile=null,this.fileList=[]},handleFileUpload:function(){var e=this;if(this.uploading||!this.selectedFile)return this.selectedFile,Promise.resolve(null);var t=this.selectedFile,r=new FormData;r.append("file",t),r.append("createBy",de());var a=W4(W4({},et.TEST_FILE_UPLOAD),{},{params:r,disableSuccessMsg:!0});this.uploading=!0;var n=this.$loading({lock:!0,text:"正在上传文件,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});return this.$upload(a,null,!1).then((function(t){console.log("文件上传成功:",t),n.close();var r="";if(t.data&&t){var a=t.data;r=a,e.editFormData.fileUrl=r}return r})).catch((function(t){throw console.error("文件上传失败:",t),n.close(),e.$message.error("文件上传失败,请重试"),t})).finally((function(){n&&n.close(),e.uploading=!1}))},handleSave:function(){var e=this;this.$refs.editForm?this.$refs.editForm.validate((function(t){if(!t)return!1;e.submitEdit()})):this.submitEdit()},buildEditSnapshot:function(){var e,t,r,a,n,i,o,s,l,c,u,d,p,h,f,m,g,v=function(e){return null==e?"":e},y=function(e){return(e||[]).map((function(e){return{name:e.name,handlers:(e.handlers||[]).filter(Boolean).slice().sort()}}))};return{form:{title:v(null===(e=this.editFormData)||void 0===e?void 0:e.title),manufacturerName:v(null===(t=this.editFormData)||void 0===t?void 0:t.manufacturerName),modelName:v(null===(r=this.editFormData)||void 0===r?void 0:r.modelName),manufacturerAbbreviation:v(null===(a=this.editFormData)||void 0===a?void 0:a.manufacturerAbbreviation),modelAbbreviation:v(null===(n=this.editFormData)||void 0===n?void 0:n.modelAbbreviation),productNumber:v(null===(i=this.editFormData)||void 0===i?void 0:i.productNumber),module:v(null===(o=this.editFormData)||void 0===o?void 0:o.module),plate:v(null===(s=this.editFormData)||void 0===s?void 0:s.plate),platform:v(null===(l=this.editFormData)||void 0===l?void 0:l.platform),series:v(null===(c=this.editFormData)||void 0===c?void 0:c.series),marketSegment:v(null===(u=this.editFormData)||void 0===u?void 0:u.marketSegment),projectName:v(null===(d=this.editFormData)||void 0===d?void 0:d.projectName),projectNumber:v(null===(p=this.editFormData)||void 0===p?void 0:p.projectNumber),explanation:v(null===(h=this.editFormData)||void 0===h?void 0:h.explanation),fileUrl:v(null===(f=this.editFormData)||void 0===f?void 0:f.fileUrl),fileName:v(null===(m=this.editFormData)||void 0===m?void 0:m.fileName)},processTitle:((null===(g=this.editFormData)||void 0===g?void 0:g.processTitle)||"").trim(),steps:y(this.approvalWorkflowSteps)}},diffEditSnapshot:function(e,t){var r=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},a=!e||!r(e.form,t.form)||!!this.selectedFile,n=!e||e.processTitle!==t.processTitle||!r(e.steps,t.steps);return{baseChanged:a,approvalChanged:n}},hasAnyEditChange:function(){var e=this.buildEditSnapshot(),t=this.diffEditSnapshot(this.originalEditSnapshot,e),r=t.baseChanged,a=t.approvalChanged;return r||a},submitEdit:function(){var e=this,t=function(){var t=F4(L4().mark((function t(){var r,a,n,i,o,s,l,c,u,d,p,h,f,m,g,v,y,b,_,x,w;return L4().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,e.hasAnyEditChange()){t.next=5;break}return e.isEditMode=!1,e.$message({type:"info",message:"未修改,无需保存"}),t.abrupt("return");case 5:if(!e.selectedFile){t.next=11;break}return t.next=8,e.handleFileUpload();case 8:r=t.sent,e.editFormData.fileUrl=r||"",e.editFormData.fileName=e.selectedFile.name;case 11:if(a=e.reportDetail.reportId||e.reportDetail.id,a){t.next=15;break}return e.$message.error("缺少报告ID"),t.abrupt("return");case 15:if(n=!e.canResend,i=e.canResend,o=e.editFormData,s=o.processTitle,l=N4(o,P4),c=W4(W4({reportId:a,flowId:e.detail.flowId},l),{},{createBy:de(),userId:de()}),n&&(c.processTitle=s||"",c.nodeList=e.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}}))),e.saving=!0,u=e.buildEditSnapshot(),d=e.diffEditSnapshot(e.originalEditSnapshot,u),p=d.baseChanged,h=d.approvalChanged,f=i&&h,m=i&&h&&!p,g=!m&&(p||n&&h),!(n&&h&&e.detail.flowId)){t.next=33;break}if(y=((null===(v=e.originalEditSnapshot)||void 0===v?void 0:v.processTitle)||"").trim(),b=(u.processTitle||"").trim(),y===b){t.next=33;break}return _=W4(W4({},et.EDIT_APPROVAL_PROCESS_TITLE),{},{params:{flowId:e.detail.flowId,title:b},disableSuccessMsg:!0}),t.next=33,e.$request(_).asyncThen((function(){console.log("流程主题更新成功")})).asyncErrorCatch((function(t){throw console.error("更新流程主题失败:",t),e.$message.error("更新流程主题失败,请重试"),t}));case 33:if(!g){t.next=38;break}return console.log("needUpdateReportBase",g),x=W4(W4({},et.EDIT_REPORT),{},{params:c,disableSuccessMsg:!0}),t.next=38,e.$request(x).asyncThen((function(){}));case 38:if(!f){t.next=42;break}return console.log("needUpdateApprovalProcess",f),t.next=42,e.updateApprovalProcess();case 42:e.isEditMode=!1,w=e.detail.flowId||e.reportDetail.flowId,e.loadReportDetailFromApi(a,w),"DRAFT"===e.reportDetail.status&&w&&e.loadApprovalUsers(w),e.originalEditSnapshot=e.buildEditSnapshot(),e.$message({type:"success",message:"保存成功"}),e.$emit("refresh",{keepOpen:!0}),t.next=55;break;case 51:t.prev=51,t.t0=t["catch"](0),console.error("保存失败:",t.t0),e.$message.error((null===t.t0||void 0===t.t0?void 0:t.t0.message)||"保存失败,请重试");case 55:return t.prev=55,e.saving=!1,t.finish(55);case 58:case"end":return t.stop()}}),t,null,[[0,51,55,58]])})));return function(){return t.apply(this,arguments)}}();t()},updateApprovalProcess:function(){var e=this,t=this.detail.flowId||this.reportDetail.flowId;if(!t)return this.$message.error("缺少流程ID,无法保存审批环节"),Promise.reject(new Error("缺少流程ID"));var r=this.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),a=W4(W4({},et.EDIT_APPROVAL_PROCESS),{},{params:{nodeList:r,flowId:t,title:this.editFormData.processTitle||"",userId:de()},disableSuccessMsg:!0});return this.$request(a).asyncThen((function(){})).asyncErrorCatch((function(t){throw console.error("更新审批环节失败:",t),e.$message.error((null===t||void 0===t?void 0:t.message)||"更新审批环节失败,请重试"),t}))},handleEditProcessTitle:function(){this.isEditingProcessTitle=!0,this.editingProcessTitle=this.showTopDetail.processTitle||this.detail.processTitle||this.reportDetail.processTitle||""},handleCancelProcessTitle:function(){this.isEditingProcessTitle=!1,this.editingProcessTitle=""},handleSaveProcessTitle:function(){var e=this;if(this.detail&&this.detail.flowId){var t=(this.editingProcessTitle||"").trim();t?this.$confirm("确认修改主题为".concat(t,"吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=W4(W4({},et.EDIT_APPROVAL_PROCESS_TITLE),{},{params:{flowId:e.detail.flowId,title:t},disableSuccessMsg:!0});e.$request(r).asyncThen((function(r){e.showTopDetail.processTitle=t,e.isEditingProcessTitle=!1,e.editingProcessTitle="",e.$message({message:"修改成功",type:"success"}),e.detail.flowId&&e.getApprovalSpet(e.detail.flowId)})).asyncErrorCatch((function(t){console.error("修改流程主题失败:",t),e.$message({message:t.message||"修改失败,请重试",type:"error"})}))})).catch((function(){})):this.$message.warning("流程主题不能为空")}else this.$message.error("缺少流程ID,无法保存")}}},K4=X4,Z4=(r("ca83"),d(K4,A4,M4,!1,null,"a279c7d0",null)),J4=Z4.exports;function Q4(e){return Q4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q4(e)}function e6(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e6=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new C(n||[]);return a(o,"_invoke",{value:x(e,r,s)}),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Q4(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function t6(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function r6(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){t6(i,a,n,o,s,"next",e)}function s(e){t6(i,a,n,o,s,"throw",e)}o(void 0)}))}}function a6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function n6(e){for(var t=1;t0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},handleDownloadTemplate:function(){},handleDownload:function(e){var t=document.createElement("a");t.href=e.filePath,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},handlePreview:function(e){this.$message&&this.$message.info&&this.$message.info("预览:"+(e.title||""))},handleApprove:function(e){var t=this;this.currentApprovalRow=e,this.approvalFormData={result:"",opinion:""},this.approvalDialogVisible=!0,this.$nextTick((function(){t.$refs.approvalForm&&t.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalFormData={result:"",opinion:""},this.currentApprovalRow=null,this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;if(this.approvalFormData.result)if(this.currentApprovalRow){var t={flowId:this.currentApprovalRow.flowId,userId:de(),result:this.approvalFormData.result,opinion:this.approvalFormData.opinion||""};this.approvalSubmitting=!0;var r=n6(n6({},et.START_REPORT_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.approvalSubmitting=!1,e.handleApprovalDialogClose(),e.loadData(),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.approvalSubmitting=!1,e.$message.error("审批提交失败,请重试")}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择审核结果(通过或退回)")},pageSizeChange:function(e){this.pagination.pageSize=e},rowClickEvent:function(e){console.warn(e)},handleRowView:function(e){var t=e.reportId||e.id;t?(this.currentReportDetail={reportId:t,flowId:e.flowId},this.showReportDetail=!0):this.$message.error("缺少报告ID,无法查看详情")},closeReportDetail:function(){this.showReportDetail=!1,this.currentReportDetail=null},handleReportDetailRefresh:function(){this.loadData(),this.closeReportDetail()},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""},this.handleSearch()},handleSearch:function(){this.loadData()},handleRefresh:function(){this.pagination.currentPage=1,this.handleSearch()},loadData:function(){var e=this,t={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""};Object.keys(t).forEach((function(r){void 0!==e.searchPanelValue[r]&&null!==e.searchPanelValue[r]&&(t[r]=e.searchPanelValue[r])}));var r=n6(n6({},et.GET_REPORT_LIST),{},{params:n6({pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize,createBy:de()},t),disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.tableData=t.data.result,e.pagination.total=t.data.count})).asyncErrorCatch((function(e){console.error("查询失败:",e)}))}}},c6=l6,u6=(r("be80"),d(c6,I4,O4,!1,null,null,null)),d6=u6.exports,p6=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"benchmark-report-tab tab-content"},[r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"search-fields"},[r("div",{staticClass:"search-row"},[r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("厂家")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.manufacturer,callback:function(t){e.$set(e.searchData,"manufacturer",t)},expression:"searchData.manufacturer"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("型号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.model,callback:function(t){e.$set(e.searchData,"model",t)},expression:"searchData.model"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("产品编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.productNo,callback:function(t){e.$set(e.searchData,"productNo",t)},expression:"searchData.productNo"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("版块")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.module,callback:function(t){e.$set(e.searchData,"module",t)},expression:"searchData.module"}})],1)]),r("div",{staticClass:"search-row"},[r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("平台")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.platform,callback:function(t){e.$set(e.searchData,"platform",t)},expression:"searchData.platform"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("系列")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.series,callback:function(t){e.$set(e.searchData,"series",t)},expression:"searchData.series"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("细分市场")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.subMarket,callback:function(t){e.$set(e.searchData,"subMarket",t)},expression:"searchData.subMarket"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("项目名称")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.projectName,callback:function(t){e.$set(e.searchData,"projectName",t)},expression:"searchData.projectName"}})],1)]),r("div",{staticClass:"search-row"},[r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("项目编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.projectNo,callback:function(t){e.$set(e.searchData,"projectNo",t)},expression:"searchData.projectNo"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("领域/模块")]),r("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchData.domain,callback:function(t){e.$set(e.searchData,"domain",t)},expression:"searchData.domain"}},[r("el-option",{attrs:{label:"选项1",value:"1"}}),r("el-option",{attrs:{label:"选项2",value:"2"}})],1)],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("标题")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.title,callback:function(t){e.$set(e.searchData,"title",t)},expression:"searchData.title"}})],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"reportTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.handleRowClick,"size-change":e.handlePageSizeChange,"current-page-change":e.handleCurrentChange,"select-data-change":e.handleSelectChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row;return["options"===t.customSlot?r("div",{key:a,staticClass:"operation-links"},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleQueryReport(i)}}},[e._v("查询")]),r("span",{staticStyle:{margin:"0 8px"}},[e._v("|")]),r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDownloadReport(i)}}},[e._v("下载")])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[r("x-empty-page")],1)])],2)],1)])},h6=[],f6={name:"BenchmarkReport",data:function(){return{searchData:{manufacturer:"",model:"",productNo:"",module:"",platform:"",series:"",subMarket:"",projectName:"",projectNo:"",domain:"",title:""},tableData:[],pagination:{currentPage:1,pageSize:10,total:0},selectedRows:[]}},computed:{tableConfig:function(){return{rowDraggable:!1,colConfigs:[{prop:"title",label:"标题",showOverflowTooltip:!0,minWidth:"100"},{prop:"manufacturerFullName",label:"厂家名称(全称)",showOverflowTooltip:!0,minWidth:"150"},{prop:"productFullName",label:"产品型号(全称)",showOverflowTooltip:!0,minWidth:"150"},{prop:"domain",label:"领域/模块",showOverflowTooltip:!0,minWidth:"120"},{prop:"productNo",label:"产品编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"module",label:"板块",showOverflowTooltip:!0,minWidth:"100"},{prop:"platform",label:"平台",showOverflowTooltip:!0,minWidth:"100"},{prop:"series",label:"系列",showOverflowTooltip:!0,minWidth:"100"},{prop:"subMarket",label:"细分市场",showOverflowTooltip:!0,minWidth:"120"},{prop:"projectName",label:"项目名称",showOverflowTooltip:!0,minWidth:"120"},{prop:"projectNo",label:"项目编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"uploadTime",label:"上传时间",showOverflowTooltip:!0,minWidth:"150"},{prop:"fileName",label:"文件名",showOverflowTooltip:!0,minWidth:"150"},{prop:"options",label:"操作",customSlot:"options",align:"center",width:"120",fixed:"right"}],seqType:"checkbox",seqConfig:{fixed:!0},layout:"total, prev, pager, next, jumper, sizes",autoSize:!1,pageConfig:{}}}},mounted:function(){this.loadData()},methods:{resetSearch:function(){this.searchData={manufacturer:"",model:"",productNo:"",module:"",platform:"",series:"",subMarket:"",projectName:"",projectNo:"",domain:"",title:""},this.handleSearch()},handleSearch:function(){this.loadData()},handleBatchDownload:function(){0!==this.selectedRows.length?this.$message({type:"info",message:"批量下载 ".concat(this.selectedRows.length," 个报告")}):this.$message({type:"warning",message:"请先选择要下载的报告"})},handleRowClick:function(e){this.$message({type:"info",message:"点击行: ".concat(e.title)})},handlePageSizeChange:function(e){this.pagination.pageSize=e,this.loadData()},handleCurrentChange:function(e){this.pagination.currentPage=e,this.loadData()},handleSelectChange:function(e){this.selectedRows=e},loadData:function(){for(var e=[],t=["Y1001","Y1002","Y1003","Y1004","Y1005","Y1006","Y1007","Y1008","Y1009","Y1010"],r=["XXXXXX","XXXX"],a=0;a<10;a++)e.push({id:a+1,title:t[a]||"Y".concat(1e3+a+1),manufacturerFullName:r[a%2]||"XXXXXX",productFullName:"-",domain:"-",productNo:"-",module:"-",platform:"-",series:"-",subMarket:"-",projectName:"-",projectNo:"-",uploadTime:"-",fileName:"XXXXX文件名".concat(a+1)});this.tableData=e}}},m6=f6,g6=(r("5c7a"),d(m6,p6,h6,!1,null,"1e4bdbcb",null)),v6=g6.exports;function y6(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=x6(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function b6(e){return D6(e)||w6(e)||x6(e)||_6()}function _6(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x6(e,t){if(e){if("string"===typeof e)return S6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S6(e,t):void 0}}function w6(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function D6(e){if(Array.isArray(e))return S6(e)}function S6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&this.isFormulaItemsValid())}},watch:{activeTab:{immediate:!0,handler:function(e,t){var r=this;"statistics"===e?(window.addEventListener("resize",this.handleResize),this.filterOptionsLoaded||this.loadModelListOnFirstEnter(),this.loadYAxisParams(),this.loadFavoritesList(),this.$nextTick((function(){r.$nextTick((function(){setTimeout((function(){r.chartList.forEach((function(e,t){e.chartInstance?e.chartInstance.resize():(e._pendingInit&&(delete e._pendingInit,delete e._pendingInitIndex),r.initChart(t))}))}),100)}))}))):"statistics"===t&&(window.removeEventListener("resize",this.handleResize),this.cleanupResizeListeners(),this.disposeAllCharts())}}},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize),this.cleanupResizeListeners(),this.disposeAllCharts()},mounted:function(){},methods:{filterTransferMethod:function(e,t){if(!e||"string"!==typeof e)return!0;if(!t||"object"!==M6(t))return!1;var r=e.toLowerCase(),a=(t.modelName||"").toString().toLowerCase(),n=(t.productNumber||"").toString().toLowerCase(),i=(t.platform||"").toString().toLowerCase(),o=(t.series||"").toString().toLowerCase(),s=(t.label||"").toString().toLowerCase();return!r||(a.includes(r)||n.includes(r)||i.includes(r)||o.includes(r)||s.includes(r))},loadYAxisParams:function(){var e=this,t=T6(T6({},ze.GET_CHECK_DATA_Y_DATA),{},{params:{userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log("Y轴参数数据:",t),t&&t.data?(Array.isArray(t.data)?e.yAxisParamOptions=t.data.map((function(e){return{label:e.name||e.label||e.parameterName||e,value:e.value||e.id||e.parameterName||e}})):t.data&&Array.isArray(t.data)?e.yAxisParamOptions=t.data.map((function(e){return{label:e,value:e}})):e.yAxisParamOptions=[],e.filteredYAxisParamOptions=e.yAxisParamOptions,e.yAxisParamsLoaded=!0):(e.yAxisParamOptions=[],e.filteredYAxisParamOptions=[])})).asyncErrorCatch((function(t){console.error("获取Y轴参数失败:",t),e.yAxisParamOptions=[]}))},handleTabClick:function(e){console.log("切换到tab:",e.name),"statistics"===e.name&&this.loadYAxisParams()},handleAddChart:function(){var e=this,t={id:this.chartIdCounter++,title:"自定义标题",isEditingTitle:!1,chartType:"line",xAxis:"",yAxisParam:[],yAxisFormula:"",yAxisMin:0,yAxisMax:100,chartHeight:400,customPointX:null,customPointY:null,scatterTrendline:!1,chartInstance:null,formulaItems:[],selectedModels:b6(this.selectedModels),chartDataList:[],cachedModelData:{},newSelectedModels:[]},r=[t].concat(b6(this.chartList));this.chartList=r,this.$forceUpdate(),this.$nextTick((function(){e.$nextTick((function(){requestAnimationFrame((function(){requestAnimationFrame((function(){setTimeout((function(){if(e.initChart(0),e.chartList.forEach((function(t,r){0!==r&&t&&!t.chartInstance&&e.initChart(r)})),e.selectedModels&&e.selectedModels.length>0&&e.chartList.length>0){var t=e.chartList[0],r=e.chartList.find((function(e){return e.cachedModelData&&Object.keys(e.cachedModelData).length>0}));r&&r.cachedModelData&&(t.cachedModelData=JSON.parse(JSON.stringify(r.cachedModelData)),e.updateChartDataFromCache(0),e.updateChart(0))}}),300)}))}))}))}))},toggleFloatingPanel:function(){this.floatingPanelExpanded=!this.floatingPanelExpanded},scrollToTop:function(){var e=document.querySelector(".statistics-tab");e?e.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},handleDownloadChart:function(e){var t=this.chartList[e];if(t&&t.chartInstance)try{var r=t.chartInstance.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),a=document.createElement("a");a.href=r,a.download="".concat(t.title||"chart","_").concat((new Date).getTime(),".png"),document.body.appendChild(a),a.click(),document.body.removeChild(a),this.$message.success("图表导出成功")}catch(n){console.error("导出图表失败:",n),this.$message.error("导出图表失败,请重试")}else this.$message.warning("图表未初始化,无法导出")},handleDeleteChart:function(e){var t=this,r=this.chartList[e];if(r){if(r.chartInstance){try{r.chartInstance.dispose()}catch(a){console.warn("销毁图表实例时出错:",a)}r.chartInstance=null}r.selectedModels=[],r.chartDataList=[],r.cachedModelData={},r.newSelectedModels=[],this.chartList.splice(e,1),this.$forceUpdate(),this.$nextTick((function(){t.$forceUpdate(),t.$nextTick((function(){t.chartList.forEach((function(e,r){if(e&&!e.chartInstance){var a="chartContainer-".concat(r),n=t.$refs[a];n&&t.initChart(r)}}))}))}))}},handleClearAllCharts:function(){var e=this;this.disposeAllCharts(),this.chartList.splice(0,this.chartList.length),this.floatingPanelExpanded=!1,this.$nextTick((function(){e.$forceUpdate(),e.$nextTick((function(){e.$forceUpdate()}))}))},filterModelNameOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.modelName.length>0?this.filteredOptions.modelName:this.filterOptions.modelName||[];this.filteredOptions.modelName=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.modelName&&this.filteredOptions.modelName.length>0)return;this.filteredOptions.modelName=this.filterOptions.modelName||[]}},filterProductNumberOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.productNumber.length>0?this.filteredOptions.productNumber:this.filterOptions.productNumber||[];this.filteredOptions.productNumber=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.productNumber&&this.filteredOptions.productNumber.length>0)return;this.filteredOptions.productNumber=this.filterOptions.productNumber||[]}},filterProjectNameOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.projectName.length>0?this.filteredOptions.projectName:this.filterOptions.projectName||[];this.filteredOptions.projectName=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.projectName&&this.filteredOptions.projectName.length>0)return;this.filteredOptions.projectName=this.filterOptions.projectName||[]}},filterPlateOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.plate.length>0?this.filteredOptions.plate:this.filterOptions.plate||[];this.filteredOptions.plate=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.plate&&this.filteredOptions.plate.length>0)return;this.filteredOptions.plate=this.filterOptions.plate||[]}},filterPlatformOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.platform.length>0?this.filteredOptions.platform:this.filterOptions.platform||[];this.filteredOptions.platform=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.platform&&this.filteredOptions.platform.length>0)return;this.filteredOptions.platform=this.filterOptions.platform||[]}},filterSeriesOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.series.length>0?this.filteredOptions.series:this.filterOptions.series||[];this.filteredOptions.series=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.series&&this.filteredOptions.series.length>0)return;this.filteredOptions.series=this.filterOptions.series||[]}},filterBurnTypeOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.burnType.length>0?this.filteredOptions.burnType:this.filterOptions.burnType||[];this.filteredOptions.burnType=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.burnType&&this.filteredOptions.burnType.length>0)return;this.filteredOptions.burnType=this.filterOptions.burnType||[]}},filterEmissionOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.emission.length>0?this.filteredOptions.emission:this.filterOptions.emission||[];this.filteredOptions.emission=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.emission&&this.filteredOptions.emission.length>0)return;this.filteredOptions.emission=this.filterOptions.emission||[]}},handleFilterYAxisParam:function(e){if(e&&"string"===typeof e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.yAxisParamOptions||[];this.filteredYAxisParamOptions=r.filter((function(e){return e&&e.label&&e.label.toLowerCase().includes(t)}))}else this.filteredYAxisParamOptions=this.yAxisParamOptions||[]},loadModelListOnFirstEnter:function(){var e=this,t=T6(T6({},ze.GET_CHECK_LIST),{},{params:{},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(console.log("首次加载机型列表:",t),t&&t.data){var r=Array.isArray(t.data)?t.data:[];e.buildFilterOptions(r),e.filterOptionsLoaded=!0,e.modelList=r,e.updateCascadingFilterOptions()}})).asyncErrorCatch((function(e){console.error("首次加载机型列表失败:",e)}))},buildFilterOptions:function(e){if(Array.isArray(e)&&0!==e.length){var t=[{key:"modelName",target:"modelName"},{key:"productNumber",target:"productNumber"},{key:"projectName",target:"projectName"},{key:"plate",target:"plate"},{key:"platform",target:"platform"},{key:"series",target:"series"},{key:"emission",target:"emission"},{key:"burnType",target:"burnType"}],r={};t.forEach((function(e){var t=e.target;r[t]=new Set})),e.forEach((function(e){e&&"object"===M6(e)&&t.forEach((function(t){var a=t.key,n=t.target,i=e[a];void 0!==i&&null!==i&&""!==i&&r[n].add(String(i))}))}));var a={},n={};Object.keys(this.filterOptions).forEach((function(e){var t=Array.from(r[e]||[]);t.sort();var i=t.map((function(e){return{label:e,value:e}}));a[e]=i,n[e]=i})),this.filterOptions=a,this.filteredOptions=n}},loadFavoritesList:function(){var e=this,t=T6(T6({},ze.GET_CHART_COMMONLY_USED),{},{params:{userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r=[];Array.isArray(t.data)?r=t.data:t.data.list&&Array.isArray(t.data.list)?r=t.data.list:t.data.data&&Array.isArray(t.data.data)&&(r=t.data.data),e.favoritesOptions=r.map((function(e){return{label:e.commonName||e.name||"",value:e.commonId||e.id||"",data:e}}))}})).asyncErrorCatch((function(t){console.error("获取常用列表失败:",t),e.$message.error("获取常用列表失败")}))},handleFavoriteChange:function(e){if(e){var t=this.favoritesOptions.find((function(t){return t.value===e||t.data&&(t.data.commonId===e||t.data.id===e||t.data.commonName===e)}));t&&t.data?(this.currentCommonConfig=t.data,this.generateChartFromFavorite(t.data)):this.$message({type:"warning",message:"未找到选中的常用配置"})}else this.currentCommonConfig=null},generateChartFromFavorite:function(e){var t=this;if(e){var r=[];if(e.charts&&Array.isArray(e.charts)?r=e.charts:(e.xaxis||e.xAxis||e.chartType||e.id||e.rowId)&&(r=[e]),Array.isArray(r)&&0!==r.length){this.disposeAllCharts(),this.chartList=[];var a=r.map((function(e){var r=e.xaxis||e.xAxis||"";console.log("xAxisValue",r);var a="";if(r){var n=t.xAxisOptions.find((function(e){return e.value===r}));a=n?r:t.xAxisOptions.length>0?t.xAxisOptions[0].value:""}else a=t.xAxisOptions.length>0?t.xAxisOptions[0].value:"";var i=[],o=e.yaxis||e.yAxis||e.yaxisParameters;if(o)if(Array.isArray(o))i=o;else if("string"===typeof o)try{var s=JSON.parse(o);Array.isArray(s)?i=s:s&&(i=[s])}catch(c){""!==o.trim()&&"[]"!==o&&(i=[o])}else i=[o];var l=i.filter((function(e){return t.yAxisParamOptions.some((function(t){return t.value===e}))}));return{id:t.chartIdCounter++,title:e.title||"自定义标题",isEditingTitle:!1,chartType:e.chartType||"line",xAxis:a,yAxisParam:l,yAxisFormula:e.yAxisFormula||"",yAxisMin:void 0!==e.yAxisMin?e.yAxisMin:0,yAxisMax:void 0!==e.yAxisMax?e.yAxisMax:100,chartHeight:400,customPointX:e.customPointX||null,customPointY:e.customPointY||null,scatterTrendline:e.scatterTrendline||!1,chartInstance:null,formulaItems:e.formulaItems||[],selectedModels:b6(t.selectedModels),chartDataList:[],cachedModelData:{},newSelectedModels:[]}}));this.chartList=a,this.$forceUpdate(),this.$nextTick((function(){t.$nextTick((function(){requestAnimationFrame((function(){requestAnimationFrame((function(){setTimeout((function(){if(t.chartList.forEach((function(e,r){e.chartInstance||t.initChart(r)})),t.selectedModels&&t.selectedModels.length>0&&t.chartList.length>0){var e=t.chartList.find((function(e){return e.cachedModelData&&Object.keys(e.cachedModelData).length>0}));e&&e.cachedModelData&&t.chartList.forEach((function(r,a){r.cachedModelData=JSON.parse(JSON.stringify(e.cachedModelData)),t.updateChartDataFromCache(a),t.updateChart(a)}))}}),300)}))}))}))}))}else this.$message.warning("该常用配置中没有图表数据")}},handleAddFavorite:function(){this.chartList&&0!==this.chartList.length?this.addFavoriteDialogVisible=!0:this.$message({type:"warning",message:"当前没有图表,请先创建图表"})},handleAddFavoriteDialogClose:function(){this.addFavoriteDialogVisible=!1,this.addFavoriteFormData.commonName="",this.$refs.addFavoriteForm&&this.$refs.addFavoriteForm.clearValidate()},handleConfirmAddFavorite:function(){var e=this;this.$refs.addFavoriteForm.validate((function(t){if(!t)return!1;if(e.chartList&&0!==e.chartList.length){var r=e.collectCurrentChartsConfig();if(r&&0!==r.length){var a={userId:de(),commonName:e.addFavoriteFormData.commonName,charts:r};e.savingFavorite=!0;var n=T6(T6({},ze.ADD_CHART_COMMONLY_USED),{},{params:a,disableSuccessMsg:!0});e.$request(n).asyncThen((function(t){e.$message({message:"新增常用成功",type:"success"}),e.handleAddFavoriteDialogClose(),e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("新增常用失败:",t),e.$message({message:t.message||"新增常用失败",type:"error"})})).finally((function(){e.savingFavorite=!1}))}else e.$message({type:"warning",message:"当前没有可保存的图表配置"})}else e.$message({type:"warning",message:"当前没有图表,请先创建图表"})}))},handleUpdateFavorite:function(){var e=this;if(this.currentCommonConfig)if(this.chartList&&0!==this.chartList.length){var t=this.collectCurrentChartsConfig();if(t&&0!==t.length){var r={userId:de(),commonName:this.currentCommonConfig.commonName||this.currentCommonConfig.name,commonId:this.currentCommonConfig.commonId||this.currentCommonConfig.id,charts:t};this.savingFavorite=!0;var a=T6(T6({},ze.EDIT_CHART_COMMONLY_USED),{},{params:r,disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){e.$message({message:"更新常用成功",type:"success"}),e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("更新常用失败:",t),e.$message({message:t.message||"更新常用失败",type:"error"})})).finally((function(){e.savingFavorite=!1}))}else this.$message({type:"warning",message:"当前没有可保存的图表配置"})}else this.$message({type:"warning",message:"当前没有图表,请先创建图表"});else this.$message({type:"warning",message:"请先选择一个常用配置"})},collectCurrentChartsConfig:function(){return this.chartList&&0!==this.chartList.length?this.chartList.map((function(e){var t=[];return e.yAxisParam&&(t=Array.isArray(e.yAxisParam)?e.yAxisParam:[e.yAxisParam]),{title:e.title||"自定义标题",chartType:e.chartType||"line",xAxis:e.xAxis||"",yAxis:t}})):[]},handleSearch:function(){var e=this;if(this.modelList&&0!==this.modelList.length)this.updateCascadingFilterOptions(),this.updateSelectedModelsFromFilters(),this.queryParamsBySelectedModels();else{var t={},r=["modelName","productNumber","projectName","plate","platform","series","emission","burnType"];r.forEach((function(r){var a=e.searchPanelValue[r];Array.isArray(a)&&a.length>0&&(t[r]=a)})),this.searchPanelValue.engineCapacityMin&&(t.engineCapacityMin=this.searchPanelValue.engineCapacityMin),this.searchPanelValue.engineCapacityMax&&(t.engineCapacityMax=this.searchPanelValue.engineCapacityMax);var a=T6(T6({},ze.GET_CHECK_LIST),{},{params:t,disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){if(t&&t.data){var r=Array.isArray(t.data)?t.data:[];e.filterOptionsLoaded||(e.buildFilterOptions(r),e.filterOptionsLoaded=!0),e.modelList=r,e.updateCascadingFilterOptions(),e.updateSelectedModelsFromFilters(),e.queryParamsBySelectedModels()}})).asyncErrorCatch((function(t){console.error("获取机型列表失败:",t),e.$message.error("获取机型列表失败,请重试")}))}},queryParamsBySelectedModels:function(){var e=this;if(this.selectedModels&&0!==this.selectedModels.length){var t=this.$loading({lock:!0,text:"正在查询参数。。",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),r=this.selectedModels.map((function(e){return e.id})),a=T6(T6({},ze.GET_CHECK_DATA_CHARTS),{},{params:r,disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){if(console.log("查询参数返回:",t),t&&t.data){var r=[];if(t.data.paramList&&Array.isArray(t.data.paramList)?r=t.data.paramList.map((function(e){return{label:e,value:e}})):Array.isArray(t.data)&&(r=t.data.map((function(e){return{label:e.name||e.label||e.parameterName||e,value:e.value||e.id||e.parameterName||e}}))),r.length>0){var a=new Map;e.yAxisParamOptions.forEach((function(e){a.set(e.value,e)})),r.forEach((function(e){a.has(e.value)||a.set(e.value,e)})),e.yAxisParamOptions=Array.from(a.values()),e.filteredYAxisParamOptions=e.yAxisParamOptions}var n=t.data.pojos||[];console.log("查询返回的数据:",n),console.log("选中的机型:",e.selectedModels),n.length>0&&e.chartList.forEach((function(t){t.cachedModelData||(t.cachedModelData={}),n.forEach((function(r){var a=r.id||r.modelId||r.engineModelID||r.rowId;if(!a){var n=r.modelName||r.productFullName||"",i=e.selectedModels.find((function(e){return e.name===n||String(e.id)===String(r.id)}));i&&(a=i.id)}if(a){var o=String(a);if(t.cachedModelData[o]){var s=t.cachedModelData[o].some((function(e){return JSON.stringify(e)===JSON.stringify(r)}));s||t.cachedModelData[o].push(r)}else t.cachedModelData[o]=[r]}}))})),e.chartList.forEach((function(t,r){t.selectedModels=b6(e.selectedModels),e.updateChartDataFromCache(r),e.updateChart(r)}))}})).asyncErrorCatch((function(t){console.error("查询参数失败:",t),e.$message.error("查询参数失败,请重试")})).finally((function(){t&&t.close()}))}else this.$message.warning("该筛选条件下没有匹配的机型")},handleFilterChange:function(e){this.updateCascadingFilterOptions(),this.updateSelectedModelsFromFilters()},handleFilterVisibleChange:function(e,t){t&&(this.currentEditingField=e,this.openedFilterFields.add(e),this.updateCascadingFilterOptions())},handleEngineCapacityBlur:function(){var e=this;if(this.searchPanelValue.engineCapacityMin&&this.searchPanelValue.engineCapacityMax){if(!this.modelList||0===this.modelList.length)return;var t=parseFloat(this.searchPanelValue.engineCapacityMin),r=parseFloat(this.searchPanelValue.engineCapacityMax);if(isNaN(t)||isNaN(r)||t>r)return;var a=this.modelList.filter((function(a){var n=[{key:"modelName",value:e.searchPanelValue.modelName},{key:"productNumber",value:e.searchPanelValue.productNumber},{key:"projectName",value:e.searchPanelValue.projectName},{key:"plate",value:e.searchPanelValue.plate},{key:"platform",value:e.searchPanelValue.platform},{key:"series",value:e.searchPanelValue.series},{key:"emission",value:e.searchPanelValue.emission},{key:"burnType",value:e.searchPanelValue.burnType}],i=parseFloat(a.engineCapacity||0);if(ir)return!1;for(var o=0,s=n;o0){var u=String(a[l.key]||"");if(!c.includes(u))return!1}}return!0}));0===a.length?this.$message.warning("无机型数据"):(this.updateCascadingFilterOptions(),this.updateSelectedModelsFromFilters())}},updateCascadingFilterOptions:function(){var e=this;if(this.modelList&&0!==this.modelList.length){var t=this.modelList.filter((function(t){var r=[{key:"modelName",value:e.searchPanelValue.modelName},{key:"productNumber",value:e.searchPanelValue.productNumber},{key:"projectName",value:e.searchPanelValue.projectName},{key:"plate",value:e.searchPanelValue.plate},{key:"platform",value:e.searchPanelValue.platform},{key:"series",value:e.searchPanelValue.series},{key:"emission",value:e.searchPanelValue.emission},{key:"burnType",value:e.searchPanelValue.burnType}];if(e.searchPanelValue.engineCapacityMin||e.searchPanelValue.engineCapacityMax){var a=parseFloat(t.engineCapacity||0),n=e.searchPanelValue.engineCapacityMin?parseFloat(e.searchPanelValue.engineCapacityMin):-1/0,i=e.searchPanelValue.engineCapacityMax?parseFloat(e.searchPanelValue.engineCapacityMax):1/0;if(ai)return!1}for(var o=0,s=r;o0){var u=String(t[l.key]||"");if(!c.includes(u))return!1}}return!0})),r=[{key:"modelName",target:"modelName"},{key:"productNumber",target:"productNumber"},{key:"projectName",target:"projectName"},{key:"plate",target:"plate"},{key:"platform",target:"platform"},{key:"series",target:"series"},{key:"emission",target:"emission"},{key:"burnType",target:"burnType"}],a={};r.forEach((function(e){var t=e.target;a[t]=new Set})),t.forEach((function(e){e&&"object"===M6(e)&&r.forEach((function(t){var r=t.key,n=t.target,i=e[r];void 0!==i&&null!==i&&""!==i&&a[n].add(String(i))}))}));var n={};Object.keys(this.filterOptions).forEach((function(t){if(e.openedFilterFields.has(t)||t===e.currentEditingField)n[t]=e.filterOptions[t]||[];else{var r=Array.from(a[t]||[]);r.sort();var i=r.map((function(e){return{label:e,value:e}}));n[t]=i}})),Object.keys(this.filterOptions).forEach((function(t){e.openedFilterFields.has(t)||t===e.currentEditingField||n[t]&&0!==n[t].length||(n[t]=e.filterOptions[t]||[])})),this.filteredOptions=n}else this.filteredOptions=T6({},this.filterOptions)},updateSelectedModelsFromFilters:function(){var e=this;if(this.modelList&&0!==this.modelList.length){var t=this.modelList.filter((function(t){var r=[{key:"modelName",value:e.searchPanelValue.modelName},{key:"productNumber",value:e.searchPanelValue.productNumber},{key:"projectName",value:e.searchPanelValue.projectName},{key:"plate",value:e.searchPanelValue.plate},{key:"platform",value:e.searchPanelValue.platform},{key:"series",value:e.searchPanelValue.series},{key:"emission",value:e.searchPanelValue.emission},{key:"burnType",value:e.searchPanelValue.burnType}];if(e.searchPanelValue.engineCapacityMin||e.searchPanelValue.engineCapacityMax){var a=parseFloat(t.engineCapacity||0),n=e.searchPanelValue.engineCapacityMin?parseFloat(e.searchPanelValue.engineCapacityMin):-1/0,i=e.searchPanelValue.engineCapacityMax?parseFloat(e.searchPanelValue.engineCapacityMax):1/0;if(ai)return!1}for(var o=0,s=r;o0){var u=String(t[l.key]||"");if(!c.includes(u))return!1}}return!0}));this.selectedModels=t.map((function(e){return{id:e.id||e.rowId||e.engineModelID,name:e.modelName||e.productFullName||"未知机型",parameterVersion:e.parameterVersion||1}}))}else this.selectedModels=[]},queryChartDataForAllCharts:function(){var e=this;if(this.selectedModels&&0!==this.selectedModels.length){var t=this.selectedModels.map((function(e){return e.id})),r=T6(T6({},ze.GET_CHECK_DATA_CHARTS),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){if(console.log("查询图表数据返回:",t),t&&t.data){var r=[];if(t.data.paramList&&Array.isArray(t.data.paramList)?r=t.data.paramList.map((function(e){return{label:e,value:e}})):Array.isArray(t.data)&&(r=t.data.map((function(e){return{label:e.name||e.label||e.parameterName||e,value:e.value||e.id||e.parameterName||e}}))),r.length>0){var a=new Map;e.yAxisParamOptions.forEach((function(e){a.set(e.value,e)})),r.forEach((function(e){a.has(e.value)||a.set(e.value,e)})),e.yAxisParamOptions=Array.from(a.values()),e.filteredYAxisParamOptions=e.yAxisParamOptions}var n=t.data.pojos||[];console.log("查询返回的数据:",n),console.log("选中的机型:",e.selectedModels),n.length>0&&e.chartList.forEach((function(t){t.cachedModelData||(t.cachedModelData={}),n.forEach((function(r){var a=r.id||r.modelId||r.engineModelID||r.rowId;if(!a){var n=r.modelName||r.productFullName||"",i=e.selectedModels.find((function(e){return e.name===n||String(e.id)===String(r.id)}));i&&(a=i.id)}if(a){var o=String(a);if(t.cachedModelData[o]){var s=t.cachedModelData[o].some((function(e){return JSON.stringify(e)===JSON.stringify(r)}));s||t.cachedModelData[o].push(r)}else t.cachedModelData[o]=[r]}}))})),e.chartList.forEach((function(t,r){t.selectedModels=b6(e.selectedModels),e.updateChartDataFromCache(r),e.updateChart(r)}))}})).asyncErrorCatch((function(t){console.error("查询图表数据失败:",t),e.$message.error("查询图表数据失败,请重试")}))}},resetSearch:function(){var e=this;this.searchPanelValue={projectName:[],modelName:[],productNumber:[],plate:[],platform:[],series:[],emission:[],burnType:[],engineCapacityMin:"",engineCapacityMax:""},this.modelList=[],this.selectedModels=[],this.chartDataList=[],this.yAxisParamOptions=[],this.filteredYAxisParamOptions=[],this.openedFilterFields.clear(),this.currentEditingField=null,this.filteredOptions={modelName:this.filterOptions.modelName,productNumber:this.filterOptions.productNumber,projectName:this.filterOptions.projectName,plate:this.filterOptions.plate,platform:this.filterOptions.platform,series:this.filterOptions.series,emission:this.filterOptions.emission,burnType:this.filterOptions.burnType},this.chartList.forEach((function(t){t.selectedModels=[],t.chartDataList=[],t.cachedModelData={},e.updateChart(e.chartList.indexOf(t))}))},initChart:function(e){var t=this,r=this.chartList[e];if(r){r.chartHeight||(r.chartHeight=400);var a="chartContainer-".concat(e),n=function(){var r=t.$refs[a];if(r)return Array.isArray(r)?r[0]:r;var n=document.querySelectorAll(".chart-area");if(n&&n[e]){var i=n[e].querySelector(".chart-container");if(i)return i}return null},i=function a(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,s=n();if(!s)return i>=o?void console.warn("初始化图表失败,已重试 ".concat(o," 次,无法找到容器,索引: ").concat(e)):void setTimeout((function(){a(i+1,o)}),150);var l=window.getComputedStyle(s),c="none"!==l.display&&"hidden"!==l.visibility&&"0"!==l.opacity,u=s.getBoundingClientRect(),d=s.offsetWidth>0&&s.offsetHeight>0||u.width>0&&u.height>0||s.clientWidth>0&&s.clientHeight>0;if(!c)return i>=o?void console.warn("容器不可见,无法初始化图表,索引: ".concat(e)):void setTimeout((function(){a(i+1,o)}),150);if(!d){var p=s.parentElement,h=p&&(p.offsetWidth>0||p.clientWidth>0);return h&&i=o-5&&"undefined"!==typeof ResizeObserver&&!s._resizeObserver&&(s._resizeObserver=new ResizeObserver((function(a){var n,i=y6(a);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=o.target,l=s.getBoundingClientRect(),c=s.offsetWidth>0&&s.offsetHeight>0||l.width>0&&l.height>0;c&&!r.chartInstance&&(t.initChartWithContainer(e,s),s._resizeObserver&&(s._resizeObserver.disconnect(),delete s._resizeObserver))}}catch(u){i.e(u)}finally{i.f()}})),s._resizeObserver.observe(s),setTimeout((function(){s._resizeObserver&&(s._resizeObserver.disconnect(),delete s._resizeObserver),r.chartInstance||t.initChartWithResizeObserver(e,s,r)}),3e3)),i>=o?void t.initChartWithResizeObserver(e,s,r):void setTimeout((function(){a(i+1,o)}),150))}t.initChartWithContainer(e,s)};this.$nextTick((function(){t.$nextTick((function(){i(0,30)}))}))}},initChartWithContainer:function(e,t){var r=this.chartList[e];if(r&&t){var a=t.getBoundingClientRect(),n=t.offsetWidth>0&&t.offsetHeight>0||a.width>0&&a.height>0||t.clientWidth>0&&t.clientHeight>0;if(n){if(r.chartInstance){try{r.chartInstance.dispose()}catch(i){console.warn("销毁图表实例时出错:",i)}r.chartInstance=null}try{r.chartInstance=RS(t),this.updateChart(e)}catch(i){console.error("初始化图表失败:",i),i.message&&i.message.includes("width or height")&&this.initChartWithResizeObserver(e,t,r)}}else this.initChartWithResizeObserver(e,t,r)}},initChartWithResizeObserver:function(e,t,r){var a=this;if(t&&r){var n="statistics"===this.activeTab;if(!n)return r._pendingInit=!0,void(r._pendingInitIndex=e);var i=window.getComputedStyle(t),o="none"!==i.display&&"hidden"!==i.visibility&&"0"!==i.opacity,s=t.parentElement,l=!0;while(s&&s!==document.body){var c=window.getComputedStyle(s);if("none"===c.display||"hidden"===c.visibility){l=!1;break}s=s.parentElement}if(!o||!l)return r._pendingInit=!0,void(r._pendingInitIndex=e);var u=t.getBoundingClientRect(),d=t.offsetWidth>0&&t.offsetHeight>0||u.width>0&&u.height>0;if(d)this.initChartWithContainer(e,t);else if("undefined"!==typeof ResizeObserver){var p=new ResizeObserver((function(t){var n,i=y6(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=o.target,l=s.getBoundingClientRect(),c=s.offsetWidth>0&&s.offsetHeight>0||l.width>0&&l.height>0;if(c&&!r.chartInstance)try{a.initChartWithContainer(e,s),s._chartResizeObserver&&(s._chartResizeObserver.disconnect(),delete s._chartResizeObserver),delete r._pendingInit,delete r._pendingInitIndex}catch(u){console.error("图表初始化失败:",u)}else c&&r.chartInstance&&r.chartInstance.resize()}}catch(d){i.e(d)}finally{i.f()}}));p.observe(t),t._chartResizeObserver=p,setTimeout((function(){if(t._chartResizeObserver===p&&!r.chartInstance){t._chartResizeObserver.disconnect(),delete t._chartResizeObserver;var n=t.getBoundingClientRect(),i=window.getComputedStyle(t);console.warn("容器在30秒内仍没有尺寸,放弃初始化图表,索引: ".concat(e),{offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,rectWidth:n.width,rectHeight:n.height,display:i.display,visibility:i.visibility,opacity:i.opacity,activeTab:a.activeTab})}}),3e4)}else var h=0,f=150,m=setInterval((function(){h++;var n=t.getBoundingClientRect(),i=t.offsetWidth>0&&t.offsetHeight>0||n.width>0&&n.height>0;if(i&&!r.chartInstance)clearInterval(m),a.initChartWithContainer(e,t),delete r._pendingInit,delete r._pendingInitIndex;else if(h>=f&&(clearInterval(m),!r.chartInstance)){var o=window.getComputedStyle(t);console.warn("容器在30秒内仍没有尺寸,放弃初始化图表,索引: ".concat(e),{offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,activeTab:a.activeTab,display:o.display})}}),200)}},handleResize:function(){this.chartList.forEach((function(e){e.chartInstance&&e.chartInstance.resize()}))},handleOpenAddModelDialog:function(e){this.currentChartIndex=e,this.addModelDialogVisible=!0,this.initTransferData(e)},initTransferData:function(e){var t=this.chartList[e];if(t){if(!Array.isArray(this.modelList)||0===this.modelList.length)return this.$message.info("请先在顶部查询机型"),this.transferData=[],void(this.transferSelectedKeys=[]);this.transferData=this.modelList.map((function(e){var t=e.id||e.rowId||e.engineModelID,r=e.parameterVersion||1,a="".concat(t,"_").concat(r),n=e.modelName||e.productFullName||"未知机型";return{key:a,label:n,modelId:t,parameterVersion:r,modelName:n,productNumber:e.productNumber||"",platform:e.platform||"",series:e.series||""}})),t.selectedModels&&Array.isArray(t.selectedModels)?this.transferSelectedKeys=t.selectedModels.map((function(e){var t=e.parameterVersion||1;return"".concat(e.id,"_").concat(t)})):this.transferSelectedKeys=[]}},handleTransferChange:function(e,t,r){if(!(this.currentChartIndex<0)){var a=this.chartList[this.currentChartIndex];if(a){var n=new Set;a.selectedModels&&Array.isArray(a.selectedModels)&&a.selectedModels.forEach((function(e){var t=e.parameterVersion||1;n.add("".concat(e.id,"_").concat(t))}));var i=e.filter((function(e){return!n.has(e)}));if("left"!==t&&"right"===t&&i.length>10){var o=Array.from(n),s=i.slice(0,10);this.transferSelectedKeys=[].concat(o,b6(s)),this.$message({type:"warning",message:"为了避免大量数据的长时间请求,单次选择的新机型上限是10个,查询后,可继续选择。",duration:4e3})}}}},handleAddModelDialogClose:function(){this.addModelDialogVisible=!1,this.currentChartIndex=-1,this.transferSelectedKeys=[],this.transferData=[]},handleConfirmAddModel:function(){var e=this;if(0!==this.transferSelectedKeys.length){if(!(this.currentChartIndex<0)){var t=this.chartList[this.currentChartIndex];if(t){var r=new Set;t.selectedModels&&Array.isArray(t.selectedModels)&&t.selectedModels.forEach((function(e){var t=e.parameterVersion||1;r.add("".concat(e.id,"_").concat(t))}));var a=[],n=[],i=new Set;r.forEach((function(t){if(!e.transferSelectedKeys.includes(t)){var r=e.transferData.find((function(e){return e.key===t}));r&&i.add(r.modelId)}})),this.transferSelectedKeys.forEach((function(t){var i=e.transferData.find((function(e){return e.key===t}));if(i){var o={id:i.modelId,name:i.modelName,parameterVersion:i.parameterVersion};a.push(o),r.has(t)||n.push(o)}})),t.selectedModels=a,i.size>0&&i.forEach((function(e){t.cachedModelData&&t.cachedModelData[e]&&delete t.cachedModelData[e]})),t.newSelectedModels=n;var o=this.currentChartIndex;o>=0&&this.handleChartModelQuery(o),this.handleAddModelDialogClose()}}}else this.$message({type:"warning",message:"请至少选择一个机型"})},handleChartModelQuery:function(e){var t=this,r=this.chartList[e];if(r)if(r.selectedModels&&0!==r.selectedModels.length){var a=r.newSelectedModels||[];if(!a||0===a.length)return this.updateChartDataFromCache(e),void this.updateChart(e);var n=a.map((function(e){return e.id})),i=T6(T6({},ze.GET_CHECK_DATA_CHARTS),{},{params:n,disableSuccessMsg:!0});this.$request(i).asyncThen((function(n){if(console.log(n),n&&n.data){var i=[];if(n.data.paramList&&Array.isArray(n.data.paramList)?i=n.data.paramList.map((function(e){return{label:e,value:e}})):Array.isArray(n.data)&&(i=n.data.map((function(e){return{label:e.name||e.label||e.parameterName||e,value:e.value||e.id||e.parameterName||e}}))),i.length>0){var o=new Map;t.yAxisParamOptions.forEach((function(e){o.set(e.value,e)})),i.forEach((function(e){o.has(e.value)||o.set(e.value,e)})),t.yAxisParamOptions=Array.from(o.values()),t.filteredYAxisParamOptions=t.yAxisParamOptions}var s=n.data.pojos||[];console.log("查询返回的数据:",s),console.log("新选择的机型:",a),s.length>0&&(r.cachedModelData||(r.cachedModelData={}),s.forEach((function(e){var t=e.id||e.modelId||e.engineModelID||e.rowId;if(!t){var n=e.modelName||e.productFullName||"",i=a.find((function(t){return t.name===n||String(t.id)===String(e.id)}));i&&(t=i.id)}if(t){var o=String(t);if(r.cachedModelData[o]){var s=r.cachedModelData[o].some((function(t){return JSON.stringify(t)===JSON.stringify(e)}));s||r.cachedModelData[o].push(e)}else r.cachedModelData[o]=[e];console.log("保存机型数据到缓存: ".concat(o),e)}else console.warn("无法匹配机型ID,数据:",e)})),console.log("缓存数据:",r.cachedModelData)),r.newSelectedModels=[],t.updateChartDataFromCache(e),t.updateChart(e)}})).asyncErrorCatch((function(e){console.error("查询失败:",e),t.$message.error("查询失败,请重试")}))}else this.$message.warning("请先选择机型")},updateChartDataFromCache:function(e){var t=this.chartList[e];if(t&&t.selectedModels&&t.cachedModelData){var r=new Set(t.selectedModels.map((function(e){return String(e.id)}))),a=[];console.log("从缓存更新图表数据 - 选中的机型ID:",Array.from(r)),console.log("缓存中的机型ID:",Object.keys(t.cachedModelData)),Object.keys(t.cachedModelData).forEach((function(e){var n=String(e);if(r.has(n)){var i=t.cachedModelData[e];Array.isArray(i)?a.push.apply(a,b6(i)):a.push(i)}})),console.log("更新后的chartDataList:",a),t.chartDataList=a}else t&&(t.chartDataList=[])},handleChartModelReset:function(e){var t=this.chartList[e];t&&(t.selectedModels=[],t.newSelectedModels=[],t.chartDataList=[],t.cachedModelData={},this.updateChart(e))},updateChart:function(e){var t=this,r=this.chartList[e];if(r&&r.chartInstance){"undefined"===typeof r.scatterTrendline&&this.$set(r,"scatterTrendline",!1);var a=r.xAxis||"",n=this.xAxisOptions.find((function(e){return e.value===a})),i=n?n.label:"",o=[],s=new Map,l=r.chartDataList||[];if(l&&l.length>0&&(l.forEach((function(e){var t="";if("projectName"===a?t=e.projectName||"":"modelName"===a?t=e.modelName||"":"plate"===a?t=e.plate||"":"platform"===a?t=e.platform||"":"series"===a?t=e.series||"":"emission"===a?t=e.emission||"":"burnType"===a?t=e.burnType||"":"engineCapacity"===a?t=e.engineCapacity||"":"productNumber"===a&&(t=e.productNumber||""),t)if(s.has(t)){var r=s.get(t);r.parameters=r.parameters.concat(e.pojos||[])}else s.set(t,{xValue:t,parameters:e.pojos||[]})})),o=Array.from(s.keys())),0===o.length&&"engineCapacity"===a){var c=this.searchPanelValue.engineCapacityMin||0,u=this.searchPanelValue.engineCapacityMax||100,d=(u-c)/10;o=[];for(var p=0;p<=10;p++){var h=c+d*p;o.push(h.toFixed(1))}}var f=Array.isArray(r.yAxisParam)?r.yAxisParam:[],m={},g=o.length0)if(g){var o=0,l=!1;i.forEach((function(e){if(void 0!==e.parameterValue&&null!==e.parameterValue){var t=parseFloat(e.parameterValue);isNaN(t)||(o+=t,l=!0)}})),a=l?o:null}else{var c=i[0];if(void 0!==c.parameterValue&&null!==c.parameterValue){var u=parseFloat(c.parameterValue);a=isNaN(u)?c.parameterValue:u}}}t.push(null===a||void 0===a?0:a)})),m[e]=t}));var v=[],y=[],b=r.chartType,_="scatter"===b,x="bar"===b,w="pie"===b,D=_&&!!r.scatterTrendline,S=null;if(r.yAxisFormula){var C=this.savedFormulas.find((function(e){return e.id===r.yAxisFormula}));if(C){var T=C.formulaItems&&Array.isArray(C.formulaItems)&&C.formulaItems.length>0,I=C.param1&&C.param2&&C.operator;(T||I)&&(S=this.calculateFormula(C,o,s,g),S&&S.length>0&&(S=S.map((function(e){return null===e||void 0===e?0:e}))))}}if(o.length>0&&f.length>0){var O=o.map((function(e,t){return t})),A=m[f[0]]||[];O.sort((function(e,t){var r=A[e]||0,a=A[t]||0;return a-r})),o=O.map((function(e){return o[e]})),f.forEach((function(e){var t=m[e]||[];m[e]=O.map((function(e){return t[e]||0}))})),S&&S.length>0&&(S=O.map((function(e){return S[e]||0})))}var M=function(e){var r=t.yAxisParamOptions.find((function(t){return t.value===e}));return r?r.label:e};if(w){var P=[],k=["#67C23A","#E6A23C","#F56C6C","#409EFF","#909399"];f.forEach((function(e,t){var r=m[e]||[],a=r.length>0?r.reduce((function(e,t){return e+(t||0)}),0)/r.length:0,n=M(e);P.push({value:a,name:n}),y.push(n)}));var N={title:{show:!1},tooltip:{trigger:"item",formatter:function(e){var t=parseFloat(e.value).toFixed(2);return"".concat(e.seriesName,"
").concat(e.name,": ").concat(t," ")}},legend:{type:"scroll",data:y,top:5,left:"center",height:"40px",itemHeight:18,itemGap:12,padding:[15,10,10,10],textStyle:{fontSize:14,lineHeight:18}},series:[{name:"数据分布",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!0,formatter:function(e){return"".concat(e.name,": ").concat(parseFloat(e.value).toFixed(2),"%")}},emphasis:{label:{show:!0,fontSize:"16",fontWeight:"bold"}},labelLine:{show:!0},data:P.map((function(e,t){return T6(T6({},e),{},{itemStyle:{color:k[t%k.length]}})}))}]};r.chartInstance.setOption(N,!0)}else{var E=["#67C23A","#E6A23C","#F56C6C","#409EFF","#909399","#E4E7ED","#C0C4CC"],L=["circle","rect","triangle","diamond","pin","arrow"];if(f.forEach((function(e,t){var r=m[e]||[],a=M(e),n=E[t%E.length],i=L[t%L.length],o={name:a,type:x?"bar":_?"scatter":"line",data:r,symbol:_?i:"circle",symbolSize:_?8:6,itemStyle:{color:n},lineStyle:{color:n,width:2}};v.push(o),y.push(a),D&&(v.push({name:"趋势线 (".concat(a,")"),type:"line",data:r,lineStyle:{color:n,type:"solid",width:2},symbol:"none",smooth:!0}),y.push("趋势线 (".concat(a,")")))})),S&&S.length>0){for(var R=[],F=0;F=W&&G<=H){for(var q=[],Y=0;Y");return e.forEach((function(e){void 0!==e.value&&null!==e.value&&""!==e.value&&(t+="".concat(e.marker).concat(e.seriesName,": ").concat(e.value,"
"))})),t}return void 0!==e.value&&null!==e.value&&""!==e.value?"".concat(e.seriesName,"
").concat(e.marker).concat(e.name,": ").concat(e.value):""}},legend:{type:"scroll",data:y,top:5,height:"40px",left:"center",itemHeight:18,itemGap:12,padding:[15,10,10,10],textStyle:{fontSize:14,lineHeight:18}},grid:{left:"3%",right:"60px",bottom:"15%",top:y.length>0?"22%":"3%",containLabel:!0},dataZoom:[{type:"slider",xAxisIndex:0,start:0,end:100,bottom:10,height:20,handleIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.2,10.8,24.1,24.1,24.1C44.2,51.7,55,40.8,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.6-0.4,1-1,1H26c-0.6,0-1-0.4-1-1s0.4-1,1-1h9.9C36.5,34.8,36.9,35.2,36.9,35.8z",handleSize:"80%",handleStyle:{color:"#fff",shadowBlur:3,shadowColor:"rgba(0, 0, 0, 0.6)",shadowOffsetX:2,shadowOffsetY:2},textStyle:{color:"#333"},borderColor:"#ccc",fillerColor:"rgba(64, 158, 255, 0.2)",dataBackground:{lineStyle:{color:"#409EFF",width:1},areaStyle:{color:"rgba(64, 158, 255, 0.1)"}},selectedDataBackground:{lineStyle:{color:"#409EFF",width:2},areaStyle:{color:"rgba(64, 158, 255, 0.3)"}}},{type:"inside",xAxisIndex:0,start:0,end:100}],xAxis:{type:"category",data:o,name:i,nameTextStyle:{color:"#000"},boundaryGap:!!x||[.05,.05],axisLabel:{color:"#000"},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#E4E7ED"}}},yAxis:function(){var e=null!==r.yAxisMin&&""!==r.yAxisMin?r.yAxisMin:0,t=null!==r.yAxisMax&&""!==r.yAxisMax?r.yAxisMax:100,a=t-e,n=a>0?Math.ceil(a/9):void 0;return{type:"value",min:e,max:t,splitNumber:9,maxInterval:n,axisLabel:{formatter:"{value}",color:"#000"},axisLine:{lineStyle:{color:"#DCDFE6"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#E4E7ED"}}}}(),series:v};r.chartInstance.setOption(X,!0)}}},getDefaultXAxisData:function(e){switch(e){case"projectName":return["项目1","项目2","项目3","项目4","项目5"];case"modelName":return["型号1","型号2","型号3","型号4","型号5"];case"plate":return["板块1","板块2","板块3","板块4","板块5"];case"platform":return["平台1","平台2","平台3","平台4","平台5"];case"series":return["系列1","系列2","系列3","系列4","系列5"];case"emission":return["排放1","排放2","排放3","排放4","排放5"];case"burnType":return["类型1","类型2","类型3","类型4","类型5"];case"engineCapacity":return["1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0"];default:return["数据1","数据2","数据3","数据4","数据5"]}},generateParamData:function(e,t){for(var r=t.charCodeAt?t.charCodeAt(0)%100:50,a=[],n=0;n5&&(this.$message.warning("最多只能选择5个参数"),this.formulaFormData.selectedParams=this.formulaFormData.selectedParams.slice(0,5)),this.formulaFormData.availableParams=this.formulaFormData.selectedParams.map((function(t){var r=e.yAxisParamOptions.find((function(e){return e.value===t}));return r||{label:t,value:t}}))},addNumberToBuilder:function(){if(null!==this.formulaFormData.inputNumber&&""!==this.formulaFormData.inputNumber){var e=parseFloat(this.formulaFormData.inputNumber);if(isNaN(e))this.$message.warning("请输入有效的数字");else{var t=this.formulaFormData.recentNumbers.indexOf(e);-1!==t&&this.formulaFormData.recentNumbers.splice(t,1),this.formulaFormData.recentNumbers.unshift(e),this.formulaFormData.recentNumbers.length>5&&(this.formulaFormData.recentNumbers=this.formulaFormData.recentNumbers.slice(0,5)),this.formulaFormData.inputNumber=null,this.$message.success("数字已添加到构建区,可拖拽到公式预览区域")}}else this.$message.warning("请输入数字")},handleDragStart:function(e,t,r,a){e.dataTransfer.setData("application/json",JSON.stringify({type:t,value:r,label:a})),e.dataTransfer.effectAllowed="copy",e.target&&(e.target.style.opacity="0.5")},handleDragEnd:function(e){e.target&&(e.target.style.opacity="1")},handleDragEnter:function(e){e.preventDefault(),this.isDraggingOver=!0},handleDragLeave:function(e){e.preventDefault(),e.target.classList.contains("preview-container")&&(this.isDraggingOver=!1)},handleDrop:function(e){if(e.preventDefault(),this.isDraggingOver=!1,-1===this.draggingPreviewIndex)try{var t=JSON.parse(e.dataTransfer.getData("application/json"));t&&t.type&&t.value&&t.label&&this.formulaFormData.formulaItems.push({type:t.type,value:t.value,label:t.label})}catch(r){console.error("拖拽数据解析失败:",r)}},handlePreviewDragStart:function(e,t){this.draggingPreviewIndex=t,e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t)),e.target&&(e.target.style.opacity="0.5")},handlePreviewDragOver:function(e,t){e.preventDefault(),-1!==this.draggingPreviewIndex&&this.draggingPreviewIndex!==t&&(this.dragOverPreviewIndex=t)},handlePreviewDragEnter:function(e,t){e.preventDefault(),-1!==this.draggingPreviewIndex&&this.draggingPreviewIndex!==t&&(this.dragOverPreviewIndex=t)},handlePreviewDragLeave:function(e){e.target.classList.contains("preview-item")&&(this.dragOverPreviewIndex=-1)},handlePreviewDrop:function(e,t){if(e.preventDefault(),e.stopPropagation(),-1===this.draggingPreviewIndex||this.draggingPreviewIndex===t)return this.draggingPreviewIndex=-1,void(this.dragOverPreviewIndex=-1);var r=b6(this.formulaFormData.formulaItems),a=r[this.draggingPreviewIndex];r.splice(this.draggingPreviewIndex,1);var n=t;this.draggingPreviewIndex0){var r=e[0],a=e[e.length-1];if("operator"===r.type||"operator"===a.type)return!1}return!0},handleEditFormula:function(e){this.currentFormulaChartIndex=e;var t=this.chartList[e];if(t){if(t.yAxisFormula){var r=this.savedFormulas.find((function(e){return e.id===t.yAxisFormula}));if(r){if(this.currentFormulaId=r.id,r.formulaItems)this.formulaFormData={name:r.name||"",selectedParams:r.formulaItems.filter((function(e){return"param"===e.type})).map((function(e){return e.value})),availableParams:[],formulaItems:JSON.parse(JSON.stringify(r.formulaItems)),inputNumber:null,recentNumbers:r.formulaItems.filter((function(e){return"number"===e.type})).map((function(e){return parseFloat(e.value)})).filter((function(e){return!isNaN(e)})).slice(0,5)};else{var a=[];if(r.param1){var n=this.yAxisParamOptions.find((function(e){return e.value===r.param1}));a.push({type:"param",value:r.param1,label:n?n.label:r.param1})}if(r.operator){var i=this.formulaOperators.find((function(e){return e.value===r.operator}));a.push({type:"operator",value:r.operator,label:i?i.label:r.operator})}if(r.param2){var o=this.yAxisParamOptions.find((function(e){return e.value===r.param2}));a.push({type:"param",value:r.param2,label:o?o.label:r.param2})}this.formulaFormData={name:r.name||"",selectedParams:[r.param1,r.param2].filter(Boolean),availableParams:[],formulaItems:a,inputNumber:null,recentNumbers:[]}}this.handleSelectedParamsChange()}else this.currentFormulaId=null,this.formulaFormData={name:"",selectedParams:[],availableParams:[],formulaItems:[]}}else this.currentFormulaId=null,this.formulaFormData={name:"",selectedParams:[],availableParams:[],formulaItems:[],inputNumber:null,recentNumbers:[]};this.formulaDialogVisible=!0}},handleSaveFormula:function(){if(this.isFormulaValid){var e=this.currentFormulaId;if(e){var t=this.savedFormulas.findIndex((function(t){return t.id===e}));t>=0&&(this.savedFormulas[t]=T6(T6({},this.savedFormulas[t]),{},{name:this.formulaFormData.name.trim(),formulaItems:JSON.parse(JSON.stringify(this.formulaFormData.formulaItems))}))}else e="formula_".concat(this.formulaIdCounter++),this.savedFormulas.push({id:e,name:this.formulaFormData.name.trim(),formulaItems:JSON.parse(JSON.stringify(this.formulaFormData.formulaItems))});if(this.currentFormulaChartIndex>=0){var r=this.chartList[this.currentFormulaChartIndex];r&&(r.yAxisFormula=e,this.updateChart(this.currentFormulaChartIndex))}this.handleFormulaDialogClose()}else this.$message.warning("请完整填写公式信息,公式至少需要一个参数且不能以运算符开头或结尾")},handleFormulaDialogClose:function(){this.formulaDialogVisible=!1,this.currentFormulaChartIndex=-1,this.currentFormulaId=null,this.formulaFormData={name:"",selectedParams:[],availableParams:[],formulaItems:[],inputNumber:null,recentNumbers:[]}},calculateFormula:function(e,t,r){var a=this,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return[];var i=[];if(e.formulaItems&&Array.isArray(e.formulaItems))i=e.formulaItems;else{if(!(e.param1&&e.param2&&e.operator))return[];var o=this.yAxisParamOptions.find((function(t){return t.value===e.param1})),s=this.yAxisParamOptions.find((function(t){return t.value===e.param2})),l=this.formulaOperators.find((function(t){return t.value===e.operator}));i=[{type:"param",value:e.param1,label:o?o.label:e.param1},{type:"operator",value:e.operator,label:l?l.label:e.operator},{type:"param",value:e.param2,label:s?s.label:e.param2}]}if(0===i.length)return[];var c=[];return t.forEach((function(e){var t=null;try{t=a.evaluateFormulaExpression(i,e,r,n)}catch(o){console.error("计算公式失败:",o),t=null}c.push(t)})),c},evaluateFormulaExpression:function(e,t,r,a){var n=this.infixToPostfix(e,t,r,a);return this.evaluatePostfix(n)},infixToPostfix:function(e,t,r,a){for(var n=[],i=[],o={"+":1,"-":1,"*":2,"/":2},s=0;s0&&"("!==i[i.length-1]&&o[i[i.length-1]]>=o[l.value])n.push(i.pop());i.push(l.value)}else if("bracket"===l.type)if("("===l.value)i.push("(");else if(")"===l.value){while(i.length>0&&"("!==i[i.length-1])n.push(i.pop());i.length>0&&"("===i[i.length-1]&&i.pop()}}while(i.length>0){var p=i.pop();if("("===p||")"===p)return null;n.push(p)}return n},evaluatePostfix:function(e){if(!e||0===e.length||null===e)return null;for(var t=[],r=0;r3&&void 0!==arguments[3]&&arguments[3];if(!r||!r.has(t))return null;var n=r.get(t);if(!n||!n.parameters)return null;var i=n.parameters.filter((function(t){return t.parameterName===e}));if(!i||0===i.length)return null;if(a&&i.length>1){var o=0,s=!1;return i.forEach((function(e){if(void 0!==e.parameterValue&&null!==e.parameterValue){var t=parseFloat(e.parameterValue);isNaN(t)||(o+=t,s=!0)}})),s?o:null}var l=i[0];return l&&void 0!==l.parameterValue&&null!==l.parameterValue?l.parameterValue:null},startResize:function(e,t){t.preventDefault(),t.stopPropagation(),this.isResizing=!0,this.resizingChartIndex=e,this.resizeStartY=t.clientY;var r=this.chartList[e];this.resizeStartHeight=(null===r||void 0===r?void 0:r.chartHeight)||400,document.addEventListener("mousemove",this.doResize),document.addEventListener("mouseup",this.stopResize),document.body.style.cursor="row-resize",document.body.style.userSelect="none"},doResize:function(e){if(this.isResizing){var t=e.clientY-this.resizeStartY,r=this.resizeStartHeight+t,a=200,n=this.chartList[this.resizingChartIndex];n&&(n.chartHeight=Math.max(r,a),this.$nextTick((function(){n.chartInstance&&n.chartInstance.resize()})))}},stopResize:function(){this.cleanupResizeListeners()},cleanupResizeListeners:function(){document.removeEventListener("mousemove",this.doResize),document.removeEventListener("mouseup",this.stopResize),document.body.style.cursor="",document.body.style.userSelect="",this.isResizing=!1,this.resizingChartIndex=-1},disposeAllCharts:function(){var e=this;this.chartList.forEach((function(t,r){t.chartInstance&&(t.chartInstance.dispose(),t.chartInstance=null),t._resizeHandler&&(window.removeEventListener("resize",t._resizeHandler),delete t._resizeHandler);var a="chartContainer-".concat(r),n=e.$refs[a];if(n){var i=Array.isArray(n)?n[0]:n;i&&i._chartResizeObserver&&(i._chartResizeObserver.disconnect(),delete i._chartResizeObserver),i&&i._resizeObserver&&(i._resizeObserver.disconnect(),delete i._resizeObserver)}}))}}},k6=P6,N6=(r("34df"),r("9747"),d(k6,wa,Da,!1,null,"7efe03a6",null)),E6=N6.exports,L6=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-report-check custom-page"},[r("div",{staticClass:"page-search-panel"},[r("el-form",{staticClass:"search-list"},[r("el-form-item",{staticClass:"search-component",attrs:{label:"厂家:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.manufacturer,callback:function(t){e.$set(e.searchPanelValue,"manufacturer",t)},expression:"searchPanelValue.manufacturer"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"型号:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.model,callback:function(t){e.$set(e.searchPanelValue,"model",t)},expression:"searchPanelValue.model"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"产品编号:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.productNo,callback:function(t){e.$set(e.searchPanelValue,"productNo",t)},expression:"searchPanelValue.productNo"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"板块:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.module,callback:function(t){e.$set(e.searchPanelValue,"module",t)},expression:"searchPanelValue.module"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"平台:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.platform,callback:function(t){e.$set(e.searchPanelValue,"platform",t)},expression:"searchPanelValue.platform"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"系列:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.series,callback:function(t){e.$set(e.searchPanelValue,"series",t)},expression:"searchPanelValue.series"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"细分市场:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.segmentMarket,callback:function(t){e.$set(e.searchPanelValue,"segmentMarket",t)},expression:"searchPanelValue.segmentMarket"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"项目名称:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectName,callback:function(t){e.$set(e.searchPanelValue,"projectName",t)},expression:"searchPanelValue.projectName"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"项目编号:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectNo,callback:function(t){e.$set(e.searchPanelValue,"projectNo",t)},expression:"searchPanelValue.projectNo"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"领域/模块:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.fieldModule,callback:function(t){e.$set(e.searchPanelValue,"fieldModule",t)},expression:"searchPanelValue.fieldModule"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"标题:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.title,callback:function(t){e.$set(e.searchPanelValue,"title",t)},expression:"searchPanelValue.title"}})],1)],1),r("div",{staticClass:"search-button-group"},[r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("span",{staticClass:"search-tip"},[e._v("//只展示审批完成的数据")])],1)],1),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange,"select-data-change":e.selectDataChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["fileName"===t.customSlot?r("div",{key:a+""+o},[i.fileName?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleFileClick(i)}}},[e._v(e._s(i.fileName))]):e._e()]):e._e(),"operation"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDownload(i)}}},[e._v("下载")])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[r("x-empty-page")],1)])],2)],1)])},R6=[],F6={name:"ReportCheck",data:function(){return{searchPanelValue:{manufacturer:"",model:"",productNo:"",module:"",platform:"",series:"",segmentMarket:"",projectName:"",projectNo:"",fieldModule:"",title:""},tableData:[],pagination:{currentPage:1,pageSize:10,total:0}}},computed:{tableConfig:function(){return{rowDraggable:!1,colConfigs:[{prop:"title",label:"标题",showOverflowTooltip:!0,minWidth:"120"},{prop:"manufacturerName",label:"厂家名称(全称)",showOverflowTooltip:!0,minWidth:"150"},{prop:"productModel",label:"产品型号(全称)",showOverflowTooltip:!0,minWidth:"150"},{prop:"fieldModule",label:"领域/模块",showOverflowTooltip:!0,minWidth:"120"},{prop:"productNo",label:"产品编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"module",label:"板块",showOverflowTooltip:!0,minWidth:"100"},{prop:"platform",label:"平台",showOverflowTooltip:!0,minWidth:"100"},{prop:"series",label:"系列",showOverflowTooltip:!0,minWidth:"100"},{prop:"segmentMarket",label:"细分市场",showOverflowTooltip:!0,minWidth:"120"},{prop:"projectName",label:"项目名称",showOverflowTooltip:!0,minWidth:"140"},{prop:"projectNo",label:"项目编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"uploadTime",label:"上传时间",showOverflowTooltip:!0,minWidth:"150"},{prop:"fileName",label:"文件名",customSlot:"fileName",showOverflowTooltip:!0,minWidth:"150"},{prop:"operation",label:"操作",customSlot:"operation",align:"center",width:"80",fixed:"right"}],seqType:"",seqConfig:{},layout:"total, prev, pager, next, sizes, jumper",pageConfig:{}}}},created:function(){this.loadData()},methods:{pageSizeChange:function(e){this.pagination.pageSize=e,this.pagination.currentPage=1,this.loadData()},rowClickEvent:function(e){console.warn(e)},handleFileClick:function(e){this.$message&&this.$message.info&&this.$message.info("点击文件名:"+(e.fileName||""))},handleDownload:function(e){this.$message&&this.$message.info&&this.$message.info("下载:"+(e.fileName||""))},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={manufacturer:"",model:"",productNo:"",module:"",platform:"",series:"",segmentMarket:"",projectName:"",projectNo:"",fieldModule:"",title:""},this.handleSearch()},handleSearch:function(){this.pagination.currentPage=1,this.loadData()},loadData:function(){var e=this.tableConfig.colConfigs,t=e.filter((function(e){return e.prop&&"operation"!==e.prop})).map((function(e){return e.prop}));this.tableData=Array.from({length:50},(function(e,r){var a={};return t.forEach((function(e){switch(e){case"title":a[e]="XXXX";break;case"manufacturerName":a[e]=r%2===0?"XXXXXXXX":"XXXXX";break;case"productModel":a[e]="";break;case"fieldModule":a[e]="";break;case"productNo":a[e]="";break;case"module":a[e]="";break;case"platform":a[e]="";break;case"series":a[e]="";break;case"segmentMarket":a[e]="";break;case"projectName":a[e]="";break;case"projectNo":a[e]="";break;case"uploadTime":var t=new Date;t.setDate(t.getDate()-r),a[e]=t.toLocaleDateString("zh-CN").replace(/\//g,"-")+" "+t.toLocaleTimeString("zh-CN",{hour12:!1}).slice(0,8);break;case"fileName":a[e]=r%3===2?"":"XXXXXX文件名";break;default:a[e]=""}})),a}));var r=(this.pagination.currentPage-1)*this.pagination.pageSize,a=r+this.pagination.pageSize;this.tableData=this.tableData.slice(r,a),this.pagination.total=50}}},j6=F6,V6=(r("cb20"),d(j6,L6,R6,!1,null,"9b434c4a",null)),$6=V6.exports,B6=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showReportDetail?r("report-detail",{attrs:{detail:e.currentReportDetail,"from-todo":e.fromTodo,"can-resend":e.canResend},on:{close:e.closeReportDetail,refresh:e.handleReportDetailRefresh}}):[r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 对标报告 ")]),r("div",{staticClass:"operation"},[e.hasReportEditPermission()?r("el-button",{attrs:{type:"primary"},on:{click:e.handleCreate}},[e._v(" 新增 ")]):e._e()],1)]),r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"searched-fields"},[r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("厂家")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.manufacturerName,callback:function(t){e.$set(e.searchPanelValue,"manufacturerName",t)},expression:"searchPanelValue.manufacturerName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("型号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.modelName,callback:function(t){e.$set(e.searchPanelValue,"modelName",t)},expression:"searchPanelValue.modelName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("产品编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.productNumber,callback:function(t){e.$set(e.searchPanelValue,"productNumber",t)},expression:"searchPanelValue.productNumber"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("板块")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.plate,callback:function(t){e.$set(e.searchPanelValue,"plate",t)},expression:"searchPanelValue.plate"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("平台")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.platform,callback:function(t){e.$set(e.searchPanelValue,"platform",t)},expression:"searchPanelValue.platform"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("系列")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.series,callback:function(t){e.$set(e.searchPanelValue,"series",t)},expression:"searchPanelValue.series"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("细分市场")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.marketSegment,callback:function(t){e.$set(e.searchPanelValue,"marketSegment",t)},expression:"searchPanelValue.marketSegment"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("项目名称")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectName,callback:function(t){e.$set(e.searchPanelValue,"projectName",t)},expression:"searchPanelValue.projectName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("项目编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectNumber,callback:function(t){e.$set(e.searchPanelValue,"projectNumber",t)},expression:"searchPanelValue.projectNumber"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("领域/模块")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.module,callback:function(t){e.$set(e.searchPanelValue,"module",t)},expression:"searchPanelValue.module"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("状态")]),r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.searchPanelValue.status,callback:function(t){e.$set(e.searchPanelValue,"status",t)},expression:"searchPanelValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("标题")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.title,callback:function(t){e.$set(e.searchPanelValue,"title",t)},expression:"searchPanelValue.title"}})],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange,"select-data-change":e.selectDataChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customHeadSlot,fn:function(n){var i=n.column;return[t.customHeadSlot?r("div",{key:a},[e._v(" "+e._s(i)+" "+e._s(t)+" ")]):e._e()]}}})),e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["status"===t.customSlot?r("div",{key:a+""+o},["APPROVING"===i[t.prop]?r("span",{staticStyle:{background:"#E6A23C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" 审核中 ")]):"COMPLETE"===i[t.prop]?r("span",{staticStyle:{background:"#67C23A",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" 已完成 ")]):"DRAFT"===i[t.prop]&&0===i.returnNum?r("span",{staticStyle:{background:"#909399",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" 草稿 ")]):"DRAFT"===i[t.prop]&&i.returnNum>0?r("span",{staticStyle:{background:"#F56C6C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" 已拒绝 ")]):r("span",{staticStyle:{background:"#909399",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" - ")])]):e._e(),"options"===t.customSlot?r("div",{key:"op"+a+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowView(i)}}},[e._v(" 查看 ")]),r("span",{staticStyle:{width:"6px",display:"inline-block"}}),"DRAFT"===i.status&&e.hasReportEditPermission()&&0===i.returnNum?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleEdit(i)}}},[e._v(" 修改 ")]):e._e(),"DRAFT"===i.status&&e.hasReportEditPermission()&&0===i.returnNum?r("span",{staticStyle:{width:"6px",display:"inline-block"}}):e._e(),"DRAFT"===i.status&&0===i.returnNum?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleLaunch(i)}}},[e._v(" 发起 ")]):e._e(),i.status&&""!==i.status&&"DRAFT"!==i.status?e._e():r("span",{staticStyle:{width:"6px",display:"inline-block"}}),"REJECTED"===i.status&&e.hasReportEditPermission()?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleEdit(i)}}},[e._v(" 修改 ")]):e._e(),"REJECTED"===i.status?r("span",{staticStyle:{width:"6px",display:"inline-block"}}):e._e(),i.filePath?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDownload(i)}}},[e._v(" 下载 ")]):e._e(),"DRAFT"===i.status||"REJECTED"===i.status?r("span",{staticStyle:{width:"6px",display:"inline-block"}}):e._e(),"DRAFT"===i.status||"REJECTED"===i.status&&e.hasReportEditPermission()?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],r("el-dialog",{attrs:{title:"edit"===e.dialogMode?"修改报告":"新增报告",visible:e.createDialogVisible,width:"900px","close-on-click-modal":!1,modal:!1,"custom-class":"create-report-dialog"},on:{"update:visible":function(t){e.createDialogVisible=t},close:e.handleDialogClose}},[r("div",{staticClass:"dialog-body-wrapper"},[r("el-form",{ref:"createForm",attrs:{model:e.createFormData,rules:e.createFormRules,"label-width":"150px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:22}},[r("el-form-item",{attrs:{label:"流程主题",prop:"processTitle"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.processTitle,callback:function(t){e.$set(e.createFormData,"processTitle",t)},expression:"createFormData.processTitle"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"标题名称",prop:"title"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.title,callback:function(t){e.$set(e.createFormData,"title",t)},expression:"createFormData.title"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"厂家名称(全称)",prop:"manufacturerName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.manufacturerName,callback:function(t){e.$set(e.createFormData,"manufacturerName",t)},expression:"createFormData.manufacturerName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品型号(全称)",prop:"modelName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.modelName,callback:function(t){e.$set(e.createFormData,"modelName",t)},expression:"createFormData.modelName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"厂家简称",prop:"manufacturerAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.manufacturerAbbreviation,callback:function(t){e.$set(e.createFormData,"manufacturerAbbreviation",t)},expression:"createFormData.manufacturerAbbreviation"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品型号简称",prop:"modelAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.modelAbbreviation,callback:function(t){e.$set(e.createFormData,"modelAbbreviation",t)},expression:"createFormData.modelAbbreviation"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品编号",prop:"productNumber"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.productNumber,callback:function(t){e.$set(e.createFormData,"productNumber",t)},expression:"createFormData.productNumber"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"领域/模块",prop:"module"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.module,callback:function(t){e.$set(e.createFormData,"module",t)},expression:"createFormData.module"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"板块",prop:"plate"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.plate,callback:function(t){e.$set(e.createFormData,"plate",t)},expression:"createFormData.plate"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"平台",prop:"platform"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.platform,callback:function(t){e.$set(e.createFormData,"platform",t)},expression:"createFormData.platform"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"系列",prop:"series"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.series,callback:function(t){e.$set(e.createFormData,"series",t)},expression:"createFormData.series"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"细分市场",prop:"marketSegment"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.marketSegment,callback:function(t){e.$set(e.createFormData,"marketSegment",t)},expression:"createFormData.marketSegment"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目名称",prop:"projectName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.projectName,callback:function(t){e.$set(e.createFormData,"projectName",t)},expression:"createFormData.projectName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目编号",prop:"projectNumber"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.projectNumber,callback:function(t){e.$set(e.createFormData,"projectNumber",t)},expression:"createFormData.projectNumber"}})],1)],1)],1),r("el-form-item",{attrs:{label:"附件上传",prop:"attachments"}},[r("el-upload",{ref:"upload",attrs:{"auto-upload":!1,"on-change":e.handleFileChange,"on-remove":e.handleFileRemove,"file-list":e.fileList,limit:1,accept:".doc,.docx,.pdf,.xls,.xlsx,.ppt,.pptx"}},[r("el-button",{attrs:{type:"primary",icon:"el-icon-upload"}},[e._v(" 选择文件 ")]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 支持扩展名: .doc .docx .pdf .xls .xlsx .ppt .pptx,仅支持上传一个文件 ")])],1)],1),r("el-form-item",{attrs:{label:"说明",prop:"explanation"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入"},model:{value:e.createFormData.explanation,callback:function(t){e.$set(e.createFormData,"explanation",t)},expression:"createFormData.explanation"}})],1),r("el-form-item",{attrs:{label:"审批环节",prop:"approvalWorkflowSteps"}},[r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])]),r("tbody",e._l(e.approvalWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"",placeholder:"请选择","remote-method":function(t){return e.handleRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])])],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)]),r("el-dialog",{attrs:{title:"发起",visible:e.launchDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.launchDialogVisible=t},close:e.handleLaunchDialogClose}},[r("div",{staticClass:"dialog-body-wrapper"},[r("div",{staticClass:"approval-process-title"},[r("div",{staticClass:"description-label"},[e._v(" 流程主题 "),r("span",{staticClass:"required-mark"},[e._v("*")])]),r("el-input",{attrs:{maxlength:"100","show-word-limit":"",placeholder:"请输入流程主题"},model:{value:e.launchProcessTitle,callback:function(t){e.launchProcessTitle=t},expression:"launchProcessTitle"}})],1),r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-title"},[e._v(" 审批环节 ")]),r("div",{staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])]),r("tbody",e._l(e.launchWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"",placeholder:"请选择","remote-method":function(t){return e.handleLaunchRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleLaunchHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleLaunchDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.launching},on:{click:e.handleLaunchSubmit}},[e._v(" 确定 ")])],1)]),r("el-dialog",{attrs:{title:"审核",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"审核"}},[r("el-radio-group",{model:{value:e.approvalFormData.result,callback:function(t){e.$set(e.approvalFormData,"result",t)},expression:"approvalFormData.result"}},[r("el-radio",{attrs:{label:"PASS"}},[e._v(" 通过 ")]),r("el-radio",{attrs:{label:"REJECT"}},[e._v(" 退回 ")])],1)],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入备注"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1)],2)},z6=[];function G6(e){return G6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G6(e)}function U6(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U6=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new C(n||[]);return a(o,"_invoke",{value:x(e,r,s)}),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==G6(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function W6(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function H6(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){W6(i,a,n,o,s,"next",e)}function s(e){W6(i,a,n,o,s,"throw",e)}o(void 0)}))}}function q6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Y6(e){for(var t=1;t0){var i=n.map((function(e){return e.name})).join("、");a(new Error('请为必填环节"'.concat(i,'"选择处理人')))}else a()},trigger:"change"}]},approvalWorkflowSteps:[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],approvalDialogVisible:!1,approvalFormData:{result:"",opinion:""},approvalSubmitting:!1,currentApprovalRow:null,showReportDetail:!1,currentReportDetail:null,downloadingRowId:"",canViewData:!1}},computed:{tableConfig:function(){return{rowDraggable:!1,colConfigs:[{prop:"title",label:"标题",showOverflowTooltip:!0,minWidth:"120"},{prop:"manufacturerName",label:"厂家名称",showOverflowTooltip:!0,minWidth:"140"},{prop:"productNumber",label:"产品型号",showOverflowTooltip:!0,minWidth:"160"},{prop:"module",label:"领域/模块",showOverflowTooltip:!0,minWidth:"120"},{prop:"plate",label:"板块",showOverflowTooltip:!0,minWidth:"100"},{prop:"platform",label:"平台",showOverflowTooltip:!0,minWidth:"100"},{prop:"series",label:"系列",showOverflowTooltip:!0,minWidth:"100"},{prop:"marketSegment",label:"细分市场",showOverflowTooltip:!0,minWidth:"120"},{prop:"projectName",label:"项目名称",showOverflowTooltip:!0,minWidth:"140"},{prop:"projectNumber",label:"项目编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"status",label:"状态",customSlot:"status",align:"center",minWidth:"100",fixed:"right"},{prop:"options",label:"操作",customSlot:"options",align:"center",width:"200",fixed:"right"}],seqType:"seq",seqConfig:{fixed:!0},layout:"total, prev, pager, next, sizes"}}},mounted:function(){var e=this;this.hasViewPermission()?(this.canViewData=!0,this.loadData()):(this.canViewData=!1,this.tableData=[]),this.loadUserSelfRole().then((function(){e.hasViewPermission()?(e.canViewData=!0,0===e.tableData.length&&e.loadData()):(e.canViewData=!1,e.tableData=[])})).catch((function(){console.error("加载权限数据失败")}))},methods:{isAdmin:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){return 1===e.isAdmin||"1"===e.isAdmin}))}catch(r){return console.error("检查管理员权限失败:",r),!1}},hasViewPermission:function(){if(this.isAdmin())return!0;try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){var t=e.permissionPath||"";return t.includes("对标报告")}))}catch(r){return console.error("检查查看权限失败:",r),!1}},hasReportEditPermission:function(){if(this.isAdmin())return!0;try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return"对标报告"===t&&"编辑"===r}))}catch(r){return console.error("检查报告编辑权限失败:",r),!1}},loadUserSelfRole:function(){var e=this,t=Y6(Y6({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});return new Promise((function(r,a){e.$request(t).asyncThen((function(e){if(e&&e.data)try{localStorage.setItem("user_self_role",JSON.stringify(e.data)),r(e.data)}catch(t){console.error("存储权限数据到 localStorage 失败:",t),a(t)}else r(null)})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e),a(e)}))}))},handleCreate:function(){var e=this;this.dialogMode="create",this.currentRestartRow=null,this.currentEditRow=null,this.createFormData={title:"",manufacturerName:"",modelName:"",manufacturerAbbreviation:"",modelAbbreviation:"",productNumber:"",module:"",plate:"",fileUrl:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",explanation:"",processTitle:""},this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],this.fileList=[],this.selectedFile=null,this.createDialogVisible=!0,this.$nextTick((function(){e.$refs.createForm&&e.$refs.createForm.clearValidate()}))},handleEdit:function(e){var t=this;this.dialogMode="edit",this.currentEditRow=e,this.currentRestartRow=null,this.originalProcessTitle=e.processTitle||"",this.createFormData={title:e.title||"",manufacturerName:e.manufacturerName||"",modelName:e.modelName||"",manufacturerAbbreviation:e.manufacturerAbbreviation||"",modelAbbreviation:e.modelAbbreviation||"",productNumber:e.productNumber||"",module:e.module||"",plate:e.plate||"",fileUrl:e.fileUrl||e.filePath||"",platform:e.platform||"",series:e.series||"",marketSegment:e.marketSegment||"",projectName:e.projectName||"",projectNumber:e.projectNumber||"",explanation:e.explanation||"",processTitle:e.processTitle||""},e.fileUrl||e.filePath?this.fileList=[{name:e.title||"文件",url:e.fileUrl||e.filePath}]:this.fileList=[],this.selectedFile=null,this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],e.flowId&&this.loadApprovalUsers(e.flowId),this.createDialogVisible=!0,this.$nextTick((function(){t.$refs.createForm&&t.$refs.createForm.clearValidate()}))},handleLaunch:function(e){var t=this;this.currentLaunchRow=e,this.$confirm("确定发起审批吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r={reportId:e.reportId,flowId:e.flowId,userId:de()},a=Y6(Y6({},et.ADD_REPORT),{},{params:r,disableSuccessMsg:!0});t.$request(a).asyncThen((function(e){t.loadData()})).asyncErrorCatch((function(e){console.error("发起失败:",e),t.$message({type:"error",message:"发起失败,请重试"})}))})).catch((function(){t.$message({type:"info",message:"取消发起审批"})}))},handleLaunchDialogClose:function(){this.launchDialogVisible=!1,this.currentLaunchRow=null,this.launchProcessTitle="",this.launchWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}]},handleLaunchSubmit:function(){var e=this,t=this.launchWorkflowSteps.filter((function(e){return e.required&&(!e.handlers||0===e.handlers.length)}));if(t.length>0){var r=t.map((function(e){return e.name})).join("、");this.$message({type:"warning",message:'请为必填环节"'.concat(r,'"选择处理人')})}else if(this.currentLaunchRow){var a=(this.launchProcessTitle||"").trim();if(a){var n=this.currentLaunchRow.reportId||this.currentLaunchRow.id;if(n){var i=this.currentLaunchRow.flowId,o={reportId:n,flowId:i,userId:de()};this.launching=!0;var s=Y6(Y6({},et.ADD_REPORT),{},{params:o,disableSuccessMsg:!0});this.$request(s).asyncThen((function(t){e.launching=!1,e.handleLaunchDialogClose(),e.loadData(),e.$message({type:"success",message:"发起成功"})})).asyncErrorCatch((function(t){console.error("发起失败:",t),e.launching=!1,e.$message({type:"error",message:"发起失败,请重试"})}))}else this.$message({type:"error",message:"缺少报告ID"})}else this.$message({type:"warning",message:"请填写流程主题"})}else this.$message({type:"error",message:"缺少报告信息"})},handleLaunchRemoteSearch:function(e,t){var r=this.launchWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=Y6(Y6({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=i}else r.options=[]},handleLaunchHandlerChange:function(e,t){},handleDelete:function(e){var t=this;this.$confirm("确定删除该报告吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=Y6(Y6({},et.DELETE_REPORT),{},{params:{reportId:e.reportId},disableSuccessMsg:!0});t.$request(r).asyncThen((function(e){t.$message({type:"success",message:"删除成功"}),t.loadData()})).asyncErrorCatch((function(e){console.error("删除失败:",e),t.$message({type:"error",message:"删除失败"})}))}))},handleRestart:function(e){var t=this;this.dialogMode="restart",this.currentRestartRow=e,this.currentEditRow=null,this.createFormData={title:e.title||"",manufacturerName:e.manufacturerName||"",modelName:e.modelName||"",manufacturerAbbreviation:e.manufacturerAbbreviation||"",modelAbbreviation:e.modelAbbreviation||"",productNumber:e.productNumber||"",module:e.module||"",plate:e.plate||"",fileUrl:e.fileUrl||e.filePath||"",platform:e.platform||"",series:e.series||"",marketSegment:e.marketSegment||"",projectName:e.projectName||"",projectNumber:e.projectNumber||"",explanation:e.explanation||""},this.fileList=[],this.selectedFile=null,this.createDialogVisible=!0,this.$nextTick((function(){t.$refs.createForm&&t.$refs.createForm.clearValidate()}))},handleDialogClose:function(){this.createDialogVisible=!1,this.dialogMode="create",this.currentRestartRow=null,this.currentEditRow=null,this.createFormData={title:"",manufacturerName:"",modelName:"",manufacturerAbbreviation:"",modelAbbreviation:"",productNumber:"",module:"",plate:"",fileUrl:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",explanation:"",processTitle:""},this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],this.fileList=[],this.selectedFile=null,this.$refs.createForm&&this.$refs.createForm.clearValidate()},handleFileChange:function(e,t){var r=[".doc",".docx",".pdf",".xls",".xlsx",".ppt",".pptx"],a=e.name.toLowerCase(),n=r.some((function(e){return a.endsWith(e)}));if(!n)return this.$message.error("不支持的文件类型,仅支持 .doc .docx .pdf .xls .xlsx .ppt .pptx"),this.$refs.upload.handleRemove(e),!1;this.selectedFile=e&&e.raw?e.raw:null,this.fileList=t.slice(-1)},handleFileRemove:function(e,t){this.selectedFile=null,this.fileList=[]},handleFileUpload:function(){var e=this;if(this.uploading||!this.selectedFile)return this.selectedFile,Promise.resolve(null);var t=this.selectedFile;console.log(t,2222);var r=new FormData;r.append("file",t),r.append("createBy",de());var a=Y6(Y6({},et.TEST_FILE_UPLOAD),{},{params:r,disableSuccessMsg:!0});this.uploading=!0;var n=this.$loading({lock:!0,text:"正在上传文件,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});return this.$upload(a,null,!1).then((function(t){console.log("文件上传成功:",t),n.close();var r="";if(t.data&&t){var a=t.data;r=a,e.createFormData.fileUrl=r}return r})).catch((function(t){throw console.error("文件上传失败:",t),n.close(),e.$message.error("文件上传失败,请重试"),t})).finally((function(){n&&n.close(),e.uploading=!1}))},handleSubmit:function(){var e=this;this.$refs.createForm.validate((function(t){if(!t)return!1;var r=function(){var t=H6(U6().mark((function t(){var r,a,n,i,o,s,l,c;return U6().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.selectedFile){t.next=14;break}return t.prev=1,t.next=4,e.handleFileUpload();case 4:r=t.sent,e.createFormData.fileUrl=r||"",e.createFormData.fileName=e.selectedFile.name,t.next=14;break;case 9:return t.prev=9,t.t0=t["catch"](1),console.error("文件上传失败:",t.t0),e.$message.error("文件上传失败,请重试"),t.abrupt("return");case 14:if(n=e.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),"edit"!==e.dialogMode||!e.currentEditRow||0!==e.currentEditRow.returnNum){t.next=26;break}if(i=e.currentEditRow.reportId||e.currentEditRow.id,o=(e.createFormData.processTitle||"").trim(),s=(e.originalProcessTitle||"").trim(),o===s||!e.currentEditRow.flowId){t.next=23;break}return l=Y6(Y6({},et.EDIT_APPROVAL_PROCESS_TITLE),{},{params:{flowId:e.currentEditRow.flowId,title:o},disableSuccessMsg:!0}),t.next=23,e.$request(l).asyncThen((function(){console.log("流程主题更新成功")})).asyncErrorCatch((function(t){throw console.error("更新流程主题失败:",t),e.$message.error("更新流程主题失败,请重试"),t}));case 23:a=Y6(Y6({},et.EDIT_REPORT),{},{params:Y6(Y6({reportId:i,flowId:e.currentEditRow.flowId||""},e.createFormData),{},{processTitle:e.createFormData.processTitle,nodeList:n,createBy:de(),userId:de()}),disableSuccessMsg:!0}),t.next=27;break;case 26:"edit"===e.dialogMode&&e.currentEditRow&&e.currentEditRow.returnNum>0?a=Y6(Y6({},et.RESTART_REPORT_APPROVAL),{},{params:Y6(Y6({reportId:e.currentEditRow.id||e.currentEditRow.reportId},e.createFormData),{},{nodeList:n,createBy:de(),userId:de()}),disableSuccessMsg:!0}):(c=e.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),a=Y6(Y6({},et.SAVE_REPORT),{},{params:Y6(Y6({},e.createFormData),{},{processTitle:e.createFormData.processTitle,nodeList:c,createBy:de(),userId:de()}),disableSuccessMsg:!0}));case 27:e.$request(a).asyncThen((function(t){e.handleDialogClose(),e.loadData(),e.$message({type:"success",message:"提交成功"})})).asyncErrorCatch((function(t){console.error("提交失败:",t),e.$message({type:"error",message:"提交失败"})}));case 28:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(){return t.apply(this,arguments)}}();r()}))},handleRemoteSearch:function(e,t){var r=this.approvalWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=Y6(Y6({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},loadApprovalUsers:function(e){var t=this;if(e){var r=Y6(Y6({},et.GET_REPORT_APPROVAL_USERS),{},{params:{flowId:e},disableSuccessMsg:!0});this.$request(r).asyncThen((function(e){console.log("获取审批流程信息:",e),t.fillApprovalUsersData(e,t.approvalWorkflowSteps)})).asyncErrorCatch((function(e){console.error("获取审批流程信息失败:",e)}))}},loadLaunchApprovalUsers:function(e){var t=this;if(e){var r=Y6(Y6({},et.GET_REPORT_APPROVAL_USERS),{},{params:{flowId:e},disableSuccessMsg:!0});this.$request(r).asyncThen((function(e){console.log("获取审批流程信息:",e),t.fillApprovalUsersData(e,t.launchWorkflowSteps);var r=null;(Array.isArray(e.data)||e.data&&!Array.isArray(e.data))&&(r=e.data),r&&!Array.isArray(r)&&(r.progressTitle||r.processTitle)&&(t.launchProcessTitle=r.progressTitle||r.processTitle||"")})).asyncErrorCatch((function(e){console.error("获取审批流程信息失败:",e)}))}},fillApprovalUsersData:function(e,t){var r,a,n=[],i=null;Array.isArray(e.data)?i=e.data:Array.isArray(null===(r=e.data)||void 0===r?void 0:r.data)?i=e.data.data:Array.isArray(null===(a=e.data)||void 0===a?void 0:a.result)?i=e.data.result:Array.isArray(e)?i=e:e.data&&!Array.isArray(e.data)&&(i=e.data),Array.isArray(i)?n=i:i&&Array.isArray(i.data)?n=i.data:i&&Array.isArray(i.result)?n=i.result:i&&Array.isArray(i.nodeList)?n=i.nodeList:i&&Array.isArray(i.flowNodes)&&(n=i.flowNodes),i&&!Array.isArray(i)&&(i.progressTitle||i.processTitle)&&t===this.approvalWorkflowSteps&&(this.createFormData.processTitle=i.progressTitle||i.processTitle||""),n&&n.length>0&&n.forEach((function(e){var r=e.nodeName||e.node||"";if(r){var a=t.find((function(e){return e.name===r}));if(a){var n=e.assignees||[];if(Array.isArray(n)&&0!==n.length){var i=n.map((function(e){var t=e.userId||e.id||"";return{userId:t,username:e.username||"",userNumber:e.userNumber||e.account||""}})).filter((function(e){return e.userId}));i.length>0&&(a.handlers=i.map((function(e){return e.userId})).filter(Boolean),a.options=i.map((function(e){return{userId:e.userId,username:e.username||"",userNumber:e.userNumber||""}})).filter((function(e){return e.userId})))}}}}))},handleDownloadTemplate:function(){},handleDownload:function(e){var t=document.createElement("a");t.href=e.filePath,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},handlePreview:function(e){this.$message&&this.$message.info&&this.$message.info("预览:"+(e.title||""))},handleApprove:function(e){var t=this;this.currentApprovalRow=e,this.approvalFormData={result:"",opinion:""},this.approvalDialogVisible=!0,this.$nextTick((function(){t.$refs.approvalForm&&t.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalFormData={result:"",opinion:""},this.currentApprovalRow=null,this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;if(this.approvalFormData.result)if(this.currentApprovalRow){var t={flowId:this.currentApprovalRow.flowId,userId:de(),result:this.approvalFormData.result,opinion:this.approvalFormData.opinion||""};this.approvalSubmitting=!0;var r=Y6(Y6({},et.START_REPORT_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.approvalSubmitting=!1,e.handleApprovalDialogClose(),e.loadData(),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.approvalSubmitting=!1,e.$message({type:"error",message:"审批提交失败,请重试"})}))}else this.$message({type:"error",message:"缺少审批信息"});else this.$message({type:"warning",message:"请选择审核结果(通过或退回)"})},pageSizeChange:function(e){this.pagination.pageSize=e},rowClickEvent:function(e){console.warn(e)},handleRowView:function(e){var t=e.reportId||e.id;t?(this.currentReportDetail={reportId:t,flowId:e.flowId},this.fromTodo=!1,this.showReportDetail=!0,e.returnNum>0?this.canResend=!0:this.canResend=!1):this.$message.error("缺少报告ID,无法查看详情")},closeReportDetail:function(){this.showReportDetail=!1,this.currentReportDetail=null},handleReportDetailRefresh:function(e){this.loadData(),e&&e.keepOpen||this.closeReportDetail()},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""},this.handleSearch()},handleSearch:function(){this.loadData()},handleRefresh:function(){this.pagination.currentPage=1,this.handleSearch()},loadData:function(){var e=this,t={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""};Object.keys(t).forEach((function(r){void 0!==e.searchPanelValue[r]&&null!==e.searchPanelValue[r]&&(t[r]=e.searchPanelValue[r])}));var r=Y6(Y6({},et.GET_REPORT_LIST),{},{params:Y6({pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize,createBy:de()},t),disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.tableData=t.data.result,e.pagination.total=t.data.count})).asyncErrorCatch((function(e){console.error("查询失败:",e)}))}}},Q6=J6,e8=(r("8033"),d(Q6,B6,z6,!1,null,null,null)),t8=e8.exports,r8=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showReportDetail?r("report-detail",{attrs:{detail:e.currentReportDetail},on:{close:e.closeReportDetail,refresh:e.handleReportDetailRefresh}}):[e._m(0),r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"searched-fields"},[r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("标题")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.templateName,callback:function(t){e.$set(e.searchPanelValue,"templateName",t)},expression:"searchPanelValue.templateName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("状态")]),r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.searchPanelValue.status,callback:function(t){e.$set(e.searchPanelValue,"status",t)},expression:"searchPanelValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("申请人")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.username,callback:function(t){e.$set(e.searchPanelValue,"username",t)},expression:"searchPanelValue.username"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("申请时间")]),r("el-date-picker",{attrs:{type:"date",placeholder:"请选择","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.searchPanelValue.createDate,callback:function(t){e.$set(e.searchPanelValue,"createDate",t)},expression:"searchPanelValue.createDate"}})],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange,"select-data-change":e.selectDataChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customHeadSlot,fn:function(n){var i=n.column;return[t.customHeadSlot?r("div",{key:a},[e._v(" "+e._s(i)+" "+e._s(t)+" ")]):e._e()]}}})),e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["status"===t.customSlot?r("div",{key:a+""+o},["APPROVING"===i[t.prop]?r("span",{staticStyle:{background:"#E6A23C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("审核中")]):"COMPLETE"===i[t.prop]?r("span",{staticStyle:{background:"#67C23A",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("已完成")]):"DRAFT"===i[t.prop]?r("span",{staticStyle:{background:"#909399",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("草稿")]):"REJECTED"===i[t.prop]?r("span",{staticStyle:{background:"#F56C6C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("已拒绝")]):r("span",{staticStyle:{background:"#909399",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("-")])]):e._e(),"options"===t.customSlot?r("div",{key:"op"+a+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowView(i)}}},[e._v("查看")]),r("span",{staticStyle:{width:"6px",display:"inline-block"}}),i.filePath?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDownload(i)}}},[e._v("下载")]):e._e()]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],r("el-dialog",{attrs:{title:"edit"===e.dialogMode?"修改报告":"新增报告",visible:e.createDialogVisible,width:"900px","close-on-click-modal":!1,modal:!1,"custom-class":"create-report-dialog"},on:{"update:visible":function(t){e.createDialogVisible=t},close:e.handleDialogClose}},[r("div",{staticClass:"dialog-body-wrapper"},[r("el-form",{ref:"createForm",attrs:{model:e.createFormData,rules:e.createFormRules,"label-width":"150px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"标题名称",prop:"title"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.title,callback:function(t){e.$set(e.createFormData,"title",t)},expression:"createFormData.title"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"厂家名称(全称)",prop:"manufacturerName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.manufacturerName,callback:function(t){e.$set(e.createFormData,"manufacturerName",t)},expression:"createFormData.manufacturerName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品型号(全称)",prop:"modelName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.modelName,callback:function(t){e.$set(e.createFormData,"modelName",t)},expression:"createFormData.modelName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"厂家简称",prop:"manufacturerAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.manufacturerAbbreviation,callback:function(t){e.$set(e.createFormData,"manufacturerAbbreviation",t)},expression:"createFormData.manufacturerAbbreviation"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品型号简称",prop:"modelAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.modelAbbreviation,callback:function(t){e.$set(e.createFormData,"modelAbbreviation",t)},expression:"createFormData.modelAbbreviation"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品编号",prop:"productNumber"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.productNumber,callback:function(t){e.$set(e.createFormData,"productNumber",t)},expression:"createFormData.productNumber"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"领域/模块",prop:"module"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.module,callback:function(t){e.$set(e.createFormData,"module",t)},expression:"createFormData.module"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"板块",prop:"plate"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.plate,callback:function(t){e.$set(e.createFormData,"plate",t)},expression:"createFormData.plate"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"平台",prop:"platform"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.platform,callback:function(t){e.$set(e.createFormData,"platform",t)},expression:"createFormData.platform"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"系列",prop:"series"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.series,callback:function(t){e.$set(e.createFormData,"series",t)},expression:"createFormData.series"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"细分市场",prop:"marketSegment"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.marketSegment,callback:function(t){e.$set(e.createFormData,"marketSegment",t)},expression:"createFormData.marketSegment"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目名称",prop:"projectName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.projectName,callback:function(t){e.$set(e.createFormData,"projectName",t)},expression:"createFormData.projectName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目编号",prop:"projectNumber"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.projectNumber,callback:function(t){e.$set(e.createFormData,"projectNumber",t)},expression:"createFormData.projectNumber"}})],1)],1)],1),r("el-form-item",{attrs:{label:"附件上传",prop:"attachments"}},[r("el-upload",{ref:"upload",attrs:{"auto-upload":!1,"on-change":e.handleFileChange,"on-remove":e.handleFileRemove,"file-list":e.fileList,limit:1,accept:".doc,.pdf,.xls,.xlsx,.ppt,.pptx"}},[r("el-button",{attrs:{type:"primary",icon:"el-icon-upload"}},[e._v(" 选择文件 ")]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("支持扩展名: .doc .pdf .xls .xlsx .ppt .pptx,仅支持上传一个文件")])],1)],1),r("el-form-item",{attrs:{label:"说明",prop:"explanation"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入"},model:{value:e.createFormData.explanation,callback:function(t){e.$set(e.createFormData,"explanation",t)},expression:"createFormData.explanation"}})],1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确定")])],1)]),r("el-dialog",{attrs:{title:"发起",visible:e.launchDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.launchDialogVisible=t},close:e.handleLaunchDialogClose}},[r("div",{staticClass:"dialog-body-wrapper"},[r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-title"},[e._v(" 审批环节 ")]),r("div",{staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])]),r("tbody",e._l(e.launchWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"请选择","remote-method":function(t){return e.handleLaunchRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleLaunchHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleLaunchDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.launching},on:{click:e.handleLaunchSubmit}},[e._v("确定")])],1)]),r("el-dialog",{attrs:{title:"审核",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"审核"}},[r("el-radio-group",{model:{value:e.approvalFormData.result,callback:function(t){e.$set(e.approvalFormData,"result",t)},expression:"approvalFormData.result"}},[r("el-radio",{attrs:{label:"PASS"}},[e._v(" 通过 ")]),r("el-radio",{attrs:{label:"REJECT"}},[e._v(" 退回 ")])],1)],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入备注"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1)],2)},a8=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 竞品报告审批流程 ")])])}];function n8(e){return n8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n8(e)}function i8(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i8=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new C(n||[]);return a(o,"_invoke",{value:x(e,r,s)}),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==n8(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function o8(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function s8(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){o8(i,a,n,o,s,"next",e)}function s(e){o8(i,a,n,o,s,"throw",e)}o(void 0)}))}}function l8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function c8(e){for(var t=1;t0){var r=t.map((function(e){return e.name})).join("、");this.$message.warning('请为必填环节"'.concat(r,'"选择处理人'))}else if(this.currentLaunchRow){var a=this.currentLaunchRow.reportId||this.currentLaunchRow.id;if(a){var n={reportId:a,proofreadUsers:this.launchWorkflowSteps[0].handlers,reviewUsers:this.launchWorkflowSteps[1].handlers,countersignUsers:[],approveUsers:this.launchWorkflowSteps[2].handlers};this.launching=!0;var i=c8(c8({},et.ADD_REPORT),{},{params:n,disableSuccessMsg:!0});this.$request(i).asyncThen((function(t){e.launching=!1,e.handleLaunchDialogClose(),e.loadData(),e.$message({type:"success",message:"发起成功"})})).asyncErrorCatch((function(t){console.error("发起失败:",t),e.launching=!1,e.$message.error("发起失败,请重试")}))}else this.$message.error("缺少报告ID")}else this.$message.error("缺少报告信息")},handleLaunchRemoteSearch:function(e,t){var r=this.launchWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=c8(c8({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=i}else r.options=[]},handleLaunchHandlerChange:function(e,t){},handleRestart:function(e){var t=this;this.dialogMode="restart",this.currentRestartRow=e,this.currentEditRow=null,this.createFormData={title:e.title||"",manufacturerName:e.manufacturerName||"",modelName:e.modelName||"",manufacturerAbbreviation:e.manufacturerAbbreviation||"",modelAbbreviation:e.modelAbbreviation||"",productNumber:e.productNumber||"",module:e.module||"",plate:e.plate||"",fileUrl:e.fileUrl||e.filePath||"",platform:e.platform||"",series:e.series||"",marketSegment:e.marketSegment||"",projectName:e.projectName||"",projectNumber:e.projectNumber||"",explanation:e.explanation||""},this.fileList=[],this.selectedFile=null,this.createDialogVisible=!0,this.$nextTick((function(){t.$refs.createForm&&t.$refs.createForm.clearValidate()}))},handleDialogClose:function(){this.createDialogVisible=!1,this.dialogMode="create",this.currentRestartRow=null,this.currentEditRow=null,this.createFormData={title:"",manufacturerName:"",modelName:"",manufacturerAbbreviation:"",modelAbbreviation:"",productNumber:"",module:"",plate:"",fileUrl:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",explanation:""},this.fileList=[],this.selectedFile=null,this.$refs.createForm&&this.$refs.createForm.clearValidate()},handleFileChange:function(e,t){var r=[".doc",".pdf",".xls",".xlsx",".ppt",".pptx"],a=e.name.toLowerCase(),n=r.some((function(e){return a.endsWith(e)}));if(!n)return this.$message.error("不支持的文件类型,仅支持 .doc .pdf .xls .xlsx .ppt .pptx"),this.$refs.upload.handleRemove(e),!1;this.selectedFile=e&&e.raw?e.raw:null,this.fileList=t.slice(-1)},handleFileRemove:function(e,t){this.selectedFile=null,this.fileList=[]},handleFileUpload:function(){var e=this;if(this.uploading||!this.selectedFile)return this.selectedFile,Promise.resolve(null);var t=this.selectedFile,r=new FormData;r.append("file",t),r.append("createBy",de());var a=c8(c8({},et.TEST_FILE_UPLOAD),{},{params:r,disableSuccessMsg:!0});this.uploading=!0;var n=this.$loading({lock:!0,text:"正在上传文件,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});return this.$upload(a,null,!1).then((function(t){console.log("文件上传成功:",t),n.close();var r="";if(t.data&&t){var a=t.data;r=a,e.createFormData.fileUrl=r}return r})).catch((function(t){throw console.error("文件上传失败:",t),n.close(),e.$message.error("文件上传失败,请重试"),t})).finally((function(){n&&n.close(),e.uploading=!1}))},handleSubmit:function(){var e=this;this.$refs.createForm.validate((function(t){if(!t)return!1;var r=function(){var t=s8(i8().mark((function t(){var r,a,n;return i8().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.selectedFile){t.next=13;break}return t.prev=1,t.next=4,e.handleFileUpload();case 4:r=t.sent,e.createFormData.fileUrl=r||"",t.next=13;break;case 8:return t.prev=8,t.t0=t["catch"](1),console.error("文件上传失败:",t.t0),e.$message.error("文件上传失败,请重试"),t.abrupt("return");case 13:"edit"===e.dialogMode&&e.currentEditRow?(n=e.currentEditRow.reportId||e.currentEditRow.id,a=c8(c8({},et.EDIT_REPORT),{},{params:c8(c8({reportId:n},e.createFormData),{},{createBy:de(),userId:de()})})):a="restart"===e.dialogMode&&e.currentRestartRow?c8(c8({},et.RESTART_REPORT_APPROVAL),{},{params:c8(c8({reportId:e.currentRestartRow.id||e.currentRestartRow.reportId},e.createFormData),{},{proofreadUsers:e.approvalWorkflowSteps[0].handlers,reviewUsers:e.approvalWorkflowSteps[1].handlers,countersignUsers:[],approveUsers:e.approvalWorkflowSteps[2].handlers,createBy:de(),userId:de()})}):c8(c8({},et.SAVE_REPORT),{},{params:c8(c8({},e.createFormData),{},{createBy:de(),userId:de()})}),e.$request(a).asyncThen((function(t){e.handleDialogClose(),e.loadData(),e.$message({type:"success",message:"提交成功"})})).asyncErrorCatch((function(t){console.error("提交失败:",t),e.$message({type:"error",message:"提交失败"})}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(){return t.apply(this,arguments)}}();r()}))},handleRemoteSearch:function(e,t){var r=this.approvalWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=c8(c8({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},handleDownloadTemplate:function(){},handleDownload:function(e){var t=document.createElement("a");t.href=e.filePath,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},handlePreview:function(e){this.$message&&this.$message.info&&this.$message.info("预览:"+(e.title||""))},handleApprove:function(e){var t=this;this.currentApprovalRow=e,this.approvalFormData={result:"",opinion:""},this.approvalDialogVisible=!0,this.$nextTick((function(){t.$refs.approvalForm&&t.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalFormData={result:"",opinion:""},this.currentApprovalRow=null,this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;if(this.approvalFormData.result)if(this.currentApprovalRow){var t={flowId:this.currentApprovalRow.flowId,userId:de(),result:this.approvalFormData.result,opinion:this.approvalFormData.opinion||""};this.approvalSubmitting=!0;var r=c8(c8({},et.START_REPORT_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.approvalSubmitting=!1,e.handleApprovalDialogClose(),e.loadData(),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.approvalSubmitting=!1,e.$message.error("审批提交失败,请重试")}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择审核结果(通过或退回)")},pageSizeChange:function(e){this.pagination.pageSize=e},rowClickEvent:function(e){console.warn(e)},handleRowView:function(e){var t=e.reportId||e.id;t?(this.currentReportDetail={reportId:t,flowId:e.flowId},this.showReportDetail=!0):this.$message.error("缺少报告ID,无法查看详情")},closeReportDetail:function(){this.showReportDetail=!1,this.currentReportDetail=null},handleReportDetailRefresh:function(){this.loadData(),this.closeReportDetail()},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""},this.handleSearch()},handleSearch:function(){this.loadData()},handleRefresh:function(){this.pagination.currentPage=1,this.handleSearch()},loadData:function(){var e=this,t={templateName:"",username:"",createDate:"",status:""};Object.keys(t).forEach((function(r){void 0!==e.searchPanelValue[r]&&null!==e.searchPanelValue[r]&&(t[r]=e.searchPanelValue[r])}));var r=c8(c8({},et.GET_REPORT_LIST_BY_CONDITION),{},{params:c8({pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize,userId:de()},t),disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.tableData=t.data.result,e.pagination.total=t.data.count})).asyncErrorCatch((function(e){console.error("查询失败:",e)}))}}},f8=h8,m8=(r("737c"),d(f8,r8,a8,!1,null,null,null)),g8=m8.exports,v8=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showEngineCheck?r("engine-check",{attrs:{detail:e.currentCheckDetail,"engine-type":"玉柴"},on:{close:e.closeEngineCheck}}):[e._m(0),r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"search-fields"},[r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("流程主题")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.processTopic,callback:function(t){e.$set(e.searchPanelValue,"processTopic",t)},expression:"searchPanelValue.processTopic"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("产品型号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.modelName,callback:function(t){e.$set(e.searchPanelValue,"modelName",t)},expression:"searchPanelValue.modelName"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("子系统")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.subsystemName,callback:function(t){e.$set(e.searchPanelValue,"subsystemName",t)},expression:"searchPanelValue.subsystemName"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("申请人")]),r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入申请人姓名搜索","remote-method":e.handleApplicantSearch,loading:e.applicantLoading,clearable:""},model:{value:e.searchPanelValue.applicant,callback:function(t){e.$set(e.searchPanelValue,"applicant",t)},expression:"searchPanelValue.applicant"}},e._l(e.applicantOptions,(function(t){return r("el-option",{key:t.userId,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("当前状态")]),r("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchPanelValue.statusDescription,callback:function(t){e.$set(e.searchPanelValue,"statusDescription",t)},expression:"searchPanelValue.statusDescription"}},[r("el-option",{attrs:{label:"审核中",value:"审核中"}}),r("el-option",{attrs:{label:"已通过",value:"已通过"}}),r("el-option",{attrs:{label:"已拒绝",value:"已拒绝"}})],1)],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["options"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleViewProgress(i)}}},[e._v(" 查看进度 ")])]):e._e(),"statusDescription"===t.customSlot?r("div",{key:a+""+o},["审核中"===i[t.prop]?r("span",{staticClass:"status-tag status-approving"},[e._v("审核中")]):"已通过"===i[t.prop]?r("span",{staticClass:"status-tag status-approved"},[e._v("已通过")]):"已拒绝"===i[t.prop]?r("span",{staticClass:"status-tag status-withdrawn"},[e._v("已拒绝")]):r("span",{staticClass:"status-tag status-default"},[e._v(e._s(i[t.prop]))])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],r("el-dialog",{attrs:{title:"审批",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,rules:e.approvalFormRules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"审批结果",prop:"operator"}},[r("el-radio-group",{model:{value:e.approvalFormData.operator,callback:function(t){e.$set(e.approvalFormData,"operator",t)},expression:"approvalFormData.operator"}},[r("el-radio",{attrs:{label:"PASS"}},[e._v(" 同意 ")]),r("el-radio",{attrs:{label:"REJECT"}},[e._v(" 拒绝 ")])],1)],1),r("el-form-item",{attrs:{label:"说明",prop:"comment"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入审批说明"},model:{value:e.approvalFormData.comment,callback:function(t){e.$set(e.approvalFormData,"comment",t)},expression:"approvalFormData.comment"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1)],2)},y8=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 玉柴发动机审核 ")])])}],b8=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("transition",{attrs:{name:"approval-progress-fade"}},[e.visible?r("div",{staticClass:"approval-progress-detail"},[r("div",{staticClass:"detail-panel"},[r("div",{staticClass:"detail-header"},[r("div",{staticClass:"header-left"},[r("el-button",{staticClass:"back-button",attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:e.handleBack}}),r("div",{staticClass:"header-info"},[r("div",{staticClass:"title"},[e._v(" "+e._s(e.titleText)+" ")])])],1),e.fromTodo&&!e.hideOperations?r("div",{staticClass:"header-right"},[r("el-button",{attrs:{size:"small"},on:{click:e.handleReturn}},[e._v(" 退回 ")]),e.canResend?r("el-button",{attrs:{size:"small",loading:e.resending},on:{click:e.handleResend}},[e._v(" 直送 ")]):e._e(),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSubmit}},[e._v(" 提交 ")])],1):e._e()]),r("div",{staticClass:"detail-content"},[r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",on:{click:e.toggleBasicInfo}},[e._v(" 基础信息 "),r("i",{staticClass:"collapse-icon",class:e.basicInfoCollapsed?"el-icon-caret-left":"el-icon-caret-bottom"})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.basicInfoCollapsed,expression:"!basicInfoCollapsed"}],staticClass:"info-grid"},[r("div",{staticClass:"info-item-full"},[r("span",{staticClass:"label"},[e._v("流程主题")]),e.isEditingProcessTitle?r("div",{staticClass:"process-title-input-wrapper"},[r("el-input",{staticClass:"process-title-input",attrs:{placeholder:"请输入流程主题",maxlength:"100","show-word-limit":""},model:{value:e.editingProcessTitle,callback:function(t){e.editingProcessTitle=t},expression:"editingProcessTitle"}},[r("template",{slot:"suffix"},[r("i",{staticClass:"el-icon-check process-title-icon",on:{click:e.handleSaveProcessTitle}}),r("i",{staticClass:"el-icon-close process-title-icon",on:{click:e.handleCancelProcessTitle}})])],2)],1):r("div",{staticClass:"value process-title-value-wrapper"},[e._v(" "+e._s(e.showTopDetail.processTitle||"--")+" "),r("i",{staticClass:"el-icon-edit process-title-edit-icon",on:{click:e.handleEditProcessTitle}})])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建人")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.createBy||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建时间")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.creationDate||e.showTopDetail.createTime||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前环节")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.currentNode||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前处理人")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.processor||"--"))])])])])]),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",on:{click:e.toggleDetailInfo}},[e._v(" 详细信息 "),r("i",{staticClass:"collapse-icon",class:e.detailInfoCollapsed?"el-icon-caret-left":"el-icon-caret-bottom"})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.detailInfoCollapsed,expression:"!detailInfoCollapsed"}],staticClass:"info-grid"},[r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("产品型号")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.modelName||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("状态代号")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.productNumber||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("板块")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.plate||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("平台")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.platform||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("系列")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.series||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("细分市场")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.marketSegment||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("项目名称")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.projectName||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("项目编号")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.projectNumber||"--"))])])]),"竞品"===e.engineType?[r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("厂家名称(全称)")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.manufacturerName||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("厂家简称")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.manufacturerAbbreviation||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("品牌")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.brand||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("生产日期")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.productionDate||"--"))])])])]:e._e()],2)]),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",on:{click:e.toggleApprovalContent}},[e._v(" 审批内容 "),r("i",{staticClass:"collapse-icon",class:e.approvalContentCollapsed?"el-icon-caret-left":"el-icon-caret-bottom"})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.approvalContentCollapsed,expression:"!approvalContentCollapsed"}]},[r("el-table",{staticClass:"change-table",attrs:{data:e.changeTable||[],border:"","max-height":500}},[r("el-table-column",{attrs:{label:"序号",type:"index",width:"60"}}),r("el-table-column",{attrs:{prop:"subsystemName",label:"子系统","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterType",label:"类型","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"partsName",label:"零部件名称","min-width":"140","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterName",label:"参数名称","min-width":"140","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterValue",label:"参数值","min-width":"160"}}),r("el-table-column",{attrs:{prop:"unit",label:"单位","min-width":"80","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"changeComment",label:"修改描述","min-width":"160"}})],1),r("div",{staticClass:"pagination-wrapper"},[r("el-pagination",{attrs:{"current-page":e.changeTablePageNumber,"page-size":e.changeTablePageSize,total:e.changeTableTotal,layout:"total, prev, pager, next, jumper, sizes","page-sizes":[10,20,50,100,9999],"popper-class":"pagination-select-dropdown"},on:{"current-change":e.handlePageChange,"size-change":e.handlePageSizeChange}})],1),e.progressDetail.description?r("div",{staticClass:"description-block"},[r("span",{staticClass:"label"},[e._v("说明:")]),r("span",{staticClass:"value"},[e._v(e._s(e.detailOption))])]):e._e()],1)]),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",on:{click:e.toggleApprovalFlow}},[e._v(" 审批流程 "),r("i",{staticClass:"collapse-icon",class:e.approvalFlowCollapsed?"el-icon-caret-left":"el-icon-caret-bottom"})]),e.timelineNodes&&e.timelineNodes.length>0?r("div",{directives:[{name:"show",rawName:"v-show",value:!e.approvalFlowCollapsed,expression:"!approvalFlowCollapsed"}],staticClass:"approval-timeline"},[r("el-timeline",e._l(e.timelineNodes,(function(t,a){return r("el-timeline-item",{key:a,attrs:{color:e.getTimelineColor(t.result||t.status,a,e.timelineNodes.length)}},[r("div",{staticClass:"timeline-item-content"},[r("div",{staticClass:"node-title"},[e._v(" "+e._s(t.title)+" ")]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"node-info"},[r("div",{staticClass:"node-user"},[e._v(" "+e._s(t.userName||"--")+" "),r("span",{staticClass:"node-time"},[e._v(" "+e._s(t.operateTime)+" ")])])]),r("div",{staticClass:"node-status",class:e.getStatusClass(t.result||t.status)},[e._v(" "+e._s(e.setStatusText(t.result||t.status))+" ")]),t.opinion?r("div",{staticClass:"node-opinion"},[e._v(" 审批意见:"+e._s(t.opinion)+" ")]):e._e()])])])})),1)],1):r("div",{directives:[{name:"show",rawName:"v-show",value:!e.approvalFlowCollapsed,expression:"!approvalFlowCollapsed"}],staticClass:"empty-progress"},[r("span",{staticClass:"empty-text"},[e._v("暂无审批流程数据")])])])])])]):e._e()]),r("el-dialog",{attrs:{title:e.approvalDialogTitle,visible:e.approvalDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"reject"===e.approvalActionType?"退回意见:":"提交意见:",prop:"comment"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"reject"===e.approvalActionType?"请输入退回意见":"请输入提交意见"},model:{value:e.approvalFormData.comment,callback:function(t){e.$set(e.approvalFormData,"comment",t)},expression:"approvalFormData.comment"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择退回节点",visible:e.returnNodeDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.returnNodeDialogVisible=t},close:e.handleReturnNodeDialogClose}},[r("div",{staticClass:"return-node-dialog-content"},[r("el-radio-group",{on:{change:e.handleReturnNodeChange},model:{value:e.selectedReturnNode,callback:function(t){e.selectedReturnNode=t},expression:"selectedReturnNode"}},e._l(e.returnableNodes,(function(e){return r("el-radio",{key:e,attrs:{label:e}})})),1),"编制"===e.selectedReturnNode?r("div",{staticClass:"return-opinion-section"},[r("div",{staticClass:"opinion-label"},[e._v(" 退回意见: ")]),r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入退回意见"},model:{value:e.returnOpinion,callback:function(t){e.returnOpinion=t},expression:"returnOpinion"}})],1):e._e()],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleReturnNodeDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.returnSubmitting,disabled:!e.selectedReturnNode},on:{click:e.handleReturnSubmit}},[e._v(" 确定 ")])],1)])],1)},_8=[];function x8(e){return x8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x8(e)}function w8(e){return T8(e)||C8(e)||S8(e)||D8()}function D8(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S8(e,t){if(e){if("string"===typeof e)return I8(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I8(e,t):void 0}}function C8(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function T8(e){if(Array.isArray(e))return I8(e)}function I8(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0)return{progressTitle:this.progressDetailData.progressTitle||"",contentName:this.progressDetailData.contentName||"",templateVersion:this.progressDetailData.templateVersion||"",explanation:this.progressDetailData.explanation||"",description:this.progressDetailData.explanation||this.progressDetailData.description||""};var e={approvalNumber:"",approvalId:"",currentNode:"",currentProcessor:"",processTitle:"",modelName:"",id:"",createBy:"",creationDate:"",applicant:"",department:"",submitTime:"",description:"",changeTable:[],progress:[]};return Object.assign(e,this.detail||{})},currentNode:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.node||"--";var t=this.flowNodes[this.flowNodes.length-1];return t&&t.node||"--"}return"--"},currentProcessor:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.undoUserName||e.todoUserName||"--"}return"--"},initiateNode:function(){return this.detail&&this.detail.createBy?{userName:this.detail.createBy,createTime:this.detail.createdTime||this.detail.createTime,status:"INITIATE",result:"INITIATE"}:null},timelineNodes:function(){var e=[];if(this.flowNodes&&this.flowNodes.length>0?this.flowNodes.forEach((function(t){e.push({title:t.node||"审批节点",userName:t.todoUserName||t.undoUserName||t.userName||"--",operateTime:t.approvalTime||t.operateTime||t.handleTime||t.createTime||"",result:t.result||"",status:t.status||t.result||"",opinion:t.opinion||(t.opinions&&Array.isArray(t.opinions)&&t.opinions.length>0?t.opinions[0]:null)||null})})):this.progress&&this.progress.length>0&&this.progress.forEach((function(t){t.steps&&t.steps.length>0&&t.steps.forEach((function(r){e.push({title:t.title||"审批节点",userName:r.userName,operateTime:r.approvalTime||r.handleTime||r.createTime,result:r.result||r.status,status:r.result||r.status,opinion:r.opinion||r.remark||r.comment||null})}))})),e.length>0){var t=e[0],r=t.result||t.status||"";"STAY"!==r&&"待审批"!==r||(t.result="APPROVING",t.status="APPROVING")}return e},approvalFormRules:function(){return{comment:[{required:!0,message:"请输入意见",trigger:"blur"}]}}},mounted:function(){this.getApprovalDetail(),this.canResendApproval()},methods:{toggleBasicInfo:function(){this.basicInfoCollapsed=!this.basicInfoCollapsed},toggleDetailInfo:function(){this.detailInfoCollapsed=!this.detailInfoCollapsed},toggleApprovalContent:function(){this.approvalContentCollapsed=!this.approvalContentCollapsed},toggleApprovalFlow:function(){this.approvalFlowCollapsed=!this.approvalFlowCollapsed},canResendApproval:function(){var e=this,t=A8(A8({},et.CHECK_DATA_CAN_RETURN),{},{params:{flowId:this.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t),e.canResend=t.data||!1})).asyncErrorCatch((function(t){console.error("获取是否可以直送失败:",t),e.canResend=!1}))},getApprovalChange:function(){var e=this,t=A8(A8({},et.CHANGE_ENGINE_DATA),{},{params:{modelID:this.detail.modelId,userID:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t),e.changeTable=t.data,e.changeTableTotal=t.data.length})).asyncErrorCatch((function(e){console.error("获取审批变更失败:",e)}))},getApprovalDetail:function(){var e=this,t=A8(A8({},et.GET_ENGINE_CHECK_DETAIL),{},{params:{approvalId:this.detail.id,userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r;console.log(t);var a=[];t.data?(e.showTopDetail={processTitle:t.data.processTitle,createBy:t.data.createBy,creationDate:t.data.createTime,currentNode:"已拒绝"===t.data.approvalStatus?"编制":t.data.currentNode||"",processor:"已拒绝"===t.data.approvalStatus?t.data.createBy:t.data.processor||""},t.data.model?e.modelDetail={modelName:t.data.model.modelName||"",productNumber:t.data.model.productNumber||"",plate:t.data.model.plate||"",platform:t.data.model.platform||"",series:t.data.model.series||"",marketSegment:t.data.model.marketSegment||"",projectName:t.data.model.projectName||"",projectNumber:t.data.model.projectNumber||"",manufacturerName:t.data.model.manufacturerName||"",manufacturerAbbreviation:t.data.model.manufacturerAbbreviation||"",brand:t.data.model.brand||"",productionDate:t.data.model.productionDate||""}:e.modelDetail={modelName:"",productNumber:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",manufacturerName:"",manufacturerAbbreviation:"",brand:"",productionDate:""},t.data.list&&Array.isArray(t.data.list)?(a=t.data.list,e.changeTableTotal=t.data.total||t.data.totalCount||t.data.count||a.length):t.data.activitiDataDTOS?(a=Array.isArray(t.data.activitiDataDTOS)?t.data.activitiDataDTOS:[],e.changeTableTotal=t.data.total||t.data.totalCount||t.data.count||a.length):Array.isArray(t.data)?(a=t.data,e.changeTableTotal=a.length):(a=[],e.changeTableTotal=0)):(a=[],e.changeTableTotal=0),e.changeTableAll=a,e.updatePagedData();var n=(null===(r=t.data)||void 0===r?void 0:r.flowNodes)||[],i=n,o=t.data||t;e.progressDetailData={explanation:o.explanation||"",flowStatus:o.flowStatus||"",progressTitle:o.progressTitle||o.processTitle||"",templateVersion:o.templateVersion||"",contentName:o.contentName||""},e.detailOption=o.explanation||o.description||"",o.flowNodes&&Array.isArray(o.flowNodes)?e.flowNodes=o.flowNodes:i&&i.length>0?e.flowNodes=i.map((function(e){return{node:e.node||"",result:e.operate||e.result||"",status:e.operate||e.result||"",todoUserName:e.approvedPerson||e.unapprovedPerson||"",undoUserName:e.unapprovedPerson||"",approvalTime:e.operateTime||e.handleTime||e.createTime||"",opinions:e.common||e.comment||e.opinion?[e.common||e.comment||e.opinion]:[],opinion:e.common||e.comment||e.opinion||null}})):e.flowNodes=[],e.activitiRecordDTOS=i}))},updatePagedData:function(){if(this.changeTableAll&&0!==this.changeTableAll.length){var e=(this.changeTablePageNumber-1)*this.changeTablePageSize,t=e+this.changeTablePageSize;this.changeTable=this.changeTableAll.slice(e,t)}else this.changeTable=[]},setStatusText:function(e){var t={PASS:"通过",REJECT:"拒绝",REFUSE:"驳回",APPROVE:"批准",APPROVING:"审批中",PENDING:"待处理",WAITING:"待处理",STAY:"待审批",INITIATE:"发起审批",RETURN:"退回",MSG:"通过","待审批":"待审批","审批中":"审批中","发起审批":"发起审批"};return void 0!==t[e]?t[e]:e||"待处理"},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},getTimelineColor:function(e,t,r){return"PASS"===e||"APPROVE"===e||"MSG"===e?"#67C23A":"REJECT"===e||"REFUSE"===e?"#F56C6C":"APPROVING"===e||"PENDING"===e||"WAITING"===e||"审批中"===e?"#E6A23C":"STAY"===e||"待审批"===e?"#909399":"#409EFF"},getStatusClass:function(e){var t={PASS:"status-pass",APPROVE:"status-approve",MSG:"status-pass",REJECT:"status-reject",REFUSE:"status-reject",APPROVING:"status-approving","审批中":"status-approving",PENDING:"status-pending",WAITING:"status-pending",STAY:"status-default","待审批":"status-default",INITIATE:"status-initiate","发起审批":"status-initiate",RETURN:"status-return"};return t[e]||"status-default"},getApprovalSpet:function(){var e=this,t=A8(A8({},et.GET_PPROVAL_ALL),{},{params:{flowId:this.detail.flowId,templateId:this.detail.templateId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r,a;console.log("审批流程数据:",t),e.detailOption=(null===(r=t.data)||void 0===r?void 0:r.explanation)||(null===(a=t.data)||void 0===a?void 0:a.description)||"";var n=[],i=t.data||t;if(i.proofreadNodes&&Array.isArray(i.proofreadNodes)&&i.proofreadNodes.length>0){var o=i.proofreadNodes;n.push({title:"校对",steps:e.deduplicateSteps(Array.isArray(o)?o:[o])})}if(i.reviewNodes&&Array.isArray(i.reviewNodes)&&i.reviewNodes.length>0){var s=i.reviewNodes;n.push({title:"审核",steps:e.deduplicateSteps(Array.isArray(s)?s:[s])})}if(i.countersignNodes&&Array.isArray(i.countersignNodes)&&i.countersignNodes.length>0){var l=i.countersignNodes;n.push({title:"会签",steps:e.deduplicateSteps(Array.isArray(l)?l:[l])})}if(i.approveNodes&&Array.isArray(i.approveNodes)&&i.approveNodes.length>0){var c=i.approveNodes;n.push({title:"批准",steps:e.deduplicateSteps(Array.isArray(c)?c:[c])})}0===n.length&&i&&(Array.isArray(i)?n=i.map((function(t){return{title:t.title||t.nodeType||t.name||"审批节点",steps:e.deduplicateSteps(Array.isArray(t.steps)?t.steps:Array.isArray(t.nodes)?t.nodes:[])}})):i.nodes&&Array.isArray(i.nodes)?n=i.nodes.map((function(t){return{title:t.title||t.nodeType||t.name||"审批节点",steps:e.deduplicateSteps(Array.isArray(t.steps)?t.steps:Array.isArray(t.nodes)?t.nodes:[])}})):i.processNodes&&Array.isArray(i.processNodes)&&(n=i.processNodes.map((function(t){return{title:t.title||t.nodeType||t.name||"审批节点",steps:e.deduplicateSteps(Array.isArray(t.steps)?t.steps:Array.isArray(t.nodes)?t.nodes:[])}})))),e.progress=n,console.log("处理后的流程数据:",e.progress)}))},handleBack:function(){this.$emit("close")},handleReturn:function(){var e=this;if(this.detail&&this.detail.flowId){var t=A8(A8({},et.GET_CAN_RETURN_DATA_NODE),{},{params:{flowId:this.detail.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t);var r=Array.isArray(t.data)?t.data:[];e.returnableNodes=["编制"].concat(w8(r))})).asyncErrorCatch((function(t){console.error("获取退回节点失败:",t),e.returnableNodes=["编制"]})),this.selectedReturnNode="",this.returnOpinion="拒绝",this.returnNodeDialogVisible=!0}else this.$message.error("缺少审批信息")},handleReturnNodeDialogClose:function(){this.returnNodeDialogVisible=!1,this.selectedReturnNode="",this.returnOpinion="拒绝"},handleReturnNodeChange:function(){"编制"!==this.selectedReturnNode?this.returnOpinion="":this.returnOpinion||(this.returnOpinion="拒绝")},handleReturnSubmit:function(){var e=this;if(this.selectedReturnNode)if(this.detail&&this.detail.flowId)if(this.returnSubmitting=!0,"编制"===this.selectedReturnNode){var t={approvalId:this.detail.id,operator:"REJECT",comment:this.returnOpinion||"",userId:de()},r=A8(A8({},et.HANDLE_ENGINE_CHECK),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.getApprovalDetail(),e.$message({message:"拒绝成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1})).asyncErrorCatch((function(t){console.error("拒绝失败:",t),e.$message({message:t.message||"拒绝失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else{var a=this.detail.createdById||"";if(!a)return this.$message.error("无法获取流程发起人信息"),void(this.returnSubmitting=!1);var n=de(),i={flowId:this.detail.flowId,nodeName:this.selectedReturnNode,createUserId:a,processUserId:n},o=A8(A8({},et.CAN_RETURN_DATA_NODE),{},{params:i,disableSuccessMsg:!0});this.$request(o).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.getApprovalDetail(),e.$message({message:"退回成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1})).asyncErrorCatch((function(t){console.error("退回失败:",t),e.$message({message:t.message||"退回失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择要退回的节点")},handleResend:function(){var e=this;this.detail&&this.detail.id?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0;var t=A8(A8({},et.RESEND_DATA_APPROVAL),{},{params:{approvalId:e.detail.id,userId:de()},disableSuccessMsg:!0});e.$request(t).asyncThen((function(t){e.getApprovalDetail(),e.$message({message:"直送成功",type:"success"}),e.$emit("refresh"),e.resending=!1})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1})).finally((function(){e.resending=!1}))})).catch((function(){})):this.$message.error("缺少审批ID,无法执行直送操作")},handleSubmit:function(){var e=this;this.approvalActionType="submit",this.approvalDialogTitle="提交",this.approvalFormData={operator:"同意",comment:""},this.approvalFormData.comment="同意",this.approvalDialogVisible=!0,this.$nextTick((function(){e.$refs.approvalForm&&e.$refs.approvalForm.clearValidate()}))},handleApprovalSubmit:function(){var e=this;this.$refs.approvalForm.validate((function(t){if(e.detail&&e.detail.id){var r=e.detail.id;if(r){var a="reject"===e.approvalActionType?"REJECT":"PASS",n={approvalId:r,operator:a,comment:e.approvalFormData.comment,userId:de()},i=A8(A8({},et.HANDLE_ENGINE_CHECK),{},{params:n,disableSuccessMsg:!0});e.approvalSubmitting=!0,e.$request(i).asyncThen((function(t){console.log("审批提交成功"),e.handleApprovalDialogClose(),e.getApprovalDetail(),e.$emit("refresh"),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message.error(t.message||"审批提交失败,请重试"),e.approvalSubmitting=!1})).finally((function(){e.approvalSubmitting=!1}))}else e.$message.error("缺少审批ID,无法提交审批")}else e.$message.error("缺少审批数据")}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalActionType="",this.approvalDialogTitle="审批",this.approvalFormData={operator:"同意",comment:""},this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handlePageChange:function(e){this.changeTablePageNumber=e,this.updatePagedData()},handlePageSizeChange:function(e){this.changeTablePageSize=e,this.changeTablePageNumber=1,this.updatePagedData()},changeTypeClass:function(e){return"create"===e?"change-create":"delete"===e?"change-delete":"update"===e?"change-update":"change-default"},deduplicateSteps:function(e){var t=this;if(!Array.isArray(e)||0===e.length)return[];var r=new Map,a=[];return e.forEach((function(e){var t=null;if(e.id)t="id_".concat(e.id);else{var n=e.userName||e.operator||e.username||e.handlerName||e.handler||"",i=e.approvalTime||e.handleTime||e.createTime||"",o=e.result||e.status||"";t="combo_".concat(n,"_").concat(i,"_").concat(o)}if(t)if(r.has(t)){var s=r.get(t),l=a[s],c=!!(e.approvalTime||e.handleTime||e.createTime),u=!!(l.approvalTime||l.handleTime||l.createTime);c&&!u&&(a[s]=e)}else r.set(t,a.length),a.push(e)})),a.map((function(e){var r=A8({},e);return r.approvalTime&&(r.approvalTime=t.formatTime(r.approvalTime)),r.handleTime&&(r.handleTime=t.formatTime(r.handleTime)),r.createTime&&(r.createTime=t.formatTime(r.createTime)),r}))},handleEditProcessTitle:function(){this.isEditingProcessTitle=!0,this.editingProcessTitle=this.showTopDetail.processTitle||""},handleCancelProcessTitle:function(){this.isEditingProcessTitle=!1,this.editingProcessTitle=""},handleSaveProcessTitle:function(){var e,t=this,r=this.flowId||(null===(e=this.detail)||void 0===e?void 0:e.flowId);if(r){var a=(this.editingProcessTitle||"").trim();a?this.$confirm("确认修改主题为".concat(a,"吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e=A8(A8({},et.EDIT_DATA_PROCESS_TITLE),{},{params:{flowId:r,title:a},disableSuccessMsg:!0});t.$request(e).asyncThen((function(e){t.showTopDetail.processTitle=a,t.isEditingProcessTitle=!1,t.editingProcessTitle="",t.$message({message:"修改成功",type:"success"})})).asyncErrorCatch((function(e){console.error("修改流程主题失败:",e),t.$message({message:e.message||"修改失败,请重试",type:"error"})}))})).catch((function(){})):this.$message.warning("流程主题不能为空")}else this.$message.error("缺少流程ID,无法保存")}}},E8=N8,L8=(r("ef8b"),r("8430"),d(E8,b8,_8,!1,null,"3047f45e",null)),R8=L8.exports;function F8(e){return F8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F8(e)}function j8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function V8(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function d9(e){return m9(e)||f9(e)||h9(e)||p9()}function p9(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h9(e,t){if(e){if("string"===typeof e)return g9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g9(e,t):void 0}}function f9(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function m9(e){if(Array.isArray(e))return g9(e)}function g9(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:[],i=u9(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(d9(n),[o.name]);if(o.id===r)return s;if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null},r=t(this.departmentList,e);return r?r.join("-"):""},handleDelete:function(e,t){var r=this;this.$confirm("确定要删除该记录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=y9(y9({},et.DELETE_MANAGER_DATA),{},{params:{rowId:e.rowId},disableSuccessMsg:!0});r.$request(t).asyncThen((function(e){r.loadManagerData()})).asyncErrorCatch((function(e){console.error("删除失败:",e),r.$message({type:"error",message:"删除失败"})}))})).catch((function(){}))},handleSizeChange:function(e){this.pagination.pageSize=e,this.pagination.currentPage=1,this.handleSearch()},handleCurrentChange:function(e){this.pagination.currentPage=e,this.handleSearch()},handleRefresh:function(){this.pagination.currentPage=1,this.loadManagerData()},formatDepartmentDisplay:function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t},handleDownloadTemplate:function(){var e=this,t=et.DOWNLOAD_DEMO_MANAGER_DATA||{},r=t.url,a=t.method,n=void 0===a?"get":a,i=t.headers,o=void 0===i?{}:i,s={url:r,method:n,responseType:"blob",headers:o,disableSuccessMsg:!0};s.url?this.$axios(s).then((function(t){var r=t.data;if(r){var a=t.headers&&(t.headers["content-type"]||t.headers["Content-Type"]);if(a&&a.includes("application/json"))try{var n=new FileReader;n.onload=function(){try{var t=JSON.parse(n.result);e.$message({type:"error",message:t.message||"下载失败"})}catch(r){e.$message({type:"error",message:"下载失败"})}},n.readAsText(r)}catch(d){console.error("解析下载失败响应异常:",d),e.$message({type:"error",message:"下载失败"})}else{var i=t.headers&&(t.headers["content-disposition"]||t.headers["Content-Disposition"]),o="导入模板.xlsx";if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(d){o=l}}var c=window.URL.createObjectURL(r),u=document.createElement("a");u.href=c,u.download=o,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c),e.$message({type:"success",message:"下载成功"})}}else e.$message({type:"error",message:"下载失败,文件内容为空"})})).catch((function(t){console.error("下载模板失败:",t),e.$message({type:"error",message:"下载模板失败,请稍后重试"})})):this.$message({type:"error",message:"未配置下载地址"})},handleExport:function(){var e=this,t=et.DOWNLOAD_MANAGER_DATA||{},r=t.url,a=t.method,n=void 0===a?"get":a,i=t.headers,o=void 0===i?{}:i,s={url:r,method:n,responseType:"blob",headers:o,disableSuccessMsg:!0};s.url?this.$axios(s).then((function(t){var r=t.data;if(r){var a=t.headers&&(t.headers["content-type"]||t.headers["Content-Type"]);if(a&&a.includes("application/json"))try{var n=new FileReader;n.onload=function(){try{var t=JSON.parse(n.result);e.$message({type:"error",message:t.message||"导出失败"})}catch(r){e.$message({type:"error",message:"导出失败"})}},n.readAsText(r)}catch(d){console.error("解析导出失败响应异常:",d),e.$message({type:"error",message:"导出失败"})}else{var i=t.headers&&(t.headers["content-disposition"]||t.headers["Content-Disposition"]),o="责任人管理数据.xlsx";if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(d){o=l}}var c=window.URL.createObjectURL(r),u=document.createElement("a");u.href=c,u.download=o,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c),e.$message({type:"success",message:"导出成功"})}}else e.$message({type:"error",message:"导出失败,文件内容为空"})})).catch((function(t){console.error("导出失败:",t),e.$message({type:"error",message:"导出失败,请稍后重试"})})):this.$message({type:"error",message:"未配置下载地址"})},handleImport:function(){this.importDialogVisible=!0,this.importFileList=[],this.selectedImportFile=null},handleImportDialogClose:function(){this.importDialogVisible=!1,this.importFileList=[],this.selectedImportFile=null,this.importing=!1,this.$refs.importUpload&&this.$refs.importUpload.clearFiles()},handleImportFileChange:function(e,t){var r=[".xls",".xlsx"],a=e.name||"",n=a.substring(a.lastIndexOf(".")).toLowerCase();if(!r.includes(n))return this.$message({type:"error",message:"文件类型不支持,仅支持 ".concat(r.join("、")," 格式的文件")}),this.selectedImportFile=null,this.importFileList=[],void(this.$refs.importUpload&&this.$refs.importUpload.clearFiles());this.selectedImportFile=e.raw||e,this.importFileList=t.slice(-1)},handleImportFileRemove:function(e,t){this.selectedImportFile=null,this.importFileList=[]},handleImportSubmit:function(){var e=this;if(this.selectedImportFile){var t=new FormData;t.append("file",this.selectedImportFile),t.append("userId",de());var r=y9(y9({},et.UPLOAD_MANAGER_DATA),{},{params:t,disableSuccessMsg:!0});this.importing=!0;var a=this.$loading({lock:!0,text:"正在导入数据,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$upload(r,null,!1).then((function(t){console.log("导入成功:",t),a.close(),e.$message({type:"success",message:"导入成功"}),e.handleImportDialogClose(),e.loadManagerData()})).catch((function(t){var r="";if(t&&t.data&&t.data.errors&&Array.isArray(t.data.errors)){var n,i=u9(t.data.errors);try{for(i.s();!(n=i.n()).done;){var o=n.value;r+=o+"\n"}}catch(t){i.e(t)}finally{i.f()}}else r=t.message||"导入失败,请稍后重试";console.error("导入失败:",t),a.close(),e.$message({type:"error",message:r||"导入失败,请稍后重试"})})).finally((function(){a&&a.close(),e.importing=!1}))}else this.$message({type:"warning",message:"请先选择要导入的文件"})}}},D9=w9,S9=(r("6451"),d(D9,s9,l9,!1,null,"7ef84f50",null)),C9=S9.exports,T9=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"filler-data-page custom-page"},[r("div",{staticClass:"page-content"},[r("div",{staticClass:"header-section"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v(" 新增 ")])],1),r("div",{staticClass:"table-section"},[r("div",{staticClass:"table-toolbar"},[r("el-button",{attrs:{icon:"el-icon-refresh",size:"small"},on:{click:e.handleRefresh}},[e._v(" 刷新 ")])],1),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[r("el-table-column",{attrs:{type:"index",label:"序号",width:"90",align:"center"}}),r("el-table-column",{attrs:{prop:"department",label:"责任部门",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.formatDepartmentDisplay(t.row.department))+" ")]}}])}),r("el-table-column",{attrs:{prop:"subsystem",label:"子系统",align:"center"}}),r("el-table-column",{attrs:{prop:"partsName",label:"零部件名称",align:"center"}}),r("el-table-column",{attrs:{prop:"username",label:"填写人",width:"250",align:"center"}}),r("el-table-column",{attrs:{label:"操作",width:"200",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(r){return r.stopPropagation(),e.handleEdit(t.row)}}},[e._v(" 修改 ")]),r("span",{staticClass:"link-separator"}),r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(r){return r.stopPropagation(),e.handleDelete(t.row,t.$index)}}},[e._v(" 删除 ")])]}}])})],1),r("div",{staticClass:"pagination-section"},[r("el-pagination",{attrs:{"current-page":e.pagination.currentPage,"page-sizes":[10,20,50,100],"page-size":e.pagination.pageSize,total:e.pagination.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)]),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,modal:!1},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleDialogClose}},[r("el-form",{ref:"form",attrs:{model:e.formData,rules:e.formRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"责任部门:",prop:"department"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择责任部门",readonly:""},nativeOn:{click:function(t){return e.handleOpenDepartmentDialog.apply(null,arguments)}},model:{value:e.formData.selectDeptName,callback:function(t){e.$set(e.formData,"selectDeptName",t)},expression:"formData.selectDeptName"}},[r("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:function(t){return t.stopPropagation(),e.handleOpenDepartmentDialog.apply(null,arguments)}},slot:"suffix"})])],1),r("el-form-item",{attrs:{label:"子系统:",prop:"subsystem"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择子系统",clearable:""},on:{change:e.handleSubsystemChange},model:{value:e.formData.subsystem,callback:function(t){e.$set(e.formData,"subsystem",t)},expression:"formData.subsystem"}},e._l(e.subsystemList,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"零部件名称:",prop:"partsName"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择零部件名称",clearable:"",disabled:!e.formData.subsystem},model:{value:e.formData.partsName,callback:function(t){e.$set(e.formData,"partsName",t)},expression:"formData.partsName"}},e._l(e.partsNameList,(function(e){return r("el-option",{key:e,attrs:{label:"/"===e?"/":e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"填写人:",prop:"filler"}},[r("el-select",{staticClass:"handler-select",staticStyle:{width:"100%"},attrs:{placeholder:"请输入填写人姓名进行搜索",clearable:"",multiple:"",filterable:"",remote:"","reserve-keyword":"","remote-method":e.handleRemoteSearch,loading:e.userLoading},on:{change:e.handleFillerChange},model:{value:e.formData.filler,callback:function(t){e.$set(e.formData,"filler",t)},expression:"formData.filler"}},e._l(e.userOptions,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择责任部门",visible:e.departmentDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.departmentDialogVisible=t},close:e.handleDepartmentDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.departmentTreeFilterText,callback:function(t){e.departmentTreeFilterText=t},expression:"departmentTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"departmentTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleDepartmentNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDepartmentDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedDepartmentId},on:{click:e.handleDepartmentDialogConfirm}},[e._v(" 确定 ")])],1)],1)],1)},I9=[];function O9(e){return O9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O9(e)}function A9(e){return k9(e)||P9(e)||E9(e)||M9()}function M9(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P9(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k9(e){if(Array.isArray(e))return L9(e)}function N9(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=E9(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function E9(e,t){if(e){if("string"===typeof e)return L9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L9(e,t):void 0}}function L9(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&(r.children=t.children.map((function(t){return e(t)}))),r};return e.map((function(e){return t(e)}))},handleAdd:function(){var e=this;this.dialogMode="add",this.currentEditIndex=-1,this.formData={department:"",subsystem:"",partsName:"",filler:[],fillerName:"",selectDeptId:"",selectDeptName:"",userId:"",rowId:"",departmentId:""},this.partsNameList=[],this.fillerPersons=[],this.userOptions=[],this.userLoading=!1,this.dialogVisible=!0,this.$nextTick((function(){e.$refs.form&&e.$refs.form.clearValidate()}))},handleEdit:function(e){var t=this;this.dialogMode="edit";var r=[];e.userId&&(r=Array.isArray(e.userId)?e.userId:"string"===typeof e.userId&&e.userId.includes(",")?e.userId.split(",").map((function(e){return e.trim()})).filter((function(e){return e})):[e.userId]),r.length>0?this.userOptions=r.map((function(t){return{userId:t,username:e.username||t,userNumber:e.userNumber||t}})):this.userOptions=[];var a="";if(e.subsystem)if(Array.isArray(e.subsystem))a=e.subsystem[0]||"";else if("string"===typeof e.subsystem){var n=e.subsystem.split(",").map((function(e){return e.trim()})).filter((function(e){return e}));a=n[0]||""}if(a&&this.allParametersData[a]){var i=this.allParametersData[a],o=new Set;i.forEach((function(e){var t=e.partsName||"";t&&o.add(t)})),this.partsNameList=Array.from(o).sort()}else this.partsNameList=[];this.formData={department:e.departmentId||"",subsystem:a,partsName:e.partsName||"",filler:r,fillerName:e.username||"",selectDeptId:e.departmentId||"",selectDeptName:e.department||"",userId:e.userId||"",rowId:e.rowId||"",departmentId:e.departmentId||""},this.userLoading=!1,this.dialogVisible=!0,this.$nextTick((function(){t.$refs.form&&t.$refs.form.clearValidate()}))},handleDialogClose:function(){this.dialogVisible=!1,this.formData={department:"",subsystem:"",partsName:"",filler:[],fillerName:"",selectDeptId:"",selectDeptName:"",userId:"",rowId:"",departmentId:""},this.partsNameList=[],this.fillerPersons=[],this.userOptions=[],this.userLoading=!1,this.currentEditIndex=-1,this.searchTimer&&(clearTimeout(this.searchTimer),this.searchTimer=null),this.currentRequest=null,this.$refs.form&&this.$refs.form.clearValidate()},handleSubmit:function(){var e=this;this.$refs.form.validate((function(t){if(t){if(!e.formData.filler||!Array.isArray(e.formData.filler)||0===e.formData.filler.length)return void e.$message.warning("请至少选择一个填写人");var r=e.formData.subsystem||"",a=e.formData.partsName||"";if("add"===e.dialogMode){var n=Array.isArray(e.formData.filler)?e.formData.filler:[e.formData.filler],i=n.map((function(t){return e.$request(F9(F9({},et.SAVE_FILLER_DATA),{},{params:{departmentId:e.formData.selectDeptId,department:e.formData.selectDeptName,subsystem:r,partsName:a,userId:t},disableSuccessMsg:!0}))}));Promise.all(i).then((function(){e.handleDialogClose(),e.loadFillerData()})).catch((function(t){console.error("新增失败:",t),e.$message.error("新增失败,请重试")}))}else{var o=Array.isArray(e.formData.filler)&&e.formData.filler.length>0?e.formData.filler[0]:e.formData.filler,s=F9(F9({},et.EDIT_MANAGER_DATA),{},{params:{departmentId:e.formData.selectDeptId,department:e.formData.selectDeptName,subsystem:r,partsName:a,userId:o,rowId:e.formData.rowId},disableSuccessMsg:!0});e.$request(s).asyncThen((function(t){e.handleDialogClose(),e.loadFillerData()})).asyncErrorCatch((function(t){console.error("修改失败:",t),e.$message.error("修改失败")}))}}}))},handleOpenDepartmentDialog:function(){var e=this;this.formData.selectDeptId?(this.selectedDepartmentId=this.formData.selectDeptId,this.selectedDepartmentName=this.formData.selectDeptName,this.$nextTick((function(){e.$refs.departmentTree&&e.$refs.departmentTree.setCurrentKey(e.formData.selectDeptId)}))):(this.selectedDepartmentId="",this.selectedDepartmentName=""),this.departmentTreeFilterText="",this.departmentDialogVisible=!0},handleDepartmentDialogClose:function(){this.departmentDialogVisible=!1,this.departmentTreeFilterText="",this.formData.selectDeptId?(this.selectedDepartmentId=this.formData.selectDeptId,this.selectedDepartmentName=this.formData.selectDeptName):(this.selectedDepartmentId="",this.selectedDepartmentName="",this.selectedDepartmentNode=null)},handleDepartmentDialogConfirm:function(){var e=this;this.selectedDepartmentId&&this.selectedDepartmentNode&&(this.formData.selectDeptId=this.selectedDepartmentId,this.formData.selectDeptName=this.selectedDepartmentName,this.formData.department=this.selectedDepartmentId,this.formData.filler=[],this.formData.fillerName="",this.userOptions=[],this.departmentDialogVisible=!1,this.$nextTick((function(){e.$refs.form&&e.$refs.form.clearValidate("department")})))},handleDepartmentNodeClick:function(e){this.selectedDepartmentId=e.id,this.selectedDepartmentName=this.getDepartmentPathName(e.id),this.selectedDepartmentNode=e},filterDepartmentNode:function(e,t){return!e||(t.name||"").toLowerCase().includes(e.toLowerCase())},handleRemoteSearch:function(e){var t=this;if(e&&""!==e.trim())this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout((function(){var r=e.trim();if(r){t.userLoading=!0;var a=F9(F9({},et.GET_ALLUSERS),{},{params:{name:r},disableSuccessMsg:!0});t.currentRequest=t.$request(a),t.currentRequest.asyncThen((function(e){var r=e&&e.data,a=[];Array.isArray(r)?a=r:r&&Array.isArray(r.result)?a=r.result:r&&r.data&&Array.isArray(r.data)&&(a=r.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=Array.isArray(t.formData.filler)?t.formData.filler:[],o=new Set(i),s=t.userOptions.filter((function(e){return e.userId&&o.has(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),n.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),t.userOptions=Array.from(l.values()),t.userLoading=!1,t.currentRequest=null})).asyncErrorCatch((function(e){if(console.error("搜索填写人失败:",e),t.formData.filler&&Array.isArray(t.formData.filler)&&t.formData.filler.length>0){var r=new Set(t.formData.filler),a=t.userOptions.filter((function(e){return e.userId&&r.has(e.userId)}));t.userOptions=a}else t.userOptions=[];t.userLoading=!1,t.currentRequest=null}))}else t.userOptions=[]}),300);else if(this.formData.filler&&Array.isArray(this.formData.filler)&&this.formData.filler.length>0){var r=new Set(this.formData.filler),a=this.userOptions.filter((function(e){return e.userId&&r.has(e.userId)}));this.userOptions=a}else this.userOptions=[]},handleFillerChange:function(e){var t=this;if(e&&Array.isArray(e)&&e.length>0){var r=e.map((function(e){var r=t.userOptions.find((function(t){return t.userId===e}));return r?r.username:e})).filter((function(e){return e}));this.formData.fillerName=r.join(", "),this.formData.userId=e}else this.formData.fillerName="",this.formData.userId=[]},getDepartmentPathName:function(e){if(!e||!this.departmentList||0===this.departmentList.length)return"";var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=N9(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(A9(n),[o.name]);if(o.id===r)return s;if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null},r=t(this.departmentList,e);return r?r.join("-"):""},handleDelete:function(e,t){var r=this;this.$confirm("确定要删除该记录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=F9(F9({},et.DELETE_MANAGER_DATA),{},{params:{rowId:e.rowId},disableSuccessMsg:!0});r.$request(t).asyncThen((function(e){r.$message({type:"success",message:"删除成功"}),r.loadFillerData()})).asyncErrorCatch((function(e){console.error("删除失败:",e),r.$message({type:"error",message:"删除失败"})}))})).catch((function(){}))},handleSizeChange:function(e){this.pagination.pageSize=e,this.pagination.currentPage=1,this.loadFillerData()},handleCurrentChange:function(e){this.pagination.currentPage=e,this.loadFillerData()},handleRefresh:function(){this.pagination.currentPage=1,this.loadFillerData()},formatDepartmentDisplay:function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t}}},z9=B9,G9=(r("dcd1"),d(z9,T9,I9,!1,null,"05e52e5d",null)),U9=G9.exports,W9=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showProgressDetail?r("approval-progress-detail",{attrs:{detail:e.currentApprovalDetail},on:{close:e.closeProgressDetail,refresh:e.handleRefresh}}):[e._m(0),r("div",{staticClass:"page-search-panel"},[r("el-form",{staticClass:"search-list"},[r("div",{staticClass:"search-component"},[r("el-form-item",{attrs:{label:"模板名称"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.templateName,callback:function(t){e.$set(e.searchPanelValue,"templateName",t)},expression:"searchPanelValue.templateName"}})],1)],1),r("div",{staticClass:"search-component"},[r("el-form-item",{attrs:{label:"状态"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.searchPanelValue.status,callback:function(t){e.$set(e.searchPanelValue,"status",t)},expression:"searchPanelValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),r("div",{staticClass:"search-component"},[r("el-form-item",{attrs:{label:"申请时间"}},[r("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"请选择"},model:{value:e.searchPanelValue.createDate,callback:function(t){e.$set(e.searchPanelValue,"createDate",t)},expression:"searchPanelValue.createDate"}})],1)],1),r("div",{staticClass:"search-component"},[r("el-form-item",{attrs:{label:"申请人"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.username,callback:function(t){e.$set(e.searchPanelValue,"username",t)},expression:"searchPanelValue.username"}})],1)],1)]),r("div",{staticClass:"search-button-group"},[r("el-button",{attrs:{"native-type":"reset"},on:{click:function(t){return e.resetSearch()}}},[e._v(" 重置 ")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSearch()}}},[e._v(" 查询 ")])],1)],1),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["status"===t.customSlot?r("div",{key:a+""+o},["审批中"===i[t.prop]||"APPROVING"===i[t.prop]?r("span",{staticClass:"status-tag status-approving"},[e._v(" 审批中 ")]):"已通过"===i[t.prop]||"COMPLETE"===i[t.prop]?r("span",{staticClass:"status-tag status-approved"},[e._v(" 已通过 ")]):"已退回"===i[t.prop]||"REJECTED"===i[t.prop]?r("span",{staticClass:"status-tag status-rejected"},[e._v(" 已退回 ")]):"已撤回"===i[t.prop]||"RETURNED"===i[t.prop]?r("span",{staticClass:"status-tag status-rejected"},[e._v(" 已撤回 ")]):r("span",{staticClass:"status-tag status-default"},[e._v(" "+e._s(i[t.prop])+" ")])]):e._e(),"version"===t.customSlot?r("div",{key:a+""+o},[i[t.prop]?r("span",[e._v(" V"+e._s(i[t.prop])+" ")]):r("span",[e._v("-")])]):e._e(),"currentApprover"===t.customSlot?r("div",{key:a+""+o},[i.currentApprovers&&i.currentApprovers.length>0?r("span",[e._v(" "+e._s(i.currentApprovers.map((function(e){return e.username})).join(",")||"-")+" ")]):r("span",[e._v("-")])]):e._e(),"options"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleViewProgress(i)}}},[e._v(" 查看进度 ")])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],r("el-dialog",{attrs:{title:"审核",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"审核"}},[r("el-radio-group",{model:{value:e.approvalFormData.result,callback:function(t){e.$set(e.approvalFormData,"result",t)},expression:"approvalFormData.result"}},[r("el-radio",{attrs:{label:"PASS"}},[e._v(" 通过 ")]),r("el-radio",{attrs:{label:"REJECT"}},[e._v(" 退回 ")])],1)],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入备注"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1)],2)},H9=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 参数模板审批流程 ")])])}],q9=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"approval-progress-fade"}},[e.visible?r("div",{staticClass:"approval-progress-detail"},[r("div",{staticClass:"detail-panel"},[r("div",{staticClass:"detail-header"},[r("div",{staticClass:"header-left"},[r("el-button",{staticClass:"back-button",attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:e.handleBack}}),r("div",{staticClass:"header-info"},[r("div",{staticClass:"title"},[e._v(" 审批详情 ")])])],1),r("div",{staticClass:"header-right"},[e.fromTodo?r("el-button",{on:{click:e.handleReturn}},[e._v(" 退回 ")]):e._e(),e.fromTodo&&e.canResend?r("el-button",{attrs:{loading:e.resending},on:{click:e.handleResend}},[e._v(" 直送 ")]):e._e(),e.fromTodo?r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 提交 ")]):e._e()],1)]),r("div",{staticClass:"detail-content"},[r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title"},[e._v(" 基础信息 ")]),r("div",{staticClass:"info-grid"},[r("div",{staticClass:"info-item-full"},[r("span",{staticClass:"label"},[e._v("流程主题")]),e.isEditingProcessTitle?r("div",{staticClass:"process-title-input-wrapper"},[r("el-input",{staticClass:"process-title-input",attrs:{placeholder:"请输入流程主题",maxlength:"100","show-word-limit":""},model:{value:e.editingProcessTitle,callback:function(t){e.editingProcessTitle=t},expression:"editingProcessTitle"}},[r("template",{slot:"suffix"},[r("i",{staticClass:"el-icon-check process-title-icon",on:{click:e.handleSaveProcessTitle}}),r("i",{staticClass:"el-icon-close process-title-icon",on:{click:e.handleCancelProcessTitle}})])],2)],1):r("div",{staticClass:"value process-title-value-wrapper"},[e._v(" "+e._s(e.showTopDetail.processTitle||"--")+" "),r("i",{staticClass:"el-icon-edit process-title-edit-icon",on:{click:e.handleEditProcessTitle}})])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建人")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.createBy||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建时间")]),r("span",{staticClass:"value"},[e._v(e._s(e.formatTime(e.showTopDetail.createTime)||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前环节")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.currentNode||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前处理人")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.currentProcessor||"--"))])])])])]),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title"},[e._v(" 审批内容 ")]),r("el-table",{staticClass:"change-table",attrs:{data:e.changeTable||[],border:""}},[r("el-table-column",{attrs:{label:"序号",type:"index",width:"60"}}),r("el-table-column",{attrs:{prop:"subsystemName",label:"子系统","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterType",label:"类型","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"partsName",label:"零部件名称","min-width":"140","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterName",label:"参数名称","min-width":"140","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"unit",label:"单位","min-width":"80","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"remarks",label:"备注","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"modifyDetails",label:"变动说明","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticClass:"modify-details-text"},[e._v(" "+e._s(t.row.modifyDetails||"--")+" ")])]}}],null,!1,654223453)})],1),e.changeTableTotal>0?r("el-pagination",{staticClass:"pagination-wrapper",attrs:{"current-page":e.changeTablePageNumber,"page-size":e.changeTablePageSize,total:e.changeTableTotal,layout:"total, prev, pager, next, jumper"},on:{"current-change":e.handlePageChange}}):e._e(),e.progressDetail.description?r("div",{staticClass:"description-block"},[r("span",{staticClass:"label"},[e._v("说明:")]),r("span",{staticClass:"value"},[e._v(e._s(e.detailOption))])]):e._e()],1),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title"},[e._v(" 审批流程 ")]),e.timelineNodes&&e.timelineNodes.length>0?r("div",{staticClass:"approval-timeline"},[r("el-timeline",e._l(e.timelineNodes,(function(t,a){return r("el-timeline-item",{key:a,attrs:{color:e.getTimelineColor(t.result||t.status,a,e.timelineNodes.length)}},[r("div",{staticClass:"timeline-item-content"},[r("div",{staticClass:"node-title"},[e._v(" "+e._s(t.title)+" ")]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"node-info"},[r("div",{staticClass:"node-user"},[e._v(" "+e._s(t.userName||"--")+" "),r("span",{staticClass:"node-time"},[e._v(" "+e._s(e.formatTime(t.operateTime))+" ")])])]),r("div",{staticClass:"node-status",class:e.getStatusClass(t.result||t.status)},[e._v(" "+e._s(e.setStatusText(t.result||t.status))+" ")]),t.opinion?r("div",{staticClass:"node-opinion"},[e._v(" 审批意见:"+e._s(t.opinion)+" ")]):e._e()])])])})),1)],1):r("div",{staticClass:"empty-progress"},[r("span",{staticClass:"empty-text"},[e._v("暂无审批流程数据")])])])])]),r("el-dialog",{attrs:{title:e.approvalDialogTitle,visible:e.approvalDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",staticStyle:{"margin-top":"10px"},attrs:{model:e.approvalFormData,rules:e.approvalFormRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"reject"===e.approvalActionType?"拒绝意见:":"提交意见:",prop:"opinion"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"reject"===e.approvalActionType?"请输入拒绝意见":"请输入提交意见"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择退回节点",visible:e.returnNodeDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.returnNodeDialogVisible=t},close:e.handleReturnNodeDialogClose}},[r("div",{staticClass:"return-node-dialog-content"},[0===e.returnableNodes.length?r("div",{staticClass:"empty-hint"},[e._v(" 暂无可退回的节点 ")]):r("el-radio-group",{staticClass:"return-node-list",on:{change:e.handleReturnNodeChange},model:{value:e.selectedReturnNode,callback:function(t){e.selectedReturnNode=t},expression:"selectedReturnNode"}},e._l(e.returnableNodes,(function(e){return r("el-radio",{key:e,staticClass:"return-node-item",attrs:{label:e}})})),1),"编制"===e.selectedReturnNode?r("div",{staticClass:"return-opinion-section"},[r("div",{staticClass:"opinion-label"},[e._v(" 退回意见: ")]),r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入退回意见"},model:{value:e.returnOpinion,callback:function(t){e.returnOpinion=t},expression:"returnOpinion"}})],1):e._e()],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleReturnNodeDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.returnSubmitting,disabled:!e.selectedReturnNode},on:{click:e.handleReturnSubmit}},[e._v(" 确定 ")])],1)])],1):e._e()])},Y9=[];function X9(e){return X9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X9(e)}function K9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Z9(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,a=new Array(t);r0)return{progressTitle:this.progressDetailData.progressTitle||"",contentName:this.progressDetailData.contentName||"",templateVersion:this.progressDetailData.templateVersion||"",explanation:this.progressDetailData.explanation||"",description:this.progressDetailData.explanation||this.progressDetailData.description||""};var e={approvalNumber:"",modelName:"",applicant:"",department:"",submitTime:"",description:"",changeTable:[],createBy:"",creationDate:"",progress:[]};return Object.assign(e,this.detail||{})},initiateNode:function(){return this.detail&&this.detail.createBy?{userName:this.detail.createBy,createTime:this.detail.createdTime||this.detail.createTime,status:"INITIATE",result:"INITIATE"}:null},timelineNodes:function(){var e=[];if(this.flowNodes&&this.flowNodes.length>0){var t=t7(this.flowNodes),r=t.findIndex((function(e){return"待审批"===e.result}));-1!==r&&(t[r]=Z9(Z9({},t[r]),{},{result:"APPROVING"})),t.forEach((function(t){var r="APPROVING",a="APPROVING";t.result&&("MSG"===t.result?(r="PASS",a="PASS"):"REJECT"===t.result?(r="REJECT",a="REJECT"):"RETURN"===t.result?(r="RETURN",a="RETURN"):"APPROVING"===t.result?(r="APPROVING",a="APPROVING"):"PASS"===t.result?(r="PASS",a="PASS"):"待审批"===t.result&&(r="待审批",a="待审批"));var n=t.opinions&&Array.isArray(t.opinions)&&t.opinions.length>0?t.opinions[0]:null,i=t.todoUserName||t.undoUserName||"--";e.push({title:t.node||"审批节点",userName:i,operateTime:t.approvalTime||"",result:r,status:a,opinion:n})}))}else this.progress&&this.progress.length>0&&this.progress.forEach((function(t){t.steps&&t.steps.length>0&&t.steps.forEach((function(r){e.push({title:t.title||"审批节点",userName:r.userName,operateTime:r.approvalTime||r.handleTime||r.createTime,result:r.result||r.status,status:r.result||r.status,opinion:r.opinion||r.remark||r.comment||null})}))}));return e},canApprove:function(){return this.fromTodo},currentNode:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.node||"--";var t=this.flowNodes[this.flowNodes.length-1];return t&&t.node||"--"}return"--"},currentProcessor:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.undoUserName||e.todoUserName||"--"}return"--"}},mounted:function(){this.getCanResend(),this.getApprovalChange(),this.getApprovalSpet()},methods:{getCanResend:function(){var e=this;if(this.detail&&this.detail.flowId){var t=Z9(Z9({},et.GET_CAN_RESEND_APPROVAL),{},{params:{flowId:this.detail.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){e.canResend=t.data||!1})).asyncErrorCatch((function(t){console.error("获取可重新发起审批权限失败:",t),e.canResend=!1}))}else this.canResend=!1},setStatusText:function(e){var t={PASS:"通过",REJECT:"驳回",REFUSE:"驳回",APPROVE:"批准",APPROVING:"审批中",PENDING:"待处理",WAITING:"待处理",INITIATE:"发起审批",RETURN:"退回"};return t[e]||e||"待处理"},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},getTimelineColor:function(e,t,r){return"PASS"===e||"APPROVE"===e?"#67C23A":"REJECT"===e||"REFUSE"===e?"#F56C6C":"APPROVING"===e||"PENDING"===e||"WAITING"===e?"#E6A23C":"#409EFF"},getStatusClass:function(e){var t={PASS:"status-pass",APPROVE:"status-approve",REJECT:"status-reject",REFUSE:"status-reject",APPROVING:"status-approving",PENDING:"status-pending",WAITING:"status-pending",INITIATE:"status-initiate",RETURN:"status-return"};return t[e]||"status-default"},getApprovalSpet:function(){var e=this;if(this.detail&&this.detail.flowId){var t=Z9(Z9({},et.GET_PPROVAL_ALL),{},{params:{flowId:this.detail.flowId,templateId:this.detail.templateId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log("审批流程数据:",t);var r=t.data||t,a=r.flowStatus||"",n=r.createBy||"";e.showTopDetail={processTitle:r.progressTitle||"",createBy:n,createTime:r.createTime||"",currentNode:"REJECTED"===a?"编制":r.currentNode||"",currentProcessor:"REJECTED"===a?n:r.processor||""},e.flowStatus=a,e.progressDetailData={explanation:r.explanation||"",flowStatus:r.flowStatus||"",progressTitle:r.progressTitle||"",templateVersion:r.templateVersion||"",contentName:r.contentName||""},e.detailOption=r.explanation||r.description||"",e.flowNodes=r.flowNodes||[]})).asyncErrorCatch((function(t){console.error("获取审批流程数据失败:",t),e.flowNodes=[],e.progressDetailData={}}))}},getApprovalChange:function(){var e=this,t=Z9(Z9({},et.GET_APPROVAL_CHANGE),{},{params:{flowId:this.detail.flowId,templateId:this.detail.templateId,pageNumber:this.changeTablePageNumber,pageSize:this.changeTablePageSize},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t),e.changeTable=t.data.result,e.changeTableTotal=t.data.count}))},handleBack:function(){this.$emit("close")},handlePageChange:function(e){this.changeTablePageNumber=e,this.getApprovalChange()},changeTypeClass:function(e){return"create"===e?"change-create":"delete"===e?"change-delete":"update"===e?"change-update":"change-default"},deduplicateSteps:function(e){var t=this;if(!Array.isArray(e)||0===e.length)return[];var r=new Map,a=[];return e.forEach((function(e){var t=null;if(e.id)t="id_".concat(e.id);else{var n=e.userName||e.operator||e.username||e.handlerName||e.handler||"",i=e.approvalTime||e.handleTime||e.createTime||"",o=e.result||e.status||"";t="combo_".concat(n,"_").concat(i,"_").concat(o)}if(t)if(r.has(t)){var s=r.get(t),l=a[s],c=!!(e.approvalTime||e.handleTime||e.createTime),u=!!(l.approvalTime||l.handleTime||l.createTime);c&&!u&&(a[s]=e)}else r.set(t,a.length),a.push(e)})),a.map((function(e){var r=Z9({},e);return r.approvalTime&&(r.approvalTime=t.formatTime(r.approvalTime)),r.handleTime&&(r.handleTime=t.formatTime(r.handleTime)),r.createTime&&(r.createTime=t.formatTime(r.createTime)),r}))},handleReject:function(){var e=this;this.approvalActionType="reject",this.approvalDialogTitle="拒绝",this.approvalFormData={result:"REJECT",opinion:"拒绝"},this.approvalDialogVisible=!0,this.$nextTick((function(){e.$refs.approvalForm&&e.$refs.approvalForm.clearValidate()}))},handleReturn:function(){var e=this,t=Z9(Z9({},et.GET_CAN_RETURN_NODE),{},{params:{flowId:this.detail.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t);var r=Array.isArray(t.data)?t.data:[];e.returnableNodes=["编制"].concat(t7(r))})).asyncErrorCatch((function(t){console.error("获取退回节点失败:",t),e.returnableNodes=["编制"]})),this.selectedReturnNode="",this.returnOpinion="",this.returnNodeDialogVisible=!0},handleReturnNodeDialogClose:function(){this.returnNodeDialogVisible=!1,this.selectedReturnNode="",this.returnOpinion=""},handleReturnNodeChange:function(){"编制"!==this.selectedReturnNode&&(this.returnOpinion="")},handleReturnSubmit:function(){var e=this;if(this.selectedReturnNode)if(this.detail&&this.detail.flowId)if(this.returnSubmitting=!0,"编制"===this.selectedReturnNode){var t={flowId:this.detail.flowId,userId:de(),result:"REJECT",opinion:this.returnOpinion||""},r=Z9(Z9({},et.HANDLE_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.getApprovalSpet(),e.getApprovalChange(),e.$message({message:"拒绝成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1})).asyncErrorCatch((function(t){console.error("拒绝失败:",t),e.$message({message:t.message||"拒绝失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else{var a=this.detail.createdById||"";if(!a)return this.$message.error("无法获取流程发起人信息"),void(this.returnSubmitting=!1);var n=de(),i={flowId:this.detail.flowId,nodeName:this.selectedReturnNode,createUserId:a,processUserId:n},o=Z9(Z9({},et.RETURN_MODEL_APPROVAL),{},{params:i,disableSuccessMsg:!0});this.$request(o).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.getApprovalSpet(),e.getApprovalChange(),e.$message({message:"退回成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1})).asyncErrorCatch((function(t){console.error("退回失败:",t),e.$message({message:t.message||"退回失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择要退回的节点")},handleSubmit:function(){var e=this;this.approvalActionType="submit",this.approvalDialogTitle="提交",this.approvalFormData={result:"PASS",opinion:"同意"},this.approvalDialogVisible=!0,this.$nextTick((function(){e.$refs.approvalForm&&e.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalActionType="",this.approvalDialogTitle="审核",this.approvalFormData={result:"",opinion:""},this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;this.$refs.approvalForm.validate((function(t){if(!t)return!1;if(e.detail&&e.detail.flowId){var r={flowId:e.detail.flowId,userId:de(),result:e.approvalFormData.result,opinion:e.approvalFormData.opinion||""};e.approvalSubmitting=!0;var a=Z9(Z9({},et.HANDLE_APPROVAL),{},{params:r,disableSuccessMsg:!0});e.$request(a).asyncThen((function(t){e.handleApprovalDialogClose(),e.getApprovalSpet(),e.getApprovalChange(),e.$message({message:"审批提交成功",type:"success"}),e.$emit("refresh"),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message({message:"审批提交失败,请重试",type:"error"}),e.approvalSubmitting=!1})).finally((function(){e.approvalSubmitting=!1}))}else e.$message.error("缺少审批信息")}))},handleResend:function(){var e=this;this.detail&&this.detail.templateId?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0;var t=Z9(Z9({},et.RESTART_MODEL_APPROVAL),{},{params:{templateId:e.detail.templateId,userId:de()},disableSuccessMsg:!0});e.$request(t).asyncThen((function(t){e.getApprovalSpet(),e.getApprovalChange(),e.$message({message:"直送成功",type:"success"}),e.$emit("refresh"),e.resending=!1})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1})).finally((function(){e.resending=!1}))})).catch((function(){})):this.$message.error("缺少模板ID,无法执行直送操作")},handleEditProcessTitle:function(){this.isEditingProcessTitle=!0,this.editingProcessTitle=this.showTopDetail.processTitle||""},handleCancelProcessTitle:function(){this.isEditingProcessTitle=!1,this.editingProcessTitle=""},handleSaveProcessTitle:function(){var e=this;if(this.detail&&this.detail.flowId){var t=(this.editingProcessTitle||"").trim();t?this.$confirm("确认修改主题为".concat(t,"吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=Z9(Z9({},et.EDIT_APPROVAL_PROCESS_TITLE),{},{params:{flowId:e.detail.flowId,title:t},disableSuccessMsg:!0});e.$request(r).asyncThen((function(r){e.showTopDetail.processTitle=t,e.isEditingProcessTitle=!1,e.editingProcessTitle="",e.$message({message:"修改成功",type:"success"})})).asyncErrorCatch((function(t){console.error("修改流程主题失败:",t),e.$message({message:t.message||"修改失败,请重试",type:"error"})}))})).catch((function(){})):this.$message.warning("流程主题不能为空")}else this.$message.error("缺少流程ID,无法保存")}}},l7=s7,c7=(r("2d2c"),d(l7,q9,Y9,!1,null,"9071b4da",null)),u7=c7.exports;function d7(e){return d7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d7(e)}function p7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function h7(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function _ee(e){return See(e)||Dee(e)||wee(e)||xee()}function xee(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wee(e,t){if(e){if("string"===typeof e)return Cee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cee(e,t):void 0}}function Dee(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function See(e){if(Array.isArray(e))return Cee(e)}function Cee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&e(r.children)}))};return r(e),t},departmentSelectOptionsMerged:function(){var e=this.departmentSelectOptions||[],t=this.selectedDepartmentOptions||[],r=new Map;return e.forEach((function(e){return r.set(e.value,{value:e.value,label:e.label})})),t.forEach((function(e){return r.set(e.value,{value:e.value,label:e.label})})),Array.from(r.values())}},watch:{treeFilterText:function(e){this.$refs.permissionTree&&this.$refs.permissionTree.filter(e)}},mounted:function(){this.loadPermissionData(),this.loadParamList(),this.loadTemplateList(),this.loadDepartmentList(),this.getUserSelfRole()},beforeDestroy:function(){this.personSearchTimer&&(clearTimeout(this.personSearchTimer),this.personSearchTimer=null),this.currentPersonRequest=null},methods:{isApprovalFlowMenu:function(e){var t=["参数模板审批流程","玉柴发动机数据审批流程","竞品发动机数据审批流程","对标报告审批流程"];return t.includes(e)},getUserSelfRole:function(){var e=Oee(Oee({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){console.log("获取用户自身角色:",e)})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},validatePermissions:function(e,t,r){var a=this.allParameterNodes.some((function(e){return e.permissions.view||e.permissions.edit}));a?r():r(new Error("请至少分配一个权限"))},loadParamList:function(){var e=this,t=Oee(Oee({},et.GET_PARAM_LIST),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r={};"object"===Tee(t.data)&&null!==t.data&&(r=t.data.result&&"object"===Tee(t.data.result)?t.data.result:t.data.data&&"object"===Tee(t.data.data)?t.data.data:t.data);var a={};Object.keys(r).forEach((function(e){var t=r[e];if(Array.isArray(t)){var n=_ee(new Set(t)).filter((function(e){return null!==e&&void 0!==e&&""!==e}));a[e]=n}else a[e]=[]})),e.subsystemPartsMap=a,e.subsystemList=Object.keys(a),console.log("加载参数列表成功,子系统数量:",e.subsystemList.length),console.log("子系统到partsName映射:",e.subsystemPartsMap)}else e.subsystemPartsMap={},e.subsystemList=[];e.buildMenuTree()})).asyncErrorCatch((function(t){console.error("加载参数列表失败:",t),e.subsystemPartsMap={},e.subsystemList=[],e.buildMenuTree()}))},buildMenuTree:function(){var e=this;this.nodeMap={};var t=[];this.menuList.forEach((function(r,a){var n="menu-".concat(a),i=["对标报告","参数模板审批流程","玉柴发动机数据审批流程","竞品发动机数据审批流程","对标报告审批流程"],o={id:n,label:r,type:"menu",children:null,isLeaf:i.includes(r),permissions:{view:!1,edit:!1}};e.nodeMap[n]=o,t.push(o)})),this.menuTreeData=t},filterTreeNode:function(e,t){return!e||t.label&&-1!==t.label.indexOf(e)},loadNode:function(e,t){if(0===e.level)return this.menuTreeData&&0!==this.menuTreeData.length||this.buildMenuTree(),void t(this.menuTreeData||[]);if("menu"===e.data.type){var r=["对标报告","参数模板审批流程","玉柴发动机数据审批流程","竞品发动机数据审批流程","对标报告审批流程","基础管理模块"];return r.includes(e.data.label)?void t([]):"参数模板管理"===e.data.label?void this.loadTemplateListForLazy(e.data,t):void this.loadMenuSubsystemsForLazy(e.data,t)}"subsystem"!==e.data.type?t([]):this.loadSubsystemParametersForLazy(e.data,t)},loadTemplateList:function(){var e=this,t=Oee(Oee({},et.GET_MODEL_LIST),{},{params:{pageNumber:1,pageSize:9999},disableSuccessMsg:!0});this.$request(t,!1).asyncThen((function(t){var r=t.data.result||[];e.templateList=r.map((function(e){return{templateId:e.rowId||e.id||"",templateName:e.templateName||""}})),console.log("加载模板列表成功,模板数量:",e.templateList.length)})).asyncErrorCatch((function(t){console.error("加载模板列表失败:",t),e.templateList=[]}))},loadTemplateListForLazy:function(e,t){var r=this;if(!this.templateList||0===this.templateList.length)return this.loadTemplateList(),void setTimeout((function(){r.buildTemplateNodes(e,t)}),500);this.buildTemplateNodes(e,t)},buildTemplateNodes:function(e,t){var r=this,a=[];this.templateList.forEach((function(t,n){if(t.templateName){var i="".concat(e.id,"-template-").concat(n),o={id:i,label:t.templateName,type:"template",menuName:e.label,templateId:t.templateId,templateName:t.templateName,permissions:{view:!1,edit:!1},isLeaf:!0,children:null};a.push(o),r.nodeMap[i]=o,r.applyPendingPermissionsToNode(o)}})),this.$nextTick((function(){a.forEach((function(e){r.applyPendingPermissionsToNode(e)}))})),t(a)},loadMenuSubsystemsForLazy:function(e,t){var r=this,a=Object.keys(this.subsystemPartsMap||{});if(0!==a.length){var n=[];a.forEach((function(t,a){if(t){var i="".concat(e.id,"-subsystem-").concat(a),o=r.subsystemPartsMap[t]||[],s=[],l=new Set;o.forEach((function(a,n){if(a&&!l.has(a)){l.add(a);var o="".concat(i,"-param-").concat(n),c={id:o,label:a,type:"parameter",menuName:e.label,subsystem:t,parameter:a,parameterName:a,partsName:a,parameterId:"",permissions:{view:!1,edit:!1},isLeaf:!0,children:null};s.push(c),r.nodeMap[o]=c,r.applyPendingPermissionsToNode(c)}}));var c={id:i,label:t,type:"subsystem",menuName:e.label,subsystem:t,children:s,isLeaf:0===s.length,permissions:{view:!1,edit:!1}};n.push(c),r.nodeMap[i]=c}})),this.$nextTick((function(){n.forEach((function(e){e.children&&Array.isArray(e.children)&&e.children.forEach((function(e){r.applyPendingPermissionsToNode(e)}))}))})),t(n)}else t([])},loadSubsystemParametersForLazy:function(e,t){var r=this;if(!e.subsystem)return console.warn("子系统节点缺少子系统名称"),void t([]);var a=this.subsystemPartsMap[e.subsystem]||[],n=[],i=new Set;a.forEach((function(t,a){if(t&&!i.has(t)){i.add(t);var o="".concat(e.id,"-param-").concat(a),s={id:o,label:t,type:"parameter",menuName:e.menuName,subsystem:e.subsystem,parameter:t,parameterName:t,partsName:t,parameterId:"",permissions:{view:!1,edit:!1},isLeaf:!0,children:null};n.push(s),r.nodeMap[o]=s,r.applyPendingPermissionsToNode(s)}})),t(n),this.$nextTick((function(){n.forEach((function(e){r.applyPendingPermissionsToNode(e)}))}))},handleNodePermissionChange:function(e,t){var r=this;if("edit"===t&&"menu"===e.type&&this.isApprovalFlowMenu(e.label))return this.$set(e.permissions,"edit",!1),void(e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"edit",!1));"edit"===t&&e.permissions&&!0===e.permissions.edit&&(e.permissions.view||this.$set(e.permissions,"view",!0),e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"view",!0)),e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,t,e.permissions[t]),"menu"===e.type?this.handleMenuPermissionChange(e,t):"subsystem"===e.type?(this.handleSubsystemPermissionChange(e,t),this.updateMenuPermissionFromChildren(e)):"template"===e.type?this.updateMenuPermissionFromChildren(e):"parameter"===e.type&&this.updateSubsystemPermissionFromChildren(e),this.$nextTick((function(){r.$refs.form&&r.$refs.form.validateField("permissions")}))},handleMenuPermissionChange:function(e,t){var r=this,a=e.permissions[t],n=e.label||"";if("edit"===t&&this.isApprovalFlowMenu(n))return this.$set(e.permissions,"edit",!1),void(e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"edit",!1));"edit"===t&&a&&(this.$set(e.permissions,"view",!0),e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"view",!0));var i=function e(n){n.children&&Array.isArray(n.children)&&n.children.forEach((function(n){if(n.id&&r.nodeMap[n.id]){var i=r.nodeMap[n.id];if(i.permissions||r.$set(i,"permissions",{view:!1,edit:!1}),r.$set(i.permissions,t,a),"edit"===t&&a&&r.$set(i.permissions,"view",!0),n.permissions){var o=Oee(Oee({},n.permissions),{},Aee({},t,a));"edit"===t&&a&&(o.view=!0),r.$set(n,"permissions",o)}e(n)}}))};if(i(e),a){this.pendingPermissions||(this.pendingPermissions=[]);var o=de(),s="view"===t?1:2;if("参数模板管理"===n)this.templateList.forEach((function(e){if(e.templateName){var t="".concat(n,"/").concat(e.templateName),a=r.pendingPermissions.find((function(e){return e.permissionPath===t&&e.parameterPer===s}));a||r.pendingPermissions.push({permissionPath:t,parameterPer:s,userId:o})}}));else if("玉柴发动机数据"===n||"竞品发动机数据"===n)Object.keys(this.subsystemPartsMap||{}).forEach((function(e){var t=r.subsystemPartsMap[e]||[];t.forEach((function(t){if(t){var a="".concat(n,"/").concat(e,"/").concat(t),i=r.pendingPermissions.find((function(e){return e.permissionPath===a&&e.parameterPer===s}));i||r.pendingPermissions.push({permissionPath:a,parameterPer:s,userId:o})}}))}));else if("对标报告"===n||"参数模板审批流程"===n||"玉柴发动机数据审批流程"===n||"竞品发动机数据审批流程"===n||"对标报告审批流程"===n){var l=this.buildPermissionPath(e);if(l){var c=this.pendingPermissions.find((function(e){return e.permissionPath===l&&e.parameterPer===s}));c||this.pendingPermissions.push({permissionPath:l,parameterPer:s,userId:o})}}if("edit"===t){var u=1;if("参数模板管理"===n)this.templateList.forEach((function(e){if(e.templateName){var t="".concat(n,"/").concat(e.templateName),a=r.pendingPermissions.find((function(e){return e.permissionPath===t&&e.parameterPer===u}));a||r.pendingPermissions.push({permissionPath:t,parameterPer:u,userId:o})}}));else if("玉柴发动机数据"===n||"竞品发动机数据"===n)Object.keys(this.subsystemPartsMap||{}).forEach((function(e){var t=r.subsystemPartsMap[e]||[];t.forEach((function(t){if(t){var a="".concat(n,"/").concat(e,"/").concat(t),i=r.pendingPermissions.find((function(e){return e.permissionPath===a&&e.parameterPer===u}));i||r.pendingPermissions.push({permissionPath:a,parameterPer:u,userId:o})}}))}));else if("对标报告"===n||"参数模板审批流程"===n||"玉柴发动机数据审批流程"===n||"竞品发动机数据审批流程"===n||"对标报告审批流程"===n){var d=this.buildPermissionPath(e);if(d){var p=this.pendingPermissions.find((function(e){return e.permissionPath===d&&e.parameterPer===u}));p||this.pendingPermissions.push({permissionPath:d,parameterPer:u,userId:o})}}}}else if(this.pendingPermissions){var h="view"===t?1:2,f=["对标报告","参数模板审批流程","玉柴发动机数据审批流程","竞品发动机数据审批流程","对标报告审批流程"];if(this.pendingPermissions=this.pendingPermissions.filter((function(e){return e.permissionPath&&e.permissionPath.startsWith(n+"/")?e.parameterPer!==h:!f.includes(n)||e.permissionPath!==n||e.parameterPer!==h})),"edit"===t){var m=1;this.pendingPermissions=this.pendingPermissions.filter((function(e){return e.permissionPath&&e.permissionPath.startsWith(n+"/")?e.parameterPer!==m:!f.includes(n)||e.permissionPath!==n||e.parameterPer!==m}))}}},updateMenuPermissionFromChildren:function(e){var t=this,r=null;if(e&&"menu"===e.type?r=e:e&&e.menuName&&(r=Object.values(this.nodeMap).find((function(t){return"menu"===t.type&&t.label===e.menuName}))),r){var a=[],n=function e(t){t.children&&Array.isArray(t.children)&&t.children.forEach((function(t){a.push(t),e(t)}))};if(n(r),0!==a.length){var i=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.view})),o=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.edit}));r.permissions||this.$set(r,"permissions",{view:!1,edit:!1}),this.$set(r.permissions,"view",i),this.$set(r.permissions,"edit",o)}}},handlePermissionChange:function(e,t){this.handleNodePermissionChange(e,t)},handleSubsystemPermissionChange:function(e,t){var r=this;e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,t,e.permissions[t]),"edit"===t&&e.permissions&&!0===e.permissions.edit&&(this.$set(e.permissions,"view",!0),e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"view",!0));var a=e.children||[],n=e.permissions[t];a.forEach((function(e){if(e.id&&r.nodeMap[e.id]&&(r.nodeMap[e.id].permissions||r.$set(r.nodeMap[e.id],"permissions",{view:!1,edit:!1}),r.$set(r.nodeMap[e.id].permissions,t,n),"edit"===t&&n&&r.$set(r.nodeMap[e.id].permissions,"view",!0),e.permissions)){var a=Oee(Oee({},e.permissions),{},Aee({},t,n));"edit"===t&&n&&(a.view=!0),r.$set(e,"permissions",a)}})),this.$nextTick((function(){r.$refs.form&&r.$refs.form.validateField("permissions")}))},updateSubsystemPermissionFromChildren:function(e){var t=this;if(e&&e.subsystem){var r=Object.values(this.nodeMap).find((function(t){return"subsystem"===t.type&&t.subsystem===e.subsystem&&t.menuName===e.menuName}));if(r&&r.children&&0!==r.children.length){var a=r.children,n=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.view})),i=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.edit}));r.permissions&&(this.$set(r.permissions,"view",n),this.$set(r.permissions,"edit",i))}}},loadPermissionData:function(){var e=this,t=Oee(Oee({},et.GET_ROLE_PERMISSION),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){t&&t.data?(e.tableData=t.data,e.pagination.total=t.data.length||0):(e.tableData=[],e.pagination.total=0)})).asyncErrorCatch((function(t){console.error("加载权限数据失败:",t),e.tableData=[],e.pagination.total=0}))},handleAddRole:function(){var e=this;this.addRoleMode="add",this.addRoleDialogVisible=!0,this.addRoleFormData={roleName:"",roleCode:"",roleDescription:"",roleId:""},this.$nextTick((function(){e.$refs.addRoleForm&&e.$refs.addRoleForm.clearValidate()}))},handleAddRoleSubmit:function(){var e=this;this.$refs.addRoleForm.validate((function(t){if(t){e.addRoleSubmitting=!0;var r="edit"===e.addRoleMode,a=r?et.EDIT_PERMISSION_DATA_ROLE:et.ADD_ROLE_PERMISSION,n=Oee(Oee({},a),{},{url:r?a.url+de():a.url,params:r?{id:e.addRoleFormData.roleId,roleName:e.addRoleFormData.roleName,roleCode:e.addRoleFormData.roleCode,roleDescription:e.addRoleFormData.roleDescription}:{roleName:e.addRoleFormData.roleName,roleCode:e.addRoleFormData.roleCode,roleDescription:e.addRoleFormData.roleDescription},disableSuccessMsg:!0});e.$request(n).asyncThen((function(t){e.handleAddRoleDialogClose(),e.$message({type:"success",message:r?"编辑角色成功":"新增角色成功"}),e.loadPermissionData()})).asyncErrorCatch((function(t){console.error(r?"编辑角色失败":"新增角色失败",t),e.$message.error(t.message||(r?"编辑角色失败":"新增角色失败"))})).finally((function(){e.addRoleSubmitting=!1}))}}))},handleAddRoleDialogClose:function(){this.addRoleDialogVisible=!1,this.addRoleMode="add",this.addRoleFormData={roleName:"",roleCode:"",roleDescription:"",roleId:""},this.$refs.addRoleForm&&this.$refs.addRoleForm.clearValidate()},handlePermissionConfig:function(e){var t=this;this.dialogMode="edit";var r=e.rowId||e.id||"";this.formData={roleName:e.roleName||"",rowId:r,permissions:[]},this.resetAllPermissions(),this.menuTreeData&&0!==this.menuTreeData.length||this.buildMenuTree(),this.dialogVisible=!0,this.loadRolePermissionDetail(r),this.$nextTick((function(){t.$refs.form&&t.$refs.form.clearValidate()}))},loadRolePermissionDetail:function(e){var t=this;if(e){var r=Oee(Oee({},et.GET_ROLE_CONTROL_LIST),{},{params:{roleID:e},disableSuccessMsg:!0});this.$request(r).asyncThen((function(e){var r=[];e&&e.data&&(Array.isArray(e.data)?r=e.data:e.data.result&&Array.isArray(e.data.result)?r=e.data.result:e.data.data&&Array.isArray(e.data.data)&&(r=e.data.data)),console.log("加载到的权限数据:",r),r.length>0?t.setPermissionsFromData(r):t.pendingPermissions=[]})).asyncErrorCatch((function(e){console.error("加载权限详情失败:",e)}))}},handlePersonConfig:function(e){console.log("打开人员管理页面:",e),this.currentRoleId=e.rowId||e.id||"",this.currentRoleName=e.roleName||"",this.showRoleMemberManagement=!0},handleBackFromRoleMember:function(){console.log("从人员管理页面返回"),this.showRoleMemberManagement=!1,this.currentRoleId="",this.currentRoleName=""},handleConfigTypeChange:function(e){var t=this;if("department"===e){var r=this.personConfigFormData.department;if(Array.isArray(r)&&r.length>0){var a=!Array.isArray(r[0]);if(a){var n=r.map((function(e){return null==e?"":String(e)}));this.personConfigFormData.selectDeptIds=n}}}this.$nextTick((function(){t.$refs.personConfigForm&&t.$refs.personConfigForm.clearValidate()}))},loadDepartmentList:function(){var e=this,t=Oee(Oee({},et.GET_DEPT_OF_USER),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r=[];t&&t.data&&(r=t.data),e.departmentList=e.formatDepartmentTreeData(r)})).asyncErrorCatch((function(t){console.error("加载部门列表失败:",t),e.departmentList=[]}))},formatDepartmentTreeData:function(e){if(!Array.isArray(e))return[];var t=function e(t){var r={id:t.id,name:t.name||t.label||t.deptName||""};return t.children&&Array.isArray(t.children)&&t.children.length>0&&(r.children=t.children.map((function(t){return e(t)}))),r};return e.map((function(e){return t(e)}))},handlePersonDepartmentChange:function(e){var t=this;"department"===this.personConfigFormData.configType?this.$nextTick((function(){t.$refs.personConfigForm&&t.$refs.personConfigForm.validateField("department")})):e&&Array.isArray(e)&&e.length>0?(this.personConfigFormData.selectDeptId=e[e.length-1],this.personConfigFormData.selectDeptName=this.getDepartmentPathName(this.personConfigFormData.selectDeptId),this.personConfigFormData.person=[],this.personOptions=[]):(this.personConfigFormData.selectDeptId="",this.personConfigFormData.selectDeptName="",this.personConfigFormData.person=[],this.personOptions=[])},queryPersonByDepartment:function(e){var t=this;if(e&&""!==e.trim())this.personSearchTimer&&clearTimeout(this.personSearchTimer),this.personSearchTimer=setTimeout((function(){var r=e.trim();if(r){t.personSearchLoading=!0;var a=Oee(Oee({},et.GET_ALLUSERS),{},{params:{name:r},disableSuccessMsg:!0});t.currentPersonRequest=t.$request(a),t.currentPersonRequest.asyncThen((function(e){var r=e&&e.data,a=[];Array.isArray(r)?a=r:r&&Array.isArray(r.result)?a=r.result:r&&r.data&&Array.isArray(r.data)&&(a=r.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(t.personConfigFormData.person||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(t.personOptions||[]).filter((function(e){return e.userId&&t.personConfigFormData.person&&t.personConfigFormData.person.includes(e.userId)})),l=new Map;o.forEach((function(e){e.userId&&!l.has(e.userId)&&l.set(e.userId,e)})),s.forEach((function(e){e.userId&&!l.has(e.userId)&&l.set(e.userId,e)})),t.personOptions=Array.from(l.values()),t.personSearchLoading=!1,t.currentPersonRequest=null})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),t.personConfigFormData.person&&t.personConfigFormData.person.length>0){var r=t.personOptions.filter((function(e){return e.userId&&t.personConfigFormData.person.includes(e.userId)}));t.personOptions=r}else t.personOptions=[];t.personSearchLoading=!1,t.currentPersonRequest=null}))}else t.personOptions=[]}),300);else if(this.personConfigFormData.person&&this.personConfigFormData.person.length>0){var r=this.personOptions.filter((function(e){return e.userId&&t.personConfigFormData.person.includes(e.userId)})),a=this.personConfigFormData.person.filter((function(e){return!r.some((function(t){return t.userId===e}))}));a.length,this.personOptions=r}else this.personOptions=[]},getDepartmentPathName:function(e){if(!e||!this.departmentList||0===this.departmentList.length)return"";var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=bee(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(_ee(n),[o.name]);if(o.id===r)return s;if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null},r=t(this.departmentList,e);return r?r.join("-"):""},getDepartmentPathIds:function(e){if(!e||!this.departmentList||0===this.departmentList.length)return null;var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=bee(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(_ee(n),[o.id]);if(o.id===r)return s;if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null};return t(this.departmentList,e)},handlePersonConfigSubmit:function(){var e=this;this.$refs.personConfigForm.validate((function(t){if(t){e.personConfigSubmitting=!0;var r=(e.personConfigFormData.person||[]).filter((function(e){return e})),a=[];if(e.personConfigFormData.selectDeptIds&&e.personConfigFormData.selectDeptIds.length>0?a=_ee(e.personConfigFormData.selectDeptIds):e.personConfigFormData.department&&Array.isArray(e.personConfigFormData.department)&&e.personConfigFormData.department.length>0&&(a=e.personConfigFormData.department.map((function(e){return Array.isArray(e)&&e.length>0?e[e.length-1]:e})).filter((function(e){return e}))),0===r.length&&0===a.length)return e.$message.warning("department"===e.personConfigFormData.configType?"请至少选择一个部门":"请至少选择一个人员"),void(e.personConfigSubmitting=!1);var n=function(e){return"string"===typeof e&&e.startsWith("ID:")?e.substring(3):e},i=[].concat(_ee(r.map((function(e){return{userOrDeptId:n(e),isDept:0}}))),_ee(a.map((function(e){return{userOrDeptId:n(e),isDept:1}}))));console.log("人员配置数据:",{roleId:e.personConfigFormData.roleId,roleName:e.personConfigFormData.roleName,configType:e.personConfigFormData.configType,userOrDeptIds:i});var o=Oee(Oee({},et.GET_ROLE_PERMISSION_BING),{},{params:{roleId:e.personConfigFormData.roleId,userOrDept:i},disableSuccessMsg:!0});e.$request(o).asyncThen((function(t){e.handlePersonConfigDialogClose(),e.loadPermissionData(),e.$message({type:"success",message:"配置成功"})})).asyncErrorCatch((function(t){console.error("配置失败:",t),e.$message({type:"error",message:"配置失败"})})).finally((function(){e.personConfigSubmitting=!1}))}}))},handlePersonConfigDialogClose:function(){this.personConfigDialogVisible=!1,this.personConfigFormData={configType:"person",department:"",person:[],selectDeptId:"",selectDeptName:"",selectDeptIds:[],roleId:"",roleName:""},this.personOptions=[],this.personSearchKeyword="",this.personToAdd="",this.selectedPersonList=[],this.personSearchTimer&&(clearTimeout(this.personSearchTimer),this.personSearchTimer=null),this.currentPersonRequest=null,this.$refs.personConfigForm&&this.$refs.personConfigForm.clearValidate()},handlePersonSearchInList:function(){},handleAddPersonToList:function(e){if(e){var t=this.personOptions.find((function(t){return t.userId===e}));if(t){var r=this.selectedPersonList.some((function(t){return t.userId===e}));if(r)return this.$message.warning("该人员已在列表中"),void(this.personToAdd="");this.selectedPersonList.push({userId:t.userId,username:t.username,userNumber:t.userNumber}),this.personConfigFormData.person.push(e),this.personToAdd=""}}},handleRemovePersonFromList:function(e){var t=this.selectedPersonList.findIndex((function(t){return t.userId===e.userId}));if(t>-1){this.selectedPersonList.splice(t,1);var r=this.personConfigFormData.person.indexOf(e.userId);r>-1&&this.personConfigFormData.person.splice(r,1)}},handleEdit:function(e){var t=this;this.addRoleMode="edit",this.addRoleDialogVisible=!0,this.addRoleFormData={roleName:e.roleName||"",roleCode:e.roleCode||"",roleDescription:e.roleDescription||"",roleId:e.rowId||e.id||""},this.$nextTick((function(){t.$refs.addRoleForm&&t.$refs.addRoleForm.clearValidate()}))},resetAllPermissions:function(){var e=this;Object.keys(this.nodeMap).forEach((function(t){var r=e.nodeMap[t];r&&r.permissions?(e.$set(r.permissions,"view",!1),e.$set(r.permissions,"edit",!1)):!r||"menu"!==r.type&&"template"!==r.type&&"parameter"!==r.type||e.$set(r,"permissions",{view:!1,edit:!1})}))},extractMenuNameFromPath:function(e){if(!e)return"";var t=e.split("/");return t.length>0?t[t.length-1].trim():e.trim()},setPermissionsFromData:function(e){var t=this,r=Array.isArray(e)?e:[];this.resetAllPermissions(),this.pendingPermissions=r;var a=new Map;r.forEach((function(e){var r=e.permissionPath||"";if(r){a.has(r)||a.set(r,{permissionPath:r,view:!1,edit:!1});var n=a.get(r),i=t.isApprovalFlowMenu(r);1===e.parameterPer||"1"===e.parameterPer||"查看"===e.parameterPer?n.view=!0:2!==e.parameterPer&&"2"!==e.parameterPer&&"编辑"!==e.parameterPer||i||(n.edit=!0)}})),a.forEach((function(e,r){e.edit&&!e.view&&(e.view=!0),Object.keys(t.nodeMap).forEach((function(a){var n=t.nodeMap[a];if(n){var i=t.buildPermissionPath(n);if(i===r){var o={view:e.view||!1,edit:e.edit||!1};"menu"===n.type&&t.isApprovalFlowMenu(n.label)&&(o.edit=!1),o.edit&&!o.view&&(o.view=!0),t.$set(n,"permissions",o),console.log("设置已加载节点权限:",n.id,n.label,n.type,r,o)}}}))})),this.$nextTick((function(){Object.keys(t.nodeMap).forEach((function(e){var r=t.nodeMap[e];if(r&&"subsystem"===r.type&&r.children&&r.children.length>0){var a=r.children,n=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.view})),i=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.edit}));r.permissions&&(t.$set(r.permissions,"view",n),t.$set(r.permissions,"edit",i))}})),Object.keys(t.nodeMap).forEach((function(e){var r=t.nodeMap[e];r&&"menu"===r.type&&t.updateMenuPermissionFromChildren(r)}))})),console.log("权限数据已保存,待应用权限数量:",this.pendingPermissions.length,"处理后的权限映射:",Array.from(a.entries()))},applyPendingPermissionsToNode:function(e){var t=this;if(e&&this.pendingPermissions&&0!==this.pendingPermissions.length){var r=this.buildPermissionPath(e);if(r){var a=this.pendingPermissions.filter((function(e){var t=e.permissionPath||"";return t===r}));if(0!==a.length){e.permissions||this.$set(e,"permissions",{view:!1,edit:!1});var n=!1,i=!1;a.forEach((function(e){1===e.parameterPer||"1"===e.parameterPer||"查看"===e.parameterPer?n=!0:2!==e.parameterPer&&"2"!==e.parameterPer&&"编辑"!==e.parameterPer||(i=!0)})),i&&!n&&(n=!0),"menu"===e.type&&this.isApprovalFlowMenu(e.label)&&(i=!1);var o={view:n,edit:i};this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id],"permissions",o),this.$set(e,"permissions",o),console.log("应用权限到节点:",e.id,e.label,e.type,r,o,"匹配的权限:",a),this.$nextTick((function(){"parameter"===e.type?t.updateSubsystemPermissionFromChildren(e):"subsystem"===e.type&&t.updateMenuPermissionFromChildren(e)}))}}}},buildPermissionPath:function(e){if(!e)return"";if("menu"===e.type)return e.label||"";if("subsystem"===e.type){var t=e.menuName||"",r=e.subsystem||e.label||"";return"".concat(t,"/").concat(r)}if("parameter"===e.type){var a=e.menuName||"",n=e.subsystem||"",i=e.partsName||e.parameterName||e.label||"";return"".concat(a,"/").concat(n,"/").concat(i)}if("template"===e.type){var o=e.menuName||"",s=e.templateName||e.label||"";return"".concat(o,"/").concat(s)}return""},collectPermissions:function(){var e=this,t=[],r=this.formData.rowId||"",a=de();return Object.keys(this.nodeMap).forEach((function(n){var i=e.nodeMap[n];if(i){var o=i.permissions||{view:!1,edit:!1};if(o.view||o.edit){var s=e.buildPermissionPath(i);if(s){if(o.view){var l={permissionPath:s,parameterPer:1,userId:a};r&&(l.roleId=r),t.push(l)}if(o.edit&&("menu"!==i.type||!e.isApprovalFlowMenu(i.label))){var c={permissionPath:s,parameterPer:2,userId:a};r&&(c.roleId=r),t.push(c)}}}}})),console.log("收集到的权限:",t),t},handleDialogClose:function(){this.dialogVisible=!1,this.formData={roleName:"",rowId:"",permissions:[]},this.treeFilterText="",this.resetAllPermissions(),this.pendingPermissions=[],this.$refs.form&&this.$refs.form.clearValidate()},handleSubmit:function(){var e=this,t=this.collectPermissions();if(0!==t.length){this.submitting=!0,console.log(t,"permissions");var r=Oee(Oee({},et.EDIT_ROLE_CONTROL_LIST),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.handleDialogClose(),e.loadPermissionData()})).asyncErrorCatch((function(t){console.error("权限配置失败:",t),e.$message.error(t.message||"权限配置失败")})).finally((function(){e.submitting=!1}))}else this.$message.warning("请至少分配一个权限")},handleDelete:function(e,t){var r=this;this.$confirm("确定要删除该记录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=Oee(Oee({},et.DELETE_ROLE_PERMISSION),{},{params:{roleID:e.roleId||e.id||e.rowId,userID:de()},disableSuccessMsg:!0});r.$request(t).asyncThen((function(e){r.loadPermissionData()})).asyncErrorCatch((function(e){console.error("删除失败:",e),r.$message.error(e.message||"删除失败")}))})).catch((function(){}))},handleSizeChange:function(e){this.pagination.pageSize=e,this.pagination.currentPage=1,this.loadPermissionData()},handleCurrentChange:function(e){this.pagination.currentPage=e,this.loadPermissionData()},handleRefresh:function(){this.pagination.currentPage=1,this.loadPermissionData()},formatDate:function(e){return yee()(e).format("YYYY-MM-DD HH:mm:ss")}}},Nee=kee,Eee=(r("4825"),d(Nee,mee,gee,!1,null,"cb2bc482",null)),Lee=Eee.exports,Ree=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"role-member-management-page custom-page"},[r("div",{staticClass:"page-header"},[r("div",{staticClass:"header-left"},[r("el-button",{staticClass:"back-button",attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:e.handleBack}},[e._v(" 返回 ")]),r("div",{staticClass:"title-info"},[r("span",{staticClass:"title"},[e._v("人员管理")]),r("span",{staticClass:"role-tip"},[e._v("当前选择角色:"),r("span",{staticClass:"role-name"},[e._v(e._s(e.roleName))])])])],1)]),r("div",{staticClass:"page-content"},[r("div",{staticClass:"search-section"},[r("div",{staticClass:"search-form"},[r("div",{staticClass:"search-item"},[r("span",{staticClass:"label"},[e._v("成员名称")]),r("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入成员名称",clearable:""},model:{value:e.searchForm.memberName,callback:function(t){e.$set(e.searchForm,"memberName",t)},expression:"searchForm.memberName"}})],1),r("div",{staticClass:"search-item"},[r("span",{staticClass:"label"},[e._v("成员编码")]),r("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入成员编码",clearable:""},model:{value:e.searchForm.memberCode,callback:function(t){e.$set(e.searchForm,"memberCode",t)},expression:"searchForm.memberCode"}})],1),r("div",{staticClass:"search-item"},[r("span",{staticClass:"label"},[e._v("部门")]),r("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入部门",clearable:""},model:{value:e.searchForm.department,callback:function(t){e.$set(e.searchForm,"department",t)},expression:"searchForm.department"}})],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.handleReset}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"action-section"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleAddMember}},[e._v(" 添加成员 ")]),r("el-button",{attrs:{disabled:0===e.selectedMembers.length},on:{click:e.handleDeleteMember}},[e._v(" 删除成员 ")])],1),r("div",{staticClass:"table-section"},[r("el-table",{ref:"memberTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),r("el-table-column",{attrs:{type:"index",label:"序号",width:"60",align:"center"}}),r("el-table-column",{attrs:{prop:"username",label:"成员名称","min-width":"120",align:"center"}}),r("el-table-column",{attrs:{prop:"userNumber",label:"成员编码","min-width":"120",align:"center"}}),r("el-table-column",{attrs:{label:"部门","min-width":"200",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(" "+e._s(e.formatDepartment(r))+" ")]}}])})],1),r("div",{staticClass:"pagination-section"},[r("el-pagination",{attrs:{"current-page":e.pagination.currentPage,"page-sizes":[10,20,50,100],"page-size":e.pagination.pageSize,total:e.pagination.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)]),r("el-dialog",{attrs:{title:"添加成员",visible:e.addMemberDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.addMemberDialogVisible=t},close:e.handleAddMemberDialogClose}},[r("el-form",{ref:"addMemberForm",attrs:{model:e.addMemberFormData,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"搜索人员:"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"",multiple:"","reserve-keyword":"",placeholder:"请输入人员姓名进行搜索","remote-method":e.queryPerson,loading:e.personSearchLoading},model:{value:e.addMemberFormData.selectedUsers,callback:function(t){e.$set(e.addMemberFormData,"selectedUsers",t)},expression:"addMemberFormData.selectedUsers"}},e._l(e.personOptions,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",[e._v(e._s(t.username))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"12px"}},[e._v(e._s(t.userNumber))])])})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddMemberDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.addMemberSubmitting},on:{click:e.handleAddMemberSubmit}},[e._v(" 确定 ")])],1)],1)],1)},Fee=[];function jee(e){return jee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jee(e)}function Vee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function $ee(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,r){return this._disposed||this.handler.on(e,t,r),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(e<=n)return o;if(e>=i)return s}else{if(e>=n)return o;if(e<=i)return s}else{if(e===n)return o;if(e===i)return s}return(e-n)/l*c+o}function nl(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ia["C"](e)?rl(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function il(e,t,r){return null==t&&(t=10),t=Math.min(Math.max(0,t),tl),e=(+e).toFixed(t),r?e:+e}function ol(e){return e.sort((function(e,t){return e-t})),e}function sl(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r;return ll(e)}function ll(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),a=r>0?+t.slice(r+1):0,n=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function cl(e,t){var r=Math.log,a=Math.LN10,n=Math.floor(r(e[1]-e[0])/a),i=Math.round(r(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function ul(e,t){var r=Ia["N"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return[];var a=Math.pow(10,t),n=Ia["H"](e,(function(e){return(isNaN(e)?0:e)/r*a*100})),i=100*a,o=Ia["H"](n,(function(e){return Math.floor(e)})),s=Ia["N"](o,(function(e,t){return e+t}),0),l=Ia["H"](n,(function(e,t){return e-o[t]}));while(sc&&(c=l[d],u=d);++o[u],l[u]=0,++s}return Ia["H"](o,(function(e){return e/a}))}function dl(e,t){var r=Math.max(sl(e),sl(t)),a=e+t;return r>tl?a:il(a,r)}var pl=9007199254740991;function hl(e){var t=2*Math.PI;return(e%t+t)%t}function fl(e){return e>-el&&e=10&&t++,t}function bl(e,t){var r,a=yl(e),n=Math.pow(10,a),i=e/n;return r=t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10,e=r*n,a>=-20?+e.toFixed(a<0?-a:0):e}function _l(e,t){var r=(e.length-1)*t+1,a=Math.floor(r),n=+e[a-1],i=r-a;return i?n+i*(e[a]-n):n}function xl(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,r=1,a=0;a=0||n&&Ia["r"](n,s)<0)){var l=r.getShallow(s,t);null!=l&&(i[e[o][0]]=l)}}return i}}var Cc=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Tc=Sc(Cc),Ic=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Tc(this,e,t)},e}(),Oc=new vs["a"](50);function Ac(e){if("string"===typeof e){var t=Oc.get(e);return t&&t.image}return e}function Mc(e,t,r,a,n){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!r)return t;var i=Oc.get(e),o={hostEl:r,cb:a,cbPayload:n};return i?(t=i.image,!kc(t)&&i.pending.push(o)):(t=ys["d"].loadImage(e,Pc,Pc),t.__zrImageSrc=e,Oc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}return t}function Pc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var c=_s(r,t);return c>s&&(r="",c=0),s=e-c,n.ellipsis=r,n.ellipsisWidth=c,n.contentWidth=s,n.containerWidth=e,n}function Rc(e,t,r){var a=r.containerWidth,n=r.font,i=r.contentWidth;if(!a)return e.textLine="",void(e.isTruncated=!1);var o=_s(t,n);if(o<=a)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var l=0===s?Fc(t,i,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=_s(t,n)}""===t&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function Fc(e,t,r,a){for(var n=0,i=0,o=e.length;if&&u){var m=Math.floor(f/l);d=d||r.length>m,r=r.slice(0,m)}if(e&&o&&null!=p)for(var g=Lc(p,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v={},y=0;yl&&Gc(r,e.substring(l,c),t,s),Gc(r,a[2],t,s,a[1]),l=Nc.lastIndex}li){var A=r.lines.length;w>0?(b.tokens=b.tokens.slice(0,w),v(b,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y),r.isTruncated=r.isTruncated||r.lines.length0&&f+a.accumWidth>a.width&&(i=t.split("\n"),d=!0),a.accumWidth=f}else{var m=qc(t,u,a.width,a.breakAll,a.accumWidth);a.accumWidth=m.accumWidth+h,o=m.linesWidths,i=m.lines}}else i=t.split("\n");for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Wc=Object(Ia["N"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Hc(e){return!Uc(e)||!!Wc[e]}function qc(e,t,r,a,n){for(var i=[],o=[],s="",l="",c=0,u=0,d=0;dr:n+u+h>r)?u?(s||l)&&(f?(s||(s=l,l="",c=0,u=c),i.push(s),o.push(u-c),l+=p,c+=h,s="",u=c):(l&&(s+=l,l="",c=0),i.push(s),o.push(u),s=p,u=h)):f?(i.push(l),o.push(c),l=p,c=h):(i.push(p),o.push(h)):(u+=h,f?(l+=p,c+=h):(l&&(s+=l,l="",c=0),s+=p))}else l&&(s+=l,u+=c),i.push(s),o.push(u),s="",l="",c=0,u=0}return i.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(i.push(s),o.push(u)),1===i.length&&(u+=n),{accumWidth:u,lines:i,linesWidths:o}}var Yc="__zr_style_"+Math.round(10*Math.random()),Xc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xc[Yc]=!0;var Zc=["z","z2","invisible"],Jc=["invisible"],Qc=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype._init=function(t){for(var r=Object(Ia["F"])(t),a=0;a1e-4)return s[0]=e-r,s[1]=t-a,l[0]=e+r,void(l[1]=t+a);if(cu[0]=su(n)*r+e,cu[1]=ou(n)*a+t,uu[0]=su(i)*r+e,uu[1]=ou(i)*a+t,c(s,cu,uu),u(l,cu,uu),n%=lu,n<0&&(n+=lu),i%=lu,i<0&&(i+=lu),n>i&&!o?i+=lu:nn&&(du[0]=su(h)*r+e,du[1]=ou(h)*a+t,c(s,du,s),u(l,du,l))}var bu={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_u=[],xu=[],wu=[],Du=[],Su=[],Cu=[],Tu=Math.min,Iu=Math.max,Ou=Math.cos,Au=Math.sin,Mu=Math.abs,Pu=Math.PI,ku=2*Pu,Nu="undefined"!==typeof Float32Array,Eu=[];function Lu(e){var t=Math.round(e/Pu*1e8)/1e8;return t%2*Pu}function Ru(e,t){var r=Lu(e[0]);r<0&&(r+=ku);var a=r-e[0],n=e[1];n+=a,!t&&n-r>=ku?n=r+ku:t&&r-n>=ku?n=r-ku:!t&&r>n?n=r+(ku-Lu(r-n)):t&&r0&&(this._ux=Mu(r/ts/e)||0,this._uy=Mu(r/ts/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(bu.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var r=Mu(e-this._xi),a=Mu(t-this._yi),n=r>this._ux||a>this._uy;if(this.addData(bu.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var i=r*r+a*a;i>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(e,t,r,a,n,i){return this._drawPendingPt(),this.addData(bu.C,e,t,r,a,n,i),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,n,i),this._xi=n,this._yi=i,this},e.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(bu.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(e,t,r,a,n,i){this._drawPendingPt(),Eu[0]=a,Eu[1]=n,Ru(Eu,i),a=Eu[0],n=Eu[1];var o=n-a;return this.addData(bu.A,e,t,r,r,a,o,0,i?0:1),this._ctx&&this._ctx.arc(e,t,r,a,n,i),this._xi=Ou(n)*r+e,this._yi=Au(n)*r+t,this},e.prototype.arcTo=function(e,t,r,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,n),this},e.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(bu.R,e,t,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(bu.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Nu||(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){wu[0]=wu[1]=Su[0]=Su[1]=Number.MAX_VALUE,Du[0]=Du[1]=Cu[0]=Cu[1]=-Number.MAX_VALUE;var e,t=this.data,r=0,a=0,n=0,i=0;for(e=0;er||Mu(y)>a||d===t-1)&&(f=Math.sqrt(v*v+y*y),n=m,i=g);break;case bu.C:var b=e[d++],_=e[d++],x=(m=e[d++],g=e[d++],e[d++]),w=e[d++];f=Hi(n,i,b,_,m,g,x,w,10),n=x,i=w;break;case bu.Q:b=e[d++],_=e[d++],m=e[d++],g=e[d++];f=Qi(n,i,b,_,m,g,10),n=m,i=g;break;case bu.A:var D=e[d++],S=e[d++],C=e[d++],T=e[d++],I=e[d++],O=e[d++],A=O+I;d+=1,h&&(o=Ou(I)*C+D,s=Au(I)*T+S),f=Iu(C,T)*Tu(ku,Math.abs(O)),n=Ou(A)*C+D,i=Au(A)*T+S;break;case bu.R:o=n=e[d++],s=i=e[d++];var M=e[d++],P=e[d++];f=2*M+2*P;break;case bu.Z:v=o-n,y=s-i;f=Math.sqrt(v*v+y*y),n=o,i=s;break}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var r,a,n,i,o,s,l,c,u,d,p,h=this.data,f=this._ux,m=this._uy,g=this._len,v=t<1,y=0,b=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=t*c,u))e:for(var x=0;x0&&(e.lineTo(d,p),_=0),w){case bu.M:r=n=h[x++],a=i=h[x++],e.moveTo(n,i);break;case bu.L:o=h[x++],s=h[x++];var S=Mu(o-n),C=Mu(s-i);if(S>f||C>m){if(v){var T=l[b++];if(y+T>u){var I=(u-y)/T;e.lineTo(n*(1-I)+o*I,i*(1-I)+s*I);break e}y+=T}e.lineTo(o,s),n=o,i=s,_=0}else{var O=S*S+C*C;O>_&&(d=o,p=s,_=O)}break;case bu.C:var A=h[x++],M=h[x++],P=h[x++],k=h[x++],N=h[x++],E=h[x++];if(v){T=l[b++];if(y+T>u){I=(u-y)/T;Ui(n,A,P,N,I,_u),Ui(i,M,k,E,I,xu),e.bezierCurveTo(_u[1],xu[1],_u[2],xu[2],_u[3],xu[3]);break e}y+=T}e.bezierCurveTo(A,M,P,k,N,E),n=N,i=E;break;case bu.Q:A=h[x++],M=h[x++],P=h[x++],k=h[x++];if(v){T=l[b++];if(y+T>u){I=(u-y)/T;Zi(n,A,P,I,_u),Zi(i,M,k,I,xu),e.quadraticCurveTo(_u[1],xu[1],_u[2],xu[2]);break e}y+=T}e.quadraticCurveTo(A,M,P,k),n=P,i=k;break;case bu.A:var L=h[x++],R=h[x++],F=h[x++],j=h[x++],V=h[x++],$=h[x++],B=h[x++],z=!h[x++],G=F>j?F:j,U=Mu(F-j)>.001,W=V+$,H=!1;if(v){T=l[b++];y+T>u&&(W=V+$*(u-y)/T,H=!0),y+=T}if(U&&e.ellipse?e.ellipse(L,R,F,j,B,V,W,z):e.arc(L,R,G,V,W,z),H)break e;D&&(r=Ou(V)*F+L,a=Au(V)*j+R),n=Ou(W)*F+L,i=Au(W)*j+R;break;case bu.R:r=n=h[x],a=i=h[x+1],o=h[x++],s=h[x++];var q=h[x++],Y=h[x++];if(v){T=l[b++];if(y+T>u){var X=u-y;e.moveTo(o,s),e.lineTo(o+Tu(X,q),s),X-=q,X>0&&e.lineTo(o+q,s+Tu(X,Y)),X-=Y,X>0&&e.lineTo(o+Iu(q-X,0),s+Y),X-=q,X>0&&e.lineTo(o,s+Iu(Y-X,0));break e}y+=T}e.rect(o,s,q,Y);break;case bu.Z:if(v){T=l[b++];if(y+T>u){I=(u-y)/T;e.lineTo(n*(1-I)+r*I,i*(1-I)+a*I);break e}y+=T}e.closePath(),n=r,i=a}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=bu,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),ju=Fu;function Vu(e,t,r,a,n,i,o){if(0===n)return!1;var s=n,l=0,c=e;if(o>t+s&&o>a+s||oe+s&&i>r+s||it+d&&u>a+d&&u>i+d&&u>s+d||ue+d&&c>r+d&&c>n+d&&c>o+d||ct+c&&l>a+c&&l>i+c||le+c&&s>r+c&&s>n+c||sr||u+cn&&(n+=Uu);var p=Math.atan2(l,s);return p<0&&(p+=Uu),p>=a&&p<=n||p+Uu>=a&&p+Uu<=n}function Hu(e,t,r,a,n,i){if(i>t&&i>a||in?s:0}var qu=ju.CMD,Yu=2*Math.PI,Xu=1e-4;function Ku(e,t){return Math.abs(e-t)t&&c>a&&c>i&&c>s||c1&&Qu(),h=$i(t,a,i,s,Ju[0]),p>1&&(f=$i(t,a,i,s,Ju[1]))),2===p?gt&&s>a&&s>i||s=0&&c<=1){for(var u=0,d=qi(t,a,i,c),p=0;pr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Zu[0]=-l,Zu[1]=l;var c=Math.abs(a-n);if(c<1e-4)return 0;if(c>=Yu-1e-4){a=0,n=Yu;var u=i?1:-1;return o>=Zu[0]+e&&o<=Zu[1]+e?u:0}if(a>n){var d=a;a=n,n=d}a<0&&(a+=Yu,n+=Yu);for(var p=0,h=0;h<2;h++){var f=Zu[h];if(f+e>o){var m=Math.atan2(s,f);u=i?1:-1;m<0&&(m=Yu+m),(m>=a&&m<=n||m+Yu>=a&&m+Yu<=n)&&(m>Math.PI/2&&m<1.5*Math.PI&&(u=-u),p+=u)}}return p}function ad(e,t,r,a,n){for(var i,o,s=e.data,l=e.len(),c=0,u=0,d=0,p=0,h=0,f=0;f1&&(r||(c+=Hu(u,d,p,h,a,n))),g&&(u=s[f],d=s[f+1],p=u,h=d),m){case qu.M:p=s[f++],h=s[f++],u=p,d=h;break;case qu.L:if(r){if(Vu(u,d,s[f],s[f+1],t,a,n))return!0}else c+=Hu(u,d,s[f],s[f+1],a,n)||0;u=s[f++],d=s[f++];break;case qu.C:if(r){if($u(u,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,a,n))return!0}else c+=ed(u,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],a,n)||0;u=s[f++],d=s[f++];break;case qu.Q:if(r){if(Bu(u,d,s[f++],s[f++],s[f],s[f+1],t,a,n))return!0}else c+=td(u,d,s[f++],s[f++],s[f],s[f+1],a,n)||0;u=s[f++],d=s[f++];break;case qu.A:var v=s[f++],y=s[f++],b=s[f++],_=s[f++],x=s[f++],w=s[f++];f+=1;var D=!!(1-s[f++]);i=Math.cos(x)*b+v,o=Math.sin(x)*_+y,g?(p=i,h=o):c+=Hu(u,d,i,o,a,n);var S=(a-v)*_/b+v;if(r){if(Wu(v,y,_,x,x+w,D,t,S,n))return!0}else c+=rd(v,y,_,x,x+w,D,S,n);u=Math.cos(x+w)*b+v,d=Math.sin(x+w)*_+y;break;case qu.R:p=u=s[f++],h=d=s[f++];var C=s[f++],T=s[f++];if(i=p+C,o=h+T,r){if(Vu(p,h,i,h,t,a,n)||Vu(i,h,i,o,t,a,n)||Vu(i,o,p,o,t,a,n)||Vu(p,o,p,h,t,a,n))return!0}else c+=Hu(i,h,i,o,a,n),c+=Hu(p,o,p,h,a,n);break;case qu.Z:if(r){if(Vu(u,d,p,h,t,a,n))return!0}else c+=Hu(u,d,p,h,a,n);u=p,d=h;break}}return r||Ku(d,h)||(c+=Hu(u,d,p,h,a,n)||0),0!==c}function nd(e,t,r){return ad(e,0,!1,t,r)}function id(e,t,r,a){return ad(e,t,!0,r,a)}var od=Object(Ia["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xc),sd={style:Object(Ia["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kc.style)},ld=fs.concat(["invisible","culling","z","z2","zlevel","parent"]),cd=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.update=function(){var r=this;e.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(e){r.buildPath(e,r.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?as:t>.2?is:ns}if(e)return ns}return as},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(Ia["C"])(t)){var r=this.__zr,a=!(!r||!r.isDarkMode()),n=Object(no["e"])(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,r=!e;if(r){var a=!1;this.path||(a=!0,this.createPathProxy());var n=this.path;(a||this.__dirty&bi)&&(n.beginPath(),this.buildPath(n,this.shape,!1),this.pathUpdated()),e=n.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var i=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||r){i.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(i.width+=s/o,i.height+=s/o,i.x-=s/o/2,i.y-=s/o/2)}return i}return e},t.prototype.contain=function(e,t){var r=this.transformCoordToLocal(e,t),a=this.getBoundingRect(),n=this.style;if(e=r[0],t=r[1],a.contain(e,t)){var i=this.path;if(this.hasStroke()){var o=n.lineWidth,s=n.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),id(i,o/s,e,t)))return!0}if(this.hasFill())return nd(i,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=bi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,r){"shape"===t?this.setShape(r):e.prototype.attrKV.call(this,t,r)},t.prototype.setShape=function(e,t){var r=this.shape;return r||(r=this.shape={}),"string"===typeof e?r[e]=t:Object(Ia["m"])(r,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&bi)},t.prototype.createStyle=function(e){return Object(Ia["g"])(od,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=Object(Ia["m"])({},this.shape))},t.prototype._applyStateObj=function(t,r,a,n,i,o){e.prototype._applyStateObj.call(this,t,r,a,n,i,o);var s,l=!(r&&n);if(r&&r.shape?i?n?s=r.shape:(s=Object(Ia["m"])({},a.shape),Object(Ia["m"])(s,r.shape)):(s=Object(Ia["m"])({},n?this.shape:a.shape),Object(Ia["m"])(s,r.shape)):l&&(s=a.shape),s)if(i){this.shape=Object(Ia["m"])({},this.shape);for(var c={},u=Object(Ia["F"])(s),d=0;d0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(Ia["g"])(dd,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var r=ws(t,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;r.x-=a/2,r.y-=a/2,r.width+=a,r.height+=a}this._rect=r}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(au);pd.prototype.type="tspan";var hd=pd,fd=Object(Ia["i"])({x:0,y:0},Xc),md={style:Object(Ia["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kc.style)};function gd(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var vd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.createStyle=function(e){return Object(Ia["g"])(fd,e)},t.prototype._getSize=function(e){var t=this.style,r=t[e];if(null!=r)return r;var a=gd(t.image)?t.image:this.__image;if(!a)return 0;var n="width"===e?"height":"width",i=t[n];return null==i?a[e]:a[e]/a[n]*i},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return md},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Yn(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(au);vd.prototype.type="image";var yd=vd;function bd(e,t){var r,a,n,i,o,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof d?r=a=n=i=d:d instanceof Array?1===d.length?r=a=n=i=d[0]:2===d.length?(r=n=d[0],a=i=d[1]):3===d.length?(r=d[0],a=i=d[1],n=d[2]):(r=d[0],a=d[1],n=d[2],i=d[3]):r=a=n=i=0,r+a>c&&(o=r+a,r*=c/o,a*=c/o),n+i>c&&(o=n+i,n*=c/o,i*=c/o),a+n>u&&(o=a+n,a*=u/o,n*=u/o),r+i>u&&(o=r+i,r*=u/o,i*=u/o),e.moveTo(s+r,l),e.lineTo(s+c-a,l),0!==a&&e.arc(s+c-a,l+a,a,-Math.PI/2,0),e.lineTo(s+c,l+u-n),0!==n&&e.arc(s+c-n,l+u-n,n,0,Math.PI/2),e.lineTo(s+i,l+u),0!==i&&e.arc(s+i,l+u-i,i,Math.PI/2,Math.PI),e.lineTo(s,l+r),0!==r&&e.arc(s+r,l+r,r,Math.PI,1.5*Math.PI)}var _d=Math.round;function xd(e,t,r){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;e.x1=a,e.x2=n,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s?(_d(2*a)===_d(2*n)&&(e.x1=e.x2=Dd(a,s,!0)),_d(2*i)===_d(2*o)&&(e.y1=e.y2=Dd(i,s,!0)),e):e}}function wd(e,t,r){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;e.x=a,e.y=n,e.width=i,e.height=o;var s=r&&r.lineWidth;return s?(e.x=Dd(a,s,!0),e.y=Dd(n,s,!0),e.width=Math.max(Dd(a+i,s,!1)-e.x,0===i?0:1),e.height=Math.max(Dd(n+o,s,!1)-e.y,0===o?0:1),e):e}}function Dd(e,t,r){if(!t)return e;var a=_d(2*e);return(a+_d(t))%2===0?a/2:(a+(r?1:-1))/2}var Sd=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Cd={},Td=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultShape=function(){return new Sd},t.prototype.buildPath=function(e,t){var r,a,n,i;if(this.subPixelOptimize){var o=wd(Cd,t,this.style);r=o.x,a=o.y,n=o.width,i=o.height,o.r=t.r,t=o}else r=t.x,a=t.y,n=t.width,i=t.height;t.r?bd(e,t):e.rect(r,a,n,i)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ud);Td.prototype.type="rect";var Id=Td,Od={fill:"#000"},Ad=2,Md={style:Object(Ia["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Kc.style)},Pd=function(e){function t(t){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Od,r.attr(t),r}return Ca(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),I=n.calculatedLineHeight,O=0;O=0&&(O=_[I],"right"===O.align))this._placeToken(O,e,w,m,T,"right",v),D-=O.width,T-=O.width,I--;C+=(a-(C-f)-(g-T)-D)/2;while(S<=I)O=_[S],this._placeToken(O,e,w,m,C+O.width/2,"center",v),C+=O.width,S++;m+=w}},t.prototype._placeToken=function(e,t,r,a,n,i,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=a+r/2;"top"===l?c=a+e.height/2:"bottom"===l&&(c=a+r-e.height/2);var u=!e.isLineHolder&&Ud(s);u&&this._renderBackground(s,t,"right"===i?n-e.width:"center"===i?n-e.width/2:n,c-e.height/2,e.width,e.height);var d=!!s.backgroundColor,p=e.textPadding;p&&(n=zd(n,i,p),c-=e.height/2-p[0]-e.innerHeight/2);var h=this._getOrCreateChild(hd),f=h.createStyle();h.useStyle(f);var m=this._defaultStyle,g=!1,v=0,y=Bd("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,m.fill)),b=$d("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||o||m.autoStroke&&!g?null:(v=Ad,m.stroke)),_=s.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=n,f.y=c,_&&(f.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,f.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=i,f.textBaseline="middle",f.font=e.font||ys["a"],f.opacity=Object(Ia["Q"])(s.opacity,t.opacity,1),Rd(f,s),b&&(f.lineWidth=Object(Ia["Q"])(s.lineWidth,t.lineWidth,v),f.lineDash=Object(Ia["P"])(s.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=b),y&&(f.fill=y);var x=e.contentWidth,w=e.contentHeight;h.setBoundingRect(new Yn(Ds(f.x,x,f.textAlign),Ss(f.y,w,f.textBaseline),x,w))},t.prototype._renderBackground=function(e,t,r,a,n,i){var o,s,l=e.backgroundColor,c=e.borderWidth,u=e.borderColor,d=l&&l.image,p=l&&!d,h=e.borderRadius,f=this;if(p||e.lineHeight||c&&u){o=this._getOrCreateChild(Id),o.useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=r,m.y=a,m.width=n,m.height=i,m.r=h,o.dirtyShape()}if(p){var g=o.style;g.fill=l||null,g.fillOpacity=Object(Ia["P"])(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(yd),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=r,v.y=a,v.width=n,v.height=i}if(c&&u){g=o.style;g.lineWidth=c,g.stroke=u,g.strokeOpacity=Object(Ia["P"])(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Object(Ia["Q"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return Fd(e)&&(t=[e.fontStyle,e.fontWeight,Ld(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(Ia["T"])(t)||e.textFont||e.font},t}(au),kd={left:!0,right:1,center:1},Nd={top:1,bottom:1,middle:1},Ed=["fontStyle","fontWeight","fontSize","fontFamily"];function Ld(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?ys["c"]+"px":e+"px":e}function Rd(e,t){for(var r=0;r=0,i=!1;if(e instanceof ud){var o=Kd(e),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(up(s)||up(l)){a=a||{};var c=a.style||{};"inherit"===c.fill?(i=!0,a=Object(Ia["m"])({},a),c=Object(Ia["m"])({},c),c.fill=s):!up(c.fill)&&up(s)?(i=!0,a=Object(Ia["m"])({},a),c=Object(Ia["m"])({},c),c.fill=Object(no["d"])(s)):!up(c.stroke)&&up(l)&&(i||(a=Object(Ia["m"])({},a),c=Object(Ia["m"])({},c)),c.stroke=Object(no["d"])(l)),a.style=c}}if(a&&null==a.z2){i||(a=Object(Ia["m"])({},a));var u=e.z2EmphasisLift;a.z2=e.z2+(null!=u?u:ap)}return a}function Dp(e,t,r){if(r&&null==r.z2){r=Object(Ia["m"])({},r);var a=e.z2SelectLift;r.z2=e.z2+(null!=a?a:np)}return r}function Sp(e,t,r){var a=Object(Ia["r"])(e.currentStates,t)>=0,n=e.style.opacity,i=a?null:xp(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return null==o.opacity&&(r=Object(Ia["m"])({},r),o=Object(Ia["m"])({opacity:a?n:.1*i.opacity},o),r.style=o),r}function Cp(e,t){var r=this.states[e];if(this.style){if("emphasis"===e)return wp(this,e,t,r);if("blur"===e)return Sp(this,e,r);if("select"===e)return Dp(this,e,r)}return r}function Tp(e){e.stateProxy=Cp;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Cp),r&&(r.stateProxy=Cp)}function Ip(e,t){!Lp(e,t)&&!e.__highByOuter&&bp(e,pp)}function Op(e,t){!Lp(e,t)&&!e.__highByOuter&&bp(e,hp)}function Ap(e,t){e.__highByOuter|=1<<(t||0),bp(e,pp)}function Mp(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&bp(e,hp)}function Pp(e){bp(e,fp)}function kp(e){bp(e,mp)}function Np(e){bp(e,gp)}function Ep(e){bp(e,vp)}function Lp(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Rp(e){var t=e.getModel(),r=[],a=[];t.eachComponent((function(t,n){var i=Zd(n),o="series"===t,s=o?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n);!o&&a.push(s),i.isBlured&&(s.group.traverse((function(e){mp(e)})),o&&r.push(n)),i.isBlured=!1})),Object(Ia["k"])(a,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(r,!1,t)}))}function Fp(e,t,r,a){var n=a.getModel();function i(e,t){for(var r=0;r0){var i={dataIndex:n,seriesIndex:e.seriesIndex};null!=a&&(i.dataType=a),t.push(i)}}))})),t}function Hp(e,t,r){Qp(e,!0),bp(e,Tp),Xp(e,t,r)}function qp(e){Qp(e,!1)}function Yp(e,t,r,a){a?qp(e):Hp(e,t,r)}function Xp(e,t,r){var a=Hd(e);null!=t?(a.focus=t,a.blurScope=r):a.focus&&(a.focus=null)}var Kp=["emphasis","blur","select"],Zp={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jp(e,t,r,a){r=r||"itemStyle";for(var n=0;n0){var d=u.duration,p=u.delay,h=u.easing,f={duration:d,delay:p||0,easing:h,done:i,force:!!i||!!o,setToFinal:!c,scope:e,during:o};l?t.animateFrom(r,f):t.animateTo(r,f)}else t.stopAnimation(),!l&&t.attr(r),o&&o(1),i&&i()}function ch(e,t,r,a,n,i){lh("update",e,t,r,a,n,i)}function uh(e,t,r,a,n,i){lh("enter",e,t,r,a,n,i)}function dh(e){if(!e.__zr)return!0;for(var t=0;t=0&&r.push(e)})),r}e.topologicalTravel=function(e,t,a,n){if(e.length){var i=r(t),o=i.graph,s=i.noEntryList,l={};Ia["k"](e,(function(e){l[e]=!0}));while(s.length){var c=s.pop(),u=o[c],d=!!l[c];d&&(a.call(n,c,u.originalDeps.slice()),delete l[c]),Ia["k"](u.successor,d?h:p)}Ia["k"](l,(function(){var e="";throw new Error(e)}))}function p(e){o[e].entryCount--,0===o[e].entryCount&&s.push(e)}function h(e){l[e]=!0,p(e)}}}function Zh(e,t){return Ia["I"](Ia["I"]({},e,!0),t,!0)}var Jh={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Qh={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},ef="ZH",tf="EN",rf=tf,af={},nf={},of=Ta["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||rf).toUpperCase();return e.indexOf(ef)>-1?ef:rf}():rf;function sf(e,t){e=e.toUpperCase(),nf[e]=new Hh(t),af[e]=t}function lf(e){if(Object(Ia["C"])(e)){var t=af[e.toUpperCase()]||{};return e===ef||e===tf?Object(Ia["d"])(t):Object(Ia["I"])(Object(Ia["d"])(t),Object(Ia["d"])(af[rf]),!1)}return Object(Ia["I"])(Object(Ia["d"])(e),Object(Ia["d"])(af[rf]),!1)}function cf(e){return nf[e]}function uf(){return nf[rf]}sf(tf,Jh),sf(ef,Qh);var df=1e3,pf=60*df,hf=60*pf,ff=24*hf,mf=365*ff,gf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},vf="{yyyy}-{MM}-{dd}",yf={year:"{yyyy}",month:"{yyyy}-{MM}",day:vf,hour:vf+" "+gf.hour,minute:vf+" "+gf.minute,second:vf+" "+gf.second,millisecond:gf.none},bf=["year","month","day","hour","minute","second","millisecond"],_f=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xf(e,t){return e+="","0000".substr(0,t-e.length)+e}function wf(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Df(e){return e===wf(e)}function Sf(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Cf(e,t,r,a){var n=gl(e),i=n[Af(r)](),o=n[Mf(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Pf(r)](),c=n["get"+(r?"UTC":"")+"Day"](),u=n[kf(r)](),d=(u-1)%12+1,p=n[Nf(r)](),h=n[Ef(r)](),f=n[Lf(r)](),m=u>=12?"pm":"am",g=m.toUpperCase(),v=a instanceof Hh?a:cf(a||of)||uf(),y=v.getModel("time"),b=y.get("month"),_=y.get("monthAbbr"),x=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,xf(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,xf(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,xf(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[c]).replace(/{ee}/g,w[c]).replace(/{e}/g,c+"").replace(/{HH}/g,xf(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,xf(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,xf(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,xf(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,xf(f,3)).replace(/{S}/g,f+"")}function Tf(e,t,r,a,n){var i=null;if(Ia["C"](r))i=r;else if(Ia["w"](r))i=r(e.value,t,{level:e.level});else{var o=Ia["m"]({},gf);if(e.level>0)for(var s=0;s=0;--s)if(l[c]){i=l[c];break}i=i||o.none}if(Ia["t"](i)){var d=null==e.level?0:e.level>=0?e.level:i.length+e.level;d=Math.min(d,i.length-1),i=i[d]}}return Cf(new Date(e.value),i,n,a)}function If(e,t){var r=gl(e),a=r[Mf(t)]()+1,n=r[Pf(t)](),i=r[kf(t)](),o=r[Nf(t)](),s=r[Ef(t)](),l=r[Lf(t)](),c=0===l,u=c&&0===s,d=u&&0===o,p=d&&0===i,h=p&&1===n,f=h&&1===a;return f?"year":h?"month":p?"day":d?"hour":u?"minute":c?"second":"millisecond"}function Of(e,t,r){var a=Ia["z"](e)?gl(e):e;switch(t=t||If(e,r),t){case"year":return a[Af(r)]();case"half-year":return a[Mf(r)]()>=6?1:0;case"quarter":return Math.floor((a[Mf(r)]()+1)/4);case"month":return a[Mf(r)]();case"day":return a[Pf(r)]();case"half-day":return a[kf(r)]()/24;case"hour":return a[kf(r)]();case"minute":return a[Nf(r)]();case"second":return a[Ef(r)]();case"millisecond":return a[Lf(r)]()}}function Af(e){return e?"getUTCFullYear":"getFullYear"}function Mf(e){return e?"getUTCMonth":"getMonth"}function Pf(e){return e?"getUTCDate":"getDate"}function kf(e){return e?"getUTCHours":"getHours"}function Nf(e){return e?"getUTCMinutes":"getMinutes"}function Ef(e){return e?"getUTCSeconds":"getSeconds"}function Lf(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Rf(e){return e?"setUTCFullYear":"setFullYear"}function Ff(e){return e?"setUTCMonth":"setMonth"}function jf(e){return e?"setUTCDate":"setDate"}function Vf(e){return e?"setUTCHours":"setHours"}function $f(e){return e?"setUTCMinutes":"setMinutes"}function Bf(e){return e?"setUTCSeconds":"setSeconds"}function zf(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Gf(e){if(!Dl(e))return Ia["C"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Uf(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Wf=Ia["M"];function Hf(e,t,r){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(e){return e&&Ia["T"](e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,s=e instanceof Date;if(o||s){var l=o?gl(e):e;if(!isNaN(+l))return Cf(l,a,r);if(s)return"-"}if("ordinal"===t)return Ia["D"](e)?n(e):Ia["z"](e)&&i(e)?e+"":"-";var c=wl(e);return i(c)?Gf(c):Ia["D"](e)?n(e):"boolean"===typeof e?e+"":"-"}var qf=["a","b","c","d","e","f","g"],Yf=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Xf(e,t,r){Ia["t"](t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Jf(e,t){return t=t||"transparent",Ia["C"](e)?e:Ia["A"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Qf(e,t){if("_blank"===t||"blank"===t){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var em=Ia["k"],tm=["left","right","top","bottom","width","height"],rm=[["width","left","right"],["height","top","bottom"]];function am(e,t,r,a,n){var i=0,o=0;null==a&&(a=1/0),null==n&&(n=1/0);var s=0;t.eachChild((function(l,c){var u,d,p=l.getBoundingRect(),h=t.childAt(c+1),f=h&&h.getBoundingRect();if("horizontal"===e){var m=p.width+(f?-f.x+p.x:0);u=i+m,u>a||l.newline?(i=0,u=m,o+=s+r,s=p.height):s=Math.max(s,p.height)}else{var g=p.height+(f?-f.y+p.y:0);d=o+g,d>n||l.newline?(i+=s+r,o=0,d=g,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),"horizontal"===e?i=u+r:o=d+r)}))}var nm=am;Ia["h"](am,"vertical"),Ia["h"](am,"horizontal");function im(e,t,r){var a=t.width,n=t.height,i=nl(e.left,a),o=nl(e.top,n),s=nl(e.right,a),l=nl(e.bottom,n);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=n),r=Wf(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function om(e,t,r){r=Wf(r||0);var a=t.width,n=t.height,i=nl(e.left,a),o=nl(e.top,n),s=nl(e.right,a),l=nl(e.bottom,n),c=nl(e.width,a),u=nl(e.height,n),d=r[2]+r[0],p=r[1]+r[3],h=e.aspect;switch(isNaN(c)&&(c=a-s-p-i),isNaN(u)&&(u=n-l-d-o),null!=h&&(isNaN(c)&&isNaN(u)&&(h>a/n?c=.8*a:u=.8*n),isNaN(c)&&(c=h*u),isNaN(u)&&(u=c/h)),isNaN(i)&&(i=a-s-c-p),isNaN(o)&&(o=n-l-u-d),e.left||e.right){case"center":i=a/2-c/2-r[3];break;case"right":i=a-c-p;break}switch(e.top||e.bottom){case"middle":case"center":o=n/2-u/2-r[0];break;case"bottom":o=n-u-d;break}i=i||0,o=o||0,isNaN(c)&&(c=a-p-i-(s||0)),isNaN(u)&&(u=n-d-o-(l||0));var f=new Yn(i+r[3],o+r[0],c,u);return f.margin=r,f}function sm(e,t,r,a,n,i){var o,s=!n||!n.hv||n.hv[0],l=!n||!n.hv||n.hv[1],c=n&&n.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!s&&!l)return!1;if("raw"===c)o="group"===e.type?new Yn(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(o=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();o=o.clone(),o.applyTransform(u)}var d=om(Ia["i"]({width:o.width,height:o.height},t),r,a),p=s?d.x-o.x:0,h=l?d.y-o.y:0;return"raw"===c?(i.x=p,i.y=h):(i.x+=p,i.y+=h),i===e&&e.markRedraw(),!0}function lm(e,t){return null!=e[rm[t][0]]||null!=e[rm[t][1]]&&null!=e[rm[t][2]]}function cm(e){var t=e.layoutMode||e.constructor.layoutMode;return Ia["A"](t)?t:t?{type:t}:null}function um(e,t,r){var a=r&&r.ignoreSize;!Ia["t"](a)&&(a=[a,a]);var n=o(rm[0],0),i=o(rm[1],1);function o(r,n){var i={},o=0,c={},u=0,d=2;if(em(r,(function(t){c[t]=e[t]})),em(r,(function(e){s(t,e)&&(i[e]=c[e]=t[e]),l(i,e)&&o++,l(c,e)&&u++})),a[n])return l(t,r[1])?c[r[2]]=null:l(t,r[2])&&(c[r[1]]=null),c;if(u!==d&&o){if(o>=d)return i;for(var p=0;p=0;o--)i=Ia["I"](i,r[o],!0);t.defaultOption=i}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var r=e+"Index",a=e+"Id";return nc(this.ecModel,e,{index:this.get(r,!0),id:this.get(a,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Hh);function mm(e){var t=[];return Ia["k"](fm.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=Ia["H"](t,(function(e){return hc(e).main})),"dataset"!==e&&Ia["r"](t,"dataset")<=0&&t.unshift("dataset"),t}yc(fm,Hh),Dc(fm),Xh(fm),Kh(fm,mm);var gm=fm,vm="";"undefined"!==typeof navigator&&(vm=navigator.platform||"");var ym="rgba(0, 0, 0, 0.2)",bm={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ym,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ym,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ym,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ym,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ym,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ym,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vm.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},_m=Object(Ia["f"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),xm="original",wm="arrayRows",Dm="objectRows",Sm="keyedColumns",Cm="typedArray",Tm="unknown",Im="column",Om="row",Am={Must:1,Might:2,Not:3},Mm=Jl();function Pm(e){Mm(e).datasetMap=Object(Ia["f"])()}function km(e,t,r){var a={},n=Em(t);if(!n||!e)return a;var i,o,s=[],l=[],c=t.ecModel,u=Mm(c).datasetMap,d=n.uid+"_"+r.seriesLayoutBy;e=e.slice(),Object(Ia["k"])(e,(function(t,r){var n=Object(Ia["A"])(t)?t:e[r]={name:t};"ordinal"===n.type&&null==i&&(i=r,o=f(n)),a[n.name]=[]}));var p=u.get(d)||u.set(d,{categoryWayDim:o,valueWayDim:0});function h(e,t,r){for(var a=0;at)return e[a];return e[r-1]}function Hm(e,t,r,a,n,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(n))return c[n];var u=null!=o&&a?Wm(a,o):r;if(u=u||r,u&&u.length){var d=u[l];return n&&(c[n]=d),s.paletteIdx=(l+1)%u.length,d}}function qm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ym,Xm,Km;"undefined"!==typeof console&&console.warn&&console.log;function Zm(e){0}function Jm(e){throw new Error(e)}var Qm="\0_ec_inner",eg=1;var tg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.init=function(e,t,r,a,n,i){a=a||{},this.option=null,this._theme=new Hh(a),this._locale=new Hh(n),this._optionManager=i},t.prototype.setOption=function(e,t,r){var a=og(t);this._optionManager.setOption(e,r,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,t){return this._resetOption(e,og(t))},t.prototype._resetOption=function(e,t){var r=!1,a=this._optionManager;if(!e||"recreate"===e){var n=a.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(n,t)):Km(this,n),r=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var i=a.getTimelineOption(this);i&&(r=!0,this._mergeOption(i,t))}if(!e||"recreate"===e||"media"===e){var o=a.getMediaOption(this);o.length&&Object(Ia["k"])(o,(function(e){r=!0,this._mergeOption(e,t)}),this)}return r},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var r=this.option,a=this._componentsMap,n=this._componentsCount,i=[],o=Object(Ia["f"])(),s=t&&t.replaceMergeMainTypeMap;function l(t){var i=$m(this,t,Ml(e[t])),o=a.get(t),l=o?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=Ll(o,i,l);Yl(c,t,gm),r[t]=null,a.set(t,null),n.set(t,0);var u,d=[],p=[],h=0;Object(Ia["k"])(c,(function(e,r){var a=e.existing,n=e.newOption;if(n){var i="series"===t,o=gm.getClass(t,e.keyInfo.subType,!i);if(!o)return;if("tooltip"===t){if(u)return void 0;u=!0}if(a&&a.constructor===o)a.name=e.keyInfo.name,a.mergeOption(n,this),a.optionUpdated(n,!1);else{var s=Object(Ia["m"])({componentIndex:r},e.keyInfo);a=new o(n,this,this,s),Object(Ia["m"])(a,s),e.brandNew&&(a.__requireNewView=!0),a.init(n,this,this),a.optionUpdated(null,!0)}}else a&&(a.mergeOption({},this),a.optionUpdated({},!1));a?(d.push(a.option),p.push(a),h++):(d.push(void 0),p.push(void 0))}),this),r[t]=d,a.set(t,p),n.set(t,h),"series"===t&&Ym(this)}Pm(this),Object(Ia["k"])(e,(function(e,t){null!=e&&(gm.hasClass(t)?t&&(i.push(t),o.set(t,!0)):r[t]=null==r[t]?Object(Ia["d"])(e):Object(Ia["I"])(r[t],e,!0))})),s&&s.each((function(e,t){gm.hasClass(t)&&!o.get(t)&&(i.push(t),o.set(t,!0))})),gm.topologicalTravel(i,gm.getAllClassMainTypes(),l,this),this._seriesIndices||Ym(this)},t.prototype.getOption=function(){var e=Object(Ia["d"])(this.option);return Object(Ia["k"])(e,(function(t,r){if(gm.hasClass(r)){for(var a=Ml(t),n=a.length,i=!1,o=n-1;o>=0;o--)a[o]&&!Hl(a[o])?i=!0:(a[o]=null,!i&&n--);a.length=n,e[r]=a}})),delete e[Qm],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var r=this._componentsMap.get(e);if(r){var a=r[t||0];if(a)return a;if(null==t)for(var n=0;n=t:"max"===r?e<=t:e===t}function bg(e,t){return e.join(",")===t.join(",")}var _g=mg,xg=Ia["k"],wg=Ia["A"],Dg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sg(e){var t=e&&e.itemStyle;if(t)for(var r=0,a=Dg.length;r=0;m--){var g=e[m];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,d)),p>=0){var v=g.data.getByRawIndex(g.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&h>=0&&v>0||"samesign"===l&&h<=0&&v<0){h=dl(h,v),f=v;break}}}return a[0]=h,a[1]=f,a}))}))}var qg,Yg,Xg,Kg,Zg,Jg=function(){function e(e){this.data=e.data||(e.sourceFormat===Sm?{}:[]),this.sourceFormat=e.sourceFormat||Tm,this.seriesLayoutBy=e.seriesLayoutBy||Im,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rc&&(c=h)}s[0]=l,s[1]=c}},a=function(){return this._data?this._data.length/this._dimSize:0};function n(e){for(var t=0;t=0&&(s=i.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return _v(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,r){},e}();function Dv(e){var t,r;return Ia["A"](e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Sv(e){return new Cv(e)}var Cv=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,r=this._upstream,a=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(t=this._plan(this.context));var i,o=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}o===l&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,i=this._doReset(a)),this._modBy=l,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,h=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!a&&(i||p1&&a>0?s:o}};return i;function o(){return t=e?null:it},gte:function(e,t){return e>=t}},Pv=function(){function e(e,t){if(!Object(Ia["z"])(t)){var r="";0,Jm(r)}this._opFn=Mv[e],this._rvalFloat=wl(t)}return e.prototype.evaluate=function(e){return Object(Ia["z"])(e)?this._opFn(e,this._rvalFloat):this._opFn(wl(e),this._rvalFloat)},e}(),kv=function(){function e(e,t){var r="desc"===e;this._resultLT=r?1:-1,null==t&&(t=r?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var r=Object(Ia["z"])(e)?e:wl(e),a=Object(Ia["z"])(t)?t:wl(t),n=isNaN(r),i=isNaN(a);if(n&&(r=this._incomparable),i&&(a=this._incomparable),n&&i){var o=Object(Ia["C"])(e),s=Object(Ia["C"])(t);o&&(r=s?e:0),s&&(a=o?t:0)}return ra?-this._resultLT:0},e}(),Nv=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=wl(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r===this._rvalTypeof||"number"!==r&&"number"!==this._rvalTypeof||(t=wl(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Ev(e,t){return"eq"===e||"ne"===e?new Nv("eq"===e,t):Object(Ia["q"])(Mv,e)?new Pv(e,t):null}var Lv=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Iv(e,t)},e}();function Rv(e,t){var r=new Lv,a=e.data,n=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Im&&Jm(o);var s=[],l={},c=e.dimensionsDefine;if(c)Object(Ia["k"])(c,(function(e,t){var r=e.name,a={index:t,name:r,displayName:e.displayName};if(s.push(a),null!=r){var n="";Object(Ia["q"])(l,r)&&Jm(n),l[r]=a}}));else for(var u=0;u65535?Yv:Xv}function ey(){return[1/0,-1/0]}function ty(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ry(e,t,r,a,n){var i=Jv[r||"float"];if(n){var o=e[t],s=o&&o.length;if(s!==a){for(var l=new i(a),c=0;cm[1]&&(m[1]=f)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,n=this._chunks,i=this._dimensions,o=i.length,s=this._rawExtent,l=Object(Ia["H"])(i,(function(e){return e.property})),c=0;cg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(null!=r&&re))return i;n=i-1}}return-1},e.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,n=a[e],i=[];if(!n)return i;null==r&&(r=1/0);for(var o=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(o=h,s=p,l=0),p===s&&(i[l++]=c))}return i.length=l,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var n=0;n=u&&v<=d||isNaN(v))&&(s[l++]=f),f++}h=!0}else if(2===n){m=p[a[0]];var y=p[a[1]],b=e[a[1]][0],_=e[a[1]][1];for(g=0;g=u&&v<=d||isNaN(v))&&(x>=b&&x<=_||isNaN(x))&&(s[l++]=f),f++}h=!0}}if(!h)if(1===n)for(g=0;g=u&&v<=d||isNaN(v))&&(s[l++]=w)}else for(g=0;ge[C][1])&&(D=!1)}D&&(s[l++]=t.getRawIndex(g))}return lg[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var r,a,n,i=this.clone([e],!0),o=i._chunks,s=o[e],l=this.count(),c=0,u=Math.floor(1/t),d=this.getRawIndex(0),p=new(Qv(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));p[c++]=d;for(var h=1;hr&&(r=a,n=b))}T>0&&To&&(f=o-c);for(var m=0;mh&&(h=v,p=c+m)}var y=this.getRawIndex(u),b=this.getRawIndex(p);uc-h&&(s=c-h,o.length=s);for(var f=0;fu[1]&&(u[1]=g),d[p++]=v}return n._count=p,n._indices=d,n._updateGetRawIdx(),n},e.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,n=0,i=this.count();ns&&(s=u)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,n=0;n=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,r,a){return Iv(e[a],this._dimensions[a])}Hv={arrayRows:e,objectRows:function(e,t,r,a){return Iv(e[t],this._dimensions[a])},keyedColumns:e,original:function(e,t,r,a){var n=e&&(null==e.value?e:e.value);return Iv(n instanceof Array?n[a]:n,this._dimensions[a])},typedArray:function(e,t,r,a){return e[a]}}}(),e}(),ny=ay,iy=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,r=this._sourceHost,a=this._getUpstreamSourceManagers(),n=!!a.length;if(sy(r)){var i=r,o=void 0,s=void 0,l=void 0;if(n){var c=a[0];c.prepareSource(),l=c.getSource(),o=l.data,s=l.sourceFormat,t=[c._getVersionSign()]}else o=i.get("data",!0),s=Object(Ia["E"])(o)?Cm:xm,t=[];var u=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},p=Object(Ia["P"])(u.seriesLayoutBy,d.seriesLayoutBy)||null,h=Object(Ia["P"])(u.sourceHeader,d.sourceHeader),f=Object(Ia["P"])(u.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!h!==!!d.sourceHeader||f;e=m?[ev(o,{seriesLayoutBy:p,sourceHeader:h,dimensions:f},s)]:[]}else{var g=r;if(n){var v=this._applyTransform(a);e=v.sourceList,t=v.upstreamSignList}else{var y=g.get("source",!0);e=[ev(y,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,r=this._sourceHost,a=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(null!=n){var i="";1!==e.length&&ly(i)}var o=[],s=[];return Object(Ia["k"])(e,(function(e){e.prepareSource();var t=e.getSource(n||0),r="";null==n||t||ly(r),o.push(t),s.push(e._getVersionSign())})),a?t=Gv(a,o,{datasetIndex:r.componentIndex}):null!=n&&(t=[rv(o[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||r>0&&!e.noHeader;return Object(Ia["k"])(e.blocks,(function(e){var r=vy(e);r>=t&&(t=r+ +(a&&(!r||my(e)&&!e.noHeader)))})),t}return 0}function yy(e,t,r,a){var n=t.noHeader,i=xy(vy(t)),o=[],s=t.blocks||[];Object(Ia["b"])(!s||Object(Ia["t"])(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(Ia["q"])(c,l)){var u=new kv(c[l],null);s.sort((function(e,t){return u.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(Ia["k"])(s,(function(r,n){var s=t.valueFormatter,l=gy(r)(s?Object(Ia["m"])(Object(Ia["m"])({},e),{valueFormatter:s}):e,r,n>0?i.html:0,a);null!=l&&o.push(l)}));var d="richText"===e.renderMode?o.join(i.richText):wy(a,o.join(""),n?r:i.html);if(n)return d;var p=Hf(t.header,"ordinal",e.useUTC),h=dy(a,e.renderMode).nameStyle,f=uy(a);return"richText"===e.renderMode?Cy(e,p,h)+i.richText+d:wy(a,'
'+dn(p)+"
"+d,r)}function by(e,t,r,a){var n=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=Object(Ia["t"])(e)?e:[e],Object(Ia["H"])(e,(function(e,t){return Hf(e,Object(Ia["t"])(h)?h[t]:h,c)}))};if(!i||!o){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),p=i?"":Hf(l,"ordinal",c),h=t.valueType,f=o?[]:u(t.value,t.dataIndex),m=!s||!i,g=!s&&i,v=dy(a,n),y=v.nameStyle,b=v.valueStyle;return"richText"===n?(s?"":d)+(i?"":Cy(e,p,y))+(o?"":Ty(e,f,m,g,b)):wy(a,(s?"":d)+(i?"":Dy(p,!s,y))+(o?"":Sy(f,m,g,b)),r)}}function _y(e,t,r,a,n,i){if(e){var o=gy(e),s={useUTC:n,renderMode:r,orderMode:a,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function xy(e){return{html:py[e],richText:hy[e]}}function wy(e,t,r){var a='
',n="margin: "+r+"px 0 0",i=uy(e);return'
'+t+a+"
"}function Dy(e,t,r){var a=t?"margin-left:2px":"";return''+dn(e)+""}function Sy(e,t,r,a){var n=r?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return e=Object(Ia["t"])(e)?e:[e],''+Object(Ia["H"])(e,(function(e){return dn(e)})).join("  ")+""}function Cy(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Ty(e,t,r,a,n){var i=[n],o=a?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(Ia["t"])(t)?t.join(" "):t,i)}function Iy(e,t){var r=e.getData().getItemVisual(t,"style"),a=r[e.visualDrawType];return Jf(a)}function Oy(e,t){var r=e.get("padding");return null!=r?r:"richText"===t?[8,10]:10}var Ay=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Sl()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,r){var a="richText"===r?this._generateStyleName():null,n=Zf({color:t,type:e,renderMode:r,markerId:a});return Object(Ia["C"])(n)?n:(this.richTextStyles[a]=n.style,n.content)},e.prototype.wrapRichTextStyle=function(e,t){var r={};Object(Ia["t"])(t)?Object(Ia["k"])(t,(function(e){return Object(Ia["m"])(r,e)})):Object(Ia["m"])(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},e}();function My(e){var t,r,a,n,i=e.series,o=e.dataIndex,s=e.multipleSeries,l=i.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,d=i.getRawValue(o),p=Object(Ia["t"])(d),h=Iy(i,o);if(u>1||p&&!u){var f=Py(d,i,o,c,h);t=f.inlineValues,r=f.inlineValueTypes,a=f.blocks,n=f.inlineValues[0]}else if(u){var m=l.getDimensionInfo(c[0]);n=t=_v(l,o,c[0]),r=m.type}else n=t=p?d[0]:d;var g=Wl(i),v=g&&i.name||"",y=l.getName(o),b=s?v:y;return fy("section",{header:v,noHeader:s||!g,sortParam:n,blocks:[fy("nameValue",{markerType:"item",markerColor:h,name:b,noName:!Object(Ia["T"])(b),value:t,valueType:r,dataIndex:o})].concat(a||[])})}function Py(e,t,r,a,n){var i=t.getData(),o=Object(Ia["N"])(e,(function(e,t,r){var a=i.getDimensionInfo(r);return e||a&&!1!==a.tooltip&&null!=a.displayName}),!1),s=[],l=[],c=[];function u(e,t){var r=i.getDimensionInfo(t);r&&!1!==r.otherDims.tooltip&&(o?c.push(fy("nameValue",{markerType:"subItem",markerColor:n,name:r.displayName,value:e,valueType:r.type})):(s.push(e),l.push(r.type)))}return a.length?Object(Ia["k"])(a,(function(e){u(_v(i,r,e),e)})):Object(Ia["k"])(e,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}var ky=Jl();function Ny(e,t){return e.getName(t)||e.getId(t)}var Ey="__universalTransitionEnabled",Ly=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Ca(t,e),t.prototype.init=function(e,t,r){this.seriesIndex=this.componentIndex,this.dataTask=Sv({count:jy,reset:Vy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r);var a=ky(this).sourceManager=new iy(this);a.prepareSource();var n=this.getInitialData(e,r);By(n,this),this.dataTask.context.data=n,ky(this).dataBeforeProcessed=n,Ry(this),this._initSelectedMapFromData(n)},t.prototype.mergeDefaultAndTheme=function(e,t){var r=cm(this),a=r?dm(e):{},n=this.subType;gm.hasClass(n)&&(n+="Series"),Ia["I"](e,t.getTheme().get(this.subType)),Ia["I"](e,this.getDefaultOption()),Pl(e,"label",["show"]),this.fillDataTextStyle(e.data),r&&um(e,a,r)},t.prototype.mergeOption=function(e,t){e=Ia["I"](this.option,e,!0),this.fillDataTextStyle(e.data);var r=cm(this);r&&um(this.option,e,r);var a=ky(this).sourceManager;a.dirty(),a.prepareSource();var n=this.getInitialData(e,t);By(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,ky(this).dataBeforeProcessed=n,Ry(this),this._initSelectedMapFromData(n)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ia["E"](e))for(var t=["show"],r=0;rthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,r){var a=this.ecModel,n=Gm.prototype.getColorFromPalette.call(this,e,t,r);return n||(n=a.getColorFromPalette(e,t,r)),n},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var r=this.option.selectedMap;if(r){var a=this.option.selectedMode,n=this.getData(t);if("series"===a||"all"===r)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var i=0;i=0&&r.push(n)}return r},t.prototype.isSelected=function(e,t){var r=this.option.selectedMap;if(!r)return!1;var a=this.getData(t);return("all"===r||r[Ny(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ey])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var r,a,n=this.option,i=n.selectedMode,o=t.length;if(i&&o)if("series"===i)n.selectedMap="all";else if("multiple"===i){Ia["A"](n.selectedMap)||(n.selectedMap={});for(var s=n.selectedMap,l=0;l0&&this._innerSelect(e,t)}},t.registerClass=function(e){return gm.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(gm);function Ry(e){var t=e.name;Wl(e)||(e.name=Fy(e)||t)}function Fy(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),a=[];return Ia["k"](r,(function(e){var r=t.getDimensionInfo(e);r.displayName&&a.push(r.displayName)})),a.join(" ")}function jy(e){return e.model.getRawData().count()}function Vy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),$y}function $y(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function By(e,t){Ia["k"](Ia["e"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(r){e.wrapMethod(r,Ia["h"](zy,t))}))}function zy(e,t){var r=Gy(e);return r&&r.setOutputEnd((t||this).count()),t}function Gy(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var a=r.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(e.uid))}return a}}Ia["K"](Ly,wv),Ia["K"](Ly,Gm),yc(Ly,gm);var Uy=Ly,Wy=function(){function e(){this.group=new Gs,this.uid=Yh("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,r,a){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,r,a){},e.prototype.updateLayout=function(e,t,r,a){},e.prototype.updateVisual=function(e,t,r,a){},e.prototype.toggleBlurSeries=function(e,t,r){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();gc(Wy),Dc(Wy);var Hy=Wy;function qy(){var e=Jl();return function(t){var r=e(t),a=t.pipelineContext,n=!!r.large,i=!!r.progressiveRender,o=r.large=!(!a||!a.large),s=r.progressiveRender=!(!a||!a.progressiveRender);return!(n===o&&i===s)&&"reset"}}var Yy=ju.CMD,Xy=[[],[],[]],Ky=Math.sqrt,Zy=Math.atan2;function Jy(e,t){if(t){var r,a,n,i,o,s,l=e.data,c=e.len(),u=Yy.M,d=Yy.C,p=Yy.L,h=Yy.R,f=Yy.A,m=Yy.Q;for(n=0,i=0;n1&&(o*=Qy(f),s*=Qy(f));var m=(n===i?-1:1)*Qy((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,g=m*o*h/s,v=m*-s*p/o,y=(e+r)/2+tb(d)*g-eb(d)*v,b=(t+a)/2+eb(d)*g+tb(d)*v,_=ib([1,0],[(p-g)/o,(h-v)/s]),x=[(p-g)/o,(h-v)/s],w=[(-1*p-g)/o,(-1*h-v)/s],D=ib(x,w);if(nb(x,w)<=-1&&(D=rb),nb(x,w)>=1&&(D=0),D<0){var S=Math.round(D/rb*1e6)/1e6;D=2*rb+S%2*rb}u.addData(c,y,b,o,s,_,D,d,i)}var sb=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,lb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function cb(e){var t=new ju;if(!e)return t;var r,a=0,n=0,i=a,o=n,s=ju.CMD,l=e.match(sb);if(!l)return t;for(var c=0;cM*M+P*P&&(S=T,C=I),{cx:S,cy:C,x0:-u,y0:-d,x1:S*(n/x-1),y1:C*(n/x-1)}}function Rb(e){var t;if(Object(Ia["t"])(e)){var r=e.length;if(!r)return e;t=1===r?[e[0],e[0],0,0]:2===r?[e[0],e[0],e[1],e[1]]:3===r?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Fb(e,t){var r,a=Pb(t.r,0),n=Pb(t.r0||0,0),i=a>0,o=n>0;if(i||o){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,c=t.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=t.cx,d=t.cy,p=!!t.clockwise,h=Ab(c-l),f=h>Sb&&h%Sb;if(f>Nb&&(h=f),a>Nb)if(h>Sb-Nb)e.moveTo(u+a*Tb(l),d+a*Cb(l)),e.arc(u,d,a,l,c,!p),n>Nb&&(e.moveTo(u+n*Tb(c),d+n*Cb(c)),e.arc(u,d,n,c,l,p));else{var m=void 0,g=void 0,v=void 0,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0,D=void 0,S=void 0,C=void 0,T=void 0,I=void 0,O=void 0,A=void 0,M=void 0,P=a*Tb(l),k=a*Cb(l),N=n*Tb(c),E=n*Cb(c),L=h>Nb;if(L){var R=t.cornerRadius;R&&(r=Rb(R),m=r[0],g=r[1],v=r[2],y=r[3]);var F=Ab(a-n)/2;if(b=kb(F,v),_=kb(F,y),x=kb(F,m),w=kb(F,g),C=D=Pb(b,_),T=S=Pb(x,w),(D>Nb||S>Nb)&&(I=a*Tb(c),O=a*Cb(c),A=n*Tb(l),M=n*Cb(l),hNb){var W=kb(v,C),H=kb(y,C),q=Lb(A,M,P,k,a,W,p),Y=Lb(I,O,N,E,a,H,p);e.moveTo(u+q.cx+q.x0,d+q.cy+q.y0),C0&&e.arc(u+q.cx,d+q.cy,W,Ob(q.y0,q.x0),Ob(q.y1,q.x1),!p),e.arc(u,d,a,Ob(q.cy+q.y1,q.cx+q.x1),Ob(Y.cy+Y.y1,Y.cx+Y.x1),!p),H>0&&e.arc(u+Y.cx,d+Y.cy,H,Ob(Y.y1,Y.x1),Ob(Y.y0,Y.x0),!p))}else e.moveTo(u+P,d+k),e.arc(u,d,a,l,c,!p);else e.moveTo(u+P,d+k);if(n>Nb&&L)if(T>Nb){W=kb(m,T),H=kb(g,T),q=Lb(N,E,I,O,n,-H,p),Y=Lb(P,k,A,M,n,-W,p);e.lineTo(u+q.cx+q.x0,d+q.cy+q.y0),T0&&e.arc(u+q.cx,d+q.cy,H,Ob(q.y0,q.x0),Ob(q.y1,q.x1),!p),e.arc(u,d,n,Ob(q.cy+q.y1,q.cx+q.x1),Ob(Y.cy+Y.y1,Y.cx+Y.x1),p),W>0&&e.arc(u+Y.cx,d+Y.cy,W,Ob(Y.y1,Y.x1),Ob(Y.y0,Y.x0),!p))}else e.lineTo(u+N,d+E),e.arc(u,d,n,c,l,p);else e.lineTo(u+N,d+E)}else e.moveTo(u,d);e.closePath()}}}var jb=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),Vb=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultShape=function(){return new jb},t.prototype.buildPath=function(e,t){Fb(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ud);Vb.prototype.type="sector";var $b=Vb,Bb=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zb=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultShape=function(){return new Bb},t.prototype.buildPath=function(e,t){var r=t.cx,a=t.cy,n=2*Math.PI;e.moveTo(r+t.r,a),e.arc(r,a,t.r,0,n,!1),e.moveTo(r+t.r0,a),e.arc(r,a,t.r0,0,n,!0)},t}(ud);zb.prototype.type="ring";var Gb=zb;function Ub(e,t,r,a){var n,i,o,s,l=[],c=[],u=[],d=[];if(a){o=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,h=e.length;p=2){if(a){var i=Ub(n,a,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=i[2*s],c=i[2*s+1],u=n[(s+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);s=1;for(var d=n.length;sb_[1]){if(o=!1,n)return o;var c=Math.abs(b_[0]-y_[1]),u=Math.abs(y_[0]-b_[1]);Math.min(c,u)>a.len()&&(cMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function H_(e){return!e.isGroup}function q_(e){return null!=e.shape}function Y_(e,t,r){if(e&&t){var a=n(e);t.traverse((function(e){if(H_(e)&&e.anid){var t=a[e.anid];if(t){var n=i(e);e.attr(i(t)),ch(e,n,r,Hd(e).dataIndex)}}}))}function n(e){var t={};return e.traverse((function(e){H_(e)&&e.anid&&(t[e.anid]=e)})),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return q_(e)&&(t.shape=Object(Ia["m"])({},e.shape)),t}}function X_(e,t){return Object(Ia["H"])(e,(function(e){var r=e[0];r=I_(r,t.x),r=O_(r,t.x+t.width);var a=e[1];return a=I_(a,t.y),a=O_(a,t.y+t.height),[r,a]}))}function K_(e,t){var r=I_(e.x,t.x),a=O_(e.x+e.width,t.x+t.width),n=I_(e.y,t.y),i=O_(e.y+e.height,t.y+t.height);if(a>=r&&i>=n)return{x:r,y:n,width:a-r,height:i-n}}function Z_(e,t,r){var a=Object(Ia["m"])({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(n.image=e.slice(8),Object(Ia["i"])(n,r),new yd(a)):L_(e.replace("path://",""),a,r,"center")}function J_(e,t,r,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=ex(h,f,u,d)/p;return!(g<0||g>1)}function ex(e,t,r,a){return e*a-r*t}function tx(e){return e<=1e-6&&e>=-1e-6}function rx(e){var t=e.itemTooltipOption,r=e.componentModel,a=e.itemName,n=Object(Ia["C"])(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&Object(Ia["k"])(Object(Ia["F"])(l),(function(e){Object(Ia["q"])(s,e)||(s[e]=l[e],s.$vars.push(e))}));var c=Hd(e.el);c.componentMainType=i,c.componentIndex=o,c.tooltipConfig={name:a,option:Object(Ia["i"])({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function ax(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function nx(e,t){if(e)if(Object(Ia["t"])(e))for(var r=0;r=0?d():u=setTimeout(d,-n),l=a};return p.clear=function(){u&&(clearTimeout(u),u=null)},p.debounceNextCall=function(e){s=e},p}function yx(e,t,r,a){var n=e[t];if(n){var i=n[fx]||n,o=n[gx],s=n[mx];if(s!==r||o!==a){if(null==r||!a)return e[t]=i;n=e[t]=vx(i,r,"debounce"===a),n[fx]=i,n[gx]=a,n[mx]=r}return n}}function bx(e,t){var r=e[t];r&&r[fx]&&(r.clear&&r.clear(),e[t]=r[fx])}var _x=Jl(),xx={itemStyle:Sc(zh,!0),lineStyle:Sc(Vh,!0)},wx={lineStyle:"stroke",itemStyle:"fill"};function Dx(e,t){var r=e.visualStyleMapper||xx[t];return r||(console.warn("Unknown style type '"+t+"'."),xx.itemStyle)}function Sx(e,t){var r=e.visualDrawType||wx[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Cx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=e.getModel(a),i=Dx(e,a),o=i(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Sx(e,a),c=o[l],u=Object(Ia["w"])(c)?c:null,d="auto"===o.fill||"auto"===o.stroke;if(!o[l]||u||d){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(Ia["w"])(o.fill)?p:o.fill,o.stroke="auto"===o.stroke||Object(Ia["w"])(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return r.setVisual("colorFromPalette",!1),{dataEach:function(t,r){var a=e.getDataParams(r),n=Object(Ia["m"])({},o);n[l]=u(a),t.setItemVisual(r,"style",n)}}}},Tx=new Hh,Ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var r=e.getData(),a=e.visualStyleAccessPath||"itemStyle",n=Dx(e,a),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(e,t){var r=e.getRawDataItem(t);if(r&&r[a]){Tx.option=r[a];var o=n(Tx),s=e.ensureUniqueItemVisual(t,"style");Object(Ia["m"])(s,o),Tx.option.decal&&(e.setItemVisual(t,"decal",Tx.option.decal),Tx.option.decal.dirty=!0),i in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Ox={performRawSeries:!0,overallReset:function(e){var t=Object(Ia["f"])();e.eachSeries((function(e){var r=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+r,n=t.get(a);n||(n={},t.set(a,n)),_x(e).scope=n}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var r=t.getRawData(),a={},n=t.getData(),i=_x(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=Sx(t,o);n.each((function(e){var t=n.getRawIndex(e);a[t]=e})),r.each((function(e){var o=a[e],l=n.getItemVisual(o,"colorFromPalette");if(l){var c=n.ensureUniqueItemVisual(o,"style"),u=r.getName(e)||e+"",d=r.count();c[s]=t.getColorFromPalette(u,i,d)}}))}}))}},Ax=Math.PI;function Mx(e,t){t=t||{},Ia["i"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Gs,a=new Id({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(a);var n,i=new Wd({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Id({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return r.add(o),t.showSpinner&&(n=new c_({shape:{startAngle:-Ax/2,endAngle:-Ax/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),n.animateShape(!0).when(1e3,{endAngle:3*Ax/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*Ax/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&r?10:0)-r)/2-(t.showSpinner&&r?0:5+r/2)+(t.showSpinner?0:r/2)+(r?0:s),c=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:c}),o.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),a.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Px=function(){function e(e,t,r,a){this._stageTaskMap=Object(Ia["f"])(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,n=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,i=n?r.step:null,o=a&&a.modDataCount,s=null!=o?Math.ceil(o/i):null;return{step:i,modBy:s,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),n=a.count(),i=r.progressiveEnabled&&t.incrementalPrepareRender&&n>=r.threshold,o=e.get("large")&&n>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?n:null;e.pipelineContext=r.context={progressiveRender:i,modDataCount:s,large:o}},e.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=Object(Ia["f"])();e.eachSeries((function(e){var a=e.getProgressive(),n=e.uid;r.set(n,{id:n,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:a&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;Object(Ia["k"])(this._allHandlers,(function(a){var n=e.get(a.uid)||e.set(a.uid,{}),i="";Object(Ia["b"])(!(a.reset&&a.overallReset),i),a.reset&&this._createSeriesStageTask(a,n,t,r),a.overallReset&&this._createOverallStageTask(a,n,t,r)}),this)},e.prototype.prepareView=function(e,t,r,a){var n=e.renderTask,i=n.context;i.model=t,i.ecModel=r,i.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},e.prototype._performStageTasks=function(e,t,r,a){a=a||{};var n=!1,i=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(Ia["k"])(e,(function(e,s){if(!a.visualType||a.visualType===e.visualType){var l=i._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var d,p=u.agentStubMap;p.each((function(e){o(a,e)&&(e.dirty(),d=!0)})),d&&u.dirty(),i.updatePayload(u,r);var h=i.getPerformArgs(u,a.block);p.each((function(e){e.perform(h)})),u.perform(h)&&(n=!0)}else c&&c.each((function(s,l){o(a,s)&&s.dirty();var c=i.getPerformArgs(s,a.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),i.updatePayload(s,r),s.perform(c)&&(n=!0)}))}})),this.unfinished=n||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,r,a){var n=this,i=t.seriesTaskMap,o=t.seriesTaskMap=Object(Ia["f"])(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=o.set(s,i&&i.get(s)||Sv({plan:Rx,reset:Fx,count:$x}));l.context={model:t,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(t,l)}e.createOnAllSeries?r.eachRawSeries(c):s?r.eachRawSeriesByType(s,c):l&&l(r,a).each(c)},e.prototype._createOverallStageTask=function(e,t,r,a){var n=this,i=t.overallTask=t.overallTask||Sv({reset:kx});i.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:n};var o=i.agentStubMap,s=i.agentStubMap=Object(Ia["f"])(),l=e.seriesType,c=e.getTargetSeries,u=!0,d=!1,p="";function h(e){var t=e.uid,r=s.set(t,o&&o.get(t)||(d=!0,Sv({reset:Nx,onDirty:Lx})));r.context={model:e,overallProgress:u},r.agent=i,r.__block=u,n._pipe(e,r)}Object(Ia["b"])(!e.createOnAllSeries,p),l?r.eachRawSeriesByType(l,h):c?c(r,a).each(h):(u=!1,Object(Ia["k"])(r.getSeries(),h)),d&&i.dirty()},e.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},e.wrapStageHandler=function(e,t){return Object(Ia["w"])(e)&&(e={overallReset:e,seriesType:Bx(e)}),e.uid=Yh("stageHandler"),t&&(e.visualType=t),e},e}();function kx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Nx(e){return e.overallProgress&&Ex}function Ex(){this.agent.dirty(),this.getDownstream().dirty()}function Lx(){this.agent&&this.agent.dirty()}function Rx(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Fx(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ml(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(Ia["H"])(t,(function(e,t){return Vx(t)})):jx}var jx=Vx(0);function Vx(e){return function(t,r){var a=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var i=t.start;i0&&u===n.length-c.length){var d=n.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(n)&&(r[n]=e,s=!0),s||(a[n]=e)}))}return{cptQuery:t,dataQuery:r,otherQuery:a}},e.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,n=r.packedEvent,i=r.model,o=r.view;if(!i||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,i,"mainType")&&c(s,i,"subType")&&c(s,i,"index","componentIndex")&&c(s,i,"name")&&c(s,i,"id")&&c(l,n,"name")&&c(l,n,"dataIndex")&&c(l,n,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,a,n));function c(e,t,r,a){return null==e[r]||t[a||r]===e[r]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),rw=["symbol","symbolSize","symbolRotate","symbolOffset"],aw=rw.concat(["symbolKeepAspect"]),nw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var a={},n={},i=!1,o=0;o=0&&Aw(l)?l:.5;var c=e.createRadialGradient(o,s,0,o,s,l);return c}function kw(e,t,r){for(var a="radial"===t.type?Pw(e,t,r):Mw(e,t,r),n=t.colorStops,i=0;i0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(Ia["z"])(e)?[e]:Object(Ia["t"])(e)?e:null:null}function Fw(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Rw(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&1!==n&&(r=Object(Ia["H"])(r,(function(e){return e/n})),a/=n)}return[r,a]}var jw=new ju(!0);function Vw(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function $w(e){return"string"===typeof e&&"none"!==e}function Bw(e){var t=e.fill;return null!=t&&"none"!==t}function zw(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Gw(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Uw(e,t,r){var a=Mc(t.image,t.__image,r);if(kc(a)){var n=e.createPattern(a,t.repeat||"repeat");if("function"===typeof DOMMatrix&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Ia["a"]),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function Ww(e,t,r,a){var n,i=Vw(r),o=Bw(r),s=r.strokePercent,l=s<1,c=!t.path;t.silent&&!l||!c||t.createPathProxy();var u=t.path||jw,d=t.__dirty;if(!a){var p=r.fill,h=r.stroke,f=o&&!!p.colorStops,m=i&&!!h.colorStops,g=o&&!!p.image,v=i&&!!h.image,y=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(f||m)&&(w=t.getBoundingRect()),f&&(y=d?kw(e,p,w):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(b=d?kw(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),g&&(_=d||!t.__canvasFillPattern?Uw(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=_),v&&(x=d||!t.__canvasStrokePattern?Uw(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=y:g&&(_?e.fillStyle=_:o=!1),m?e.strokeStyle=b:v&&(x?e.strokeStyle=x:i=!1)}var D,S,C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&r.lineDash&&(n=Fw(t),D=n[0],S=n[1]);var T=!0;(c||d&bi)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),T=!1),u.reset(),t.buildPath(u,t.shape,a),u.toStatic(),t.pathUpdated()),T&&u.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=S),a||(r.strokeFirst?(i&&Gw(e,r),o&&zw(e,r)):(o&&zw(e,r),i&&Gw(e,r))),D&&e.setLineDash([])}function Hw(e,t,r){var a=t.__image=Mc(r.image,t.__image,t,t.onload);if(a&&kc(a)){var n=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=a.width,s=a.height),r.sWidth&&r.sHeight){var c=r.sx||0,u=r.sy||0;e.drawImage(a,c,u,r.sWidth,r.sHeight,n,i,o,s)}else if(r.sx&&r.sy){c=r.sx,u=r.sy;var d=o-c,p=s-u;e.drawImage(a,c,u,d,p,n,i,o,s)}else e.drawImage(a,n,i,o,s)}}function qw(e,t,r){var a,n=r.text;if(null!=n&&(n+=""),n){e.font=r.font||ys["a"],e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(a=Fw(t),i=a[0],o=a[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Vw(r)&&e.strokeText(n,r.x,r.y),Bw(r)&&e.fillText(n,r.x,r.y)):(Bw(r)&&e.fillText(n,r.x,r.y),Vw(r)&&e.strokeText(n,r.x,r.y)),i&&e.setLineDash([])}}var Yw=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Kw(e,t,r,a,n){var i=!1;if(!a&&(r=r||{},t===r))return!1;if(a||t.opacity!==r.opacity){sD(e,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Xc.opacity:o}(a||t.blend!==r.blend)&&(i||(sD(e,n),i=!0),e.globalCompositeOperation=t.blend||Xc.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,r){if(!this[UD])if(this._disposed)SS(this.id);else{var a,n,i;if(Object(Ia["A"])(t)&&(r=t.lazyUpdate,a=t.silent,n=t.replaceMerge,i=t.transition,t=t.notMerge),this[UD]=!0,!this._model||t){var o=new _g(this._api),s=this._theme,l=this._model=new sg;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:n},OS);var c={seriesTransition:i,optionChanged:!0};if(r)this[WD]={silent:a,updateParams:c},this[UD]=!1,this.getZr().wakeUp();else{try{tS(this),nS.update.call(this,null,c)}catch(u){throw this[WD]=null,this[UD]=!1,u}this._ssr||this._zr.flush(),this[WD]=null,this[UD]=!1,lS.call(this,a),cS.call(this,a)}}},t.prototype.setTheme=function(){Zm("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ta["a"].hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ta["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(Ia["k"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,r=this._model,a=[],n=this;Object(Ia["k"])(t,(function(e){r.eachComponent({mainType:e},(function(e){var t=n._componentsMap[e.__viewId];t.group.ignore||(a.push(t),t.group.ignore=!0)}))}));var i="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(Ia["k"])(a,(function(e){e.group.ignore=!1})),i}SS(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,r=this.group,a=Math.min,n=Math.max,i=1/0;if(NS[r]){var o=i,s=i,l=-i,c=-i,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Object(Ia["k"])(kS,(function(i,d){if(i.group===r){var p=t?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(Ia["d"])(e)),h=i.getDom().getBoundingClientRect();o=a(h.left,o),s=a(h.top,s),l=n(h.right,l),c=n(h.bottom,c),u.push({dom:p,left:h.left,top:h.top})}})),o*=d,s*=d,l*=d,c*=d;var p=l-o,h=c-s,f=ys["d"].createCanvas(),m=Ks(f,{renderer:t?"svg":"canvas"});if(m.resize({width:p,height:h}),t){var g="";return Object(Ia["k"])(u,(function(e){var t=e.left-o,r=e.top-s;g+=''+e.dom+""})),m.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new Id({shape:{x:0,y:0,width:p,height:h},style:{fill:e.connectedBackgroundColor}})),Object(Ia["k"])(u,(function(e){var t=new yd({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});m.add(t)})),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}SS(this.id)},t.prototype.convertToPixel=function(e,t){return iS(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return iS(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var r,a=this._model,n=ec(a,e);return Object(Ia["k"])(n,(function(e,a){a.indexOf("Models")>=0&&Object(Ia["k"])(e,(function(e){var n=e.coordinateSystem;if(n&&n.containPoint)r=r||!!n.containPoint(t);else if("seriesModels"===a){var i=this._chartsMap[e.__viewId];i&&i.containPoint&&(r=r||i.containPoint(t,e))}else 0}),this)}),this),!!r}SS(this.id)},t.prototype.getVisual=function(e,t){var r=this._model,a=ec(r,e,{defaultMainType:"series"}),n=a.seriesModel;var i=n.getData(),o=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?i.indexOfRawIndex(a.dataIndex):null;return null!=o?ow(i,o,t):sw(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(Ia["k"])(DS,(function(t){var r=function(r){var a,n=e.getModel(),i=r.target,o="globalout"===t;if(o?a={}:i&&pw(i,(function(e){var t=Hd(e);if(t&&null!=t.dataIndex){var r=t.dataModel||n.getSeriesByIndex(t.seriesIndex);return a=r&&r.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=Object(Ia["m"])({},t.eventData),!0}),!0),a){var s=a.componentType,l=a.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=a.seriesIndex);var c=s&&null!=l&&n.getComponent(s,l),u=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,a.event=r,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:u},e.trigger(t,a)}};r.zrEventfulCallAtLast=!0,e._zr.on(t,r,e)})),Object(Ia["k"])(TS,(function(t,r){e._messageCenter.on(r,(function(e){this.trigger(r,e)}),e)})),Object(Ia["k"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),dw(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?SS(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)SS(this.id);else{this._disposed=!0;var e=this.getDom();e&&ic(this.getDom(),LS,"");var t=this,r=t._api,a=t._model;Object(Ia["k"])(t._componentsViews,(function(e){e.dispose(a,r)})),Object(Ia["k"])(t._chartsViews,(function(e){e.dispose(a,r)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete kS[t.id]}},t.prototype.resize=function(e){if(!this[UD])if(this._disposed)SS(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var r=t.resetOption("media"),a=e&&e.silent;this[WD]&&(null==a&&(a=this[WD].silent),r=!0,this[WD]=null),this[UD]=!0;try{r&&tS(this),nS.update.call(this,{type:"resize",animation:Object(Ia["m"])({duration:0},e&&e.animation)})}catch(n){throw this[UD]=!1,n}this[UD]=!1,lS.call(this,a),cS.call(this,a)}}},t.prototype.showLoading=function(e,t){if(this._disposed)SS(this.id);else if(Object(Ia["A"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),PS[e]){var r=PS[e](this._api,t),a=this._zr;this._loadingFX=r,a.add(r)}},t.prototype.hideLoading=function(){this._disposed?SS(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(Ia["m"])({},e);return t.type=TS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)SS(this.id);else if(Object(Ia["A"])(t)||(t={silent:!!t}),CS[e.type]&&this._model)if(this[UD])this._pendingActions.push(e);else{var r=t.silent;sS.call(this,e,r);var a=t.flush;a?this._zr.flush():!1!==a&&Ta["a"].browser.weChat&&this._throttledZrFlush(),lS.call(this,r),cS.call(this,r)}},t.prototype.updateLabelLayout=function(){DD.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)SS(this.id);else{var t=e.seriesIndex,r=this.getModel(),a=r.getSeriesByIndex(t);0,a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],r=[],a=!1;if(e.eachComponent((function(e,n){var i=n.get("zlevel")||0,o=n.get("z")||0,s=n.getZLevelKey();a=a||!!s,("series"===e?r:t).push({zlevel:i,z:o,idx:n.componentIndex,type:e,key:s})})),a){var n,i,o=t.concat(r);gi(o,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(Ia["k"])(o,(function(t){var r=e.getComponent(t.type,t.idx),a=t.zlevel,o=t.key;null!=n&&(a=Math.max(n,a)),o?(a===n&&o!==i&&a++,i=o):i&&(a===n&&a++,i=""),n=a,r.setZLevel(a)}))}}function r(e){for(var t=[],r=e.currentStates,a=0;at.get("hoverLayerThreshold")&&!Ta["a"].node&&!Ta["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var r=e._chartsMap[t.__viewId];r.__alive&&r.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function n(e,t){var r=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=r)}))}function i(e,t){if(!e.preventAutoZ){var r=e.get("z")||0,a=e.get("zlevel")||0;t.eachRendered((function(e){return o(e,r,a,-1/0),!0}))}}function o(e,t,r,a){var n=e.getTextContent(),i=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),c=0;c0?{duration:i,delay:a.get("delay"),easing:a.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(dh(e))return;if(e instanceof ud&&ih(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(n){e.stateTransition=o;var a=e.getTextContent(),i=e.getTextGuideLine();a&&(a.stateTransition=o),i&&(i.stateTransition=o)}e.__dirty&&r(e)}}))}tS=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),rS(e,!0),rS(e,!1),t.plan()},rS=function(e,t){for(var r=e._model,a=e._scheduler,n=t?e._componentsViews:e._chartsViews,i=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l=0)){YS.push(r);var i=Hx.wrapStageHandler(r,n);i.__prio=t,i.__raw=r,e.push(i)}}function KS(e,t){PS[e]=t}function ZS(e,t,r){var a=TD("registerMap");a&&a(e,t,r)}var JS=zv;qS(LD,Cx),qS(jD,Ix),qS(jD,Ox),qS(LD,nw),qS(jD,iw),qS(zD,xD),VS(Ug),$S(AD,Wg),KS("default",Mx),US({type:ip,event:ip,update:ip},Ia["L"]),US({type:op,event:op,update:op},Ia["L"]),US({type:sp,event:sp,update:sp},Ia["L"]),US({type:lp,event:lp,update:lp},Ia["L"]),US({type:cp,event:cp,update:cp},Ia["L"]),jS("light",Yx),jS("dark",ew);var QS=[],eC={registerPreprocessor:VS,registerProcessor:$S,registerPostInit:BS,registerPostUpdate:zS,registerUpdateLifecycle:GS,registerAction:US,registerCoordinateSystem:WS,registerLayout:HS,registerVisual:qS,registerTransform:JS,registerLoading:KS,registerMap:ZS,registerImpl:CD,PRIORITY:GD,ComponentModel:gm,ComponentView:Hy,SeriesModel:Uy,ChartView:hx,registerComponentModel:function(e){gm.registerClass(e)},registerComponentView:function(e){Hy.registerClass(e)},registerSeriesModel:function(e){Uy.registerClass(e)},registerChartView:function(e){hx.registerClass(e)},registerSubTypeDefaulter:function(e,t){gm.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Zs(e,t)}};function tC(e){Object(Ia["t"])(e)?Object(Ia["k"])(e,(function(e){tC(e)})):Object(Ia["r"])(QS,e)>=0||(QS.push(e),Object(Ia["w"])(e)&&(e={install:e}),e.install(eC))}var rC=2*Math.PI,aC=ju.CMD,nC=["top","right","bottom","left"];function iC(e,t,r,a,n){var i=r.width,o=r.height;switch(e){case"top":a.set(r.x+i/2,r.y-t),n.set(0,-1);break;case"bottom":a.set(r.x+i/2,r.y+o+t),n.set(0,1);break;case"left":a.set(r.x-t,r.y+o/2),n.set(-1,0);break;case"right":a.set(r.x+i+t,r.y+o/2),n.set(1,0);break}}function oC(e,t,r,a,n,i,o,s,l){o-=e,s-=t;var c=Math.sqrt(o*o+s*s);o/=c,s/=c;var u=o*r+e,d=s*r+t;if(Math.abs(a-n)%rC<1e-4)return l[0]=u,l[1]=d,c-r;if(i){var p=a;a=Gu(n),n=Gu(p)}else a=Gu(a),n=Gu(n);a>n&&(n+=rC);var h=Math.atan2(s,o);if(h<0&&(h+=rC),h>=a&&h<=n||h+rC>=a&&h+rC<=n)return l[0]=u,l[1]=d,c-r;var f=r*Math.cos(a)+e,m=r*Math.sin(a)+t,g=r*Math.cos(n)+e,v=r*Math.sin(n)+t,y=(f-o)*(f-o)+(m-s)*(m-s),b=(g-o)*(g-o)+(v-s)*(v-s);return y0){t=t/180*Math.PI,pC.fromArray(e[0]),hC.fromArray(e[1]),fC.fromArray(e[2]),jn.sub(mC,pC,hC),jn.sub(gC,fC,hC);var r=mC.len(),a=gC.len();if(!(r<.001||a<.001)){mC.scale(1/r),gC.scale(1/a);var n=mC.dot(gC),i=Math.cos(t);if(i1&&jn.copy(bC,fC),bC.toArray(e[1])}}}}function xC(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,pC.fromArray(e[0]),hC.fromArray(e[1]),fC.fromArray(e[2]),jn.sub(mC,hC,pC),jn.sub(gC,fC,hC);var a=mC.len(),n=gC.len();if(!(a<.001||n<.001)){mC.scale(1/a),gC.scale(1/n);var i=mC.dot(t),o=Math.cos(r);if(i=l)jn.copy(bC,fC);else{bC.scaleAndAdd(gC,s/Math.tan(Math.PI/2-u));var d=fC.x!==hC.x?(bC.x-hC.x)/(fC.x-hC.x):(bC.y-hC.y)/(fC.y-hC.y);if(isNaN(d))return;d<0?jn.copy(bC,hC):d>1&&jn.copy(bC,fC)}bC.toArray(e[1])}}}}function wC(e,t,r,a){var n="normal"===r,i=n?e:e.ensureState(r);i.ignore=t;var o=a.get("smooth");o&&!0===o&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?e.useStyle(s):i.style=s}function DC(e,t){var r=t.smooth,a=t.points;if(a)if(e.moveTo(a[0][0],a[0][1]),r>0&&a.length>=3){var n=$a(a[0],a[1]),i=$a(a[1],a[2]);if(!n||!i)return e.lineTo(a[1][0],a[1][1]),void e.lineTo(a[2][0],a[2][1]);var o=Math.min(n,i)*r,s=Ga([],a[1],a[0],o/n),l=Ga([],a[1],a[2],o/i),c=Ga([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var u=1;u0&&i&&w(-d/o,0,o);var g,v,y=e[0],b=e[o-1];return _(),g<0&&D(-g,.8),v<0&&D(v,.8),_(),x(g,v,1),x(v,g,-1),_(),g<0&&S(-g),v<0&&S(v),c}function _(){g=y.rect[t]-a,v=n-b.rect[t]-b.rect[r]}function x(e,t,r){if(e<0){var a=Math.min(t,-e);if(a>0){w(a*r,0,o);var n=a+e;n<0&&D(-n*r,1)}else D(-e*r,1)}}function w(r,a,n){0!==r&&(c=!0);for(var i=a;i0)for(l=0;l0;l--){p=i[l-1]*d;w(-p,l,o)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var r=Math.ceil(e/(o-1)),a=0;a0?w(r,0,a+1):w(-r,o-a-1,o),e-=r,e<=0)return}}function OC(e,t,r,a){return IC(e,"x","width",t,r,a)}function AC(e,t,r,a){return IC(e,"y","height",t,r,a)}function MC(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var r=new Yn(0,0,0,0);function a(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var n=0;n=0&&r.attr(n.oldLayoutSelect),Object(Ia["r"])(u,"emphasis")>=0&&r.attr(n.oldLayoutEmphasis)),ch(r,l,t,s)}else if(r.attr(l),!Ph(r).valueAnimation){var d=Object(Ia["P"])(r.style.opacity,1);r.style.opacity=0,uh(r,{style:{opacity:d}},t,s)}if(n.oldLayout=l,r.states.select){var p=n.oldLayoutSelect={};FC(p,l,jC),FC(p,r.states.select,jC)}if(r.states.emphasis){var h=n.oldLayoutEmphasis={};FC(h,l,jC),FC(h,r.states.emphasis,jC)}Nh(r,s,c,t,t)}if(a&&!a.ignore&&!a.invisible){n=RC(a),i=n.oldLayout;var f={points:a.shape.points};i?(a.attr({shape:i}),ch(a,{shape:f},t)):(a.setShape(f),a.style.strokePercent=0,uh(a,{style:{strokePercent:1}},t)),n.oldLayout=f}},e}(),$C=VC,BC=Jl();function zC(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,r){var a=BC(t).labelManager;a||(a=BC(t).labelManager=new $C),a.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,r){var a=BC(t).labelManager;r.updatedSeries.forEach((function(e){a.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()}))}function GC(e,t,r){var a=ys["d"].createCanvas(),n=t.getWidth(),i=t.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",e)),a.width=n*r,a.height=i*r,a}tC(zC);var UC=function(e){function t(t,r,a){var n,i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,a=a||ts,"string"===typeof t?n=GC(t,r,a):Ia["A"](t)&&(n=t,t=n.id),i.id=t,i.dom=n;var o=n.style;return o&&(Ia["j"](n),n.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),i.painter=r,i.dpr=a,i}return Ca(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=GC("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,r,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var n,i=[],o=this.maxRepaintRectCount,s=!1,l=new Yn(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===i.length){var t=new Yn(0,0,0,0);t.copy(e),i.push(t)}else{for(var r=!1,a=1/0,n=0,c=0;c=o)}}for(var u=this.__startIndex;u15)break}}r.prevElClipPaths&&d.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var _=p.dpr,x=0;x0&&e>a[0]){for(s=0;se)break;o=r[a[s]]}if(a.splice(s+1,0,e),r[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?i.insertBefore(t.dom,l.nextSibling):i.appendChild(t.dom)}else i.firstChild?i.insertBefore(t.dom,i.firstChild):i.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?YC:0),this._needsManuallyCompositing),c.__builtin__||Ia["G"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==i&&(c.__dirty=!0),c.__startIndex=i,c.incremental?c.__drawIndex=-1:c.__drawIndex=i,t(i),o=c),a.__dirty&vi&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Ia["k"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Ia["I"](r[e],t,!0):r[e]=t;for(var a=0;a=nT:-l>=nT),p=l>0?l%nT:l%nT+nT,h=!1;h=!!d||!Object(io["j"])(u)&&p>=aT===!!c;var f=e+r*rT(i),m=t+a*tT(i);this._start&&this._add("M",f,m);var g=Math.round(n*iT);if(d){var v=1/this._p,y=(c?1:-1)*(nT-v);this._add("A",r,a,g,1,+c,e+r*rT(i+y),t+a*tT(i+y)),v>.01&&this._add("A",r,a,g,0,+c,f,m)}else{var b=e+r*rT(o),_=t+a*tT(o);this._add("A",r,a,g,+h,+c,b,_)}},e.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,r,a,n,i,o,s,l){for(var c=[],u=this._p,d=1;d"}function DT(e){return""}function ST(e,t){t=t||{};var r=t.newline?"\n":"";function a(e){var t=e.children,n=e.tag,i=e.attrs,o=e.text;return wT(n,i)+("style"!==n?dn(o):o||"")+(t?""+r+Object(Ia["H"])(t,(function(e){return a(e)})).join(r)+r:"")+DT(n)}return a(e)}function CT(e,t,r){r=r||{};var a=r.newline?"\n":"",n=" {"+a,i=a+"}",o=Object(Ia["H"])(Object(Ia["F"])(e),(function(t){return t+n+Object(Ia["H"])(Object(Ia["F"])(e[t]),(function(r){return r+":"+e[t][r]+";"})).join(a)+i})).join(a),s=Object(Ia["H"])(Object(Ia["F"])(t),(function(e){return"@keyframes "+e+n+Object(Ia["H"])(Object(Ia["F"])(t[e]),(function(r){return r+n+Object(Ia["H"])(Object(Ia["F"])(t[e][r]),(function(a){var n=t[e][r][a];return"d"===a&&(n='path("'+n+'")'),a+":"+n+";"})).join(a)+i})).join(a)+i})).join(a);return o||s?[""].join(a):""}function TT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function IT(e,t,r,a){return xT("svg","root",{width:e,height:t,xmlns:mT,"xmlns:xlink":gT,version:"1.1",baseProfile:"full",viewBox:!!a&&"0 0 "+e+" "+t},r)}var OT=0;function AT(){return OT++}var MT={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},PT="transform-origin";function kT(e,t,r){var a=Object(Ia["m"])({},e.shape);Object(Ia["m"])(a,t),e.buildPath(r,a);var n=new sT;return n.reset(Object(io["f"])(e)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function NT(e,t){var r=t.originX,a=t.originY;(r||a)&&(e[PT]=r+"px "+a+"px")}var ET={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function LT(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function RT(e,t,r){var a,n,i=e.shape.paths,o={};if(Object(Ia["k"])(i,(function(e){var t=TT(r.zrId);t.animation=!0,jT(e,{},t,!0);var i=t.cssAnims,s=t.cssNodes,l=Object(Ia["F"])(i),c=l.length;if(c){n=l[c-1];var u=i[n];for(var d in u){var p=u[d];o[d]=o[d]||{d:""},o[d].d+=p.d||""}for(var h in s){var f=s[h].animation;f.indexOf(n)>=0&&(a=f)}}})),a){t.d=!1;var s=LT(o,r);return a.replace(n,s)}}function FT(e){return Object(Ia["C"])(e)?MT[e]?"cubic-bezier("+MT[e]+")":to(e)?e:"":""}function jT(e,t,r,a){var n=e.animators,i=n.length,o=[];if(e instanceof d_){var s=RT(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},c=0;c0})).length){var A=LT(u,r);return A+" "+n[0]+" both"}}for(var g in l){s=m(l[g]);s&&o.push(s)}if(o.length){var v=r.zrId+"-cls-"+AT();r.cssNodes["."+v]={animation:o.join(",")},t["class"]=v}}function VT(e,t,r){if(!e.ignore)if(e.isSilent()){var a={"pointer-events":"none"};$T(a,t,r,!0)}else{var n=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=n.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=Object(no["d"])(l))}var c=n.lineWidth;if(c){var u=!n.strokeNoScale&&e.transform?e.transform[0]:1;c/=u}a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),c&&(a["stroke-width"]=c),$T(a,t,r,!0)}}function $T(e,t,r,a){var n=JSON.stringify(e),i=r.cssStyleCache[n];i||(i=r.zrId+"-cls-"+AT(),r.cssStyleCache[n]=i,r.cssNodes["."+i+(a?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+i:i}var BT=Math.round;function zT(e){return e&&Object(Ia["C"])(e.src)}function GT(e){return e&&Object(Ia["w"])(e.toDataURL)}function UT(e,t,r,a){fT((function(n,i){var o="fill"===n||"stroke"===n;o&&Object(io["k"])(i)?iI(t,e,n,a):o&&Object(io["n"])(i)?oI(r,e,n,a):e[n]=i,o&&a.ssr&&"none"===i&&(e["pointer-events"]="visible")}),t,r,!1),nI(r,e,a)}function WT(e,t){var r=Js(t);r&&(r.each((function(t,r){null!=t&&(e[(bT+r).toLowerCase()]=t+"")})),t.isSilent()&&(e[bT+"silent"]="true"))}function HT(e){return Object(io["j"])(e[0]-1)&&Object(io["j"])(e[1])&&Object(io["j"])(e[2])&&Object(io["j"])(e[3]-1)}function qT(e){return Object(io["j"])(e[4])&&Object(io["j"])(e[5])}function YT(e,t,r){if(t&&(!qT(t)||!HT(t))){var a=r?10:1e4;e.transform=HT(t)?"translate("+BT(t[4]*a)/a+" "+BT(t[5]*a)/a+")":Object(io["e"])(t)}}function XT(e,t,r){for(var a=e.points,n=[],i=0;ic?(o=null==r[p+1]?null:r[p+1].elm,DI(e,o,r,l,p)):SI(e,t,s,c))}function II(e,t){var r=t.elm=e.elm,a=e.children,n=t.children;e!==t&&(CI(e,t),yI(t.text)?bI(a)&&bI(n)?a!==n&&TI(r,a,n):bI(n)?(bI(e.text)&&fI(r,""),DI(r,null,n,0,n.length-1)):bI(a)?SI(r,a,0,a.length-1):bI(e.text)&&fI(r,""):e.text!==t.text&&(bI(a)&&SI(r,a,0,a.length-1),fI(r,t.text)))}function OI(e,t){if(xI(e,t))II(e,t);else{var r=e.elm,a=pI(r);wI(t),null!==a&&(cI(a,t.elm,hI(r)),SI(a,[e],0,0))}return t}var AI=0,MI=function(){function e(e,t,r){if(this.type="svg",this.refreshHover=PI("refreshHover"),this.configLayer=PI("configLayer"),this.storage=t,this._opts=r=Object(Ia["m"])({},r),this.root=e,this._id="zr"+AI++,this._oldVNode=IT(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=_T("svg");CI(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",OI(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return aI(e,TT(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,n=TT(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis,n.ssr=this._opts.ssr;var i=[],o=this._bgVNode=kI(r,a,this._backgroundColor,n);o&&i.push(o);var s=e.compress?null:this._mainVNode=xT("g","main",{},[]);this._paintList(t,n,s?s.children:i),s&&i.push(s);var l=Object(Ia["H"])(Object(Ia["F"])(n.defs),(function(e){return n.defs[e]}));if(l.length&&i.push(xT("defs","defs",{},l)),e.animation){var c=CT(n.cssNodes,n.cssAnims,{newline:!0});if(c){var u=xT("style","stl",{},[],c);i.push(u)}}return IT(r,a,i,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},ST(this.renderToVNode({animation:Object(Ia["P"])(e.cssAnimation,!0),emphasis:Object(Ia["P"])(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(Ia["P"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,r){for(var a,n,i=e.length,o=[],s=0,l=0,c=0;c=0;f--)if(d&&n&&d[f]===n[f])break;for(var m=h-1;m>f;m--)s--,a=o[s-1];for(var g=f+1;g1){var c=s.shift();1===s.length&&(r[o]=s[0]),this._update&&this._update(c,i)}else 1===l?(r[o]=null,this._update&&this._update(s,i)):this._remove&&this._remove(i)}this._performRestAdd(n,r)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},n=[],i=[];this._initIndexMap(e,r,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,l),a[s]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(c,l),a[s]=null;else if(1===u&&1===d)this._update&&this._update(c,l),a[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,l),a[s]=null;else if(u>1)for(var p=0;p1)for(var o=0;o30}var QI,eO,tO,rO,aO,nO,iO,oO=Ia["A"],sO=Ia["H"],lO="undefined"===typeof Int32Array?Array:Int32Array,cO="e\0\0",uO=-1,dO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pO=["_approximateExtent"],hO=function(){function e(e,t){var r;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a=!1;XI(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var n={},i=[],o={},s=!1,l={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var n=this._nameList,i=this._idList,o=a.getSource().sourceFormat,s=o===xm;if(s&&!a.pure)for(var l=[],c=e;c0},e.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var n=a[t];return null==n&&(n=this.getVisual(t),Ia["t"](n)?n=n.slice():oO(n)&&(n=Ia["m"]({},n)),a[t]=n),n},e.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,oO(t)?Ia["m"](a,t):a[t]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){oO(e)?Ia["m"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?Ia["m"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;qd(r,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){Ia["k"](this._graphicEls,(function(r,a){r&&e&&e.call(t,r,a)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:sO(this.dimensions,this._getDimInfo,this),this.hostModel)),aO(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var r=this[e];Ia["w"](r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=r.apply(this,arguments);return t.apply(this,[e].concat(Ia["S"](arguments)))})},e.internalField=function(){QI=function(e){var t=e._invertedIndicesMap;Ia["k"](t,(function(r,a){var n=e._dimInfos[a],i=n.ordinalMeta,o=e._store;if(i){r=t[a]=new lO(i.categories.length);for(var s=0;s1&&(s+="__ec__"+c),a[t]=s}}}(),e}(),fO=hO;function mO(e,t){Qg(e)||(e=tv(e)),t=t||{};var r=t.coordDimensions||[],a=t.dimensionsDefine||e.dimensionsDefine||[],n=Object(Ia["f"])(),i=[],o=vO(e,r,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&JI(o),l=a===e.dimensionsDefine,c=l?ZI(e):KI(a),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Object(Ia["f"])(u),p=new Kv(o),h=0;h0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function vO(e,t,r,a){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,a||0);return Object(Ia["k"])(t,(function(e){var t;Object(Ia["A"])(e)&&(t=e.dimsDef)&&(n=Math.max(n,t.length))})),n}function yO(e,t,r){if(r||t.hasKey(e)){var a=0;while(t.hasKey(e+a))a++;e+=a}return t.set(e,!0),e}var bO=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(Ia["f"])(),this.categoryAxisMap=Object(Ia["f"])(),this.coordSysName=e}return e}();function _O(e){var t=e.get("coordinateSystem"),r=new bO(t),a=xO[t];if(a)return a(e,r,r.axisMap,r.categoryAxisMap),r}var xO={cartesian2d:function(e,t,r,a){var n=e.getReferringComponents("xAxis",rc).models[0],i=e.getReferringComponents("yAxis",rc).models[0];t.coordSysDims=["x","y"],r.set("x",n),r.set("y",i),wO(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),wO(i)&&(a.set("y",i),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,a){var n=e.getReferringComponents("singleAxis",rc).models[0];t.coordSysDims=["single"],r.set("single",n),wO(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,a){var n=e.getReferringComponents("polar",rc).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),wO(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),wO(o)&&(a.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,a){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,a){var n=e.ecModel,i=n.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();Object(Ia["k"])(i.parallelAxisIndex,(function(e,i){var s=n.getComponent("parallelAxis",e),l=o[i];r.set(l,s),wO(s)&&(a.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=i))}))}};function wO(e){return"category"===e.get("type")}function DO(e,t,r){r=r||{};var a,n,i,o=r.byIndex,s=r.stackedCoordDimension;SO(t)?a=t:(n=t.schema,a=n.dimensions,i=t.store);var l,c,u,d,p=!(!e||!e.get("stack"));if(Object(Ia["k"])(a,(function(e,t){Object(Ia["C"])(e)&&(a[t]=e={name:e}),p&&!e.isExtraCoord&&(o||l||!e.ordinalMeta||(l=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))})),!c||o||l||(o=!0),c){u="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=c.coordDim,f=c.type,m=0;Object(Ia["k"])(a,(function(e){e.coordDim===h&&m++}));var g={name:u,coordDim:h,coordDimIndex:m,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},v={name:d,coordDim:d,coordDimIndex:m+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};n?(i&&(g.storeDimIndex=i.ensureCalculationDimension(d,f),v.storeDimIndex=i.ensureCalculationDimension(u,f)),n.appendCalculationDimension(g),n.appendCalculationDimension(v)):(a.push(g),a.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:d,stackResultDimension:u}}function SO(e){return!XI(e.schema)}function CO(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function TO(e,t){return CO(e,t)?e.getCalculationInfo("stackResultDimension"):t}function IO(e,t){var r,a=e.get("coordinateSystem"),n=hg.get(a);return t&&t.coordSysDims&&(r=Ia["H"](t.coordSysDims,(function(e){var r={name:e},a=t.axisMap.get(e);if(a){var n=a.get("type");r.type=zI(n)}return r}))),r||(r=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),r}function OO(e,t,r){var a,n;return r&&Ia["k"](e,(function(e,i){var o=e.coordDim,s=r.categoryAxisMap.get(o);s&&(null==a&&(a=i),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(n=!0)})),n||null==a||(e[a].otherDims.itemName=0),a}function AO(e,t,r){r=r||{};var a,n=t.getSourceManager(),i=!1;e?(i=!0,a=tv(e)):(a=n.getSource(),i=a.sourceFormat===xm);var o=_O(t),s=IO(t,o),l=r.useEncodeDefaulter,c=Ia["w"](l)?l:l?Ia["h"](km,s,t):null,u={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i},d=mO(a,u),p=OO(d.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(d),f=DO(t,{schema:d,store:h}),m=new fO(d,t);m.setCalculationInfo(f);var g=null!=p&&MO(a)?function(e,t,r,a){return a===p?r:this.defaultDimValueGetter(e,t,r,a)}:null;return m.hasItemOption=!1,m.initData(i?a:h,null,g),m}function MO(e){if(e.sourceFormat===xm){var t=PO(e.data||[]);return!Ia["t"](Nl(t))}}function PO(e){var t=0;while(t-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Uy),EO=NO;function LO(e,t){var r=e.mapDimensionsAll("defaultedLabel"),a=r.length;if(1===a){var n=_v(e,t,r[0]);return null!=n?n+"":null}if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var FO=function(e){function t(t,r,a,n){var i=e.call(this)||this;return i.updateData(t,r,a,n),i}return Ca(t,e),t.prototype._createSymbol=function(e,t,r,a,n){this.removeAll();var i=Tw(e,-1,-1,2,2,null,n);i.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),i.drift=jO,this._symbolType=e,this.add(i)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ap(this.childAt(0))},t.prototype.downplay=function(){Mp(this.childAt(0))},t.prototype.setZ=function(e,t){var r=this.childAt(0);r.zlevel=e,r.z=t},t.prototype.setDraggable=function(e,t){var r=this.childAt(0);r.draggable=e,r.cursor=!t&&e?"move":r.cursor},t.prototype.updateData=function(e,r,a,n){this.silent=!1;var i=e.getItemVisual(r,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,r),l=i!==this._symbolType,c=n&&n.disableAnimation;if(l){var u=e.getItemVisual(r,"symbolKeepAspect");this._createSymbol(i,e,r,s,u)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):ch(d,p,o,r),mh(d)}if(this._updateCommon(e,r,s,a,n),l){d=this.childAt(0);if(!c){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,uh(d,p,o,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,r,a,n){var i,o,s,l,c,u,d,p,h,f=this.childAt(0),m=e.hostModel;if(a&&(i=a.emphasisItemStyle,o=a.blurItemStyle,s=a.selectItemStyle,l=a.focus,c=a.blurScope,d=a.labelStatesModels,p=a.hoverScale,h=a.cursorStyle,u=a.emphasisDisabled),!a||e.hasItemOption){var g=a&&a.itemModel?a.itemModel:e.getItemModel(t),v=g.getModel("emphasis");i=v.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),o=g.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),c=v.get("blurScope"),u=v.get("disabled"),d=xh(g),p=v.getShallow("scale"),h=g.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var b=Ow(e.getItemVisual(t,"symbolOffset"),r);b&&(f.x=b[0],f.y=b[1]),h&&f.attr("cursor",h);var _=e.getItemVisual(t,"style"),x=_.fill;if(f instanceof yd){var w=f.style;f.useStyle(Object(Ia["m"])({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(Object(Ia["m"])({},_)):f.useStyle(_),f.style.decal=null,f.setColor(x,n&&n.symbolInnerColor),f.style.strokeNoScale=!0;var D=e.getItemVisual(t,"liftZ"),S=this._z2;null!=D?null==S&&(this._z2=f.z2,f.z2+=D):null!=S&&(f.z2=S,this._z2=null);var C=n&&n.useNameLabel;function T(t){return C?e.getName(t):LO(e,t)}_h(f,d,{labelFetcher:m,labelDataIndex:t,defaultText:T,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=r[0]/2,this._sizeY=r[1]/2;var I=f.ensureState("emphasis");I.style=i,f.ensureState("select").style=s,f.ensureState("blur").style=o;var O=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*O,I.scaleY=this._sizeY*O,this.setSymbolScale(1),Yp(this,l,c,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,r){var a=this.childAt(0),n=Hd(this).dataIndex,i=r&&r.animation;if(this.silent=a.silent=!0,r&&r.fadeLabel){var o=a.getTextContent();o&&ph(o,{style:{opacity:0}},t,{dataIndex:n,removeOpt:i,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ph(a,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:n,cb:e,removeOpt:i})},t.getSymbolSize=function(e,t){return Iw(e.getItemVisual(t,"symbolSize"))},t}(Gs);function jO(e,t){this.parent.drift(e,t)}var VO=FO;function $O(e,t,r,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(r))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(r,"symbol")}function BO(e){return null==e||Object(Ia["A"])(e)||(e={isIgnore:e}),e||{}}function zO(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:xh(t),cursorStyle:t.get("cursor")}}var GO=function(){function e(e){this.group=new Gs,this._SymbolCtor=e||VO}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=BO(t);var r=this.group,a=e.hostModel,n=this._data,i=this._SymbolCtor,o=t.disableAnimation,s=zO(e),l={disableAnimation:o},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};n||r.removeAll(),e.diff(n).add((function(a){var n=c(a);if($O(e,n,a,t)){var o=new i(e,a,s,l);o.setPosition(n),e.setItemGraphicEl(a,o),r.add(o)}})).update((function(u,d){var p=n.getItemGraphicEl(d),h=c(u);if($O(e,h,u,t)){var f=e.getItemVisual(u,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==f)r.remove(p),p=new i(e,u,s,l),p.setPosition(h);else{p.updateData(e,u,s,l);var g={x:h[0],y:h[1]};o?p.attr(g):ch(p,g,a)}r.add(p),e.setItemGraphicEl(u,p)}else r.remove(p)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&t.fadeOut((function(){r.remove(t)}),a)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,r){var a=e._getSymbolPoint(r);t.setPosition(a),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=zO(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,r){function a(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],r=BO(r);for(var n=e.start;n0?r=a[0]:a[1]<0&&(r=a[1]),r}function qO(e,t,r,a){var n=NaN;e.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,a),o[1-i]=n,t.dataToPoint(o)}var YO="undefined"!==typeof Float32Array,XO=YO?Float32Array:Array;function KO(e){return Object(Ia["t"])(e)?YO?new Float32Array(e):e:new XO(e)}function ZO(e,t){var r=[];return t.diff(e).add((function(e){r.push({cmd:"+",idx:e})})).update((function(e,t){r.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){r.push({cmd:"-",idx:e})})).execute(),r}function JO(e,t,r,a,n,i,o,s){for(var l=ZO(e,t),c=[],u=[],d=[],p=[],h=[],f=[],m=[],g=WO(n,t,o),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b=n||m<0)break;if(tA(v,y)){if(l){m+=i;continue}break}if(m===r)e[i>0?"moveTo":"lineTo"](v,y),d=v,p=y;else{var b=v-c,_=y-u;if(b*b+_*_<.5){m+=i;continue}if(o>0){var x=m+i,w=t[2*x],D=t[2*x+1];while(w===v&&D===y&&g=a||tA(w,D))h=v,f=y;else{T=w-c,I=D-u;var M=v-c,P=w-v,k=y-u,N=D-y,E=void 0,L=void 0;if("x"===s){E=Math.abs(M),L=Math.abs(P);var R=T>0?1:-1;h=v-R*E*o,f=y,O=v+R*L*o,A=y}else if("y"===s){E=Math.abs(k),L=Math.abs(N);var F=I>0?1:-1;h=v,f=y-F*E*o,O=v,A=y+F*L*o}else E=Math.sqrt(M*M+k*k),L=Math.sqrt(P*P+N*N),C=L/(L+E),h=v-T*o*(1-C),f=y-I*o*(1-C),O=v+T*o*C,A=y+I*o*C,O=QO(O,eA(w,v)),A=QO(A,eA(D,y)),O=eA(O,QO(w,v)),A=eA(A,QO(D,y)),T=O-v,I=A-y,h=v-T*E/L,f=y-I*E/L,h=QO(h,eA(c,v)),f=QO(f,eA(u,y)),h=eA(h,QO(c,v)),f=eA(f,QO(u,y)),T=v-h,I=y-f,O=v+T*L/E,A=y+I*L/E}e.bezierCurveTo(d,p,h,f,v,y),d=O,p=A}else e.lineTo(v,y)}c=v,u=y,m+=i}return g}var aA=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),nA=function(e){function t(t){var r=e.call(this,t)||this;return r.type="ec-polyline",r}return Ca(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new aA},t.prototype.buildPath=function(e,t){var r=t.points,a=0,n=r.length/2;if(t.connectNulls){for(;n>0;n--)if(!tA(r[2*n-2],r[2*n-1]))break;for(;a=0){var y=s?(p-a)*v+a:(d-r)*v+r;return s?[e,y]:[y,e]}r=d,a=p;break;case o.C:d=i[c++],p=i[c++],h=i[c++],f=i[c++],m=i[c++],g=i[c++];var b=s?zi(r,d,h,m,e,l):zi(a,p,f,g,e,l);if(b>0)for(var _=0;_=0){y=s?$i(a,p,f,g,x):$i(r,d,h,m,x);return s?[e,y]:[y,e]}}r=m,a=g;break}}},t}(ud),iA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t}(aA),oA=function(e){function t(t){var r=e.call(this,t)||this;return r.type="ec-polygon",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new iA},t.prototype.buildPath=function(e,t){var r=t.points,a=t.stackedOnPoints,n=0,i=r.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;i>0;i--)if(!tA(r[2*i-2],r[2*i-1]))break;for(;nt){a?n.push(o(a,l,t)):r&&n.push(o(r,l,0),o(r,l,t));break}r&&(n.push(o(r,l,0)),r=null),n.push(l),a=l}}return n}function yA(e,t,r){var a=e.getVisual("visualMeta");if(a&&a.length&&e.count()&&"cartesian2d"===t.type){for(var n,i,o=a.length-1;o>=0;o--){var s=e.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,"x"===n||"y"===n){i=a[o];break}}if(i){var l=t.getAxis(n),c=Ia["H"](i.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,d=i.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var p=vA(c,"x"===n?r.getWidth():r.getHeight()),h=p.length;if(!h&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var f=10,m=p[0].coord-f,g=p[h-1].coord+f,v=g-m;if(v<.001)return"transparent";Ia["k"](p,(function(e){e.offset=(e.coord-m)/v})),p.push({offset:h?p[h-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:d[0]||"transparent"});var y=new m_(0,0,0,0,p,!0);return y[n]=m,y[n+"2"]=g,y}}}function bA(e,t,r){var a=e.get("showAllSymbol"),n="auto"===a;if(!a||n){var i=r.getAxesByScale("ordinal")[0];if(i&&(!n||!_A(i,t))){var o=t.mapDimension(i.dim),s={};return Ia["k"](i.getViewLabels(),(function(e){var t=i.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function _A(e,t){var r=e.getExtent(),a=Math.abs(r[1]-r[0])/e.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function xA(e,t){return isNaN(e)||isNaN(t)}function wA(e){for(var t=e.length/2;t>0;t--)if(!xA(e[2*t-2],e[2*t-1]))break;return t-1}function DA(e,t){return[e[2*t],e[2*t+1]]}function SA(e,t,r){for(var a,n,i=e.length/2,o="x"===r?0:1,s=0,l=-1,c=0;c=t||a>=t&&n<=t){l=c;break}s=c,a=n}else a=n;return{range:[s,l],t:(t-a)/(n-a)}}function CA(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}Hd(p).seriesIndex=e.seriesIndex,Yp(p,M,P,k);var E=fA(e.get("smooth")),L=e.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:L,connectNulls:x}),h){var R=i.getCalculationInfo("stackedOnSeries"),F=0;h.useStyle(Ia["i"](s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:i.getVisual("style").decal})),R&&(F=fA(R.get("smooth"))),h.setShape({smooth:E,stackedOnSmooth:F,smoothMonotone:L,connectNulls:x}),Jp(h,e,"areaStyle"),Hd(h).seriesIndex=e.seriesIndex,Yp(h,M,P,k)}var j=this._changePolyState;i.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=j)})),this._polyline.onHoverStateChange=j,this._data=i,this._coordSys=a,this._stackedOnPoints=b,this._points=l,this._step=C,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,p),h&&this.packEventData(e,h))},t.prototype.packEventData=function(e,t){Hd(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,r,a){var n=e.getData(),i=Zl(n,a);if(this._changePolyState("emphasis"),!(i instanceof Array)&&null!=i&&i>=0){var o=n.getLayout("points"),s=n.getItemGraphicEl(i);if(!s){var l=o[2*i],c=o[2*i+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,d=e.get("z")||0;s=new VO(n,i),s.x=l,s.y=c,s.setZ(u,d);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=u,p.z=d,p.z2=this._polyline.z2+1),s.__temp=!0,n.setItemGraphicEl(i,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else hx.prototype.highlight.call(this,e,t,r,a)},t.prototype.downplay=function(e,t,r,a){var n=e.getData(),i=Zl(n,a);if(this._changePolyState("normal"),null!=i&&i>=0){var o=n.getItemGraphicEl(i);o&&(o.__temp?(n.setItemGraphicEl(i,null),this.group.remove(o)):o.downplay())}else hx.prototype.downplay.call(this,e,t,r,a)},t.prototype._changePolyState=function(e){var t=this._polygon;_p(this._polyline,e),t&&_p(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new nA({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new oA({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,t,r){var a,n,i=t.getBaseAxis(),o=i.inverse;"cartesian2d"===t.type?(a=i.isHorizontal(),n=!1):"polar"===t.type&&(a="angle"===i.dim,n=!0);var s=e.hostModel,l=s.get("animationDuration");Ia["w"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=Ia["w"](c)?c(null):c;e.eachItemGraphicEl((function(e,i){var s=e;if(s){var d=[e.x,e.y],p=void 0,h=void 0,f=void 0;if(r)if(n){var m=r,g=t.pointToCoord(d);a?(p=m.startAngle,h=m.endAngle,f=-g[1]/180*Math.PI):(p=m.r0,h=m.r,f=g[0])}else{var v=r;a?(p=v.x,h=v.x+v.width,f=e.x):(p=v.y+v.height,h=v.y,f=e.y)}var y=h===p?0:(f-p)/(h-p);o&&(y=1-y);var b=Ia["w"](c)?c(i):l*y+u,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,r){var a=e.getModel("endLabel");if(CA(e)){var n=e.getData(),i=this._polyline,o=n.getLayout("points");if(!o)return i.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Wd({z2:200}),s.ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0);var l=wA(o);l>=0&&(_h(i,xh(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,r){return null!=r?RO(n,r):LO(n,e)},enableTextSetter:!0},IA(a,t)),i.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,r,a,n,i,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==a.originalX&&(a.originalX=s.x,a.originalY=s.y);var c=r.getLayout("points"),u=r.hostModel,d=u.get("connectNulls"),p=i.get("precision"),h=i.get("distance")||0,f=o.getBaseAxis(),m=f.isHorizontal(),g=f.inverse,v=t.shape,y=g?m?v.x:v.y+v.height:m?v.x+v.width:v.y,b=(m?h:0)*(g?-1:1),_=(m?0:-h)*(g?-1:1),x=m?"x":"y",w=SA(c,y,x),D=w.range,S=D[1]-D[0],C=void 0;if(S>=1){if(S>1&&!d){var T=DA(c,D[0]);s.attr({x:T[0]+b,y:T[1]+_}),n&&(C=u.getRawValue(D[0]))}else{T=l.getPointOn(y,x);T&&s.attr({x:T[0]+b,y:T[1]+_});var I=u.getRawValue(D[0]),O=u.getRawValue(D[1]);n&&(C=cc(r,p,I,O,w.t))}a.lastFrameIndex=D[0]}else{var A=1===e||a.lastFrameIndex>0?D[0]:0;T=DA(c,A);n&&(C=u.getRawValue(A)),s.attr({x:T[0]+b,y:T[1]+_})}if(n){var M=Ph(s);"function"===typeof M.setLabelText&&M.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,r,a,n,i,o){var s=this._polyline,l=this._polygon,c=e.hostModel,u=JO(this._data,e,this._stackedOnPoints,t,this._coordSys,r,this._valueOrigin,i),d=u.current,p=u.stackedOnCurrent,h=u.next,f=u.stackedOnNext;if(n&&(p=gA(u.stackedOnCurrent,u.current,r,n,o),d=gA(u.current,null,r,n,o),f=gA(u.stackedOnNext,u.next,r,n,o),h=gA(u.next,null,r,n,o)),hA(d,h)>3e3||l&&hA(p,f)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=d;var m={shape:{points:h}};u.current!==d&&(m.shape.__points=u.next),s.stopAnimation(),ch(s,m,c),l&&(l.setShape({points:d,stackedOnPoints:p}),l.stopAnimation(),ch(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var g=[],v=u.status,y=0;yt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&"cartesian2d"===i.type&&n){var s=i.getBaseAxis(),l=i.getOtherAxis(s),c=s.getExtent(),u=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(u||1),p=Math.round(o/d);if(isFinite(p)&&p>1){"lttb"===n?e.setData(a.lttbDownSample(a.mapDimension(l.dim),1/p)):"minmax"===n&&e.setData(a.minmaxDownSample(a.mapDimension(l.dim),1/p));var h=void 0;Object(Ia["C"])(n)?h=PA[n]:Object(Ia["w"])(n)&&(h=n),h&&e.setData(a.downSample(a.mapDimension(l.dim),1/p,h,kA))}}}}}function EA(e){e.registerChartView(AA),e.registerSeriesModel(EO),e.registerLayout(MA("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,NA("line"))}var LA="__ec_stack_";function RA(e){return e.get("stack")||LA+e.seriesIndex}function FA(e){return e.dim+e.index}function jA(e){var t=[],r=e.axis,a="axis0";if("category"===r.type){for(var n=r.getBandWidth(),i=0;i0&&(i=null===i?s:Math.min(i,s))}r[a]=i}}return r}function BA(e){var t=$A(e),r=[];return Object(Ia["k"])(e,(function(e){var a,n=e.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent();if("category"===i.type)a=i.getBandWidth();else if("value"===i.type||"time"===i.type){var s=i.dim+"_"+i.index,l=t[s],c=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),d=Math.abs(u[1]-u[0]);a=l?c/d*l:c}else{var p=e.getData();a=Math.abs(o[1]-o[0])/p.count()}var h=nl(e.get("barWidth"),a),f=nl(e.get("barMaxWidth"),a),m=nl(e.get("barMinWidth")||(qA(e)?.5:1),a),g=e.get("barGap"),v=e.get("barCategoryGap");r.push({bandWidth:a,barWidth:h,barMaxWidth:f,barMinWidth:m,barGap:g,barCategoryGap:v,axisKey:FA(i),stackId:RA(e)})})),zA(r)}function zA(e){var t={};Object(Ia["k"])(e,(function(e,r){var a=e.axisKey,n=e.bandWidth,i=t[a]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=i.stacks;t[a]=i;var s=e.stackId;o[s]||i.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(i.remainedWidth,l),i.remainedWidth-=l);var c=e.barMaxWidth;c&&(o[s].maxWidth=c);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;null!=d&&(i.gap=d);var p=e.barCategoryGap;null!=p&&(i.categoryGap=p)}));var r={};return Object(Ia["k"])(t,(function(e,t){r[t]={};var a=e.stacks,n=e.bandWidth,i=e.categoryGap;if(null==i){var o=Object(Ia["F"])(a).length;i=Math.max(35-4*o,15)+"%"}var s=nl(i,n),l=nl(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),Object(Ia["k"])(a,(function(e){var t=e.maxWidth,r=e.minWidth;if(e.width){a=e.width;t&&(a=Math.min(a,t)),r&&(a=Math.max(a,r)),e.width=a,c-=a+l*a,u--}else{var a=d;t&&ta&&(a=r),a!==d&&(e.width=a,c-=a+l*a,u--)}})),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var p,h=0;Object(Ia["k"])(a,(function(e,t){e.width||(e.width=d),p=e,h+=e.width*(1+l)})),p&&(h-=p.width*l);var f=-h/2;Object(Ia["k"])(a,(function(e,a){r[t][a]=r[t][a]||{bandWidth:n,offset:f,width:e.width},f+=e.width*(1+l)}))})),r}function GA(e,t,r){if(e&&t){var a=e[FA(t)];return null!=a&&null!=r?a[RA(r)]:a}}function UA(e,t){var r=VA(e,t),a=BA(r);Object(Ia["k"])(r,(function(e){var t=e.getData(),r=e.coordinateSystem,n=r.getBaseAxis(),i=RA(e),o=a[FA(n)][i],s=o.offset,l=o.width;t.setLayout({bandWidth:o.bandWidth,offset:s,size:l})}))}function WA(e){return{seriesType:e,plan:qy(),reset:function(e){if(HA(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),n=r.getOtherAxis(a),i=t.getDimensionIndex(t.mapDimension(n.dim)),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=e.get("showBackground",!0),l=t.mapDimension(n.dim),c=t.getCalculationInfo("stackResultDimension"),u=CO(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=n.isHorizontal(),p=YA(a,n),h=qA(e),f=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),g=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var a,n=e.count,l=h&&KO(3*n),c=h&&s&&KO(3*n),y=h&&KO(n),b=r.master.getRect(),_=d?b.width:b.height,x=t.getStore(),w=0;while(null!=(a=e.next())){var D=x.get(u?m:i,a),S=x.get(o,a),C=p,T=void 0;u&&(T=+D-x.get(i,a));var I=void 0,O=void 0,A=void 0,M=void 0;if(d){var P=r.dataToPoint([D,S]);if(u){var k=r.dataToPoint([T,S]);C=k[0]}I=C,O=P[1]+v,A=P[0]-C,M=g,Math.abs(A)0?r:1:r))}var XA=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){return kO(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,r){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.clampData(e),i=a.dataToPoint(n);if(r)Object(Ia["k"])(a.getAxes(),(function(e,r){if("category"===e.type&&null!=t){var a=e.getTicksCoords(),o=e.getTickModel().get("alignWithLabel"),s=n[r],l="x1"===t[r]||"y1"===t[r];if(l&&!o&&(s+=1),a.length<2)return;if(2===a.length)return void(i[r]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var c=void 0,u=void 0,d=1,p=0;ps){u=(h+c)/2;break}1===p&&(d=f-a[0].tickValue)}null==u&&(c?c&&(u=a[a.length-1].coord):u=a[0].coord),i[r]=e.toGlobalCoord(u)}}));else{var o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;i[c]+=s+l/2}return i}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Uy);Uy.registerClass(XA);var KA=XA,ZA=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.getInitialData=function(){return kO(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,r){return r.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Zh(KA.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(KA),JA=ZA,QA=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),eM=function(e){function t(t){var r=e.call(this,t)||this;return r.type="sausage",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new QA},t.prototype.buildPath=function(e,t){var r=t.cx,a=t.cy,n=Math.max(t.r0||0,0),i=Math.max(t.r,0),o=.5*(i-n),s=n+o,l=t.startAngle,c=t.endAngle,u=t.clockwise,d=2*Math.PI,p=u?c-lMath.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function nM(e,t,r){return t*Math.sin(e)*(r?-1:1)}function iM(e,t,r){return t*Math.cos(e)*(r?1:-1)}function oM(e,t,r){var a=e.get("borderRadius");if(null==a)return r?{cornerRadius:0}:null;Object(Ia["t"])(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(Ia["H"])(a,(function(e){return Ts(e,n)}))}}var sM=Math.max,lM=Math.min;function cM(e,t){var r=e.getArea&&e.getArea();if(uA(e,"cartesian2d")){var a=e.getBaseAxis();if("category"!==a.type||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(r.x-=n,r.width+=2*n):(r.y-=n,r.height+=2*n)}}return r}var uM=function(e){function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return Ca(t,e),t.prototype.render=function(e,t,r,a){this._model=e,this._removeOnRenderedListener(r),this._updateDrawMode(e);var n=e.get("coordinateSystem");("cartesian2d"===n||"polar"===n)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,r):this._renderNormal(e,t,r,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){nx(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,r,a){var n,i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?n=c.isHorizontal():"polar"===l.type&&(n="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=hM(e,l);d&&this._enableRealtimeSort(d,o,r);var p=e.get("clip",!0)||d,h=cM(l,o);i.removeClipPath();var f=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("borderRadius")||0,y=[],b=this._backgroundEls,_=a&&a.isInitSort,x=a&&"changeAxisOrder"===a.type;function w(e){var t=bM[l.type](o,e),r=MM(l,n,t);return r.useStyle(g.getItemStyle()),"cartesian2d"===l.type?r.setShape("r",v):r.setShape("cornerRadius",v),y[e]=r,r}o.diff(s).add((function(t){var r=o.getItemModel(t),a=bM[l.type](o,t,r);if(m&&w(t),o.hasValue(t)&&yM[l.type](a)){var s=!1;p&&(s=dM[l.type](h,a));var g=pM[l.type](e,o,t,a,n,u,c.model,!1,f);d&&(g.forceLabelAnimation=!0),wM(g,o,t,r,a,e,n,"polar"===l.type),_?g.attr({shape:a}):d?fM(d,u,g,a,t,n,!1,!1):uh(g,{shape:a},e,t),o.setItemGraphicEl(t,g),i.add(g),g.ignore=s}})).update((function(t,r){var a=o.getItemModel(t),D=bM[l.type](o,t,a);if(m){var S=void 0;0===b.length?S=w(r):(S=b[r],S.useStyle(g.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",v):S.setShape("cornerRadius",v),y[t]=S);var C=bM[l.type](o,t),T=AM(n,C,l);ch(S,{shape:T},u,t)}var I=s.getItemGraphicEl(r);if(o.hasValue(t)&&yM[l.type](D)){var O=!1;if(p&&(O=dM[l.type](h,D),O&&i.remove(I)),I?mh(I):I=pM[l.type](e,o,t,D,n,u,c.model,!!I,f),d&&(I.forceLabelAnimation=!0),x){var A=I.getTextContent();if(A){var M=Ph(A);null!=M.prevValue&&(M.prevValue=M.value)}}else wM(I,o,t,a,D,e,n,"polar"===l.type);_?I.attr({shape:D}):d?fM(d,u,I,D,t,n,!0,x):ch(I,{shape:D},e,t,null),o.setItemGraphicEl(t,I),I.ignore=O,i.add(I)}else i.remove(I)})).remove((function(t){var r=s.getItemGraphicEl(t);r&&fh(r,e,t)})).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Gs);D.removeAll();for(var S=0;Si)return!0;i=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var r=t.scale,a=r.getExtent(),n=Math.max(0,a[0]),i=Math.min(a[1],r.getOrdinalMeta().categories.length-1);n<=i;++n)if(e.ordinalNumbers[n]!==r.getRawOrdinalNumber(n))return!0},t.prototype._updateSortWithinSameData=function(e,t,r,a){if(this._isOrderChangedWithinSameData(e,t,r)){var n=this._dataSort(e,r,t);this._isOrderDifferentInView(n,r)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:n}))}},t.prototype._dispatchInitSort=function(e,t,r){var a=t.baseAxis,n=this._dataSort(e,a,(function(r){return e.get(e.mapDimension(t.otherAxis.dim),r)}));r.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:n})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,r=this._data;e&&e.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl((function(t){fh(t,e,Hd(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(hx),dM={cartesian2d:function(e,t){var r=t.width<0?-1:1,a=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=e.x+e.width,i=e.y+e.height,o=sM(t.x,e.x),s=lM(t.x+t.width,n),l=sM(t.y,e.y),c=lM(t.y+t.height,i),u=sn?s:o,t.y=d&&l>i?c:l,t.width=u?0:s-o,t.height=d?0:c-l,r<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var a=t.r;t.r=t.r0,t.r0=a}var n=lM(t.r,e.r),i=sM(t.r0,e.r0);t.r=n,t.r0=i;var o=n-i<0;if(r<0){a=t.r;t.r=t.r0,t.r0=a}return o}},pM={cartesian2d:function(e,t,r,a,n,i,o,s,l){var c=new Id({shape:Object(Ia["m"])({},a),z2:1});if(c.__dataIndex=r,c.name="item",i){var u=c.shape,d=n?"height":"width";u[d]=0}return c},polar:function(e,t,r,a,n,i,o,s,l){var c=!n&&l?tM:$b,u=new c({shape:a,z2:1});u.name="item";var d=xM(n);if(u.calculateTextPosition=rM(d,{isRoundCap:c===tM}),i){var p=u.shape,h=n?"r":"endAngle",f={};p[h]=n?a.r0:a.startAngle,f[h]=a[h],(s?ch:uh)(u,{shape:f},i)}return u}};function hM(e,t){var r=e.get("realtimeSort",!0),a=t.getBaseAxis();if(r&&"category"===a.type&&"cartesian2d"===t.type)return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function fM(e,t,r,a,n,i,o,s){var l,c;i?(c={x:a.x,width:a.width},l={y:a.y,height:a.height}):(c={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?ch:uh)(r,{shape:l},t,n,null);var u=t?e.baseAxis.model:null;(o?ch:uh)(r,{shape:c},u,n)}function mM(e,t){for(var r=0;r0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(e,t,r){var a=e.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function _M(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function xM(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function wM(e,t,r,a,n,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=e.shape,u=oM(a.getModel("itemStyle"),c,!0);Object(Ia["m"])(c,u),e.setShape(c)}}else{var d=a.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(l);var p=a.getShallow("cursor");p&&e.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",f=xh(a);_h(e,f,{labelFetcher:i,labelDataIndex:r,defaultText:LO(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var g=a.get(["label","position"]);e.textConfig.inside="middle"===g||null,aM(e,"outside"===g?h:g,xM(o),a.get(["label","rotate"]))}kh(m,f,i.getRawValue(r),(function(e){return RO(t,e)}));var v=a.getModel(["emphasis"]);Yp(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Jp(e,a),_M(n)&&(e.style.fill="none",e.style.stroke="none",Object(Ia["k"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function DM(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||"none"===r)return 0;var a=e.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var SM=function(){function e(){}return e}(),CM=function(e){function t(t){var r=e.call(this,t)||this;return r.type="largeBar",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new SM},t.prototype.buildPath=function(e,t){for(var r=t.points,a=this.baseDimIdx,n=1-this.baseDimIdx,i=[],o=[],s=this.barWidth,l=0;l=0?r:null}),30,!1);function OM(e,t,r){for(var a=e.baseDimIdx,n=1-a,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,d=i.length/3;u=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[u]}return-1}function AM(e,t,r){if(uA(r,"cartesian2d")){var a=t,n=r.getArea();return{x:e?a.x:n.x,y:e?n.y:a.y,width:e?a.width:n.width,height:e?n.height:a.height}}n=r.getArea();var i=t;return{cx:n.cx,cy:n.cy,r0:e?n.r0:i.r0,r:e?n.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:2*Math.PI}}function MM(e,t,r){var a="polar"===e.type?$b:Id;return new a({shape:AM(t,r,e),silent:!0,z2:0})}var PM=uM;function kM(e){e.registerChartView(PM),e.registerSeriesModel(JA),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ia["h"](UA,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,NA("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var NM=2*Math.PI,EM=Math.PI/180;function LM(e,t){return om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function RM(e,t){var r=LM(e,t),a=e.get("center"),n=e.get("radius");Ia["t"](n)||(n=[0,n]);var i,o,s=nl(r.width,t.getWidth()),l=nl(r.height,t.getHeight()),c=Math.min(s,l),u=nl(n[0],c/2),d=nl(n[1],c/2),p=e.coordinateSystem;if(p){var h=p.dataToPoint(a);i=h[0]||0,o=h[1]||0}else Ia["t"](a)||(a=[a,a]),i=nl(a[0],s)+r.x,o=nl(a[1],l)+r.y;return{cx:i,cy:o,r0:u,r:d}}function FM(e,t,r){t.eachSeriesByType(e,(function(e){var t=e.getData(),a=t.mapDimension("value"),n=LM(e,r),i=RM(e,r),o=i.cx,s=i.cy,l=i.r,c=i.r0,u=-e.get("startAngle")*EM,d=e.get("endAngle"),p=e.get("padAngle")*EM;d="auto"===d?u-NM:-d*EM;var h=e.get("minAngle")*EM,f=h+p,m=0;t.each(a,(function(e){!isNaN(e)&&m++}));var g=t.getSum(a),v=Math.PI/(g||m)*2,y=e.get("clockwise"),b=e.get("roseType"),_=e.get("stillShowZeroSum"),x=t.getDataExtent(a);x[0]=0;var w=y?1:-1,D=[u,d],S=w*p/2;Ru(D,!y),u=D[0],d=D[1];var C=jM(e);C.startAngle=u,C.endAngle=d,C.clockwise=y;var T=Math.abs(d-u),I=T,O=0,A=u;if(t.setLayout({viewRect:n,r:l}),t.each(a,(function(e,r){var a;if(isNaN(e))t.setItemLayout(r,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:o,cy:s,r0:c,r:b?NaN:l});else{a="area"!==b?0===g&&_?v:e*v:T/m,aa?(i=A+w*a/2,u=i):(i=A+S,u=n-S),t.setItemLayout(r,{angle:a,startAngle:i,endAngle:u,clockwise:y,cx:o,cy:s,r0:c,r:b?al(e,x,[c,l]):l}),A=n}})),Ir?o:i,u=Math.abs(l.label.y-r);if(u>=c.maxY){var d=l.label.x-t-l.len2*n,p=a+l.len,f=Math.abs(d)e.unconstrainedWidth?null:h:null;a.setStyle("width",f)}var m=a.getBoundingRect();i.width=m.width;var g=(a.style.margin||0)+2.1;i.height=m.height+g,i.y-=(i.height-d)/2}}}function UM(e){return"center"===e.position}function WM(e){var t,r,a=e.getData(),n=[],i=!1,o=(e.get("minShowLabelAngle")||0)*$M,s=a.getLayout("viewRect"),l=a.getLayout("r"),c=s.width,u=s.x,d=s.y,p=s.height;function h(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}a.each((function(e){var s=a.getItemGraphicEl(e),d=s.shape,p=s.getTextContent(),m=s.getTextGuideLine(),g=a.getItemModel(e),v=g.getModel("label"),y=v.get("position")||g.get(["emphasis","label","position"]),b=v.get("distanceToLabelLine"),_=v.get("alignTo"),x=nl(v.get("edgeDistance"),c),w=v.get("bleedMargin"),D=g.getModel("labelLine"),S=D.get("length");S=nl(S,c);var C=D.get("length2");if(C=nl(C,c),Math.abs(d.endAngle-d.startAngle)0?"right":"left":P>0?"left":"right"}var $=Math.PI,B=0,z=v.get("rotate");if(Object(Ia["z"])(z))B=z*($/180);else if("center"===y)B=0;else if("radial"===z||!0===z){var G=P<0?-M+$:-M;B=G}else if("tangential"===z&&"outside"!==y&&"outer"!==y){var U=Math.atan2(P,k);U<0&&(U=2*$+U);var W=k>0;W&&(U=$+U),B=U-$}if(i=!!B,p.x=T,p.y=I,p.rotation=B,p.setStyle({verticalAlign:"middle"}),N){p.setStyle({align:A});var H=p.states.select;H&&(H.x+=p.x,H.y+=p.y)}else{var q=p.getBoundingRect().clone();q.applyTransform(p.getComputedTransform());var Y=(p.style.margin||0)+2.1;q.y-=Y/2,q.height+=Y,n.push({label:p,labelLine:m,position:y,len:S,len2:C,minTurnAngle:D.get("minTurnAngle"),maxSurfaceAngle:D.get("maxSurfaceAngle"),surfaceNormal:new jn(P,k),linePoints:O,textAlign:A,labelDistance:b,labelAlignTo:_,edgeDistance:x,bleedMargin:w,rect:q,unconstrainedWidth:q.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:N})}})),!i&&e.get("avoidLabelOverlap")&&zM(n,t,r,l,c,p,u,d);for(var m=0;m0){for(var l=i.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=a.r0}},t.type="pie",t}(hx),YM=qM;function XM(e,t,r){t=Object(Ia["t"])(t)&&{coordDimensions:t}||Object(Ia["m"])({encodeDefine:e.getEncode()},t);var a=e.getSource(),n=mO(a,t).dimensions,i=new fO(n,e);return i.initData(a,r),i}var KM=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},e}(),ZM=KM,JM=Jl(),QM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ZM(Ia["c"](this.getData,this),Ia["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return XM(this,{coordDimensions:["value"],encodeDefaulter:Ia["h"](Nm,this)})},t.prototype.getDataParams=function(t){var r=this.getData(),a=JM(r),n=a.seats;if(!n){var i=[];r.each(r.mapDimension("value"),(function(e){i.push(e)})),n=a.seats=ul(i,r.hostModel.get("percentPrecision"))}var o=e.prototype.getDataParams.call(this,t);return o.percent=n[t]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){Pl(e,"labelLine",["show"]);var t=e.labelLine,r=e.emphasis.labelLine;t.show=t.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Uy),eP=QM;function tP(e){return{seriesType:e,reset:function(e,t){var r=e.getData();r.filterSelf((function(e){var t=r.mapDimension("value"),a=r.get(t,e);return!(Object(Ia["z"])(a)&&!isNaN(a)&&a<0)}))}}}function rP(e){e.registerChartView(YM),e.registerSeriesModel(eP),cw("pie",e.registerAction),e.registerLayout(Object(Ia["h"])(FM,"pie")),e.registerProcessor(VM("pie")),e.registerProcessor(tP("pie"))}var aP=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){return kO(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,r){return r.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Uy),nP=aP,iP=4,oP=function(){function e(){}return e}(),sP=function(e){function t(t){var r=e.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new oP},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var r,a=t.points,n=t.size,i=this.symbolProxy,o=i.shape,s=e.getContext?e.getContext():e,l=s&&n[0]=0;s--){var l=2*s,c=a[l]-i/2,u=a[l+1]-o/2;if(e>=c&&t>=u&&e<=c+i&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var r=this.transformCoordToLocal(e,t),a=this.getBoundingRect();if(e=r[0],t=r[1],a.contain(e,t)){var n=this.hoverDataIdx=this.findDataIndex(e,t);return n>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,r=t.points,a=t.size,n=a[0],i=a[1],o=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u=0&&(l.dataIndex=r+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),cP=lP,uP=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=e.getData(),n=this._updateSymbolDraw(a,e);n.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,r){var a=e.getData(),n=this._updateSymbolDraw(a,e);n.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,t,r){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,r){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var n=MA("").reset(e,t,r);n.progress&&n.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var r=this._symbolDraw,a=t.pipelineContext,n=a.large;return r&&n===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=n?new cP:new UO,this._isLargeDraw=n,this.group.removeAll()),this.group.add(r.group),r},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(hx),dP=uP,pP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(gm),hP=pP,fP=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),mP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rc).models[0]},t.type="cartesian2dAxis",t}(gm);Ia["K"](mP,fP);var gP={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},vP=Ia["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},gP),yP=Ia["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},gP),bP=Ia["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},yP),_P=Ia["i"]({logBase:10},yP),xP={category:vP,value:yP,time:bP,log:_P},wP=0,DP=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++wP}return e.createByAxisModel=function(t){var r=t.option,a=r.data,n=a&&Object(Ia["H"])(a,SP);return new e({categories:n,needCollect:!n,deduplication:!1!==r.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!Object(Ia["C"])(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),null==t&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(Ia["f"])(this.categories))},e}();function SP(e){return Object(Ia["A"])(e)&&null!=e.value?e.value:e+""}var CP=DP,TP={value:1,category:1,time:1,log:1};function IP(e,t,r,a){Object(Ia["k"])(TP,(function(n,i){var o=Object(Ia["I"])(Object(Ia["I"])({},xP[i],!0),a,!0),s=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t+"Axis."+i,r}return Ca(r,e),r.prototype.mergeDefaultAndTheme=function(e,t){var r=cm(this),a=r?dm(e):{},n=t.getTheme();Object(Ia["I"])(e,n.get(i+"Axis")),Object(Ia["I"])(e,this.getDefaultOption()),e.type=OP(e),r&&um(e,a,r)},r.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=CP.createByAxisModel(this))},r.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},r.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},r.type=t+"Axis."+i,r.defaultOption=o,r}(r);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",OP)}function OP(e){return e.type||(e.data?"category":"value")}var AP=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Dc(AP);var MP=AP;function PP(e){return"interval"===e.type||"log"===e.type}function kP(e,t,r,a){var n={},i=e[1]-e[0],o=n.interval=bl(i/t,!0);null!=r&&oa&&(o=n.interval=a);var s=n.intervalPrecision=EP(o),l=n.niceTickExtent=[il(Math.ceil(e[0]/o)*o,s),il(Math.floor(e[1]/o)*o,s)];return RP(l,e),n}function NP(e){var t=Math.pow(10,yl(e)),r=e/t;return r?2===r?r=3:3===r?r=5:r*=2:r=1,il(r*t)}function EP(e){return sl(e)+2}function LP(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function RP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),LP(e,0,t),LP(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function FP(e,t){return e>=t[0]&&e<=t[1]}function jP(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function VP(e,t){return e*(t[1]-t[0])+t[0]}var $P=function(e){function t(t){var r=e.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new CP({})),Object(Ia["t"])(a)&&(a=new CP({categories:Object(Ia["H"])(a,(function(e){return Object(Ia["A"])(e)?e.value:e}))})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return Ca(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(Ia["C"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),FP(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),jP(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(VP(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,r=t[0];while(r<=t[1])e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],n=0,i=this._ordinalMeta.categories.length,o=Math.min(i,t.length);n=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(MP);MP.registerClass($P);var BP=$P,zP=il,GP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Ca(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return FP(e,this._extent)},t.prototype.normalize=function(e){return jP(e,this._extent)},t.prototype.scale=function(e){return VP(e,this._extent)},t.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(t)||(r[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=EP(e)},t.prototype.getTicks=function(e){var t=this._interval,r=this._extent,a=this._niceExtent,n=this._intervalPrecision,i=[];if(!t)return i;var o=1e4;r[0]o)return[]}var l=i.length?i[i.length-1].value:a[1];return r[1]>l&&(e?i.push({value:zP(l+t,n)}):i.push({value:r[1]})),i},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),r=[],a=this.getExtent(),n=1;na[0]&&d>>1;e[n][1]r&&(this._approxInterval=r);var i=qP.length,o=Math.min(WP(qP,this._approxInterval,0,i),i-1);this._interval=qP[o][1],this._minLevelUnit=qP[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return Object(Ia["z"])(e)?e:+gl(e)},t.prototype.contain=function(e){return FP(this.parse(e),this._extent)},t.prototype.normalize=function(e){return jP(this.parse(e),this._extent)},t.prototype.scale=function(e){return VP(e,this._extent)},t.type="time",t}(UP),qP=[["second",df],["minute",pf],["hour",hf],["quarter-day",6*hf],["half-day",12*hf],["day",1.2*ff],["half-week",3.5*ff],["week",7*ff],["month",31*ff],["quarter",95*ff],["half-year",mf/2],["year",mf]];function YP(e,t,r,a){var n=gl(t),i=gl(r),o=function(e){return Of(n,e,a)===Of(i,e,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},c=function(){return l()&&o("day")},u=function(){return c()&&o("hour")},d=function(){return u()&&o("minute")},p=function(){return d()&&o("second")},h=function(){return p()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return d();case"second":return p();case"millisecond":return h()}}function XP(e,t){return e/=ff,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function KP(e){var t=30*ff;return e/=t,e>6?6:e>3?3:e>2?2:1}function ZP(e){return e/=hf,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function JP(e,t){return e/=t?pf:df,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function QP(e){return bl(e,!0)}function ek(e,t,r){var a=new Date(e);switch(wf(t)){case"year":case"month":a[Ff(r)](0);case"day":a[jf(r)](1);case"hour":a[Vf(r)](0);case"minute":a[$f(r)](0);case"second":a[Bf(r)](0),a[zf(r)](0)}return a.getTime()}function tk(e,t,r,a){var n=1e4,i=_f,o=0;function s(e,t,r,n,i,o,s){var l=new Date(t),c=t,u=l[n]();while(c1&&0===c&&i.unshift({value:i[0].value-p})}}for(c=0;c=a[0]&&y<=a[1]&&d++)}var b=(a[1]-a[0])/t;if(d>1.5*b&&p>b/1.5)break;if(c.push(g),d>b||e===i[h])break}u=[]}}}var _=Object(Ia["n"])(Object(Ia["H"])(c,(function(e){return Object(Ia["n"])(e,(function(e){return e.value>=a[0]&&e.value<=a[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],w=_.length-1;for(h=0;h<_.length;++h)for(var D=_[h],S=0;S0)a*=10;var i=[il(sk(t[0]/a)*a),il(ok(t[1]/a)*a)];this._interval=a,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){nk.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ck(e)/ck(this.base),FP(e,this._extent)},t.prototype.normalize=function(e){return e=ck(e)/ck(this.base),jP(e,this._extent)},t.prototype.scale=function(e){return e=VP(e,this._extent),lk(this.base,e)},t.type="log",t}(MP),dk=uk.prototype;function pk(e,t){return ik(e,sl(t))}dk.getMinorTicks=nk.getMinorTicks,dk.getLabel=nk.getLabel,MP.registerClass(uk);var hk=uk,fk=function(){function e(e,t,r){this._prepareParams(e,t,r)}return e.prototype._prepareParams=function(e,t,r){r[1]0&&s>0&&!l&&(o=0),o<0&&s<0&&!c&&(s=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(o=d,l=!0),null!=p&&(s=p,c=!0),{min:o,max:s,minFixed:l,maxFixed:c,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[gk[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var r=mk[e];this[r]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),mk={min:"_determinedMin",max:"_determinedMax"},gk={min:"_dataMin",max:"_dataMax"};function vk(e,t,r){var a=e.rawExtentInfo;return a||(a=new fk(e,t,r),e.rawExtentInfo=a,a)}function yk(e,t){return null==t?null:Object(Ia["l"])(t)?NaN:e.parse(t)}function bk(e,t){var r=e.type,a=vk(e,t,e.getExtent()).calculate();e.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&"time"===r){var s=VA("bar",o),l=!1;if(Ia["k"](s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var c=BA(s),u=_k(n,i,t,c);n=u.min,i=u.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function _k(e,t,r,a){var n=r.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=GA(a,r.axis);if(void 0===o)return{min:e,max:t};var s=1/0;Ia["k"](o,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;Ia["k"](o,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,d=1-(s+l)/i,p=u/d-u;return t+=p*(l/c),e-=p*(s/c),{min:e,max:t}}function xk(e,t){var r=t,a=bk(e,r),n=a.extent,i=r.get("splitNumber");e instanceof hk&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l="interval"===o||"time"===o;e.setExtent(n[0],n[1]),e.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function wk(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new BP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new rk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(MP.getClass(t)||UP)}}function Dk(e){var t=e.scale.getExtent(),r=t[0],a=t[1];return!(r>0&&a>0||r<0&&a<0)}function Sk(e){var t=e.getLabelModel().get("formatter"),r="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(r,a){return e.scale.getFormattedLabel(r,a,t)}}(t):Ia["C"](t)?function(t){return function(r){var a=e.scale.getLabel(r),n=t.replace("{value}",null!=a?a:"");return n}}(t):Ia["w"](t)?function(t){return function(a,n){return null!=r&&(n=a.value-r),t(Ck(e,a),n,null!=a.level?{level:a.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function Ck(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Tk(e){var t=e.model,r=e.scale;if(t.get(["axisLabel","show"])&&!r.isBlank()){var a,n,i=r.getExtent();r instanceof BP?n=r.count():(a=r.getTicks(),n=a.length);var o,s=e.getLabelModel(),l=Sk(e),c=1;n>40&&(c=Math.ceil(n/40));for(var u=0;ue[1]&&(e[1]=a[1])}))}var kk=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return Ia["H"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ia["n"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Nk=kk,Ek=["x","y"];function Lk(e){return"interval"===e.type||"time"===e.type}var Rk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Ek,t}return Ca(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(Lk(e)&&Lk(t)){var r=e.getExtent(),a=t.getExtent(),n=this.dataToPoint([r[0],a[0]]),i=this.dataToPoint([r[1],a[1]]),o=r[1]-r[0],s=a[1]-a[0];if(o&&s){var l=(i[0]-n[0])/o,c=(i[1]-n[1])/s,u=n[0]-r[0]*l,d=n[1]-a[0]*c,p=this._transform=[l,0,0,c,u,d];this._invTransform=Ln([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),r=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&r.contain(r.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var r=this.dataToPoint(e),a=this.dataToPoint(t),n=this.getArea(),i=new Yn(r[0],r[1],a[0]-r[0],a[1]-r[1]);return n.intersect(i)},t.prototype.dataToPoint=function(e,t,r){r=r||[];var a=e[0],n=e[1];if(this._transform&&null!=a&&isFinite(a)&&null!=n&&isFinite(n))return Ua(r,e,this._transform);var i=this.getAxis("x"),o=this.getAxis("y");return r[0]=i.toGlobalCoord(i.dataToCoord(a,t)),r[1]=o.toGlobalCoord(o.dataToCoord(n,t)),r},t.prototype.clampData=function(e,t){var r=this.getAxis("x").scale,a=this.getAxis("y").scale,n=r.getExtent(),i=a.getExtent(),o=r.parse(e[0]),s=a.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(n[0],n[1]),o),Math.max(n[0],n[1])),t[1]=Math.min(Math.max(Math.min(i[0],i[1]),s),Math.max(i[0],i[1])),t},t.prototype.pointToData=function(e,t){var r=[];if(this._invTransform)return Ua(r,e,this._invTransform);var a=this.getAxis("x"),n=this.getAxis("y");return r[0]=a.coordToData(a.toLocalCoord(e[0]),t),r[1]=n.coordToData(n.toLocalCoord(e[1]),t),r},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1])-e,n=Math.min(r[0],r[1])-e,i=Math.max(t[0],t[1])-a+e,o=Math.max(r[0],r[1])-n+e;return new Yn(a,n,i,o)},t}(Nk),Fk=Rk,jk=Jl();function Vk(e,t){var r=Ia["H"](t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function $k(e){var t=e.getLabelModel().get("customValues");if(t){var r=Sk(e),a=e.scale.getExtent(),n=Vk(e,t),i=Ia["n"](n,(function(e){return e>=a[0]&&e<=a[1]}));return{labels:Ia["H"](i,(function(t){var a={value:t};return{formattedLabel:r(a),rawLabel:e.scale.getLabel(a),tickValue:t}}))}}return"category"===e.type?zk(e):Wk(e)}function Bk(e,t){var r=e.getTickModel().get("customValues");if(r){var a=e.scale.getExtent(),n=Vk(e,r);return{ticks:Ia["n"](n,(function(e){return e>=a[0]&&e<=a[1]}))}}return"category"===e.type?Uk(e,t):{ticks:Ia["H"](e.scale.getTicks(),(function(e){return e.value}))}}function zk(e){var t=e.getLabelModel(),r=Gk(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Gk(e,t){var r,a,n=Hk(e,"labels"),i=Ok(t),o=qk(n,i);return o||(Ia["w"](i)?r=Qk(e,i):(a="auto"===i?Xk(e):i,r=Jk(e,a)),Yk(n,i,{labels:r,labelCategoryInterval:a}))}function Uk(e,t){var r,a,n=Hk(e,"ticks"),i=Ok(t),o=qk(n,i);if(o)return o;if(t.get("show")&&!e.scale.isBlank()||(r=[]),Ia["w"](i))r=Qk(e,i,!0);else if("auto"===i){var s=Gk(e,e.getLabelModel());a=s.labelCategoryInterval,r=Ia["H"](s.labels,(function(e){return e.tickValue}))}else a=i,r=Jk(e,a,!0);return Yk(n,i,{ticks:r,tickCategoryInterval:a})}function Wk(e){var t=e.scale.getTicks(),r=Sk(e);return{labels:Ia["H"](t,(function(t,a){return{level:t.level,formattedLabel:r(t,a),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function Hk(e,t){return jk(e)[t]||(jk(e)[t]=[])}function qk(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),p=0,h=0;l<=i[1];l+=s){var f=0,m=0,g=ws(r({value:l}),t.font,"center","top");f=1.3*g.width,m=1.3*g.height,p=Math.max(p,f,7),h=Math.max(h,m,7)}var v=p/u,y=h/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=jk(e.model),x=e.getExtent(),w=_.lastAutoInterval,D=_.lastTickCount;return null!=w&&null!=D&&Math.abs(w-b)<=1&&Math.abs(D-o)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=o,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function Zk(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Jk(e,t,r){var a=Sk(e),n=e.scale,i=n.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=i[0],u=n.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=Ak(e),p=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;p&&c!==i[0]&&m(i[0]);for(var f=c;f<=i[1];f+=l)m(f);function m(e){var t={value:e};s.push(r?e:{formattedLabel:a(t),rawLabel:n.getLabel(t),tickValue:e})}return h&&f-l!==i[1]&&m(i[1]),s}function Qk(e,t,r){var a=e.scale,n=Sk(e),i=[];return Ia["k"](a.getTicks(),(function(e){var o=a.getLabel(e),s=e.value;t(e.value,o)&&i.push(r?s:{formattedLabel:n(e),rawLabel:o,tickValue:s})})),i}var eN=[0,1],tN=function(){function e(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return e.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return cl(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},e.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&"ordinal"===a.type&&(r=r.slice(),rN(r,a.count())),al(e,eN,r,t)},e.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&"ordinal"===a.type&&(r=r.slice(),rN(r,a.count()));var n=al(e,r,eN,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=Bk(this,t),a=r.ticks,n=Object(Ia["H"])(a,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),i=t.get("alignWithLabel");return aN(this,n,i,e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=Object(Ia["H"])(r,(function(e){return Object(Ia["H"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return a},e.prototype.getViewLabels=function(){return $k(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);0===r&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(){return Kk(this)},e}();function rN(e,t){var r=e[1]-e[0],a=t,n=r/a/2;e[0]+=n,e[1]-=n}function aN(e,t,r,a){var n=t.length;if(e.onBand&&!r&&n){var i,o,s=e.getExtent();if(1===n)t[0].coord=s[0],i=t[1]={coord:s[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,c=(t[n-1].coord-t[0].coord)/l;Object(Ia["k"])(t,(function(e){e.coord-=c/2}));var u=e.scale.getExtent();o=1+u[1]-t[n-1].tickValue,i={coord:t[n-1].coord+c*o,tickValue:u[1]+1},t.push(i)}var d=s[0]>s[1];p(t[0].coord,s[0])&&(a?t[0].coord=s[0]:t.shift()),a&&p(s[0],t[0].coord)&&t.unshift({coord:s[0]}),p(s[1],i.coord)&&(a?i.coord=s[1]:t.pop()),a&&p(i.coord,s[1])&&t.push({coord:s[1]})}function p(e,t){return e=il(e),t=il(t),d?e>t:et[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(nN),oN=iN;function sN(e,t,r){r=r||{};var a=e.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,c=n.dim,u=a.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,f="x"===c?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));f[p.onZero]=Math.max(Math.min(m,f[1]),f[0])}i.position=["y"===c?f[p[l]]:d[0],"x"===c?f[p[l]]:d[3]],i.rotation=Math.PI/2*("x"===c?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?f[p[s]]-f[p.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ia["O"](r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=t.get(["axisLabel","rotate"]);return i.labelRotate="top"===l?-v:v,i.z2=1,i}function lN(e){return"cartesian2d"===e.get("coordinateSystem")}function cN(e){var t={xAxisModel:null,yAxisModel:null};return Ia["k"](t,(function(r,a){var n=a.replace(/Model$/,""),i=e.getReferringComponents(n,rc).models[0];t[a]=i})),t}var uN=Math.log;function dN(e,t,r){var a=UP.prototype,n=a.getTicks.call(r),i=a.getTicks.call(r,!0),o=n.length-1,s=a.getInterval.call(r),l=bk(e,t),c=l.extent,u=l.fixMin,d=l.fixMax;if("log"===e.type){var p=uN(e.base);c=[uN(c[0])/p,uN(c[1])/p]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var h=a.getExtent.call(e);u&&(c[0]=h[0]),d&&(c[1]=h[1]);var f=a.getInterval.call(e),m=c[0],g=c[1];if(u&&d)f=(g-m)/o;else if(u){g=c[0]+f*o;while(gc[0]&&isFinite(m)&&isFinite(c[0]))f=NP(f),m=c[1]-f*o}else{var v=e.getTicks().length-1;v>o&&(f=NP(f));var y=f*o;g=Math.ceil(c[1]/f)*f,m=il(g-y),m<0&&c[0]>=0?(m=0,g=il(y)):g>0&&c[1]<=0&&(g=0,m=-il(y))}var b=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(e,m+f*b,g+f*_),a.setInterval.call(e,f),(b||_)&&a.setNiceExtent.call(e,m+f,g-f)}var pN=function(){function e(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ek,this._initCartesian(e,t,r),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var r=this._axesMap;function a(e){var t,r=Object(Ia["F"])(e),a=r.length;if(a){for(var n=[],i=a-1;i>=0;i--){var o=+r[i],s=e[o],l=s.model,c=s.scale;PP(c)&&l.get("alignTicks")&&null==l.get("interval")?n.push(s):(xk(c,l),PP(c)&&(t=s))}n.length&&(t||(t=n.pop(),xk(t.scale,t.model)),Object(Ia["k"])(n,(function(e){dN(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),a(r.x),a(r.y);var n={};Object(Ia["k"])(r.x,(function(e){fN(r,"y",e,n)})),Object(Ia["k"])(r.y,(function(e){fN(r,"x",e,n)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),n=!r&&e.get("containLabel"),i=om(a,{width:t.getWidth(),height:t.getHeight()});this._rect=i;var o=this._axesList;function s(){Object(Ia["k"])(o,(function(e){var t=e.isHorizontal(),r=t?[0,i.width]:[0,i.height],a=e.inverse?1:0;e.setExtent(r[a],r[1-a]),gN(e,t?i.x:i.y)}))}s(),n&&(Object(Ia["k"])(o,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Tk(e);if(t){var r=e.isHorizontal()?"height":"width",a=e.model.get(["axisLabel","margin"]);i[r]-=t[r]+a,"top"===e.position?i.y+=t.height+a:"left"===e.position&&(i.x+=t.width+a)}}})),s()),Object(Ia["k"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(null!=r)return r[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var r="x"+e+"y"+t;return this._coordsMap[r]}Object(Ia["A"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a0?"top":"bottom",a="center"):fl(i-yN)?(n=r>0?"bottom":"top",a="center"):(n="middle",a=i>0&&i0?"right":"left":r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:n}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),_N={axisLine:function(e,t,r,a){var n=t.get(["axisLine","show"]);if("auto"===n&&e.handleAutoShown&&(n=e.handleAutoShown("axisLine")),n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],c=s[0]>l[0];o&&(Ua(s,s,o),Ua(l,l,o));var u=Object(Ia["m"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new t_({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});$_(d.shape,d.style.lineWidth),d.anid="line",r.add(d);var p=t.get(["axisLine","symbol"]);if(null!=p){var h=t.get(["axisLine","symbolSize"]);Object(Ia["C"])(p)&&(p=[p,p]),(Object(Ia["C"])(h)||Object(Ia["z"])(h))&&(h=[h,h]);var f=Ow(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],g=h[1];Object(Ia["k"])([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,a){if("none"!==p[a]&&null!=p[a]){var n=Tw(p[a],-m/2,-g/2,m,g,u.stroke,!0),i=t.r+t.offset,o=c?l:s;n.attr({rotation:t.rotate,x:o[0]+i*Math.cos(e.rotation),y:o[1]-i*Math.sin(e.rotation),silent:!0,z2:11}),r.add(n)}}))}}},axisTickLabel:function(e,t,r,a){var n=IN(r,a,t,e),i=AN(r,a,t,e);if(wN(t,i,n),ON(r,a,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=TC(Object(Ia["H"])(i,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));MC(o)}},axisName:function(e,t,r,a){var n=Object(Ia["O"])(e.axisName,t.get("name"));if(n){var i,o,s=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,d=t.axis.getExtent(),p=d[0]>d[1]?-1:1,h=["start"===s?d[0]-p*u:"end"===s?d[1]+p*u:(d[0]+d[1])/2,CN(s)?e.labelOffset+l*u:0],f=t.get("nameRotate");null!=f&&(f=f*yN/180),CN(s)?i=bN.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(i=xN(e.rotation,s,f||0,d),o=e.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(i.rotation)),!isFinite(o)&&(o=null)));var m=c.getFont(),g=t.get("nameTruncate",!0)||{},v=g.ellipsis,y=Object(Ia["O"])(e.nameTruncateMaxWidth,g.maxWidth,o),b=new Wd({x:h[0],y:h[1],rotation:i.rotation,silent:bN.isLabelSilent(t),style:wh(c,{text:n,font:m,overflow:"truncate",width:y,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||i.textAlign,verticalAlign:c.get("verticalAlign")||i.textVerticalAlign}),z2:1});if(rx({el:b,componentModel:t,itemName:n}),b.__fullText=n,b.anid="name",t.get("triggerEvent")){var _=bN.makeAxisEventDataBase(t);_.targetType="axisName",_.name=n,Hd(b).eventData=_}a.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function xN(e,t,r,a){var n,i,o=hl(r-e),s=a[0]>a[1],l="start"===t&&!s||"start"!==t&&s;return fl(o-yN/2)?(i=l?"bottom":"top",n="center"):fl(o-1.5*yN)?(i=l?"top":"bottom",n="center"):(i="middle",n=o<1.5*yN&&o>yN/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:n,textVerticalAlign:i}}function wN(e,t,r){if(!Ak(e.axis)){var a=e.get(["axisLabel","showMinLabel"]),n=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],c=r[0],u=r[1],d=r[r.length-1],p=r[r.length-2];!1===a?(DN(i),DN(c)):SN(i,o)&&(a?(DN(o),DN(u)):(DN(i),DN(c))),!1===n?(DN(s),DN(d)):SN(l,s)&&(n?(DN(l),DN(p)):(DN(s),DN(d)))}}function DN(e){e&&(e.ignore=!0)}function SN(e,t){var r=e&&e.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(r&&a){var n=An([]);return Nn(n,n,-e.rotation),r.applyTransform(Pn([],n,e.getLocalTransform())),a.applyTransform(Pn([],n,t.getLocalTransform())),r.intersect(a)}}function CN(e){return"middle"===e||"center"===e}function TN(e,t,r,a,n){for(var i=[],o=[],s=[],l=0;l=0||e===t}function FN(e){var t=jN(e);if(t){var r=t.axisPointerModel,a=t.axis.scale,n=r.option,i=r.get("status"),o=r.get("value");null!=o&&(o=a.parse(o));var s=$N(r);null==i&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=o;null!=d.color&&(p=Ia["i"]({color:d.color},o));var h=Ia["I"](Ia["d"](d),{boundaryGap:e,splitNumber:t,scale:r,axisLine:a,axisTick:n,axisLabel:i,name:d.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:u},!1);if(Ia["C"](l)){var f=h.name;h.name=l.replace("{value}",null!=f?f:"")}else Ia["w"](l)&&(h.name=l(h.name,h));var m=new Hh(h,null,this.ecModel);return Ia["K"](m,fP.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ia["I"]({lineStyle:{color:"#bbb"}},pE.axisLine),axisLabel:hE(pE.axisLabel,!1),axisTick:hE(pE.axisTick,!1),splitLine:hE(pE.splitLine,!0),splitArea:hE(pE.splitArea,!0),indicator:[]},t}(gm),mE=fE,gE=["axisLine","axisTickLabel","axisName"],vE=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,r=t.getIndicatorAxes(),a=Ia["H"](r,(function(e){var r=e.model.get("showName")?e.name:"",a=new MN(e.model,{axisName:r,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return a}));Ia["k"](a,(function(e){Ia["k"](gE,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,r=t.getIndicatorAxes();if(r.length){var a=e.get("shape"),n=e.getModel("splitLine"),i=e.getModel("splitArea"),o=n.getModel("lineStyle"),s=i.getModel("areaStyle"),l=n.get("show"),c=i.get("show"),u=o.get("color"),d=s.get("color"),p=Ia["t"](u)?u:[u],h=Ia["t"](d)?d:[d],f=[],m=[];if("circle"===a)for(var g=r[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b3?1.4:n>1?1.2:1.1,l=a>0?s:1/s;PE(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:i,originY:o,isAvailableBehavior:null})}if(r){var c=Math.abs(a),u=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);PE(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:i,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!OE(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;PE(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Za);function PE(e,t,r,a,n){e.pointerChecker&&e.pointerChecker(a,n.originX,n.originY)&&(wn(a.event),kE(e,t,r,a,n))}function kE(e,t,r,a,n){n.isAvailableBehavior=Object(Ia["c"])(NE,null,r,a),e.trigger(t,n)}function NE(e,t,r){var a=r[e];return!e||a&&(!Object(Ia["C"])(a)||t.event[a+"Key"])}var EE=ME;function LE(e,t,r){var a=e.target;a.x+=t,a.y+=r,a.dirty()}function RE(e,t,r,a){var n=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var c=o/e.zoom;e.zoom=o,n.x-=(r-n.x)*(c-1),n.y-=(a-n.y)*(c-1),n.scaleX*=c,n.scaleY*=c,n.dirty()}var FE,jE={axisPointer:1,tooltip:1,brush:1};function VE(e,t,r){var a=t.getComponentByElement(e.topTarget),n=a&&a.coordinateSystem;return a&&a!==r&&!jE.hasOwnProperty(a.mainType)&&n&&n.model!==r}function $E(e){if(Object(Ia["C"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;9===r.nodeType&&(r=r.firstChild);while("svg"!==r.nodeName.toLowerCase()||1!==r.nodeType)r=r.nextSibling;return r}var BE={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},zE=Object(Ia["F"])(BE),GE={"alignment-baseline":"textBaseline","stop-color":"stopColor"},UE=Object(Ia["F"])(GE),WE=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var r=$E(e);this._defsUsePending=[];var a=new Gs;this._root=a;var n=[],i=r.getAttribute("viewBox")||"",o=parseFloat(r.getAttribute("width")||t.width),s=parseFloat(r.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),ZE(r,a,null,!0,!1);var l,c,u=r.firstChild;while(u)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;if(tL(this._defs,this._defsUsePending),this._defsUsePending=[],i){var d=aL(i);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=o&&null!=s&&(c=uL(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var p=a;a=new Gs,a.add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return t.ignoreRootClip||null==o||null==s||a.setClipPath(new Id({shape:{x:0,y:0,width:o,height:s}})),{root:a,width:o,height:s,viewBoxRect:l,viewBoxTransform:c,named:n}},e.prototype._parseNode=function(e,t,r,a,n,i){var o,s=e.nodeName.toLowerCase(),l=a;if("defs"===s&&(n=!0),"text"===s&&(i=!0),"defs"===s||"switch"===s)o=t;else{if(!n){var c=FE[s];if(c&&Object(Ia["q"])(FE,s)){o=c.call(this,e,t);var u=e.getAttribute("name");if(u){var d={name:u,namedFrom:null,svgNodeTagLower:s,el:o};r.push(d),"g"===s&&(l=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:o});t.add(o)}}var p=HE[s];if(p&&Object(Ia["q"])(HE,s)){var h=p.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=h)}}if(o&&o.isGroup){var m=e.firstChild;while(m)1===m.nodeType?this._parseNode(m,o,r,l,n,i):3===m.nodeType&&i&&this._parseText(m,o),m=m.nextSibling}},e.prototype._parseText=function(e,t){var r=new hd({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),JE(r,t);var a=r.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,r.scaleX*=n/9,r.scaleY*=n/9);var i=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=i;var o=r.getBoundingRect();return this._textX+=o.width,t.add(r),r},e.internalField=function(){FE={g:function(e,t){var r=new Gs;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new Id;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new bb;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new t_;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new wb;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r,a=e.getAttribute("points");a&&(r=KE(a));var n=new Yb({shape:{points:r||[]},silent:!0});return XE(t,n),ZE(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var r,a=e.getAttribute("points");a&&(r=KE(a));var n=new Zb({shape:{points:r||[]},silent:!0});return XE(t,n),ZE(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var r=new yd;return XE(t,r),ZE(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",i=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(i);var o=new Gs;return XE(t,o),ZE(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");null!=r&&(this._textX=parseFloat(r)),null!=a&&(this._textY=parseFloat(a));var n=e.getAttribute("dx")||"0",i=e.getAttribute("dy")||"0",o=new Gs;return XE(t,o),ZE(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(e,t){var r=e.getAttribute("d")||"",a=hb(r);return XE(t,a),ZE(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),HE={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),a=parseInt(e.getAttribute("x2")||"10",10),n=parseInt(e.getAttribute("y2")||"0",10),i=new m_(t,r,a,n);return qE(e,i),YE(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),a=parseInt(e.getAttribute("r")||"0",10),n=new v_(t,r,a);return qE(e,n),YE(e,n),n}};function qE(e,t){var r=e.getAttribute("gradientUnits");"userSpaceOnUse"===r&&(t.global=!0)}function YE(e,t){var r=e.firstChild;while(r){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var a=r.getAttribute("offset"),n=void 0;n=a&&a.indexOf("%")>0?parseInt(a,10)/100:a?parseFloat(a):0;var i={};lL(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:n,color:o})}r=r.nextSibling}}function XE(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(Ia["i"])(t.__inheritedStyle,e.__inheritedStyle))}function KE(e){for(var t=aL(e),r=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=aL(o);switch(n=n||On(),s){case"translate":kn(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":En(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Nn(n,n,-parseFloat(l[0])*iL,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*iL);Pn(n,[1,0,c,1,0,0],n);break;case"skewY":var u=Math.tan(parseFloat(l[0])*iL);Pn(n,[1,u,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var sL=/([^\s:;]+)\s*:\s*([^:;]+)/g;function lL(e,t,r){var a=e.getAttribute("style");if(a){var n;sL.lastIndex=0;while(null!=(n=sL.exec(a))){var i=n[1],o=Object(Ia["q"])(BE,i)?BE[i]:null;o&&(t[o]=n[2]);var s=Object(Ia["q"])(GE,i)?GE[i]:null;s&&(r[s]=n[2])}}}function cL(e,t,r){for(var a=0;ar&&(e=n,r=o)}if(e)return yL(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var r=[1/0,1/0],a=[-1/0,-1/0],n=this.geometries;return Object(Ia["k"])(n,(function(t){"polygon"===t.type?vL(t.exterior,r,a,e):Object(Ia["k"])(t.points,(function(t){vL(t,r,a,e)}))})),isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])||(r[0]=r[1]=a[0]=a[1]=0),t=new Yn(r[0],r[1],a[0]-r[0],a[1]-r[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),r=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var a=0,n=r.length;a>1^-(1&s),l=l>>1^-(1&l),s+=n,l+=i,n=s,i=l,a.push([s/r,l/r])}return a}function PL(e,t){return e=OL(e),Ia["H"](Ia["n"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var r=e.properties,a=e.geometry,n=[];switch(a.type){case"Polygon":var i=a.coordinates;n.push(new _L(i[0],i.slice(1)));break;case"MultiPolygon":Ia["k"](a.coordinates,(function(e){e[0]&&n.push(new _L(e[0],e.slice(1)))}));break;case"LineString":n.push(new xL([a.coordinates]));break;case"MultiLineString":n.push(new xL(a.coordinates))}var o=new wL(r[t||"name"],n,r.cp);return o.properties=r,o}))}for(var kL=[126,25],NL="南海诸岛",EL=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],LL=0;LL0,m={api:r,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:f,isGeo:i,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(m):"geoSVG"===s.resourceType&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,l,r,a)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Ia["f"](),r=Ia["f"](),a=this._regionsGroup,n=e.transformInfoRaw,i=e.mapOrGeoModel,o=e.data,s=e.geo.projection,l=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*n.scaleX+n.x,e[1]*n.scaleY+n.y]}function u(e){for(var t=[],r=!l&&s&&s.project,a=0;a=0)&&(p=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;_h(t,xh(a),{labelFetcher:p,labelDataIndex:d,defaultText:r},h);var f=t.getTextContent();if(f&&(JL(f).ignore=f.ignore,t.textConfig&&o)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function nR(e,t,r,a,n,i){e.data?e.data.setItemGraphicEl(i,t):Hd(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:r,region:a&&a.option||{}}}function iR(e,t,r,a,n){e.data||rx({el:t,componentModel:n,itemName:r,itemTooltipOption:a.get("tooltip")})}function oR(e,t,r,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Yp(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&th(t,n,r),o}function sR(e,t,r){var a,n=[];function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&a.push([e,t])},sphere:function(){}});return!r&&s.polygonStart(),Ia["k"](e,(function(e){s.lineStart();for(var t=0;t-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Uy),pR=dR;function hR(e,t){var r={};return Ia["k"](e,(function(e){e.each(e.mapDimension("value"),(function(t,a){var n="ec-"+e.getName(a);r[n]=r[n]||[],isNaN(t)||r[n].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(a,n){for(var i,o="ec-"+e[0].getName(n),s=0,l=1/0,c=-1/0,u=r[o].length,d=0;d1?(h.width=p,h.height=p/b):(h.height=p,h.width=p*b),h.y=d[1]-h.height/2,h.x=d[0]-h.width/2;else{var x=e.getBoxLayoutParams();x.aspect=b,h=om(x,{width:v,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function TR(e,t){Ia["k"](t.get("geoCoord"),(function(t,r){e.addGeoCoord(r,t)}))}var IR=function(){function e(){this.dimensions=xR}return e.prototype.create=function(e,t){var r=[];function a(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,n){var i=e.get("map"),o=new SR(i+n,i,Ia["m"]({nameMap:e.get("nameMap")},a(e)));o.zoomLimit=e.get("scaleLimit"),r.push(o),e.coordinateSystem=o,o.model=e,o.resize=CR,o.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var a=e.get("geoIndex")||0;e.coordinateSystem=r[a]}}));var n={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();n[t]=n[t]||[],n[t].push(e)}})),Ia["k"](n,(function(e,n){var i=Ia["H"](e,(function(e){return e.get("nameMap")})),o=new SR(n,n,Ia["m"]({nameMap:Ia["J"](i)},a(e[0])));o.zoomLimit=Ia["O"].apply(null,Ia["H"](e,(function(e){return e.get("scaleLimit")}))),r.push(o),o.resize=CR,o.resize(e[0],t),Ia["k"](e,(function(e){e.coordinateSystem=o,TR(o,e)}))})),r},e.prototype.getFilledRegions=function(e,t,r,a){for(var n=(e||[]).slice(),i=Ia["f"](),o=0;o=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function $R(e,t){var r=e.isExpand?e.children:[],a=e.parentNode.children,n=e.hierNode.i?a[e.hierNode.i-1]:null;if(r.length){WR(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;n?(e.hierNode.prelim=n.hierNode.prelim+t(e,n),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else n&&(e.hierNode.prelim=n.hierNode.prelim+t(e,n));e.parentNode.hierNode.defaultAncestor=HR(e,n,e.parentNode.hierNode.defaultAncestor||a[0],t)}function BR(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function zR(e){return arguments.length?e:ZR}function GR(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function UR(e,t){return om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function WR(e){var t=e.children,r=t.length,a=0,n=0;while(--r>=0){var i=t[r];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function HR(e,t,r,a){if(t){var n=e,i=e,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,c=i.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;while(s=qR(s),i=YR(i),s&&i){n=qR(n),o=YR(o),n.hierNode.ancestor=e;var p=s.hierNode.prelim+d-i.hierNode.prelim-c+a(s,i);p>0&&(KR(XR(s,e,r),e,p),c+=p,l+=p),d+=s.hierNode.modifier,c+=i.hierNode.modifier,l+=n.hierNode.modifier,u+=o.hierNode.modifier}s&&!qR(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=d-l),i&&!YR(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=c-u,r=e)}return r}function qR(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function YR(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function XR(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function KR(e,t,r){var a=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=a}function ZR(e,t){return e.parentNode===t.parentNode?1:2}var JR=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),QR=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JR},t.prototype.buildPath=function(e,t){var r=t.childPoints,a=r.length,n=t.parentPoint,i=r[0],o=r[a-1];if(1===a)return e.moveTo(n[0],n[1]),void e.lineTo(i[0],i[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=nl(t.forkPosition,1),d=[];d[l]=n[l],d[c]=n[c]+(o[c]-n[c])*u,e.moveTo(n[0],n[1]),e.lineTo(d[0],d[1]),e.moveTo(i[0],i[1]),d[l]=i[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var p=1;py.x,x||(_-=Math.PI));var D=x?"left":"right",S=s.getModel("label"),C=S.get("rotate"),T=C*(Math.PI/180),I=g.getTextContent();I&&(g.setTextConfig({position:S.get("position")||D,rotation:null==C?-_:T,origin:"center"}),I.setStyle("verticalAlign","middle"))}var O=s.get(["emphasis","focus"]),A="relative"===O?Ia["e"](o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===O?o.getAncestorsIndices():"descendant"===O?o.getDescendantIndices():null;A&&(Hd(r).focus=A),aF(n,o,u,r,f,h,m,a),r.__edge&&(r.onHoverStateChange=function(t){if("blur"!==t){var a=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);a&&a.hoverState===Qd||_p(r.__edge,t)}})}function aF(e,t,r,a,n,i,o,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),d=e.getOrient(),p=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),m=a.__edge;if("curve"===c)t.parentNode&&t.parentNode!==r&&(m||(m=a.__edge=new o_({shape:sF(u,d,p,n,n)})),ch(m,{shape:sF(u,d,p,i,o)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==r&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var g=t.children,v=[],y=0;yt&&(t=a.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=r.getData().tree.root,n=e.targetNode;if(Ia["C"](n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=e.targetNodeId;if(null!=i&&(n=a.getNodeById(i)))return{node:n}}}function CF(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function TF(e,t){var r=CF(e);return Ia["r"](r,t)>=0}function IF(e,t){var r=[];while(e){var a=e.dataIndex;r.push({name:e.name,dataIndex:a,value:t.getRawValue(a)}),e=e.parentNode}return r.reverse(),r}var OF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Ca(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},r=e.leaves||{},a=new Hh(r,this,this.ecModel),n=DF.createTree(t,this,i);function i(e){e.wrapMethod("getItemModel",(function(e,t){var r=n.getNodeByDataIndex(t);return r&&r.children.length&&r.isExpand||(e.parentModel=a),e}))}var o=0;n.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return n.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),n.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,r){var a=this.getData().tree,n=a.root.children[0],i=a.getNodeByDataIndex(e),o=i.getValue(),s=i.name;while(i&&i!==n)s=i.parentNode.name+"."+s,i=i.parentNode;return fy("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=IF(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Uy),AF=OF;function MF(e,t,r){var a,n=[e],i=[];while(a=n.pop())if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;i--)a.push(n[i])}}function kF(e,t){e.eachSeriesByType("tree",(function(e){NF(e,t)}))}function NF(e,t){var r=UR(e,t);e.layoutInfo=r;var a=e.get("layout"),n=0,i=0,o=null;"radial"===a?(n=2*Math.PI,i=Math.min(r.height,r.width)/2,o=zR((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(n=r.width,i=r.height,o=zR());var s=e.getData().tree.root,l=s.children[0];if(l){VR(s),MF(l,$R,o),s.hierNode.modifier=-l.hierNode.prelim,PF(l,BR);var c=l,u=l,d=l;PF(l,(function(e){var t=e.getLayout().x;tu.getLayout().x&&(u=e),e.depth>d.depth&&(d=e)}));var p=c===u?1:o(c,u)/2,h=p-c.getLayout().x,f=0,m=0,g=0,v=0;if("radial"===a)f=n/(u.getLayout().x+p+h),m=i/(d.depth-1||1),PF(l,(function(e){g=(e.getLayout().x+h)*f,v=(e.depth-1)*m;var t=GR(g,v);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(m=i/(u.getLayout().x+p+h),f=n/(d.depth-1||1),PF(l,(function(e){v=(e.getLayout().x+h)*m,g="LR"===y?(e.depth-1)*f:n-(e.depth-1)*f,e.setLayout({x:g,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=n/(u.getLayout().x+p+h),m=i/(d.depth-1||1),PF(l,(function(e){g=(e.getLayout().x+h)*f,v="TB"===y?(e.depth-1)*m:i-(e.depth-1)*m,e.setLayout({x:g,y:v},!0)})))}}}function EF(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(e){var r=e.getModel(),a=r.getModel("itemStyle").getItemStyle(),n=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(Ia["m"])(n,a)}))}))}function LF(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=e.dataIndex,a=t.getData().tree,n=a.getNodeByDataIndex(r);n.isExpand=!n.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var a=t.coordinateSystem,n=NR(a,e,void 0,r);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))}function RF(e){e.registerChartView(lF),e.registerSeriesModel(AF),e.registerLayout(kF),e.registerVisual(EF),LF(e)}var FF=["treemapZoomToNode","treemapRender","treemapMove"];function jF(e){for(var t=0;t1)r=r.parentNode;var n=Um(e.ecModel,r.name||r.dataIndex+"",a);t.setVisual("decal",n)}))}var $F=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){var r={name:e.name,children:e.data};BF(r);var a=e.levels||[],n=this.designatedVisualItemStyle={},i=new Hh({itemStyle:n},this,t);a=e.levels=zF(a,t);var o=Ia["H"](a||[],(function(e){return new Hh(e,i,t)}),this),s=DF.createTree(r,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var r=s.getNodeByDataIndex(t),a=r?o[r.depth]:null;return e.parentModel=a||i,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,r){var a=this.getData(),n=this.getRawValue(e),i=a.getName(e);return fy("nameValue",{name:i,value:n})},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=IF(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Ia["m"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Ia["f"](),this._idIndexMapCount=0);var r=t.get(e);return null==r&&t.set(e,r=this._idIndexMapCount++),r},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){VF(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Uy);function BF(e){var t=0;Ia["k"](e.children,(function(e){BF(e);var r=e.value;Ia["t"](r)&&(r=r[0]),t+=r}));var r=e.value;Ia["t"](r)&&(r=r[0]),(null==r||isNaN(r))&&(r=t),r<0&&(r=0),Ia["t"](e.value)?e.value[0]=r:e.value=r}function zF(e,t){var r=Ml(t.get("color")),a=Ml(t.get(["aria","decal","decals"]));if(r){var n,i;e=e||[],Ia["k"](e,(function(e){var t=new Hh(e),r=t.get("color"),a=t.get("decal");(t.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(t.get(["itemStyle","decal"])||a&&"none"!==a)&&(i=!0)}));var o=e[0]||(e[0]={});return n||(o.color=r.slice()),!i&&a&&(o.decal=a.slice()),e}}var GF=$F,UF=8,WF=8,HF=5,qF=function(){function e(e){this.group=new Gs,e.add(this.group)}return e.prototype.render=function(e,t,r,a){var n=e.getModel("breadcrumb"),i=this.group;if(i.removeAll(),n.get("show")&&r){var o=n.getModel("itemStyle"),s=n.getModel("emphasis"),l=o.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,u,l),this._renderContent(e,u,o,s,l,c,a),sm(i,u.pos,u.box)}},e.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var n=Ul(a.getModel().get("name"),""),i=r.getTextRect(n),o=Math.max(i.width+2*UF,t.emptyItemWidth);t.totalWidth+=o+WF,t.renderList.push({node:a,text:n,width:o})}},e.prototype._renderContent=function(e,t,r,a,n,i,o){for(var s=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=im(t.pos,t.box),d=t.totalWidth,p=t.renderList,h=a.getModel("itemStyle").getItemStyle(),f=p.length-1;f>=0;f--){var m=p[f],g=m.node,v=m.width,y=m.text;d>u.width&&(d-=v-l,v=l,y=null);var b=new Yb({shape:{points:YF(s,0,v,c,f===p.length-1,0===f)},style:Object(Ia["i"])(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Wd({style:wh(n,{text:y})}),textConfig:{position:"inside"},z2:1e4*ap,onclick:Object(Ia["h"])(o,g)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=wh(i,{text:y}),b.ensureState("emphasis").style=h,Yp(b,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(b),XF(b,e,g),s+=v+WF}},e.prototype.remove=function(){this.group.removeAll()},e}();function YF(e,t,r,a,n,i){var o=[[n?e:e-HF,t],[e+r,t],[e+r,t+a],[n?e:e-HF,t+a]];return!i&&o.splice(2,0,[e+r+HF,t+a/2]),!n&&o.push([e,t+a/2]),o}function XF(e,t,r){Hd(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&IF(r,t)}}var KF=qF,ZF=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,r,a,n){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:n}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,n=this._storage.length;atj||Math.abs(e.dy)>tj)){var t=this.seriesModel.getData().tree.root;if(!t)return;var r=t.getLayout();if(!r)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x+e.dx,y:r.y+e.dy,width:r.width,height:r.height}})}},t.prototype._onZoom=function(e){var t=e.originX,r=e.originY,a=e.scale;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;var o=new Yn(i.x,i.y,i.width,i.height),s=null,l=this._controllerHost;s=l.zoomLimit;var c=l.zoom=l.zoom||1;if(c*=a,s){var u=s.min||0,d=s.max||1/0;c=Math.max(Math.min(d,c),u)}var p=c/l.zoom;l.zoom=c;var h=this.seriesModel.layoutInfo;t-=h.x,r-=h.y;var f=On();kn(f,f,[-t,-r]),En(f,f,[p,p]),kn(f,f,[t,r]),o.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var r=t.seriesModel.get("nodeClick",!0);if(r){var a=t.findTarget(e.offsetX,e.offsetY);if(a){var n=a.node;if(n.getLayout().isLeafRoot)t._rootToNode(a);else if("zoomToNode"===r)t._zoomToNode(a);else if("link"===r){var i=n.hostTree.data.getItemModel(n.dataIndex),o=i.get("link",!0),s=i.get("target",!0)||"blank";o&&Qf(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,r){var a=this;r||(r=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),r||(r={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new KF(this.group))).render(e,t,r.node,(function(t){"animating"!==a._state&&(TF(e.getViewRoot(),t)?a._rootToNode({node:t}):a._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dj(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var r,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},(function(a){var n=this._storage.background[a.getRawIndex()];if(n){var i=n.transformCoordToLocal(e,t),o=n.shape;if(!(o.x<=i[0]&&i[0]<=o.x+o.width&&o.y<=i[1]&&i[1]<=o.y+o.height))return!1;r={node:a,offsetX:i[0],offsetY:i[1]}}}),this),r},t.type="treemap",t}(hx);function dj(){return{nodeGroup:[],background:[],content:[]}}function pj(e,t,r,a,n,i,o,s,l,c){if(o){var u=o.getLayout(),d=e.getData(),p=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),u&&u.isInView){var h=u.width,f=u.height,m=u.borderWidth,g=u.invisible,v=o.getRawIndex(),y=s&&s.getRawIndex(),b=o.viewChildren,_=u.upperHeight,x=b&&b.length,w=p.getModel("itemStyle"),D=p.getModel(["emphasis","itemStyle"]),S=p.getModel(["blur","itemStyle"]),C=p.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,I=B("nodeGroup",QF);if(I){if(l.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),cj(I).nodeWidth=h,cj(I).nodeHeight=f,u.isAboveViewRoot)return I;var O=B("background",ej,c,ij);O&&R(I,O,x&&u.upperLabelHeight);var A=p.getModel("emphasis"),M=A.get("focus"),P=A.get("blurScope"),k=A.get("disabled"),N="ancestor"===M?o.getAncestorsIndices():"descendant"===M?o.getDescendantIndices():M;if(x)eh(I)&&Qp(I,!1),O&&(Qp(O,!k),d.setItemGraphicEl(o.dataIndex,O),Xp(O,N,P));else{var E=B("content",ej,c,oj);E&&F(I,E),O.disableMorphing=!0,O&&eh(O)&&Qp(O,!1),Qp(I,!k),d.setItemGraphicEl(o.dataIndex,I);var L=p.getShallow("cursor");L&&E.attr("cursor",L),Xp(I,N,P)}return I}}}function R(t,r,a){var n=Hd(r);if(n.dataIndex=o.dataIndex,n.seriesIndex=e.seriesIndex,r.setShape({x:0,y:0,width:h,height:f,r:T}),g)j(r);else{r.invisible=!1;var i=o.getVisual("style"),s=i.stroke,l=lj(w);l.fill=s;var c=sj(D);c.fill=D.get("borderColor");var u=sj(S);u.fill=S.get("borderColor");var d=sj(C);if(d.fill=C.get("borderColor"),a){var p=h-2*m;V(r,s,i.opacity,{x:m,y:0,width:p,height:_})}else r.removeTextContent();r.setStyle(l),r.ensureState("emphasis").style=c,r.ensureState("blur").style=u,r.ensureState("select").style=d,Tp(r)}t.add(r)}function F(t,r){var a=Hd(r);a.dataIndex=o.dataIndex,a.seriesIndex=e.seriesIndex;var n=Math.max(h-2*m,0),i=Math.max(f-2*m,0);if(r.culling=!0,r.setShape({x:m,y:m,width:n,height:i,r:T}),g)j(r);else{r.invisible=!1;var s=o.getVisual("style"),l=s.fill,c=lj(w);c.fill=l,c.decal=s.decal;var u=sj(D),d=sj(S),p=sj(C);V(r,l,s.opacity,null),r.setStyle(c),r.ensureState("emphasis").style=u,r.ensureState("blur").style=d,r.ensureState("select").style=p,Tp(r)}t.add(r)}function j(e){!e.invisible&&i.push(e)}function V(t,r,a,n){var i=p.getModel(n?aj:rj),s=Ul(p.get("name"),null),l=i.getShallow("show");_h(t,xh(p,n?aj:rj),{defaultText:l?s:null,inheritColor:r,defaultOpacity:a,labelFetcher:e,labelDataIndex:o.dataIndex});var c=t.getTextContent();if(c){var d=c.style,h=Object(Ia["M"])(d.padding||0);n&&(t.setTextConfig({layoutRect:n}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((n?n.width:t.shape.width)-h[1]-h[3],0),r=Math.max((n?n.height:t.shape.height)-h[0]-h[2],0);d.width===e&&d.height===r||c.setStyle({width:e,height:r})},d.truncateMinChar=2,d.lineOverflow="truncate",$(d,n,u);var f=c.getState("emphasis");$(f?f.style:null,n,u)}}function $(t,r,a){var n=t?t.text:null;if(!r&&a.isLeafRoot&&null!=n){var i=e.get("drillDownIcon",!0);t.text=i?i+" "+n:n}}function B(e,a,i,o){var s=null!=y&&r[e][y],l=n[e];return s?(r[e][y]=null,z(l,s)):g||(s=new a,s instanceof au&&(s.z2=hj(i,o)),G(l,s)),t[e][v]=s}function z(e,t){var r=e[v]={};t instanceof QF?(r.oldX=t.x,r.oldY=t.y):r.oldShape=Object(Ia["m"])({},t.shape)}function G(e,t){var r=e[v]={},i=o.parentNode,s=t instanceof Gs;if(i&&(!a||"drillDown"===a.direction)){var l=0,c=0,u=n.background[i.getRawIndex()];!a&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(r.oldX=0,r.oldY=c):r.oldShape={x:l,y:c,width:0,height:0}}r.fadein=!s}}function hj(e,t){return e*nj+t}var fj=uj,mj=Ia["k"],gj=Ia["A"],vj=-1,yj=function(){function e(t){var r=t.mappingMethod,a=t.type,n=this.option=Ia["d"](t);this.type=a,this.mappingMethod=r,this._normalizeData=Mj[r];var i=e.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],"piecewise"===r?(xj(n),bj(n)):"category"===r?n.categories?_j(n):xj(n,!0):(Ia["b"]("linear"!==r||n.dataExtent),xj(n))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return Ia["c"](this._normalizeData,this)},e.listVisualTypes=function(){return Ia["F"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,r){Ia["A"](e)?Ia["k"](e,t,r):t.call(r,e)},e.mapVisual=function(t,r,a){var n,i=Ia["t"](t)?[]:Ia["A"](t)?{}:(n=!0,null);return e.eachVisual(t,(function(e,t){var o=r.call(a,e,t);n?i=o:i[t]=o})),i},e.retrieveVisuals=function(t){var r,a={};return t&&mj(e.visualHandlers,(function(e,n){t.hasOwnProperty(n)&&(a[n]=t[n],r=!0)})),r?a:null},e.prepareVisualTypes=function(e){if(Ia["t"](e))e=e.slice();else{if(!gj(e))return[];var t=[];mj(e,(function(e,r){t.push(r)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,r){for(var a,n=1/0,i=0,o=t.length;i=0;i--)null==a[i]&&(delete r[t[i]],t.pop())}function xj(e,t){var r=e.visual,a=[];Ia["A"](r)?mj(r,(function(e){a.push(e)})):null!=r&&a.push(r);var n={color:1,symbol:1};t||1!==a.length||n.hasOwnProperty(e.type)||(a[1]=a[0]),Aj(e,a)}function wj(e){return{applyVisual:function(t,r,a){var n=this.mapValueToVisual(t);a("color",e(r("color"),n))},_normalizedToVisual:Ij([0,1])}}function Dj(e){var t=this.option.visual;return t[Math.round(al(e,[0,1],[0,t.length-1],!0))]||{}}function Sj(e){return function(t,r,a){a(e,this.mapValueToVisual(t))}}function Cj(e){var t=this.option.visual;return t[this.option.loop&&e!==vj?e%t.length:e]}function Tj(){return this.option.visual[0]}function Ij(e){return{linear:function(t){return al(t,e,this.option.visual,!0)},category:Cj,piecewise:function(t,r){var a=Oj.call(this,r);return null==a&&(a=al(t,e,this.option.visual,!0)),a},fixed:Tj}}function Oj(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var a=yj.findPieceIndex(e,r),n=r[a];if(n&&n.visual)return n.visual[this.type]}}function Aj(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=Ia["H"](t,(function(e){var t=no["h"](e);return t||[0,0,0,1]}))),t}var Mj={linear:function(e){return al(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=yj.findPieceIndex(e,t,!0);if(null!=r)return al(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?vj:t},fixed:Ia["L"]};function Pj(e,t,r){return e?t<=r:t=r.length||e===r[e.depth]){var i=Gj(n,c,e,t,f,a);Rj(e,i,r,a)}}))}else s=jj(c),u.fill=s}}function Fj(e,t,r){var a=Object(Ia["m"])({},t),n=r.designatedVisualItemStyle;return Object(Ia["k"])(["color","colorAlpha","colorSaturation"],(function(r){n[r]=t[r];var i=e.get(r);n[r]=null,null!=i&&(a[r]=i)})),a}function jj(e){var t=$j(e,"color");if(t){var r=$j(e,"colorAlpha"),a=$j(e,"colorSaturation");return a&&(t=Object(no["g"])(t,null,null,a)),r&&(t=Object(no["f"])(t,r)),t}}function Vj(e,t){return null!=t?Object(no["g"])(t,null,null,e):null}function $j(e,t){var r=e[t];if(null!=r&&"none"!==r)return r}function Bj(e,t,r,a,n,i){if(i&&i.length){var o=zj(t,"color")||null!=n.color&&"none"!==n.color&&(zj(t,"colorAlpha")||zj(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),c=r.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var u=t.get("colorMappingBy"),d={type:o.name,dataExtent:c,visual:o.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new kj(d);return Ej(p).drColorMappingBy=u,p}}}function zj(e,t){var r=e.get(t);return Object(Ia["t"])(r)&&r.length?{name:t,range:r}:null}function Gj(e,t,r,a,n,i){var o=Object(Ia["m"])({},t);if(n){var s=n.type,l="color"===s&&Ej(n).drColorMappingBy,c="index"===l?a:"id"===l?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=n.mapValueToVisual(c)}return o}var Uj=Math.max,Wj=Math.min,Hj=Ia["O"],qj=Ia["k"],Yj=["itemStyle","borderWidth"],Xj=["itemStyle","gapWidth"],Kj=["upperLabel","show"],Zj=["upperLabel","height"],Jj={seriesType:"treemap",reset:function(e,t,r,a){var n=r.getWidth(),i=r.getHeight(),o=e.option,s=om(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],c=nl(Hj(s.width,l[0]),n),u=nl(Hj(s.height,l[1]),i),d=a&&a.type,p=["treemapZoomToNode","treemapRootToNode"],h=SF(a,p,e),f="treemapRender"===d||"treemapMove"===d?a.rootRect:null,m=e.getViewRoot(),g=CF(m);if("treemapMove"!==d){var v="treemapZoomToNode"===d?oV(e,h,m,c,u):f?[f.width,f.height]:[c,u],y=o.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var b={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};m.setLayout(_),Qj(m,b,!1,0),_=m.getLayout(),qj(g,(function(e,t){var r=(g[t+1]||m).getValue();e.setLayout(Ia["m"]({dataExtent:[r,r],borderWidth:0,upperHeight:0},_))}))}var x=e.getData().tree.root;x.setLayout(sV(s,f,h),!0),e.setLayoutInfo(s),lV(x,new Yn(-s.x,-s.y,n,i),g,m,0)}};function Qj(e,t,r,a){var n,i;if(!e.isRemoved()){var o=e.getLayout();n=o.width,i=o.height;var s=e.getModel(),l=s.get(Yj),c=s.get(Xj)/2,u=cV(s),d=Math.max(l,u),p=l-c,h=d-c;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),n=Uj(n-2*p,0),i=Uj(i-p-h,0);var f=n*i,m=eV(e,s,f,t,r,a);if(m.length){var g={x:p,y:h,width:n,height:i},v=Wj(n,i),y=1/0,b=[];b.area=0;for(var _=0,x=m.length;_=0;l--){var c=n["asc"===a?o-l-1:l].getValue();c/r*to[1]&&(o[1]=t)}))):o=[NaN,NaN],{sum:a,dataExtent:o}}function nV(e,t,r){for(var a=0,n=1/0,i=0,o=void 0,s=e.length;ia&&(a=o));var l=e.area*e.area,c=t*t*r;return l?Uj(c*a/l,l/(c*n)):1/0}function iV(e,t,r,a,n){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],c=r[s[i]],u=t?e.area/t:0;(n||u>r[l[o]])&&(u=r[l[o]]);for(var d=0,p=e.length;dpl&&(c=pl),o=i}ca&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(y[0]=-y[0],y[1]=-y[1]);var _=v[0]<0?-1:1;if("start"!==a.__position&&"end"!==a.__position){var x=-Math.atan2(v[1],v[0]);c[0].8?"left":u[0]<-.8?"right":"center",p=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":a.x=-u[0]*f+l[0],a.y=-u[1]*m+l[1],d=u[0]>.8?"right":u[0]<-.8?"left":"center",p=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=f*_+l[0],a.y=l[1]+w,d=v[0]<0?"right":"left",a.originX=-f*_,a.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+w,d="center",a.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-f*_+c[0],a.y=c[1]+w,d=v[0]>=0?"right":"left",a.originX=f*_,a.originY=-w;break}a.scaleX=a.scaleY=n,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}}}function D(e,t){var r=e.__specifiedRotation;if(null==r){var a=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(a[1],a[0]))}else e.attr("rotation",r)}},t}(Gs),t$=e$,r$=function(){function e(e){this.group=new Gs,this._LineCtor=e||t$}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,n=r._lineData;r._lineData=e,n||a.removeAll();var i=n$(e);e.diff(n).add((function(r){t._doAdd(e,r,i)})).update((function(r,a){t._doUpdate(n,e,a,r,i)})).remove((function(e){a.remove(n.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,r){t.updateLayout(e,r)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=n$(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function r(e){e.isGroup||a$(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var a=e.start;a0}function n$(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:xh(t)}}function i$(e){return isNaN(e[0])||isNaN(e[1])}function o$(e){return e&&!i$(e[0])&&!i$(e[1])}var s$=r$,l$=[],c$=[],u$=[],d$=qi,p$=za,h$=Math.abs;function f$(e,t,r){for(var a,n=e[0],i=e[1],o=e[2],s=1/0,l=r*r,c=.1,u=.1;u<=.9;u+=.1){l$[0]=d$(n[0],i[0],o[0],u),l$[1]=d$(n[1],i[1],o[1],u);var d=h$(p$(l$,t)-l);d=0?a+=c:a-=c:f>=0?a-=c:a+=c}return a}function m$(e,t){var r=[],a=Zi,n=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Ma(l[0]),Ma(l[1])],l[2]&&l.__original.push(Ma(l[2])));var d=l.__original;if(null!=l[2]){if(Aa(n[0],d[0]),Aa(n[1],d[2]),Aa(n[2],d[1]),c&&"none"!==c){var p=MV(e.node1),h=f$(n,d[0],p*t);a(n[0][0],n[1][0],n[2][0],h,r),n[0][0]=r[3],n[1][0]=r[4],a(n[0][1],n[1][1],n[2][1],h,r),n[0][1]=r[3],n[1][1]=r[4]}if(u&&"none"!==u){p=MV(e.node2),h=f$(n,d[1],p*t);a(n[0][0],n[1][0],n[2][0],h,r),n[1][0]=r[1],n[2][0]=r[2],a(n[0][1],n[1][1],n[2][1],h,r),n[1][1]=r[1],n[2][1]=r[2]}Aa(l[0],n[0]),Aa(l[1],n[2]),Aa(l[2],n[1])}else{if(Aa(i[0],d[0]),Aa(i[1],d[1]),Ea(o,i[1],i[0]),ja(o,o),c&&"none"!==c){p=MV(e.node1);Na(i[0],i[0],o,p*t)}if(u&&"none"!==u){p=MV(e.node2);Na(i[1],i[1],o,-p*t)}Aa(l[0],i[0]),Aa(l[1],i[1])}}))}function g$(e){return"view"===e.type}var v$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(e,t){var r=new UO,a=new s$,n=this.group;this._controller=new EE(t.getZr()),this._controllerHost={target:n},n.add(r.group),n.add(a.group),this._symbolDraw=r,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(e,t,r){var a=this,n=e.coordinateSystem;this._model=e;var i=this._symbolDraw,o=this._lineDraw,s=this.group;if(g$(n)){var l={x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY};this._firstRender?s.attr(l):ch(s,l,e)}m$(e.getGraph(),AV(e));var c=e.getData();i.updateData(c);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,r),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p);var h=e.get("layout");c.graph.eachNode((function(t){var r=t.dataIndex,n=t.getGraphicEl(),i=t.getModel();if(n){n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",(function(i){switch(h){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,p),d.setFixed(r),c.setItemLayout(r,[n.x,n.y]);break;case"circular":c.setItemLayout(r,[n.x,n.y]),t.setLayout({fixed:!0},!0),NV(e,"symbolSize",t,[i.offsetX,i.offsetY]),a.updateLayout(e);break;case"none":default:c.setItemLayout(r,[n.x,n.y]),IV(e.getGraph(),e),a.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(r)})),n.setDraggable(o,!!i.get("cursor"));var s=i.get(["emphasis","focus"]);"adjacency"===s&&(Hd(n).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),r=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===r&&(Hd(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=c.getLayout("cx"),g=c.getLayout("cy");c.graph.eachNode((function(e){LV(e,f,m,g)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var r=this;(function a(){e.step((function(e){r.updateLayout(r._model),(r._layouting=!e)&&(t?r._layoutTimeout=setTimeout(a,16):a())}))})()},t.prototype._updateController=function(e,t,r){var a=this,n=this._controller,i=this._controllerHost,o=this.group;n.setPointerChecker((function(t,a,n){var i=o.getBoundingRect();return i.applyTransform(o.transform),i.contain(a,n)&&!VE(t,r,e)})),g$(e.coordinateSystem)?(n.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(t){LE(i,t.dx,t.dy),r.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){RE(i,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),a._updateNodeAndLinkScale(),m$(e.getGraph(),AV(e)),a._lineDraw.updateLayout(),r.updateLabelLayout()}))):n.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),r=AV(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(r)}))},t.prototype.updateLayout=function(e){m$(e.getGraph(),AV(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(hx),y$=v$;function b$(e){return"_EC_"+e}var _$=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var r=this._nodesMap;if(!r[b$(e)]){var a=new x$(e,t);return a.hostGraph=this,this.nodes.push(a),r[b$(e)]=a,a}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[b$(e)]},e.prototype.addEdge=function(e,t,r){var a=this._nodesMap,n=this._edgesMap;if(Ia["z"](e)&&(e=this.nodes[e]),Ia["z"](t)&&(t=this.nodes[t]),e instanceof x$||(e=a[b$(e)]),t instanceof x$||(t=a[b$(t)]),e&&t){var i=e.id+"-"+t.id,o=new w$(e,t,r);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),n[i]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof x$&&(e=e.id),t instanceof x$&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,n=0;n=0&&e.call(t,r[n],n)},e.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,n=0;n=0&&r[n].node1.dataIndex>=0&&r[n].node2.dataIndex>=0&&e.call(t,r[n],n)},e.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof x$||(t=this._nodesMap[b$(t)]),t){for(var n="out"===r?"outEdges":"in"===r?"inEdges":"edges",i=0;i=0&&r.node2.dataIndex>=0}));for(n=0,i=a.length;n=0&&this[e][t].setItemVisual(this.dataIndex,r,a)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,a){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,a)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Ia["K"](x$,D$("hostGraph","data")),Ia["K"](w$,D$("hostGraph","edgeData"));var S$=_$;function C$(e,t,r,a,n){for(var i=new S$(a),o=0;o "+p)),c++)}var h,f=r.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)h=kO(e,r);else{var m=hg.get(f),g=m&&m.dimensions||[];Ia["r"](g,"value")<0&&g.concat(["value"]);var v=mO(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;h=new fO(v,r),h.initData(e)}var y=new fO(["value"],r);return y.initData(l,s),n&&n(h,y),bF({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var T$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return Ca(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new ZM(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Pl(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var r=e.edges||e.links||[],a=e.data||e.nodes||[],n=this;if(a&&r){DV(this);var i=C$(a,r,this,!0,o);return Ia["k"](i.edges,(function(e){SV(e.node1,e.node2,this,e.dataIndex)}),this),i.data}function o(e,t){e.wrapMethod("getItemModel",(function(e){var t=n._categoriesModels,r=e.getShallow("category"),a=t[r];return a&&(a.parentModel=e.parentModel,e.parentModel=a),e}));var r=Hh.prototype.getModel;function a(e,t){var a=r.call(this,e,t);return a.resolveParentPath=i,a}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=i,e.getModel=a,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,r){if("edge"===r){var a=this.getData(),n=this.getDataParams(e,r),i=a.graph.getEdgeByIndex(e),o=a.getName(i.node1.dataIndex),s=a.getName(i.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),fy("nameValue",{name:l.join(" > "),value:n.value,noValue:null==n.value})}var c=My({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=Ia["H"](this.option.categories||[],(function(e){return null!=e.value?e:Ia["m"]({value:0},e)})),t=new fO(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Uy),I$=T$,O$={type:"graphRoam",event:"graphRoam",update:"none"};function A$(e){e.registerChartView(y$),e.registerSeriesModel(I$),e.registerProcessor(dV),e.registerVisual(pV),e.registerVisual(fV),e.registerLayout(OV),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,RV),e.registerLayout(VV),e.registerCoordinateSystem("graphView",{dimensions:bR.dimensions,create:BV}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ia["L"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ia["L"]),e.registerAction(O$,(function(e,t,r){t.eachComponent({mainType:"series",query:e},(function(t){var a=t.coordinateSystem,n=NR(a,e,void 0,r);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))}var M$=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),P$=function(e){function t(t){var r=e.call(this,t)||this;return r.type="pointer",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new M$},t.prototype.buildPath=function(e,t){var r=Math.cos,a=Math.sin,n=t.r,i=t.width,o=t.angle,s=t.x-r(o)*i*(i>=n/3?1:2),l=t.y-a(o)*i*(i>=n/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+r(o)*i,t.y+a(o)*i),e.lineTo(t.x+r(t.angle)*n,t.y+a(t.angle)*n),e.lineTo(t.x-r(o)*i,t.y-a(o)*i),e.lineTo(s,l)},t}(ud),k$=P$;function N$(e,t){var r=e.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=nl(r[0],t.getWidth()),s=nl(r[1],t.getHeight()),l=nl(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function E$(e,t){var r=null==e?"":e+"";return t&&(Object(Ia["C"])(t)?r=t.replace("{value}",r):Object(Ia["w"])(t)&&(r=t(e))),r}var L$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){this.group.removeAll();var a=e.get(["axisLine","lineStyle","color"]),n=N$(e,r);this._renderMain(e,t,r,a,n),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,r,a,n){var i=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),d=u?tM:$b,p=c.get("show"),h=c.getModel("lineStyle"),f=h.get("width"),m=[s,l];Ru(m,!o),s=m[0],l=m[1];for(var g=l-s,v=s,y=[],b=0;p&&b=e&&(0===t?0:a[t-1][0])Math.PI/2&&(j+=Math.PI)):"tangential"===F?j=-S-Math.PI/2:Object(Ia["z"])(F)&&(j=F*Math.PI/180),0===j?d.add(new Wd({style:wh(b,{text:N,x:L,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:E}),silent:!0})):d.add(new Wd({style:wh(b,{text:N,x:L,y:R,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:L,originY:R,rotation:j}))}if(y.get("show")&&M!==_){P=y.get("distance");P=P?P+l:l;for(var V=0;V<=x;V++){c=Math.cos(S),u=Math.sin(S);var $=new t_({shape:{x1:c*(f-P)+p,y1:u*(f-P)+h,x2:c*(f-D-P)+p,y2:u*(f-D-P)+h},silent:!0,style:O});"auto"===O.stroke&&$.setStyle({stroke:a((M+V/x)/_)}),d.add($),S+=T}S-=T}else S+=C}},t.prototype._renderPointer=function(e,t,r,a,n,i,o,s,l){var c=this.group,u=this._data,d=this._progressEls,p=[],h=e.get(["pointer","show"]),f=e.getModel("progress"),m=f.get("show"),g=e.getData(),v=g.mapDimension("value"),y=+e.get("min"),b=+e.get("max"),_=[y,b],x=[i,o];function w(t,r){var a,i=g.getItemModel(t),o=i.getModel("pointer"),s=nl(o.get("width"),n.r),l=nl(o.get("length"),n.r),c=e.get(["pointer","icon"]),u=o.get("offsetCenter"),d=nl(u[0],n.r),p=nl(u[1],n.r),h=o.get("keepAspect");return a=c?Tw(c,d-s/2,p-l,s,l,null,h):new k$({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:p}}),a.rotation=-(r+Math.PI/2),a.x=n.cx,a.y=n.cy,a}function D(e,t){var r=f.get("roundCap"),a=r?tM:$b,o=f.get("overlap"),c=o?f.get("width"):l/g.count(),u=o?n.r-c:n.r-(e+1)*c,d=o?n.r:n.r-e*c,p=new a({shape:{startAngle:i,endAngle:t,cx:n.cx,cy:n.cy,clockwise:s,r0:u,r:d}});return o&&(p.z2=al(g.get(v,e),[y,b],[100,0],!0)),p}(m||h)&&(g.diff(u).add((function(t){var r=g.get(v,t);if(h){var a=w(t,i);uh(a,{rotation:-((isNaN(+r)?x[0]:al(r,_,x,!0))+Math.PI/2)},e),c.add(a),g.setItemGraphicEl(t,a)}if(m){var n=D(t,i),o=f.get("clip");uh(n,{shape:{endAngle:al(r,_,x,o)}},e),c.add(n),qd(e.seriesIndex,g.dataType,t,n),p[t]=n}})).update((function(t,r){var a=g.get(v,t);if(h){var n=u.getItemGraphicEl(r),o=n?n.rotation:i,s=w(t,o);s.rotation=o,ch(s,{rotation:-((isNaN(+a)?x[0]:al(a,_,x,!0))+Math.PI/2)},e),c.add(s),g.setItemGraphicEl(t,s)}if(m){var l=d[r],y=l?l.shape.endAngle:i,b=D(t,y),S=f.get("clip");ch(b,{shape:{endAngle:al(a,_,x,S)}},e),c.add(b),qd(e.seriesIndex,g.dataType,t,b),p[t]=b}})).execute(),g.each((function(e){var t=g.getItemModel(e),r=t.getModel("emphasis"),n=r.get("focus"),i=r.get("blurScope"),o=r.get("disabled");if(h){var s=g.getItemGraphicEl(e),l=g.getItemVisual(e,"style"),c=l.fill;if(s instanceof yd){var u=s.style;s.useStyle(Object(Ia["m"])({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",a(al(g.get(v,e),_,[0,1],!0))),s.z2EmphasisLift=0,Jp(s,t),Yp(s,n,i,o)}if(m){var d=p[e];d.useStyle(g.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Jp(d,t),Yp(d,n,i,o)}})),this._progressEls=p)},t.prototype._renderAnchor=function(e,t){var r=e.getModel("anchor"),a=r.get("show");if(a){var n=r.get("size"),i=r.get("icon"),o=r.get("offsetCenter"),s=r.get("keepAspect"),l=Tw(i,t.cx-n/2+nl(o[0],t.r),t.cy-n/2+nl(o[1],t.r),n,n,null,s);l.z2=r.get("showAbove")?1:0,l.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,r,a,n){var i=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new Gs,d=[],p=[],h=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);o.diff(this._data).add((function(e){d[e]=new Wd({silent:!0}),p[e]=new Wd({silent:!0})})).update((function(e,t){d[e]=i._titleEls[t],p[e]=i._detailEls[t]})).execute(),o.each((function(t){var r=o.getItemModel(t),i=o.get(s,t),m=new Gs,g=a(al(i,[l,c],[0,1],!0)),v=r.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=n.cx+nl(y[0],n.r),_=n.cy+nl(y[1],n.r),x=d[t];x.attr({z2:f?0:2,style:wh(v,{x:b,y:_,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),m.add(x)}var w=r.getModel("detail");if(w.get("show")){var D=w.get("offsetCenter"),S=n.cx+nl(D[0],n.r),C=n.cy+nl(D[1],n.r),T=nl(w.get("width"),n.r),I=nl(w.get("height"),n.r),O=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:g,A=(x=p[t],w.get("formatter"));x.attr({z2:f?0:2,style:wh(w,{x:S,y:C,text:E$(i,A),width:isNaN(T)?null:T,height:isNaN(I)?null:I,align:"center",verticalAlign:"middle"},{inheritColor:O})}),kh(x,{normal:w},i,(function(e){return E$(e,A)})),h&&Nh(x,t,o,e,{getFormattedLabel:function(e,t,r,a,n,o){return E$(o?o.interpolatedValue:i,A)}}),m.add(x)}u.add(m)})),this.group.add(u),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(hx),R$=L$,F$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return Ca(t,e),t.prototype.getInitialData=function(e,t){return XM(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Uy),j$=F$;function V$(e){e.registerChartView(R$),e.registerSeriesModel(j$)}var $$=["itemStyle","opacity"],B$=function(e){function t(t,r){var a=e.call(this)||this,n=a,i=new Zb,o=new Wd;return n.setTextContent(o),a.setTextGuideLine(i),a.updateData(t,r,!0),a}return Ca(t,e),t.prototype.updateData=function(e,t,r){var a=this,n=e.hostModel,i=e.getItemModel(t),o=e.getItemLayout(t),s=i.getModel("emphasis"),l=i.get($$);l=null==l?1:l,r||mh(a),a.useStyle(e.getItemVisual(t,"style")),a.style.lineJoin="round",r?(a.setShape({points:o.points}),a.style.opacity=0,uh(a,{style:{opacity:l}},n,t)):ch(a,{style:{opacity:l},shape:{points:o.points}},n,t),Jp(a,i),this._updateLabel(e,t),Yp(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var r=this,a=this.getTextGuideLine(),n=r.getTextContent(),i=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;_h(n,xh(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),r.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var d=l.linePoints;a.setShape({points:d}),r.textGuideLineConfig={anchor:d?new jn(d[0][0],d[0][1]):null},ch(n,{style:{x:l.x,y:l.y}},i,t),n.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),SC(r,CC(o),{stroke:u})},t}(Yb),z$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=e.getData(),n=this._data,i=this.group;a.diff(n).add((function(e){var t=new B$(a,e);a.setItemGraphicEl(e,t),i.add(t)})).update((function(e,t){var r=n.getItemGraphicEl(t);r.updateData(a,e),i.add(r),a.setItemGraphicEl(e,r)})).remove((function(t){var r=n.getItemGraphicEl(t);fh(r,e,t)})).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(hx),G$=z$,U$=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ZM(Ia["c"](this.getData,this),Ia["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return XM(this,{coordDimensions:["value"],encodeDefaulter:Ia["h"](Nm,this)})},t.prototype._defaultLabelLine=function(e){Pl(e,"labelLine",["show"]);var t=e.labelLine,r=e.emphasis.labelLine;t.show=t.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var r=this.getData(),a=e.prototype.getDataParams.call(this,t),n=r.mapDimension("value"),i=r.getSum(n);return a.percent=i?+(r.get(n,t)/i*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Uy),W$=U$;function H$(e,t){return om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function q$(e,t){for(var r=e.mapDimension("value"),a=e.mapArray(r,(function(e){return e})),n=[],i="ascending"===t,o=0,s=e.count();ogB)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&bB(this,"mousemove")){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),a=r.behavior;"jump"===a&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===a?null:{axisExpandWindow:r.axisExpandWindow,animation:"jump"===a?null:{duration:0}})}}};function bB(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var _B=vB,xB=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&Ia["I"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var r=e.get("parallelIndex");return null!=r&&t.getComponent("parallel",r)===this},t.prototype.setAxisExpand=function(e){Ia["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],r=Ia["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);Ia["k"](r,(function(r){e.push("dim"+r.get("dim")),t.push(r.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(gm),wB=xB,DB=function(e){function t(t,r,a,n,i){var o=e.call(this,t,r,a)||this;return o.type=n||"value",o.axisIndex=i,o}return Ca(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(nN),SB=DB;function CB(e,t,r,a,n,i){e=e||0;var o=r[1]-r[0];if(null!=n&&(n=IB(n,[0,o])),null!=i&&(i=Math.max(i,null!=n?n:0)),"all"===a){var s=Math.abs(t[1]-t[0]);s=IB(s,[0,o]),n=i=IB(s,[n,i]),a=0}t[0]=IB(t[0],r),t[1]=IB(t[1],r);var l=TB(t,a);t[a]+=e;var c,u=n||0,d=r.slice();return l.sign<0?d[0]+=u:d[1]-=u,t[a]=IB(t[a],d),c=TB(t,a),null!=n&&(c.sign!==l.sign||c.spani&&(t[1-a]=t[a]+c.sign*i),t}function TB(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function IB(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var OB=Ia["k"],AB=Math.min,MB=Math.max,PB=Math.floor,kB=Math.ceil,NB=il,EB=Math.PI,LB=function(){function e(e,t,r){this.type="parallel",this._axesMap=Ia["f"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return e.prototype._init=function(e,t,r){var a=e.dimensions,n=e.parallelAxisIndex;OB(a,(function(e,r){var a=n[r],i=t.getComponent("parallelAxis",a),o=this._axesMap.set(e,new SB(e,wk(i),[0,0],i.get("type"),a)),s="category"===o.type;o.onBand=s&&i.get("boundaryGap"),o.inverse=i.get("inverse"),i.axis=o,o.model=i,o.coordinateSystem=i.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,n=t.pixelDimIndex,i=e[1-n],o=e[n];return i>=r&&i<=r+t.axisLength&&o>=a&&o<=a+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(r){if(e.contains(r,t)){var a=r.getData();OB(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(a,a.mapDimension(e)),xk(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,r=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o="horizontal"===i?0:1,s=r[n[o]],l=[0,s],c=this.dimensions.length,u=RB(t.get("axisExpandWidth"),l),d=RB(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,h=t.get("axisExpandWindow");if(h)e=RB(h[1]-h[0],l),h[1]=h[0]+e;else{e=RB(u*(d-1),l);var f=t.get("axisExpandCenter")||PB(c/2);h=[u*f-e/2],h[1]=h[0]+e}var m=(s-e)/(c-d);m<3&&(m=0);var g=[PB(NB(h[0]/u,1))+1,kB(NB(h[1]/u,1))-1],v=m/u*h[0];return{layout:i,pixelDimIndex:o,layoutBase:r[a[o]],layoutLength:s,axisBase:r[a[1-o]],axisLength:r[n[1-o]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:m,axisExpandWindow:h,axisCount:c,winInnerIndices:g,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;t.each((function(e){var t=[0,a.axisLength],r=e.inverse?1:0;e.setExtent(t[r],t[1-r])})),OB(r,(function(t,r){var i=(a.axisExpandable?jB:FB)(r,a),o={horizontal:{x:i.position,y:a.axisLength},vertical:{x:0,y:i.position}},s={horizontal:EB/2,vertical:0},l=[o[n].x+e.x,o[n].y+e.y],c=s[n],u=On();Nn(u,u,c),kn(u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:i.axisNameAvailableWidth,axisLabelShow:i.axisLabelShow,nameTruncateMaxWidth:i.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,r,a){null==r&&(r=0),null==a&&(a=e.count());var n=this._axesMap,i=this.dimensions,o=[],s=[];Ia["k"](i,(function(t){o.push(e.mapDimension(t)),s.push(n.get(t).model)}));for(var l=this.hasAxisBrushed(),c=r;cn*(1-u[0])?(l="jump",o=s-n*(1-u[2])):(o=s-n*u[1])>=0&&(o=s-n*(1-u[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?CB(o,a,i,"all"):l="none";else{var p=a[1]-a[0],h=i[1]*s/p;a=[MB(0,h-p/2)],a[1]=AB(i[1],a[0]+p),a[0]=a[1]-p}return{axisExpandWindow:a,behavior:l}},e}();function RB(e,t){return AB(MB(e,t[0]),t[1])}function FB(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function jB(e,t){var r,a,n=t.layoutLength,i=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e=0;r--)ol(t[r])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var r=t[0];if(r[0]<=e&&e<=r[1])return"active"}else for(var a=0,n=t.length;aKB}function mz(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function gz(e,t,r,a){var n=new Gs;return n.add(new Id({name:"main",style:_z(r),silent:!0,draggable:!0,cursor:"move",drift:Object(Ia["h"])(Cz,e,t,n,["n","s","w","e"]),ondragend:Object(Ia["h"])(hz,t,{isEnd:!0})})),Object(Ia["k"])(a,(function(r){n.add(new Id({name:r.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(Ia["h"])(Cz,e,t,n,r),ondragend:Object(Ia["h"])(hz,t,{isEnd:!0})}))})),n}function vz(e,t,r,a){var n=a.brushStyle.lineWidth||0,i=qB(n,ZB),o=r[0][0],s=r[1][0],l=o-n/2,c=s-n/2,u=r[0][1],d=r[1][1],p=u-i+n/2,h=d-i+n/2,f=u-o,m=d-s,g=f+n,v=m+n;bz(e,t,"main",o,s,f,m),a.transformable&&(bz(e,t,"w",l,c,i,v),bz(e,t,"e",p,c,i,v),bz(e,t,"n",l,c,g,i),bz(e,t,"s",l,h,g,i),bz(e,t,"nw",l,c,i,i),bz(e,t,"ne",p,c,i,i),bz(e,t,"sw",l,h,i,i),bz(e,t,"se",p,h,i,i))}function yz(e,t){var r=t.__brushOption,a=r.transformable,n=t.childAt(0);n.useStyle(_z(r)),n.attr({silent:!a,cursor:a?"move":"default"}),Object(Ia["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(r){var n=t.childOfName(r.join("")),i=1===r.length?Dz(e,r[0]):Sz(e,r);n&&n.attr({silent:!a,invisible:!a,cursor:a?ez[i]+"-resize":null})}))}function bz(e,t,r,a,n,i,o){var s=t.childOfName(r);s&&s.setShape(Az(Oz(e,t,[[a,n],[a+i,n+o]])))}function _z(e){return Object(Ia["i"])({strokeNoScale:!0},e.brushStyle)}function xz(e,t,r,a){var n=[HB(e,r),HB(t,a)],i=[qB(e,r),qB(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function wz(e){return G_(e.group)}function Dz(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=W_(r[t],wz(e));return a[n]}function Sz(e,t){var r=[Dz(e,t[0]),Dz(e,t[1])];return("e"===r[0]||"w"===r[0])&&r.reverse(),r.join("")}function Cz(e,t,r,a,n,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=Iz(t,n,i);Object(Ia["k"])(a,(function(e){var t=QB[e];s[t[0]][t[1]]+=l[t[0]]})),o.range=e.fromRectRange(xz(s[0][0],s[1][0],s[0][1],s[1][1])),lz(t,r),hz(t,{isEnd:!1})}function Tz(e,t,r,a){var n=t.__brushOption.range,i=Iz(e,r,a);Object(Ia["k"])(n,(function(e){e[0]+=i[0],e[1]+=i[1]})),lz(e,t),hz(e,{isEnd:!1})}function Iz(e,t,r){var a=e.group,n=a.transformCoordToLocal(t,r),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Oz(e,t,r){var a=dz(e,t);return a&&a!==WB?a.clipPath(r,e._transform):Object(Ia["d"])(r)}function Az(e){var t=HB(e[0][0],e[1][0]),r=HB(e[0][1],e[1][1]),a=qB(e[0][0],e[1][0]),n=qB(e[0][1],e[1][1]);return{x:t,y:r,width:a-t,height:n-r}}function Mz(e,t,r){if(e._brushType&&!Fz(e,t.offsetX,t.offsetY)){var a=e._zr,n=e._covers,i=uz(e,t,r);if(!e._dragging)for(var o=0;oa.getWidth()||r<0||r>a.getHeight()}var jz={lineX:Vz(0),lineY:Vz(1),rect:{createCover:function(e,t){function r(e){return e}return gz({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=mz(e);return xz(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,a){vz(e,t,r,a)},updateCommon:yz,contain:kz},polygon:{createCover:function(e,t){var r=new Gs;return r.add(new Zb({name:"main",style:_z(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Yb({name:"main",draggable:!0,drift:Object(Ia["h"])(Tz,e,t),ondragend:Object(Ia["h"])(hz,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,a){t.childAt(0).setShape({points:Oz(e,t,r)})},updateCommon:yz,contain:kz}};function Vz(e){return{createCover:function(t,r){return gz({toRectRange:function(t){var r=[t,[0,100]];return e&&r.reverse(),r},fromRectRange:function(t){return t[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=mz(t),a=HB(r[0][e],r[1][e]),n=qB(r[0][e],r[1][e]);return[a,n]},updateCoverShape:function(t,r,a,n){var i,o=dz(t,r);if(o!==WB&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[a,i];e&&l.reverse(),vz(t,r,l,n)},updateCommon:yz,contain:kz}}var $z=az;function Bz(e){return e=Uz(e),function(t){return X_(t,e)}}function zz(e,t){return e=Uz(e),function(r){var a=null!=t?t:r,n=a?e.width:e.height,i=a?e.x:e.y;return[i,i+(n||0)]}}function Gz(e,t,r){var a=Uz(e);return function(e,n){return a.contain(n[0],n[1])&&!VE(e,t,r)}}function Uz(e){return Yn.create(e)}var Wz=["axisLine","axisTickLabel","axisName"],Hz=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(t,r){e.prototype.init.apply(this,arguments),(this._brushController=new $z(r.getZr())).on("brush",Ia["c"](this._onBrush,this))},t.prototype.render=function(e,t,r,a){if(!qz(e,t,a)){this.axisModel=e,this.api=r,this.group.removeAll();var n=this._axisGroup;if(this._axisGroup=new Gs,this.group.add(this._axisGroup),e.get("show")){var i=Xz(e,t),o=i.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=o.getAxisLayout(c),d=Ia["m"]({strokeContainThreshold:l},u),p=new MN(e,d);Ia["k"](Wz,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,s,e,i,l,r),Y_(n,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,r,a,n,i){var o=r.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),c=Yn.create({x:o[0],y:-n/2,width:s,height:n});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Bz(c),isTargetByCursor:Gz(c,i,a),getLinearBrushOtherExtent:zz(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Yz(r))},t.prototype._onBrush=function(e){var t=e.areas,r=this.axisModel,a=r.axis,n=Ia["H"](t,(function(e){return[a.coordToData(e.range[0],!0),a.coordToData(e.range[1],!0)]}));(!r.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:n})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Hy);function qz(e,t,r){return r&&"axisAreaSelect"===r.type&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function Yz(e){var t=e.axis;return Ia["H"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Xz(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Kz=Hz,Zz={type:"axisAreaSelect",event:"axisAreaSelected"};function Jz(e){e.registerAction(Zz,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var Qz={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function eG(e){e.registerComponentView(_B),e.registerComponentModel(wB),e.registerCoordinateSystem("parallel",zB),e.registerPreprocessor(hB),e.registerComponentModel(UB),e.registerComponentView(Kz),IP(e,"parallel",UB,Qz),Jz(e)}function tG(e){tC(eG),e.registerChartView(iB),e.registerSeriesModel(cB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,pB)}var rG=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),aG=function(e){function t(t){return e.call(this,t)||this}return Ca(t,e),t.prototype.getDefaultShape=function(){return new rG},t.prototype.buildPath=function(e,t){var r=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+r,t.y2),e.bezierCurveTo(t.cpx2+r,t.cpy2,t.cpx1+r,t.cpy1,t.x1+r,t.y1)):(e.lineTo(t.x2,t.y2+r),e.bezierCurveTo(t.cpx2,t.cpy2+r,t.cpx1,t.cpy1+r,t.x1,t.y1+r)),e.closePath()},t.prototype.highlight=function(){Ap(this)},t.prototype.downplay=function(){Mp(this)},t}(ud),nG=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=this,n=e.getGraph(),i=this.group,o=e.layoutInfo,s=o.width,l=o.height,c=e.getData(),u=e.getData("edge"),d=e.get("orient");this._model=e,i.removeAll(),i.x=o.x,i.y=o.y,n.eachEdge((function(t){var r=new aG,a=Hd(r);a.dataIndex=t.dataIndex,a.seriesIndex=e.seriesIndex,a.dataType="edge";var n,o,c,p,h,f,m,g,v=t.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),_=t.node1.getLayout(),x=t.node1.getModel(),w=x.get("localX"),D=x.get("localY"),S=t.node2.getLayout(),C=t.node2.getModel(),T=C.get("localX"),I=C.get("localY"),O=t.getLayout();r.shape.extent=Math.max(1,O.dy),r.shape.orient=d,"vertical"===d?(n=(null!=w?w*s:_.x)+O.sy,o=(null!=D?D*l:_.y)+_.dy,c=(null!=T?T*s:S.x)+O.ty,p=null!=I?I*l:S.y,h=n,f=o*(1-b)+p*b,m=c,g=o*b+p*(1-b)):(n=(null!=w?w*s:_.x)+_.dx,o=(null!=D?D*l:_.y)+O.sy,c=null!=T?T*s:S.x,p=(null!=I?I*l:S.y)+O.ty,h=n*(1-b)+c*b,f=o,m=n*b+c*(1-b),g=p),r.setShape({x1:n,y1:o,x2:c,y2:p,cpx1:h,cpy1:f,cpx2:m,cpy2:g}),r.useStyle(y.getItemStyle()),iG(r.style,d,t);var A=""+v.get("value"),M=xh(v,"edgeLabel");_h(r,M,{labelFetcher:{getFormattedLabel:function(t,r,a,n,i,o){return e.getFormattedLabel(t,r,"edge",n,Object(Ia["Q"])(i,M.normal&&M.normal.get("formatter"),A),o)}},labelDataIndex:t.dataIndex,defaultText:A}),r.setTextConfig({position:"inside"});var P=v.getModel("emphasis");Jp(r,v,"lineStyle",(function(e){var r=e.getItemStyle();return iG(r,d,t),r})),i.add(r),u.setItemGraphicEl(t.dataIndex,r);var k=P.get("focus");Yp(r,"adjacency"===k?t.getAdjacentDataIndices():"trajectory"===k?t.getTrajectoryDataIndices():k,P.get("blurScope"),P.get("disabled"))})),n.eachNode((function(t){var r=t.getLayout(),a=t.getModel(),n=a.get("localX"),o=a.get("localY"),u=a.getModel("emphasis"),d=a.get(["itemStyle","borderRadius"])||0,p=new Id({shape:{x:null!=n?n*s:r.x,y:null!=o?o*l:r.y,width:r.dx,height:r.dy,r:d},style:a.getModel("itemStyle").getItemStyle(),z2:10});_h(p,xh(a),{labelFetcher:{getFormattedLabel:function(t,r){return e.getFormattedLabel(t,r,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),p.disableLabelAnimation=!0,p.setStyle("fill",t.getVisual("color")),p.setStyle("decal",t.getVisual("style").decal),Jp(p,a),i.add(p),c.setItemGraphicEl(t.dataIndex,p),Hd(p).dataType="node";var h=u.get("focus");Yp(p,"adjacency"===h?t.getAdjacentDataIndices():"trajectory"===h?t.getTrajectoryDataIndices():h,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,n){var i=c.getItemModel(n);i.get("draggable")&&(t.drift=function(t,i){a._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=i,this.dirty(),r.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){a._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&i.setClipPath(oG(i.getBoundingRect(),e,(function(){i.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(hx);function iG(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var a=r.node1.getVisual("color"),n=r.node2.getVisual("color");Object(Ia["C"])(a)&&Object(Ia["C"])(n)&&(e.fill=new m_(0,0,+("horizontal"===t),+("vertical"===t),[{color:a,offset:0},{color:n,offset:1}]))}}function oG(e,t,r){var a=new Id({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return uh(a,{shape:{width:e.width+20}},t,r),a}var sG=nG,lG=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){var r=e.edges||e.links||[],a=e.data||e.nodes||[],n=e.levels||[];this.levelModels=[];for(var i=this.levelModels,o=0;o=0&&(i[n[o].depth]=new Hh(n[o],this,t));var s=C$(a,r,this,!0,l);return s.data;function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var r=e.parentModel,a=r.getData().getItemLayout(t);if(a){var n=a.depth,i=r.levelModels[n];i&&(e.parentModel=i)}return e})),t.wrapMethod("getItemModel",(function(e,t){var r=e.parentModel,a=r.getGraph().getEdgeByIndex(t),n=a.node1.getLayout();if(n){var i=n.depth,o=r.levelModels[i];o&&(e.parentModel=o)}return e}))}},t.prototype.setNodePosition=function(e,t){var r=this.option.data||this.option.nodes,a=r[e];a.localX=t[0],a.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,r){function a(e){return isNaN(e)||null==e}if("edge"===r){var n=this.getDataParams(e,r),i=n.data,o=n.value,s=i.source+" -- "+i.target;return fy("nameValue",{name:s,value:o,noValue:a(o)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,r).data.name;return fy("nameValue",{name:null!=u?u+"":null,value:c,noValue:a(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,r){var a=e.prototype.getDataParams.call(this,t,r);if(null==a.value&&"node"===r){var n=this.getGraph().getNodeByIndex(t),i=n.getLayout().value;a.value=i}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Uy),cG=lG;function uG(e,t){e.eachSeriesByType("sankey",(function(e){var r=e.get("nodeWidth"),a=e.get("nodeGap"),n=dG(e,t);e.layoutInfo=n;var i=n.width,o=n.height,s=e.getGraph(),l=s.nodes,c=s.edges;hG(l);var u=Ia["n"](l,(function(e){return 0===e.getLayout().value})),d=0!==u.length?0:e.get("layoutIterations"),p=e.get("orient"),h=e.get("nodeAlign");pG(l,c,r,a,i,o,d,p,h)}))}function dG(e,t){return om(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function pG(e,t,r,a,n,i,o,s,l){fG(e,t,r,n,i,s,l),bG(e,t,i,n,a,o,s),kG(e,s)}function hG(e){Ia["k"](e,(function(e){var t=MG(e.outEdges,AG),r=MG(e.inEdges,AG),a=e.getValue()||0,n=Math.max(t,r,a);e.setLayout({value:n},!0)}))}function fG(e,t,r,a,n,i,o){for(var s=[],l=[],c=[],u=[],d=0,p=0;p=0;v&&g.depth>h&&(h=g.depth),m.setLayout({depth:v?g.depth:d},!0),"vertical"===i?m.setLayout({dy:r},!0):m.setLayout({dx:r},!0);for(var y=0;yd-1?h:d-1;o&&"left"!==o&&gG(e,o,i,D);var S="vertical"===i?(n-r)/D:(a-r)/D;yG(e,S,i)}function mG(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function gG(e,t,r,a){if("right"===t){var n=[],i=e,o=0;while(i.length){for(var s=0;s0;i--)l*=.99,DG(s,l,o),wG(s,n,r,a,o),PG(s,l,o),wG(s,n,r,a,o)}function _G(e,t){var r=[],a="vertical"===t?"y":"x",n=lc(e,(function(e){return e.getLayout()[a]}));return n.keys.sort((function(e,t){return e-t})),Ia["k"](n.keys,(function(e){r.push(n.buckets.get(e))})),r}function xG(e,t,r,a,n,i){var o=1/0;Ia["k"](e,(function(e){var t=e.length,s=0;Ia["k"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===i?(a-(t-1)*n)/s:(r-(t-1)*n)/s;l0&&(o=s.getLayout()[i]+l,"vertical"===n?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[i]+s.getLayout()[d]+t;var h="vertical"===n?a:r;if(l=c-t-h,l>0){o=s.getLayout()[i]-l,"vertical"===n?s.setLayout({x:o},!0):s.setLayout({y:o},!0),c=o;for(p=u-2;p>=0;--p)s=e[p],l=s.getLayout()[i]+s.getLayout()[d]+t-c,l>0&&(o=s.getLayout()[i]-l,"vertical"===n?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[i]}}))}function DG(e,t,r){Ia["k"](e.slice().reverse(),(function(e){Ia["k"](e,(function(e){if(e.outEdges.length){var a=MG(e.outEdges,SG,r)/MG(e.outEdges,AG);if(isNaN(a)){var n=e.outEdges.length;a=n?MG(e.outEdges,CG,r)/n:0}if("vertical"===r){var i=e.getLayout().x+(a-OG(e,r))*t;e.setLayout({x:i},!0)}else{var o=e.getLayout().y+(a-OG(e,r))*t;e.setLayout({y:o},!0)}}}))}))}function SG(e,t){return OG(e.node2,t)*e.getValue()}function CG(e,t){return OG(e.node2,t)}function TG(e,t){return OG(e.node1,t)*e.getValue()}function IG(e,t){return OG(e.node1,t)}function OG(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function AG(e){return e.getValue()}function MG(e,t,r){var a=0,n=e.length,i=-1;while(++ii&&(i=t)})),Ia["k"](r,(function(t){var r=new kj({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:e.get("color")}),a=r.mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",a),t.setVisual("style",{fill:a}))}))}a.length&&Ia["k"](a,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function EG(e){e.registerChartView(sG),e.registerSeriesModel(cG),e.registerLayout(uG),e.registerVisual(NG),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var LG=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},e.prototype.getInitialData=function(e,t){var r,a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type");"category"===o?(e.layout="horizontal",r=n.getOrdinalMeta(),a=!this._hasEncodeRule("x")):"category"===s?(e.layout="vertical",r=i.getOrdinalMeta(),a=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],d=l[1-c],p=[n,i],h=p[c].get("type"),f=p[1-c].get("type"),m=e.data;if(m&&a){var g=[];Ia["k"](m,(function(e,t){var r;Ia["t"](e)?(r=e.slice(),e.unshift(t)):Ia["t"](e.value)?(r=Ia["m"]({},e),r.value=r.value.slice(),e.value.unshift(t)):r=e,g.push(r)})),e.data=g}var v=this.defaultValueDimensions,y=[{name:u,type:zI(h),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:zI(f),dimsDef:v.slice()}];return XM(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:Ia["h"](km,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),RG=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return Ca(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Uy);Object(Ia["K"])(RG,LG,!0);var FG=RG,jG=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=e.getData(),n=this.group,i=this._data;this._data||n.removeAll();var o="horizontal"===e.get("layout")?1:0;a.diff(i).add((function(e){if(a.hasValue(e)){var t=a.getItemLayout(e),r=BG(t,a,e,o,!0);a.setItemGraphicEl(e,r),n.add(r)}})).update((function(e,t){var r=i.getItemGraphicEl(t);if(a.hasValue(e)){var s=a.getItemLayout(e);r?(mh(r),zG(s,r,a,e)):r=BG(s,a,e,o),n.add(r),a.setItemGraphicEl(e,r)}else n.remove(r)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&n.remove(t)})).execute(),this._data=a},t.prototype.remove=function(e){var t=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(hx),VG=function(){function e(){}return e}(),$G=function(e){function t(t){var r=e.call(this,t)||this;return r.type="boxplotBoxPath",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new VG},t.prototype.buildPath=function(e,t){var r=t.points,a=0;for(e.moveTo(r[a][0],r[a][1]),a++;a<4;a++)e.lineTo(r[a][0],r[a][1]);for(e.closePath();am){var _=[v,b];a.push(_)}}}return{boxData:r,outliers:a}}var ZG={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==wm){var r="";0,Jm(r)}var a=KG(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function JG(e){e.registerSeriesModel(FG),e.registerChartView(UG),e.registerLayout(HG),e.registerTransform(ZG)}var QG=["itemStyle","borderColor"],eU=["itemStyle","borderColor0"],tU=["itemStyle","borderColorDoji"],rU=["itemStyle","color"],aU=["itemStyle","color0"];function nU(e,t){return t.get(e>0?rU:aU)}function iU(e,t){return t.get(0===e?tU:e>0?QG:eU)}var oU={seriesType:"candlestick",plan:qy(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var a=t.getItemModel(r),n=t.getItemLayout(r).sign,i=a.getItemStyle();i.fill=nU(n,a),i.stroke=iU(n,a)||i.fill;var o=t.ensureUniqueItemVisual(r,"style");Object(Ia["m"])(o,i)}}}}}},sU=oU,lU=["color","borderColor"],cU=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,r){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,r,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){nx(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),r=this._data,a=this.group,n=t.getLayout("isSimpleBox"),i=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||a.removeAll(),t.diff(r).add((function(r){if(t.hasValue(r)){var o=t.getItemLayout(r);if(i&&hU(s,o))return;var l=pU(o,r,!0);uh(l,{shape:{points:o.ends}},e,r),fU(l,t,r,n),a.add(l),t.setItemGraphicEl(r,l)}})).update((function(o,l){var c=r.getItemGraphicEl(l);if(t.hasValue(o)){var u=t.getItemLayout(o);i&&hU(s,u)?a.remove(c):(c?(ch(c,{shape:{points:u.ends}},e,o),mh(c)):c=pU(u,o),fU(c,t,o,n),a.add(c),t.setItemGraphicEl(o,c))}else a.remove(c)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&a.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),yU(e,this.group);var t=e.get("clip",!0)?cA(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var r,a=t.getData(),n=a.getLayout("isSimpleBox");while(null!=(r=e.next())){var i=a.getItemLayout(r),o=pU(i,r);fU(o,a,r,n),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){yU(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(hx),uU=function(){function e(){}return e}(),dU=function(e){function t(t){var r=e.call(this,t)||this;return r.type="normalCandlestickBox",r}return Ca(t,e),t.prototype.getDefaultShape=function(){return new uU},t.prototype.buildPath=function(e,t){var r=t.points;this.__simpleBox?(e.moveTo(r[4][0],r[4][1]),e.lineTo(r[6][0],r[6][1])):(e.moveTo(r[0][0],r[0][1]),e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]),e.lineTo(r[3][0],r[3][1]),e.closePath(),e.moveTo(r[4][0],r[4][1]),e.lineTo(r[5][0],r[5][1]),e.moveTo(r[6][0],r[6][1]),e.lineTo(r[7][0],r[7][1]))},t}(ud);function pU(e,t,r){var a=e.ends;return new dU({shape:{points:r?mU(a,e):a},z2:100})}function hU(e,t){for(var r=!0,a=0;am?x[i]:_[i],ends:S,brushRect:A(g,v,h)})}function I(e,r){var a=[];return a[n]=r,a[i]=e,isNaN(r)||isNaN(e)?[NaN,NaN]:t.dataToPoint(a)}function O(e,t,r){var i=t.slice(),o=t.slice();i[n]=z_(i[n]+a/2,1,!1),o[n]=z_(o[n]-a/2,1,!0),r?e.push(i,o):e.push(o,i)}function A(e,t,r){var o=I(e,r),s=I(t,r);return o[n]-=a/2,s[n]-=a/2,{x:o[0],y:o[1],width:i?a:s[0]-o[0],height:i?s[1]-o[1]:a}}function M(e){return e[n]=z_(e[n],1),e}}function f(r,a){var o,l,h=KO(4*r.count),f=0,m=[],g=[],v=a.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=r.next())){var b=v.get(s,l),_=v.get(c,l),x=v.get(u,l),w=v.get(d,l),D=v.get(p,l);isNaN(b)||isNaN(w)||isNaN(D)?(h[f++]=NaN,f+=3):(h[f++]=CU(v,l,_,x,u,y),m[n]=b,m[i]=w,o=t.dataToPoint(m,null,g),h[f++]=o?o[0]:NaN,h[f++]=o?o[1]:NaN,m[i]=D,o=t.dataToPoint(m,null,g),h[f++]=o?o[1]:NaN)}a.setLayout("largePoints",h)}}};function CU(e,t,r,a,n,i){var o;return o=r>a?-1:r0?e.get(n,t-1)<=a?1:-1:1,o}function TU(e,t){var r,a=e.getBaseAxis(),n="category"===a.type?a.getBandWidth():(r=a.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=nl(Object(Ia["P"])(e.get("barMaxWidth"),n),n),o=nl(Object(Ia["P"])(e.get("barMinWidth"),1),n),s=e.get("barWidth");return null!=s?nl(s,n):Math.max(Math.min(n/2,i),o)}var IU=SU;function OU(e){e.registerChartView(_U),e.registerSeriesModel(wU),e.registerPreprocessor(DU),e.registerVisual(sU),e.registerLayout(IU)}function AU(e,t){var r=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?r:null,fill:"fill"===t.brushType?r:null}})}))}var MU=function(e){function t(t,r){var a=e.call(this)||this,n=new VO(t,r),i=new Gs;return a.add(n),a.add(i),a.updateData(t,r),a}return Ca(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,r=e.color,a=e.rippleNumber,n=this.childAt(1),i=0;i0&&(i=this._getLineLength(a)/l*1e3),i!==this._period||o!==this._loop||s!==this._roundTrip){a.stopAnimation();var u=void 0;u=Ia["w"](c)?c(r):c,a.__t>0&&(u=-i*a.__t),this._animateSymbol(a,i,u,o,s)}this._period=i,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,r,a,n){if(t>0){e.__t=0;var i=this,o=e.animate("",a).when(n?2*t:t,{__t:n?2:1}).delay(r).during((function(){i._updateSymbolPosition(e)}));a||o.done((function(){i.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return $a(e.__p1,e.__cp1)+$a(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,r){this.childAt(0).updateData(e,t,r),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,r=e.__p2,a=e.__cp1,n=e.__t<1?e.__t:2-e.__t,i=[e.x,e.y],o=i.slice(),s=qi,l=Yi;i[0]=s(t[0],a[0],r[0],n),i[1]=s(t[1],a[1],r[1],n);var c=e.__t<1?l(t[0],a[0],r[0],n):l(r[0],a[0],t[0],1-n),u=e.__t<1?l(t[1],a[1],r[1],n):l(r[1],a[1],t[1],1-n);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;i--)if(a[i]<=t)break;i=Math.min(i,n-2)}else{for(i=o;it)break;i=Math.min(i-1,n-2)}var l=(t-a[i])/(a[i+1]-a[i]),c=r[i],u=r[i+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var d=e.__t<1?u[0]-c[0]:c[0]-u[0],p=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(p,d)-Math.PI/2,this._lastFrame=i,this._lastFramePercent=t,e.ignore=!1}},t}(jU),zU=BU,GU=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),UU=function(e){function t(t){var r=e.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return Ca(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GU},t.prototype.buildPath=function(e,t){var r,a=t.segs,n=t.curveness;if(t.polyline)for(r=this._off;r0){e.moveTo(a[r++],a[r++]);for(var o=1;o0){var d=(s+c)/2-(l-u)*n,p=(l+u)/2-(c-s)*n;e.quadraticCurveTo(d,p,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=r,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var r=this.shape,a=r.segs,n=r.curveness,i=this.style.lineWidth;if(r.polyline)for(var o=0,s=0;s0)for(var c=a[s++],u=a[s++],d=1;d0){var f=(c+p)/2-(u-h)*n,m=(u+h)/2-(p-c)*n;if(Bu(c,u,f,m,p,h,i,e,t))return o}else if(Vu(c,u,p,h,i,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var r=this.transformCoordToLocal(e,t),a=this.getBoundingRect();if(e=r[0],t=r[1],a.contain(e,t)){var n=this.hoverDataIdx=this.findDataIndex(e,t);return n>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,r=t.segs,a=1/0,n=1/0,i=-1/0,o=-1/0,s=0;s0&&(i.dataIndex=r+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),HU=WU,qU={seriesType:"lines",plan:qy(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),a=e.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(r){for(var c=0,u=n.start;u0&&(l||s.configLayer(i,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),n.updateData(a);var c=e.get("clip",!0)&&cA(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=i,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,r){var a=e.getData(),n=this._updateLineDraw(a,e);n.incrementalPrepareUpdate(a),this._clearLayer(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,r){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,r){var a=e.getData(),n=e.pipelineContext;if(!this._finished||n.large||n.progressiveRender)return{update:!0};var i=YU.reset(e,t,r);i.progress&&i.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(r)},t.prototype._updateLineDraw=function(e,t){var r=this._lineDraw,a=this._showEffect(t),n=!!t.get("polyline"),i=t.pipelineContext,o=i.large;return r&&a===this._hasEffet&&n===this._isPolyline&&o===this._isLargeDraw||(r&&r.remove(),r=this._lineDraw=o?new HU:new s$(n?a?zU:$U:a?jU:t$),this._hasEffet=a,this._isPolyline=n,this._isLargeDraw=o),this.group.add(r.group),r},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),r="svg"===t.painter.getType();r||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(hx),KU=XU,ZU="undefined"===typeof Uint32Array?Array:Uint32Array,JU="undefined"===typeof Float64Array?Array:Float64Array;function QU(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(Ia["H"])(t,(function(e){var t=[e[0].coord,e[1].coord],r={coords:t};return e[0].name&&(r.fromName=e[0].name),e[1].name&&(r.toName=e[1].name),Object(Ia["J"])([r,e[0],e[1]])})))}var eW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return Ca(t,e),t.prototype.init=function(t){t.data=t.data||[],QU(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(QU(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(Ia["e"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(Ia["e"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),r=t.option instanceof Array?t.option:t.getShallow("coords");return r},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var r=this._flatCoordsOffset[2*e],a=this._flatCoordsOffset[2*e+1],n=0;n ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Uy),tW=eW;function rW(e){return e instanceof Array||(e=[e,e]),e}var aW={seriesType:"lines",reset:function(e){var t=rW(e.get("symbol")),r=rW(e.get("symbolSize")),a=e.getData();function n(e,t){var r=e.getItemModel(t),a=rW(r.getShallow("symbol",!0)),n=rW(r.getShallow("symbolSize",!0));a[0]&&e.setItemVisual(t,"fromSymbol",a[0]),a[1]&&e.setItemVisual(t,"toSymbol",a[1]),n[0]&&e.setItemVisual(t,"fromSymbolSize",n[0]),n[1]&&e.setItemVisual(t,"toSymbolSize",n[1])}return a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",r&&r[0]),a.setVisual("toSymbolSize",r&&r[1]),{dataEach:a.hasItemOption?n:null}}},nW=aW;function iW(e){e.registerChartView(KU),e.registerSeriesModel(tW),e.registerLayout(YU),e.registerVisual(nW)}var oW=256,sW=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ys["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,r,a,n,i){var o=this._getBrush(),s=this._getGradient(n,"inRange"),l=this._getGradient(n,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),p=e.length;u.width=t,u.height=r;for(var h=0;h0){var I=i(y)?s:l;y>0&&(y=y*C+D),_[x++]=I[T],_[x++]=I[T+1],_[x++]=I[T+2],_[x++]=I[T+3]*y*256}else x+=4}return d.putImageData(b,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ys["d"].createCanvas()),t=this.pointSize+this.blurSize,r=2*t;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,2*Math.PI,!0),a.closePath(),a.fill(),e},e.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(1024)),n=[0,0,0,0],i=0,o=0;o<256;o++)e[t](o/255,!0,n),a[i++]=n[0],a[i++]=n[1],a[i++]=n[2],a[i++]=n[3];return a},e}(),lW=sW;function cW(e,t,r){var a=e[1]-e[0];t=Ia["H"](t,(function(t){return{interval:[(t.interval[0]-e[0])/a,(t.interval[1]-e[0])/a]}}));var n=t.length,i=0;return function(e){var a;for(a=i;a=0;a--){o=t[a].interval;if(o[0]<=e&&e<=o[1]){i=a;break}}return a>=0&&a=t[0]&&e<=t[1]}}function dW(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var pW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(r){r===e&&(a=t)}))})),this._progressiveEls=null,this.group.removeAll();var n=e.coordinateSystem;"cartesian2d"===n.type||"calendar"===n.type?this._renderOnCartesianAndCalendar(e,r,0,e.getData().count()):dW(n)&&this._renderOnGeo(n,e,a,r)},t.prototype.incrementalPrepareRender=function(e,t,r){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,r,a){var n=t.coordinateSystem;n&&(dW(n)?this.render(t,r,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,a,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){nx(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,r,a,n){var i,o,s,l,c=e.coordinateSystem,u=uA(c,"cartesian2d");if(u){var d=c.getAxis("x"),p=c.getAxis("y");0,i=d.getBandWidth()+.5,o=p.getBandWidth()+.5,s=d.scale.getExtent(),l=p.scale.getExtent()}for(var h=this.group,f=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=xh(e),_=e.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),D=_.get("disabled"),S=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=r;Cs[1]||Al[1])continue;var M=c.dataToPoint([O,A]);T=new Id({shape:{x:M[0]-i/2,y:M[1]-o/2,width:i,height:o},style:I})}else{if(isNaN(f.get(S[1],C)))continue;T=new Id({z2:1,shape:c.dataToRect([f.get(S[0],C)]).contentShape,style:I})}if(f.hasItemOption){var P=f.getItemModel(C),k=P.getModel("emphasis");m=k.getModel("itemStyle").getItemStyle(),g=P.getModel(["blur","itemStyle"]).getItemStyle(),v=P.getModel(["select","itemStyle"]).getItemStyle(),y=P.get(["itemStyle","borderRadius"]),x=k.get("focus"),w=k.get("blurScope"),D=k.get("disabled"),b=xh(P)}T.shape.r=y;var N=e.getRawValue(C),E="-";N&&null!=N[2]&&(E=N[2]+""),_h(T,b,{labelFetcher:e,labelDataIndex:C,defaultOpacity:I.opacity,defaultText:E}),T.ensureState("emphasis").style=m,T.ensureState("blur").style=g,T.ensureState("select").style=v,Yp(T,x,w,D),T.incremental=n,n&&(T.states.emphasis.hoverLayer=!0),h.add(T),f.setItemGraphicEl(C,T),this._progressiveEls&&this._progressiveEls.push(T)}},t.prototype._renderOnGeo=function(e,t,r,a){var n=r.targetVisuals.inRange,i=r.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new lW;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),d=Math.max(l.y,0),p=Math.min(l.width+l.x,a.getWidth()),h=Math.min(l.height+l.y,a.getHeight()),f=p-u,m=h-d,g=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],v=o.mapArray(g,(function(t,r,a){var n=e.dataToPoint([t,r]);return n[0]-=u,n[1]-=d,n.push(a),n})),y=r.getExtent(),b="visualMap.continuous"===r.type?uW(y,r.option.range):cW(y,r.getPieceList(),r.option.selected);s.update(v,f,m,n.color.getNormalizer(),{inRange:n.color.getColorMapper(),outOfRange:i.color.getColorMapper()},b);var _=new yd({style:{width:f,height:m,x:u,y:d,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(hx),hW=pW,fW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){return kO(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=hg.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Uy),mW=fW;function gW(e){e.registerChartView(hW),e.registerSeriesModel(mW)}var vW=["itemStyle","borderWidth"],yW=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],bW=new bb,_W=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=this.group,n=e.getData(),i=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),c=o.master.getRect(),u={ecSize:{width:r.getWidth(),height:r.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:yW[+l],categoryDim:yW[1-+l]};n.diff(i).add((function(e){if(n.hasValue(e)){var t=kW(n,e),r=xW(n,e,t,u),i=LW(n,u,r);n.setItemGraphicEl(e,i),a.add(i),BW(i,u,r)}})).update((function(e,t){var r=i.getItemGraphicEl(t);if(n.hasValue(e)){var o=kW(n,e),s=xW(n,e,o,u),l=jW(n,s);r&&l!==r.__pictorialShapeStr&&(a.remove(r),n.setItemGraphicEl(e,null),r=null),r?RW(r,u,s):r=LW(n,u,s,!0),n.setItemGraphicEl(e,r),r.__pictorialSymbolMeta=s,a.add(r),BW(r,u,s)}else a.remove(r)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&FW(i,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var d=e.get("clip",!0)?cA(e.coordinateSystem,!1,e):null;return d?a.setClipPath(d):a.removeClipPath(),this._data=n,this.group},t.prototype.remove=function(e,t){var r=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl((function(t){FW(a,Hd(t).dataIndex,e,t)})):r.removeAll()},t.type="pictorialBar",t}(hx);function xW(e,t,r,a){var n=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=r.get("symbolPatternSize")||2,d=r.isAnimationEnabled(),p={dataIndex:t,layout:n,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?r:null,hoverScale:d&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};wW(r,i,n,a,p),SW(e,t,n,i,o,p.boundingLength,p.pxSign,u,a,p),CW(r,p.symbolScale,c,a,p);var h=p.symbolSize,f=Ow(r.get("symbolOffset"),h);return TW(r,h,n,i,o,f,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,a,p),p}function wW(e,t,r,a,n){var i,o=a.valueDim,s=e.get("symbolBoundingData"),l=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(r[o.wh]<=0);if(Ia["t"](s)){var d=[DW(l,s[0])-c,DW(l,s[1])-c];d[1]=0?1:-1:i>0?1:-1}function DW(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function SW(e,t,r,a,n,i,o,s,l,c){var u,d=l.valueDim,p=l.categoryDim,h=Math.abs(r[p.wh]),f=e.getItemVisual(t,"symbolSize");u=Ia["t"](f)?f.slice():null==f?["100%","100%"]:[f,f],u[p.index]=nl(u[p.index],h),u[d.index]=nl(u[d.index],a?h:Math.abs(i)),c.symbolSize=u;var m=c.symbolScale=[u[0]/s,u[1]/s];m[d.index]*=(l.isHorizontal?-1:1)*o}function CW(e,t,r,a,n){var i=e.get(vW)||0;i&&(bW.attr({scaleX:t[0],scaleY:t[1],rotation:r}),bW.updateTransform(),i/=bW.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function TW(e,t,r,a,n,i,o,s,l,c,u,d){var p=u.categoryDim,h=u.valueDim,f=d.pxSign,m=Math.max(t[h.index]+s,0),g=m;if(a){var v=Math.abs(l),y=Ia["O"](e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var _=nl(y,t[h.index]),x=Math.max(m+2*_,0),w=b?0:2*_,D=Dl(a),S=D?a:zW((v+w)/x),C=v-S*m;_=C/2/(b?S:Math.max(S-1,1)),x=m+2*_,w=b?0:2*_,D||"fixed"===a||(S=c?zW((Math.abs(c)+w)/x):0),g=S*x-w,d.repeatTimes=S,d.symbolMargin=_}var T=f*(g/2),I=d.pathPosition=[];I[p.index]=r[p.wh]/2,I[h.index]="start"===o?T:"end"===o?l-T:l/2,i&&(I[0]+=i[0],I[1]+=i[1]);var O=d.bundlePosition=[];O[p.index]=r[p.xy],O[h.index]=r[h.xy];var A=d.barRectShape=Ia["m"]({},r);A[h.wh]=f*Math.max(Math.abs(r[h.wh]),Math.abs(I[h.index]+T)),A[p.wh]=r[p.wh];var M=d.clipShape={};M[p.xy]=-r[p.xy],M[p.wh]=u.ecSize[p.wh],M[h.xy]=0,M[h.wh]=r[h.wh]}function IW(e){var t=e.symbolPatternSize,r=Tw(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),"image"!==r.type&&r.setStyle({strokeNoScale:!0}),r}function OW(e,t,r,a){var n=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,c=r.repeatTimes||0,u=0,d=i[t.valueDim.index]+o+2*r.symbolMargin;for(VW(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:a<0)&&(n=c-1-e),t[l.index]=d*(n-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function AW(e,t,r,a){var n=e.__pictorialBundle,i=e.__pictorialMainPath;i?$W(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,a):(i=e.__pictorialMainPath=IW(r),n.add(i),$W(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,a))}function MW(e,t,r){var a=Ia["m"]({},t.barRectShape),n=e.__pictorialBarRect;n?$W(n,null,{shape:a},t,r):(n=e.__pictorialBarRect=new Id({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,e.add(n))}function PW(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,o=Ia["m"]({},r.clipShape),s=t.valueDim,l=r.animationModel,c=r.dataIndex;if(i)ch(i,{shape:o},l,c);else{o[s.wh]=0,i=new Id({shape:o}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[s.wh]=r.clipShape[s.wh],a[n?"updateProps":"initProps"](i,{shape:u},l,c)}}}function kW(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=NW,r.isAnimationEnabled=EW,r}function NW(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function EW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function LW(e,t,r,a){var n=new Gs,i=new Gs;return n.add(i),n.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?OW(n,t,r):AW(n,t,r),MW(n,r,a),PW(n,t,r,a),n.__pictorialShapeStr=jW(e,r),n.__pictorialSymbolMeta=r,n}function RW(e,t,r){var a=r.animationModel,n=r.dataIndex,i=e.__pictorialBundle;ch(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},a,n),r.symbolRepeat?OW(e,t,r,!0):AW(e,t,r,!0),MW(e,r,!0),PW(e,t,r,!0)}function FW(e,t,r,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];VW(a,(function(e){i.push(e)})),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(r=null),Ia["k"](i,(function(e){ph(e,{scaleX:0,scaleY:0},r,t,(function(){a.parent&&a.parent.remove(a)}))})),e.setItemGraphicEl(t,null)}function jW(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function VW(e,t,r){Ia["k"](e.__pictorialBundle.children(),(function(a){a!==e.__pictorialBarRect&&t.call(r,a)}))}function $W(e,t,r,n,i,o){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&a[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,o)}function BW(e,t,r){var a=r.dataIndex,n=r.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),c=n.getShallow("cursor"),u=i.get("focus"),d=i.get("blurScope"),p=i.get("scale");VW(e,(function(e){if(e instanceof yd){var t=e.style;e.useStyle(Ia["m"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},r.style))}else e.useStyle(r.style);var a=e.ensureState("emphasis");a.style=o,p&&(a.scaleX=1.1*e.scaleX,a.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,c&&(e.cursor=c),e.z2=r.z2}));var h=t.valueDim.posDesc[+(r.boundingLength>0)],f=e.__pictorialBarRect;f.ignoreClip=!0,_h(f,xh(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:LO(t.seriesModel.getData(),a),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Yp(e,u,d,i.get("disabled"))}function zW(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var GW=_W,UW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return Ca(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Zh(KA.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(KA),WW=UW;function HW(e){e.registerChartView(GW),e.registerSeriesModel(WW),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(Ia["h"])(UA,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WA("pictorialBar"))}var qW=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=e.getData(),n=this,i=this.group,o=e.getLayerSeries(),s=a.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}i.x=0,i.y=l.y+c[0];var d=new jI(this._layersSeries||[],o,u,u),p=[];function h(t,r,s){var l=n._layers;if("remove"!==t){for(var c,u,d=[],h=[],f=o[r].indices,m=0;mi&&(i=s),a.push(s)}for(var c=0;ci&&(i=d)}return{y0:n,max:i}}function rH(e){e.registerChartView(XW),e.registerSeriesModel(JW),e.registerLayout(QW),e.registerProcessor(VM("themeRiver"))}var aH=2,nH=4,iH=function(e){function t(t,r,a,n){var i=e.call(this)||this;i.z2=aH,i.textConfig={inside:!0},Hd(i).seriesIndex=r.seriesIndex;var o=new Wd({z2:nH,silent:t.getModel().get(["label","silent"])});return i.setTextContent(o),i.updateData(!0,t,r,a,n),i}return Ca(t,e),t.prototype.updateData=function(e,t,r,a,n){this.node=t,t.piece=this,r=r||this._seriesModel,a=a||this._ecModel;var i=this;Hd(i).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),c=Ia["m"]({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var d=t.getVisual("decal");d&&(u.decal=mD(d,n));var p=oM(o.getModel("itemStyle"),c,!0);Ia["m"](c,p),Ia["k"](tp,(function(e){var t=i.ensureState(e),r=o.getModel([e,"itemStyle"]);t.style=r.getItemStyle();var a=oM(r,c);a&&(t.shape=a)})),e?(i.setShape(c),i.shape.r=l.r0,uh(i,{shape:{r:l.r}},r,t.dataIndex)):(ch(i,{shape:c},r),mh(i)),i.useStyle(u),this._updateLabel(r);var h=o.getShallow("cursor");h&&i.attr("cursor",h),this._seriesModel=r||this._seriesModel,this._ecModel=a||this._ecModel;var f=s.get("focus"),m="relative"===f?Ia["e"](t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Yp(this,m,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,r=this.node.getModel(),a=r.getModel("label"),n=this.node.getLayout(),i=n.endAngle-n.startAngle,o=(n.startAngle+n.endAngle)/2,s=Math.cos(o),l=Math.sin(o),c=this,u=c.getTextContent(),d=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,h=a.get("show")&&!(null!=p&&Math.abs(i)C&&!fl(I-C)&&I0?(n.virtualPiece?n.virtualPiece.updateData(!1,a,e,t,r):(n.virtualPiece=new oH(a,e,t,r),l.add(n.virtualPiece)),i.piece.off("click"),n.virtualPiece.on("click",(function(e){n._rootToNode(i.parentNode)}))):n.virtualPiece&&(l.remove(n.virtualPiece),n.virtualPiece=null)}p(u,d),m(o,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var r=!1,a=e.seriesModel.getViewRoot();a.eachNode((function(a){if(!r&&a.piece&&a.piece===t.target){var n=a.getModel().get("nodeClick");if("rootToNode"===n)e._rootToNode(a);else if("link"===n){var i=a.getModel(),o=i.get("link");if(o){var s=i.get("target",!0)||"_blank";Qf(o,s)}}r=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:sH,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var r=t.getData(),a=r.getItemLayout(0);if(a){var n=e[0]-a.cx,i=e[1]-a.cy,o=Math.sqrt(n*n+i*i);return o<=a.r&&o>=a.r0}},t.type="sunburst",t}(hx),pH=dH,hH=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return Ca(t,e),t.prototype.getInitialData=function(e,t){var r={name:e.name,children:e.data};fH(r);var a=this._levelModels=Ia["H"](e.levels||[],(function(e){return new Hh(e,this,t)}),this),n=DF.createTree(r,this,i);function i(e){e.wrapMethod("getItemModel",(function(e,t){var r=n.getNodeByDataIndex(t),i=a[r.depth];return i&&(e.parentModel=i),e}))}return n.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=IF(a,this),r},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){VF(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Uy);function fH(e){var t=0;Ia["k"](e.children,(function(e){fH(e);var r=e.value;Ia["t"](r)&&(r=r[0]),t+=r}));var r=e.value;Ia["t"](r)&&(r=r[0]),(null==r||isNaN(r))&&(r=t),r<0&&(r=0),Ia["t"](e.value)?e.value[0]=r:e.value=r}var mH=hH,gH=Math.PI/180;function vH(e,t,r){t.eachSeriesByType(e,(function(e){var t=e.get("center"),a=e.get("radius");Ia["t"](a)||(a=[0,a]),Ia["t"](t)||(t=[t,t]);var n=r.getWidth(),i=r.getHeight(),o=Math.min(n,i),s=nl(t[0],n),l=nl(t[1],i),c=nl(a[0],o/2),u=nl(a[1],o/2),d=-e.get("startAngle")*gH,p=e.get("minAngle")*gH,h=e.getData().tree.root,f=e.getViewRoot(),m=f.depth,g=e.get("sort");null!=g&&yH(f,g);var v=0;Ia["k"](f.children,(function(e){!isNaN(e.getValue())&&v++}));var y=f.getValue(),b=Math.PI/(y||v)*2,_=f.depth>0,x=f.height-(_?-1:1),w=(u-c)/(x||1),D=e.get("clockwise"),S=e.get("stillShowZeroSum"),C=D?1:-1,T=function(t,r){if(t){var a=r;if(t!==h){var n=t.getValue(),i=0===y&&S?b:n*b;i1)n=n.parentNode;var i=r.getColorFromPalette(n.name||n.dataIndex+"",t);return e.depth>1&&Object(Ia["C"])(i)&&(i=Object(no["c"])(i,(e.depth-1)/(a-1)*.5)),i}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),a=t.tree;a.eachNode((function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle();o.fill||(o.fill=r(n,e,a.root.height));var s=t.ensureUniqueItemVisual(n.dataIndex,"style");Object(Ia["m"])(s,o)}))}))}function xH(e){e.registerChartView(pH),e.registerSeriesModel(mH),e.registerLayout(Object(Ia["h"])(vH,"sunburst")),e.registerProcessor(Object(Ia["h"])(VM,"sunburst")),e.registerVisual(_H),uH(e)}var wH={color:"fill",borderColor:"stroke"},DH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},SH=Jl(),CH=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return kO(null,this)},t.prototype.getDataParams=function(t,r,a){var n=e.prototype.getDataParams.call(this,t,r);return a&&(n.info=SH(a).info),n},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Uy),TH=CH;function IH(e,t){return t=t||[0,0],Ia["H"](["x","y"],(function(r,a){var n=this.getAxis(r),i=t[a],o=e[a]/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}),this)}function OH(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Ia["c"](IH,e)}}}function AH(e,t){return t=t||[0,0],Ia["H"]([0,1],(function(r){var a=t[r],n=e[r]/2,i=[],o=[];return i[r]=a-n,o[r]=a+n,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])}),this)}function MH(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:Ia["c"](AH,e)}}}function PH(e,t){var r=this.getAxis(),a=t instanceof Array?t[0]:t,n=(e instanceof Array?e[0]:e)/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-n)-r.dataToCoord(a+n))}function kH(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(Ia["c"])(PH,e)}}}function NH(e,t){return t=t||[0,0],Ia["H"](["Radius","Angle"],(function(r,a){var n="get"+r+"Axis",i=this[n](),o=t[a],s=e[a]/2,l="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return"Angle"===r&&(l=l*Math.PI/180),l}),this)}function EH(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:a[1],r0:a[0]},api:{coord:function(a){var n=t.dataToRadius(a[0]),i=r.dataToAngle(a[1]),o=e.coordToPoint([n,i]);return o.push(n,i*Math.PI/180),o},size:Ia["c"](NH,e)}}}function LH(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(t,r){return e.dataToPoint(t,r)}}}}function RH(e,t,r,a){return e&&(e.legacy||!1!==e.legacy&&!r&&!a&&"tspan"!==t&&("text"===t||Object(Ia["q"])(e,"text")))}function FH(e,t,r){var a,n,i,o=e;if("text"===t)i=o;else{i={},Object(Ia["q"])(o,"text")&&(i.text=o.text),Object(Ia["q"])(o,"rich")&&(i.rich=o.rich),Object(Ia["q"])(o,"textFill")&&(i.fill=o.textFill),Object(Ia["q"])(o,"textStroke")&&(i.stroke=o.textStroke),Object(Ia["q"])(o,"fontFamily")&&(i.fontFamily=o.fontFamily),Object(Ia["q"])(o,"fontSize")&&(i.fontSize=o.fontSize),Object(Ia["q"])(o,"fontStyle")&&(i.fontStyle=o.fontStyle),Object(Ia["q"])(o,"fontWeight")&&(i.fontWeight=o.fontWeight),n={type:"text",style:i,silent:!0},a={};var s=Object(Ia["q"])(o,"textPosition");r?a.position=s?o.textPosition:"inside":s&&(a.position=o.textPosition),Object(Ia["q"])(o,"textPosition")&&(a.position=o.textPosition),Object(Ia["q"])(o,"textOffset")&&(a.offset=o.textOffset),Object(Ia["q"])(o,"textRotation")&&(a.rotation=o.textRotation),Object(Ia["q"])(o,"textDistance")&&(a.distance=o.textDistance)}return jH(i,e),Object(Ia["k"])(i.rich,(function(e){jH(e,e)})),{textConfig:a,textContent:n}}function jH(e,t){t&&(t.font=t.textFont||t.font,Object(Ia["q"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(Ia["q"])(t,"textAlign")&&(e.align=t.textAlign),Object(Ia["q"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(Ia["q"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(Ia["q"])(t,"textWidth")&&(e.width=t.textWidth),Object(Ia["q"])(t,"textHeight")&&(e.height=t.textHeight),Object(Ia["q"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(Ia["q"])(t,"textPadding")&&(e.padding=t.textPadding),Object(Ia["q"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(Ia["q"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(Ia["q"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(Ia["q"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(Ia["q"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(Ia["q"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(Ia["q"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function VH(e,t,r){var a=e;a.textPosition=a.textPosition||r.position||"inside",null!=r.offset&&(a.textOffset=r.offset),null!=r.rotation&&(a.textRotation=r.rotation),null!=r.distance&&(a.textDistance=r.distance);var n=a.textPosition.indexOf("inside")>=0,i=e.fill||"#000";$H(a,t);var o=null==a.textFill;return n?o&&(a.textFill=r.insideFill||"#fff",!a.textStroke&&r.insideStroke&&(a.textStroke=r.insideStroke),!a.textStroke&&(a.textStroke=i),null==a.textStrokeWidth&&(a.textStrokeWidth=2)):(o&&(a.textFill=e.fill||r.outsideFill||"#000"),!a.textStroke&&r.outsideStroke&&(a.textStroke=r.outsideStroke)),a.text=t.text,a.rich=t.rich,Object(Ia["k"])(t.rich,(function(e){$H(e,e)})),a}function $H(e,t){t&&(Object(Ia["q"])(t,"fill")&&(e.textFill=t.fill),Object(Ia["q"])(t,"stroke")&&(e.textStroke=t.fill),Object(Ia["q"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(Ia["q"])(t,"font")&&(e.font=t.font),Object(Ia["q"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(Ia["q"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(Ia["q"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(Ia["q"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(Ia["q"])(t,"align")&&(e.textAlign=t.align),Object(Ia["q"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(Ia["q"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(Ia["q"])(t,"width")&&(e.textWidth=t.width),Object(Ia["q"])(t,"height")&&(e.textHeight=t.height),Object(Ia["q"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(Ia["q"])(t,"padding")&&(e.textPadding=t.padding),Object(Ia["q"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(Ia["q"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(Ia["q"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(Ia["q"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(Ia["q"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(Ia["q"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(Ia["q"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(Ia["q"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(Ia["q"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(Ia["q"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(Ia["q"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var BH={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},zH=Object(Ia["F"])(BH),GH=(Object(Ia["N"])(fs,(function(e,t){return e[t]=1,e}),{}),fs.join(", "),["","style","shape","extra"]),UH=Jl();function WH(e,t,r,a,n){var i=e+"Animation",o=sh(e,a,n)||{},s=UH(t).userDuring;return o.duration>0&&(o.during=s?Object(Ia["c"])(tq,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Object(Ia["m"])(o,r[i]),o}function HH(e,t,r,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=r.isAnimationEnabled(),l=UH(e),c=t.style;l.userDuring=t.during;var u={},d={};if(iq(e,t,d),aq("shape",t,d),aq("extra",t,d),!i&&s&&(nq(e,t,u),rq("shape",e,t,u),rq("extra",e,t,u),oq(e,t,c,u)),d.style=c,KH(e,d,o),JH(e,t),s)if(i){var p={};Object(Ia["k"])(GH,(function(e){var r=e?t[e]:t;r&&r.enterFrom&&(e&&(p[e]=p[e]||{}),Object(Ia["m"])(e?p[e]:p,r.enterFrom))}));var h=WH("enter",e,t,r,n);h.duration>0&&e.animateFrom(p,h)}else ZH(e,t,n||0,r,u);qH(e,t),c?e.dirty():e.markRedraw()}function qH(e,t){for(var r=UH(e).leaveToProps,a=0;a0&&e.animateFrom(n,i)}}function JH(e,t){Object(Ia["q"])(t,"silent")&&(e.silent=t.silent),Object(Ia["q"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof au&&Object(Ia["q"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof ud&&Object(Ia["q"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var QH={},eq={setTransform:function(e,t){return QH.el[e]=t,this},getTransform:function(e){return QH.el[e]},setShape:function(e,t){var r=QH.el,a=r.shape||(r.shape={});return a[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=QH.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=QH.el,a=r.style;return a&&(a[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=QH.el.style;if(t)return t[e]},setExtra:function(e,t){var r=QH.el.extra||(QH.el.extra={});return r[e]=t,this},getExtra:function(e){var t=QH.el.extra;if(t)return t[e]}};function tq(){var e=this,t=e.el;if(t){var r=UH(t).userDuring,a=e.userDuring;r===a?(QH.el=t,a(eq)):e.el=e.userDuring=null}}function rq(e,t,r,a){var n=r[e];if(n){var i,o=t[e];if(o){var s=r.transition,l=n.transition;if(l)if(!i&&(i=a[e]={}),XH(l))Object(Ia["m"])(i,o);else for(var c=Ml(l),u=0;u=0){!i&&(i=a[e]={});var h=Object(Ia["F"])(o);for(u=0;u=0)){var p=e.getAnimationStyleProps(),h=p?p.style:null;if(h){!n&&(n=a.style={});var f=Object(Ia["F"])(r);for(c=0;c=0?t.getStore().get(n,r):void 0}var i=t.get(a.name,r),o=a&&a.ordinalMeta;return o?o.categories[i]:i}function w(r,a){null==a&&(a=s);var n=t.getItemVisual(a,"style"),i=n&&n.fill,o=n&&n.opacity,l=y(a,hq).getItemStyle();null!=i&&(l.fill=i),null!=o&&(l.opacity=o);var c={inheritColor:Object(Ia["C"])(i)?i:"#000"},u=b(a,hq),d=wh(u,null,c,!1,!0);d.text=u.getShallow("show")?Object(Ia["P"])(e.getFormattedLabel(a,hq),LO(t,a)):null;var p=Dh(u,c,!1);return C(r,l),l=VH(l,d,p),r&&S(l,r),l.legacy=!0,l}function D(r,a){null==a&&(a=s);var n=y(a,pq).getItemStyle(),i=b(a,pq),o=wh(i,null,null,!0,!0);o.text=i.getShallow("show")?Object(Ia["Q"])(e.getFormattedLabel(a,pq),e.getFormattedLabel(a,hq),LO(t,a)):null;var l=Dh(i,null,!0);return C(r,n),n=VH(n,o,l),r&&S(n,r),n.legacy=!0,n}function S(e,t){for(var r in t)Object(Ia["q"])(t,r)&&(e[r]=t[r])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function T(e,r){if(null==r&&(r=s),Object(Ia["q"])(wH,e)){var a=t.getItemVisual(r,"style");return a?a[wH[e]]:null}if(Object(Ia["q"])(DH,e))return t.getItemVisual(r,e)}function I(e){if("cartesian2d"===i.type){var t=i.getBaseAxis();return jA(Object(Ia["i"])({axis:t},e))}}function O(){return r.getCurrentSeriesIndices()}function A(e){return Mh(e,r)}}function Eq(e){var t={};return Object(Ia["k"])(e.dimensions,(function(r){var a=e.getDimensionInfo(r);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=e.getDimensionIndex(r)}})),t}function Lq(e,t,r,a,n,i,o){if(a){var s=Rq(e,t,r,a,n,i);return s&&o.setItemGraphicEl(r,s),s&&Yp(s,a.focus,a.blurScope,a.emphasisDisabled),s}i.remove(t)}function Rq(e,t,r,a,n,i){var o=-1,s=t;t&&Fq(t,a,n)&&(o=Object(Ia["r"])(i.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=Oq(a),s&&Cq(s,c)),!1===a.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),xq.normal.cfg=xq.normal.conOpt=xq.emphasis.cfg=xq.emphasis.conOpt=xq.blur.cfg=xq.blur.conOpt=xq.select.cfg=xq.select.conOpt=null,xq.isLegacy=!1,Vq(c,r,a,n,l,xq),jq(c,r,a,n,l),Aq(e,c,r,a,xq,n,l),Object(Ia["q"])(a,"info")&&(SH(c).info=a.info);for(var u=0;u=0?i.replaceAt(c,o):i.add(c),c}function Fq(e,t,r){var a=SH(e),n=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||null!=n&&n!==a.customGraphicType||"path"===n&&Kq(i)&&Xq(i)!==a.customPathData||"image"===n&&Object(Ia["q"])(o,"image")&&o.image!==a.customImagePath}function jq(e,t,r,a,n){var i=r.clipPath;if(!1===i)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&Fq(o,i,a)&&(o=null),o||(o=Oq(i),e.setClipPath(o)),Aq(null,o,t,i,null,a,n)}}function Vq(e,t,r,a,n,i){if(!e.isGroup){$q(r,null,i),$q(r,pq,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,c=i.select.conOpt;if(null!=o||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===o)u&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=Oq(o),e.setTextContent(u)),Aq(null,u,t,o,null,a,n);for(var d=o&&o.style,p=0;p=u;h--){var f=t.childAt(h);Uq(t,f,n)}}}function Uq(e,t,r){t&&YH(t,SH(e).option,r)}function Wq(e){new jI(e.oldChildren,e.newChildren,Hq,Hq,e).add(qq).update(qq).remove(Yq).execute()}function Hq(e,t){var r=e&&e.name;return null!=r?r:_q+t}function qq(e,t){var r=this.context,a=null!=e?r.newChildren[e]:null,n=null!=t?r.oldChildren[t]:null;Rq(r.api,n,r.dataIndex,a,r.seriesModel,r.group)}function Yq(e){var t=this.context,r=t.oldChildren[e];r&&YH(r,SH(r).option,t.seriesModel)}function Xq(e){return e&&(e.pathData||e.d)}function Kq(e){return e&&(Object(Ia["q"])(e,"pathData")||Object(Ia["q"])(e,"d"))}function Zq(e){e.registerChartView(Iq),e.registerSeriesModel(TH)}var Jq=Jl(),Qq=Ia["d"],eY=Ia["c"],tY=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,r,a){var n=t.get("value"),i=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,a||this._lastValue!==n||this._lastStatus!==i){this._lastValue=n,this._lastStatus=i;var o=this._group,s=this._handle;if(!i||"hide"===i)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,n,e,t,r);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(o){var d=Ia["h"](rY,t,u);this.updatePointerEl(o,l,d),this.updateLabelEl(o,l,d,t)}else o=this._group=new Gs,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),r.getZr().add(o);oY(o,t,!0),this._renderHandle(n)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,n="category"===a.type,i=t.get("snap");if(!i&&!n)return!1;if("auto"===r||null==r){var o=this.animationThreshold;if(n&&a.getBandWidth()>o)return!0;if(i){var s=jN(e).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===r},e.prototype.makeElOption=function(e,t,r,a,n){},e.prototype.createPointerEl=function(e,t,r,n){var i=t.pointer;if(i){var o=Jq(e).pointerEl=new a[i.type](Qq(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,r,a){if(t.label){var n=Jq(e).labelEl=new Wd(Qq(t.label));e.add(n),nY(n,a)}},e.prototype.updatePointerEl=function(e,t,r){var a=Jq(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,r,a){var n=Jq(e).labelEl;n&&(n.setStyle(t.label.style),r(n,{x:t.label.x,y:t.label.y}),nY(n,a))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,r=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||"hide"===o)return n&&a.remove(n),void(this._handle=null);this._handle||(t=!0,n=this._handle=Z_(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){wn(e.event)},onmousedown:eY(this._onHandleDragMove,this,0,0),drift:eY(this._onHandleDragMove,this),ondragend:eY(this._onHandleDragEnd,this)}),a.add(n)),oY(n,r,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");Ia["t"](s)||(s=[s,s]),n.scaleX=s[0]/2,n.scaleY=s[1]/2,yx(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){rY(this._axisPointerModel,!t&&this._moveAnimation,this._handle,iY(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(iY(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(iY(a)),Jq(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),bx(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},e}();function rY(e,t,r,a){aY(Jq(r).lastProp,a)||(Jq(r).lastProp=a,t?ch(r,a,e):(r.stopAnimation(),r.attr(a)))}function aY(e,t){if(Ia["A"](e)&&Ia["A"](t)){var r=!0;return Ia["k"](t,(function(t,a){r=r&&aY(e[a],t)})),!!r}return e===t}function nY(e,t){e[t.get(["label","show"])?"show":"hide"]()}function iY(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function oY(e,t,r){var a=t.get("z"),n=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=a&&(e.z=a),null!=n&&(e.zlevel=n),e.silent=r)}))}var sY=tY;function lY(e){var t,r=e.get("type"),a=e.getModel(r+"Style");return"line"===r?(t=a.getLineStyle(),t.fill=null):"shadow"===r&&(t=a.getAreaStyle(),t.stroke=null),t}function cY(e,t,r,a,n){var i=r.get("value"),o=dY(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Wf(s.get("padding")||0),c=s.getFont(),u=ws(o,c),d=n.position,p=u.width+l[1]+l[3],h=u.height+l[0]+l[2],f=n.align;"right"===f&&(d[0]-=p),"center"===f&&(d[0]-=p/2);var m=n.verticalAlign;"bottom"===m&&(d[1]-=h),"middle"===m&&(d[1]-=h/2),uY(d,p,h,a);var g=s.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:wh(s,{text:o,font:c,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function uY(e,t,r,a){var n=a.getWidth(),i=a.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function dY(e,t,r,a,n){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ck(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Ia["k"](a,(function(e){var t=r.getSeriesByIndex(e.seriesIndex),a=e.dataIndexInside,n=t&&t.getDataParams(a);n&&s.seriesData.push(n)})),Ia["C"](o)?i=o.replace("{value}",i):Ia["w"](o)&&(i=o(s))}return i}function pY(e,t,r){var a=On();return Nn(a,a,r.rotation),kn(a,a,r.position),U_([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],a)}function hY(e,t,r,a,n,i){var o=MN.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),cY(t,a,n,i,{position:pY(a.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function fY(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function mY(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function gY(e,t,r,a,n,i){return{cx:e,cy:t,r0:r,r:a,startAngle:n,endAngle:i,clockwise:!0}}var vY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.makeElOption=function(e,t,r,a,n){var i=r.axis,o=i.grid,s=a.get("type"),l=yY(o,i).getOtherAxis(i).getGlobalExtent(),c=i.toGlobalCoord(i.dataToCoord(t,!0));if(s&&"none"!==s){var u=lY(a),d=bY[s](i,c,l);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=sN(o.model,r);hY(t,e,p,r,a,n)},t.prototype.getHandleTransform=function(e,t,r){var a=sN(t.axis.grid.model,t,{labelInside:!1});a.labelMargin=r.get(["handle","margin"]);var n=pY(t.axis,e,a);return{x:n[0],y:n[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,r,a){var n=r.axis,i=n.grid,o=n.getGlobalExtent(!0),s=yY(i,n).getOtherAxis(n).getGlobalExtent(),l="x"===n.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(o[1],c[l]),c[l]=Math.max(o[0],c[l]);var u=(s[1]+s[0])/2,d=[u,u];d[l]=c[l];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:p[l]}},t}(sY);function yY(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var bY={line:function(e,t,r){var a=fY([t,r[0]],[t,r[1]],_Y(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r){var a=Math.max(1,e.getBandWidth()),n=r[1]-r[0];return{type:"Rect",shape:mY([t-a/2,r[0]],[a,n],_Y(e))}}};function _Y(e){return"x"===e.dim?0:1}var xY=vY,wY=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(gm),DY=wY,SY=Jl(),CY=Ia["k"];function TY(e,t,r){if(!Ta["a"].node){var a=t.getZr();SY(a).records||(SY(a).records={}),IY(a,t);var n=SY(a).records[e]||(SY(a).records[e]={});n.handler=r}}function IY(e,t){function r(r,a){e.on(r,(function(r){var n=PY(t);CY(SY(e).records,(function(e){e&&a(e,r,n.dispatchAction)})),OY(n.pendings,t)}))}SY(e).initialized||(SY(e).initialized=!0,r("click",Ia["h"](MY,"click")),r("mousemove",Ia["h"](MY,"mousemove")),r("globalout",AY))}function OY(e,t){var r,a=e.showTip.length,n=e.hideTip.length;a?r=e.showTip[a-1]:n&&(r=e.hideTip[n-1]),r&&(r.dispatchAction=null,t.dispatchAction(r))}function AY(e,t,r){e.handler("leave",null,r)}function MY(e,t,r,a){t.handler(e,r,a)}function PY(e){var t={showTip:[],hideTip:[]},r=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=r,e.dispatchAction(a))};return{dispatchAction:r,pendings:t}}function kY(e,t){if(!Ta["a"].node){var r=t.getZr(),a=(SY(r).records||{})[e];a&&(SY(r).records[e]=null)}}var NY=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=t.getComponent("tooltip"),n=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";TY("axisPointer",r,(function(e,t,r){"none"!==n&&("leave"===e||n.indexOf(e)>=0)&&r({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){kY("axisPointer",t)},t.prototype.dispose=function(e,t){kY("axisPointer",t)},t.type="axisPointer",t}(Hy),EY=NY;function LY(e,t){var r,a=[],n=e.seriesIndex;if(null==n||!(r=t.getSeriesByIndex(n)))return{point:[]};var i=r.getData(),o=Zl(i,e);if(null==o||o<0||Ia["t"](o))return{point:[]};var s=i.getItemGraphicEl(o),l=r.coordinateSystem;if(r.getTooltipPosition)a=r.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),d=u.dim,p=c.dim,h="x"===d||"radius"===d?1:0,f=i.mapDimension(p),m=[];m[h]=i.get(f,o),m[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),a=l.dataToPoint(m)||[]}else a=l.dataToPoint(i.getValues(Ia["H"](l.dimensions,(function(e){return i.mapDimension(e)})),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),a=[g.x+g.width/2,g.y+g.height/2]}return{point:a,el:s}}var RY=Jl();function FY(e,t,r){var a=e.currTrigger,n=[e.x,e.y],i=e,o=e.dispatchAction||Object(Ia["c"])(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){qY(n)&&(n=LY({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=qY(n),c=i.axesInfo,u=s.axesInfo,d="leave"===a||qY(n),p={},h={},f={list:[],map:{}},m={showPointer:Object(Ia["h"])($Y,h),showTooltip:Object(Ia["h"])(BY,f)};Object(Ia["k"])(s.coordSysMap,(function(e,t){var r=l||e.containPoint(n);Object(Ia["k"])(s.coordSysAxesInfo[t],(function(e,t){var a=e.axis,i=WY(c,e);if(!d&&r&&(!c||i)){var o=i&&i.value;null!=o||l||(o=a.pointToData(n)),null!=o&&jY(e,o,m,!1,p)}}))}));var g={};return Object(Ia["k"])(u,(function(e,t){var r=e.linkGroup;r&&!h[t]&&Object(Ia["k"])(r.axesInfo,(function(t,a){var n=h[a];if(t!==e&&n){var i=n.value;r.mapper&&(i=e.axis.scale.parse(r.mapper(i,HY(t),HY(e)))),g[e.key]=i}}))})),Object(Ia["k"])(g,(function(e,t){jY(u[t],e,m,!0,p)})),zY(h,u,p),GY(f,n,e,o),UY(u,o,r),p}}function jY(e,t,r,a,n){var i=e.axis;if(!i.scale.isBlank()&&i.containData(t))if(e.involveSeries){var o=VY(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==n.seriesIndex&&Object(Ia["m"])(n,s[0]),!a&&e.snap&&i.containData(l)&&null!=l&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}else r.showPointer(e,t)}function VY(e,t){var r=t.axis,a=r.dim,n=e,i=[],o=Number.MAX_VALUE,s=-1;return Object(Ia["k"])(t.seriesModels,(function(t,l){var c,u,d=t.getData().mapDimensionsAll(a);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,r);u=p.dataIndices,c=p.nestestValue}else{if(u=t.getData().indicesOfNearest(d[0],e,"category"===r.type?.5:null),!u.length)return;c=t.getData().get(d[0],u[0])}if(null!=c&&isFinite(c)){var h=e-c,f=Math.abs(h);f<=o&&((f=0&&s<0)&&(o=f,s=h,n=c,i.length=0),Object(Ia["k"])(u,(function(e){i.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:i,snapToValue:n}}function $Y(e,t,r,a){e[t.key]={value:r,payloadBatch:a}}function BY(e,t,r,a){var n=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(t.triggerTooltip&&n.length){var l=t.coordSys.model,c=BN(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function zY(e,t,r){var a=r.axesInfo=[];Object(Ia["k"])(t,(function(t,r){var n=t.axisPointerModel.option,i=e[r];i?(!t.useHandle&&(n.status="show"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):!t.useHandle&&(n.status="hide"),"show"===n.status&&a.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}))}function GY(e,t,r,a){if(!qY(t)&&e.list.length){var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}else a({type:"hideTip"})}function UY(e,t,r){var a=r.getZr(),n="axisPointerLastHighlights",i=RY(a)[n]||{},o=RY(a)[n]={};Object(Ia["k"])(e,(function(e,t){var r=e.axisPointerModel.option;"show"===r.status&&e.triggerEmphasis&&Object(Ia["k"])(r.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));var s=[],l=[];Object(Ia["k"])(i,(function(e,t){!o[t]&&l.push(e)})),Object(Ia["k"])(o,(function(e,t){!i[t]&&s.push(e)})),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function WY(e,t){for(var r=0;r<(e||[]).length;r++){var a=e[r];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function HY(e){var t=e.axis.model,r={},a=r.axisDim=e.axis.dim;return r.axisIndex=r[a+"AxisIndex"]=t.componentIndex,r.axisName=r[a+"AxisName"]=t.name,r.axisId=r[a+"AxisId"]=t.id,r}function qY(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function YY(e){UN.registerAxisPointerClass("CartesianAxisPointer",xY),e.registerComponentModel(DY),e.registerComponentView(EY),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(Ia["t"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=PN(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},FY)}function XY(e){tC(rE),tC(YY)}var KY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.makeElOption=function(e,t,r,a,n){var i=r.axis;"angle"===i.dim&&(this.animationThreshold=Math.PI/18);var o=i.polar,s=o.getOtherAxis(i),l=s.getExtent(),c=i.dataToCoord(t),u=a.get("type");if(u&&"none"!==u){var d=lY(a),p=JY[u](i,o,c,l);p.style=d,e.graphicKey=p.type,e.pointer=p}var h=a.get(["label","margin"]),f=ZY(t,r,a,o,h);cY(e,r,a,n,f)},t}(sY);function ZY(e,t,r,a,n){var i=t.axis,o=i.dataToCoord(e),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,d=a.getRadiusAxis().getExtent();if("radius"===i.dim){var p=On();Nn(p,p,s),kn(p,p,[a.cx,a.cy]),l=U_([o,-n],p);var h=t.getModel("axisLabel").get("rotate")||0,f=MN.innerTextLayout(s,h*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var m=d[1];l=a.coordToPoint([m+n,o]);var g=a.cx,v=a.cy;c=Math.abs(l[0]-g)/m<.3?"center":l[0]>g?"left":"right",u=Math.abs(l[1]-v)/m<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var JY={line:function(e,t,r,a){return"angle"===e.dim?{type:"Line",shape:fY(t.coordToPoint([a[0],r]),t.coordToPoint([a[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:r}}},shadow:function(e,t,r,a){var n=Math.max(1,e.getBandWidth()),i=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:gY(t.cx,t.cy,a[0],a[1],(-r-n/2)*i,(n/2-r)*i)}:{type:"Sector",shape:gY(t.cx,t.cy,r-n/2,r+n/2,0,2*Math.PI)}}},QY=KY,eX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.findAxisModel=function(e){var t,r=this.ecModel;return r.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(gm),tX=eX,rX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rc).models[0]},t.type="polarAxis",t}(gm);Ia["K"](rX,fP);var aX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="angleAxis",t}(rX),nX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="radiusAxis",t}(rX),iX=function(e){function t(t,r){return e.call(this,"radius",t,r)||this}return Ca(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(nN);iX.prototype.dataToRadius=nN.prototype.dataToCoord,iX.prototype.radiusToData=nN.prototype.coordToData;var oX=iX,sX=Jl(),lX=function(e){function t(t,r){return e.call(this,"angle",t,r||[0,360])||this}return Ca(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),r=e.scale,a=r.getExtent(),n=r.count();if(a[1]-a[0]<1)return 0;var i=a[0],o=e.dataToCoord(i+1)-e.dataToCoord(i),s=Math.abs(o),l=ws(null==i?"":i+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var d=Math.max(0,Math.floor(u)),p=sX(e.model),h=p.lastAutoInterval,f=p.lastTickCount;return null!=h&&null!=f&&Math.abs(h-d)<=1&&Math.abs(f-n)<=1&&h>d?d=h:(p.lastTickCount=n,p.lastAutoInterval=d),d},t}(nN);lX.prototype.dataToAngle=nN.prototype.dataToCoord,lX.prototype.angleToData=nN.prototype.coordToData;var cX=lX,uX=["radius","angle"],dX=function(){function e(e){this.dimensions=uX,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new oX,this._angleAxis=new cX,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);a.inverse?i=o-360:o=i+360;var s=Math.sqrt(t*t+r*r);t/=s,r/=s;var l=Math.atan2(-r,t)/Math.PI*180,c=lo)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,n=-Math.sin(r)*t+this.cy;return[a,n]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),n=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:e.inverse,contain:function(e,t){var r=e-this.cx,a=t-this.cy,n=r*r+a*a,o=this.r,s=this.r0;return o!==s&&n-i<=o*o&&n+i>=s*s}}},e.prototype.convertToPixel=function(e,t,r){var a=pX(t);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(e,t,r){var a=pX(t);return a===this?this.pointToData(r):null},e}();function pX(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}var hX=dX;function fX(e,t,r){var a=t.get("center"),n=r.getWidth(),i=r.getHeight();e.cx=nl(a[0],n),e.cy=nl(a[1],i);var o=e.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");null==l?l=[0,"100%"]:Ia["t"](l)||(l=[0,l]);var c=[nl(l[0],s),nl(l[1],s)];o.inverse?o.setExtent(c[1],c[0]):o.setExtent(c[0],c[1])}function mX(e,t){var r=this,a=r.getAngleAxis(),n=r.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===r){var t=e.getData();Ia["k"](Mk(t,"radius"),(function(e){n.scale.unionExtentFromData(t,e)})),Ia["k"](Mk(t,"angle"),(function(e){a.scale.unionExtentFromData(t,e)}))}})),xk(a.scale,a.model),xk(n.scale,n.model),"category"===a.type&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function gX(e){return"angleAxis"===e.mainType}function vX(e,t){var r;if(e.type=t.get("type"),e.scale=wk(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),gX(t)){e.inverse=e.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=null!==(r=t.get("endAngle"))&&void 0!==r?r:a+(e.inverse?-360:360);e.setExtent(a,n)}t.axis=e,e.model=t}var yX={dimensions:uX,create:function(e,t){var r=[];return e.eachComponent("polar",(function(e,a){var n=new hX(a+"");n.update=mX;var i=n.getRadiusAxis(),o=n.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");vX(i,s),vX(o,l),fX(n,e,t),r.push(n),e.coordinateSystem=n,n.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",rc).models[0];0,e.coordinateSystem=t.coordinateSystem}})),r}},bX=yX,_X=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function xX(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var a=e.coordToPoint([t[0],r]),n=e.coordToPoint([t[1],r]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function wX(e){var t=e.getRadiusAxis();return t.inverse?0:1}function DX(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var SX=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return Ca(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var r=e.axis,a=r.polar,n=a.getRadiusAxis().getExtent(),i=r.getTicksCoords(),o=r.getMinorTicksCoords(),s=Ia["H"](r.getViewLabels(),(function(e){e=Ia["d"](e);var t=r.scale,a="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=r.dataToCoord(a),e}));DX(s),DX(i),Ia["k"](_X,(function(t){!e.get([t,"show"])||r.scale.isBlank()&&"axisLine"!==t||CX[t](this.group,e,a,i,o,n,s)}),this)}},t.type="angleAxis",t}(UN),CX={axisLine:function(e,t,r,n,i,o){var s,l=t.getModel(["axisLine","lineStyle"]),c=r.getAngleAxis(),u=Math.PI/180,d=c.getExtent(),p=wX(r),h=p?0:1,f=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=0===o[h]?new a[f]({shape:{cx:r.cx,cy:r.cy,r:o[p],startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:c.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new Gb({shape:{cx:r.cx,cy:r.cy,r:o[p],r0:o[h]},style:l.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,e.add(s)},axisTick:function(e,t,r,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[wX(r)],c=Ia["H"](a,(function(e){return new t_({shape:xX(r,[l,l+s],e.coord)})}));e.add(j_(c,{style:Ia["i"](o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),c=i[wX(r)],u=[],d=0;df?"left":"right",v=Math.abs(h[1]-m)/p<.3?"middle":h[1]>m?"top":"bottom";if(s&&s[d]){var y=s[d];Ia["A"](y)&&y.textStyle&&(o=new Hh(y.textStyle,l,l.ecModel))}var b=new Wd({silent:MN.isLabelSilent(t),style:wh(o,{x:h[0],y:h[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:a.formattedLabel,align:g,verticalAlign:v})});if(e.add(b),u){var _=MN.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=a.rawLabel,Hd(b).eventData=_}}),this)},splitLine:function(e,t,r,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d=0?"p":"n",O=w;y&&(a[s][T]||(a[s][T]={p:w,n:w}),O=a[s][T][I]);var A=void 0,M=void 0,P=void 0,k=void 0;if("radius"===d.dim){var N=d.dataToCoord(C)-w,E=i.dataToCoord(T);Math.abs(N)=k})}}}))}function RX(e){var t={};Ia["k"](e,(function(e,r){var a=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=EX(n,i),s=i.getExtent(),l="category"===i.type?i.getBandWidth():Math.abs(s[1]-s[0])/a.count(),c=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[o]=c;var d=NX(e);u[d]||c.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var p=nl(e.get("barWidth"),l),h=nl(e.get("barMaxWidth"),l),f=e.get("barGap"),m=e.get("barCategoryGap");p&&!u[d].width&&(p=Math.min(c.remainedWidth,p),u[d].width=p,c.remainedWidth-=p),h&&(u[d].maxWidth=h),null!=f&&(c.gap=f),null!=m&&(c.categoryGap=m)}));var r={};return Ia["k"](t,(function(e,t){r[t]={};var a=e.stacks,n=e.bandWidth,i=nl(e.categoryGap,n),o=nl(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-i)/(l+(l-1)*o);c=Math.max(c,0),Ia["k"](a,(function(e,t){var r=e.maxWidth;r&&r=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],n="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),a[n]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-n]=0===n?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(e,t,r){var a=eK(t);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(e,t,r){var a=eK(t);return a===this?this.pointToData(r):null},e}();function eK(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}var tK=QX;function rK(e,t){var r=[];return e.eachComponent("singleAxis",(function(a,n){var i=new tK(a,e,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,r.push(i)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",rc).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),r}var aK={create:rK,dimensions:JX},nK=aK,iK=["x","y"],oK=["width","height"],sK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.makeElOption=function(e,t,r,a,n){var i=r.axis,o=i.coordinateSystem,s=uK(o,1-cK(i)),l=o.dataToPoint(t)[0],c=a.get("type");if(c&&"none"!==c){var u=lY(a),d=lK[c](i,l,s);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=zX(r);hY(t,e,p,r,a,n)},t.prototype.getHandleTransform=function(e,t,r){var a=zX(t,{labelInside:!1});a.labelMargin=r.get(["handle","margin"]);var n=pY(t.axis,e,a);return{x:n[0],y:n[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,r,a){var n=r.axis,i=n.coordinateSystem,o=cK(n),s=uK(i,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=uK(i,1-o),u=(c[1]+c[0])/2,d=[u,u];return d[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(sY),lK={line:function(e,t,r){var a=fY([t,r[0]],[t,r[1]],cK(e));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(e,t,r){var a=e.getBandWidth(),n=r[1]-r[0];return{type:"Rect",shape:mY([t-a/2,r[0]],[a,n],cK(e))}}};function cK(e){return e.isHorizontal()?0:1}function uK(e,t){var r=e.getRect();return[r[iK[t]],r[iK[t]]+r[oK[t]]]}var dK=sK,pK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="single",t}(Hy);function hK(e){tC(YY),UN.registerAxisPointerClass("SingleAxisPointer",dK),e.registerComponentView(pK),e.registerComponentView(qX),e.registerComponentModel(XX),IP(e,"single",XX,XX.defaultOption),e.registerCoordinateSystem("single",nK)}var fK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(t,r,a){var n=dm(t);e.prototype.init.apply(this,arguments),mK(t,n)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),mK(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(gm);function mK(e,t){var r,a=e.cellSize;r=Ia["t"](a)?a:e.cellSize=[a,a],1===r.length&&(r[1]=r[0]);var n=Ia["H"]([0,1],(function(e){return lm(t,e)&&(r[e]="auto"),null!=r[e]&&"auto"!==r[e]}));um(e,t,{type:"box",ignoreSize:n})}var gK=fK,vK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){var a=this.group;a.removeAll();var n=e.coordinateSystem,i=n.getRangeInfo(),o=n.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,i,a),this._renderLines(e,i,o,a),this._renderYearText(e,i,o,a),this._renderMonthText(e,s,o,a),this._renderWeekText(e,s,i,o,a)},t.prototype._renderDayRect=function(e,t,r){for(var a=e.coordinateSystem,n=e.getModel("itemStyle").getItemStyle(),i=a.getCellWidth(),o=a.getCellHeight(),s=t.start.time;s<=t.end.time;s=a.getNextNDay(s,1).time){var l=a.dataToRect([s],!1).tl,c=new Id({shape:{x:l[0],y:l[1],width:i,height:o},cursor:"default",style:n});r.add(c)}},t.prototype._renderLines=function(e,t,r,a){var n=this,i=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){p(c.formatedDate),0===u&&(c=i.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=i.getDateInfo(d)}function p(t){n._firstDayOfMonth.push(i.getDateInfo(t)),n._firstDayPoints.push(i.dataToRect([t],!1).tl);var l=n._getLinePointsOfOneWeek(e,t,r);n._tlpoints.push(l[0]),n._blpoints.push(l[l.length-1]),s&&n._drawSplitline(l,o,a)}p(i.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(n._getEdgesPoints(n._tlpoints,l,r),o,a),s&&this._drawSplitline(n._getEdgesPoints(n._blpoints,l,r),o,a)},t.prototype._getEdgesPoints=function(e,t,r){var a=[e[0].slice(),e[e.length-1].slice()],n="horizontal"===r?0:1;return a[0][n]=a[0][n]-t/2,a[1][n]=a[1][n]+t/2,a},t.prototype._drawSplitline=function(e,t,r){var a=new Zb({z2:20,shape:{points:e},style:t});r.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,t,r){for(var a=e.coordinateSystem,n=a.getDateInfo(t),i=[],o=0;o<7;o++){var s=a.getNextNDay(n.time,o),l=a.dataToRect([s.time],!1);i[2*s.day]=l.tl,i[2*s.day+1]=l["horizontal"===r?"bl":"tr"]}return i},t.prototype._formatterLabel=function(e,t){return Object(Ia["C"])(e)&&e?Kf(e,t):Object(Ia["w"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,r,a,n){var i=t[0],o=t[1],s=["center","bottom"];"bottom"===a?(o+=n,s=["center","top"]):"left"===a?i-=n:"right"===a?(i+=n,s=["center","top"]):o-=n;var l=0;return"left"!==a&&"right"!==a||(l=Math.PI/2),{rotation:l,x:i,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,r,a){var n=e.getModel("yearLabel");if(n.get("show")){var i=n.get("margin"),o=n.get("position");o||(o="horizontal"!==r?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===r?0:1,d={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var h=n.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:p},m=this._formatterLabel(h,f),g=new Wd({z2:30,style:wh(n,{text:m}),silent:n.get("silent")});g.attr(this._yearTextPositionControl(g,d[o],r,o,i)),a.add(g)}},t.prototype._monthTextPositionControl=function(e,t,r,a,n){var i="left",o="top",s=e[0],l=e[1];return"horizontal"===r?(l+=n,t&&(i="center"),"start"===a&&(o="bottom")):(s+=n,t&&(o="middle"),"start"===a&&(i="right")),{x:s,y:l,align:i,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,r,a){var n=e.getModel("monthLabel");if(n.get("show")){var i=n.get("nameMap"),o=n.get("margin"),s=n.get("position"),l=n.get("align"),c=[this._tlpoints,this._blpoints];i&&!Object(Ia["C"])(i)||(i&&(t=cf(i)||t),i=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,d="horizontal"===r?0:1;o="start"===s?-o:o;for(var p="center"===l,h=n.get("silent"),f=0;f=a.start.time&&r.timeo.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];r[0].time>r[1].time&&(t=!0,r.reverse());var a=Math.floor(r[1].time/bK)-Math.floor(r[0].time/bK)+1,n=new Date(r[0].time),i=n.getDate(),o=r[1].date.getDate();n.setDate(i+a-1);var s=n.getDate();if(s!==o){var l=n.getTime()-r[1].time>0?1:-1;while((s=n.getDate())!==o&&(n.getTime()-r[1].time)*l>0)a-=l,n.setDate(s-l)}var c=Math.floor((a+r[0].day+6)/7),u=t?1-c:c-1;return t&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:c,nthWeek:u,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||0===e&&ta.lweek)return null;var n=7*(e-1)-a.fweek+t,i=new Date(a.start.time);return i.setDate(+a.start.d+n),this.getDateInfo(i)},e.create=function(t,r){var a=[];return t.eachComponent("calendar",(function(n){var i=new e(n,t,r);a.push(i),n.coordinateSystem=i})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=a[e.get("calendarIndex")||0])})),a},e.dimensions=["time","value"],e}();function xK(e){var t=e.calendarModel,r=e.seriesModel,a=t?t.coordinateSystem:r?r.coordinateSystem:null;return a}var wK=_K;function DK(e){e.registerComponentModel(gK),e.registerComponentView(yK),e.registerCoordinateSystem("calendar",wK)}function SK(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),null==t.parentId){var a=t.parentOption;a?t.parentId=a.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function CK(e,t){var r;return Ia["k"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(r=!0)})),r}function TK(e,t,r){var a=Ia["m"]({},r),n=e[t],i=r.$action||"merge";"merge"===i?n?(Ia["I"](n,a,!0),um(n,a,{ignoreSize:!0}),pm(r,n),AK(r,n),AK(r,n,"shape"),AK(r,n,"style"),AK(r,n,"extra"),r.clipPath=n.clipPath):e[t]=a:"replace"===i?e[t]=a:"remove"===i&&n&&(e[t]=null)}var IK=["transition","enterFrom","leaveTo"],OK=IK.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function AK(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),e&&t)for(var a=r?IK:OK,n=0;n=0;l--){c=r[l],u=Ul(c.id,null),d=null!=u?n.get(u):null;if(d){p=d.parent,m=NK(p);var g=p===a?{width:i,height:o}:{width:m.width,height:m.height},v={},y=sm(d,c,g,null,{hv:c.hv,boundingMode:c.bounding},v);if(!NK(d).isNew&&y){for(var b=c.transition,_={},x=0;x=0)?_[w]=D:d[w]=D}ch(d,_,e,0)}else d.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(r){FK(r,NK(r).option,t,e._lastGraphicModel)})),this._elMap=Ia["f"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Hy);function LK(e){var t=Ia["q"](kK,e)?kK[e]:E_(e);var r=new t({});return NK(r).type=e,r}function RK(e,t,r,a){var n=LK(r);return t.add(n),a.set(e,n),NK(n).id=e,NK(n).isNew=!0,n}function FK(e,t,r,a){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){FK(e,t,r,a)})),YH(e,t,a),r.removeKey(NK(e).id))}function jK(e,t,r,a){e.isGroup||Ia["k"]([["cursor",au.prototype.cursor],["zlevel",a||0],["z",r||0],["z2",0]],(function(r){var a=r[0];Ia["q"](t,a)?e[a]=Ia["P"](t[a],r[1]):null==e[a]&&(e[a]=r[1])})),Ia["k"](Ia["F"](t),(function(r){if(0===r.indexOf("on")){var a=t[r];e[r]=Ia["w"](a)?a:null}})),Ia["q"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function VK(e){return e=Ia["m"]({},e),Ia["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(tm),(function(t){delete e[t]})),e}function $K(e,t,r){var a=Hd(e).eventData;e.silent||e.ignore||a||(a=Hd(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),a&&(a.info=r.info)}function BK(e){e.registerComponentModel(PK),e.registerComponentView(EK),e.registerPreprocessor((function(e){var t=e.graphic;Object(Ia["t"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var zK=["x","y","radius","angle","single"],GK=["cartesian2d","polar","singleAxis"];function UK(e){var t=e.get("coordinateSystem");return Object(Ia["r"])(GK,t)>=0}function WK(e){return e+"Axis"}function HK(e,t){var r,a=Object(Ia["f"])(),n=[],i=Object(Ia["f"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){i.get(e.uid)||s(e)}));do{r=!1,e.eachComponent("dataZoom",o)}while(r);function o(e){!i.get(e.uid)&&l(e)&&(s(e),r=!0)}function s(e){i.set(e.uid,!0),n.push(e),c(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,r){var n=a.get(e);n&&n[r]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(a.get(e)||a.set(e,[]))[t]=!0}))}return n}function qK(e){var t=e.ecModel,r={infoList:[],infoMap:Object(Ia["f"])()};return e.eachTargetAxis((function(e,a){var n=t.getComponent(WK(e),a);if(n){var i=n.getCoordSysModel();if(i){var o=i.uid,s=r.infoMap.get(o);s||(s={model:i,axisModels:[]},r.infoList.push(s),r.infoMap.set(o,s)),s.axisModels.push(n)}}})),r}var YK=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),XK=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return Ca(t,e),t.prototype.init=function(e,t,r){var a=KK(e);this.settledOption=a,this.mergeDefaultAndTheme(e,r),this._doInit(a)},t.prototype.mergeOption=function(e){var t=KK(e);Object(Ia["I"])(this.option,e,!0),Object(Ia["I"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var r=this.settledOption;Object(Ia["k"])([["start","startValue"],["end","endValue"]],(function(e,a){"value"===this._rangePropMode[a]&&(t[e[0]]=r[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(Ia["f"])(),r=this._fillSpecifiedTargetAxis(t);r?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(Ia["k"])(zK,(function(r){var a=this.getReferringComponents(WK(r),ac);if(a.specified){t=!0;var n=new YK;Object(Ia["k"])(a.models,(function(e){n.add(e.componentIndex)})),e.set(r,n)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var r=this.ecModel,a=!0;if(a){var n="vertical"===t?"y":"x",i=r.findComponents({mainType:n+"Axis"});o(i,n)}if(a){i=r.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});o(i,"single")}function o(t,r){var n=t[0];if(n){var i=new YK;if(i.add(n.componentIndex),e.set(r,i),a=!1,"x"===r||"y"===r){var o=n.getReferringComponents("grid",rc).models[0];o&&Object(Ia["k"])(t,(function(e){n.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",rc).models[0]&&i.add(e.componentIndex)}))}}}a&&Object(Ia["k"])(zK,(function(t){if(a){var n=r.findComponents({mainType:WK(t),filter:function(e){return"category"===e.get("type",!0)}});if(n[0]){var i=new YK;i.add(n[0].componentIndex),e.set(t,i),a=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,r=this.get("rangeMode");Object(Ia["k"])([["start","startValue"],["end","endValue"]],(function(a,n){var i=null!=e[a[0]],o=null!=e[a[1]];i&&!o?t[n]="percent":!i&&o?t[n]="value":r?t[n]=r[n]:i&&(t[n]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,r){null==e&&(e=this.ecModel.getComponent(WK(t),r))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(r,a){Object(Ia["k"])(r.indexList,(function(r){e.call(t,a,r)}))}))},t.prototype.getAxisProxy=function(e,t){var r=this.getAxisModel(e,t);if(r)return r.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var r=this._targetAxisInfoMap.get(e);if(r&&r.indexMap[t])return this.ecModel.getComponent(WK(e),t)},t.prototype.setRawRange=function(e){var t=this.option,r=this.settledOption;Object(Ia["k"])([["start","startValue"],["end","endValue"]],(function(a){null==e[a[0]]&&null==e[a[1]]||(t[a[0]]=r[a[0]]=e[a[0]],t[a[1]]=r[a[1]]=e[a[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(Ia["k"])(["start","startValue","end","endValue"],(function(r){t[r]=e[r]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var r=this.findRepresentativeAxisProxy();return r?r.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,r=this._targetAxisInfoMap.keys(),a=0;ai[1];if(u&&!d&&!p)return!0;u&&(n=!0),d&&(t=!0),p&&(r=!0)}return n&&t&&r}))}else nZ(a,(function(r){if("empty"===n)e.setData(t=t.map(r,(function(e){return o(e)?e:NaN})));else{var a={};a[r]=i,t.selectRange(a)}}));nZ(a,(function(e){t.setApproximateExtent(i,e)}))}}))}function o(e){return e>=i[0]&&e<=i[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;nZ(["min","max"],(function(a){var n=t.get(a+"Span"),i=t.get(a+"ValueSpan");null!=i&&(i=this.getAxisModel().axis.scale.parse(i)),null!=i?n=al(r[0]+i,r,[0,100],!0):null!=n&&(i=al(n,[0,100],r,!0)-r[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=i}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=cl(r,[0,500]);a=Math.min(a,20);var n=e.axis.scale.rawExtentInfo;0!==t[0]&&n.setDeterminedMinMax("min",+r[0].toFixed(a)),100!==t[1]&&n.setDeterminedMinMax("max",+r[1].toFixed(a)),n.freeze()}},e}();function sZ(e,t,r){var a=[1/0,-1/0];nZ(r,(function(e){Pk(a,e.getData(),t)}));var n=e.getAxisModel(),i=vk(n.axis.scale,n,a).calculate();return[i.min,i.max]}var lZ=oZ,cZ={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(r){r.eachTargetAxis((function(a,n){var i=e.getComponent(WK(a),n);t(a,n,i,r)}))}))}t((function(e,t,r,a){r.__dzAxisProxy=null}));var r=[];t((function(t,a,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new lZ(t,a,i,e),r.push(n.__dzAxisProxy))}));var a=Object(Ia["f"])();return Object(Ia["k"])(r,(function(e){Object(Ia["k"])(e.getTargetSeriesModels(),(function(e){a.set(e.uid,e)}))})),a},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,r){e.getAxisProxy(t,r).reset(e)})),e.eachTargetAxis((function(r,a){e.getAxisProxy(r,a).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var r=t.getDataPercentWindow(),a=t.getDataValueWindow();e.setCalculatedRange({start:r[0],end:r[1],startValue:a[0],endValue:a[1]})}}))}},uZ=cZ;function dZ(e){e.registerAction("dataZoom",(function(e,t){var r=HK(t,e);Object(Ia["k"])(r,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var pZ=!1;function hZ(e){pZ||(pZ=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,uZ),dZ(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function fZ(e){e.registerComponentModel(QK),e.registerComponentView(aZ),hZ(e)}var mZ=function(){function e(){}return e}(),gZ={};function vZ(e,t){gZ[e]=t}function yZ(e){return gZ[e]}var bZ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;Ia["k"](this.option.feature,(function(e,r){var a=yZ(r);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Ia["I"](e,a.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(gm),_Z=bZ;function xZ(e,t,r){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=om(a,i,n);nm(t.get("orient"),e,t.get("itemGap"),o.width,o.height),sm(e,a,i,n)}function wZ(e,t){var r=Wf(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),e=new Id({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),e}var DZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.render=function(e,t,r,a){var n=this.group;if(n.removeAll(),e.get("show")){var i=+e.get("itemSize"),o="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),c=[];Ia["k"](s,(function(e,t){c.push(t)})),new jI(this._featureNames||[],c).add(u).update(u).remove(Ia["h"](u,null)).execute(),this._featureNames=c,xZ(n,e,r),n.add(wZ(n.getBoundingRect(),e)),o||n.eachChild((function(e){var t=e.__title,a=e.ensureState("emphasis"),o=a.textConfig||(a.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Ia["w"](l)&&t){var c=l.style||(l.style={}),u=ws(t,Wd.makeFont(c)),d=e.x+n.x,p=e.y+n.y+i,h=!1;p+u.height>r.getHeight()&&(o.position="top",h=!0);var f=h?-5-u.height:i+10;d+u.width/2>r.getWidth()?(o.position=["100%",f],c.align="right"):d-u.width/2<0&&(o.position=[0,f],c.align="left")}}))}function u(n,i){var o,u=c[n],p=c[i],h=s[u],f=new Hh(h,e,e.ecModel);if(a&&null!=a.newTitle&&a.featureName===u&&(h.title=a.newTitle),u&&!p){if(SZ(u))o={onclick:f.option.onclick,featureName:u};else{var m=yZ(u);if(!m)return;o=new m}l[u]=o}else if(o=l[p],!o)return;o.uid=Yh("toolbox-feature"),o.model=f,o.ecModel=t,o.api=r;var g=o instanceof mZ;u||!p?!f.get("show")||g&&o.unusable?g&&o.remove&&o.remove(t,r):(d(f,o,u),f.setIconStatus=function(e,t){var r=this.option,a=this.iconPaths;r.iconStatus=r.iconStatus||{},r.iconStatus[e]=t,a[e]&&("emphasis"===t?Ap:Mp)(a[e])},o instanceof mZ&&o.render&&o.render(f,t,r,a)):g&&o.dispose&&o.dispose(t,r)}function d(a,s,l){var c,u,d=a.getModel("iconStyle"),p=a.getModel(["emphasis","iconStyle"]),h=s instanceof mZ&&s.getIcons?s.getIcons():a.get("icon"),f=a.get("title")||{};Ia["C"](h)?(c={},c[l]=h):c=h,Ia["C"](f)?(u={},u[l]=f):u=f;var m=a.iconPaths={};Ia["k"](c,(function(l,c){var h=Z_(l,{},{x:-i/2,y:-i/2,width:i,height:i});h.setStyle(d.getItemStyle());var f=h.ensureState("emphasis");f.style=p.getItemStyle();var g=new Wd({style:{text:u[c],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:Mh({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},t)},ignore:!0});h.setTextContent(g),rx({el:h,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),h.__title=u[c],h.on("mouseover",(function(){var t=p.getItemStyle(),a=o?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";g.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),h.setTextConfig({position:p.get("textPosition")||a}),g.ignore=!e.get("showTitle"),r.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==a.get(["iconStatus",c])&&r.leaveEmphasis(this),g.hide()})),("emphasis"===a.get(["iconStatus",c])?Ap:Mp)(h),n.add(h),h.on("click",Ia["c"](s.onclick,s,t,r,c)),m[c]=h}))}},t.prototype.updateView=function(e,t,r,a){Ia["k"](this._features,(function(e){e instanceof mZ&&e.updateView&&e.updateView(e.model,t,r,a)}))},t.prototype.remove=function(e,t){Ia["k"](this._features,(function(r){r instanceof mZ&&r.remove&&r.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){Ia["k"](this._features,(function(r){r instanceof mZ&&r.dispose&&r.dispose(e,t)}))},t.type="toolbox",t}(Hy);function SZ(e){return 0===e.indexOf("my")}var CZ=DZ,TZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.onclick=function(e,t){var r=this.model,a=r.get("name")||e.get("title.0.text")||"echarts",n="svg"===t.getZr().painter.getType(),i=n?"svg":r.get("type",!0)||"png",o=t.getConnectedDataURL({type:i,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),s=Ta["a"].browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||n){var l=o.split(","),c=l[0].indexOf("base64")>-1,u=n?decodeURIComponent(l[1]):l[1];c&&(u=window.atob(u));var d=a+"."+i;if(window.navigator.msSaveOrOpenBlob){var p=u.length,h=new Uint8Array(p);while(p--)h[p]=u.charCodeAt(p);var f=new Blob([h]);window.navigator.msSaveOrOpenBlob(f,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var g=m.contentWindow,v=g.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),g.focus(),v.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var y=r.get("lang"),b='',_=window.open();_.document.write(b),_.document.title=a}else{var x=document.createElement("a");x.download=a+"."+i,x.target="_blank",x.href=o;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(w)}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(mZ),IZ=TZ,OZ="__ec_magicType_stack__",AZ=[["line","bar"],["stack"]],MZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),r={};return Ia["k"](e.get("type"),(function(e){t[e]&&(r[e]=t[e])})),r},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,r){var a=this.model,n=a.get(["seriesIndex",r]);if(PZ[r]){var i,o={series:[]},s=function(e){var t=e.subType,n=e.id,i=PZ[r](t,n,e,a);i&&(Ia["i"](i,e.option),o.series.push(i));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===r||"bar"===r)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",d=e.getReferringComponents(u,rc).models[0],p=d.componentIndex;o[u]=o[u]||[];for(var h=0;h<=p;h++)o[u][p]=o[u][p]||{};o[u][p].boundaryGap="bar"===r}}};Ia["k"](AZ,(function(e){Ia["r"](e,r)>=0&&Ia["k"](e,(function(e){a.setIconStatus(e,"normal")}))})),a.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:null==n?null:{seriesIndex:n}},s);var l=r;"stack"===r&&(i=Ia["I"]({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),"emphasis"!==a.get(["iconStatus",r])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:i,featureName:"magicType"})}},t}(mZ),PZ={line:function(e,t,r,a){if("bar"===e)return Ia["I"]({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(e,t,r,a){if("line"===e)return Ia["I"]({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(e,t,r,a){var n=r.get("stack")===OZ;if("line"===e||"bar"===e)return a.setIconStatus("stack",n?"normal":"emphasis"),Ia["I"]({id:t,stack:n?"":OZ},a.get(["option","stack"])||{},!0)}};US({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var kZ=MZ,NZ=new Array(60).join("-"),EZ="\t";function LZ(e){var t={},r=[],a=[];return e.eachRawSeries((function(e){var n=e.coordinateSystem;if(!n||"cartesian2d"!==n.type&&"polar"!==n.type)r.push(e);else{var i=n.getBaseAxis();if("category"===i.type){var o=i.dim+"_"+i.index;t[o]||(t[o]={categoryAxis:i,valueAxis:n.getOtherAxis(i),series:[]},a.push({axisDim:i.dim,axisIndex:i.index})),t[o].series.push(e)}else r.push(e)}})),{seriesGroupByCategoryAxis:t,other:r,meta:a}}function RZ(e){var t=[];return Ia["k"](e,(function(e,r){var a=e.categoryAxis,n=e.valueAxis,i=n.dim,o=[" "].concat(Ia["H"](e.series,(function(e){return e.name}))),s=[a.model.getCategories()];Ia["k"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(i),(function(e){return e})))}));for(var l=[o.join(EZ)],c=0;c=0)return!0}var BZ=new RegExp("["+EZ+"]+","g");function zZ(e){for(var t=e.split(/\n+/g),r=VZ(t.shift()).split(BZ),a=[],n=Ia["H"](r,(function(e){return{name:e,data:[]}})),i=0;i=0;n--){var i=r[n];if(i[a])break}if(n<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var s=o.getPercentRange();r[0][a]={dataZoomId:a,start:s[0],end:s[1]}}}})),r.push(t)}function ZZ(e){var t=eJ(e),r=t[t.length-1];t.length>1&&t.pop();var a={};return YZ(r,(function(e,r){for(var n=t.length-1;n>=0;n--)if(e=t[n][r],e){a[r]=e;break}})),a}function JZ(e){XZ(e).snapshots=null}function QZ(e){return eJ(e).length}function eJ(e){var t=XZ(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var tJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.onclick=function(e,t){JZ(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(mZ);US({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var rJ=tJ,aJ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],nJ=function(){function e(e,t,r){var a=this;this._targetInfoList=[];var n=oJ(t,e);Object(Ia["k"])(sJ,(function(e,t){(!r||!r.include||Object(Ia["r"])(r.include,t)>=0)&&e(n,a._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,r){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var a=uJ[e.brushType](0,r,t);e.__rangeOffset={offset:pJ[e.brushType](a.values,e.range,[1,1]),xyMinMax:a.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,r){Object(Ia["k"])(e,(function(e){var a=this.findTargetInfo(e,t);a&&!0!==a&&Object(Ia["k"])(a.coordSyses,(function(a){var n=uJ[e.brushType](1,a,e.range,!0);r(e,n.values,a,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(Ia["k"])(e,(function(e){var r=this.findTargetInfo(e,t);if(e.range=e.range||[],r&&!0!==r){e.panelId=r.panelId;var a=uJ[e.brushType](0,r.coordSys,e.coordRange),n=e.__rangeOffset;e.range=n?pJ[e.brushType](a.values,n.offset,fJ(a.xyMinMax,n.xyMinMax)):a.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(Ia["H"])(this._targetInfoList,(function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Bz(a),isTargetByCursor:Gz(a,e,r.coordSysModel),getLinearBrushOtherExtent:zz(a)}}))},e.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return!0===a||a&&Object(Ia["r"])(a.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=oJ(t,e),n=0;ne[1]&&e.reverse(),e}function oJ(e,t){return ec(e,t,{includeMainTypes:aJ})}var sJ={grid:function(e,t){var r=e.xAxisModels,a=e.yAxisModels,n=e.gridModels,i=Object(Ia["f"])(),o={},s={};(r||a||n)&&(Object(Ia["k"])(r,(function(e){var t=e.axis.grid.model;i.set(t.id,t),o[t.id]=!0})),Object(Ia["k"])(a,(function(e){var t=e.axis.grid.model;i.set(t.id,t),s[t.id]=!0})),Object(Ia["k"])(n,(function(e){i.set(e.id,e),o[e.id]=!0,s[e.id]=!0})),i.each((function(e){var n=e.coordinateSystem,i=[];Object(Ia["k"])(n.getCartesians(),(function(e,t){(Object(Ia["r"])(r,e.getAxis("x").model)>=0||Object(Ia["r"])(a,e.getAxis("y").model)>=0)&&i.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:i[0],coordSyses:i,getPanelRect:cJ.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(Ia["k"])(e.geoModels,(function(e){var r=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:r,coordSyses:[r],getPanelRect:cJ.geo})}))}},lJ=[function(e,t){var r=e.xAxisModel,a=e.yAxisModel,n=e.gridModel;return!n&&r&&(n=r.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],cJ={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(G_(e)),t}},uJ={lineX:Object(Ia["h"])(dJ,0),lineY:Object(Ia["h"])(dJ,1),rect:function(e,t,r,a){var n=e?t.pointToData([r[0][0],r[1][0]],a):t.dataToPoint([r[0][0],r[1][0]],a),i=e?t.pointToData([r[0][1],r[1][1]],a):t.dataToPoint([r[0][1],r[1][1]],a),o=[iJ([n[0],i[0]]),iJ([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Object(Ia["H"])(r,(function(r){var i=e?t.pointToData(r,a):t.dataToPoint(r,a);return n[0][0]=Math.min(n[0][0],i[0]),n[1][0]=Math.min(n[1][0],i[1]),n[0][1]=Math.max(n[0][1],i[0]),n[1][1]=Math.max(n[1][1],i[1]),i}));return{values:i,xyMinMax:n}}};function dJ(e,t,r,a){var n=r.getAxis(["x","y"][e]),i=iJ(Object(Ia["H"])([0,1],(function(e){return t?n.coordToData(n.toLocalCoord(a[e]),!0):n.toGlobalCoord(n.dataToCoord(a[e]))}))),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var pJ={lineX:Object(Ia["h"])(hJ,0),lineY:Object(Ia["h"])(hJ,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Object(Ia["H"])(e,(function(e,a){return[e[0]-r[0]*t[a][0],e[1]-r[1]*t[a][1]]}))}};function hJ(e,t,r,a){return[t[0]-a[e]*r[0],t[1]-a[e]*r[1]]}function fJ(e,t){var r=mJ(e),a=mJ(t),n=[r[0]/a[0],r[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function mJ(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var gJ=nJ,vJ=Ia["k"],yJ=ql("toolbox-dataZoom_"),bJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.render=function(e,t,r,a){this._brushController||(this._brushController=new $z(r.getZr()),this._brushController.on("brush",Ia["c"](this._onBrush,this)).mount()),DJ(e,t,this,a,r),wJ(e,t)},t.prototype.onclick=function(e,t,r){_J[r].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var r={},a=this.ecModel;this._brushController.updateCovers([]);var n=new gJ(xJ(this.model),a,{include:["grid"]});n.matchOutputRanges(t,a,(function(e,t,r){if("cartesian2d"===r.type){var a=e.brushType;"rect"===a?(i("x",r,t[0]),i("y",r,t[1])):i({lineX:"x",lineY:"y"}[a],r,t)}})),KZ(a,r),this._dispatchZoomAction(r)}function i(e,t,n){var i=t.getAxis(e),s=i.model,l=o(e,s,a),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(n=CB(0,n.slice(),i.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(r[l.id]={dataZoomId:l.id,startValue:n[0],endValue:n[1]})}function o(e,t,r){var a;return r.eachComponent({mainType:"dataZoom",subType:"select"},(function(r){var n=r.getAxisModel(e,t.componentIndex);n&&(a=r)})),a}},t.prototype._dispatchZoomAction=function(e){var t=[];vJ(e,(function(e,r){t.push(Ia["d"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(mZ),_J={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(ZZ(this.ecModel))}};function xJ(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function wJ(e,t){e.setIconStatus("back",QZ(t)>1?"emphasis":"normal")}function DJ(e,t,r,a,n){var i=r._isZoomActive;a&&"takeGlobalCursor"===a.type&&(i="dataZoomSelect"===a.key&&a.dataZoomSelectActive),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new gJ(xJ(e),t,{include:["grid"]}),s=o.makePanelOpts(n,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));r._brushController.setPanels(s).enableBrush(!(!i||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Vm("dataZoom",(function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(t&&null!=t.get(r)){var a=t.getModel(r),n=[],i=xJ(a),o=ec(e,i);return vJ(o.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),vJ(o.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),n}function s(e,t,r){var i=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:yJ+t+i};o[r]=i,n.push(o)}}));var SJ=bJ;function CJ(e){e.registerComponentModel(_Z),e.registerComponentView(CZ),vZ("saveAsImage",IZ),vZ("magicType",kZ),vZ("dataView",qZ),vZ("dataZoom",SJ),vZ("restore",rJ),tC(fZ)}var TJ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(gm),IJ=TJ;function OJ(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function AJ(e){if(Ta["a"].domSupported)for(var t=document.documentElement.style,r=0,a=e.length;r-1?(l+="top:50%",c+="translateY(-50%) rotate("+(i="left"===o?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(i="top"===o?225:45)+"deg)");var u=i*Math.PI/180,d=s+n,p=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),h=Math.round(100*((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-d)/2))/100;l+=";"+o+":-"+h+"px";var f=t+" solid "+n+"px;",m=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+a+";"];return'
'}function VJ(e,t){var r="cubic-bezier(0.23,1,0.32,1)",a=" "+e/2+"s "+r,n="opacity"+a+",visibility"+a;return t||(a=" "+e+"s "+r,n+=Ta["a"].transformSupported?","+LJ+a:",left"+a+",top"+a),EJ+":"+n}function $J(e,t,r){var a=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Ta["a"].transformSupported)return r?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ta["a"].transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return r?"top:0;left:0;"+LJ+":"+o+";":[["top",0],["left",0],[MJ,o]]}function BJ(e){var t=[],r=e.get("fontSize"),a=e.getTextColor();a&&t.push("color:"+a),t.push("font:"+e.getFont());var n=Object(Ia["P"])(e.get("lineHeight"),Math.round(3*r/2));r&&t.push("line-height:"+n+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),Object(Ia["k"])(["decoration","align"],(function(r){var a=e.get(r);a&&t.push("text-"+r+":"+a)})),t.join(";")}function zJ(e,t,r){var a=[],n=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),d=Oy(e,"html"),p=l+"px "+c+"px "+o+"px "+s;return a.push("box-shadow:"+p),t&&n&&a.push(VJ(n,r)),i&&a.push("background-color:"+i),Object(Ia["k"])(["width","color","radius"],(function(t){var r="border-"+t,n=Uf(r),i=e.get(n);null!=i&&a.push(r+":"+i+("color"===t?"":"px"))})),a.push(BJ(u)),null!=d&&a.push("padding:"+Wf(d).join("px ")+"px"),a.join(";")+";"}function GJ(e,t,r,a,n){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&an(e,o,r,a,n)}else{e[0]=a,e[1]=n;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var UJ=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ta["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=e.getZr(),n=t.appendTo,i=n&&(Object(Ia["C"])(n)?document.querySelector(n):Object(Ia["v"])(n)?n:Object(Ia["w"])(n)&&n(e.getDom()));GJ(this._styleCoord,a,i,e.getWidth()/2,e.getHeight()/2),(i||e.getDom()).appendChild(r),this._api=e,this._container=i;var o=this;r.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=a.handler,r=a.painter.getViewportRoot();yn(r,e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),r=NJ(t,"position"),a=t.style;"absolute"!==a.position&&"absolute"!==r&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,n=this._styleCoord;r.innerHTML?a.cssText=RJ+zJ(e,!this._firstShow,this._longHide)+$J(n[0],n[1],!0)+"border-color:"+Jf(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,r,a,n){var i=this.el;if(null!=e){var o="";if(Object(Ia["C"])(n)&&"item"===r.get("trigger")&&!OJ(r)&&(o=jJ(r,a,n)),Object(Ia["C"])(e))i.innerHTML=e+o;else if(e){i.innerHTML="",Object(Ia["t"])(e)||(e=[e]);for(var s=0;s=0?this._tryShow(r,a):"leave"===e&&this._hide(a))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,r=this._api,a=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a&&"click"!==a){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!r.isDisposed()&&n.manuallyShowTip(e,t,r,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,r,a){if(a.from!==this.uid&&!Ta["a"].node&&r.getDom()){var n=eQ(a,r);this._ticket="";var i=a.dataByCoordSys,o=iQ(a,t,r);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:a.position,positionDefault:"bottom"},n)}else if(a.tooltip&&null!=a.x&&null!=a.y){var l=ZJ;l.x=a.x,l.y=a.y,l.update(),Hd(l).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:l},n)}else if(i)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:i,tooltipOption:a.tooltipOption},n);else if(null!=a.seriesIndex){if(this._manuallyAxisShowTip(e,t,r,a))return;var c=LY(a,t),u=c.point[0],d=c.point[1];null!=u&&null!=d&&this._tryShow({offsetX:u,offsetY:d,target:c.el,position:a.position,positionDefault:"bottom"},n)}else null!=a.x&&null!=a.y&&(r.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:r.getZr().findHover(a.x,a.y).target},n))}},t.prototype.manuallyHideTip=function(e,t,r,a){var n=this._tooltipContent;this._tooltipModel&&n.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(eQ(a,r))},t.prototype._manuallyAxisShowTip=function(e,t,r,a){var n=a.seriesIndex,i=a.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=n&&null!=i&&null!=o){var s=t.getSeriesByIndex(n);if(s){var l=s.getData(),c=QJ([l.getItemModel(i),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return r.dispatchAction({type:"updateAxisPointer",seriesIndex:n,dataIndex:i,position:a.position}),!0}}},t.prototype._tryShow=function(e,t){var r=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var n=e.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,e);else if(r){var i,o,s=Hd(r);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,pw(r,(function(e){return null!=Hd(e).dataIndex?(i=e,!0):null!=Hd(e).tooltipConfig?(o=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var r=e.get("showDelay");t=Object(Ia["c"])(t,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(t,r):t()},t.prototype._showAxisTooltip=function(e,t){var r=this._ecModel,a=this._tooltipModel,n=[t.offsetX,t.offsetY],i=QJ([t.tooltipOption],a),o=this._renderMode,s=[],l=fy("section",{blocks:[],noHeader:!0}),c=[],u=new Ay;Object(Ia["k"])(e,(function(e){Object(Ia["k"])(e.dataByAxis,(function(e){var t=r.getComponent(e.axisDim+"Axis",e.axisIndex),n=e.value;if(t&&null!=n){var i=dY(n,t.axis,r,e.seriesDataIndices,e.valueLabelOpt),d=fy("section",{header:i,noHeader:!Object(Ia["T"])(i),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(Ia["k"])(e.seriesDataIndices,(function(l){var p=r.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=p.getDataParams(h);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=Ck(t.axis,{value:n}),f.axisValueLabel=i,f.marker=u.makeTooltipMarker("item",Jf(f.color),o);var m=Dv(p.formatTooltip(h,!0,null)),g=m.frag;if(g){var v=QJ([p],a).get("valueFormatter");d.blocks.push(v?Object(Ia["m"])({valueFormatter:v},g):g)}m.text&&c.push(m.text),s.push(f)}}))}}))})),l.blocks.reverse(),c.reverse();var d=t.position,p=i.get("order"),h=_y(l,u,o,p,r.get("useUTC"),i.get("textStyle"));h&&c.unshift(h);var f="richText"===o?"\n\n":"
",m=c.join(f);this._showOrMove(i,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(i,d,n[0],n[1],this._tooltipContent,s):this._showTooltipContent(i,m,s,Math.random()+"",n[0],n[1],d,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,r){var a=this._ecModel,n=Hd(t),i=n.seriesIndex,o=a.getSeriesByIndex(i),s=n.dataModel||o,l=n.dataIndex,c=n.dataType,u=s.getData(c),d=this._renderMode,p=e.positionDefault,h=QJ([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=h.get("trigger");if(null==f||"item"===f){var m=s.getDataParams(l,c),g=new Ay;m.marker=g.makeTooltipMarker("item",Jf(m.color),d);var v=Dv(s.formatTooltip(l,!1,c)),y=h.get("order"),b=h.get("valueFormatter"),_=v.frag,x=_?_y(b?Object(Ia["m"])({valueFormatter:b},_):_,g,d,y,a.get("useUTC"),h.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,x,m,w,e.offsetX,e.offsetY,e.position,e.target,g)})),r({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:i,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,r){var a="html"===this._renderMode,n=Hd(t),i=n.tooltipConfig,o=i.option||{},s=o.encodeHTMLContent;if(Object(Ia["C"])(o)){var l=o;o={content:l,formatter:l},s=!0}s&&a&&o.content&&(o=Object(Ia["d"])(o),o.content=dn(o.content));var c=[o],u=this._ecModel.getComponent(n.componentMainType,n.componentIndex);u&&c.push(u),c.push({formatter:o.content});var d=e.positionDefault,p=QJ(c,this._tooltipModel,d?{position:d}:null),h=p.get("content"),f=Math.random()+"",m=new Ay;this._showOrMove(p,(function(){var r=Object(Ia["d"])(p.get("formatterParams")||{});this._showTooltipContent(p,h,r,f,e.offsetX,e.offsetY,e.position,t,m)})),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,r,a,n,i,o,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");o=o||e.get("position");var d=t,p=this._getNearestPoint([n,i],r,e.get("trigger"),e.get("borderColor")),h=p.color;if(u)if(Object(Ia["C"])(u)){var f=e.ecModel.get("useUTC"),m=Object(Ia["t"])(r)?r[0]:r,g=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=u,g&&(d=Cf(m.axisValue,d,f)),d=Xf(d,r,!0)}else if(Object(Ia["w"])(u)){var v=Object(Ia["c"])((function(t,a){t===this._ticket&&(c.setContent(a,l,e,h,o),this._updatePosition(e,o,n,i,c,r,s))}),this);this._ticket=a,d=u(r,a,v)}else d=u;c.setContent(d,l,e,h,o),c.show(e,h),this._updatePosition(e,o,n,i,c,r,s)}},t.prototype._getNearestPoint=function(e,t,r,a){return"axis"===r||Object(Ia["t"])(t)?{color:a||("html"===this._renderMode?"#fff":"none")}:Object(Ia["t"])(t)?void 0:{color:a||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,r,a,n,i,o){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=n.getSize(),u=e.get("align"),d=e.get("verticalAlign"),p=o&&o.getBoundingRect().clone();if(o&&p.applyTransform(o.transform),Object(Ia["w"])(t)&&(t=t([r,a],i,n.el,p,{viewSize:[s,l],contentSize:c.slice()})),Object(Ia["t"])(t))r=nl(t[0],s),a=nl(t[1],l);else if(Object(Ia["A"])(t)){var h=t;h.width=c[0],h.height=c[1];var f=om(h,{width:s,height:l});r=f.x,a=f.y,u=null,d=null}else if(Object(Ia["C"])(t)&&o){var m=aQ(t,p,c,e.get("borderWidth"));r=m[0],a=m[1]}else{m=tQ(r,a,n,s,l,u?null:20,d?null:20);r=m[0],a=m[1]}if(u&&(r-=nQ(u)?c[0]/2:"right"===u?c[0]:0),d&&(a-=nQ(d)?c[1]/2:"bottom"===d?c[1]:0),OJ(e)){m=rQ(r,a,n,s,l);r=m[0],a=m[1]}n.moveTo(r,a)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var r=this._lastDataByCoordSys,a=this._cbParamsList,n=!!r&&r.length===e.length;return n&&Object(Ia["k"])(r,(function(r,i){var o=r.dataByAxis||[],s=e[i]||{},l=s.dataByAxis||[];n=n&&o.length===l.length,n&&Object(Ia["k"])(o,(function(e,r){var i=l[r]||{},o=e.seriesDataIndices||[],s=i.seriesDataIndices||[];n=n&&e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&o.length===s.length,n&&Object(Ia["k"])(o,(function(e,t){var r=s[t];n=n&&e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex})),a&&Object(Ia["k"])(e.seriesDataIndices,(function(e){var r=e.seriesIndex,i=t[r],o=a[r];i&&o&&o.data!==i.data&&(n=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!n},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!Ta["a"].node&&t.getDom()&&(bx(this,"_updatePosition"),this._tooltipContent.dispose(),kY("itemTooltip",t))},t.type="tooltip",t}(Hy);function QJ(e,t,r){var a,n=t.ecModel;r?(a=new Hh(r,n,n),a=new Hh(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Hh&&(o=o.get("tooltip",!0)),Object(Ia["C"])(o)&&(o={formatter:o}),o&&(a=new Hh(o,a,n)))}return a}function eQ(e,t){return e.dispatchAction||Object(Ia["c"])(t.dispatchAction,t)}function tQ(e,t,r,a,n,i,o){var s=r.getSize(),l=s[0],c=s[1];return null!=i&&(e+l+i+2>a?e-=l+i:e+=i),null!=o&&(t+c+o>n?t-=c+o:t+=o),[e,t]}function rQ(e,t,r,a,n){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,a)-o,t=Math.min(t+s,n)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function aQ(e,t,r,a){var n=r[0],i=r[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-n/2,l=t.y+u/2-i/2;break;case"top":s=t.x+c/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+c/2-n/2,l=t.y+u+o;break;case"left":s=t.x-n-o,l=t.y+u/2-i/2;break;case"right":s=t.x+c+o,l=t.y+u/2-i/2}return[s,l]}function nQ(e){return"center"===e||"middle"===e}function iQ(e,t,r){var a=tc(e).queryOptionMap,n=a.keys()[0];if(n&&"series"!==n){var i=nc(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s,l=r.getViewOfComponentModel(o);return l.group.traverse((function(t){var r=Hd(t).tooltipConfig;if(r&&r.name===e.name)return s=t,!0})),s?{componentMainType:n,componentIndex:o.componentIndex,el:s}:void 0}}}var oQ=JJ;function sQ(e){tC(YY),e.registerComponentModel(IJ),e.registerComponentView(oQ),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ia["L"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ia["L"])}var lQ=["rect","polygon","keep","clear"];function cQ(e,t){var r=Ml(e?e.brush:[]);if(r.length){var a=[];Ia["k"](r,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(a=a.concat(t))}));var n=e&&e.toolbox;Ia["t"](n)&&(n=n[0]),n||(n={feature:{}},e.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),uQ(s),t&&!s.length&&s.push.apply(s,lQ)}}function uQ(e){var t={};Ia["k"](e,(function(e){t[e]=1})),e.length=0,Ia["k"](t,(function(t,r){e.push(r)}))}var dQ=Ia["k"];function pQ(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function hQ(e,t,r){var a={};return dQ(t,(function(t){var i=a[t]=n();dQ(e[t],(function(e,a){if(kj.isValidType(a)){var n={type:a,visual:e};r&&r(n,t),i[a]=new kj(n),"opacity"===a&&(n=Ia["d"](n),n.type="colorAlpha",i.__hidden.__alphaForOpacity=new kj(n))}}))})),a;function n(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function fQ(e,t,r){var a;Ia["k"](r,(function(e){t.hasOwnProperty(e)&&pQ(t[e])&&(a=!0)})),a&&Ia["k"](r,(function(r){t.hasOwnProperty(r)&&pQ(t[r])?e[r]=Ia["d"](t[r]):delete e[r]}))}function mQ(e,t,r,a,n,i){var o,s={};function l(e){return ow(r,o,e)}function c(e,t){lw(r,o,e,t)}function u(e,u){o=null==i?e:u;var d=r.getRawDataItem(o);if(!d||!1!==d.visualMap)for(var p=a.call(n,e),h=t[p],f=s[p],m=0,g=f.length;mt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&PQ(t)}};function PQ(e){return new Yn(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var kQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new $z(t.getZr())).on("brush",Ia["c"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,r,a){this.model=e,this._updateController(e,t,r,a)},t.prototype.updateTransform=function(e,t,r,a){SQ(t),this._updateController(e,t,r,a)},t.prototype.updateVisual=function(e,t,r,a){this.updateTransform(e,t,r,a)},t.prototype.updateView=function(e,t,r,a){this._updateController(e,t,r,a)},t.prototype._updateController=function(e,t,r,a){(!a||a.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(r)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,r=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:Ia["d"](r),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:Ia["d"](r),$from:t})},t.type="brush",t}(Hy),NQ=kQ,EQ="#ddd",LQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return Ca(t,e),t.prototype.optionUpdated=function(e,t){var r=this.option;!t&&fQ(r,e,["inBrush","outOfBrush"]);var a=r.inBrush=r.inBrush||{};r.outOfBrush=r.outOfBrush||{color:EQ},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Ia["H"](e,(function(e){return RQ(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=RQ(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(gm);function RQ(e,t){return Ia["I"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Hh(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var FQ=LQ,jQ=["rect","polygon","lineX","lineY","keep","clear"],VQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.render=function(e,t,r){var a,n,i;t.eachComponent({mainType:"brush"},(function(e){a=e.brushType,n=e.brushOption.brushMode||"single",i=i||!!e.areas.length})),this._brushType=a,this._brushMode=n,Ia["k"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===n:"clear"===t?i:t===a)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,r){this.render(e,t,r)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),r={};return Ia["k"](e.get("type",!0),(function(e){t[e]&&(r[e]=t[e])})),r},t.prototype.onclick=function(e,t,r){var a=this._brushType,n=this._brushMode;"clear"===r?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===r?a:a!==r&&r,brushMode:"keep"===r?"multiple"===n?"single":"multiple":n}})},t.getDefaultOption=function(e){var t={show:!0,type:jQ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(mZ),$Q=VQ;function BQ(e){e.registerComponentView(NQ),e.registerComponentModel(FQ),e.registerPreprocessor(cQ),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,CQ),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Ia["L"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ia["L"]),vZ("brush",$Q)}var zQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return Ca(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(gm),GQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.render=function(e,t,r){if(this.group.removeAll(),e.get("show")){var a=this.group,n=e.getModel("textStyle"),i=e.getModel("subtextStyle"),o=e.get("textAlign"),s=Ia["P"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new Wd({style:wh(n,{text:e.get("text"),fill:n.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),d=new Wd({style:wh(i,{text:u,fill:i.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),h=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!p&&!f,d.silent=!h&&!f,p&&l.on("click",(function(){Qf(p,"_"+e.get("target"))})),h&&d.on("click",(function(){Qf(h,"_"+e.get("subtarget"))})),Hd(l).eventData=Hd(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(l),u&&a.add(d);var m=a.getBoundingRect(),g=e.getBoxLayoutParams();g.width=m.width,g.height=m.height;var v=om(g,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));o||(o=e.get("left")||e.get("right"),"middle"===o&&(o="center"),"right"===o?v.x+=v.width:"center"===o&&(v.x+=v.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),a.x=v.x,a.y=v.y,a.markRedraw();var y={align:o,verticalAlign:s};l.setStyle(y),d.setStyle(y),m=a.getBoundingRect();var b=v.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var x=new Id({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(Hy);function UQ(e){e.registerComponentModel(zQ),e.registerComponentView(GQ)}var WQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return Ca(t,e),t.prototype.init=function(e,t,r){this.mergeDefaultAndTheme(e,r),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,r=t.data||[],a=t.axisType,n=this._names=[];"category"===a?(e=[],Object(Ia["k"])(r,(function(t,r){var a,i=Ul(Nl(t),"");Object(Ia["A"])(t)?(a=Object(Ia["d"])(t),a.value=r):a=r,e.push(a),n.push(i)}))):e=r;var i={category:"ordinal",time:"time",value:"number"}[a]||"number",o=this._data=new fO([{name:"value",type:i}],this);o.initData(e,n)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(gm),HQ=WQ,qQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="timeline.slider",t.defaultOption=Zh(HQ.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(HQ);Object(Ia["K"])(qQ,wv.prototype);var YQ=qQ,XQ=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="timeline",t}(Hy),KQ=XQ,ZQ=function(e){function t(t,r,a,n){var i=e.call(this,t,r,a)||this;return i.type=n||"value",i}return Ca(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(nN),JQ=ZQ,QQ=Math.PI,e0=Jl(),t0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,r){if(this.model=e,this.api=r,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,r),n=this._createGroup("_mainGroup"),i=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(a,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return fy("nameValue",{noName:!0,value:t})},Object(Ia["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](a,n,o,e)}),this),this._renderAxisLabel(a,i,o,e),this._position(a,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var r,a=e.get(["label","position"]),n=e.get("orient"),i=a0(e,t);r=null==a||"auto"===a?"horizontal"===n?i.y+i.height/2=0||"+"===r?"left":"right"},u={horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:QQ/2},p="vertical"===n?i.height:i.width,h=e.getModel("controlStyle"),f=h.get("show",!0),m=f?h.get("itemSize"):0,g=f?h.get("itemGap"):0,v=m+g,y=e.get(["label","rotate"])||0;y=y*QQ/180;var b=h.get("position",!0),_=f&&h.get("showPlayBtn",!0),x=f&&h.get("showPrevBtn",!0),w=f&&h.get("showNextBtn",!0),D=0,S=p;"left"===b||"bottom"===b?(_&&(o=[0,0],D+=v),x&&(s=[D,0],D+=v),w&&(l=[S-m,0],S-=v)):(_&&(o=[S-m,0],S-=v),x&&(s=[0,0],D+=v),w&&(l=[S-m,0],S-=v));var C=[D,S];return e.get("inverse")&&C.reverse(),{viewRect:i,mainLength:p,orient:n,rotation:d[n],labelRotation:y,labelPosOpt:r,labelAlign:e.get(["label","align"])||c[n],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[n],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:m,controlGap:g}},t.prototype._position=function(e,t){var r=this._mainGroup,a=this._labelGroup,n=e.viewRect;if("vertical"===e.orient){var i=On(),o=n.x,s=n.y+n.height;kn(i,i,[-o,-s]),Nn(i,i,-QQ/2),kn(i,i,[o,s]),n=n.clone(),n.applyTransform(i)}var l=g(n),c=g(r.getBoundingRect()),u=g(a.getBoundingRect()),d=[r.x,r.y],p=[a.x,a.y];p[0]=d[0]=l[0][0];var h=e.labelPosOpt;if(null==h||Object(Ia["C"])(h)){var f="+"===h?0:1;v(d,c,l,1,f),v(p,u,l,1,1-f)}else{f=h>=0?0:1;v(d,c,l,1,f),p[1]=d[1]+h}function m(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,r,a,n){e[a]+=r[a][n]-t[a][n]}r.setPosition(d),a.setPosition(p),r.rotation=a.rotation=e.rotation,m(r),m(a)},t.prototype._createAxis=function(e,t){var r=t.getData(),a=t.get("axisType"),n=r0(t,a);n.getTicks=function(){return r.mapArray(["value"],(function(e){return{value:e}}))};var i=r.getDataExtent("value");n.setExtent(i[0],i[1]),n.calcNiceTicks();var o=new JQ("value",n,e.axisExtent,a);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new Gs;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,r,a){var n=r.getExtent();if(a.get(["lineStyle","show"])){var i=new t_({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:Object(Ia["m"])({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(i);var o=this._progressLine=new t_({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:Object(Ia["i"])({lineCap:"round",lineWidth:i.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,r,a){var n=this,i=a.getData(),o=r.scale.getTicks();this._tickSymbols=[],Object(Ia["k"])(o,(function(e){var o=r.dataToCoord(e.value),s=i.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),d={x:o,y:0,onclick:Object(Ia["c"])(n._changeTimeline,n,e.value)},p=i0(s,l,t,d);p.ensureState("emphasis").style=c.getItemStyle(),p.ensureState("progress").style=u.getItemStyle(),Hp(p);var h=Hd(p);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=a):h.dataIndex=h.dataModel=null,n._tickSymbols.push(p)}))},t.prototype._renderAxisLabel=function(e,t,r,a){var n=this,i=r.getLabelModel();if(i.get("show")){var o=a.getData(),s=r.getViewLabels();this._tickLabels=[],Object(Ia["k"])(s,(function(a){var i=a.tickValue,s=o.getItemModel(i),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),d=r.dataToCoord(a.tickValue),p=new Wd({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(Ia["c"])(n._changeTimeline,n,i),silent:!1,style:wh(l,{text:a.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});p.ensureState("emphasis").style=wh(c),p.ensureState("progress").style=wh(u),t.add(p),Hp(p),e0(p).dataIndex=i,n._tickLabels.push(p)}))}},t.prototype._renderControl=function(e,t,r,a){var n=e.controlSize,i=e.rotation,o=a.getModel("controlStyle").getItemStyle(),s=a.getModel(["emphasis","controlStyle"]).getItemStyle(),l=a.getPlayState(),c=a.get("inverse",!0);function u(e,r,l,c){if(e){var u=Ts(Object(Ia["P"])(a.get(["controlStyle",r+"BtnSize"]),n),n),d=[0,-u/2,u,u],p=n0(a,r+"Icon",d,{x:e[0],y:e[1],originX:n/2,originY:0,rotation:c?-i:0,rectHover:!0,style:o,onclick:l});p.ensureState("emphasis").style=s,t.add(p),Hp(p)}}u(e.nextBtnPosition,"next",Object(Ia["c"])(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",Object(Ia["c"])(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",Object(Ia["c"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,r,a){var n=a.getData(),i=a.getCurrentIndex(),o=n.getItemModel(i).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(Ia["c"])(s._handlePointerDrag,s),e.ondragend=Object(Ia["c"])(s._handlePointerDragend,s),o0(e,s._progressLine,i,r,a,!0)},onUpdate:function(e){o0(e,s._progressLine,i,r,a)}};this._currentPointer=i0(o,o,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,r){this._clearTimer(),this._pointerChangeTimeline([r.offsetX,r.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var r=this._toAxisCoord(e)[0],a=this._axis,n=ol(a.getExtent().slice());r>n[1]&&(r=n[1]),r=0&&(o[i]=+o[i].toFixed(p)),[o,d]}var S0={min:Object(Ia["h"])(D0,"min"),max:Object(Ia["h"])(D0,"max"),average:Object(Ia["h"])(D0,"average"),median:Object(Ia["h"])(D0,"median")};function C0(e,t){if(t){var r=e.getData(),a=e.coordinateSystem,n=a&&a.dimensions;if(!w0(t)&&!Object(Ia["t"])(t.coord)&&Object(Ia["t"])(n)){var i=T0(t,r,a,e);if(t=Object(Ia["d"])(t),t.type&&S0[t.type]&&i.baseAxis&&i.valueAxis){var o=Object(Ia["r"])(n,i.baseAxis.dim),s=Object(Ia["r"])(n,i.valueAxis.dim),l=S0[t.type](r,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(Ia["t"])(n))for(var c=t.coord,u=0;u<2;u++)S0[c[u]]&&(c[u]=P0(r,r.mapDimension(n[u]),c[u]));else t.coord=[];return t}}function T0(e,t,r,a){var n={};return null!=e.valueIndex||null!=e.valueDim?(n.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,n.valueAxis=r.getAxis(I0(a,n.valueDataDim)),n.baseAxis=r.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=r.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function I0(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function O0(e,t){return!(e&&e.containData&&t.coord&&!x0(t))||e.containData(t.coord)}function A0(e,t,r){return!(e&&e.containZone&&t.coord&&r.coord&&!x0(t)&&!x0(r))||e.containZone(t.coord,r.coord)}function M0(e,t){return e?function(e,r,a,n){var i=n<2?e.coord&&e.coord[n]:e.value;return Iv(i,t[n])}:function(e,r,a,n){return Iv(e.value,t[n])}}function P0(e,t,r){if("average"===r){var a=0,n=0;return e.each(t,(function(e,t){isNaN(e)||(a+=e,n++)})),a/n}return"median"===r?e.getMedian(t):e.getDataExtent(t)["max"===r?1:0]}var k0=Jl(),N0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.init=function(){this.markerGroupMap=Object(Ia["f"])()},t.prototype.render=function(e,t,r){var a=this,n=this.markerGroupMap;n.each((function(e){k0(e).keep=!1})),t.eachSeries((function(e){var n=y0.getMarkerModelFromSeries(e,a.type);n&&a.renderSeries(e,n,t,r)})),n.each((function(e){!k0(e).keep&&a.group.remove(e.group)}))},t.prototype.markKeep=function(e){k0(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var r=this;Object(Ia["k"])(e,(function(e){var a=y0.getMarkerModelFromSeries(e,r.type);if(a){var n=a.getData();n.eachItemGraphicEl((function(e){e&&(t?Pp(e):kp(e))}))}}))},t.type="marker",t}(Hy),E0=N0;function L0(e,t,r){var a=t.coordinateSystem;e.each((function(n){var i,o=e.getItemModel(n),s=nl(o.get("x"),r.getWidth()),l=nl(o.get("y"),r.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)i=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(a){var c=e.get(a.dimensions[0],n),u=e.get(a.dimensions[1],n);i=a.dataToPoint([c,u])}}else i=[s,l];isNaN(s)||(i[0]=s),isNaN(l)||(i[1]=l),e.setItemLayout(n,i)}))}var R0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=y0.getMarkerModelFromSeries(e,"markPoint");t&&(L0(t.getData(),e,r),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,r,a){var n=e.coordinateSystem,i=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,new UO),c=F0(n,e,t);t.setData(c),L0(t.getData(),e,a),c.each((function(e){var r=c.getItemModel(e),a=r.getShallow("symbol"),n=r.getShallow("symbolSize"),i=r.getShallow("symbolRotate"),s=r.getShallow("symbolOffset"),l=r.getShallow("symbolKeepAspect");if(Object(Ia["w"])(a)||Object(Ia["w"])(n)||Object(Ia["w"])(i)||Object(Ia["w"])(s)){var u=t.getRawValue(e),d=t.getDataParams(e);Object(Ia["w"])(a)&&(a=a(u,d)),Object(Ia["w"])(n)&&(n=n(u,d)),Object(Ia["w"])(i)&&(i=i(u,d)),Object(Ia["w"])(s)&&(s=s(u,d))}var p=r.getModel("itemStyle").getItemStyle(),h=sw(o,"color");p.fill||(p.fill=h),c.setItemVisual(e,{symbol:a,symbolSize:n,symbolRotate:i,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Hd(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(E0);function F0(e,t,r){var a;a=e?Object(Ia["H"])(e&&e.dimensions,(function(e){var r=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(Ia["m"])(Object(Ia["m"])({},r),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var n=new fO(a,r),i=Object(Ia["H"])(r.get("data"),Object(Ia["h"])(C0,t));e&&(i=Object(Ia["n"])(i,Object(Ia["h"])(O0,e)));var o=M0(!!e,a);return n.initData(i,null,o),n}var j0=R0;function V0(e){e.registerComponentModel(_0),e.registerComponentView(j0),e.registerPreprocessor((function(e){f0(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var $0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.createMarkerModelFromSeries=function(e,r,a){return new t(e,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(y0),B0=$0,z0=Jl(),G0=function(e,t,r,a){var n,i=e.getData();if(Object(Ia["t"])(a))n=a;else{var o=a.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=a.xAxis||null!=a.yAxis){var s=void 0,l=void 0;if(null!=a.yAxis||null!=a.xAxis)s=t.getAxis(null!=a.yAxis?"y":"x"),l=Object(Ia["O"])(a.yAxis,a.xAxis);else{var c=T0(a,i,t,e);s=c.valueAxis;var u=TO(i,c.valueDataDim);l=P0(i,u,o)}var d="x"===s.dim?0:1,p=1-d,h=Object(Ia["d"])(a),f={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,f.coord[p]=1/0;var m=r.get("precision");m>=0&&Object(Ia["z"])(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[d]=f.coord[d]=l,n=[h,f,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var g=[C0(e,n[0]),C0(e,n[1]),Object(Ia["m"])({},n[2])];return g[2].type=g[2].type||null,Object(Ia["I"])(g[2],g[0]),Object(Ia["I"])(g[2],g[1]),g};function U0(e){return!isNaN(e)&&!isFinite(e)}function W0(e,t,r,a){var n=1-e,i=a.dimensions[e];return U0(t[n])&&U0(r[n])&&t[e]===r[e]&&a.getAxis(i).containData(t[e])}function H0(e,t){if("cartesian2d"===e.type){var r=t[0].coord,a=t[1].coord;if(r&&a&&(W0(1,r,a,e)||W0(0,r,a,e)))return!0}return O0(e,t[0])&&O0(e,t[1])}function q0(e,t,r,a,n){var i,o=a.coordinateSystem,s=e.getItemModel(t),l=nl(s.get("x"),n.getWidth()),c=nl(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(c)){if(a.getMarkerPosition)i=a.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,d=e.get(u[0],t),p=e.get(u[1],t);i=o.dataToPoint([d,p])}if(uA(o,"cartesian2d")){var h=o.getAxis("x"),f=o.getAxis("y");u=o.dimensions;U0(e.get(u[0],t))?i[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):U0(e.get(u[1],t))&&(i[1]=f.toGlobalCoord(f.getExtent()[r?0:1]))}isNaN(l)||(i[0]=l),isNaN(c)||(i[1]=c)}else i=[l,c];e.setItemLayout(t,i)}var Y0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=y0.getMarkerModelFromSeries(e,"markLine");if(t){var a=t.getData(),n=z0(t).from,i=z0(t).to;n.each((function(t){q0(n,t,!0,e,r),q0(i,t,!1,e,r)})),a.each((function(e){a.setItemLayout(e,[n.getItemLayout(e),i.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,r,a){var n=e.coordinateSystem,i=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,new s$);this.group.add(l.group);var c=X0(n,e,t),u=c.from,d=c.to,p=c.line;z0(t).from=u,z0(t).to=d,t.setData(p);var h=t.get("symbol"),f=t.get("symbolSize"),m=t.get("symbolRotate"),g=t.get("symbolOffset");function v(t,r,n){var i=t.getItemModel(r);q0(t,r,n,e,a);var s=i.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=sw(o,"color")),t.setItemVisual(r,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:Object(Ia["P"])(i.get("symbolOffset",!0),g[n?0:1]),symbolRotate:Object(Ia["P"])(i.get("symbolRotate",!0),m[n?0:1]),symbolSize:Object(Ia["P"])(i.get("symbolSize"),f[n?0:1]),symbol:Object(Ia["P"])(i.get("symbol",!0),h[n?0:1]),style:s})}Object(Ia["t"])(h)||(h=[h,h]),Object(Ia["t"])(f)||(f=[f,f]),Object(Ia["t"])(m)||(m=[m,m]),Object(Ia["t"])(g)||(g=[g,g]),c.from.each((function(e){v(u,e,!0),v(d,e,!1)})),p.each((function(e){var t=p.getItemModel(e).getModel("lineStyle").getLineStyle();p.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),p.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(p),c.line.eachItemGraphicEl((function(e){Hd(e).dataModel=t,e.traverse((function(e){Hd(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(E0);function X0(e,t,r){var a;a=e?Object(Ia["H"])(e&&e.dimensions,(function(e){var r=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(Ia["m"])(Object(Ia["m"])({},r),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var n=new fO(a,r),i=new fO(a,r),o=new fO([],r),s=Object(Ia["H"])(r.get("data"),Object(Ia["h"])(G0,t,e,r));e&&(s=Object(Ia["n"])(s,Object(Ia["h"])(H0,e)));var l=M0(!!e,a);return n.initData(Object(Ia["H"])(s,(function(e){return e[0]})),null,l),i.initData(Object(Ia["H"])(s,(function(e){return e[1]})),null,l),o.initData(Object(Ia["H"])(s,(function(e){return e[2]}))),o.hasItemOption=!0,{from:n,to:i,line:o}}var K0=Y0;function Z0(e){e.registerComponentModel(B0),e.registerComponentView(K0),e.registerPreprocessor((function(e){f0(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var J0=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.createMarkerModelFromSeries=function(e,r,a){return new t(e,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(y0),Q0=J0,e1=Jl(),t1=function(e,t,r,a){var n=a[0],i=a[1];if(n&&i){var o=C0(e,n),s=C0(e,i),l=o.coord,c=s.coord;l[0]=Object(Ia["O"])(l[0],-1/0),l[1]=Object(Ia["O"])(l[1],-1/0),c[0]=Object(Ia["O"])(c[0],1/0),c[1]=Object(Ia["O"])(c[1],1/0);var u=Object(Ia["J"])([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function r1(e){return!isNaN(e)&&!isFinite(e)}function a1(e,t,r,a){var n=1-e;return r1(t[n])&&r1(r[n])}function n1(e,t){var r=t.coord[0],a=t.coord[1],n={coord:r,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return uA(e,"cartesian2d")?!(!r||!a||!a1(1,r,a,e)&&!a1(0,r,a,e))||A0(e,n,i):O0(e,n)||O0(e,i)}function i1(e,t,r,a,n){var i,o=a.coordinateSystem,s=e.getItemModel(t),l=nl(s.get(r[0]),n.getWidth()),c=nl(s.get(r[1]),n.getHeight());if(isNaN(l)||isNaN(c)){if(a.getMarkerPosition){var u=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=o.clampData(u),h=o.clampData(d),f=[];"x0"===r[0]?f[0]=p[0]>h[0]?d[0]:u[0]:f[0]=p[0]>h[0]?u[0]:d[0],"y0"===r[1]?f[1]=p[1]>h[1]?d[1]:u[1]:f[1]=p[1]>h[1]?u[1]:d[1],i=a.getMarkerPosition(f,r,!0)}else{var m=e.get(r[0],t),g=e.get(r[1],t),v=[m,g];o.clampData&&o.clampData(v,v),i=o.dataToPoint(v,!0)}if(uA(o,"cartesian2d")){var y=o.getAxis("x"),b=o.getAxis("y");m=e.get(r[0],t),g=e.get(r[1],t);r1(m)?i[0]=y.toGlobalCoord(y.getExtent()["x0"===r[0]?0:1]):r1(g)&&(i[1]=b.toGlobalCoord(b.getExtent()["y0"===r[1]?0:1]))}isNaN(l)||(i[0]=l),isNaN(c)||(i[1]=c)}else i=[l,c];return i}var o1=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],s1=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.updateTransform=function(e,t,r){t.eachSeries((function(e){var t=y0.getMarkerModelFromSeries(e,"markArea");if(t){var a=t.getData();a.each((function(t){var n=Object(Ia["H"])(o1,(function(n){return i1(a,t,n,e,r)}));a.setItemLayout(t,n);var i=a.getItemGraphicEl(t);i.setShape("points",n)}))}}),this)},t.prototype.renderSeries=function(e,t,r,a){var n=e.coordinateSystem,i=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(i)||s.set(i,{group:new Gs});this.group.add(l.group),this.markKeep(l);var c=l1(n,e,t);t.setData(c),c.each((function(t){var r=Object(Ia["H"])(o1,(function(r){return i1(c,t,r,e,a)})),i=n.getAxis("x").scale,s=n.getAxis("y").scale,l=i.getExtent(),u=s.getExtent(),d=[i.parse(c.get("x0",t)),i.parse(c.get("x1",t))],p=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];ol(d),ol(p);var h=!(l[0]>d[1]||l[1]p[1]||u[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(gm),h1=p1,f1=Ia["h"],m1=Ia["k"],g1=Gs,v1=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return Ca(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new g1),this.group.add(this._selectorGroup=new g1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,r){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var n=e.get("align"),i=e.get("orient");n&&"auto"!==n||(n="right"===e.get("left")&&"vertical"===i?"right":"left");var o=e.get("selector",!0),s=e.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===i?"end":"start"),this.renderInner(n,e,t,r,o,i,s);var l=e.getBoxLayoutParams(),c={width:r.getWidth(),height:r.getHeight()},u=e.get("padding"),d=om(l,c,u),p=this.layoutInner(e,n,d,a,o,s),h=om(Ia["i"]({width:p.width,height:p.height},l),c,u);this.group.x=h.x-p.x,this.group.y=h.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wZ(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,r,a,n,i,o){var s=this.getContentGroup(),l=Ia["f"](),c=t.get("selectedMode"),u=[];r.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),m1(t.getData(),(function(n,i){var o=n.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var d=new g1;return d.newline=!0,void s.add(d)}var p=r.getSeriesByName(o)[0];if(!l.get(o)){if(p){var h=p.getData(),f=h.getVisual("legendLineStyle")||{},m=h.getVisual("legendIcon"),g=h.getVisual("style"),v=this._createItem(p,o,i,n,t,e,f,g,m,c,a);v.on("click",f1(_1,o,null,a,u)).on("mouseover",f1(w1,p.name,null,a,u)).on("mouseout",f1(D1,p.name,null,a,u)),r.ssr&&v.eachChild((function(e){var t=Hd(e);t.seriesIndex=p.seriesIndex,t.dataIndex=i,t.ssrType="legend"})),l.set(o,!0)}else r.eachRawSeries((function(s){if(!l.get(o)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(o))return;var p=d.indexOfName(o),h=d.getItemVisual(p,"style"),f=d.getItemVisual(p,"legendIcon"),m=Object(no["h"])(h.fill);m&&0===m[3]&&(m[3]=.2,h=Ia["m"](Ia["m"]({},h),{fill:Object(no["i"])(m,"rgba")}));var g=this._createItem(s,o,i,n,t,e,{},h,f,c,a);g.on("click",f1(_1,null,o,a,u)).on("mouseover",f1(w1,null,o,a,u)).on("mouseout",f1(D1,null,o,a,u)),r.ssr&&g.eachChild((function(e){var t=Hd(e);t.seriesIndex=s.seriesIndex,t.dataIndex=i,t.ssrType="legend"})),l.set(o,!0)}}),this);0}}),this),n&&this._createSelector(n,t,a,i,o)},t.prototype._createSelector=function(e,t,r,a,n){var i=this.getSelectorGroup();m1(e,(function(e){var a=e.type,n=new Wd({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:"all"===a?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});i.add(n);var o=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);_h(n,{normal:o,emphasis:s},{defaultText:e.title}),Hp(n)}))},t.prototype._createItem=function(e,t,r,a,n,i,o,s,l,c,u){var d=e.visualDrawType,p=n.get("itemWidth"),h=n.get("itemHeight"),f=n.isSelected(t),m=a.get("symbolRotate"),g=a.get("symbolKeepAspect"),v=a.get("icon");l=v||l||"roundRect";var y=y1(l,a,o,s,d,f,u),b=new g1,_=a.getModel("textStyle");if(!Ia["w"](e.getLegendIcon)||v&&"inherit"!==v){var x="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===m?e.getData().getVisual("symbolRotate"):m:0;b.add(b1({itemWidth:p,itemHeight:h,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}))}else b.add(e.getLegendIcon({itemWidth:p,itemHeight:h,icon:l,iconRotate:m,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}));var w="left"===i?p+5:-5,D=i,S=n.get("formatter"),C=t;Ia["C"](S)&&S?C=S.replace("{name}",null!=t?t:""):Ia["w"](S)&&(C=S(t));var T=f?_.getTextColor():a.get("inactiveColor");b.add(new Wd({style:wh(_,{text:C,x:w,y:h/2,fill:T,align:D,verticalAlign:"middle"},{inheritColor:T})}));var I=new Id({shape:b.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&rx({el:I,componentModel:n,itemName:t,itemTooltipOption:O.option}),b.add(I),b.eachChild((function(e){e.silent=!0})),I.silent=!c,this.getContentGroup().add(b),Hp(b),b.__legendDataIndex=r,b},t.prototype.layoutInner=function(e,t,r,a,n,i){var o=this.getContentGroup(),s=this.getSelectorGroup();nm(e.get("orient"),o,e.get("itemGap"),r.width,r.height);var l=o.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),n){nm("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],p=e.get("selectorButtonGap",!0),h=e.getOrient().index,f=0===h?"width":"height",m=0===h?"height":"width",g=0===h?"y":"x";"end"===i?d[h]+=l[f]+p:c[h]+=u[f]+p,d[1-h]+=l[m]/2-u[m]/2,s.x=d[0],s.y=d[1],o.x=c[0],o.y=c[1];var v={x:0,y:0};return v[f]=l[f]+p+u[f],v[m]=Math.max(l[m],u[m]),v[g]=Math.min(0,u[g]+d[1-h]),v}return o.x=c[0],o.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Hy);function y1(e,t,r,a,n,i,o){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),m1(e,(function(r,a){"inherit"===e[a]&&(e[a]=t[a])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");c.decal=d&&"inherit"!==d?mD(d,o):a.decal,"inherit"===c.fill&&(c.fill=a[n]),"inherit"===c.stroke&&(c.stroke=a[u]),"inherit"===c.opacity&&(c.opacity=("fill"===n?a:r).opacity),s(c,a);var p=t.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),"auto"===c.fill&&(c.fill=a.fill),"auto"===c.stroke&&(c.stroke=a.fill),"auto"===h.stroke&&(h.stroke=a.fill),!i){var f=t.get("inactiveBorderWidth"),m=c[u];c.lineWidth="auto"===f?a.lineWidth>0&&m?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}function b1(e){var t=e.icon||"roundRect",r=Tw(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function _1(e,t,r,a){D1(e,t,r,a),r.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),w1(e,t,r,a)}function x1(e){var t,r=e.getZr().storage.getDisplayList(),a=0,n=r.length;while(ar[n],f=[-d.x,-d.y];t||(f[a]=l[s]);var m=[0,0],g=[-p.x,-p.y],v=Ia["P"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(h){var y=e.get("pageButtonPosition",!0);"end"===y?g[a]+=r[n]-p[n]:m[a]+=p[n]+v}g[1-a]+=d[i]/2-p[i]/2,l.setPosition(f),c.setPosition(m),u.setPosition(g);var b={x:0,y:0};if(b[n]=h?r[n]:d[n],b[i]=Math.max(d[i],p[i]),b[o]=Math.min(0,p[o]+g[1-a]),c.__rectSize=r[n],h){var _={x:0,y:0};_[n]=Math.max(r[n]-p[n]-v,0),_[i]=b[i],c.setClipPath(new Id({shape:_})),c.__rectSize=_[n]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&ch(l,{x:x.contentPosition[0],y:x.contentPosition[1]},h?e:null),this._updatePageInfoView(e,x),b},t.prototype._pageGo=function(e,t,r){var a=this._getPageInfo(t)[e];null!=a&&r.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var r=this._controllerGroup;Ia["k"](["pagePrev","pageNext"],(function(a){var n=a+"DataIndex",i=null!=t[n],o=r.childOfName(a);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var a=r.childOfName("pageText"),n=e.get("pageFormatter"),i=t.pageIndex,o=null!=i?i+1:0,s=t.pageCount;a&&n&&a.setStyle("text",Ia["C"](n)?n.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):n({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),r=this.getContentGroup(),a=this._containerGroup.__rectSize,n=e.getOrient().index,i=E1[n],o=L1[n],s=this._findTargetItemIndex(t),l=r.children(),c=l[s],u=l.length,d=u?1:0,p={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var h=y(c);p.contentPosition[n]=-h.s;for(var f=s+1,m=h,g=h,v=null;f<=u;++f)v=y(l[f]),(!v&&g.e>m.s+a||v&&!b(v,m.s))&&(m=g.i>m.i?g:v,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),g=v;for(f=s-1,m=h,g=h,v=null;f>=-1;--f)v=y(l[f]),v&&b(g,v.s)||!(m.i=t&&e.s<=t+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,r,a=this.getContentGroup();return a.eachChild((function(a,n){var i=a.__legendDataIndex;null==r&&null!=i&&(r=n),i===e&&(t=n)})),null!=t?t:r},t.type="legend.scroll",t}(S1),F1=R1;function j1(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var r=e.scrollDataIndex;null!=r&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(r)}))}))}function V1(e){tC(A1),e.registerComponentModel(k1),e.registerComponentView(F1),j1(e)}function $1(e){tC(A1),tC(V1)}var B1=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="dataZoom.inside",t.defaultOption=Zh(ZK.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ZK),z1=B1,G1=Jl();function U1(e,t,r){G1(e).coordSysRecordMap.each((function(e){var a=e.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)}))}function W1(e,t){for(var r=G1(e).coordSysRecordMap,a=r.keys(),n=0;na[r+t]&&(t=o),n=n&&i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function Z1(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var r=G1(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=Object(Ia["f"])());a.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var r=qK(e);Object(Ia["k"])(r.infoList,(function(r){var n=r.model.uid,i=a.get(n)||a.set(n,q1(t,r.model)),o=i.dataZoomInfoMap||(i.dataZoomInfoMap=Object(Ia["f"])());o.set(e.uid,{dzReferCoordSysInfo:r,model:e,getRange:null})}))})),a.each((function(e){var t,r=e.controller,n=e.dataZoomInfoMap;if(n){var i=n.keys()[0];null!=i&&(t=n.get(i))}if(t){var o=K1(n);r.enable(o.controlType,o.opt),r.setPointerChecker(e.containsPoint),yx(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else H1(a,e)}))}))}var J1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Ca(t,e),t.prototype.render=function(t,r,a){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),U1(a,t,{pan:Object(Ia["c"])(Q1.pan,this),zoom:Object(Ia["c"])(Q1.zoom,this),scrollMove:Object(Ia["c"])(Q1.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){W1(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(tZ),Q1={zoom:function(e,t,r,a){var n=this.range,i=n.slice(),o=e.axisModels[0];if(o){var s=t2[t](null,[a.originX,a.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/a.scale,0);i[0]=(i[0]-l)*c+l,i[1]=(i[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return CB(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1]?i:void 0}},pan:e2((function(e,t,r,a,n,i){var o=t2[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:e2((function(e,t,r,a,n,i){var o=t2[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,r);return o.signal*(e[1]-e[0])*i.scrollDelta}))};function e2(e){return function(t,r,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,a,n);return CB(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}}}var t2={grid:function(e,t,r,a,n){var i=r.axis,o={},s=n.model.coordinateSystem.getRect();return e=e||[0,0],"x"===i.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,a,n){var i=r.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===r.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,a,n){var i=r.axis,o=n.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===i.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}},r2=J1;function a2(e){hZ(e),e.registerComponentModel(z1),e.registerComponentView(r2),Z1(e)}var n2=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Zh(ZK.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(ZK),i2=n2,o2=Id,s2=7,l2=1,c2=30,u2=7,d2="horizontal",p2="vertical",h2=5,f2=["line","bar","candlestick","scatter"],m2={easing:"cubicOut",duration:100,delay:0},g2=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return Ca(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(Ia["c"])(this._onBrush,this),this._onBrushEnd=Object(Ia["c"])(this._onBrushEnd,this)},t.prototype.render=function(t,r,a,n){if(e.prototype.render.apply(this,arguments),yx(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){bx(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Gs;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,r=e.get("brushSelect"),a=r?u2:0,n=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o=this._orient===d2?{right:i.width-n.x-n.width,top:i.height-c2-s2-a,width:n.width,height:c2}:{right:s2,top:n.y,width:c2,height:n.height},s=dm(e.option);Object(Ia["k"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=o[e])}));var l=om(s,i);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===p2&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,r=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),n=a&&a.get("inverse"),i=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;i.attr(r!==d2||n?r===d2&&n?{scaleY:o?1:-1,scaleX:-1}:r!==p2||n?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=e.getBoundingRect([i]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,r=this._displayables.sliderGroup,a=e.get("brushSelect");r.add(new o2({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var n=new o2({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(Ia["c"])(this._onClickPanel,this)}),i=this.api.getZr();a?(n.on("mousedown",this._onBrushStart,this),n.cursor="crosshair",i.on("mousemove",this._onBrush),i.on("mouseup",this._onBrushEnd)):(i.off("mousemove",this._onBrush),i.off("mouseup",this._onBrushEnd)),r.add(n)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,r=this._shadowSize||[],a=e.series,n=a.getRawData(),i=a.getShadowDim&&a.getShadowDim(),o=i&&n.getDimensionInfo(i)?a.getShadowDim():e.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(n!==this._shadowData||o!==this._shadowDim||t[0]!==r[0]||t[1]!==r[1]){var c=n.getDataExtent(o),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var d,p=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],m=[],g=h[1]/(n.count()-1),v=0,y=Math.round(n.count()/t[0]);n.each([o],(function(e,t){if(y>0&&t%y)v+=g;else{var r=null==e||isNaN(e)||""===e,a=r?0:al(e,c,p,!0);r&&!d&&t?(f.push([f[f.length-1][0],0]),m.push([m[m.length-1][0],0])):!r&&d&&(f.push([v,0]),m.push([v,0])),f.push([v,a]),m.push([v,a]),v+=g,d=r}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=m}this._shadowData=n,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),r=new Gs,a=new Yb({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),n=new Zb({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return r.add(a),r.add(n),r}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var r,a=this.ecModel;return e.eachTargetAxis((function(n,i){var o=e.getAxisProxy(n,i).getTargetSeriesModels();Object(Ia["k"])(o,(function(e){if(!r&&!(!0!==t&&Object(Ia["r"])(f2,e.get("type"))<0)){var o,s=a.getComponent(WK(n),i).axis,l=v2(n),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(o=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),r={thisAxis:s,series:e,thisDim:n,otherDim:l,otherAxisInverse:o}}}),this)}),this),r}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,r=t.handles=[null,null],a=t.handleLabels=[null,null],n=this._displayables.sliderGroup,i=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,c=o.get("brushSelect"),u=t.filler=new o2({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});n.add(u),n.add(new o2({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:l2,fill:"rgba(0,0,0,0)"}})),Object(Ia["k"])([0,1],(function(t){var i=o.get("handleIcon");!Dw[i]&&i.indexOf("path://")<0&&i.indexOf("image://")<0&&(i="path://"+i);var s=Tw(i,-1,0,2,2,null,!0);s.attr({cursor:y2(this._orient),draggable:!0,drift:Object(Ia["c"])(this._onDragMove,this,t),ondragend:Object(Ia["c"])(this._onDragEnd,this),onmouseover:Object(Ia["c"])(this._showDataInfo,this,!0),onmouseout:Object(Ia["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=o.get("handleSize");this._handleHeight=nl(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Hp(s);var u=o.get("handleColor");null!=u&&(s.style.fill=u),n.add(r[t]=s);var d=o.getModel("textStyle"),p=o.get("handleLabel")||{},h=p.show||!1;e.add(a[t]=new Wd({silent:!0,invisible:!h,style:wh(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=u;if(c){var p=nl(o.get("moveHandleSize"),i[1]),h=t.moveHandle=new Id({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),f=.8*p,m=t.moveHandleIcon=Tw(o.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);m.silent=!0,m.y=i[1]+p/2-.5,h.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var g=Math.min(i[1]/2,Math.max(p,10));d=t.moveZone=new Id({invisible:!0,shape:{y:i[1]-g,height:p+g}}),d.on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),n.add(h),n.add(m),n.add(d)}d.attr({draggable:!0,cursor:y2(this._orient),drift:Object(Ia["c"])(this._onDragMove,this,"all"),ondragstart:Object(Ia["c"])(this._showDataInfo,this,!0),ondragend:Object(Ia["c"])(this._onDragEnd,this),onmouseover:Object(Ia["c"])(this._showDataInfo,this,!0),onmouseout:Object(Ia["c"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[al(e[0],[0,100],t,!0),al(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var r=this.dataZoomModel,a=this._handleEnds,n=this._getViewExtent(),i=r.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];CB(t,a,n,r.get("zoomLock")?"all":e,null!=i.minSpan?al(i.minSpan,o,n,!0):null,null!=i.maxSpan?al(i.maxSpan,o,n,!0):null);var s=this._range,l=this._range=ol([al(a[0],n,o,!0),al(a[1],n,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,r=this._handleEnds,a=ol(r.slice()),n=this._size;Object(Ia["k"])([0,1],(function(e){var a=t.handles[e],i=this._handleHeight;a.attr({scaleX:i/2,scaleY:i/2,x:r[e]+(e?-1:1),y:n[1]/2-i/2})}),this),t.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:n[1]});var i={x:a[0],width:a[1]-a[0]};t.moveHandle&&(t.moveHandle.setShape(i),t.moveZone.setShape(i),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",i.x+i.width/2));for(var o=t.dataShadowSegs,s=[0,a[0],a[1],n[0]],l=0;lt[0]||r[1]<0||r[1]>t[1])){var a=this._handleEnds,n=(a[0]+a[1])/2,i=this._updateInterval("all",r[0]-n);this._updateView(),i&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,r=e.offsetY;this._brushStart=new jn(t,r),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var r=t.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(r.width)<5)){var n=this._getViewExtent(),i=[0,100];this._range=ol([al(r.x,n,i,!0),al(r.x+r.width,n,i,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(wn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var r=this._displayables,a=this.dataZoomModel,n=r.brushRect;n||(n=r.brushRect=new o2({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(n)),n.attr("ignore",!1);var i=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(i.x,i.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),n.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?m2:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=qK(this.dataZoomModel).infoList;if(!e&&t.length){var r=t[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var a=this.api.getWidth(),n=this.api.getHeight();e={x:.2*a,y:.2*n,width:.6*a,height:.6*n}}return e},t.type="dataZoom.slider",t}(tZ);function v2(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function y2(e){return"vertical"===e?"ns-resize":"ew-resize"}var b2=g2;function _2(e){e.registerComponentModel(i2),e.registerComponentView(b2),hZ(e)}function x2(e){tC(a2),tC(_2)}var w2={get:function(e,t,r){var a=Ia["d"]((D2[e]||{})[t]);return r&&Ia["t"](a)?a[a.length-1]:a}},D2={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},S2=w2,C2=kj.mapVisual,T2=kj.eachVisual,I2=Ia["t"],O2=Ia["k"],A2=ol,M2=al,P2=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return Ca(t,e),t.prototype.init=function(e,t,r){this.mergeDefaultAndTheme(e,r)},t.prototype.optionUpdated=function(e,t){var r=this.option;!t&&fQ(r,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=Ia["c"](e,this),this.controllerVisuals=hQ(this.option.controller,t,e),this.targetVisuals=hQ(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,r){t.push(r)})):t=Ml(e),t},t.prototype.eachTargetSeries=function(e,t){Ia["k"](this.getTargetSeriesIndices(),(function(r){var a=this.ecModel.getSeriesByIndex(r);a&&e.call(t,a)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(r){r===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,r){var a,n=this.option,i=n.precision,o=this.dataBound,s=n.formatter;r=r||["<",">"],Ia["t"](e)&&(e=e.slice(),a=!0);var l=t?e:a?[c(e[0]),c(e[1])]:c(e);return Ia["C"](s)?s.replace("{value}",a?l[0]:l).replace("{value2}",a?l[1]:l):Ia["w"](s)?a?s(e[0],e[1]):s(e):a?e[0]===o[0]?r[0]+" "+l[1]:e[1]===o[1]?r[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=A2([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var r=e.dimensions,a=r.length-1;a>=0;a--){var n=r[a],i=e.getDimensionInfo(n);if(!i.isCalculationCoord)return i.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,r={inRange:t.inRange,outOfRange:t.outOfRange},a=t.target||(t.target={}),n=t.controller||(t.controller={});Ia["I"](a,r),Ia["I"](n,r);var i=this.isCategory();function o(r){I2(t.color)&&!r.inRange&&(r.inRange={color:t.color.slice().reverse()}),r.inRange=r.inRange||{color:e.get("gradientColor")}}function s(e,t,r){var a=e[t],n=e[r];a&&!n&&(n=e[r]={},O2(a,(function(e,t){if(kj.isValidType(t)){var r=S2.get(t,"inactive",i);null!=r&&(n[t]=r,"color"!==t||n.hasOwnProperty("opacity")||n.hasOwnProperty("colorAlpha")||(n.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,r=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,a=this.get("inactiveColor"),n=this.getItemSymbol(),o=n||"roundRect";O2(this.stateList,(function(n){var s=this.itemSize,l=e[n];l||(l=e[n]={color:i?a:[a]}),null==l.symbol&&(l.symbol=t&&Ia["d"](t)||(i?o:[o])),null==l.symbolSize&&(l.symbolSize=r&&Ia["d"](r)||(i?s[0]:[s[0],s[0]])),l.symbol=C2(l.symbol,(function(e){return"none"===e?o:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;T2(c,(function(e){e>u&&(u=e)})),l.symbolSize=C2(c,(function(e){return M2(e,[0,u],[0,s[0]],!0)}))}}),this)}o.call(this,a),o.call(this,n),s.call(this,a,"inRange","outOfRange"),l.call(this,n)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(gm),k2=P2,N2=[20,140],E2=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.optionUpdated=function(t,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=N2[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=N2[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):Ia["t"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Ia["k"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=ol((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=r[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(r){var a=[],n=r.getData();n.each(this.getDataDimensionIndex(n),(function(t,r){e[0]<=t&&t<=e[1]&&a.push(r)}),this),t.push({seriesId:r.id,dataIndex:a})}),this),t},t.prototype.getVisualMeta=function(e){var t=L2(this,"outOfRange",this.getExtent()),r=L2(this,"inRange",this.option.range.slice()),a=[];function n(t,r){a.push({value:t,color:e(t,r)})}for(var i=0,o=0,s=r.length,l=t.length;oe[1])break;a.push({color:this.getControllerVisual(o,"color",t),offset:i/r})}return a.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),a},t.prototype._createBarPoints=function(e,t){var r=this.visualMapModel.itemSize;return[[r[0]-t[0],e[0]],[r[0],e[0]],[r[0],e[1]],[r[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,r=this.visualMapModel.get("inverse");return new Gs("horizontal"!==t||r?"horizontal"===t&&r?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||r?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var r=this._shapes,a=this.visualMapModel,n=r.handleThumbs,i=r.handleLabels,o=a.itemSize,s=a.getExtent(),l=this._applyTransform("left",r.mainGroup);G2([0,1],(function(c){var u=n[c];u.setStyle("fill",t.handlesColor[c]),u.y=e[c];var d=z2(e[c],[0,o[1]],s,!0),p=this.getControllerVisual(d,"symbolSize");u.scaleX=u.scaleY=p/o[0],u.x=o[0]-p/2;var h=U_(r.handleLabelPoints[c],G_(u,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(o[0]-p)/2:(o[0]-p)/-2;h[1]+=f}i[c].setStyle({x:h[0],y:h[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,r,a){var n=this.visualMapModel,i=n.getExtent(),o=n.itemSize,s=[0,o[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",u),p=this.getControllerVisual(e,"symbolSize"),h=z2(e,i,s,!0),f=o[0]-p/2,m={x:c.x,y:c.y};c.y=h,c.x=f;var g=U_(l.indicatorLabelPoint,G_(c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(r||"")+n.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var x={x:f,y:h,style:{fill:d}},w={style:{x:g[0],y:g[1]}};if(n.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};c.x=m.x,c.y=m.y,c.animateTo(x,D),v.animateTo(w,D)}else c.attr(x),v.attr(w);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Cn[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,d=[];(t||Z2(r))&&(d=this._hoverLinkDataIndices=r.findTargetDataIndices(c));var p=Kl(u,d);this._dispatchHighDown("downplay",B2(p[0],r)),this._dispatchHighDown("highlight",B2(p[1],r))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(pw(e.target,(function(e){var r=Hd(e);if(null!=r.dataIndex)return t=r,!0}),!0),t){var r=this.ecModel.getSeriesByIndex(t.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(r)){var n=r.getData(t.dataType),i=n.getStore().get(a.getDataDimensionIndex(n),t.dataIndex);isNaN(i)||this._showIndicator(i,i)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var r=0;r=0&&(n.dimension=i,a.push(n))}})),e.getData().setVisual("visualMeta",a)}}];function a5(e,t,r,a){for(var n=t.targetVisuals[a],i=kj.prepareVisualTypes(n),o={color:sw(e.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(e5,t5),Object(Ia["k"])(r5,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(i5))}function c5(e){e.registerComponentModel(R2),e.registerComponentView(Q2),l5(e)}var u5=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return Ca(t,e),t.prototype.optionUpdated=function(t,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],d5[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var n=this.option.categories;this.resetVisual((function(e,t){"categories"===a?(e.mappingMethod="category",e.categories=Ia["d"](n)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=Ia["H"](this._pieceList,(function(e){return e=Ia["d"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,r={},a=kj.listVisualTypes(),n=this.isCategory();function i(e,t,r){return e&&e[t]&&e[t].hasOwnProperty(r)}Ia["k"](t.pieces,(function(e){Ia["k"](a,(function(t){e.hasOwnProperty(t)&&(r[t]=1)}))})),Ia["k"](r,(function(e,r){var a=!1;Ia["k"](this.stateList,(function(e){a=a||i(t,e,r)||i(t.target,e,r)}),this),!a&&Ia["k"](this.stateList,(function(e){(t[e]||(t[e]={}))[r]=S2.get(r,"inRange"===e?"active":"inactive",n)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var r=this.option,a=this._pieceList,n=(t?r:e).selected||{};if(r.selected=n,Ia["k"](a,(function(e,t){var r=this.getSelectedMapKey(e);n.hasOwnProperty(r)||(n[r]=!0)}),this),"single"===r.selectedMode){var i=!1;Ia["k"](a,(function(e,t){var r=this.getSelectedMapKey(e);n[r]&&(i?n[r]=!1:i=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Ia["d"](e)},t.prototype.getValueState=function(e){var t=kj.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],r=this._pieceList;return this.eachTargetSeries((function(a){var n=[],i=a.getData();i.each(this.getDataDimensionIndex(i),(function(t,a){var i=kj.findPieceIndex(t,r);i===e&&n.push(a)}),this),t.push({seriesId:a.id,dataIndex:n})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var r=e.interval||[];t=r[0]===-1/0&&r[1]===1/0?0:(r[0]+r[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],r=["",""],a=this,n=this._pieceList.slice();if(n.length){var i=n[0].interval[0];i!==-1/0&&n.unshift({interval:[-1/0,i]}),i=n[n.length-1].interval[1],i!==1/0&&n.push({interval:[i,1/0]})}else n.push({interval:[-1/0,1/0]});var o=-1/0;return Ia["k"](n,(function(e){var t=e.interval;t&&(t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])}),this),{stops:t,outerColors:r}}function s(n,i){var o=a.getRepresentValue({interval:n});i||(i=a.getValueState(o));var s=e(o,i);n[0]===-1/0?r[0]=s:n[1]===1/0?r[1]=s:t.push({value:n[0],color:s},{value:n[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Zh(k2.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(k2),d5={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;var i=(a[1]-a[0])/n;while(+i.toFixed(r)!==i&&r<5)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,r)}),this)}};function p5(e,t){var r=e.inverse;("vertical"===e.orient?!r:r)&&t.reverse()}var h5=u5,f5=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.type=t.type,r}return Ca(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,r=t.get("textGap"),a=t.textStyleModel,n=a.getFont(),i=a.getTextColor(),o=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=Ia["O"](t.get("showLabel",!0),!c),d=!t.get("selectedMode");c&&this._renderEndsText(e,c[0],s,u,o),Ia["k"](l.viewPieceList,(function(a){var l=a.piece,c=new Gs;c.onclick=Ia["c"](this._onItemClick,this,l),this._enableHoverLink(c,a.indexInModelPieceList);var p=t.getRepresentValue(l);if(this._createItemSymbol(c,p,[0,0,s[0],s[1]],d),u){var h=this.visualMapModel.getValueState(p);c.add(new Wd({style:{x:"right"===o?-r:s[0]+r,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:n,fill:i,opacity:"outOfRange"===h?.5:1},silent:d}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,u,o),nm(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var r=this;e.on("mouseover",(function(){return a("highlight")})).on("mouseout",(function(){return a("downplay")}));var a=function(e){var a=r.visualMapModel;a.option.hoverLink&&r.api.dispatchAction({type:e,batch:B2(a.findTargetDataIndices(t),a)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return $2(e,this.api,e.itemSize);var r=t.align;return r&&"auto"!==r||(r="left"),r},t.prototype._renderEndsText=function(e,t,r,a,n){if(t){var i=new Gs,o=this.visualMapModel.textStyleModel;i.add(new Wd({style:wh(o,{x:a?"right"===n?r[0]:0:r[0]/2,y:r[1]/2,verticalAlign:"middle",align:a?n:"center",text:t})})),e.add(i)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=Ia["H"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),r=e.get("text"),a=e.get("orient"),n=e.get("inverse");return("horizontal"===a?n:!n)?t.reverse():r&&(r=r.slice().reverse()),{viewPieceList:t,endsText:r}},t.prototype._createItemSymbol=function(e,t,r,a){var n=Tw(this.getControllerVisual(t,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(t,"color"));n.silent=a,e.add(n)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,r=t.option,a=r.selectedMode;if(a){var n=Ia["d"](r.selected),i=t.getSelectedMapKey(e);"single"===a||!0===a?(n[i]=!0,Ia["k"](n,(function(e,t){n[t]=t===i}))):n[i]=!n[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}},t.type="visualMap.piecewise",t}(j2),m5=f5;function g5(e){e.registerComponentModel(h5),e.registerComponentView(m5),l5(e)}function v5(e){tC(c5),tC(g5)}var y5={label:{enabled:!0},decal:{show:!1}},b5=Jl(),_5={};function x5(e,t){var r=e.getModel("aria");if(r.get("enabled")){var a=Ia["d"](y5);Ia["I"](a.label,e.getLocaleModel().get("aria"),!1),Ia["I"](r.option,a,!1),n(),i()}function n(){var t=r.getModel("decal"),a=t.get("show");if(a){var n=Ia["f"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=n.get(e.type);t||(t={},n.set(e.type,t)),b5(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(Ia["w"](t.enableAriaDecal))t.enableAriaDecal();else{var r=t.getData();if(t.isColorBySeries()){var a=Um(t.ecModel,t.name,_5,e.getSeriesCount()),n=r.getVisual("decal");r.setVisual("decal",c(n,a))}else{var i=t.getRawData(),o={},s=b5(t).scope;r.each((function(e){var t=r.getRawIndex(e);o[t]=e}));var l=i.count();i.each((function(e){var a=o[e],n=i.getName(e)||e+"",u=Um(t.ecModel,n,s,l),d=r.getItemVisual(a,"decal");r.setItemVisual(a,"decal",c(d,u))}))}}function c(e,t){var r=e?Ia["m"](Ia["m"]({},t),e):t;return r.dirty=!0,r}}))}}function i(){var a=t.getZr().dom;if(a){var n=e.getLocaleModel().get("aria"),i=r.getModel("label");if(i.option=Ia["i"](i.option,n),i.get("enabled"))if(a.setAttribute("role","img"),i.get("description"))a.setAttribute("aria-label",i.get("description"));else{var c,u=e.getSeriesCount(),d=i.get(["data","maxCount"])||10,p=i.get(["series","maxCount"])||10,h=Math.min(u,p);if(!(u<1)){var f=s();if(f){var m=i.get(["general","withTitle"]);c=o(m,{title:f})}else c=i.get(["general","withoutTitle"]);var g=[],v=u>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);c+=o(v,{seriesCount:u}),e.eachSeries((function(e,t){if(t1?i.get(["series","multiple",n]):i.get(["series","single",n]),r=o(r,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var c=i.get(["data","partialData"]);r+=o(c,{displayCnt:d})}else r+=i.get(["data","allData"]);for(var p=i.get(["data","separator","middle"]),f=i.get(["data","separator","end"]),m=i.get(["data","excludeDimensionId"]),v=[],y=0;y":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},C5=function(){function e(e){var t=this._condVal=Object(Ia["C"])(e)?new RegExp(e):Object(Ia["B"])(e)?e:null;if(null==t){var r="";0,Jm(r)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(Ia["C"])(t)?this._condVal.test(e):!!Object(Ia["z"])(t)&&this._condVal.test(e+"")},e}(),T5=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),I5=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,r]}function f(e,r,a,n){W5(e,a)&&W5(r,n)||t.push(e,r,a,n,a,n)}function m(e,r,a,n,i,o){var s=Math.abs(r-e),l=4*Math.tan(s/4)/3,c=rS:I2&&l.push(t),l}function q5(e,t,r,a,n,i,o,s,l,c){if(W5(e,r)&&W5(t,a)&&W5(n,o)&&W5(i,s))l.push(o,s);else{var u=2/c,d=u*u,p=o-e,h=s-t,f=Math.sqrt(p*p+h*h);p/=f,h/=f;var m=r-e,g=a-t,v=n-o,y=i-s,b=m*m+g*g,_=v*v+y*y;if(b=0&&S=0)l.push(o,s);else{var C=[],T=[];Ui(e,r,n,o,.5,C),Ui(t,a,i,s,.5,T),q5(C[0],T[0],C[1],T[1],C[2],T[2],C[3],T[3],l,c),q5(C[4],T[4],C[5],T[5],C[6],T[6],C[7],T[7],l,c)}}}}function Y5(e,t){var r=H5(e),a=[];t=t||1;for(var n=0;n0)for(c=0;cMath.abs(c),d=X5([l,c],u?0:1,t),p=(u?s:c)/d.length,h=0;hn,o=X5([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",c=i?"x":"y",u=i?"y":"x",d=e[s]/o.length,p=0;p1?null:new jn(m*l+e,m*c+t)}function e3(e,t,r){var a=new jn;jn.sub(a,r,t),a.normalize();var n=new jn;jn.sub(n,e,t);var i=n.dot(a);return i}function t3(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function r3(e,t,r){for(var a=e.length,n=[],i=0;io?(c.x=u.x=s+i/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+i),r3(t,c,u)}function n3(e,t,r,a){if(1===r)a.push(t);else{var n=Math.floor(r/2),i=e(t);n3(e,i[0],n,a),n3(e,i[1],r-n,a)}return a}function i3(e,t){for(var r=[],a=0;a0)for(var x=a/r,w=-a/2;w<=a/2;w+=x){var D=Math.sin(w),S=Math.cos(w),C=0;for(b=0;b0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),l+=c*c*(3*u^d),0===d&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function S3(e){var t=1/0,r=1/0,a=-1/0,n=-1/0,i=Object(Ia["H"])(e,(function(e){var i=e.getBoundingRect(),o=e.getComputedTransform(),s=i.x+i.width/2+(o?o[4]:0),l=i.y+i.height/2+(o?o[5]:0);return t=Math.min(s,t),r=Math.min(l,r),a=Math.max(s,a),n=Math.max(l,n),[s,l]})),o=Object(Ia["H"])(i,(function(i,o){return{cp:i,z:D3(i[0],i[1],t,r,a,n),path:e[o]}}));return o.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function C3(e){return l3(e.path,e.count)}function T3(){return{fromIndividuals:[],toIndividuals:[],count:0}}function I3(e,t,r){var a=[];function n(e){for(var t=0;t=0;n--)if(!r[n].many.length){var l=r[s].many;if(l.length<=1){if(!s)return r;s=0}i=l.length;var c=Math.ceil(i/2);r[n].many=l.slice(c,i),r[s].many=l.slice(0,c),s++}return r}var P3={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),a=0;a0){var s,l,c=a.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o);A3(e)&&(s=e,l=t),A3(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,p=s?M3(l,s):M3(d?t:e,[d?e:t]),h=0,f=0;fE3))for(var n=r.getIndices(),i=0;i0&&n.group.traverse((function(e){e instanceof ud&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)}))}))}function X3(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function K3(e){return Object(Ia["t"])(e)?e.sort().join(","):e}function Z3(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function J3(e,t){var r=Object(Ia["f"])(),a=Object(Ia["f"])(),n=Object(Ia["f"])();return Object(Ia["k"])(e.oldSeries,(function(t,r){var i=e.oldDataGroupIds[r],o=e.oldData[r],s=X3(t),l=K3(s);a.set(l,{dataGroupId:i,data:o}),Object(Ia["t"])(s)&&Object(Ia["k"])(s,(function(e){n.set(e,{key:l,dataGroupId:i,data:o})}))})),Object(Ia["k"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),i=e.getData(),o=X3(e),s=K3(o),l=a.get(s);if(l)r.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Z3(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:Z3(i),data:i}]});else if(Object(Ia["t"])(o)){0;var c=[];Object(Ia["k"])(o,(function(e){var t=a.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:Z3(t.data),data:t.data})})),c.length&&r.set(s,{oldSeries:c,newSeries:[{dataGroupId:t,data:i,divide:Z3(i)}]})}else{var u=n.get(o);if(u){var d=r.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:Z3(u.data)}],newSeries:[]},r.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:i,divide:Z3(i)})}}}})),r}function Q3(e,t){for(var r=0;r=0&&n.push({dataGroupId:t.oldDataGroupIds[r],data:t.oldData[r],divide:Z3(t.oldData[r]),groupIdDim:e.dimension})})),Object(Ia["k"])(Ml(e.to),(function(e){var a=Q3(r.updatedSeries,e);if(a>=0){var n=r.updatedSeries[a].getData();i.push({dataGroupId:t.oldDataGroupIds[a],data:n,divide:Z3(n),groupIdDim:e.dimension})}})),n.length>0&&i.length>0&&Y3(n,i,a)}function t4(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,r){Object(Ia["k"])(Ml(r.seriesTransition),(function(e){Object(Ia["k"])(Ml(e.to),(function(e){for(var t=r.updatedSeries,a=0;a0?r("span",{staticClass:"hidden-count"},[e._v("("+e._s(e.hiddenParams.length)+")")]):e._e()]),r("el-button",{staticClass:"download-comparison-data-button",on:{click:e.handleDownloadComparisonData}},[e._v(" 下载对比数据 ")])],1)])]),r("div",{staticClass:"model-query-content"},[r("div",{staticClass:"left-param-panel"},[r("div",{staticClass:"tree-search-header"},[r("el-radio-group",{staticClass:"search-mode-switch",attrs:{size:"mini"},model:{value:e.treeSearchMode,callback:function(t){e.treeSearchMode=t},expression:"treeSearchMode"}},[r("el-radio-button",{attrs:{label:"subsystem"}},[e._v(" 子系统 ")]),r("el-radio-button",{attrs:{label:"parts"}},[e._v(" 零部件名称 ")])],1)],1),r("el-input",{staticClass:"tree-search",attrs:{size:"small",placeholder:"subsystem"===e.treeSearchMode?"请输入子系统名称":"请输入零部件名称",clearable:""},model:{value:e.treeFilterText,callback:function(t){e.treeFilterText=t},expression:"treeFilterText"}}),r("div",{staticClass:"tree-select-actions"},[r("el-checkbox",{staticClass:"tree-select-checkbox",attrs:{indeterminate:e.treeSelectAllIndeterminate},model:{value:e.treeSelectAllMaster,callback:function(t){e.treeSelectAllMaster=t},expression:"treeSelectAllMaster"}},[e._v(" 全选 ")])],1),r("el-tree",{ref:"paramTree",attrs:{data:e.treeData,"node-key":"id","show-checkbox":"","checked-keys":e.checkedKeys,"default-expanded-keys":[],props:{children:"children",label:"label"},"filter-node-method":e.filterTreeNode},on:{check:e.handleTreeCheck},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return r("span",{staticClass:"custom-tree-node"},[r("span",[e._v(e._s(a.label))]),a.tip?r("span",{staticClass:"red-tip"},[e._v(e._s(a.tip))]):e._e()])}}])})],1),r("div",{staticClass:"right-comparison-panel"},[r("div",{staticClass:"comparison-table-wrapper"},[r("table",{staticClass:"comparison-table"},[r("thead",[r("tr",[r("th",{staticClass:"subsystem-column"},[e._v(" 子系统名称 ")]),r("th",{staticClass:"parts-column"},[e._v(" 零部件名称 ")]),r("th",{staticClass:"param-column"},[e._v(" 参数名称 ")]),r("th",{staticClass:"unit-column"},[e._v(" 单位 ")]),e._l(e.comparisonModels,(function(t,a){return r("th",{key:a,staticClass:"model-column"},[r("div",{staticClass:"model-header"},[t.name?r("div",{staticClass:"model-name"},[e._v(" "+e._s(t.name)+" V"+e._s(t.parameterVersion)+" ")]):e._e(),t.name?r("i",{staticClass:"el-icon-close model-remove",on:{click:function(t){return e.handleRemoveModel(a)}}}):r("div",{staticClass:"add-model-placeholder",on:{click:e.handleAddModel}},[r("i",{staticClass:"el-icon-plus",staticStyle:{"font-size":"16px","font-weight":"bold"}}),r("span",[e._v("添加机型")])])])])})),r("th",{staticClass:"add-column"},[r("div",{staticClass:"add-model-placeholder",on:{click:e.handleAddModel}},[r("i",{staticClass:"el-icon-plus",staticStyle:{"font-size":"16px","font-weight":"bold"}}),r("span",[e._v("添加机型")])])])],2)]),r("tbody",e._l(e.displayParams,(function(t,a){return r("tr",{key:a},[r("td",{staticClass:"subsystem-column"},[e._v(" "+e._s(t.subsystemName)+" ")]),r("td",{staticClass:"parts-column"},[e._v(" "+e._s(t.displayPartsName)+" ")]),r("td",{staticClass:"param-column"},[r("span",{staticClass:"param-name"},[e._v(e._s(e.getParamDisplayName(t)))]),r("i",{staticClass:"el-icon-remove-outline param-config-icon",on:{click:function(r){return r.stopPropagation(),e.handleHideParam(t)}}})]),r("td",{staticClass:"unit-column"},[e._v(" "+e._s(t.unit||"-")+" ")]),e._l(e.comparisonModels,(function(a,n){return r("td",{key:n,staticClass:"model-column"},[e._v(" "+e._s(e.getParamValue(a,t))+" ")])})),r("td",{staticClass:"add-column"})],2)})),0)])])])]),r("el-dialog",{attrs:{title:"选择机型",visible:e.addModelDialogVisible,width:"800px","append-to-body":""},on:{"update:visible":function(t){e.addModelDialogVisible=t},close:e.handleAddModelDialogClose}},[r("div",{staticClass:"model-select-dialog"},[e.isUserPermissionsEmpty()?[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v(" 无权限查看 ")])])]:[r("el-input",{staticClass:"model-search-input",attrs:{placeholder:"请输入产品型号,状态代号/产品编号,平台,系列搜索","prefix-icon":"el-icon-search",clearable:""},model:{value:e.modelSearchText,callback:function(t){e.modelSearchText=t},expression:"modelSearchText"}}),r("div",{staticClass:"model-list-wrapper"},[r("el-table",{ref:"modelTable",attrs:{data:e.filteredModelList,height:"400"},on:{"selection-change":e.handleModelSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),r("el-table-column",{attrs:{prop:"modelName",label:"产品型号","min-width":"150"}}),r("el-table-column",{attrs:{prop:"parameterVersion",label:"机型版本","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v("V"+e._s(t.row.parameterVersion))])]}}],null,!1,3982641864)}),r("el-table-column",{attrs:{prop:"productNumber",label:"状态代号/产品编号","min-width":"100"}}),r("el-table-column",{attrs:{prop:"platform",label:"平台","min-width":"70"}}),r("el-table-column",{attrs:{prop:"series",label:"系列","min-width":"70"}})],1)],1)]],2),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddModelDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.loadingModelDetail},on:{click:e.handleConfirmAddModel}},[e._v(" 确定 ")])],1)]),r("el-dialog",{attrs:{title:"已隐藏参数",visible:e.hiddenParamsDialogVisible,width:"800px","append-to-body":""},on:{"update:visible":function(t){e.hiddenParamsDialogVisible=t},close:e.handleHiddenParamsDialogClose}},[r("div",{staticClass:"hidden-params-dialog-content"},[0===e.hiddenParamsList.length?r("div",{staticClass:"empty-hint"},[e._v(" 暂无隐藏的参数 ")]):[r("div",{staticClass:"hidden-params-header"},[r("el-button",{attrs:{size:"small"},on:{click:e.handleRestoreAll}},[e._v(" 全部恢复 ")]),r("el-button",{attrs:{size:"small",disabled:0===e.selectedParamsToRestore.length},on:{click:e.handleRestoreSelected}},[e._v(" 恢复已选择 ")])],1),r("el-table",{ref:"hiddenParamsTable",staticStyle:{width:"100%"},attrs:{data:e.hiddenParamsList,border:"",height:"400"},on:{"selection-change":e.handleHiddenParamsSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),r("el-table-column",{attrs:{prop:"subsystemName",label:"子系统","min-width":"150"}}),r("el-table-column",{attrs:{prop:"parameterName",label:"参数名称","min-width":"200","show-overflow-tooltip":""}})],1)]],2),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleHiddenParamsDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:0===e.selectedParamsToRestore.length},on:{click:e.handleConfirmRestoreParams}},[e._v(" 确定恢复("+e._s(e.selectedParamsToRestore.length)+") ")])],1)]),r("el-dialog",{attrs:{title:"新增常用",visible:e.addFavoriteDialogVisible,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.addFavoriteDialogVisible=t},close:e.handleAddFavoriteDialogClose}},[r("el-form",{ref:"addFavoriteForm",attrs:{model:e.addFavoriteFormData,rules:e.addFavoriteFormRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"常用名称",prop:"commonName"}},[r("el-input",{attrs:{placeholder:"请输入常用名称",maxlength:"50","show-word-limit":""},model:{value:e.addFavoriteFormData.commonName,callback:function(t){e.$set(e.addFavoriteFormData,"commonName",t)},expression:"addFavoriteFormData.commonName"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddFavoriteDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.savingFavorite},on:{click:e.handleConfirmAddFavorite}},[e._v(" 确定 ")])],1)],1)],1)},a4=[];r("e781");function n4(e){return s4(e)||o4(e)||h4(e)||i4()}function i4(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o4(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s4(e){if(Array.isArray(e))return f4(e)}function l4(e,t){return d4(e)||u4(e,t)||h4(e,t)||c4()}function c4(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u4(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(u){c=!0,n=u}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function d4(e){if(Array.isArray(e))return e}function p4(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h4(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function h4(e,t){if(e){if("string"===typeof e)return f4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f4(e,t):void 0}}function f4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&r>0&&r0&&r===t.length},set:function(e){e?this.handleTreeSelectAll():this.handleTreeDeselectAll()}}},watch:{treeFilterText:function(e){this.$refs.paramTree&&this.$refs.paramTree.filter(e)},treeSearchMode:function(){this.$refs.paramTree&&this.treeFilterText&&this.$refs.paramTree.filter(this.treeFilterText)},userPermissions:{handler:function(){var e=this;this.$nextTick((function(){e.$forceUpdate()}))},deep:!0}},mounted:function(){this.loadUserSelfRole(),console.log("加载树数据"),this.loadTreeData()},methods:{loadUserSelfRole:function(){var e=this;try{var t=localStorage.getItem("user_self_role");t&&(this.userPermissions=JSON.parse(t))}catch(a){console.error("从 localStorage 加载用户权限数据失败:",a)}var r=v4(v4({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){if(t&&t.data){e.userPermissions=t.data;try{localStorage.setItem("user_self_role",JSON.stringify(t.data))}catch(a){console.error("存储权限数据到 localStorage 失败:",a)}e.$nextTick((function(){e.$forceUpdate()}))}})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},isAdmin:function(){return!(!this.userPermissions||!Array.isArray(this.userPermissions))&&this.userPermissions.some((function(e){return 1===e.isAdmin||"1"===e.isAdmin}))},isUserPermissionsEmpty:function(){return!this.userPermissions||!Array.isArray(this.userPermissions)||0===this.userPermissions.length},hasParamPermission:function(e,t){if(this.isAdmin())return!0;if(!this.userPermissions||!Array.isArray(this.userPermissions)||0===this.userPermissions.length)return!1;var r="".concat(e.id,"_").concat(e.parameterVersion||1),a=this.allModelRawData[r],n=a&&a.ycOrOth||"",i="玉柴"===n||"YC"===n||"yc"===n,o=i?"玉柴发动机数据":"竞品发动机数据",s=t.subsystemName||"",l=t.partsName||"";"/"===l&&(l="");var c=this.userPermissions.filter((function(e){var t=e.permissionPath||"";return t.includes(o)}));if(0===c.length)return!1;var u=c.filter((function(e){var t=e.permissionPath||"";if(t.startsWith(o+"/")){var r=t.split("/");return r.length>=3}return!1}));if(0===u.length){var d=c.some((function(e){var t=e.permissionPath||"",r=t.split("/");return t===o||t.startsWith(o+"/")&&2===r.length}));return!!d}var p=u.some((function(e){var t=e.permissionPath||"";if(t.startsWith(o+"/")){var r=t.split("/");if(r.length>=3){var a=r[1]||"",n=r[2]||"";return""===l&&""===n?a===s:a===s&&n===l}}return!1}));return!!p},filterTreeNode:function(e,t){if(!e)return!0;var r=e.toLowerCase(),a=this.nodeMap[t.id];if(!a)return(t.label||"").toLowerCase().includes(r);var n=(t.label||"").toLowerCase(),i=null===a.parentLabel,o=null!==a.parentLabel;if("subsystem"===this.treeSearchMode){if(i)return n.includes(r);if(o){var s=(a.parentLabel||"").toLowerCase();return s.includes(r)}return!1}return o?n.includes(r):!!(i&&t.children&&Array.isArray(t.children))&&t.children.some((function(e){var t=(e.label||"").toLowerCase();return t.includes(r)}))},handleTreeCheck:function(e,t){this.checkedKeys=t.checkedKeys,this.reloadModelDetailsForCheckedNodes()},getTreeSelectAllStats:function(){var e=this.allTreeData&&this.allTreeData.length>0?this.allTreeData:this.treeData;if(!e||!e.length)return{allKeys:[],selectedCount:0};var t=this.getAllNodeKeys(e),r=new Set(this.checkedKeys),a=t.filter((function(e){return r.has(e)})).length;return{allKeys:t,selectedCount:a}},handleTreeSelectAll:function(){var e=this,t=this.allTreeData&&this.allTreeData.length>0?this.allTreeData:this.treeData;if(t&&t.length){var r=this.getAllNodeKeys(t);this.checkedKeys=r,this.$nextTick((function(){e.$refs.paramTree&&r.length>0&&e.$refs.paramTree.setCheckedKeys(r),e.reloadModelDetailsForCheckedNodes()}))}else this.$message({type:"warning",message:"暂无参数树数据"})},handleTreeDeselectAll:function(){var e=this;this.checkedKeys=[],this.$nextTick((function(){e.$refs.paramTree&&e.$refs.paramTree.setCheckedKeys([]),e.reloadModelDetailsForCheckedNodes()}))},getParamValue:function(e,t){if(!e||!e.id||!t)return"-";var r=e.parameterVersion||1,a="".concat(e.id,"_").concat(r);if(!this.hasParamPermission(e,t))return"-";if(this.isWholeEngineSubsystemName(t.subsystemName)){var n={"产品型号":"modelName","状态代号":"productNumber","板块":"plate","平台":"platform","系列":"series","细节市场":"marketSegment","项目名称":"projectName","项目编号":"projectNumber","标准参数":"parameterNum"},i=n[t.parameterName];if(i){var o=this.allModelRawData[a];return o&&void 0!==o[i]&&null!==o[i]&&""!==o[i]?o[i]:"-"}}var s=this.allModelDetailData[a];if(!s||"object"!==m4(s))return"-";var l=s[t.subsystemName];if(!Array.isArray(l))return"-";var c=null;return t.parameterId&&(c=l.find((function(e){return e.subsystemName===t.subsystemName&&e.parameterId===t.parameterId}))),c||(c=l.find((function(e){return e.subsystemName===t.subsystemName&&e.parameterName===t.parameterName}))),c&&void 0!==c.parameterValue&&null!==c.parameterValue&&""!==c.parameterValue?c.parameterValue:"-"},getParamDisplayName:function(e){return e&&e.parameterName||""},handleAddModel:function(){this.addModelDialogVisible=!0,0===this.modelList.length&&this.loadModelListForDialog()},loadModelListForDialog:function(){var e=this,t=v4(v4({},et.GET_MODEL_QUERT_TABLE_BY_VERSION),{},{params:{page:1,size:999,userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){t&&t.data&&t.data.list?e.modelList=t.data.list:e.modelList=[]})).asyncErrorCatch((function(t){console.error("获取机型列表失败:",t),e.$message.error("获取机型列表失败"),e.modelList=[]}))},handleModelSelectionChange:function(e){this.selectedModels=e},handleAddModelDialogClose:function(){this.addModelDialogVisible=!1,this.selectedModels=[],this.modelSearchText="",this.$refs.modelTable&&this.$refs.modelTable.clearSelection()},handleConfirmAddModel:function(){var e=this;if(0!==this.selectedModels.length){this.loadingModelDetail=!0;var t=1500,r=new Promise((function(e){setTimeout(e,t)})),a=this.getSelectedSubsystemsAndTypes(),n=a.subsystemTypes,i=this.selectedModels.map((function(t){var r=t.id||t.rowId||t.engineModelID,a=t.parameterVersion||1,i="".concat(r,"_").concat(a);return e.$set(e.allModelRawData,i,{modelName:t.modelName||t.productFullName||"",productNumber:t.productNumber||"",plate:t.plate||"",platform:t.platform||"",ycOrOth:t.ycOrOth||"",series:t.series||"",marketSegment:t.marketSegment||"",projectName:t.projectName||"",projectNumber:t.projectNumber||"",parameterNum:t.parameterNum||""}),e.loadModelDetail(r,t,a,n)}));Promise.all([Promise.all(i),r]).then((function(){e.handleAddModelDialogClose()})).catch((function(t){console.error("加载机型详情失败:",t),e.$message.error("加载机型详情失败")})).finally((function(){e.loadingModelDetail=!1}))}else this.$message({type:"warning",message:"请至少选择一个机型"})},loadModelDetail:function(e,t,r,a){var n=this;return new Promise((function(i,o){var s=v4(v4({},et.GET_MODEL_QUERT_DETAIL),{},{params:{engineModelID:e,parameterVersion:r,userID:de(),subsystemParts:a},disableSuccessMsg:!0});n.$request(s).asyncThen((function(a){if(a&&a.data){var o={};Object.keys(a.data).forEach((function(e){var t=a.data[e];Array.isArray(t)&&(o[e]=t.map((function(t){return v4(v4({},t),{},{subsystemName:t.subsystemName||e})})))}));var s="".concat(e,"_").concat(r),l=n.allModelDetailData[s]||{},c=v4(v4({},l),o);n.$set(n.allModelDetailData,s,c),n.currentCommonConfig;var u=n.comparisonModels.find((function(t){var a=t.parameterVersion||1;return t.id===e&&a===r}));if(!u){var d={id:e,name:t.modelName||t.productFullName||"未知机型",image:t.image||t.imageUrl||"",parameterVersion:r};n.comparisonModels.push(d)}i()}else{var p="".concat(e,"_").concat(r),h=n.allModelDetailData[p]||{};n.$set(n.allModelDetailData,p,h);var f=n.comparisonModels.find((function(t){var a=t.parameterVersion||1;return t.id===e&&a===r}));if(!f){var m={id:e,name:t.modelName||t.productFullName||"未知机型",image:t.image||t.imageUrl||"",parameterVersion:r||t.parameterVersion||1};n.comparisonModels.push(m)}i()}})).asyncErrorCatch((function(a){console.error("获取机型详情失败:",a);var i="".concat(e,"_").concat(r),s=n.allModelDetailData[i]||{};n.$set(n.allModelDetailData,i,s);var l=n.comparisonModels.find((function(t){var a=t.parameterVersion||1;return t.id===e&&a===r}));if(!l){var c={id:e,name:t.modelName||t.productFullName||"未知机型",image:t.image||t.imageUrl||"",parameterVersion:r||t.parameterVersion||1};n.comparisonModels.push(c)}o(a)}))}))},reloadModelDetailsForCheckedNodes:function(){var e=this;if(this.comparisonModels&&0!==this.comparisonModels.length){var t=this.getSelectedSubsystemsAndTypes(),r=t.subsystemNames,a=t.parameterTypes,n=t.subsystemTypes;if(0!==r.length||0!==a.length){var i=this.comparisonModels.map((function(t){var r=t.id,a=t.parameterVersion||1;if(!r)return Promise.resolve();var i=e.modelList.find((function(e){return(e.id||e.rowId||e.engineModelID)===r}));i||(i={id:r,modelName:t.name,parameterVersion:a,productFullName:t.name,image:t.image,imageUrl:t.image});var o="".concat(r,"_").concat(a);return e.allModelRawData[o]?!e.allModelRawData[o].ycOrOth&&i.ycOrOth&&e.$set(e.allModelRawData[o],"ycOrOth",i.ycOrOth):e.$set(e.allModelRawData,o,{modelName:i.modelName||i.productFullName||t.name||"",productNumber:i.productNumber||"",plate:i.plate||"",platform:i.platform||"",ycOrOth:i.ycOrOth||"",series:i.series||"",marketSegment:i.marketSegment||"",projectName:i.projectName||"",projectNumber:i.projectNumber||"",parameterNum:i.parameterNum||""}),e.loadModelDetail(r,i,a,n)}));Promise.all(i).then((function(){})).catch((function(e){console.error("重新加载机型详情失败:",e)}))}}},extractParamsFromDetail:function(e){var t=this,r={};return e&&"object"===m4(e)?(Object.keys(e).forEach((function(a){var n=e[a];Array.isArray(n)&&n.forEach((function(e){var a=e.parameterName||"",n=Object.keys(t.paramMap).find((function(e){return t.paramMap[e].label===a}));n&&void 0!==e.parameterValue&&null!==e.parameterValue&&(r[n]=e.parameterValue)}))})),r):r},extractParamsFromList:function(e){var t=this,r={};return Array.isArray(e)&&0!==e.length?(e.forEach((function(e){var a=e.parameterName||"",n=Object.keys(t.paramMap).find((function(e){return t.paramMap[e].label===a}));n&&void 0!==e.minorVersion&&null!==e.minorVersion&&(r[n]=e.minorVersion)})),r):r},getSelectedSubsystemsAndTypes:function(){var e=this,t=[],r=[],a=[],n=new Set,i=new Set,o=new Set;return this.checkedKeys.forEach((function(s){var l=e.nodeMap[s];if(l)if(l.isParent)n.has(l.label)||(t.push(l.label),n.add(l.label));else if(l.parentLabel&&!n.has(l.parentLabel)&&(t.push(l.parentLabel),n.add(l.parentLabel)),l.parentLabel&&o.add(l.parentLabel),l.label&&r.push(l.label),l.parentLabel&&l.label){var c="/"===l.label?"/":l.label,u="".concat(l.parentLabel,"-").concat(c);i.has(u)||(a.push(u),i.add(u))}})),t.forEach((function(e){if(!o.has(e)){var t="".concat(e,"-/");i.has(t)||(a.push(t),i.add(t))}})),{subsystemNames:t,parameterTypes:r,subsystemTypes:a}},handleRemoveModel:function(e){var t=this.comparisonModels[e];if(t&&t.id){var r=t.parameterVersion||1,a="".concat(t.id,"_").concat(r);this.$delete(this.allModelDetailData,a),this.$delete(this.allModelRawData,a)}this.comparisonModels.splice(e,1)},loadFavoritesList:function(){var e=this,t=v4(v4({},et.GET_USER_COMMONLY_USED),{},{params:{userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r=[];Array.isArray(t.data)?r=t.data:t.data.list&&Array.isArray(t.data.list)?r=t.data.list:t.data.data&&Array.isArray(t.data.data)&&(r=t.data.data),e.favoritesOptions=r.map((function(e){return{label:e.commonName||e.name||"",value:e.commonId||e.commonName||e.name||"",data:e}}))}})).asyncErrorCatch((function(t){console.error("获取常用列表失败:",t),e.$message.error("获取常用列表失败")}))},handleFavoriteChange:function(e){var t=this;if(!e){this.currentCommonConfig=null,this.treeData=JSON.parse(JSON.stringify(this.allTreeData)),this.nodeMap=JSON.parse(JSON.stringify(this.allNodeMap)),this.hiddenParams=[];var r=this.getAllNodeKeys(this.treeData);return this.defaultExpandedKeys=r,this.checkedKeys=r,void this.$nextTick((function(){t.$refs.paramTree&&r.length>0&&t.$refs.paramTree.setCheckedKeys(r)}))}var a=this.favoritesOptions.find((function(t){return t.value===e||t.data&&(t.data.commonId===e||t.data.commonName===e)}));a&&a.data?(this.currentCommonConfig=a.data,this.allTreeData&&this.allTreeData.length>0&&Object.keys(this.allNodeMap).length>0?this.updateCheckedKeysByDisplayParams():console.log("树数据还未加载完成,等待加载完成后再更新选中状态"),this.$nextTick((function(){t.hideParamsNotInCommonByDisplayParams()}))):this.$message({type:"warning",message:"未找到选中的常用配置"})},handleDownloadComparisonData:function(){var e=this,t=this.comparisonModels.filter((function(e){return e.id})).map((function(e){return{modelId:e.id,parameterVersion:e.parameterVersion||""}}));if(0!==t.length){var r=this.getSelectedSubsystemsAndTypes(),a=r.subsystemTypes,n=a.filter((function(t){return!e.isWholeEngineSubsystemPrefix(t)})),i=this.collectCurrentDisplayParams(),o=[];i&&i.subsystems&&i.subsystems.length>0&&i.subsystems.forEach((function(t){var r=e.isWholeEngineSubsystemName(t.subsystem)?1:0;t.parameters.forEach((function(e){o.push({parameterId:e.parameterId,isGlobal:r})}))}));var s=o.filter((function(e){return 1!==e.isGlobal&&e.parameterId})).map((function(e){return e.parameterId})),l=et.DOWNLOAD_MODEL_QUERY_DATA||{},c=l.url,u=l.method,d=void 0===u?"post":u,p=l.headers,h=void 0===p?{}:p,f={url:c,method:d,data:{userID:de(),modelIds:t,parameterIds:s,subsystemParts:n},responseType:"blob",headers:h,disableSuccessMsg:!0};this.$axios(f).then((function(e){var t=e.data;if(t){var r=e.headers&&(e.headers["content-type"]||e.headers["Content-Type"]);if(r&&r.includes("application/json"))try{var a=new FileReader;a.onload=function(){console.log("下载失败: ".concat(a.result))},a.readAsText(t)}catch(u){console.error("解析下载失败响应异常:",u)}else{var n=e.headers&&(e.headers["content-disposition"]||e.headers["Content-Disposition"]),i="对比数据.xlsx";if(n){var o=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(n),s=o?o[1]||o[2]:"";if(s)try{i=decodeURIComponent(s)}catch(u){i=s}}var l=window.URL.createObjectURL(t),c=document.createElement("a");c.href=l,c.download=i,document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l),console.log("下载开始,请查看浏览器下载列表")}}else console.log("下载失败,文件内容为空")})).catch((function(e){console.error("下载失败:",e),console.log("下载失败,请稍后重试")}))}else this.$message({type:"warning",message:"请先添加机型"})},updateCheckedKeysByDisplayParams:function(){var e=this;if(console.log("根据可显示的参数更新树节点选中状态(不改变树数据)"),this.treeData=JSON.parse(JSON.stringify(this.allTreeData)),this.nodeMap=JSON.parse(JSON.stringify(this.allNodeMap)),!this.currentCommonConfig||!this.currentCommonConfig.subsystems){var t=this.getAllNodeKeys(this.treeData);return this.checkedKeys=t,this.defaultExpandedKeys=t,void this.$nextTick((function(){e.$refs.paramTree&&t.length>0&&e.$refs.paramTree.setCheckedKeys(t)}))}var r=new Map;this.currentCommonConfig.subsystems.forEach((function(t){var a=t.subsystem;r.has(a)||r.set(a,new Set),t.parameters.forEach((function(t){var n=1===t.isGlobal||"1"===t.isGlobal,i=a;if(n&&(i=x4,r.has(i)||r.set(i,new Set)),t.partsName){var o=t.partsName,s=o;r.get(i).add(s)}else{var l=e.allParametersData[i];if(Array.isArray(l)){var c=l.find((function(e){return t.parameterId?e.parameterId===t.parameterId:!!t.parameterName&&e.parameterName===t.parameterName}));if(c&&c.partsName){var u=c.partsName,d=u;r.get(i).add(d)}else r.get(i).add("/")}else r.get(i).add("/")}}))}));var a=[];this.allTreeData.forEach((function(e){var t,n=null,i=p4(r);try{for(i.s();!(t=i.n()).done;){var o=l4(t.value,1),s=o[0];if(e.label===s||e.label.includes(s)||s.includes(e.label)){n=s;break}}}catch(c){i.e(c)}finally{i.f()}if(n){var l=r.get(n);l.has("/")&&(a.push(e.id),l.delete("/")),e.children&&Array.isArray(e.children)&&l.size>0&&e.children.forEach((function(e){var t,r=p4(l);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(e.label===n||e.label.includes(n)||n.includes(e.label)){a.push(e.id);break}}}catch(c){r.e(c)}finally{r.f()}}))}})),this.checkedKeys=a;var n=[];this.allTreeData.forEach((function(e){var t,a=p4(r);try{for(a.s();!(t=a.n()).done;){var i=l4(t.value,1),o=i[0];if(e.label===o||e.label.includes(o)||o.includes(e.label)){n.push(e.id);break}}}catch(s){a.e(s)}finally{a.f()}})),n.push.apply(n,a),this.defaultExpandedKeys=n,this.$nextTick((function(){e.$refs.paramTree&&(a.length>0?(e.$refs.paramTree.setCheckedKeys(a),e.$refs.paramTree.setExpandedKeys(n)):e.$refs.paramTree.setCheckedKeys([]))})),this.reloadModelDetailsForCheckedNodes()},rebuildNodeMap:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.forEach((function(e,a){var n=!r,i=e.label;t.nodeMap[e.id]={label:i,parentLabel:r,isParent:n},e.children&&e.children.length>0&&t.rebuildNodeMap(e.children,i)}))},hideParamsNotInCommonByDisplayParams:function(){var e=this;if(this.currentCommonConfig&&this.currentCommonConfig.subsystems){var t=this.getSelectedSubsystemsAndTypes(),r=t.subsystemNames,a=t.parameterTypes,n=t.subsystemTypes;if(0!==r.length||0!==a.length){var i=new Map;this.currentCommonConfig.subsystems.forEach((function(e){var t=e.subsystem;e.parameters.forEach((function(e){var r=1===e.isGlobal||"1"===e.isGlobal,a=r?x4:t,n=e.parameterId||e.parameterName;n&&(i.has(a)||i.set(a,new Set),i.get(a).add(n))}))}));var o=[];r.forEach((function(t){var r=e.allParametersData[t];Array.isArray(r)&&0!==r.length&&r.forEach((function(r){var i=r.parameterName||"",s=r.parameterId||"",l=r.partsName||"",c=!1,u=e.checkedKeys.some((function(r){var a=e.nodeMap[r];return a&&a.isParent&&a.label===t&&!e.checkedKeys.some((function(r){var a=e.nodeMap[r];return a&&!a.isParent&&a.parentLabel===t}))}));if(u){var d=e.treeData.some((function(e){return!(e.label!==t||!e.children)&&e.children.some((function(e){return e.label===l}))}));if(d){var p=e.checkedKeys.some((function(r){var a=e.nodeMap[r];return a&&!a.isParent&&a.parentLabel===t&&a.label===l}));c=p}else c=!0}else 0===a.length?c=!1:(a.includes(l)&&(c=!0),c||(c=n.includes("".concat(t,"-").concat(l))));c&&o.push({subsystemName:t,parameterName:i,parameterId:s,partsName:l})}))}));var s=[];o.forEach((function(e){var t=e.subsystemName,r=e.parameterName,a=e.parameterId,n=i.has(t),o=i.get(t)||new Set,l=a||r,c=n&&o.has(l);if(!c){var u="".concat(t,"-").concat(r);s.includes(u)||s.push(u)}})),this.hiddenParams=s}}},hideParamsNotInCommon:function(){var e=this;if(this.currentCommonConfig&&this.currentCommonConfig.subsystems){var t=new Map;this.currentCommonConfig.subsystems.forEach((function(e){var r=e.subsystem,a=new Set(e.parameters.map((function(e){return e.parameterId}))),n=new Set(e.parameters.map((function(e){return e.parameterName})));t.set(r,{parameterIds:a,parameterNames:n})}));var r=[];Object.keys(this.allParametersData).forEach((function(a){if(t.has(a)){var n=t.get(a),i=e.allParametersData[a];Array.isArray(i)&&i.forEach((function(e){var t=e.parameterName||"",i=e.parameterId||"",o=i?n.parameterIds.has(i):n.parameterNames.has(t);if(!o){var s="".concat(a,"-").concat(t);r.includes(s)||r.push(s)}}))}else{var o=e.allParametersData[a];Array.isArray(o)&&o.forEach((function(e){var t=e.parameterName||"",n="".concat(a,"-").concat(t);r.includes(n)||r.push(n)}))}})),r.forEach((function(t){e.hiddenParams.includes(t)||e.hiddenParams.push(t)}))}},handleUpdateFavorite:function(){var e=this;if(this.currentCommonConfig)if(0!==this.displayParams.length){var t=this.collectCurrentDisplayParams();if(t&&t.subsystems&&0!==t.subsystems.length){var r=[];t.subsystems.forEach((function(t){var a=e.isWholeEngineSubsystemName(t.subsystem)?1:0;t.parameters.forEach((function(e){r.push({parameterId:e.parameterId,isGlobal:a})}))}));var a={userId:de(),commonName:this.currentCommonConfig.commonName||this.currentCommonConfig.name,parameters:r};this.currentCommonConfig.commonId?a.commonId=this.currentCommonConfig.commonId:this.currentCommonConfig.id&&(a.id=this.currentCommonConfig.id),this.savingFavorite=!0;var n=v4(v4({},et.UPDATE_USER_COMMONLY_USED),{},{params:a});this.$request(n).asyncThen((function(t){e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("更新常用失败:",t),e.$message.error(t.message||"更新常用失败")})).finally((function(){e.savingFavorite=!1}))}else this.$message({type:"warning",message:"当前没有可保存的参数"})}else this.$message({type:"warning",message:"当前没有可保存的参数,请先选择参数"});else this.$message({type:"warning",message:"请先选择一个常用配置"})},handleAddFavorite:function(){0!==this.displayParams.length?this.addFavoriteDialogVisible=!0:this.$message({type:"warning",message:"当前没有可保存的参数,请先选择参数"})},handleAddFavoriteDialogClose:function(){this.addFavoriteDialogVisible=!1,this.addFavoriteFormData.commonName="",this.$refs.addFavoriteForm&&this.$refs.addFavoriteForm.clearValidate()},handleConfirmAddFavorite:function(){var e=this;this.$refs.addFavoriteForm.validate((function(t){if(!t)return!1;if(0!==e.displayParams.length){var r=e.collectCurrentDisplayParams();if(r&&r.subsystems&&0!==r.subsystems.length){var a=[];r.subsystems.forEach((function(t){var r=e.isWholeEngineSubsystemName(t.subsystem)?1:0;t.parameters.forEach((function(e){a.push({parameterId:e.parameterId,isGlobal:r})}))}));var n={userId:de(),commonName:e.addFavoriteFormData.commonName,parameters:a};e.savingFavorite=!0;var i=v4(v4({},et.ADD_USER_COMMONLY_USED),{},{params:n});e.$request(i).asyncThen((function(t){e.handleAddFavoriteDialogClose(),e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("新增常用失败:",t),e.$message.error(t.message||"新增常用失败")})).finally((function(){e.savingFavorite=!1}))}else e.$message({type:"warning",message:"当前没有可保存的参数"})}else e.$message({type:"warning",message:"当前没有可保存的参数"})}))},collectCurrentDisplayParams:function(){var e=this,t=new Map;this.displayParams.forEach((function(r){var a=r.subsystemName;t.has(a)||t.set(a,{subsystem:a,parameters:[]});var n=r.parameterId||null;if(!n&&e.allParametersData[a]){var i=e.allParametersData[a];if(Array.isArray(i)){var o=i.find((function(e){return e.parameterName===r.parameterName}));o&&o.parameterId&&(n=o.parameterId)}}if(n){var s=t.get(a),l=s.parameters.some((function(e){return e.parameterId===n}));l||s.parameters.push({parameterId:n,parameterName:r.parameterName})}else{var c=t.get(a),u=c.parameters.some((function(e){return e.parameterName===r.parameterName}));u||c.parameters.push({parameterId:"",parameterName:r.parameterName})}}));var r=Array.from(t.values());return{subsystems:r}},handleHideParam:function(e){var t="".concat(e.subsystemName,"-").concat(e.parameterName);this.hiddenParams.includes(t)||this.hiddenParams.push(t)},handleShowHiddenParams:function(){var e=this;this.selectedParamsToRestore=[],this.hiddenParamsDialogVisible=!0,this.$nextTick((function(){e.$refs.hiddenParamsTable&&e.$refs.hiddenParamsTable.clearSelection()}))},handleHiddenParamsDialogClose:function(){this.hiddenParamsDialogVisible=!1,this.selectedParamsToRestore=[],this.$refs.hiddenParamsTable&&this.$refs.hiddenParamsTable.clearSelection()},handleHiddenParamsSelectionChange:function(e){this.selectedParamsToRestore=e.map((function(e){return e.key||"".concat(e.subsystemName,"-").concat(e.parameterName)}))},handleRestoreAll:function(){var e=this;0!==this.hiddenParamsList.length?this.$nextTick((function(){e.$refs.hiddenParamsTable&&e.$refs.hiddenParamsTable.toggleAllSelection()})):this.$message({type:"warning",message:"没有可恢复的参数"})},handleRestoreSelected:function(){0!==this.selectedParamsToRestore.length?this.executeRestoreParams(this.selectedParamsToRestore):this.$message({type:"warning",message:"请至少选择一个要恢复的参数"})},handleConfirmRestoreParams:function(){0!==this.selectedParamsToRestore.length?this.executeRestoreParams(this.selectedParamsToRestore):this.$message({type:"warning",message:"请至少选择一个要恢复的参数"})},executeRestoreParams:function(e){var t=this;e&&0!==e.length&&(e.forEach((function(e){var r=t.hiddenParams.indexOf(e);r>-1&&t.hiddenParams.splice(r,1)})),this.selectedParamsToRestore=[],this.$refs.hiddenParamsTable&&this.$refs.hiddenParamsTable.clearSelection(),this.hiddenParamsDialogVisible=!1)},loadTreeData:function(){var e=this;console.log("加载树数据,调用接口获取树数据"),this.loadAllParametersData().then((function(){var t=v4(v4({},et.GET_ENGINE_DETAIL_QUERY),{},{params:{tcData:"tc",userId:de()},disableSuccessMsg:!0});e.$request(t).asyncThen((function(t){var r=[];if(t&&t.data){var a=t.data;"object"!==m4(a)||Array.isArray(a)?Array.isArray(a)&&(r=e.formatTreeData(a)):r=e.convertObjectToTree(a)}var n=e.buildWholeEngineParamsNode();if(console.log('根据接口返回的"整车参数"参数数据构建树结构',n),r=[n].concat(n4(r)),console.log('将"整车参数"节点放在第一位,其他节点放在后面',r),e.allTreeData=JSON.parse(JSON.stringify(r)),e.allNodeMap=JSON.parse(JSON.stringify(e.nodeMap)),console.log("保存完整的树数据(未过滤)",e.allTreeData),e.treeData=JSON.parse(JSON.stringify(e.allTreeData)),console.log("始终使用完整的树数据",e.treeData),e.currentCommonConfig)e.$nextTick((function(){e.updateCheckedKeysByDisplayParams(),e.$nextTick((function(){console.log("比较当前显示的参数和常用配置中的参数,找出不在常用中的参数,隐藏它们"),e.hideParamsNotInCommonByDisplayParams()}))}));else{console.log("否则全选");var i=e.getAllNodeKeys(e.treeData);e.defaultExpandedKeys=i,e.checkedKeys=i,e.$nextTick((function(){e.$refs.paramTree&&i.length>0&&e.$refs.paramTree.setCheckedKeys(i)}))}})).asyncErrorCatch((function(t){console.error("获取参数列表失败:",t),e.$message.error("获取参数列表失败")}))}))},loadAllParametersData:function(){var e=this,t=v4(v4({},et.GET_ALL_DATA_SYSTEAM_LIST),{},{disableSuccessMsg:!0});return this.$request(t).asyncThen((function(t){var r={};t&&t.data&&Array.isArray(t.data)&&t.data.forEach((function(e){e.subsystem&&Array.isArray(e.parameters)&&(r[e.subsystem]=e.parameters.map((function(t){return{parameterId:t.parameterId||"",parameterName:t.parameterName||"",partsName:t.partsName||"",subsystem:e.subsystem,unit:t.unit||""}})))})),e.allParametersData=r,e.savedAllParametersData=JSON.parse(JSON.stringify(r)),e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("获取所有参数数据失败:",t),e.allParametersData={},e.savedAllParametersData=JSON.parse(JSON.stringify(e.allParametersData)),e.loadFavoritesList()}))},convertObjectToTree:function(e){var t=this,r=[];return this.nodeMap={},Object.keys(e).forEach((function(a,n){var i="parent-".concat(n),o=[],s=new Set;t.nodeMap[i]={label:a,parentLabel:null,isParent:!0},Array.isArray(e[a])&&e[a].forEach((function(e,r){if(!s.has(e)){s.add(e);var n="".concat(i,"-").concat(r);o.push({id:n,label:e,tip:""}),t.nodeMap[n]={label:e,parentLabel:a,isParent:!1}}})),r.push({id:i,label:a,tip:"",children:o})})),r},formatTreeData:function(e){var t=this;return e.map((function(e,r){var a={id:e.id||e.key||"node-".concat(r),label:e.label||e.name||e.title||"",tip:e.tip||""};if(e.children&&e.children.length>0){var n=new Set,i=[];e.children.forEach((function(e){var t=e.label||e.name||e.title||"";n.has(t)||(n.add(t),i.push(e))})),a.children=t.formatTreeData(i)}return a}))},getAllNodeKeys:function(e){var t=this,r=[];return e.forEach((function(e){r.push(e.id),e.children&&e.children.length>0&&(r=r.concat(t.getAllNodeKeys(e.children)))})),r},isWholeEngineSubsystemName:function(e){return w4.includes(e)},isWholeEngineSubsystemPrefix:function(e){return!(!e||"string"!==typeof e)&&w4.some((function(t){return e.startsWith("".concat(t,"-"))}))},getWholeEngineParametersList:function(){for(var e=0;e0?r("div",{staticClass:"handler-display"},e._l(t.handlers,(function(a,n){return r("span",{key:n,staticClass:"handler-tag"},[e._v(" "+e._s(e.getHandlerName(a,t.options))+" ")])})),0):r("span",{staticClass:"handler-empty"},[e._v("--")])]],2)])})),0)])])])]):e._e(),e.reportDetail.status&&"DRAFT"!==e.reportDetail.status&&e.detail.flowId&&!e.isEditMode?r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title"},[e._v(" 审批流程 ")]),e.timelineNodes&&e.timelineNodes.length>0?r("div",{staticClass:"approval-timeline"},[r("el-timeline",e._l(e.timelineNodes,(function(t,a){return r("el-timeline-item",{key:a,attrs:{color:e.getTimelineColor(t.result||t.status,a,e.timelineNodes.length)}},[r("div",{staticClass:"timeline-item-content"},[r("div",{staticClass:"node-title"},[e._v(" "+e._s(t.title)+" ")]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"node-info"},[r("div",{staticClass:"node-user"},[e._v(" "+e._s(t.userName||"--")+" "),r("span",{staticClass:"node-time"},[e._v(" "+e._s(e.formatTime(t.operateTime))+" ")])])]),r("div",{staticClass:"node-status",class:e.getStatusClass(t.result||t.status)},[e._v(" "+e._s(e.setStatusText(t.result||t.status))+" ")]),t.opinion?r("div",{staticClass:"node-opinion"},[e._v(" 审批意见:"+e._s(t.opinion)+" ")]):e._e()])])])})),1)],1):r("div",{staticClass:"empty-progress"},[r("span",{staticClass:"empty-text"},[e._v("暂无审批流程数据")])])]):e._e()])]),r("el-dialog",{attrs:{title:"提交",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,rules:e.approvalFormRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"提交意见:"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入提交意见(可选)"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择退回节点",visible:e.returnNodeDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.returnNodeDialogVisible=t},close:e.handleReturnNodeDialogClose}},[r("div",{staticClass:"return-node-dialog-content"},[r("el-radio-group",{on:{change:e.handleReturnNodeChange},model:{value:e.selectedReturnNode,callback:function(t){e.selectedReturnNode=t},expression:"selectedReturnNode"}},e._l(e.returnableNodes,(function(e){return r("el-radio",{key:e,attrs:{label:e}})})),1),"编制"===e.selectedReturnNode?r("div",{staticClass:"return-opinion-section"},[r("div",{staticClass:"opinion-label"},[e._v(" 退回意见: ")]),r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入退回意见"},model:{value:e.returnOpinion,callback:function(t){e.returnOpinion=t},expression:"returnOpinion"}})],1):e._e()],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleReturnNodeDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.returnSubmitting,disabled:!e.selectedReturnNode},on:{click:e.handleReturnSubmit}},[e._v(" 确定 ")])],1)])],1):e._e()])},M4=[],P4=["processTitle"];function k4(e){return k4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k4(e)}function N4(e,t){if(null==e)return{};var r,a,n=E4(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E4(e,t){if(null==e)return{};var r,a,n={},i=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}function L4(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L4=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new C(n||[]);return a(o,"_invoke",{value:x(e,r,s)}),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==k4(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function R4(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function F4(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){R4(i,a,n,o,s,"next",e)}function s(e){R4(i,a,n,o,s,"throw",e)}o(void 0)}))}}function j4(e){return z4(e)||B4(e)||$4(e)||V4()}function V4(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $4(e,t){if(e){if("string"===typeof e)return G4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G4(e,t):void 0}}function B4(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function z4(e){if(Array.isArray(e))return G4(e)}function G4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0){var t=this.flowNodes.findIndex((function(e){return"REJECT"===e.result})),r=this.flowNodes;if(-1!==t);else{var a=r.findIndex((function(e){return"待审批"===e.result}));-1!==a&&(r=r.map((function(e,t){return t===a?W4(W4({},e),{},{result:"APPROVING"}):e})))}r.forEach((function(t){var r="APPROVING",a="APPROVING";t.result&&("REJECT"===t.result?(r="REJECT",a="REJECT"):"MSG"===t.result?(r="MSG",a="MSG"):"RETURN"===t.result?(r="PASS",a="PASS"):"APPROVING"===t.result?(r="APPROVING",a="APPROVING"):"PASS"===t.result?(r="PASS",a="PASS"):"待审批"===t.result&&(r="待审批",a="STAY"));var n=t.opinions&&Array.isArray(t.opinions)&&t.opinions.length>0?t.opinions[0]:null,i=t.todoUserName||t.undoUserName||"--";e.push({title:t.node||"审批节点",userName:i,operateTime:t.approvalTime||"",result:r,status:a,opinion:n})}))}return e},currentNode:function(){if("DRAFT"===this.reportDetail.status)return"草稿";if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.node||"--";var t=this.flowNodes[this.flowNodes.length-1];return t&&t.node||"--"}return"--"},currentProcessor:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.undoUserName||e.todoUserName||"--"}return"--"}},watch:{detail:{handler:function(e){e&&e.reportId&&(this.loadReportDetailFromApi(e.reportId,e.flowId),e.flowId&&this.getApprovalSpet(e.flowId))},immediate:!0,deep:!0}},mounted:function(){this.loadUserSelfRole()},methods:{loadUserSelfRole:function(){var e=W4(W4({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){if(e&&e.data)try{localStorage.setItem("user_self_role",JSON.stringify(e.data))}catch(t){console.error("存储权限数据到 localStorage 失败:",t)}})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},isAdmin:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){return 1===e.isAdmin||"1"===e.isAdmin}))}catch(r){return console.error("检查管理员权限失败:",r),!1}},hasGlobalEditPermission:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return"对标报告"===t&&"编辑"===r}))}catch(r){return console.error("检查全局编辑权限失败:",r),!1}},hasOperationPermission:function(){return!!this.isAdmin()||!!this.hasGlobalEditPermission()},setStatusText:function(e){var t={PASS:"通过",REJECT:"驳回",REFUSE:"驳回",APPROVE:"批准",APPROVING:"审批中",PENDING:"待处理",WAITING:"待处理",INITIATE:"发起审批",MSG:"通过"};return t[e]||e||"待处理"},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},getTimelineColor:function(e,t,r){return"PASS"===e||"APPROVE"===e?"#67C23A":"REJECT"===e||"REFUSE"===e?"#F56C6C":"APPROVING"===e||"PENDING"===e||"WAITING"===e?"#E6A23C":"#409EFF"},getStatusClass:function(e){var t={PASS:"status-pass",APPROVE:"status-approve",REJECT:"status-reject",REFUSE:"status-reject",APPROVING:"status-approving",PENDING:"status-pending",WAITING:"status-pending",INITIATE:"status-initiate",MSG:"status-msg"};return t[e]||"status-default"},loadReportDetail:function(){this.detail&&Object.keys(this.detail).length>0&&(this.detail.reportId?this.loadReportDetailFromApi(this.detail.reportId):(this.reportDetail=this.detail,this.detail.flowId&&this.reportDetail.status&&"DRAFT"!==this.reportDetail.status&&this.getApprovalSpet(this.detail.flowId)))},loadReportDetailFromApi:function(e,t){var r=this;if(console.log(e,t,"reportId, flowId"),e){var a=W4(W4({},et.GET_REPORT_DETAIL),{},{params:{reportId:e},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){if(r.reportDetail=e.data||e,r.originalReportDetail=JSON.parse(JSON.stringify(r.reportDetail)),"DRAFT"===r.reportDetail.status){var a=t||r.detail.flowId||r.reportDetail.flowId;a&&(r.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],r.loadApprovalUsers(a))}else t&&r.reportDetail.status&&"DRAFT"!==r.reportDetail.status&&r.getApprovalSpet(t)})).asyncErrorCatch((function(e){console.error("获取报告详情失败:",e),r.$message.error("获取报告详情失败,请重试")}))}},getApprovalSpet:function(e){var t=this;if(e){var r=this.reportDetail.reportId||this.reportDetail.id||this.detail.reportId||this.detail.id;if(r){var a=W4(W4({},et.GET_REPORT_DETAIL_PROCESS),{},{params:{flowId:e},disableSuccessMsg:!0});this.$request(a).asyncThen((function(e){console.log("审批流程数据:",e);var r=e.data||e;t.progressDetail={explanation:r.explanation||"",flowStatus:r.flowStatus||"",progressTitle:r.progressTitle||"",templateVersion:r.templateVersion||"",contentName:r.contentName||""},t.reportDetail.processTitle=r.progressTitle;var a=r.flowStatus||"",n=r.createBy||"";a&&t.$set(t.reportDetail,"status",a),t.showTopDetail={processTitle:r.progressTitle,createBy:n,createTime:r.createTime||"",currentNode:"REJECTED"===a?"编制":r.currentNode||"",currentProcessor:"REJECTED"===a?n:r.processor||""},t.flowNodes=r.flowNodes||[]})).asyncErrorCatch((function(e){console.error("获取审批流程数据失败:",e),t.flowNodes=[],t.progressDetail={}}))}}},handleBack:function(){this.$emit("close")},handleDownload:function(e){var t=document.createElement("a");t.href=e.filePath,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},handleReturn:function(){var e=this;if(this.detail&&this.detail.flowId){var t=W4(W4({},et.GET_CAN_RETURN_NODE),{},{params:{flowId:this.detail.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t);var r=Array.isArray(t.data)?t.data:[];e.returnableNodes=["编制"].concat(j4(r))})).asyncErrorCatch((function(t){console.error("获取退回节点失败:",t),e.returnableNodes=["编制"]})),this.selectedReturnNode="",this.returnOpinion="拒绝",this.returnNodeDialogVisible=!0}else this.$message.error("缺少审批信息")},handleReturnNodeDialogClose:function(){this.returnNodeDialogVisible=!1,this.selectedReturnNode="",this.returnOpinion="拒绝"},handleReturnNodeChange:function(){"编制"!==this.selectedReturnNode?this.returnOpinion="":this.returnOpinion||(this.returnOpinion="拒绝")},handleReturnSubmit:function(){var e=this;if(this.selectedReturnNode)if(this.detail&&this.detail.flowId)if(this.returnSubmitting=!0,"编制"===this.selectedReturnNode){var t={flowId:this.detail.flowId,userId:de(),result:"REJECT",opinion:this.returnOpinion||""},r=W4(W4({},et.START_REPORT_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.detail.flowId&&e.getApprovalSpet(e.detail.flowId),e.$message({message:"拒绝成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("拒绝失败:",t),e.$message({message:t.message||"拒绝失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else{var a=this.reportDetail.createdById||this.detail.createdById||"";if(!a)return this.$message.error("无法获取流程发起人信息"),void(this.returnSubmitting=!1);var n=de(),i={flowId:this.detail.flowId,nodeName:this.selectedReturnNode,createUserId:a,processUserId:n},o=W4(W4({},et.RETURN_REPORT_TODO),{},{params:i,disableSuccessMsg:!0});this.$request(o).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.detail.flowId&&e.getApprovalSpet(e.detail.flowId),e.$message({message:"退回成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("退回失败:",t),e.$message({message:t.message||"退回失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择要退回的节点")},handleResend:function(){var e=this,t=this.reportDetail.reportId||this.reportDetail.id||this.detail.reportId||this.detail.id;t?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0;var r=W4(W4({},et.RESEND_REPORT_APPROVAL),{},{params:{reportId:t,userId:de()},disableSuccessMsg:!0});e.$request(r).asyncThen((function(t){e.detail.flowId&&e.getApprovalSpet(e.detail.flowId),e.$message({message:"直送成功",type:"success"}),e.$emit("refresh"),e.resending=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1})).finally((function(){e.resending=!1}))})).catch((function(){})):this.$message.error("缺少报告ID,无法执行直送操作")},handleSubmit:function(){var e=this;this.approvalFormData={result:"PASS",opinion:"同意"},this.approvalDialogVisible=!0,this.$nextTick((function(){e.$refs.approvalForm&&e.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalFormData={result:"",opinion:""},this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;this.$refs.approvalForm.validate((function(t){if(!t)return!1;if(e.detail&&e.detail.flowId){var r={flowId:e.detail.flowId,userId:de(),result:e.approvalFormData.result,opinion:e.approvalFormData.opinion||""};e.approvalSubmitting=!0;var a=W4(W4({},et.START_REPORT_APPROVAL),{},{params:r,disableSuccessMsg:!0});e.$request(a).asyncThen((function(t){e.handleApprovalDialogClose(),e.detail.flowId&&e.getApprovalSpet(e.detail.flowId),e.$message({message:"审批提交成功",type:"success"}),e.$emit("refresh"),e.approvalSubmitting=!1,e.handleBack()})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message({message:"审批提交失败,请重试",type:"error"}),e.approvalSubmitting=!1})).finally((function(){e.approvalSubmitting=!1}))}else e.$message.error("缺少审批信息")}))},deduplicateSteps:function(e){var t=this;if(!Array.isArray(e)||0===e.length)return[];var r=new Map,a=[];return e.forEach((function(e){var t=null;if(e.id)t="id_".concat(e.id);else{var n=e.userName||e.operator||e.username||e.handlerName||e.handler||"",i=e.approvalTime||e.handleTime||e.createTime||"",o=e.result||e.status||"";t="combo_".concat(n,"_").concat(i,"_").concat(o)}if(t)if(r.has(t)){var s=r.get(t),l=a[s],c=!!(e.approvalTime||e.handleTime||e.createTime),u=!!(l.approvalTime||l.handleTime||l.createTime);c&&!u&&(a[s]=e)}else r.set(t,a.length),a.push(e)})),a.map((function(e){var r=W4({},e);return r.approvalTime&&(r.approvalTime=t.formatTime(r.approvalTime)),r.handleTime&&(r.handleTime=t.formatTime(r.handleTime)),r.createTime&&(r.createTime=t.formatTime(r.createTime)),r}))},handleLaunch:function(){var e=this,t=this.reportDetail.reportId||this.reportDetail.id||this.detail.reportId||this.detail.id,r=this.approvalFlowIdFromUsers||this.detail.flowId||this.reportDetail.flowId,a=this.canResend;t?r?this.$confirm("确定发起审批吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var n=null;if(a){var i=e.approvalFlowIdFromUsers||r;if(!i)return void e.$message.error("缺少流程ID,无法继续发起审批");n=W4(W4({},et.CONTINUE_REPORT_APPROVAL),{},{params:{flowId:i,userId:de()},disableSuccessMsg:!0})}else{var o={reportId:t,flowId:r,userId:de()};n=W4(W4({},et.ADD_REPORT),{},{params:o,disableSuccessMsg:!0})}e.launching=!0,e.$request(n).asyncThen((function(a){e.launching=!1,e.loadReportDetailFromApi(t,r),e.$message({type:"success",message:"发起成功"}),e.$emit("refresh")})).asyncErrorCatch((function(t){console.error("发起失败:",t),e.launching=!1,e.$message({type:"error",message:"发起失败,请重试"})}))})).catch((function(){e.$message({type:"info",message:"取消发起审批"})})):this.$message.error("缺少流程ID,无法发起审批"):this.$message.error("缺少报告ID,无法发起审批")},handleResatrtLaunch:function(){var e=this,t=this.reportDetail.reportId||this.reportDetail.id||this.detail.reportId||this.detail.id;t?this.$confirm("确定重新发起吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=e.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),a=W4(W4({reportId:t},e.editFormData),{},{flowId:"",title:e.editingProcessTitle||"",processTitle:e.editFormData.processTitle||"",explanation:"",nodeList:r,userId:de()}),n=W4(W4({},et.RESTART_REPORT_APPROVAL),{},{params:a,disableSuccessMsg:!0});e.launching=!0,e.$request(n).asyncThen((function(r){e.launching=!1;var a=e.detail.flowId||e.reportDetail.flowId;e.loadReportDetailFromApi(t,a),e.$message({type:"success",message:"发起成功"}),e.$emit("refresh")})).asyncErrorCatch((function(t){console.error("发起失败:",t),e.launching=!1,e.$message({type:"error",message:"发起失败,请重试"})}))})).catch((function(){e.$message({type:"info",message:"取消发起审批"})})):this.$message.error("缺少报告ID,无法发起审批")},loadApprovalUsers:function(e){var t=this;if(!e)return Promise.resolve();var r=W4(W4({},et.GET_REPORT_APPROVAL_USERS),{},{params:{flowId:e},disableSuccessMsg:!0});return this.$request(r).asyncThen((function(r){console.log("获取审批流程信息:",r);var a=t.parseApprovalUsersMeta(r);t.approvalCanSend=!!a.canSend,t.approvalFlowIdFromUsers=a.flowId||e||"",a.title&&(t.reportDetail.processTitle=a.title,t.showTopDetail.processTitle=a.title,t.isEditMode&&(t.editFormData.processTitle=a.title)),t.fillApprovalUsersData(r,t.approvalWorkflowSteps)})).asyncErrorCatch((function(e){throw console.error("获取审批流程信息失败:",e),e}))},parseApprovalUsersMeta:function(e){var t,r={flowId:"",canSend:!1,title:""},a=null!==(t=null===e||void 0===e?void 0:e.data)&&void 0!==t?t:e,n=function(e){e&&!Array.isArray(e)&&(r.flowId=r.flowId||e.flowId||e.id||e.flowid||"",r.canSend=r.canSend||e.canSend||e.canResend||!1,r.title=r.title||e.progressTitle||e.processTitle||e.title||"")};return a&&!Array.isArray(a)&&(n(a),a.data&&!Array.isArray(a.data)&&n(a.data)),r},fillApprovalUsersData:function(e,t){var r,a,n=[],i=null;Array.isArray(e.data)?i=e.data:Array.isArray(null===(r=e.data)||void 0===r?void 0:r.data)?i=e.data.data:Array.isArray(null===(a=e.data)||void 0===a?void 0:a.result)?i=e.data.result:Array.isArray(e)?i=e:e.data&&!Array.isArray(e.data)&&(i=e.data),Array.isArray(i)?n=i:i&&Array.isArray(i.data)?n=i.data:i&&Array.isArray(i.result)?n=i.result:i&&Array.isArray(i.nodeList)?n=i.nodeList:i&&Array.isArray(i.flowNodes)&&(n=i.flowNodes),n&&n.length>0&&n.forEach((function(e){var r=e.nodeName||e.node||"";if(r){var a=t.find((function(e){return e.name===r}));if(a){var n=e.assignees||[];if(Array.isArray(n)&&0!==n.length){var i=n.map((function(e){var t=e.userId||e.id||"";return{userId:t,username:e.username||"",userNumber:e.userNumber||e.account||""}})).filter((function(e){return e.userId}));i.length>0&&(a.handlers=i.map((function(e){return e.userId})).filter(Boolean),a.options=i.map((function(e){return{userId:e.userId,username:e.username||"",userNumber:e.userNumber||""}})).filter((function(e){return e.userId})))}}}}))},getHandlerName:function(e,t){var r=t.find((function(t){return t.userId===e}));return r?r.username:e},handleRemoteSearch:function(e,t){var r=this.approvalWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=W4(W4({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},handleResendApproval:function(){this.handleResatrtLaunch()},handleProcessTitleChange:function(){},loadLaunchApprovalUsers:function(e){var t=this;if(e){var r=W4(W4({},et.GET_REPORT_APPROVAL_USERS),{},{params:{flowId:e},disableSuccessMsg:!0});this.$request(r).asyncThen((function(e){console.log("获取审批流程信息:",e),t.fillResendApprovalData(e)})).asyncErrorCatch((function(e){console.error("获取审批流程信息失败:",e)}))}else console.error("缺少流程ID,无法获取审批人员信息")},handleEdit:function(){var e=this;return F4(L4().mark((function t(){var r;return L4().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.originalReportDetail=JSON.parse(JSON.stringify(e.reportDetail)),e.editFormData={title:e.reportDetail.title||"",manufacturerName:e.reportDetail.manufacturerName||"",modelName:e.reportDetail.modelName||"",manufacturerAbbreviation:e.reportDetail.manufacturerAbbreviation||"",modelAbbreviation:e.reportDetail.modelAbbreviation||"",productNumber:e.reportDetail.productNumber||"",module:e.reportDetail.module||"",plate:e.reportDetail.plate||"",platform:e.reportDetail.platform||"",series:e.reportDetail.series||"",marketSegment:e.reportDetail.marketSegment||"",projectName:e.reportDetail.projectName||"",projectNumber:e.reportDetail.projectNumber||"",explanation:e.reportDetail.explanation||"",fileUrl:e.reportDetail.fileUrl||e.reportDetail.filePath||"",fileName:e.reportDetail.fileName||"",processTitle:e.reportDetail.processTitle||e.showTopDetail.processTitle||""},e.reportDetail.fileUrl||e.reportDetail.filePath?e.fileList=[{name:e.reportDetail.fileName||"文件",url:e.reportDetail.fileUrl||e.reportDetail.filePath}]:e.fileList=[],e.selectedFile=null,e.isEditMode=!0,"DRAFT"!==e.reportDetail.status){t.next=15;break}if(r=e.detail.flowId||e.reportDetail.flowId,!r){t.next=15;break}return t.prev=8,t.next=11,e.loadApprovalUsers(r);case 11:t.next=15;break;case 13:t.prev=13,t.t0=t["catch"](8);case 15:e.originalEditSnapshot=e.buildEditSnapshot();case 16:case"end":return t.stop()}}),t,null,[[8,13]])})))()},handleCancelEdit:function(){this.reportDetail=JSON.parse(JSON.stringify(this.originalReportDetail)),this.editFormData={title:"",manufacturerName:"",modelName:"",manufacturerAbbreviation:"",modelAbbreviation:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",explanation:"",fileUrl:"",fileName:"",processTitle:""},this.fileList=[],this.selectedFile=null,this.originalEditSnapshot=null,this.isEditMode=!1,this.$refs.editForm&&this.$refs.editForm.clearValidate()},handleFileChange:function(e,t){var r=[".doc",".pdf",".xls",".xlsx",".ppt",".pptx"],a=e.name.toLowerCase(),n=r.some((function(e){return a.endsWith(e)}));if(!n)return this.$message.error("不支持的文件类型,仅支持 .doc .pdf .xls .xlsx .ppt .pptx"),this.$refs.upload.handleRemove(e),!1;this.selectedFile=e&&e.raw?e.raw:null,this.fileList=t.slice(-1)},handleFileRemove:function(e,t){this.selectedFile=null,this.fileList=[]},handleFileUpload:function(){var e=this;if(this.uploading||!this.selectedFile)return this.selectedFile,Promise.resolve(null);var t=this.selectedFile,r=new FormData;r.append("file",t),r.append("createBy",de());var a=W4(W4({},et.TEST_FILE_UPLOAD),{},{params:r,disableSuccessMsg:!0});this.uploading=!0;var n=this.$loading({lock:!0,text:"正在上传文件,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});return this.$upload(a,null,!1).then((function(t){console.log("文件上传成功:",t),n.close();var r="";if(t.data&&t){var a=t.data;r=a,e.editFormData.fileUrl=r}return r})).catch((function(t){throw console.error("文件上传失败:",t),n.close(),e.$message.error("文件上传失败,请重试"),t})).finally((function(){n&&n.close(),e.uploading=!1}))},handleSave:function(){var e=this;this.$refs.editForm?this.$refs.editForm.validate((function(t){if(!t)return!1;e.submitEdit()})):this.submitEdit()},buildEditSnapshot:function(){var e,t,r,a,n,i,o,s,l,c,u,d,p,h,f,m,g,v=function(e){return null==e?"":e},y=function(e){return(e||[]).map((function(e){return{name:e.name,handlers:(e.handlers||[]).filter(Boolean).slice().sort()}}))};return{form:{title:v(null===(e=this.editFormData)||void 0===e?void 0:e.title),manufacturerName:v(null===(t=this.editFormData)||void 0===t?void 0:t.manufacturerName),modelName:v(null===(r=this.editFormData)||void 0===r?void 0:r.modelName),manufacturerAbbreviation:v(null===(a=this.editFormData)||void 0===a?void 0:a.manufacturerAbbreviation),modelAbbreviation:v(null===(n=this.editFormData)||void 0===n?void 0:n.modelAbbreviation),productNumber:v(null===(i=this.editFormData)||void 0===i?void 0:i.productNumber),module:v(null===(o=this.editFormData)||void 0===o?void 0:o.module),plate:v(null===(s=this.editFormData)||void 0===s?void 0:s.plate),platform:v(null===(l=this.editFormData)||void 0===l?void 0:l.platform),series:v(null===(c=this.editFormData)||void 0===c?void 0:c.series),marketSegment:v(null===(u=this.editFormData)||void 0===u?void 0:u.marketSegment),projectName:v(null===(d=this.editFormData)||void 0===d?void 0:d.projectName),projectNumber:v(null===(p=this.editFormData)||void 0===p?void 0:p.projectNumber),explanation:v(null===(h=this.editFormData)||void 0===h?void 0:h.explanation),fileUrl:v(null===(f=this.editFormData)||void 0===f?void 0:f.fileUrl),fileName:v(null===(m=this.editFormData)||void 0===m?void 0:m.fileName)},processTitle:((null===(g=this.editFormData)||void 0===g?void 0:g.processTitle)||"").trim(),steps:y(this.approvalWorkflowSteps)}},diffEditSnapshot:function(e,t){var r=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},a=!e||!r(e.form,t.form)||!!this.selectedFile,n=!e||e.processTitle!==t.processTitle||!r(e.steps,t.steps);return{baseChanged:a,approvalChanged:n}},hasAnyEditChange:function(){var e=this.buildEditSnapshot(),t=this.diffEditSnapshot(this.originalEditSnapshot,e),r=t.baseChanged,a=t.approvalChanged;return r||a},submitEdit:function(){var e=this,t=function(){var t=F4(L4().mark((function t(){var r,a,n,i,o,s,l,c,u,d,p,h,f,m,g,v,y,b,_,x,w;return L4().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,e.hasAnyEditChange()){t.next=5;break}return e.isEditMode=!1,e.$message({type:"info",message:"未修改,无需保存"}),t.abrupt("return");case 5:if(!e.selectedFile){t.next=11;break}return t.next=8,e.handleFileUpload();case 8:r=t.sent,e.editFormData.fileUrl=r||"",e.editFormData.fileName=e.selectedFile.name;case 11:if(a=e.reportDetail.reportId||e.reportDetail.id,a){t.next=15;break}return e.$message.error("缺少报告ID"),t.abrupt("return");case 15:if(n=!e.canResend,i=e.canResend,o=e.editFormData,s=o.processTitle,l=N4(o,P4),c=W4(W4({reportId:a,flowId:e.detail.flowId},l),{},{createBy:de(),userId:de()}),n&&(c.processTitle=s||"",c.nodeList=e.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}}))),e.saving=!0,u=e.buildEditSnapshot(),d=e.diffEditSnapshot(e.originalEditSnapshot,u),p=d.baseChanged,h=d.approvalChanged,f=i&&h,m=i&&h&&!p,g=!m&&(p||n&&h),!(n&&h&&e.detail.flowId)){t.next=33;break}if(y=((null===(v=e.originalEditSnapshot)||void 0===v?void 0:v.processTitle)||"").trim(),b=(u.processTitle||"").trim(),y===b){t.next=33;break}return _=W4(W4({},et.EDIT_APPROVAL_PROCESS_TITLE),{},{params:{flowId:e.detail.flowId,title:b},disableSuccessMsg:!0}),t.next=33,e.$request(_).asyncThen((function(){console.log("流程主题更新成功")})).asyncErrorCatch((function(t){throw console.error("更新流程主题失败:",t),e.$message.error("更新流程主题失败,请重试"),t}));case 33:if(!g){t.next=38;break}return console.log("needUpdateReportBase",g),x=W4(W4({},et.EDIT_REPORT),{},{params:c,disableSuccessMsg:!0}),t.next=38,e.$request(x).asyncThen((function(){}));case 38:if(!f){t.next=42;break}return console.log("needUpdateApprovalProcess",f),t.next=42,e.updateApprovalProcess();case 42:e.isEditMode=!1,w=e.detail.flowId||e.reportDetail.flowId,e.loadReportDetailFromApi(a,w),"DRAFT"===e.reportDetail.status&&w&&e.loadApprovalUsers(w),e.originalEditSnapshot=e.buildEditSnapshot(),e.$message({type:"success",message:"保存成功"}),e.$emit("refresh",{keepOpen:!0}),t.next=55;break;case 51:t.prev=51,t.t0=t["catch"](0),console.error("保存失败:",t.t0),e.$message.error((null===t.t0||void 0===t.t0?void 0:t.t0.message)||"保存失败,请重试");case 55:return t.prev=55,e.saving=!1,t.finish(55);case 58:case"end":return t.stop()}}),t,null,[[0,51,55,58]])})));return function(){return t.apply(this,arguments)}}();t()},updateApprovalProcess:function(){var e=this,t=this.detail.flowId||this.reportDetail.flowId;if(!t)return this.$message.error("缺少流程ID,无法保存审批环节"),Promise.reject(new Error("缺少流程ID"));var r=this.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),a=W4(W4({},et.EDIT_APPROVAL_PROCESS),{},{params:{nodeList:r,flowId:t,title:this.editFormData.processTitle||"",userId:de()},disableSuccessMsg:!0});return this.$request(a).asyncThen((function(){})).asyncErrorCatch((function(t){throw console.error("更新审批环节失败:",t),e.$message.error((null===t||void 0===t?void 0:t.message)||"更新审批环节失败,请重试"),t}))},handleEditProcessTitle:function(){this.isEditingProcessTitle=!0,this.editingProcessTitle=this.showTopDetail.processTitle||this.detail.processTitle||this.reportDetail.processTitle||""},handleCancelProcessTitle:function(){this.isEditingProcessTitle=!1,this.editingProcessTitle=""},handleSaveProcessTitle:function(){var e=this;if(this.detail&&this.detail.flowId){var t=(this.editingProcessTitle||"").trim();t?this.$confirm("确认修改主题为".concat(t,"吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=W4(W4({},et.EDIT_APPROVAL_PROCESS_TITLE),{},{params:{flowId:e.detail.flowId,title:t},disableSuccessMsg:!0});e.$request(r).asyncThen((function(r){e.showTopDetail.processTitle=t,e.isEditingProcessTitle=!1,e.editingProcessTitle="",e.$message({message:"修改成功",type:"success"}),e.detail.flowId&&e.getApprovalSpet(e.detail.flowId)})).asyncErrorCatch((function(t){console.error("修改流程主题失败:",t),e.$message({message:t.message||"修改失败,请重试",type:"error"})}))})).catch((function(){})):this.$message.warning("流程主题不能为空")}else this.$message.error("缺少流程ID,无法保存")}}},K4=X4,Z4=(r("ca83"),d(K4,A4,M4,!1,null,"a279c7d0",null)),J4=Z4.exports;function Q4(e){return Q4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q4(e)}function e6(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e6=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new C(n||[]);return a(o,"_invoke",{value:x(e,r,s)}),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Q4(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function t6(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function r6(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){t6(i,a,n,o,s,"next",e)}function s(e){t6(i,a,n,o,s,"throw",e)}o(void 0)}))}}function a6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function n6(e){for(var t=1;t0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},handleDownloadTemplate:function(){},handleDownload:function(e){var t=document.createElement("a");t.href=e.filePath,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},handlePreview:function(e){this.$message&&this.$message.info&&this.$message.info("预览:"+(e.title||""))},handleApprove:function(e){var t=this;this.currentApprovalRow=e,this.approvalFormData={result:"",opinion:""},this.approvalDialogVisible=!0,this.$nextTick((function(){t.$refs.approvalForm&&t.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalFormData={result:"",opinion:""},this.currentApprovalRow=null,this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;if(this.approvalFormData.result)if(this.currentApprovalRow){var t={flowId:this.currentApprovalRow.flowId,userId:de(),result:this.approvalFormData.result,opinion:this.approvalFormData.opinion||""};this.approvalSubmitting=!0;var r=n6(n6({},et.START_REPORT_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.approvalSubmitting=!1,e.handleApprovalDialogClose(),e.loadData(),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.approvalSubmitting=!1,e.$message.error("审批提交失败,请重试")}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择审核结果(通过或退回)")},pageSizeChange:function(e){this.pagination.pageSize=e},rowClickEvent:function(e){console.warn(e)},handleRowView:function(e){var t=e.reportId||e.id;t?(this.currentReportDetail={reportId:t,flowId:e.flowId},this.showReportDetail=!0):this.$message.error("缺少报告ID,无法查看详情")},closeReportDetail:function(){this.showReportDetail=!1,this.currentReportDetail=null},handleReportDetailRefresh:function(){this.loadData(),this.closeReportDetail()},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""},this.handleSearch()},handleSearch:function(){this.loadData()},handleRefresh:function(){this.pagination.currentPage=1,this.handleSearch()},loadData:function(){var e=this,t={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""};Object.keys(t).forEach((function(r){void 0!==e.searchPanelValue[r]&&null!==e.searchPanelValue[r]&&(t[r]=e.searchPanelValue[r])}));var r=n6(n6({},et.GET_REPORT_LIST),{},{params:n6({pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize,createBy:de()},t),disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.tableData=t.data.result,e.pagination.total=t.data.count})).asyncErrorCatch((function(e){console.error("查询失败:",e)}))}}},c6=l6,u6=(r("be80"),d(c6,I4,O4,!1,null,null,null)),d6=u6.exports,p6=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"benchmark-report-tab tab-content"},[r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"search-fields"},[r("div",{staticClass:"search-row"},[r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("厂家")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.manufacturer,callback:function(t){e.$set(e.searchData,"manufacturer",t)},expression:"searchData.manufacturer"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("型号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.model,callback:function(t){e.$set(e.searchData,"model",t)},expression:"searchData.model"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("产品编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.productNo,callback:function(t){e.$set(e.searchData,"productNo",t)},expression:"searchData.productNo"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("版块")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.module,callback:function(t){e.$set(e.searchData,"module",t)},expression:"searchData.module"}})],1)]),r("div",{staticClass:"search-row"},[r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("平台")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.platform,callback:function(t){e.$set(e.searchData,"platform",t)},expression:"searchData.platform"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("系列")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.series,callback:function(t){e.$set(e.searchData,"series",t)},expression:"searchData.series"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("细分市场")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.subMarket,callback:function(t){e.$set(e.searchData,"subMarket",t)},expression:"searchData.subMarket"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("项目名称")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.projectName,callback:function(t){e.$set(e.searchData,"projectName",t)},expression:"searchData.projectName"}})],1)]),r("div",{staticClass:"search-row"},[r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("项目编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.projectNo,callback:function(t){e.$set(e.searchData,"projectNo",t)},expression:"searchData.projectNo"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("领域/模块")]),r("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchData.domain,callback:function(t){e.$set(e.searchData,"domain",t)},expression:"searchData.domain"}},[r("el-option",{attrs:{label:"选项1",value:"1"}}),r("el-option",{attrs:{label:"选项2",value:"2"}})],1)],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("标题")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchData.title,callback:function(t){e.$set(e.searchData,"title",t)},expression:"searchData.title"}})],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"reportTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.handleRowClick,"size-change":e.handlePageSizeChange,"current-page-change":e.handleCurrentChange,"select-data-change":e.handleSelectChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row;return["options"===t.customSlot?r("div",{key:a,staticClass:"operation-links"},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleQueryReport(i)}}},[e._v("查询")]),r("span",{staticStyle:{margin:"0 8px"}},[e._v("|")]),r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDownloadReport(i)}}},[e._v("下载")])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[r("x-empty-page")],1)])],2)],1)])},h6=[],f6={name:"BenchmarkReport",data:function(){return{searchData:{manufacturer:"",model:"",productNo:"",module:"",platform:"",series:"",subMarket:"",projectName:"",projectNo:"",domain:"",title:""},tableData:[],pagination:{currentPage:1,pageSize:10,total:0},selectedRows:[]}},computed:{tableConfig:function(){return{rowDraggable:!1,colConfigs:[{prop:"title",label:"标题",showOverflowTooltip:!0,minWidth:"100"},{prop:"manufacturerFullName",label:"厂家名称(全称)",showOverflowTooltip:!0,minWidth:"150"},{prop:"productFullName",label:"产品型号(全称)",showOverflowTooltip:!0,minWidth:"150"},{prop:"domain",label:"领域/模块",showOverflowTooltip:!0,minWidth:"120"},{prop:"productNo",label:"产品编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"module",label:"板块",showOverflowTooltip:!0,minWidth:"100"},{prop:"platform",label:"平台",showOverflowTooltip:!0,minWidth:"100"},{prop:"series",label:"系列",showOverflowTooltip:!0,minWidth:"100"},{prop:"subMarket",label:"细分市场",showOverflowTooltip:!0,minWidth:"120"},{prop:"projectName",label:"项目名称",showOverflowTooltip:!0,minWidth:"120"},{prop:"projectNo",label:"项目编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"uploadTime",label:"上传时间",showOverflowTooltip:!0,minWidth:"150"},{prop:"fileName",label:"文件名",showOverflowTooltip:!0,minWidth:"150"},{prop:"options",label:"操作",customSlot:"options",align:"center",width:"120",fixed:"right"}],seqType:"checkbox",seqConfig:{fixed:!0},layout:"total, prev, pager, next, jumper, sizes",autoSize:!1,pageConfig:{}}}},mounted:function(){this.loadData()},methods:{resetSearch:function(){this.searchData={manufacturer:"",model:"",productNo:"",module:"",platform:"",series:"",subMarket:"",projectName:"",projectNo:"",domain:"",title:""},this.handleSearch()},handleSearch:function(){this.loadData()},handleBatchDownload:function(){0!==this.selectedRows.length?this.$message({type:"info",message:"批量下载 ".concat(this.selectedRows.length," 个报告")}):this.$message({type:"warning",message:"请先选择要下载的报告"})},handleRowClick:function(e){this.$message({type:"info",message:"点击行: ".concat(e.title)})},handlePageSizeChange:function(e){this.pagination.pageSize=e,this.loadData()},handleCurrentChange:function(e){this.pagination.currentPage=e,this.loadData()},handleSelectChange:function(e){this.selectedRows=e},loadData:function(){for(var e=[],t=["Y1001","Y1002","Y1003","Y1004","Y1005","Y1006","Y1007","Y1008","Y1009","Y1010"],r=["XXXXXX","XXXX"],a=0;a<10;a++)e.push({id:a+1,title:t[a]||"Y".concat(1e3+a+1),manufacturerFullName:r[a%2]||"XXXXXX",productFullName:"-",domain:"-",productNo:"-",module:"-",platform:"-",series:"-",subMarket:"-",projectName:"-",projectNo:"-",uploadTime:"-",fileName:"XXXXX文件名".concat(a+1)});this.tableData=e}}},m6=f6,g6=(r("5c7a"),d(m6,p6,h6,!1,null,"1e4bdbcb",null)),v6=g6.exports;function y6(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=x6(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function b6(e){return D6(e)||w6(e)||x6(e)||_6()}function _6(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x6(e,t){if(e){if("string"===typeof e)return S6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S6(e,t):void 0}}function w6(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function D6(e){if(Array.isArray(e))return S6(e)}function S6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&this.isFormulaItemsValid())}},watch:{activeTab:{immediate:!0,handler:function(e,t){var r=this;"statistics"===e?(window.addEventListener("resize",this.handleResize),this.filterOptionsLoaded||this.loadModelListOnFirstEnter(),this.loadYAxisParams(),this.loadFavoritesList(),this.$nextTick((function(){r.$nextTick((function(){setTimeout((function(){r.chartList.forEach((function(e,t){e.chartInstance?e.chartInstance.resize():(e._pendingInit&&(delete e._pendingInit,delete e._pendingInitIndex),r.initChart(t))}))}),100)}))}))):"statistics"===t&&(window.removeEventListener("resize",this.handleResize),this.cleanupResizeListeners(),this.disposeAllCharts())}}},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize),this.cleanupResizeListeners(),this.disposeAllCharts()},mounted:function(){},methods:{filterTransferMethod:function(e,t){if(!e||"string"!==typeof e)return!0;if(!t||"object"!==M6(t))return!1;var r=e.toLowerCase(),a=(t.modelName||"").toString().toLowerCase(),n=(t.productNumber||"").toString().toLowerCase(),i=(t.platform||"").toString().toLowerCase(),o=(t.series||"").toString().toLowerCase(),s=(t.label||"").toString().toLowerCase();return!r||(a.includes(r)||n.includes(r)||i.includes(r)||o.includes(r)||s.includes(r))},loadYAxisParams:function(){var e=this,t=T6(T6({},ze.GET_CHECK_DATA_Y_DATA),{},{params:{userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log("Y轴参数数据:",t),t&&t.data?(Array.isArray(t.data)?e.yAxisParamOptions=t.data.map((function(e){return{label:e.name||e.label||e.parameterName||e,value:e.value||e.id||e.parameterName||e}})):t.data&&Array.isArray(t.data)?e.yAxisParamOptions=t.data.map((function(e){return{label:e,value:e}})):e.yAxisParamOptions=[],e.filteredYAxisParamOptions=e.yAxisParamOptions,e.yAxisParamsLoaded=!0):(e.yAxisParamOptions=[],e.filteredYAxisParamOptions=[])})).asyncErrorCatch((function(t){console.error("获取Y轴参数失败:",t),e.yAxisParamOptions=[]}))},handleTabClick:function(e){console.log("切换到tab:",e.name),"statistics"===e.name&&this.loadYAxisParams()},handleAddChart:function(){var e=this,t={id:this.chartIdCounter++,title:"自定义标题",isEditingTitle:!1,chartType:"line",xAxis:"",yAxisParam:[],yAxisFormula:"",yAxisMin:0,yAxisMax:100,chartHeight:400,customPointX:null,customPointY:null,scatterTrendline:!1,chartInstance:null,formulaItems:[],selectedModels:b6(this.selectedModels),chartDataList:[],cachedModelData:{},newSelectedModels:[]},r=[t].concat(b6(this.chartList));this.chartList=r,this.$forceUpdate(),this.$nextTick((function(){e.$nextTick((function(){requestAnimationFrame((function(){requestAnimationFrame((function(){setTimeout((function(){if(e.initChart(0),e.chartList.forEach((function(t,r){0!==r&&t&&!t.chartInstance&&e.initChart(r)})),e.selectedModels&&e.selectedModels.length>0&&e.chartList.length>0){var t=e.chartList[0],r=e.chartList.find((function(e){return e.cachedModelData&&Object.keys(e.cachedModelData).length>0}));r&&r.cachedModelData&&(t.cachedModelData=JSON.parse(JSON.stringify(r.cachedModelData)),e.updateChartDataFromCache(0),e.updateChart(0))}}),300)}))}))}))}))},toggleFloatingPanel:function(){this.floatingPanelExpanded=!this.floatingPanelExpanded},scrollToTop:function(){var e=document.querySelector(".statistics-tab");e?e.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},handleDownloadChart:function(e){var t=this.chartList[e];if(t&&t.chartInstance)try{var r=t.chartInstance.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),a=document.createElement("a");a.href=r,a.download="".concat(t.title||"chart","_").concat((new Date).getTime(),".png"),document.body.appendChild(a),a.click(),document.body.removeChild(a),this.$message.success("图表导出成功")}catch(n){console.error("导出图表失败:",n),this.$message.error("导出图表失败,请重试")}else this.$message.warning("图表未初始化,无法导出")},handleDeleteChart:function(e){var t=this,r=this.chartList[e];if(r){if(r.chartInstance){try{r.chartInstance.dispose()}catch(a){console.warn("销毁图表实例时出错:",a)}r.chartInstance=null}r.selectedModels=[],r.chartDataList=[],r.cachedModelData={},r.newSelectedModels=[],this.chartList.splice(e,1),this.$forceUpdate(),this.$nextTick((function(){t.$forceUpdate(),t.$nextTick((function(){t.chartList.forEach((function(e,r){if(e&&!e.chartInstance){var a="chartContainer-".concat(r),n=t.$refs[a];n&&t.initChart(r)}}))}))}))}},handleClearAllCharts:function(){var e=this;this.disposeAllCharts(),this.chartList.splice(0,this.chartList.length),this.floatingPanelExpanded=!1,this.$nextTick((function(){e.$forceUpdate(),e.$nextTick((function(){e.$forceUpdate()}))}))},filterModelNameOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.modelName.length>0?this.filteredOptions.modelName:this.filterOptions.modelName||[];this.filteredOptions.modelName=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.modelName&&this.filteredOptions.modelName.length>0)return;this.filteredOptions.modelName=this.filterOptions.modelName||[]}},filterProductNumberOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.productNumber.length>0?this.filteredOptions.productNumber:this.filterOptions.productNumber||[];this.filteredOptions.productNumber=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.productNumber&&this.filteredOptions.productNumber.length>0)return;this.filteredOptions.productNumber=this.filterOptions.productNumber||[]}},filterProjectNameOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.projectName.length>0?this.filteredOptions.projectName:this.filterOptions.projectName||[];this.filteredOptions.projectName=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.projectName&&this.filteredOptions.projectName.length>0)return;this.filteredOptions.projectName=this.filterOptions.projectName||[]}},filterPlateOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.plate.length>0?this.filteredOptions.plate:this.filterOptions.plate||[];this.filteredOptions.plate=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.plate&&this.filteredOptions.plate.length>0)return;this.filteredOptions.plate=this.filterOptions.plate||[]}},filterPlatformOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.platform.length>0?this.filteredOptions.platform:this.filterOptions.platform||[];this.filteredOptions.platform=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.platform&&this.filteredOptions.platform.length>0)return;this.filteredOptions.platform=this.filterOptions.platform||[]}},filterSeriesOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.series.length>0?this.filteredOptions.series:this.filterOptions.series||[];this.filteredOptions.series=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.series&&this.filteredOptions.series.length>0)return;this.filteredOptions.series=this.filterOptions.series||[]}},filterBurnTypeOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.burnType.length>0?this.filteredOptions.burnType:this.filterOptions.burnType||[];this.filteredOptions.burnType=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.burnType&&this.filteredOptions.burnType.length>0)return;this.filteredOptions.burnType=this.filterOptions.burnType||[]}},filterEmissionOptions:function(e){if(e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.filteredOptions.emission.length>0?this.filteredOptions.emission:this.filterOptions.emission||[];this.filteredOptions.emission=r.filter((function(e){return e.label&&e.label.toLowerCase().includes(t)}))}else{if(this.filteredOptions.emission&&this.filteredOptions.emission.length>0)return;this.filteredOptions.emission=this.filterOptions.emission||[]}},handleFilterYAxisParam:function(e){if(e&&"string"===typeof e&&""!==e.trim()){var t=e.toLowerCase().trim(),r=this.yAxisParamOptions||[];this.filteredYAxisParamOptions=r.filter((function(e){return e&&e.label&&e.label.toLowerCase().includes(t)}))}else this.filteredYAxisParamOptions=this.yAxisParamOptions||[]},loadModelListOnFirstEnter:function(){var e=this,t=T6(T6({},ze.GET_CHECK_LIST),{},{params:{},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(console.log("首次加载机型列表:",t),t&&t.data){var r=Array.isArray(t.data)?t.data:[];e.buildFilterOptions(r),e.filterOptionsLoaded=!0,e.modelList=r,e.updateCascadingFilterOptions()}})).asyncErrorCatch((function(e){console.error("首次加载机型列表失败:",e)}))},buildFilterOptions:function(e){if(Array.isArray(e)&&0!==e.length){var t=[{key:"modelName",target:"modelName"},{key:"productNumber",target:"productNumber"},{key:"projectName",target:"projectName"},{key:"plate",target:"plate"},{key:"platform",target:"platform"},{key:"series",target:"series"},{key:"emission",target:"emission"},{key:"burnType",target:"burnType"}],r={};t.forEach((function(e){var t=e.target;r[t]=new Set})),e.forEach((function(e){e&&"object"===M6(e)&&t.forEach((function(t){var a=t.key,n=t.target,i=e[a];void 0!==i&&null!==i&&""!==i&&r[n].add(String(i))}))}));var a={},n={};Object.keys(this.filterOptions).forEach((function(e){var t=Array.from(r[e]||[]);t.sort();var i=t.map((function(e){return{label:e,value:e}}));a[e]=i,n[e]=i})),this.filterOptions=a,this.filteredOptions=n}},loadFavoritesList:function(){var e=this,t=T6(T6({},ze.GET_CHART_COMMONLY_USED),{},{params:{userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r=[];Array.isArray(t.data)?r=t.data:t.data.list&&Array.isArray(t.data.list)?r=t.data.list:t.data.data&&Array.isArray(t.data.data)&&(r=t.data.data),e.favoritesOptions=r.map((function(e){return{label:e.commonName||e.name||"",value:e.commonId||e.id||"",data:e}}))}})).asyncErrorCatch((function(t){console.error("获取常用列表失败:",t),e.$message.error("获取常用列表失败")}))},handleFavoriteChange:function(e){if(e){var t=this.favoritesOptions.find((function(t){return t.value===e||t.data&&(t.data.commonId===e||t.data.id===e||t.data.commonName===e)}));t&&t.data?(this.currentCommonConfig=t.data,this.generateChartFromFavorite(t.data)):this.$message({type:"warning",message:"未找到选中的常用配置"})}else this.currentCommonConfig=null},generateChartFromFavorite:function(e){var t=this;if(e){var r=[];if(e.charts&&Array.isArray(e.charts)?r=e.charts:(e.xaxis||e.xAxis||e.chartType||e.id||e.rowId)&&(r=[e]),Array.isArray(r)&&0!==r.length){this.disposeAllCharts(),this.chartList=[];var a=r.map((function(e){var r=e.xaxis||e.xAxis||"";console.log("xAxisValue",r);var a="";if(r){var n=t.xAxisOptions.find((function(e){return e.value===r}));a=n?r:t.xAxisOptions.length>0?t.xAxisOptions[0].value:""}else a=t.xAxisOptions.length>0?t.xAxisOptions[0].value:"";var i=[],o=e.yaxis||e.yAxis||e.yaxisParameters;if(o)if(Array.isArray(o))i=o;else if("string"===typeof o)try{var s=JSON.parse(o);Array.isArray(s)?i=s:s&&(i=[s])}catch(c){""!==o.trim()&&"[]"!==o&&(i=[o])}else i=[o];var l=i.filter((function(e){return t.yAxisParamOptions.some((function(t){return t.value===e}))}));return{id:t.chartIdCounter++,title:e.title||"自定义标题",isEditingTitle:!1,chartType:e.chartType||"line",xAxis:a,yAxisParam:l,yAxisFormula:e.yAxisFormula||"",yAxisMin:void 0!==e.yAxisMin?e.yAxisMin:0,yAxisMax:void 0!==e.yAxisMax?e.yAxisMax:100,chartHeight:400,customPointX:e.customPointX||null,customPointY:e.customPointY||null,scatterTrendline:e.scatterTrendline||!1,chartInstance:null,formulaItems:e.formulaItems||[],selectedModels:b6(t.selectedModels),chartDataList:[],cachedModelData:{},newSelectedModels:[]}}));this.chartList=a,this.$forceUpdate(),this.$nextTick((function(){t.$nextTick((function(){requestAnimationFrame((function(){requestAnimationFrame((function(){setTimeout((function(){if(t.chartList.forEach((function(e,r){e.chartInstance||t.initChart(r)})),t.selectedModels&&t.selectedModels.length>0&&t.chartList.length>0){var e=t.chartList.find((function(e){return e.cachedModelData&&Object.keys(e.cachedModelData).length>0}));e&&e.cachedModelData&&t.chartList.forEach((function(r,a){r.cachedModelData=JSON.parse(JSON.stringify(e.cachedModelData)),t.updateChartDataFromCache(a),t.updateChart(a)}))}}),300)}))}))}))}))}else this.$message.warning("该常用配置中没有图表数据")}},handleAddFavorite:function(){this.chartList&&0!==this.chartList.length?this.addFavoriteDialogVisible=!0:this.$message({type:"warning",message:"当前没有图表,请先创建图表"})},handleAddFavoriteDialogClose:function(){this.addFavoriteDialogVisible=!1,this.addFavoriteFormData.commonName="",this.$refs.addFavoriteForm&&this.$refs.addFavoriteForm.clearValidate()},handleConfirmAddFavorite:function(){var e=this;this.$refs.addFavoriteForm.validate((function(t){if(!t)return!1;if(e.chartList&&0!==e.chartList.length){var r=e.collectCurrentChartsConfig();if(r&&0!==r.length){var a={userId:de(),commonName:e.addFavoriteFormData.commonName,charts:r};e.savingFavorite=!0;var n=T6(T6({},ze.ADD_CHART_COMMONLY_USED),{},{params:a,disableSuccessMsg:!0});e.$request(n).asyncThen((function(t){e.$message({message:"新增常用成功",type:"success"}),e.handleAddFavoriteDialogClose(),e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("新增常用失败:",t),e.$message({message:t.message||"新增常用失败",type:"error"})})).finally((function(){e.savingFavorite=!1}))}else e.$message({type:"warning",message:"当前没有可保存的图表配置"})}else e.$message({type:"warning",message:"当前没有图表,请先创建图表"})}))},handleUpdateFavorite:function(){var e=this;if(this.currentCommonConfig)if(this.chartList&&0!==this.chartList.length){var t=this.collectCurrentChartsConfig();if(t&&0!==t.length){var r={userId:de(),commonName:this.currentCommonConfig.commonName||this.currentCommonConfig.name,commonId:this.currentCommonConfig.commonId||this.currentCommonConfig.id,charts:t};this.savingFavorite=!0;var a=T6(T6({},ze.EDIT_CHART_COMMONLY_USED),{},{params:r,disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){e.$message({message:"更新常用成功",type:"success"}),e.loadFavoritesList()})).asyncErrorCatch((function(t){console.error("更新常用失败:",t),e.$message({message:t.message||"更新常用失败",type:"error"})})).finally((function(){e.savingFavorite=!1}))}else this.$message({type:"warning",message:"当前没有可保存的图表配置"})}else this.$message({type:"warning",message:"当前没有图表,请先创建图表"});else this.$message({type:"warning",message:"请先选择一个常用配置"})},collectCurrentChartsConfig:function(){return this.chartList&&0!==this.chartList.length?this.chartList.map((function(e){var t=[];return e.yAxisParam&&(t=Array.isArray(e.yAxisParam)?e.yAxisParam:[e.yAxisParam]),{title:e.title||"自定义标题",chartType:e.chartType||"line",xAxis:e.xAxis||"",yAxis:t}})):[]},handleSearch:function(){var e=this;if(this.modelList&&0!==this.modelList.length)this.updateCascadingFilterOptions(),this.updateSelectedModelsFromFilters(),this.queryParamsBySelectedModels();else{var t={},r=["modelName","productNumber","projectName","plate","platform","series","emission","burnType"];r.forEach((function(r){var a=e.searchPanelValue[r];Array.isArray(a)&&a.length>0&&(t[r]=a)})),this.searchPanelValue.engineCapacityMin&&(t.engineCapacityMin=this.searchPanelValue.engineCapacityMin),this.searchPanelValue.engineCapacityMax&&(t.engineCapacityMax=this.searchPanelValue.engineCapacityMax);var a=T6(T6({},ze.GET_CHECK_LIST),{},{params:t,disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){if(t&&t.data){var r=Array.isArray(t.data)?t.data:[];e.filterOptionsLoaded||(e.buildFilterOptions(r),e.filterOptionsLoaded=!0),e.modelList=r,e.updateCascadingFilterOptions(),e.updateSelectedModelsFromFilters(),e.queryParamsBySelectedModels()}})).asyncErrorCatch((function(t){console.error("获取机型列表失败:",t),e.$message.error("获取机型列表失败,请重试")}))}},queryParamsBySelectedModels:function(){var e=this;if(this.selectedModels&&0!==this.selectedModels.length){var t=this.$loading({lock:!0,text:"正在查询参数。。",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),r=this.selectedModels.map((function(e){return e.id})),a=T6(T6({},ze.GET_CHECK_DATA_CHARTS),{},{params:r,disableSuccessMsg:!0});this.$request(a).asyncThen((function(t){if(console.log("查询参数返回:",t),t&&t.data){var r=[];if(t.data.paramList&&Array.isArray(t.data.paramList)?r=t.data.paramList.map((function(e){return{label:e,value:e}})):Array.isArray(t.data)&&(r=t.data.map((function(e){return{label:e.name||e.label||e.parameterName||e,value:e.value||e.id||e.parameterName||e}}))),r.length>0){var a=new Map;e.yAxisParamOptions.forEach((function(e){a.set(e.value,e)})),r.forEach((function(e){a.has(e.value)||a.set(e.value,e)})),e.yAxisParamOptions=Array.from(a.values()),e.filteredYAxisParamOptions=e.yAxisParamOptions}var n=t.data.pojos||[];console.log("查询返回的数据:",n),console.log("选中的机型:",e.selectedModels),n.length>0&&e.chartList.forEach((function(t){t.cachedModelData||(t.cachedModelData={}),n.forEach((function(r){var a=r.id||r.modelId||r.engineModelID||r.rowId;if(!a){var n=r.modelName||r.productFullName||"",i=e.selectedModels.find((function(e){return e.name===n||String(e.id)===String(r.id)}));i&&(a=i.id)}if(a){var o=String(a);if(t.cachedModelData[o]){var s=t.cachedModelData[o].some((function(e){return JSON.stringify(e)===JSON.stringify(r)}));s||t.cachedModelData[o].push(r)}else t.cachedModelData[o]=[r]}}))})),e.chartList.forEach((function(t,r){t.selectedModels=b6(e.selectedModels),e.updateChartDataFromCache(r),e.updateChart(r)}))}})).asyncErrorCatch((function(t){console.error("查询参数失败:",t),e.$message.error("查询参数失败,请重试")})).finally((function(){t&&t.close()}))}else this.$message.warning("该筛选条件下没有匹配的机型")},handleFilterChange:function(e){this.updateCascadingFilterOptions(),this.updateSelectedModelsFromFilters()},handleFilterVisibleChange:function(e,t){t&&(this.currentEditingField=e,this.openedFilterFields.add(e),this.updateCascadingFilterOptions())},handleEngineCapacityBlur:function(){var e=this;if(this.searchPanelValue.engineCapacityMin&&this.searchPanelValue.engineCapacityMax){if(!this.modelList||0===this.modelList.length)return;var t=parseFloat(this.searchPanelValue.engineCapacityMin),r=parseFloat(this.searchPanelValue.engineCapacityMax);if(isNaN(t)||isNaN(r)||t>r)return;var a=this.modelList.filter((function(a){var n=[{key:"modelName",value:e.searchPanelValue.modelName},{key:"productNumber",value:e.searchPanelValue.productNumber},{key:"projectName",value:e.searchPanelValue.projectName},{key:"plate",value:e.searchPanelValue.plate},{key:"platform",value:e.searchPanelValue.platform},{key:"series",value:e.searchPanelValue.series},{key:"emission",value:e.searchPanelValue.emission},{key:"burnType",value:e.searchPanelValue.burnType}],i=parseFloat(a.engineCapacity||0);if(ir)return!1;for(var o=0,s=n;o0){var u=String(a[l.key]||"");if(!c.includes(u))return!1}}return!0}));0===a.length?this.$message.warning("无机型数据"):(this.updateCascadingFilterOptions(),this.updateSelectedModelsFromFilters())}},updateCascadingFilterOptions:function(){var e=this;if(this.modelList&&0!==this.modelList.length){var t=this.modelList.filter((function(t){var r=[{key:"modelName",value:e.searchPanelValue.modelName},{key:"productNumber",value:e.searchPanelValue.productNumber},{key:"projectName",value:e.searchPanelValue.projectName},{key:"plate",value:e.searchPanelValue.plate},{key:"platform",value:e.searchPanelValue.platform},{key:"series",value:e.searchPanelValue.series},{key:"emission",value:e.searchPanelValue.emission},{key:"burnType",value:e.searchPanelValue.burnType}];if(e.searchPanelValue.engineCapacityMin||e.searchPanelValue.engineCapacityMax){var a=parseFloat(t.engineCapacity||0),n=e.searchPanelValue.engineCapacityMin?parseFloat(e.searchPanelValue.engineCapacityMin):-1/0,i=e.searchPanelValue.engineCapacityMax?parseFloat(e.searchPanelValue.engineCapacityMax):1/0;if(ai)return!1}for(var o=0,s=r;o0){var u=String(t[l.key]||"");if(!c.includes(u))return!1}}return!0})),r=[{key:"modelName",target:"modelName"},{key:"productNumber",target:"productNumber"},{key:"projectName",target:"projectName"},{key:"plate",target:"plate"},{key:"platform",target:"platform"},{key:"series",target:"series"},{key:"emission",target:"emission"},{key:"burnType",target:"burnType"}],a={};r.forEach((function(e){var t=e.target;a[t]=new Set})),t.forEach((function(e){e&&"object"===M6(e)&&r.forEach((function(t){var r=t.key,n=t.target,i=e[r];void 0!==i&&null!==i&&""!==i&&a[n].add(String(i))}))}));var n={};Object.keys(this.filterOptions).forEach((function(t){if(e.openedFilterFields.has(t)||t===e.currentEditingField)n[t]=e.filterOptions[t]||[];else{var r=Array.from(a[t]||[]);r.sort();var i=r.map((function(e){return{label:e,value:e}}));n[t]=i}})),Object.keys(this.filterOptions).forEach((function(t){e.openedFilterFields.has(t)||t===e.currentEditingField||n[t]&&0!==n[t].length||(n[t]=e.filterOptions[t]||[])})),this.filteredOptions=n}else this.filteredOptions=T6({},this.filterOptions)},updateSelectedModelsFromFilters:function(){var e=this;if(this.modelList&&0!==this.modelList.length){var t=this.modelList.filter((function(t){var r=[{key:"modelName",value:e.searchPanelValue.modelName},{key:"productNumber",value:e.searchPanelValue.productNumber},{key:"projectName",value:e.searchPanelValue.projectName},{key:"plate",value:e.searchPanelValue.plate},{key:"platform",value:e.searchPanelValue.platform},{key:"series",value:e.searchPanelValue.series},{key:"emission",value:e.searchPanelValue.emission},{key:"burnType",value:e.searchPanelValue.burnType}];if(e.searchPanelValue.engineCapacityMin||e.searchPanelValue.engineCapacityMax){var a=parseFloat(t.engineCapacity||0),n=e.searchPanelValue.engineCapacityMin?parseFloat(e.searchPanelValue.engineCapacityMin):-1/0,i=e.searchPanelValue.engineCapacityMax?parseFloat(e.searchPanelValue.engineCapacityMax):1/0;if(ai)return!1}for(var o=0,s=r;o0){var u=String(t[l.key]||"");if(!c.includes(u))return!1}}return!0}));this.selectedModels=t.map((function(e){return{id:e.id||e.rowId||e.engineModelID,name:e.modelName||e.productFullName||"未知机型",parameterVersion:e.parameterVersion||1}}))}else this.selectedModels=[]},queryChartDataForAllCharts:function(){var e=this;if(this.selectedModels&&0!==this.selectedModels.length){var t=this.selectedModels.map((function(e){return e.id})),r=T6(T6({},ze.GET_CHECK_DATA_CHARTS),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){if(console.log("查询图表数据返回:",t),t&&t.data){var r=[];if(t.data.paramList&&Array.isArray(t.data.paramList)?r=t.data.paramList.map((function(e){return{label:e,value:e}})):Array.isArray(t.data)&&(r=t.data.map((function(e){return{label:e.name||e.label||e.parameterName||e,value:e.value||e.id||e.parameterName||e}}))),r.length>0){var a=new Map;e.yAxisParamOptions.forEach((function(e){a.set(e.value,e)})),r.forEach((function(e){a.has(e.value)||a.set(e.value,e)})),e.yAxisParamOptions=Array.from(a.values()),e.filteredYAxisParamOptions=e.yAxisParamOptions}var n=t.data.pojos||[];console.log("查询返回的数据:",n),console.log("选中的机型:",e.selectedModels),n.length>0&&e.chartList.forEach((function(t){t.cachedModelData||(t.cachedModelData={}),n.forEach((function(r){var a=r.id||r.modelId||r.engineModelID||r.rowId;if(!a){var n=r.modelName||r.productFullName||"",i=e.selectedModels.find((function(e){return e.name===n||String(e.id)===String(r.id)}));i&&(a=i.id)}if(a){var o=String(a);if(t.cachedModelData[o]){var s=t.cachedModelData[o].some((function(e){return JSON.stringify(e)===JSON.stringify(r)}));s||t.cachedModelData[o].push(r)}else t.cachedModelData[o]=[r]}}))})),e.chartList.forEach((function(t,r){t.selectedModels=b6(e.selectedModels),e.updateChartDataFromCache(r),e.updateChart(r)}))}})).asyncErrorCatch((function(t){console.error("查询图表数据失败:",t),e.$message.error("查询图表数据失败,请重试")}))}},resetSearch:function(){var e=this;this.searchPanelValue={projectName:[],modelName:[],productNumber:[],plate:[],platform:[],series:[],emission:[],burnType:[],engineCapacityMin:"",engineCapacityMax:""},this.modelList=[],this.selectedModels=[],this.chartDataList=[],this.yAxisParamOptions=[],this.filteredYAxisParamOptions=[],this.openedFilterFields.clear(),this.currentEditingField=null,this.filteredOptions={modelName:this.filterOptions.modelName,productNumber:this.filterOptions.productNumber,projectName:this.filterOptions.projectName,plate:this.filterOptions.plate,platform:this.filterOptions.platform,series:this.filterOptions.series,emission:this.filterOptions.emission,burnType:this.filterOptions.burnType},this.chartList.forEach((function(t){t.selectedModels=[],t.chartDataList=[],t.cachedModelData={},e.updateChart(e.chartList.indexOf(t))}))},initChart:function(e){var t=this,r=this.chartList[e];if(r){r.chartHeight||(r.chartHeight=400);var a="chartContainer-".concat(e),n=function(){var r=t.$refs[a];if(r)return Array.isArray(r)?r[0]:r;var n=document.querySelectorAll(".chart-area");if(n&&n[e]){var i=n[e].querySelector(".chart-container");if(i)return i}return null},i=function a(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,s=n();if(!s)return i>=o?void console.warn("初始化图表失败,已重试 ".concat(o," 次,无法找到容器,索引: ").concat(e)):void setTimeout((function(){a(i+1,o)}),150);var l=window.getComputedStyle(s),c="none"!==l.display&&"hidden"!==l.visibility&&"0"!==l.opacity,u=s.getBoundingClientRect(),d=s.offsetWidth>0&&s.offsetHeight>0||u.width>0&&u.height>0||s.clientWidth>0&&s.clientHeight>0;if(!c)return i>=o?void console.warn("容器不可见,无法初始化图表,索引: ".concat(e)):void setTimeout((function(){a(i+1,o)}),150);if(!d){var p=s.parentElement,h=p&&(p.offsetWidth>0||p.clientWidth>0);return h&&i=o-5&&"undefined"!==typeof ResizeObserver&&!s._resizeObserver&&(s._resizeObserver=new ResizeObserver((function(a){var n,i=y6(a);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=o.target,l=s.getBoundingClientRect(),c=s.offsetWidth>0&&s.offsetHeight>0||l.width>0&&l.height>0;c&&!r.chartInstance&&(t.initChartWithContainer(e,s),s._resizeObserver&&(s._resizeObserver.disconnect(),delete s._resizeObserver))}}catch(u){i.e(u)}finally{i.f()}})),s._resizeObserver.observe(s),setTimeout((function(){s._resizeObserver&&(s._resizeObserver.disconnect(),delete s._resizeObserver),r.chartInstance||t.initChartWithResizeObserver(e,s,r)}),3e3)),i>=o?void t.initChartWithResizeObserver(e,s,r):void setTimeout((function(){a(i+1,o)}),150))}t.initChartWithContainer(e,s)};this.$nextTick((function(){t.$nextTick((function(){i(0,30)}))}))}},initChartWithContainer:function(e,t){var r=this.chartList[e];if(r&&t){var a=t.getBoundingClientRect(),n=t.offsetWidth>0&&t.offsetHeight>0||a.width>0&&a.height>0||t.clientWidth>0&&t.clientHeight>0;if(n){if(r.chartInstance){try{r.chartInstance.dispose()}catch(i){console.warn("销毁图表实例时出错:",i)}r.chartInstance=null}try{r.chartInstance=RS(t),this.updateChart(e)}catch(i){console.error("初始化图表失败:",i),i.message&&i.message.includes("width or height")&&this.initChartWithResizeObserver(e,t,r)}}else this.initChartWithResizeObserver(e,t,r)}},initChartWithResizeObserver:function(e,t,r){var a=this;if(t&&r){var n="statistics"===this.activeTab;if(!n)return r._pendingInit=!0,void(r._pendingInitIndex=e);var i=window.getComputedStyle(t),o="none"!==i.display&&"hidden"!==i.visibility&&"0"!==i.opacity,s=t.parentElement,l=!0;while(s&&s!==document.body){var c=window.getComputedStyle(s);if("none"===c.display||"hidden"===c.visibility){l=!1;break}s=s.parentElement}if(!o||!l)return r._pendingInit=!0,void(r._pendingInitIndex=e);var u=t.getBoundingClientRect(),d=t.offsetWidth>0&&t.offsetHeight>0||u.width>0&&u.height>0;if(d)this.initChartWithContainer(e,t);else if("undefined"!==typeof ResizeObserver){var p=new ResizeObserver((function(t){var n,i=y6(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=o.target,l=s.getBoundingClientRect(),c=s.offsetWidth>0&&s.offsetHeight>0||l.width>0&&l.height>0;if(c&&!r.chartInstance)try{a.initChartWithContainer(e,s),s._chartResizeObserver&&(s._chartResizeObserver.disconnect(),delete s._chartResizeObserver),delete r._pendingInit,delete r._pendingInitIndex}catch(u){console.error("图表初始化失败:",u)}else c&&r.chartInstance&&r.chartInstance.resize()}}catch(d){i.e(d)}finally{i.f()}}));p.observe(t),t._chartResizeObserver=p,setTimeout((function(){if(t._chartResizeObserver===p&&!r.chartInstance){t._chartResizeObserver.disconnect(),delete t._chartResizeObserver;var n=t.getBoundingClientRect(),i=window.getComputedStyle(t);console.warn("容器在30秒内仍没有尺寸,放弃初始化图表,索引: ".concat(e),{offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,rectWidth:n.width,rectHeight:n.height,display:i.display,visibility:i.visibility,opacity:i.opacity,activeTab:a.activeTab})}}),3e4)}else var h=0,f=150,m=setInterval((function(){h++;var n=t.getBoundingClientRect(),i=t.offsetWidth>0&&t.offsetHeight>0||n.width>0&&n.height>0;if(i&&!r.chartInstance)clearInterval(m),a.initChartWithContainer(e,t),delete r._pendingInit,delete r._pendingInitIndex;else if(h>=f&&(clearInterval(m),!r.chartInstance)){var o=window.getComputedStyle(t);console.warn("容器在30秒内仍没有尺寸,放弃初始化图表,索引: ".concat(e),{offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,activeTab:a.activeTab,display:o.display})}}),200)}},handleResize:function(){this.chartList.forEach((function(e){e.chartInstance&&e.chartInstance.resize()}))},handleOpenAddModelDialog:function(e){this.currentChartIndex=e,this.addModelDialogVisible=!0,this.initTransferData(e)},initTransferData:function(e){var t=this.chartList[e];if(t){if(!Array.isArray(this.modelList)||0===this.modelList.length)return this.$message.info("请先在顶部查询机型"),this.transferData=[],void(this.transferSelectedKeys=[]);this.transferData=this.modelList.map((function(e){var t=e.id||e.rowId||e.engineModelID,r=e.parameterVersion||1,a="".concat(t,"_").concat(r),n=e.modelName||e.productFullName||"未知机型";return{key:a,label:n,modelId:t,parameterVersion:r,modelName:n,productNumber:e.productNumber||"",platform:e.platform||"",series:e.series||""}})),t.selectedModels&&Array.isArray(t.selectedModels)?this.transferSelectedKeys=t.selectedModels.map((function(e){var t=e.parameterVersion||1;return"".concat(e.id,"_").concat(t)})):this.transferSelectedKeys=[]}},handleTransferChange:function(e,t,r){if(!(this.currentChartIndex<0)){var a=this.chartList[this.currentChartIndex];if(a){var n=new Set;a.selectedModels&&Array.isArray(a.selectedModels)&&a.selectedModels.forEach((function(e){var t=e.parameterVersion||1;n.add("".concat(e.id,"_").concat(t))}));var i=e.filter((function(e){return!n.has(e)}));if("left"!==t&&"right"===t&&i.length>10){var o=Array.from(n),s=i.slice(0,10);this.transferSelectedKeys=[].concat(o,b6(s)),this.$message({type:"warning",message:"为了避免大量数据的长时间请求,单次选择的新机型上限是10个,查询后,可继续选择。",duration:4e3})}}}},handleAddModelDialogClose:function(){this.addModelDialogVisible=!1,this.currentChartIndex=-1,this.transferSelectedKeys=[],this.transferData=[]},handleConfirmAddModel:function(){var e=this;if(0!==this.transferSelectedKeys.length){if(!(this.currentChartIndex<0)){var t=this.chartList[this.currentChartIndex];if(t){var r=new Set;t.selectedModels&&Array.isArray(t.selectedModels)&&t.selectedModels.forEach((function(e){var t=e.parameterVersion||1;r.add("".concat(e.id,"_").concat(t))}));var a=[],n=[],i=new Set;r.forEach((function(t){if(!e.transferSelectedKeys.includes(t)){var r=e.transferData.find((function(e){return e.key===t}));r&&i.add(r.modelId)}})),this.transferSelectedKeys.forEach((function(t){var i=e.transferData.find((function(e){return e.key===t}));if(i){var o={id:i.modelId,name:i.modelName,parameterVersion:i.parameterVersion};a.push(o),r.has(t)||n.push(o)}})),t.selectedModels=a,i.size>0&&i.forEach((function(e){t.cachedModelData&&t.cachedModelData[e]&&delete t.cachedModelData[e]})),t.newSelectedModels=n;var o=this.currentChartIndex;o>=0&&this.handleChartModelQuery(o),this.handleAddModelDialogClose()}}}else this.$message({type:"warning",message:"请至少选择一个机型"})},handleChartModelQuery:function(e){var t=this,r=this.chartList[e];if(r)if(r.selectedModels&&0!==r.selectedModels.length){var a=r.newSelectedModels||[];if(!a||0===a.length)return this.updateChartDataFromCache(e),void this.updateChart(e);var n=a.map((function(e){return e.id})),i=T6(T6({},ze.GET_CHECK_DATA_CHARTS),{},{params:n,disableSuccessMsg:!0});this.$request(i).asyncThen((function(n){if(console.log(n),n&&n.data){var i=[];if(n.data.paramList&&Array.isArray(n.data.paramList)?i=n.data.paramList.map((function(e){return{label:e,value:e}})):Array.isArray(n.data)&&(i=n.data.map((function(e){return{label:e.name||e.label||e.parameterName||e,value:e.value||e.id||e.parameterName||e}}))),i.length>0){var o=new Map;t.yAxisParamOptions.forEach((function(e){o.set(e.value,e)})),i.forEach((function(e){o.has(e.value)||o.set(e.value,e)})),t.yAxisParamOptions=Array.from(o.values()),t.filteredYAxisParamOptions=t.yAxisParamOptions}var s=n.data.pojos||[];console.log("查询返回的数据:",s),console.log("新选择的机型:",a),s.length>0&&(r.cachedModelData||(r.cachedModelData={}),s.forEach((function(e){var t=e.id||e.modelId||e.engineModelID||e.rowId;if(!t){var n=e.modelName||e.productFullName||"",i=a.find((function(t){return t.name===n||String(t.id)===String(e.id)}));i&&(t=i.id)}if(t){var o=String(t);if(r.cachedModelData[o]){var s=r.cachedModelData[o].some((function(t){return JSON.stringify(t)===JSON.stringify(e)}));s||r.cachedModelData[o].push(e)}else r.cachedModelData[o]=[e];console.log("保存机型数据到缓存: ".concat(o),e)}else console.warn("无法匹配机型ID,数据:",e)})),console.log("缓存数据:",r.cachedModelData)),r.newSelectedModels=[],t.updateChartDataFromCache(e),t.updateChart(e)}})).asyncErrorCatch((function(e){console.error("查询失败:",e),t.$message.error("查询失败,请重试")}))}else this.$message.warning("请先选择机型")},updateChartDataFromCache:function(e){var t=this.chartList[e];if(t&&t.selectedModels&&t.cachedModelData){var r=new Set(t.selectedModels.map((function(e){return String(e.id)}))),a=[];console.log("从缓存更新图表数据 - 选中的机型ID:",Array.from(r)),console.log("缓存中的机型ID:",Object.keys(t.cachedModelData)),Object.keys(t.cachedModelData).forEach((function(e){var n=String(e);if(r.has(n)){var i=t.cachedModelData[e];Array.isArray(i)?a.push.apply(a,b6(i)):a.push(i)}})),console.log("更新后的chartDataList:",a),t.chartDataList=a}else t&&(t.chartDataList=[])},handleChartModelReset:function(e){var t=this.chartList[e];t&&(t.selectedModels=[],t.newSelectedModels=[],t.chartDataList=[],t.cachedModelData={},this.updateChart(e))},updateChart:function(e){var t=this,r=this.chartList[e];if(r&&r.chartInstance){"undefined"===typeof r.scatterTrendline&&this.$set(r,"scatterTrendline",!1);var a=r.xAxis||"",n=this.xAxisOptions.find((function(e){return e.value===a})),i=n?n.label:"",o=[],s=new Map,l=r.chartDataList||[];if(l&&l.length>0&&(l.forEach((function(e){var t="";if("projectName"===a?t=e.projectName||"":"modelName"===a?t=e.modelName||"":"plate"===a?t=e.plate||"":"platform"===a?t=e.platform||"":"series"===a?t=e.series||"":"emission"===a?t=e.emission||"":"burnType"===a?t=e.burnType||"":"engineCapacity"===a?t=e.engineCapacity||"":"productNumber"===a&&(t=e.productNumber||""),t)if(s.has(t)){var r=s.get(t);r.parameters=r.parameters.concat(e.pojos||[])}else s.set(t,{xValue:t,parameters:e.pojos||[]})})),o=Array.from(s.keys())),0===o.length&&"engineCapacity"===a){var c=this.searchPanelValue.engineCapacityMin||0,u=this.searchPanelValue.engineCapacityMax||100,d=(u-c)/10;o=[];for(var p=0;p<=10;p++){var h=c+d*p;o.push(h.toFixed(1))}}var f=Array.isArray(r.yAxisParam)?r.yAxisParam:[],m={},g=o.length0)if(g){var o=0,l=!1;i.forEach((function(e){if(void 0!==e.parameterValue&&null!==e.parameterValue){var t=parseFloat(e.parameterValue);isNaN(t)||(o+=t,l=!0)}})),a=l?o:null}else{var c=i[0];if(void 0!==c.parameterValue&&null!==c.parameterValue){var u=parseFloat(c.parameterValue);a=isNaN(u)?c.parameterValue:u}}}t.push(null===a||void 0===a?0:a)})),m[e]=t}));var v=[],y=[],b=r.chartType,_="scatter"===b,x="bar"===b,w="pie"===b,D=_&&!!r.scatterTrendline,S=null;if(r.yAxisFormula){var C=this.savedFormulas.find((function(e){return e.id===r.yAxisFormula}));if(C){var T=C.formulaItems&&Array.isArray(C.formulaItems)&&C.formulaItems.length>0,I=C.param1&&C.param2&&C.operator;(T||I)&&(S=this.calculateFormula(C,o,s,g),S&&S.length>0&&(S=S.map((function(e){return null===e||void 0===e?0:e}))))}}if(o.length>0&&f.length>0){var O=o.map((function(e,t){return t})),A=m[f[0]]||[];O.sort((function(e,t){var r=A[e]||0,a=A[t]||0;return a-r})),o=O.map((function(e){return o[e]})),f.forEach((function(e){var t=m[e]||[];m[e]=O.map((function(e){return t[e]||0}))})),S&&S.length>0&&(S=O.map((function(e){return S[e]||0})))}var M=function(e){var r=t.yAxisParamOptions.find((function(t){return t.value===e}));return r?r.label:e};if(w){var P=[],k=["#67C23A","#E6A23C","#F56C6C","#409EFF","#909399"];f.forEach((function(e,t){var r=m[e]||[],a=r.length>0?r.reduce((function(e,t){return e+(t||0)}),0)/r.length:0,n=M(e);P.push({value:a,name:n}),y.push(n)}));var N={title:{show:!1},tooltip:{trigger:"item",formatter:function(e){var t=parseFloat(e.value).toFixed(2);return"".concat(e.seriesName,"
").concat(e.name,": ").concat(t," ")}},legend:{type:"scroll",data:y,top:5,left:"center",height:"40px",itemHeight:18,itemGap:12,padding:[15,10,10,10],textStyle:{fontSize:14,lineHeight:18}},series:[{name:"数据分布",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!0,formatter:function(e){return"".concat(e.name,": ").concat(parseFloat(e.value).toFixed(2),"%")}},emphasis:{label:{show:!0,fontSize:"16",fontWeight:"bold"}},labelLine:{show:!0},data:P.map((function(e,t){return T6(T6({},e),{},{itemStyle:{color:k[t%k.length]}})}))}]};r.chartInstance.setOption(N,!0)}else{var E=["#67C23A","#E6A23C","#F56C6C","#409EFF","#909399","#E4E7ED","#C0C4CC"],L=["circle","rect","triangle","diamond","pin","arrow"];if(f.forEach((function(e,t){var r=m[e]||[],a=M(e),n=E[t%E.length],i=L[t%L.length],o={name:a,type:x?"bar":_?"scatter":"line",data:r,symbol:_?i:"circle",symbolSize:_?8:6,itemStyle:{color:n},lineStyle:{color:n,width:2}};v.push(o),y.push(a),D&&(v.push({name:"趋势线 (".concat(a,")"),type:"line",data:r,lineStyle:{color:n,type:"solid",width:2},symbol:"none",smooth:!0}),y.push("趋势线 (".concat(a,")")))})),S&&S.length>0){for(var R=[],F=0;F=W&&G<=H){for(var q=[],Y=0;Y");return e.forEach((function(e){void 0!==e.value&&null!==e.value&&""!==e.value&&(t+="".concat(e.marker).concat(e.seriesName,": ").concat(e.value,"
"))})),t}return void 0!==e.value&&null!==e.value&&""!==e.value?"".concat(e.seriesName,"
").concat(e.marker).concat(e.name,": ").concat(e.value):""}},legend:{type:"scroll",data:y,top:5,height:"40px",left:"center",itemHeight:18,itemGap:12,padding:[15,10,10,10],textStyle:{fontSize:14,lineHeight:18}},grid:{left:"3%",right:"60px",bottom:"15%",top:y.length>0?"22%":"3%",containLabel:!0},dataZoom:[{type:"slider",xAxisIndex:0,start:0,end:100,bottom:10,height:20,handleIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.2,10.8,24.1,24.1,24.1C44.2,51.7,55,40.8,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.6-0.4,1-1,1H26c-0.6,0-1-0.4-1-1s0.4-1,1-1h9.9C36.5,34.8,36.9,35.2,36.9,35.8z",handleSize:"80%",handleStyle:{color:"#fff",shadowBlur:3,shadowColor:"rgba(0, 0, 0, 0.6)",shadowOffsetX:2,shadowOffsetY:2},textStyle:{color:"#333"},borderColor:"#ccc",fillerColor:"rgba(64, 158, 255, 0.2)",dataBackground:{lineStyle:{color:"#409EFF",width:1},areaStyle:{color:"rgba(64, 158, 255, 0.1)"}},selectedDataBackground:{lineStyle:{color:"#409EFF",width:2},areaStyle:{color:"rgba(64, 158, 255, 0.3)"}}},{type:"inside",xAxisIndex:0,start:0,end:100}],xAxis:{type:"category",data:o,name:i,nameTextStyle:{color:"#000"},boundaryGap:!!x||[.05,.05],axisLabel:{color:"#000"},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#E4E7ED"}}},yAxis:function(){var e=null!==r.yAxisMin&&""!==r.yAxisMin?r.yAxisMin:0,t=null!==r.yAxisMax&&""!==r.yAxisMax?r.yAxisMax:100,a=t-e,n=a>0?Math.ceil(a/9):void 0;return{type:"value",min:e,max:t,splitNumber:9,maxInterval:n,axisLabel:{formatter:"{value}",color:"#000"},axisLine:{lineStyle:{color:"#DCDFE6"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#E4E7ED"}}}}(),series:v};r.chartInstance.setOption(X,!0)}}},getDefaultXAxisData:function(e){switch(e){case"projectName":return["项目1","项目2","项目3","项目4","项目5"];case"modelName":return["型号1","型号2","型号3","型号4","型号5"];case"plate":return["板块1","板块2","板块3","板块4","板块5"];case"platform":return["平台1","平台2","平台3","平台4","平台5"];case"series":return["系列1","系列2","系列3","系列4","系列5"];case"emission":return["排放1","排放2","排放3","排放4","排放5"];case"burnType":return["类型1","类型2","类型3","类型4","类型5"];case"engineCapacity":return["1.0","1.5","2.0","2.5","3.0","3.5","4.0","4.5","5.0"];default:return["数据1","数据2","数据3","数据4","数据5"]}},generateParamData:function(e,t){for(var r=t.charCodeAt?t.charCodeAt(0)%100:50,a=[],n=0;n5&&(this.$message.warning("最多只能选择5个参数"),this.formulaFormData.selectedParams=this.formulaFormData.selectedParams.slice(0,5)),this.formulaFormData.availableParams=this.formulaFormData.selectedParams.map((function(t){var r=e.yAxisParamOptions.find((function(e){return e.value===t}));return r||{label:t,value:t}}))},addNumberToBuilder:function(){if(null!==this.formulaFormData.inputNumber&&""!==this.formulaFormData.inputNumber){var e=parseFloat(this.formulaFormData.inputNumber);if(isNaN(e))this.$message.warning("请输入有效的数字");else{var t=this.formulaFormData.recentNumbers.indexOf(e);-1!==t&&this.formulaFormData.recentNumbers.splice(t,1),this.formulaFormData.recentNumbers.unshift(e),this.formulaFormData.recentNumbers.length>5&&(this.formulaFormData.recentNumbers=this.formulaFormData.recentNumbers.slice(0,5)),this.formulaFormData.inputNumber=null,this.$message.success("数字已添加到构建区,可拖拽到公式预览区域")}}else this.$message.warning("请输入数字")},handleDragStart:function(e,t,r,a){e.dataTransfer.setData("application/json",JSON.stringify({type:t,value:r,label:a})),e.dataTransfer.effectAllowed="copy",e.target&&(e.target.style.opacity="0.5")},handleDragEnd:function(e){e.target&&(e.target.style.opacity="1")},handleDragEnter:function(e){e.preventDefault(),this.isDraggingOver=!0},handleDragLeave:function(e){e.preventDefault(),e.target.classList.contains("preview-container")&&(this.isDraggingOver=!1)},handleDrop:function(e){if(e.preventDefault(),this.isDraggingOver=!1,-1===this.draggingPreviewIndex)try{var t=JSON.parse(e.dataTransfer.getData("application/json"));t&&t.type&&t.value&&t.label&&this.formulaFormData.formulaItems.push({type:t.type,value:t.value,label:t.label})}catch(r){console.error("拖拽数据解析失败:",r)}},handlePreviewDragStart:function(e,t){this.draggingPreviewIndex=t,e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t)),e.target&&(e.target.style.opacity="0.5")},handlePreviewDragOver:function(e,t){e.preventDefault(),-1!==this.draggingPreviewIndex&&this.draggingPreviewIndex!==t&&(this.dragOverPreviewIndex=t)},handlePreviewDragEnter:function(e,t){e.preventDefault(),-1!==this.draggingPreviewIndex&&this.draggingPreviewIndex!==t&&(this.dragOverPreviewIndex=t)},handlePreviewDragLeave:function(e){e.target.classList.contains("preview-item")&&(this.dragOverPreviewIndex=-1)},handlePreviewDrop:function(e,t){if(e.preventDefault(),e.stopPropagation(),-1===this.draggingPreviewIndex||this.draggingPreviewIndex===t)return this.draggingPreviewIndex=-1,void(this.dragOverPreviewIndex=-1);var r=b6(this.formulaFormData.formulaItems),a=r[this.draggingPreviewIndex];r.splice(this.draggingPreviewIndex,1);var n=t;this.draggingPreviewIndex0){var r=e[0],a=e[e.length-1];if("operator"===r.type||"operator"===a.type)return!1}return!0},handleEditFormula:function(e){this.currentFormulaChartIndex=e;var t=this.chartList[e];if(t){if(t.yAxisFormula){var r=this.savedFormulas.find((function(e){return e.id===t.yAxisFormula}));if(r){if(this.currentFormulaId=r.id,r.formulaItems)this.formulaFormData={name:r.name||"",selectedParams:r.formulaItems.filter((function(e){return"param"===e.type})).map((function(e){return e.value})),availableParams:[],formulaItems:JSON.parse(JSON.stringify(r.formulaItems)),inputNumber:null,recentNumbers:r.formulaItems.filter((function(e){return"number"===e.type})).map((function(e){return parseFloat(e.value)})).filter((function(e){return!isNaN(e)})).slice(0,5)};else{var a=[];if(r.param1){var n=this.yAxisParamOptions.find((function(e){return e.value===r.param1}));a.push({type:"param",value:r.param1,label:n?n.label:r.param1})}if(r.operator){var i=this.formulaOperators.find((function(e){return e.value===r.operator}));a.push({type:"operator",value:r.operator,label:i?i.label:r.operator})}if(r.param2){var o=this.yAxisParamOptions.find((function(e){return e.value===r.param2}));a.push({type:"param",value:r.param2,label:o?o.label:r.param2})}this.formulaFormData={name:r.name||"",selectedParams:[r.param1,r.param2].filter(Boolean),availableParams:[],formulaItems:a,inputNumber:null,recentNumbers:[]}}this.handleSelectedParamsChange()}else this.currentFormulaId=null,this.formulaFormData={name:"",selectedParams:[],availableParams:[],formulaItems:[]}}else this.currentFormulaId=null,this.formulaFormData={name:"",selectedParams:[],availableParams:[],formulaItems:[],inputNumber:null,recentNumbers:[]};this.formulaDialogVisible=!0}},handleSaveFormula:function(){if(this.isFormulaValid){var e=this.currentFormulaId;if(e){var t=this.savedFormulas.findIndex((function(t){return t.id===e}));t>=0&&(this.savedFormulas[t]=T6(T6({},this.savedFormulas[t]),{},{name:this.formulaFormData.name.trim(),formulaItems:JSON.parse(JSON.stringify(this.formulaFormData.formulaItems))}))}else e="formula_".concat(this.formulaIdCounter++),this.savedFormulas.push({id:e,name:this.formulaFormData.name.trim(),formulaItems:JSON.parse(JSON.stringify(this.formulaFormData.formulaItems))});if(this.currentFormulaChartIndex>=0){var r=this.chartList[this.currentFormulaChartIndex];r&&(r.yAxisFormula=e,this.updateChart(this.currentFormulaChartIndex))}this.handleFormulaDialogClose()}else this.$message.warning("请完整填写公式信息,公式至少需要一个参数且不能以运算符开头或结尾")},handleFormulaDialogClose:function(){this.formulaDialogVisible=!1,this.currentFormulaChartIndex=-1,this.currentFormulaId=null,this.formulaFormData={name:"",selectedParams:[],availableParams:[],formulaItems:[],inputNumber:null,recentNumbers:[]}},calculateFormula:function(e,t,r){var a=this,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return[];var i=[];if(e.formulaItems&&Array.isArray(e.formulaItems))i=e.formulaItems;else{if(!(e.param1&&e.param2&&e.operator))return[];var o=this.yAxisParamOptions.find((function(t){return t.value===e.param1})),s=this.yAxisParamOptions.find((function(t){return t.value===e.param2})),l=this.formulaOperators.find((function(t){return t.value===e.operator}));i=[{type:"param",value:e.param1,label:o?o.label:e.param1},{type:"operator",value:e.operator,label:l?l.label:e.operator},{type:"param",value:e.param2,label:s?s.label:e.param2}]}if(0===i.length)return[];var c=[];return t.forEach((function(e){var t=null;try{t=a.evaluateFormulaExpression(i,e,r,n)}catch(o){console.error("计算公式失败:",o),t=null}c.push(t)})),c},evaluateFormulaExpression:function(e,t,r,a){var n=this.infixToPostfix(e,t,r,a);return this.evaluatePostfix(n)},infixToPostfix:function(e,t,r,a){for(var n=[],i=[],o={"+":1,"-":1,"*":2,"/":2},s=0;s0&&"("!==i[i.length-1]&&o[i[i.length-1]]>=o[l.value])n.push(i.pop());i.push(l.value)}else if("bracket"===l.type)if("("===l.value)i.push("(");else if(")"===l.value){while(i.length>0&&"("!==i[i.length-1])n.push(i.pop());i.length>0&&"("===i[i.length-1]&&i.pop()}}while(i.length>0){var p=i.pop();if("("===p||")"===p)return null;n.push(p)}return n},evaluatePostfix:function(e){if(!e||0===e.length||null===e)return null;for(var t=[],r=0;r3&&void 0!==arguments[3]&&arguments[3];if(!r||!r.has(t))return null;var n=r.get(t);if(!n||!n.parameters)return null;var i=n.parameters.filter((function(t){return t.parameterName===e}));if(!i||0===i.length)return null;if(a&&i.length>1){var o=0,s=!1;return i.forEach((function(e){if(void 0!==e.parameterValue&&null!==e.parameterValue){var t=parseFloat(e.parameterValue);isNaN(t)||(o+=t,s=!0)}})),s?o:null}var l=i[0];return l&&void 0!==l.parameterValue&&null!==l.parameterValue?l.parameterValue:null},startResize:function(e,t){t.preventDefault(),t.stopPropagation(),this.isResizing=!0,this.resizingChartIndex=e,this.resizeStartY=t.clientY;var r=this.chartList[e];this.resizeStartHeight=(null===r||void 0===r?void 0:r.chartHeight)||400,document.addEventListener("mousemove",this.doResize),document.addEventListener("mouseup",this.stopResize),document.body.style.cursor="row-resize",document.body.style.userSelect="none"},doResize:function(e){if(this.isResizing){var t=e.clientY-this.resizeStartY,r=this.resizeStartHeight+t,a=200,n=this.chartList[this.resizingChartIndex];n&&(n.chartHeight=Math.max(r,a),this.$nextTick((function(){n.chartInstance&&n.chartInstance.resize()})))}},stopResize:function(){this.cleanupResizeListeners()},cleanupResizeListeners:function(){document.removeEventListener("mousemove",this.doResize),document.removeEventListener("mouseup",this.stopResize),document.body.style.cursor="",document.body.style.userSelect="",this.isResizing=!1,this.resizingChartIndex=-1},disposeAllCharts:function(){var e=this;this.chartList.forEach((function(t,r){t.chartInstance&&(t.chartInstance.dispose(),t.chartInstance=null),t._resizeHandler&&(window.removeEventListener("resize",t._resizeHandler),delete t._resizeHandler);var a="chartContainer-".concat(r),n=e.$refs[a];if(n){var i=Array.isArray(n)?n[0]:n;i&&i._chartResizeObserver&&(i._chartResizeObserver.disconnect(),delete i._chartResizeObserver),i&&i._resizeObserver&&(i._resizeObserver.disconnect(),delete i._resizeObserver)}}))}}},k6=P6,N6=(r("34df"),r("9747"),d(k6,wa,Da,!1,null,"7efe03a6",null)),E6=N6.exports,L6=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-report-check custom-page"},[r("div",{staticClass:"page-search-panel"},[r("el-form",{staticClass:"search-list"},[r("el-form-item",{staticClass:"search-component",attrs:{label:"厂家:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.manufacturer,callback:function(t){e.$set(e.searchPanelValue,"manufacturer",t)},expression:"searchPanelValue.manufacturer"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"型号:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.model,callback:function(t){e.$set(e.searchPanelValue,"model",t)},expression:"searchPanelValue.model"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"产品编号:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.productNo,callback:function(t){e.$set(e.searchPanelValue,"productNo",t)},expression:"searchPanelValue.productNo"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"板块:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.module,callback:function(t){e.$set(e.searchPanelValue,"module",t)},expression:"searchPanelValue.module"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"平台:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.platform,callback:function(t){e.$set(e.searchPanelValue,"platform",t)},expression:"searchPanelValue.platform"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"系列:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.series,callback:function(t){e.$set(e.searchPanelValue,"series",t)},expression:"searchPanelValue.series"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"细分市场:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.segmentMarket,callback:function(t){e.$set(e.searchPanelValue,"segmentMarket",t)},expression:"searchPanelValue.segmentMarket"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"项目名称:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectName,callback:function(t){e.$set(e.searchPanelValue,"projectName",t)},expression:"searchPanelValue.projectName"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"项目编号:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectNo,callback:function(t){e.$set(e.searchPanelValue,"projectNo",t)},expression:"searchPanelValue.projectNo"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"领域/模块:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.fieldModule,callback:function(t){e.$set(e.searchPanelValue,"fieldModule",t)},expression:"searchPanelValue.fieldModule"}})],1),r("el-form-item",{staticClass:"search-component",attrs:{label:"标题:"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.title,callback:function(t){e.$set(e.searchPanelValue,"title",t)},expression:"searchPanelValue.title"}})],1)],1),r("div",{staticClass:"search-button-group"},[r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("span",{staticClass:"search-tip"},[e._v("//只展示审批完成的数据")])],1)],1),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange,"select-data-change":e.selectDataChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["fileName"===t.customSlot?r("div",{key:a+""+o},[i.fileName?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleFileClick(i)}}},[e._v(e._s(i.fileName))]):e._e()]):e._e(),"operation"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDownload(i)}}},[e._v("下载")])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[r("x-empty-page")],1)])],2)],1)])},R6=[],F6={name:"ReportCheck",data:function(){return{searchPanelValue:{manufacturer:"",model:"",productNo:"",module:"",platform:"",series:"",segmentMarket:"",projectName:"",projectNo:"",fieldModule:"",title:""},tableData:[],pagination:{currentPage:1,pageSize:10,total:0}}},computed:{tableConfig:function(){return{rowDraggable:!1,colConfigs:[{prop:"title",label:"标题",showOverflowTooltip:!0,minWidth:"120"},{prop:"manufacturerName",label:"厂家名称(全称)",showOverflowTooltip:!0,minWidth:"150"},{prop:"productModel",label:"产品型号(全称)",showOverflowTooltip:!0,minWidth:"150"},{prop:"fieldModule",label:"领域/模块",showOverflowTooltip:!0,minWidth:"120"},{prop:"productNo",label:"产品编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"module",label:"板块",showOverflowTooltip:!0,minWidth:"100"},{prop:"platform",label:"平台",showOverflowTooltip:!0,minWidth:"100"},{prop:"series",label:"系列",showOverflowTooltip:!0,minWidth:"100"},{prop:"segmentMarket",label:"细分市场",showOverflowTooltip:!0,minWidth:"120"},{prop:"projectName",label:"项目名称",showOverflowTooltip:!0,minWidth:"140"},{prop:"projectNo",label:"项目编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"uploadTime",label:"上传时间",showOverflowTooltip:!0,minWidth:"150"},{prop:"fileName",label:"文件名",customSlot:"fileName",showOverflowTooltip:!0,minWidth:"150"},{prop:"operation",label:"操作",customSlot:"operation",align:"center",width:"80",fixed:"right"}],seqType:"",seqConfig:{},layout:"total, prev, pager, next, sizes, jumper",pageConfig:{}}}},created:function(){this.loadData()},methods:{pageSizeChange:function(e){this.pagination.pageSize=e,this.pagination.currentPage=1,this.loadData()},rowClickEvent:function(e){console.warn(e)},handleFileClick:function(e){this.$message&&this.$message.info&&this.$message.info("点击文件名:"+(e.fileName||""))},handleDownload:function(e){this.$message&&this.$message.info&&this.$message.info("下载:"+(e.fileName||""))},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={manufacturer:"",model:"",productNo:"",module:"",platform:"",series:"",segmentMarket:"",projectName:"",projectNo:"",fieldModule:"",title:""},this.handleSearch()},handleSearch:function(){this.pagination.currentPage=1,this.loadData()},loadData:function(){var e=this.tableConfig.colConfigs,t=e.filter((function(e){return e.prop&&"operation"!==e.prop})).map((function(e){return e.prop}));this.tableData=Array.from({length:50},(function(e,r){var a={};return t.forEach((function(e){switch(e){case"title":a[e]="XXXX";break;case"manufacturerName":a[e]=r%2===0?"XXXXXXXX":"XXXXX";break;case"productModel":a[e]="";break;case"fieldModule":a[e]="";break;case"productNo":a[e]="";break;case"module":a[e]="";break;case"platform":a[e]="";break;case"series":a[e]="";break;case"segmentMarket":a[e]="";break;case"projectName":a[e]="";break;case"projectNo":a[e]="";break;case"uploadTime":var t=new Date;t.setDate(t.getDate()-r),a[e]=t.toLocaleDateString("zh-CN").replace(/\//g,"-")+" "+t.toLocaleTimeString("zh-CN",{hour12:!1}).slice(0,8);break;case"fileName":a[e]=r%3===2?"":"XXXXXX文件名";break;default:a[e]=""}})),a}));var r=(this.pagination.currentPage-1)*this.pagination.pageSize,a=r+this.pagination.pageSize;this.tableData=this.tableData.slice(r,a),this.pagination.total=50}}},j6=F6,V6=(r("cb20"),d(j6,L6,R6,!1,null,"9b434c4a",null)),$6=V6.exports,B6=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showReportDetail?r("report-detail",{attrs:{detail:e.currentReportDetail,"from-todo":e.fromTodo,"can-resend":e.canResend},on:{close:e.closeReportDetail,refresh:e.handleReportDetailRefresh}}):[r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 对标报告 ")]),r("div",{staticClass:"operation"},[e.hasReportEditPermission()?r("el-button",{attrs:{type:"primary"},on:{click:e.handleCreate}},[e._v(" 新增 ")]):e._e()],1)]),r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"searched-fields"},[r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("厂家")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.manufacturerName,callback:function(t){e.$set(e.searchPanelValue,"manufacturerName",t)},expression:"searchPanelValue.manufacturerName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("型号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.modelName,callback:function(t){e.$set(e.searchPanelValue,"modelName",t)},expression:"searchPanelValue.modelName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("产品编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.productNumber,callback:function(t){e.$set(e.searchPanelValue,"productNumber",t)},expression:"searchPanelValue.productNumber"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("板块")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.plate,callback:function(t){e.$set(e.searchPanelValue,"plate",t)},expression:"searchPanelValue.plate"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("平台")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.platform,callback:function(t){e.$set(e.searchPanelValue,"platform",t)},expression:"searchPanelValue.platform"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("系列")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.series,callback:function(t){e.$set(e.searchPanelValue,"series",t)},expression:"searchPanelValue.series"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("细分市场")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.marketSegment,callback:function(t){e.$set(e.searchPanelValue,"marketSegment",t)},expression:"searchPanelValue.marketSegment"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("项目名称")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectName,callback:function(t){e.$set(e.searchPanelValue,"projectName",t)},expression:"searchPanelValue.projectName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("项目编号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.projectNumber,callback:function(t){e.$set(e.searchPanelValue,"projectNumber",t)},expression:"searchPanelValue.projectNumber"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("领域/模块")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.module,callback:function(t){e.$set(e.searchPanelValue,"module",t)},expression:"searchPanelValue.module"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("状态")]),r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.searchPanelValue.status,callback:function(t){e.$set(e.searchPanelValue,"status",t)},expression:"searchPanelValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("标题")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.title,callback:function(t){e.$set(e.searchPanelValue,"title",t)},expression:"searchPanelValue.title"}})],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange,"select-data-change":e.selectDataChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customHeadSlot,fn:function(n){var i=n.column;return[t.customHeadSlot?r("div",{key:a},[e._v(" "+e._s(i)+" "+e._s(t)+" ")]):e._e()]}}})),e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["status"===t.customSlot?r("div",{key:a+""+o},["APPROVING"===i[t.prop]?r("span",{staticStyle:{background:"#E6A23C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" 审核中 ")]):"COMPLETE"===i[t.prop]?r("span",{staticStyle:{background:"#67C23A",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" 已完成 ")]):"DRAFT"===i[t.prop]&&0===i.returnNum?r("span",{staticStyle:{background:"#909399",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" 草稿 ")]):"DRAFT"===i[t.prop]&&i.returnNum>0?r("span",{staticStyle:{background:"#F56C6C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" 已拒绝 ")]):r("span",{staticStyle:{background:"#909399",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v(" - ")])]):e._e(),"options"===t.customSlot?r("div",{key:"op"+a+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowView(i)}}},[e._v(" 查看 ")]),r("span",{staticStyle:{width:"6px",display:"inline-block"}}),"DRAFT"===i.status&&e.hasReportEditPermission()&&0===i.returnNum?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleEdit(i)}}},[e._v(" 修改 ")]):e._e(),"DRAFT"===i.status&&e.hasReportEditPermission()&&0===i.returnNum?r("span",{staticStyle:{width:"6px",display:"inline-block"}}):e._e(),"DRAFT"===i.status&&0===i.returnNum?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleLaunch(i)}}},[e._v(" 发起 ")]):e._e(),i.status&&""!==i.status&&"DRAFT"!==i.status?e._e():r("span",{staticStyle:{width:"6px",display:"inline-block"}}),"REJECTED"===i.status&&e.hasReportEditPermission()?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleEdit(i)}}},[e._v(" 修改 ")]):e._e(),"REJECTED"===i.status?r("span",{staticStyle:{width:"6px",display:"inline-block"}}):e._e(),i.filePath?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDownload(i)}}},[e._v(" 下载 ")]):e._e(),"DRAFT"===i.status||"REJECTED"===i.status?r("span",{staticStyle:{width:"6px",display:"inline-block"}}):e._e(),"DRAFT"===i.status||"REJECTED"===i.status&&e.hasReportEditPermission()?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],r("el-dialog",{attrs:{title:"edit"===e.dialogMode?"修改报告":"新增报告",visible:e.createDialogVisible,width:"900px","close-on-click-modal":!1,modal:!1,"custom-class":"create-report-dialog"},on:{"update:visible":function(t){e.createDialogVisible=t},close:e.handleDialogClose}},[r("div",{staticClass:"dialog-body-wrapper"},[r("el-form",{ref:"createForm",attrs:{model:e.createFormData,rules:e.createFormRules,"label-width":"150px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:22}},[r("el-form-item",{attrs:{label:"流程主题",prop:"processTitle"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.processTitle,callback:function(t){e.$set(e.createFormData,"processTitle",t)},expression:"createFormData.processTitle"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"标题名称",prop:"title"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.title,callback:function(t){e.$set(e.createFormData,"title",t)},expression:"createFormData.title"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"厂家名称(全称)",prop:"manufacturerName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.manufacturerName,callback:function(t){e.$set(e.createFormData,"manufacturerName",t)},expression:"createFormData.manufacturerName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品型号(全称)",prop:"modelName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.modelName,callback:function(t){e.$set(e.createFormData,"modelName",t)},expression:"createFormData.modelName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"厂家简称",prop:"manufacturerAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.manufacturerAbbreviation,callback:function(t){e.$set(e.createFormData,"manufacturerAbbreviation",t)},expression:"createFormData.manufacturerAbbreviation"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品型号简称",prop:"modelAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.modelAbbreviation,callback:function(t){e.$set(e.createFormData,"modelAbbreviation",t)},expression:"createFormData.modelAbbreviation"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品编号",prop:"productNumber"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.productNumber,callback:function(t){e.$set(e.createFormData,"productNumber",t)},expression:"createFormData.productNumber"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"领域/模块",prop:"module"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.module,callback:function(t){e.$set(e.createFormData,"module",t)},expression:"createFormData.module"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"板块",prop:"plate"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.plate,callback:function(t){e.$set(e.createFormData,"plate",t)},expression:"createFormData.plate"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"平台",prop:"platform"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.platform,callback:function(t){e.$set(e.createFormData,"platform",t)},expression:"createFormData.platform"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"系列",prop:"series"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.series,callback:function(t){e.$set(e.createFormData,"series",t)},expression:"createFormData.series"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"细分市场",prop:"marketSegment"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.marketSegment,callback:function(t){e.$set(e.createFormData,"marketSegment",t)},expression:"createFormData.marketSegment"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目名称",prop:"projectName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.projectName,callback:function(t){e.$set(e.createFormData,"projectName",t)},expression:"createFormData.projectName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目编号",prop:"projectNumber"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.projectNumber,callback:function(t){e.$set(e.createFormData,"projectNumber",t)},expression:"createFormData.projectNumber"}})],1)],1)],1),r("el-form-item",{attrs:{label:"附件上传",prop:"attachments"}},[r("el-upload",{ref:"upload",attrs:{"auto-upload":!1,"on-change":e.handleFileChange,"on-remove":e.handleFileRemove,"file-list":e.fileList,limit:1,accept:".doc,.docx,.pdf,.xls,.xlsx,.ppt,.pptx"}},[r("el-button",{attrs:{type:"primary",icon:"el-icon-upload"}},[e._v(" 选择文件 ")]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 支持扩展名: .doc .docx .pdf .xls .xlsx .ppt .pptx,仅支持上传一个文件 ")])],1)],1),r("el-form-item",{attrs:{label:"说明",prop:"explanation"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入"},model:{value:e.createFormData.explanation,callback:function(t){e.$set(e.createFormData,"explanation",t)},expression:"createFormData.explanation"}})],1),r("el-form-item",{attrs:{label:"审批环节",prop:"approvalWorkflowSteps"}},[r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])]),r("tbody",e._l(e.approvalWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"",placeholder:"请选择","remote-method":function(t){return e.handleRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])])],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)]),r("el-dialog",{attrs:{title:"发起",visible:e.launchDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.launchDialogVisible=t},close:e.handleLaunchDialogClose}},[r("div",{staticClass:"dialog-body-wrapper"},[r("div",{staticClass:"approval-process-title"},[r("div",{staticClass:"description-label"},[e._v(" 流程主题 "),r("span",{staticClass:"required-mark"},[e._v("*")])]),r("el-input",{attrs:{maxlength:"100","show-word-limit":"",placeholder:"请输入流程主题"},model:{value:e.launchProcessTitle,callback:function(t){e.launchProcessTitle=t},expression:"launchProcessTitle"}})],1),r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-title"},[e._v(" 审批环节 ")]),r("div",{staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])]),r("tbody",e._l(e.launchWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"",placeholder:"请选择","remote-method":function(t){return e.handleLaunchRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleLaunchHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleLaunchDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.launching},on:{click:e.handleLaunchSubmit}},[e._v(" 确定 ")])],1)]),r("el-dialog",{attrs:{title:"审核",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"审核"}},[r("el-radio-group",{model:{value:e.approvalFormData.result,callback:function(t){e.$set(e.approvalFormData,"result",t)},expression:"approvalFormData.result"}},[r("el-radio",{attrs:{label:"PASS"}},[e._v(" 通过 ")]),r("el-radio",{attrs:{label:"REJECT"}},[e._v(" 退回 ")])],1)],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入备注"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1)],2)},z6=[];function G6(e){return G6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G6(e)}function U6(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U6=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new C(n||[]);return a(o,"_invoke",{value:x(e,r,s)}),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==G6(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function W6(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function H6(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){W6(i,a,n,o,s,"next",e)}function s(e){W6(i,a,n,o,s,"throw",e)}o(void 0)}))}}function q6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Y6(e){for(var t=1;t0){var i=n.map((function(e){return e.name})).join("、");a(new Error('请为必填环节"'.concat(i,'"选择处理人')))}else a()},trigger:"change"}]},approvalWorkflowSteps:[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],approvalDialogVisible:!1,approvalFormData:{result:"",opinion:""},approvalSubmitting:!1,currentApprovalRow:null,showReportDetail:!1,currentReportDetail:null,downloadingRowId:"",canViewData:!1}},computed:{tableConfig:function(){return{rowDraggable:!1,colConfigs:[{prop:"title",label:"标题",showOverflowTooltip:!0,minWidth:"120"},{prop:"manufacturerName",label:"厂家名称",showOverflowTooltip:!0,minWidth:"140"},{prop:"productNumber",label:"产品型号",showOverflowTooltip:!0,minWidth:"160"},{prop:"module",label:"领域/模块",showOverflowTooltip:!0,minWidth:"120"},{prop:"plate",label:"板块",showOverflowTooltip:!0,minWidth:"100"},{prop:"platform",label:"平台",showOverflowTooltip:!0,minWidth:"100"},{prop:"series",label:"系列",showOverflowTooltip:!0,minWidth:"100"},{prop:"marketSegment",label:"细分市场",showOverflowTooltip:!0,minWidth:"120"},{prop:"projectName",label:"项目名称",showOverflowTooltip:!0,minWidth:"140"},{prop:"projectNumber",label:"项目编号",showOverflowTooltip:!0,minWidth:"120"},{prop:"status",label:"状态",customSlot:"status",align:"center",minWidth:"100",fixed:"right"},{prop:"options",label:"操作",customSlot:"options",align:"center",width:"200",fixed:"right"}],seqType:"seq",seqConfig:{fixed:!0},layout:"total, prev, pager, next, sizes"}}},mounted:function(){var e=this;this.hasViewPermission()?(this.canViewData=!0,this.loadData()):(this.canViewData=!1,this.tableData=[]),this.loadUserSelfRole().then((function(){e.hasViewPermission()?(e.canViewData=!0,0===e.tableData.length&&e.loadData()):(e.canViewData=!1,e.tableData=[])})).catch((function(){console.error("加载权限数据失败")}))},methods:{isAdmin:function(){try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){return 1===e.isAdmin||"1"===e.isAdmin}))}catch(r){return console.error("检查管理员权限失败:",r),!1}},hasViewPermission:function(){if(this.isAdmin())return!0;try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){var t=e.permissionPath||"";return t.includes("对标报告")}))}catch(r){return console.error("检查查看权限失败:",r),!1}},hasReportEditPermission:function(){if(this.isAdmin())return!0;try{var e=localStorage.getItem("user_self_role");if(!e)return!1;var t=JSON.parse(e);return!!Array.isArray(t)&&t.some((function(e){var t=e.permissionPath||"",r=e.parameterPer||"";return"对标报告"===t&&"编辑"===r}))}catch(r){return console.error("检查报告编辑权限失败:",r),!1}},loadUserSelfRole:function(){var e=this,t=Y6(Y6({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});return new Promise((function(r,a){e.$request(t).asyncThen((function(e){if(e&&e.data)try{localStorage.setItem("user_self_role",JSON.stringify(e.data)),r(e.data)}catch(t){console.error("存储权限数据到 localStorage 失败:",t),a(t)}else r(null)})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e),a(e)}))}))},handleCreate:function(){var e=this;this.dialogMode="create",this.currentRestartRow=null,this.currentEditRow=null,this.createFormData={title:"",manufacturerName:"",modelName:"",manufacturerAbbreviation:"",modelAbbreviation:"",productNumber:"",module:"",plate:"",fileUrl:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",explanation:"",processTitle:""},this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],this.fileList=[],this.selectedFile=null,this.createDialogVisible=!0,this.$nextTick((function(){e.$refs.createForm&&e.$refs.createForm.clearValidate()}))},handleEdit:function(e){var t=this;this.dialogMode="edit",this.currentEditRow=e,this.currentRestartRow=null,this.originalProcessTitle=e.processTitle||"",this.createFormData={title:e.title||"",manufacturerName:e.manufacturerName||"",modelName:e.modelName||"",manufacturerAbbreviation:e.manufacturerAbbreviation||"",modelAbbreviation:e.modelAbbreviation||"",productNumber:e.productNumber||"",module:e.module||"",plate:e.plate||"",fileUrl:e.fileUrl||e.filePath||"",platform:e.platform||"",series:e.series||"",marketSegment:e.marketSegment||"",projectName:e.projectName||"",projectNumber:e.projectNumber||"",explanation:e.explanation||"",processTitle:e.processTitle||""},e.fileUrl||e.filePath?this.fileList=[{name:e.title||"文件",url:e.fileUrl||e.filePath}]:this.fileList=[],this.selectedFile=null,this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],e.flowId&&this.loadApprovalUsers(e.flowId),this.createDialogVisible=!0,this.$nextTick((function(){t.$refs.createForm&&t.$refs.createForm.clearValidate()}))},handleLaunch:function(e){var t=this;this.currentLaunchRow=e,this.$confirm("确定发起审批吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r={reportId:e.reportId,flowId:e.flowId,userId:de()},a=Y6(Y6({},et.ADD_REPORT),{},{params:r,disableSuccessMsg:!0});t.$request(a).asyncThen((function(e){t.loadData()})).asyncErrorCatch((function(e){console.error("发起失败:",e),t.$message({type:"error",message:"发起失败,请重试"})}))})).catch((function(){t.$message({type:"info",message:"取消发起审批"})}))},handleLaunchDialogClose:function(){this.launchDialogVisible=!1,this.currentLaunchRow=null,this.launchProcessTitle="",this.launchWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}]},handleLaunchSubmit:function(){var e=this,t=this.launchWorkflowSteps.filter((function(e){return e.required&&(!e.handlers||0===e.handlers.length)}));if(t.length>0){var r=t.map((function(e){return e.name})).join("、");this.$message({type:"warning",message:'请为必填环节"'.concat(r,'"选择处理人')})}else if(this.currentLaunchRow){var a=(this.launchProcessTitle||"").trim();if(a){var n=this.currentLaunchRow.reportId||this.currentLaunchRow.id;if(n){var i=this.currentLaunchRow.flowId,o={reportId:n,flowId:i,userId:de()};this.launching=!0;var s=Y6(Y6({},et.ADD_REPORT),{},{params:o,disableSuccessMsg:!0});this.$request(s).asyncThen((function(t){e.launching=!1,e.handleLaunchDialogClose(),e.loadData(),e.$message({type:"success",message:"发起成功"})})).asyncErrorCatch((function(t){console.error("发起失败:",t),e.launching=!1,e.$message({type:"error",message:"发起失败,请重试"})}))}else this.$message({type:"error",message:"缺少报告ID"})}else this.$message({type:"warning",message:"请填写流程主题"})}else this.$message({type:"error",message:"缺少报告信息"})},handleLaunchRemoteSearch:function(e,t){var r=this.launchWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=Y6(Y6({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=i}else r.options=[]},handleLaunchHandlerChange:function(e,t){},handleDelete:function(e){var t=this;this.$confirm("确定删除该报告吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=Y6(Y6({},et.DELETE_REPORT),{},{params:{reportId:e.reportId},disableSuccessMsg:!0});t.$request(r).asyncThen((function(e){t.$message({type:"success",message:"删除成功"}),t.loadData()})).asyncErrorCatch((function(e){console.error("删除失败:",e),t.$message({type:"error",message:"删除失败"})}))}))},handleRestart:function(e){var t=this;this.dialogMode="restart",this.currentRestartRow=e,this.currentEditRow=null,this.createFormData={title:e.title||"",manufacturerName:e.manufacturerName||"",modelName:e.modelName||"",manufacturerAbbreviation:e.manufacturerAbbreviation||"",modelAbbreviation:e.modelAbbreviation||"",productNumber:e.productNumber||"",module:e.module||"",plate:e.plate||"",fileUrl:e.fileUrl||e.filePath||"",platform:e.platform||"",series:e.series||"",marketSegment:e.marketSegment||"",projectName:e.projectName||"",projectNumber:e.projectNumber||"",explanation:e.explanation||""},this.fileList=[],this.selectedFile=null,this.createDialogVisible=!0,this.$nextTick((function(){t.$refs.createForm&&t.$refs.createForm.clearValidate()}))},handleDialogClose:function(){this.createDialogVisible=!1,this.dialogMode="create",this.currentRestartRow=null,this.currentEditRow=null,this.createFormData={title:"",manufacturerName:"",modelName:"",manufacturerAbbreviation:"",modelAbbreviation:"",productNumber:"",module:"",plate:"",fileUrl:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",explanation:"",processTitle:""},this.approvalWorkflowSteps=[{name:"校对",required:!0,handlers:[],options:[],loading:!1},{name:"审核",required:!0,handlers:[],options:[],loading:!1},{name:"批准",required:!0,handlers:[],options:[],loading:!1}],this.fileList=[],this.selectedFile=null,this.$refs.createForm&&this.$refs.createForm.clearValidate()},handleFileChange:function(e,t){var r=[".doc",".docx",".pdf",".xls",".xlsx",".ppt",".pptx"],a=e.name.toLowerCase(),n=r.some((function(e){return a.endsWith(e)}));if(!n)return this.$message.error("不支持的文件类型,仅支持 .doc .docx .pdf .xls .xlsx .ppt .pptx"),this.$refs.upload.handleRemove(e),!1;this.selectedFile=e&&e.raw?e.raw:null,this.fileList=t.slice(-1)},handleFileRemove:function(e,t){this.selectedFile=null,this.fileList=[]},handleFileUpload:function(){var e=this;if(this.uploading||!this.selectedFile)return this.selectedFile,Promise.resolve(null);var t=this.selectedFile;console.log(t,2222);var r=new FormData;r.append("file",t),r.append("createBy",de());var a=Y6(Y6({},et.TEST_FILE_UPLOAD),{},{params:r,disableSuccessMsg:!0});this.uploading=!0;var n=this.$loading({lock:!0,text:"正在上传文件,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});return this.$upload(a,null,!1).then((function(t){console.log("文件上传成功:",t),n.close();var r="";if(t.data&&t){var a=t.data;r=a,e.createFormData.fileUrl=r}return r})).catch((function(t){throw console.error("文件上传失败:",t),n.close(),e.$message.error("文件上传失败,请重试"),t})).finally((function(){n&&n.close(),e.uploading=!1}))},handleSubmit:function(){var e=this;this.$refs.createForm.validate((function(t){if(!t)return!1;var r=function(){var t=H6(U6().mark((function t(){var r,a,n,i,o,s,l,c;return U6().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.selectedFile){t.next=14;break}return t.prev=1,t.next=4,e.handleFileUpload();case 4:r=t.sent,e.createFormData.fileUrl=r||"",e.createFormData.fileName=e.selectedFile.name,t.next=14;break;case 9:return t.prev=9,t.t0=t["catch"](1),console.error("文件上传失败:",t.t0),e.$message.error("文件上传失败,请重试"),t.abrupt("return");case 14:if(n=e.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),"edit"!==e.dialogMode||!e.currentEditRow||0!==e.currentEditRow.returnNum){t.next=26;break}if(i=e.currentEditRow.reportId||e.currentEditRow.id,o=(e.createFormData.processTitle||"").trim(),s=(e.originalProcessTitle||"").trim(),o===s||!e.currentEditRow.flowId){t.next=23;break}return l=Y6(Y6({},et.EDIT_APPROVAL_PROCESS_TITLE),{},{params:{flowId:e.currentEditRow.flowId,title:o},disableSuccessMsg:!0}),t.next=23,e.$request(l).asyncThen((function(){console.log("流程主题更新成功")})).asyncErrorCatch((function(t){throw console.error("更新流程主题失败:",t),e.$message.error("更新流程主题失败,请重试"),t}));case 23:a=Y6(Y6({},et.EDIT_REPORT),{},{params:Y6(Y6({reportId:i,flowId:e.currentEditRow.flowId||""},e.createFormData),{},{processTitle:e.createFormData.processTitle,nodeList:n,createBy:de(),userId:de()}),disableSuccessMsg:!0}),t.next=27;break;case 26:"edit"===e.dialogMode&&e.currentEditRow&&e.currentEditRow.returnNum>0?a=Y6(Y6({},et.RESTART_REPORT_APPROVAL),{},{params:Y6(Y6({reportId:e.currentEditRow.id||e.currentEditRow.reportId},e.createFormData),{},{nodeList:n,createBy:de(),userId:de()}),disableSuccessMsg:!0}):(c=e.approvalWorkflowSteps.map((function(e,t){return{nodeName:e.name,assignees:e.handlers,nodeOrder:t+1}})),a=Y6(Y6({},et.SAVE_REPORT),{},{params:Y6(Y6({},e.createFormData),{},{processTitle:e.createFormData.processTitle,nodeList:c,createBy:de(),userId:de()}),disableSuccessMsg:!0}));case 27:e.$request(a).asyncThen((function(t){e.handleDialogClose(),e.loadData(),e.$message({type:"success",message:"提交成功"})})).asyncErrorCatch((function(t){console.error("提交失败:",t),e.$message({type:"error",message:"提交失败"})}));case 28:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(){return t.apply(this,arguments)}}();r()}))},handleRemoteSearch:function(e,t){var r=this.approvalWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=Y6(Y6({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},loadApprovalUsers:function(e){var t=this;if(e){var r=Y6(Y6({},et.GET_REPORT_APPROVAL_USERS),{},{params:{flowId:e},disableSuccessMsg:!0});this.$request(r).asyncThen((function(e){console.log("获取审批流程信息:",e),t.fillApprovalUsersData(e,t.approvalWorkflowSteps)})).asyncErrorCatch((function(e){console.error("获取审批流程信息失败:",e)}))}},loadLaunchApprovalUsers:function(e){var t=this;if(e){var r=Y6(Y6({},et.GET_REPORT_APPROVAL_USERS),{},{params:{flowId:e},disableSuccessMsg:!0});this.$request(r).asyncThen((function(e){console.log("获取审批流程信息:",e),t.fillApprovalUsersData(e,t.launchWorkflowSteps);var r=null;(Array.isArray(e.data)||e.data&&!Array.isArray(e.data))&&(r=e.data),r&&!Array.isArray(r)&&(r.progressTitle||r.processTitle)&&(t.launchProcessTitle=r.progressTitle||r.processTitle||"")})).asyncErrorCatch((function(e){console.error("获取审批流程信息失败:",e)}))}},fillApprovalUsersData:function(e,t){var r,a,n=[],i=null;Array.isArray(e.data)?i=e.data:Array.isArray(null===(r=e.data)||void 0===r?void 0:r.data)?i=e.data.data:Array.isArray(null===(a=e.data)||void 0===a?void 0:a.result)?i=e.data.result:Array.isArray(e)?i=e:e.data&&!Array.isArray(e.data)&&(i=e.data),Array.isArray(i)?n=i:i&&Array.isArray(i.data)?n=i.data:i&&Array.isArray(i.result)?n=i.result:i&&Array.isArray(i.nodeList)?n=i.nodeList:i&&Array.isArray(i.flowNodes)&&(n=i.flowNodes),i&&!Array.isArray(i)&&(i.progressTitle||i.processTitle)&&t===this.approvalWorkflowSteps&&(this.createFormData.processTitle=i.progressTitle||i.processTitle||""),n&&n.length>0&&n.forEach((function(e){var r=e.nodeName||e.node||"";if(r){var a=t.find((function(e){return e.name===r}));if(a){var n=e.assignees||[];if(Array.isArray(n)&&0!==n.length){var i=n.map((function(e){var t=e.userId||e.id||"";return{userId:t,username:e.username||"",userNumber:e.userNumber||e.account||""}})).filter((function(e){return e.userId}));i.length>0&&(a.handlers=i.map((function(e){return e.userId})).filter(Boolean),a.options=i.map((function(e){return{userId:e.userId,username:e.username||"",userNumber:e.userNumber||""}})).filter((function(e){return e.userId})))}}}}))},handleDownloadTemplate:function(){},handleDownload:function(e){var t=document.createElement("a");t.href=e.filePath,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},handlePreview:function(e){this.$message&&this.$message.info&&this.$message.info("预览:"+(e.title||""))},handleApprove:function(e){var t=this;this.currentApprovalRow=e,this.approvalFormData={result:"",opinion:""},this.approvalDialogVisible=!0,this.$nextTick((function(){t.$refs.approvalForm&&t.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalFormData={result:"",opinion:""},this.currentApprovalRow=null,this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;if(this.approvalFormData.result)if(this.currentApprovalRow){var t={flowId:this.currentApprovalRow.flowId,userId:de(),result:this.approvalFormData.result,opinion:this.approvalFormData.opinion||""};this.approvalSubmitting=!0;var r=Y6(Y6({},et.START_REPORT_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.approvalSubmitting=!1,e.handleApprovalDialogClose(),e.loadData(),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.approvalSubmitting=!1,e.$message({type:"error",message:"审批提交失败,请重试"})}))}else this.$message({type:"error",message:"缺少审批信息"});else this.$message({type:"warning",message:"请选择审核结果(通过或退回)"})},pageSizeChange:function(e){this.pagination.pageSize=e},rowClickEvent:function(e){console.warn(e)},handleRowView:function(e){var t=e.reportId||e.id;t?(this.currentReportDetail={reportId:t,flowId:e.flowId},this.fromTodo=!1,this.showReportDetail=!0,e.returnNum>0?this.canResend=!0:this.canResend=!1):this.$message.error("缺少报告ID,无法查看详情")},closeReportDetail:function(){this.showReportDetail=!1,this.currentReportDetail=null},handleReportDetailRefresh:function(e){this.loadData(),e&&e.keepOpen||this.closeReportDetail()},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""},this.handleSearch()},handleSearch:function(){this.loadData()},handleRefresh:function(){this.pagination.currentPage=1,this.handleSearch()},loadData:function(){var e=this,t={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""};Object.keys(t).forEach((function(r){void 0!==e.searchPanelValue[r]&&null!==e.searchPanelValue[r]&&(t[r]=e.searchPanelValue[r])}));var r=Y6(Y6({},et.GET_REPORT_LIST),{},{params:Y6({pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize,createBy:de()},t),disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.tableData=t.data.result,e.pagination.total=t.data.count})).asyncErrorCatch((function(e){console.error("查询失败:",e)}))}}},Q6=J6,e8=(r("8033"),d(Q6,B6,z6,!1,null,null,null)),t8=e8.exports,r8=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showReportDetail?r("report-detail",{attrs:{detail:e.currentReportDetail},on:{close:e.closeReportDetail,refresh:e.handleReportDetailRefresh}}):[e._m(0),r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"searched-fields"},[r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("标题")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.templateName,callback:function(t){e.$set(e.searchPanelValue,"templateName",t)},expression:"searchPanelValue.templateName"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("状态")]),r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.searchPanelValue.status,callback:function(t){e.$set(e.searchPanelValue,"status",t)},expression:"searchPanelValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("申请人")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.username,callback:function(t){e.$set(e.searchPanelValue,"username",t)},expression:"searchPanelValue.username"}})],1),r("div",{staticClass:"searched-field"},[r("span",{staticClass:"fielded-label"},[e._v("申请时间")]),r("el-date-picker",{attrs:{type:"date",placeholder:"请选择","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.searchPanelValue.createDate,callback:function(t){e.$set(e.searchPanelValue,"createDate",t)},expression:"searchPanelValue.createDate"}})],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange,"select-data-change":e.selectDataChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customHeadSlot,fn:function(n){var i=n.column;return[t.customHeadSlot?r("div",{key:a},[e._v(" "+e._s(i)+" "+e._s(t)+" ")]):e._e()]}}})),e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["status"===t.customSlot?r("div",{key:a+""+o},["APPROVING"===i[t.prop]?r("span",{staticStyle:{background:"#E6A23C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("审核中")]):"COMPLETE"===i[t.prop]?r("span",{staticStyle:{background:"#67C23A",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("已完成")]):"DRAFT"===i[t.prop]?r("span",{staticStyle:{background:"#909399",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("草稿")]):"REJECTED"===i[t.prop]?r("span",{staticStyle:{background:"#F56C6C",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("已拒绝")]):r("span",{staticStyle:{background:"#909399",padding:"4px 8px",color:"white","border-radius":"20px"}},[e._v("-")])]):e._e(),"options"===t.customSlot?r("div",{key:"op"+a+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleRowView(i)}}},[e._v("查看")]),r("span",{staticStyle:{width:"6px",display:"inline-block"}}),i.filePath?r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleDownload(i)}}},[e._v("下载")]):e._e()]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],r("el-dialog",{attrs:{title:"edit"===e.dialogMode?"修改报告":"新增报告",visible:e.createDialogVisible,width:"900px","close-on-click-modal":!1,modal:!1,"custom-class":"create-report-dialog"},on:{"update:visible":function(t){e.createDialogVisible=t},close:e.handleDialogClose}},[r("div",{staticClass:"dialog-body-wrapper"},[r("el-form",{ref:"createForm",attrs:{model:e.createFormData,rules:e.createFormRules,"label-width":"150px"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"标题名称",prop:"title"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.title,callback:function(t){e.$set(e.createFormData,"title",t)},expression:"createFormData.title"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"厂家名称(全称)",prop:"manufacturerName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.manufacturerName,callback:function(t){e.$set(e.createFormData,"manufacturerName",t)},expression:"createFormData.manufacturerName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品型号(全称)",prop:"modelName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.modelName,callback:function(t){e.$set(e.createFormData,"modelName",t)},expression:"createFormData.modelName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"厂家简称",prop:"manufacturerAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.manufacturerAbbreviation,callback:function(t){e.$set(e.createFormData,"manufacturerAbbreviation",t)},expression:"createFormData.manufacturerAbbreviation"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品型号简称",prop:"modelAbbreviation"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.modelAbbreviation,callback:function(t){e.$set(e.createFormData,"modelAbbreviation",t)},expression:"createFormData.modelAbbreviation"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产品编号",prop:"productNumber"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.productNumber,callback:function(t){e.$set(e.createFormData,"productNumber",t)},expression:"createFormData.productNumber"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"领域/模块",prop:"module"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.module,callback:function(t){e.$set(e.createFormData,"module",t)},expression:"createFormData.module"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"板块",prop:"plate"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.plate,callback:function(t){e.$set(e.createFormData,"plate",t)},expression:"createFormData.plate"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"平台",prop:"platform"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.platform,callback:function(t){e.$set(e.createFormData,"platform",t)},expression:"createFormData.platform"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"系列",prop:"series"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.series,callback:function(t){e.$set(e.createFormData,"series",t)},expression:"createFormData.series"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"细分市场",prop:"marketSegment"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.marketSegment,callback:function(t){e.$set(e.createFormData,"marketSegment",t)},expression:"createFormData.marketSegment"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目名称",prop:"projectName"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.projectName,callback:function(t){e.$set(e.createFormData,"projectName",t)},expression:"createFormData.projectName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目编号",prop:"projectNumber"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.createFormData.projectNumber,callback:function(t){e.$set(e.createFormData,"projectNumber",t)},expression:"createFormData.projectNumber"}})],1)],1)],1),r("el-form-item",{attrs:{label:"附件上传",prop:"attachments"}},[r("el-upload",{ref:"upload",attrs:{"auto-upload":!1,"on-change":e.handleFileChange,"on-remove":e.handleFileRemove,"file-list":e.fileList,limit:1,accept:".doc,.pdf,.xls,.xlsx,.ppt,.pptx"}},[r("el-button",{attrs:{type:"primary",icon:"el-icon-upload"}},[e._v(" 选择文件 ")]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("支持扩展名: .doc .pdf .xls .xlsx .ppt .pptx,仅支持上传一个文件")])],1)],1),r("el-form-item",{attrs:{label:"说明",prop:"explanation"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入"},model:{value:e.createFormData.explanation,callback:function(t){e.$set(e.createFormData,"explanation",t)},expression:"createFormData.explanation"}})],1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确定")])],1)]),r("el-dialog",{attrs:{title:"发起",visible:e.launchDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.launchDialogVisible=t},close:e.handleLaunchDialogClose}},[r("div",{staticClass:"dialog-body-wrapper"},[r("div",{staticClass:"approval-workflow"},[r("div",{staticClass:"workflow-title"},[e._v(" 审批环节 ")]),r("div",{staticClass:"workflow-table"},[r("table",{staticClass:"workflow-table-content"},[r("thead",[r("tr",[r("th",{staticClass:"step-name-col"},[e._v(" 环节名称 ")]),r("th",{staticClass:"handler-col"},[e._v(" 处理人 ")])])]),r("tbody",e._l(e.launchWorkflowSteps,(function(t,a){return r("tr",{key:a,staticClass:"workflow-row"},[r("td",{staticClass:"step-name-cell"},[r("span",{staticClass:"step-name"},[e._v(" "+e._s(t.name)+" "),t.required?r("span",{staticClass:"required-mark"},[e._v("*")]):e._e()])]),r("td",{staticClass:"handler-cell"},[r("el-select",{staticClass:"handler-select",attrs:{multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"请选择","remote-method":function(t){return e.handleLaunchRemoteSearch(t,a)},loading:t.loading},on:{change:function(t){return e.handleLaunchHandlerChange(a,t)}},model:{value:t.handlers,callback:function(r){e.$set(t,"handlers",r)},expression:"step.handlers"}},e._l(t.options,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)])})),0)])])])]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleLaunchDialogClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.launching},on:{click:e.handleLaunchSubmit}},[e._v("确定")])],1)]),r("el-dialog",{attrs:{title:"审核",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"审核"}},[r("el-radio-group",{model:{value:e.approvalFormData.result,callback:function(t){e.$set(e.approvalFormData,"result",t)},expression:"approvalFormData.result"}},[r("el-radio",{attrs:{label:"PASS"}},[e._v(" 通过 ")]),r("el-radio",{attrs:{label:"REJECT"}},[e._v(" 退回 ")])],1)],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入备注"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1)],2)},a8=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 竞品报告审批流程 ")])])}];function n8(e){return n8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n8(e)}function i8(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i8=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new C(n||[]);return a(o,"_invoke",{value:x(e,r,s)}),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d={};function p(){}function h(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&r.call(v,i)&&(m=v);var y=f.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==n8(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(n,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=u(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function t(){for(;++a=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;S(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function o8(e,t,r,a,n,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(a,n)}function s8(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){o8(i,a,n,o,s,"next",e)}function s(e){o8(i,a,n,o,s,"throw",e)}o(void 0)}))}}function l8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function c8(e){for(var t=1;t0){var r=t.map((function(e){return e.name})).join("、");this.$message.warning('请为必填环节"'.concat(r,'"选择处理人'))}else if(this.currentLaunchRow){var a=this.currentLaunchRow.reportId||this.currentLaunchRow.id;if(a){var n={reportId:a,proofreadUsers:this.launchWorkflowSteps[0].handlers,reviewUsers:this.launchWorkflowSteps[1].handlers,countersignUsers:[],approveUsers:this.launchWorkflowSteps[2].handlers};this.launching=!0;var i=c8(c8({},et.ADD_REPORT),{},{params:n,disableSuccessMsg:!0});this.$request(i).asyncThen((function(t){e.launching=!1,e.handleLaunchDialogClose(),e.loadData(),e.$message({type:"success",message:"发起成功"})})).asyncErrorCatch((function(t){console.error("发起失败:",t),e.launching=!1,e.$message.error("发起失败,请重试")}))}else this.$message.error("缺少报告ID")}else this.$message.error("缺少报告信息")},handleLaunchRemoteSearch:function(e,t){var r=this.launchWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=c8(c8({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=i}else r.options=[]},handleLaunchHandlerChange:function(e,t){},handleRestart:function(e){var t=this;this.dialogMode="restart",this.currentRestartRow=e,this.currentEditRow=null,this.createFormData={title:e.title||"",manufacturerName:e.manufacturerName||"",modelName:e.modelName||"",manufacturerAbbreviation:e.manufacturerAbbreviation||"",modelAbbreviation:e.modelAbbreviation||"",productNumber:e.productNumber||"",module:e.module||"",plate:e.plate||"",fileUrl:e.fileUrl||e.filePath||"",platform:e.platform||"",series:e.series||"",marketSegment:e.marketSegment||"",projectName:e.projectName||"",projectNumber:e.projectNumber||"",explanation:e.explanation||""},this.fileList=[],this.selectedFile=null,this.createDialogVisible=!0,this.$nextTick((function(){t.$refs.createForm&&t.$refs.createForm.clearValidate()}))},handleDialogClose:function(){this.createDialogVisible=!1,this.dialogMode="create",this.currentRestartRow=null,this.currentEditRow=null,this.createFormData={title:"",manufacturerName:"",modelName:"",manufacturerAbbreviation:"",modelAbbreviation:"",productNumber:"",module:"",plate:"",fileUrl:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",explanation:""},this.fileList=[],this.selectedFile=null,this.$refs.createForm&&this.$refs.createForm.clearValidate()},handleFileChange:function(e,t){var r=[".doc",".pdf",".xls",".xlsx",".ppt",".pptx"],a=e.name.toLowerCase(),n=r.some((function(e){return a.endsWith(e)}));if(!n)return this.$message.error("不支持的文件类型,仅支持 .doc .pdf .xls .xlsx .ppt .pptx"),this.$refs.upload.handleRemove(e),!1;this.selectedFile=e&&e.raw?e.raw:null,this.fileList=t.slice(-1)},handleFileRemove:function(e,t){this.selectedFile=null,this.fileList=[]},handleFileUpload:function(){var e=this;if(this.uploading||!this.selectedFile)return this.selectedFile,Promise.resolve(null);var t=this.selectedFile,r=new FormData;r.append("file",t),r.append("createBy",de());var a=c8(c8({},et.TEST_FILE_UPLOAD),{},{params:r,disableSuccessMsg:!0});this.uploading=!0;var n=this.$loading({lock:!0,text:"正在上传文件,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});return this.$upload(a,null,!1).then((function(t){console.log("文件上传成功:",t),n.close();var r="";if(t.data&&t){var a=t.data;r=a,e.createFormData.fileUrl=r}return r})).catch((function(t){throw console.error("文件上传失败:",t),n.close(),e.$message.error("文件上传失败,请重试"),t})).finally((function(){n&&n.close(),e.uploading=!1}))},handleSubmit:function(){var e=this;this.$refs.createForm.validate((function(t){if(!t)return!1;var r=function(){var t=s8(i8().mark((function t(){var r,a,n;return i8().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.selectedFile){t.next=13;break}return t.prev=1,t.next=4,e.handleFileUpload();case 4:r=t.sent,e.createFormData.fileUrl=r||"",t.next=13;break;case 8:return t.prev=8,t.t0=t["catch"](1),console.error("文件上传失败:",t.t0),e.$message.error("文件上传失败,请重试"),t.abrupt("return");case 13:"edit"===e.dialogMode&&e.currentEditRow?(n=e.currentEditRow.reportId||e.currentEditRow.id,a=c8(c8({},et.EDIT_REPORT),{},{params:c8(c8({reportId:n},e.createFormData),{},{createBy:de(),userId:de()})})):a="restart"===e.dialogMode&&e.currentRestartRow?c8(c8({},et.RESTART_REPORT_APPROVAL),{},{params:c8(c8({reportId:e.currentRestartRow.id||e.currentRestartRow.reportId},e.createFormData),{},{proofreadUsers:e.approvalWorkflowSteps[0].handlers,reviewUsers:e.approvalWorkflowSteps[1].handlers,countersignUsers:[],approveUsers:e.approvalWorkflowSteps[2].handlers,createBy:de(),userId:de()})}):c8(c8({},et.SAVE_REPORT),{},{params:c8(c8({},e.createFormData),{},{createBy:de(),userId:de()})}),e.$request(a).asyncThen((function(t){e.handleDialogClose(),e.loadData(),e.$message({type:"success",message:"提交成功"})})).asyncErrorCatch((function(t){console.error("提交失败:",t),e.$message({type:"error",message:"提交失败"})}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(){return t.apply(this,arguments)}}();r()}))},handleRemoteSearch:function(e,t){var r=this.approvalWorkflowSteps[t];if(e&&""!==e.trim()){r.loading=!0;var a=e.trim(),n=c8(c8({},et.GET_ALLUSERS),{},{params:{name:a},disableSuccessMsg:!0});this.$request(n).asyncThen((function(e){var t=e&&e.data,a=[];Array.isArray(t)?a=t:t&&Array.isArray(t.result)?a=t.result:t&&t.data&&Array.isArray(t.data)&&(a=t.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(r.handlers||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(r.options||[]).filter((function(e){return e.userId&&r.handlers&&r.handlers.includes(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),o.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),r.options=Array.from(l.values()),r.loading=!1})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),r.handlers&&r.handlers.length>0){var t=r.options.filter((function(e){return r.handlers.includes(e.userId)}));r.options=t}else r.options=[];r.loading=!1}))}else if(r.handlers&&r.handlers.length>0){var i=r.options.filter((function(e){return r.handlers.includes(e.userId)})),o=r.handlers.filter((function(e){return!i.some((function(t){return t.userId===e}))}));o.length,r.options=i}else r.options=[]},handleHandlerChange:function(e,t){},handleDownloadTemplate:function(){},handleDownload:function(e){var t=document.createElement("a");t.href=e.filePath,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},handlePreview:function(e){this.$message&&this.$message.info&&this.$message.info("预览:"+(e.title||""))},handleApprove:function(e){var t=this;this.currentApprovalRow=e,this.approvalFormData={result:"",opinion:""},this.approvalDialogVisible=!0,this.$nextTick((function(){t.$refs.approvalForm&&t.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalFormData={result:"",opinion:""},this.currentApprovalRow=null,this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;if(this.approvalFormData.result)if(this.currentApprovalRow){var t={flowId:this.currentApprovalRow.flowId,userId:de(),result:this.approvalFormData.result,opinion:this.approvalFormData.opinion||""};this.approvalSubmitting=!0;var r=c8(c8({},et.START_REPORT_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.approvalSubmitting=!1,e.handleApprovalDialogClose(),e.loadData(),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.approvalSubmitting=!1,e.$message.error("审批提交失败,请重试")}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择审核结果(通过或退回)")},pageSizeChange:function(e){this.pagination.pageSize=e},rowClickEvent:function(e){console.warn(e)},handleRowView:function(e){var t=e.reportId||e.id;t?(this.currentReportDetail={reportId:t,flowId:e.flowId},this.showReportDetail=!0):this.$message.error("缺少报告ID,无法查看详情")},closeReportDetail:function(){this.showReportDetail=!1,this.currentReportDetail=null},handleReportDetailRefresh:function(){this.loadData(),this.closeReportDetail()},currentChange:function(e){this.pagination.currentPage=e,this.loadData()},selectDataChange:function(e){this.$emit("select-data-change",e)},resetSearch:function(){this.searchPanelValue={title:"",manufacturerName:"",modelName:"",productNumber:"",module:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",status:""},this.handleSearch()},handleSearch:function(){this.loadData()},handleRefresh:function(){this.pagination.currentPage=1,this.handleSearch()},loadData:function(){var e=this,t={templateName:"",username:"",createDate:"",status:""};Object.keys(t).forEach((function(r){void 0!==e.searchPanelValue[r]&&null!==e.searchPanelValue[r]&&(t[r]=e.searchPanelValue[r])}));var r=c8(c8({},et.GET_REPORT_LIST_BY_CONDITION),{},{params:c8({pageNumber:this.pagination.currentPage,pageSize:this.pagination.pageSize,userId:de()},t),disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.tableData=t.data.result,e.pagination.total=t.data.count})).asyncErrorCatch((function(e){console.error("查询失败:",e)}))}}},f8=h8,m8=(r("737c"),d(f8,r8,a8,!1,null,null,null)),g8=m8.exports,v8=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showEngineCheck?r("engine-check",{attrs:{detail:e.currentCheckDetail,"engine-type":"玉柴"},on:{close:e.closeEngineCheck}}):[e._m(0),r("div",{staticClass:"page-search-panel"},[r("div",{staticClass:"search-fields"},[r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("流程主题")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.processTopic,callback:function(t){e.$set(e.searchPanelValue,"processTopic",t)},expression:"searchPanelValue.processTopic"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("产品型号")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.modelName,callback:function(t){e.$set(e.searchPanelValue,"modelName",t)},expression:"searchPanelValue.modelName"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("子系统")]),r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.subsystemName,callback:function(t){e.$set(e.searchPanelValue,"subsystemName",t)},expression:"searchPanelValue.subsystemName"}})],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("申请人")]),r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入申请人姓名搜索","remote-method":e.handleApplicantSearch,loading:e.applicantLoading,clearable:""},model:{value:e.searchPanelValue.applicant,callback:function(t){e.$set(e.searchPanelValue,"applicant",t)},expression:"searchPanelValue.applicant"}},e._l(e.applicantOptions,(function(t){return r("el-option",{key:t.userId,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1),r("div",{staticClass:"search-field"},[r("span",{staticClass:"field-label"},[e._v("当前状态")]),r("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchPanelValue.statusDescription,callback:function(t){e.$set(e.searchPanelValue,"statusDescription",t)},expression:"searchPanelValue.statusDescription"}},[r("el-option",{attrs:{label:"审核中",value:"审核中"}}),r("el-option",{attrs:{label:"已通过",value:"已通过"}}),r("el-option",{attrs:{label:"已拒绝",value:"已拒绝"}})],1)],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.resetSearch}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["options"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleViewProgress(i)}}},[e._v(" 查看进度 ")])]):e._e(),"statusDescription"===t.customSlot?r("div",{key:a+""+o},["审核中"===i[t.prop]?r("span",{staticClass:"status-tag status-approving"},[e._v("审核中")]):"已通过"===i[t.prop]?r("span",{staticClass:"status-tag status-approved"},[e._v("已通过")]):"已拒绝"===i[t.prop]?r("span",{staticClass:"status-tag status-withdrawn"},[e._v("已拒绝")]):r("span",{staticClass:"status-tag status-default"},[e._v(e._s(i[t.prop]))])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],r("el-dialog",{attrs:{title:"审批",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,rules:e.approvalFormRules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"审批结果",prop:"operator"}},[r("el-radio-group",{model:{value:e.approvalFormData.operator,callback:function(t){e.$set(e.approvalFormData,"operator",t)},expression:"approvalFormData.operator"}},[r("el-radio",{attrs:{label:"PASS"}},[e._v(" 同意 ")]),r("el-radio",{attrs:{label:"REJECT"}},[e._v(" 拒绝 ")])],1)],1),r("el-form-item",{attrs:{label:"说明",prop:"comment"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入审批说明"},model:{value:e.approvalFormData.comment,callback:function(t){e.$set(e.approvalFormData,"comment",t)},expression:"approvalFormData.comment"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1)],2)},y8=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 玉柴发动机审核 ")])])}],b8=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("transition",{attrs:{name:"approval-progress-fade"}},[e.visible?r("div",{staticClass:"approval-progress-detail"},[r("div",{staticClass:"detail-panel"},[r("div",{staticClass:"detail-header"},[r("div",{staticClass:"header-left"},[r("el-button",{staticClass:"back-button",attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:e.handleBack}}),r("div",{staticClass:"header-info"},[r("div",{staticClass:"title"},[e._v(" "+e._s(e.titleText)+" ")])])],1),e.fromTodo&&!e.hideOperations?r("div",{staticClass:"header-right"},[r("el-button",{attrs:{size:"small"},on:{click:e.handleReturn}},[e._v(" 退回 ")]),e.canResend?r("el-button",{attrs:{size:"small",loading:e.resending},on:{click:e.handleResend}},[e._v(" 直送 ")]):e._e(),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSubmit}},[e._v(" 提交 ")])],1):e._e()]),r("div",{staticClass:"detail-content"},[r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",on:{click:e.toggleBasicInfo}},[e._v(" 基础信息 "),r("i",{staticClass:"collapse-icon",class:e.basicInfoCollapsed?"el-icon-caret-left":"el-icon-caret-bottom"})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.basicInfoCollapsed,expression:"!basicInfoCollapsed"}],staticClass:"info-grid"},[r("div",{staticClass:"info-item-full"},[r("span",{staticClass:"label"},[e._v("流程主题")]),e.isEditingProcessTitle?r("div",{staticClass:"process-title-input-wrapper"},[r("el-input",{staticClass:"process-title-input",attrs:{placeholder:"请输入流程主题",maxlength:"100","show-word-limit":""},model:{value:e.editingProcessTitle,callback:function(t){e.editingProcessTitle=t},expression:"editingProcessTitle"}},[r("template",{slot:"suffix"},[r("i",{staticClass:"el-icon-check process-title-icon",on:{click:e.handleSaveProcessTitle}}),r("i",{staticClass:"el-icon-close process-title-icon",on:{click:e.handleCancelProcessTitle}})])],2)],1):r("div",{staticClass:"value process-title-value-wrapper"},[e._v(" "+e._s(e.showTopDetail.processTitle||"--")+" "),r("i",{staticClass:"el-icon-edit process-title-edit-icon",on:{click:e.handleEditProcessTitle}})])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建人")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.createBy||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建时间")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.creationDate||e.showTopDetail.createTime||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前环节")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.currentNode||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前处理人")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.processor||"--"))])])])])]),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",on:{click:e.toggleDetailInfo}},[e._v(" 详细信息 "),r("i",{staticClass:"collapse-icon",class:e.detailInfoCollapsed?"el-icon-caret-left":"el-icon-caret-bottom"})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.detailInfoCollapsed,expression:"!detailInfoCollapsed"}],staticClass:"info-grid"},[r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("产品型号")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.modelName||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("状态代号")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.productNumber||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("板块")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.plate||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("平台")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.platform||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("系列")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.series||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("细分市场")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.marketSegment||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("项目名称")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.projectName||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("项目编号")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.projectNumber||"--"))])])]),"竞品"===e.engineType?[r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("厂家名称(全称)")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.manufacturerName||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("厂家简称")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.manufacturerAbbreviation||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("品牌")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.brand||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("生产日期")]),r("span",{staticClass:"value"},[e._v(e._s(e.modelDetail.productionDate||"--"))])])])]:e._e()],2)]),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",on:{click:e.toggleApprovalContent}},[e._v(" 审批内容 "),r("i",{staticClass:"collapse-icon",class:e.approvalContentCollapsed?"el-icon-caret-left":"el-icon-caret-bottom"})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.approvalContentCollapsed,expression:"!approvalContentCollapsed"}]},[r("el-table",{staticClass:"change-table",attrs:{data:e.changeTable||[],border:"","max-height":500}},[r("el-table-column",{attrs:{label:"序号",type:"index",width:"60"}}),r("el-table-column",{attrs:{prop:"subsystemName",label:"子系统","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterType",label:"类型","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"partsName",label:"零部件名称","min-width":"140","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterName",label:"参数名称","min-width":"140","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterValue",label:"参数值","min-width":"160"}}),r("el-table-column",{attrs:{prop:"unit",label:"单位","min-width":"80","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"changeComment",label:"修改描述","min-width":"160"}})],1),r("div",{staticClass:"pagination-wrapper"},[r("el-pagination",{attrs:{"current-page":e.changeTablePageNumber,"page-size":e.changeTablePageSize,total:e.changeTableTotal,layout:"total, prev, pager, next, jumper, sizes","page-sizes":[10,20,50,100,9999],"popper-class":"pagination-select-dropdown"},on:{"current-change":e.handlePageChange,"size-change":e.handlePageSizeChange}})],1),e.progressDetail.description?r("div",{staticClass:"description-block"},[r("span",{staticClass:"label"},[e._v("说明:")]),r("span",{staticClass:"value"},[e._v(e._s(e.detailOption))])]):e._e()],1)]),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title",on:{click:e.toggleApprovalFlow}},[e._v(" 审批流程 "),r("i",{staticClass:"collapse-icon",class:e.approvalFlowCollapsed?"el-icon-caret-left":"el-icon-caret-bottom"})]),e.timelineNodes&&e.timelineNodes.length>0?r("div",{directives:[{name:"show",rawName:"v-show",value:!e.approvalFlowCollapsed,expression:"!approvalFlowCollapsed"}],staticClass:"approval-timeline"},[r("el-timeline",e._l(e.timelineNodes,(function(t,a){return r("el-timeline-item",{key:a,attrs:{color:e.getTimelineColor(t.result||t.status,a,e.timelineNodes.length)}},[r("div",{staticClass:"timeline-item-content"},[r("div",{staticClass:"node-title"},[e._v(" "+e._s(t.title)+" ")]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"node-info"},[r("div",{staticClass:"node-user"},[e._v(" "+e._s(t.userName||"--")+" "),r("span",{staticClass:"node-time"},[e._v(" "+e._s(t.operateTime)+" ")])])]),r("div",{staticClass:"node-status",class:e.getStatusClass(t.result||t.status)},[e._v(" "+e._s(e.setStatusText(t.result||t.status))+" ")]),t.opinion?r("div",{staticClass:"node-opinion"},[e._v(" 审批意见:"+e._s(t.opinion)+" ")]):e._e()])])])})),1)],1):r("div",{directives:[{name:"show",rawName:"v-show",value:!e.approvalFlowCollapsed,expression:"!approvalFlowCollapsed"}],staticClass:"empty-progress"},[r("span",{staticClass:"empty-text"},[e._v("暂无审批流程数据")])])])])])]):e._e()]),r("el-dialog",{attrs:{title:e.approvalDialogTitle,visible:e.approvalDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"reject"===e.approvalActionType?"退回意见:":"提交意见:",prop:"comment"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"reject"===e.approvalActionType?"请输入退回意见":"请输入提交意见"},model:{value:e.approvalFormData.comment,callback:function(t){e.$set(e.approvalFormData,"comment",t)},expression:"approvalFormData.comment"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择退回节点",visible:e.returnNodeDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.returnNodeDialogVisible=t},close:e.handleReturnNodeDialogClose}},[r("div",{staticClass:"return-node-dialog-content"},[r("el-radio-group",{on:{change:e.handleReturnNodeChange},model:{value:e.selectedReturnNode,callback:function(t){e.selectedReturnNode=t},expression:"selectedReturnNode"}},e._l(e.returnableNodes,(function(e){return r("el-radio",{key:e,attrs:{label:e}})})),1),"编制"===e.selectedReturnNode?r("div",{staticClass:"return-opinion-section"},[r("div",{staticClass:"opinion-label"},[e._v(" 退回意见: ")]),r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入退回意见"},model:{value:e.returnOpinion,callback:function(t){e.returnOpinion=t},expression:"returnOpinion"}})],1):e._e()],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleReturnNodeDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.returnSubmitting,disabled:!e.selectedReturnNode},on:{click:e.handleReturnSubmit}},[e._v(" 确定 ")])],1)])],1)},_8=[];function x8(e){return x8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x8(e)}function w8(e){return T8(e)||C8(e)||S8(e)||D8()}function D8(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S8(e,t){if(e){if("string"===typeof e)return I8(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I8(e,t):void 0}}function C8(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function T8(e){if(Array.isArray(e))return I8(e)}function I8(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0)return{progressTitle:this.progressDetailData.progressTitle||"",contentName:this.progressDetailData.contentName||"",templateVersion:this.progressDetailData.templateVersion||"",explanation:this.progressDetailData.explanation||"",description:this.progressDetailData.explanation||this.progressDetailData.description||""};var e={approvalNumber:"",approvalId:"",currentNode:"",currentProcessor:"",processTitle:"",modelName:"",id:"",createBy:"",creationDate:"",applicant:"",department:"",submitTime:"",description:"",changeTable:[],progress:[]};return Object.assign(e,this.detail||{})},currentNode:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.node||"--";var t=this.flowNodes[this.flowNodes.length-1];return t&&t.node||"--"}return"--"},currentProcessor:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.undoUserName||e.todoUserName||"--"}return"--"},initiateNode:function(){return this.detail&&this.detail.createBy?{userName:this.detail.createBy,createTime:this.detail.createdTime||this.detail.createTime,status:"INITIATE",result:"INITIATE"}:null},timelineNodes:function(){var e=[];if(this.flowNodes&&this.flowNodes.length>0?this.flowNodes.forEach((function(t){e.push({title:t.node||"审批节点",userName:t.todoUserName||t.undoUserName||t.userName||"--",operateTime:t.approvalTime||t.operateTime||t.handleTime||t.createTime||"",result:t.result||"",status:t.status||t.result||"",opinion:t.opinion||(t.opinions&&Array.isArray(t.opinions)&&t.opinions.length>0?t.opinions[0]:null)||null})})):this.progress&&this.progress.length>0&&this.progress.forEach((function(t){t.steps&&t.steps.length>0&&t.steps.forEach((function(r){e.push({title:t.title||"审批节点",userName:r.userName,operateTime:r.approvalTime||r.handleTime||r.createTime,result:r.result||r.status,status:r.result||r.status,opinion:r.opinion||r.remark||r.comment||null})}))})),e.length>0){var t=e[0],r=t.result||t.status||"";"STAY"!==r&&"待审批"!==r||(t.result="APPROVING",t.status="APPROVING")}return e},approvalFormRules:function(){return{comment:[{required:!0,message:"请输入意见",trigger:"blur"}]}}},mounted:function(){this.getApprovalDetail(),this.canResendApproval()},methods:{toggleBasicInfo:function(){this.basicInfoCollapsed=!this.basicInfoCollapsed},toggleDetailInfo:function(){this.detailInfoCollapsed=!this.detailInfoCollapsed},toggleApprovalContent:function(){this.approvalContentCollapsed=!this.approvalContentCollapsed},toggleApprovalFlow:function(){this.approvalFlowCollapsed=!this.approvalFlowCollapsed},canResendApproval:function(){var e=this,t=A8(A8({},et.CHECK_DATA_CAN_RETURN),{},{params:{flowId:this.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t),e.canResend=t.data||!1})).asyncErrorCatch((function(t){console.error("获取是否可以直送失败:",t),e.canResend=!1}))},getApprovalChange:function(){var e=this,t=A8(A8({},et.CHANGE_ENGINE_DATA),{},{params:{modelID:this.detail.modelId,userID:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t),e.changeTable=t.data,e.changeTableTotal=t.data.length})).asyncErrorCatch((function(e){console.error("获取审批变更失败:",e)}))},getApprovalDetail:function(){var e=this,t=A8(A8({},et.GET_ENGINE_CHECK_DETAIL),{},{params:{approvalId:this.detail.id,userId:de()},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r;console.log(t);var a=[];t.data?(e.showTopDetail={processTitle:t.data.processTitle,createBy:t.data.createBy,creationDate:t.data.createTime,currentNode:"已拒绝"===t.data.approvalStatus?"编制":t.data.currentNode||"",processor:"已拒绝"===t.data.approvalStatus?t.data.createBy:t.data.processor||""},t.data.model?e.modelDetail={modelName:t.data.model.modelName||"",productNumber:t.data.model.productNumber||"",plate:t.data.model.plate||"",platform:t.data.model.platform||"",series:t.data.model.series||"",marketSegment:t.data.model.marketSegment||"",projectName:t.data.model.projectName||"",projectNumber:t.data.model.projectNumber||"",manufacturerName:t.data.model.manufacturerName||"",manufacturerAbbreviation:t.data.model.manufacturerAbbreviation||"",brand:t.data.model.brand||"",productionDate:t.data.model.productionDate||""}:e.modelDetail={modelName:"",productNumber:"",plate:"",platform:"",series:"",marketSegment:"",projectName:"",projectNumber:"",manufacturerName:"",manufacturerAbbreviation:"",brand:"",productionDate:""},t.data.list&&Array.isArray(t.data.list)?(a=t.data.list,e.changeTableTotal=t.data.total||t.data.totalCount||t.data.count||a.length):t.data.activitiDataDTOS?(a=Array.isArray(t.data.activitiDataDTOS)?t.data.activitiDataDTOS:[],e.changeTableTotal=t.data.total||t.data.totalCount||t.data.count||a.length):Array.isArray(t.data)?(a=t.data,e.changeTableTotal=a.length):(a=[],e.changeTableTotal=0)):(a=[],e.changeTableTotal=0),e.changeTableAll=a,e.updatePagedData();var n=(null===(r=t.data)||void 0===r?void 0:r.flowNodes)||[],i=n,o=t.data||t;e.progressDetailData={explanation:o.explanation||"",flowStatus:o.flowStatus||"",progressTitle:o.progressTitle||o.processTitle||"",templateVersion:o.templateVersion||"",contentName:o.contentName||""},e.detailOption=o.explanation||o.description||"",o.flowNodes&&Array.isArray(o.flowNodes)?e.flowNodes=o.flowNodes:i&&i.length>0?e.flowNodes=i.map((function(e){return{node:e.node||"",result:e.operate||e.result||"",status:e.operate||e.result||"",todoUserName:e.approvedPerson||e.unapprovedPerson||"",undoUserName:e.unapprovedPerson||"",approvalTime:e.operateTime||e.handleTime||e.createTime||"",opinions:e.common||e.comment||e.opinion?[e.common||e.comment||e.opinion]:[],opinion:e.common||e.comment||e.opinion||null}})):e.flowNodes=[],e.activitiRecordDTOS=i}))},updatePagedData:function(){if(this.changeTableAll&&0!==this.changeTableAll.length){var e=(this.changeTablePageNumber-1)*this.changeTablePageSize,t=e+this.changeTablePageSize;this.changeTable=this.changeTableAll.slice(e,t)}else this.changeTable=[]},setStatusText:function(e){var t={PASS:"通过",REJECT:"拒绝",REFUSE:"驳回",APPROVE:"批准",APPROVING:"审批中",PENDING:"待处理",WAITING:"待处理",STAY:"待审批",INITIATE:"发起审批",RETURN:"退回",MSG:"通过","待审批":"待审批","审批中":"审批中","发起审批":"发起审批"};return void 0!==t[e]?t[e]:e||"待处理"},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},getTimelineColor:function(e,t,r){return"PASS"===e||"APPROVE"===e||"MSG"===e?"#67C23A":"REJECT"===e||"REFUSE"===e?"#F56C6C":"APPROVING"===e||"PENDING"===e||"WAITING"===e||"审批中"===e?"#E6A23C":"STAY"===e||"待审批"===e?"#909399":"#409EFF"},getStatusClass:function(e){var t={PASS:"status-pass",APPROVE:"status-approve",MSG:"status-pass",REJECT:"status-reject",REFUSE:"status-reject",APPROVING:"status-approving","审批中":"status-approving",PENDING:"status-pending",WAITING:"status-pending",STAY:"status-default","待审批":"status-default",INITIATE:"status-initiate","发起审批":"status-initiate",RETURN:"status-return"};return t[e]||"status-default"},getApprovalSpet:function(){var e=this,t=A8(A8({},et.GET_PPROVAL_ALL),{},{params:{flowId:this.detail.flowId,templateId:this.detail.templateId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r,a;console.log("审批流程数据:",t),e.detailOption=(null===(r=t.data)||void 0===r?void 0:r.explanation)||(null===(a=t.data)||void 0===a?void 0:a.description)||"";var n=[],i=t.data||t;if(i.proofreadNodes&&Array.isArray(i.proofreadNodes)&&i.proofreadNodes.length>0){var o=i.proofreadNodes;n.push({title:"校对",steps:e.deduplicateSteps(Array.isArray(o)?o:[o])})}if(i.reviewNodes&&Array.isArray(i.reviewNodes)&&i.reviewNodes.length>0){var s=i.reviewNodes;n.push({title:"审核",steps:e.deduplicateSteps(Array.isArray(s)?s:[s])})}if(i.countersignNodes&&Array.isArray(i.countersignNodes)&&i.countersignNodes.length>0){var l=i.countersignNodes;n.push({title:"会签",steps:e.deduplicateSteps(Array.isArray(l)?l:[l])})}if(i.approveNodes&&Array.isArray(i.approveNodes)&&i.approveNodes.length>0){var c=i.approveNodes;n.push({title:"批准",steps:e.deduplicateSteps(Array.isArray(c)?c:[c])})}0===n.length&&i&&(Array.isArray(i)?n=i.map((function(t){return{title:t.title||t.nodeType||t.name||"审批节点",steps:e.deduplicateSteps(Array.isArray(t.steps)?t.steps:Array.isArray(t.nodes)?t.nodes:[])}})):i.nodes&&Array.isArray(i.nodes)?n=i.nodes.map((function(t){return{title:t.title||t.nodeType||t.name||"审批节点",steps:e.deduplicateSteps(Array.isArray(t.steps)?t.steps:Array.isArray(t.nodes)?t.nodes:[])}})):i.processNodes&&Array.isArray(i.processNodes)&&(n=i.processNodes.map((function(t){return{title:t.title||t.nodeType||t.name||"审批节点",steps:e.deduplicateSteps(Array.isArray(t.steps)?t.steps:Array.isArray(t.nodes)?t.nodes:[])}})))),e.progress=n,console.log("处理后的流程数据:",e.progress)}))},handleBack:function(){this.$emit("close")},handleReturn:function(){var e=this;if(this.detail&&this.detail.flowId){var t=A8(A8({},et.GET_CAN_RETURN_DATA_NODE),{},{params:{flowId:this.detail.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t);var r=Array.isArray(t.data)?t.data:[];e.returnableNodes=["编制"].concat(w8(r))})).asyncErrorCatch((function(t){console.error("获取退回节点失败:",t),e.returnableNodes=["编制"]})),this.selectedReturnNode="",this.returnOpinion="拒绝",this.returnNodeDialogVisible=!0}else this.$message.error("缺少审批信息")},handleReturnNodeDialogClose:function(){this.returnNodeDialogVisible=!1,this.selectedReturnNode="",this.returnOpinion="拒绝"},handleReturnNodeChange:function(){"编制"!==this.selectedReturnNode?this.returnOpinion="":this.returnOpinion||(this.returnOpinion="拒绝")},handleReturnSubmit:function(){var e=this;if(this.selectedReturnNode)if(this.detail&&this.detail.flowId)if(this.returnSubmitting=!0,"编制"===this.selectedReturnNode){var t={approvalId:this.detail.id,operator:"REJECT",comment:this.returnOpinion||"",userId:de()},r=A8(A8({},et.HANDLE_ENGINE_CHECK),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.getApprovalDetail(),e.$message({message:"拒绝成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1})).asyncErrorCatch((function(t){console.error("拒绝失败:",t),e.$message({message:t.message||"拒绝失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else{var a=this.detail.createdById||"";if(!a)return this.$message.error("无法获取流程发起人信息"),void(this.returnSubmitting=!1);var n=de(),i={flowId:this.detail.flowId,nodeName:this.selectedReturnNode,createUserId:a,processUserId:n},o=A8(A8({},et.CAN_RETURN_DATA_NODE),{},{params:i,disableSuccessMsg:!0});this.$request(o).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.getApprovalDetail(),e.$message({message:"退回成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1})).asyncErrorCatch((function(t){console.error("退回失败:",t),e.$message({message:t.message||"退回失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择要退回的节点")},handleResend:function(){var e=this;this.detail&&this.detail.id?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0;var t=A8(A8({},et.RESEND_DATA_APPROVAL),{},{params:{approvalId:e.detail.id,userId:de()},disableSuccessMsg:!0});e.$request(t).asyncThen((function(t){e.getApprovalDetail(),e.$message({message:"直送成功",type:"success"}),e.$emit("refresh"),e.resending=!1})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1})).finally((function(){e.resending=!1}))})).catch((function(){})):this.$message.error("缺少审批ID,无法执行直送操作")},handleSubmit:function(){var e=this;this.approvalActionType="submit",this.approvalDialogTitle="提交",this.approvalFormData={operator:"同意",comment:""},this.approvalFormData.comment="同意",this.approvalDialogVisible=!0,this.$nextTick((function(){e.$refs.approvalForm&&e.$refs.approvalForm.clearValidate()}))},handleApprovalSubmit:function(){var e=this;this.$refs.approvalForm.validate((function(t){if(e.detail&&e.detail.id){var r=e.detail.id;if(r){var a="reject"===e.approvalActionType?"REJECT":"PASS",n={approvalId:r,operator:a,comment:e.approvalFormData.comment,userId:de()},i=A8(A8({},et.HANDLE_ENGINE_CHECK),{},{params:n,disableSuccessMsg:!0});e.approvalSubmitting=!0,e.$request(i).asyncThen((function(t){console.log("审批提交成功"),e.handleApprovalDialogClose(),e.getApprovalDetail(),e.$emit("refresh"),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message.error(t.message||"审批提交失败,请重试"),e.approvalSubmitting=!1})).finally((function(){e.approvalSubmitting=!1}))}else e.$message.error("缺少审批ID,无法提交审批")}else e.$message.error("缺少审批数据")}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalActionType="",this.approvalDialogTitle="审批",this.approvalFormData={operator:"同意",comment:""},this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handlePageChange:function(e){this.changeTablePageNumber=e,this.updatePagedData()},handlePageSizeChange:function(e){this.changeTablePageSize=e,this.changeTablePageNumber=1,this.updatePagedData()},changeTypeClass:function(e){return"create"===e?"change-create":"delete"===e?"change-delete":"update"===e?"change-update":"change-default"},deduplicateSteps:function(e){var t=this;if(!Array.isArray(e)||0===e.length)return[];var r=new Map,a=[];return e.forEach((function(e){var t=null;if(e.id)t="id_".concat(e.id);else{var n=e.userName||e.operator||e.username||e.handlerName||e.handler||"",i=e.approvalTime||e.handleTime||e.createTime||"",o=e.result||e.status||"";t="combo_".concat(n,"_").concat(i,"_").concat(o)}if(t)if(r.has(t)){var s=r.get(t),l=a[s],c=!!(e.approvalTime||e.handleTime||e.createTime),u=!!(l.approvalTime||l.handleTime||l.createTime);c&&!u&&(a[s]=e)}else r.set(t,a.length),a.push(e)})),a.map((function(e){var r=A8({},e);return r.approvalTime&&(r.approvalTime=t.formatTime(r.approvalTime)),r.handleTime&&(r.handleTime=t.formatTime(r.handleTime)),r.createTime&&(r.createTime=t.formatTime(r.createTime)),r}))},handleEditProcessTitle:function(){this.isEditingProcessTitle=!0,this.editingProcessTitle=this.showTopDetail.processTitle||""},handleCancelProcessTitle:function(){this.isEditingProcessTitle=!1,this.editingProcessTitle=""},handleSaveProcessTitle:function(){var e,t=this,r=this.flowId||(null===(e=this.detail)||void 0===e?void 0:e.flowId);if(r){var a=(this.editingProcessTitle||"").trim();a?this.$confirm("确认修改主题为".concat(a,"吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e=A8(A8({},et.EDIT_DATA_PROCESS_TITLE),{},{params:{flowId:r,title:a},disableSuccessMsg:!0});t.$request(e).asyncThen((function(e){t.showTopDetail.processTitle=a,t.isEditingProcessTitle=!1,t.editingProcessTitle="",t.$message({message:"修改成功",type:"success"})})).asyncErrorCatch((function(e){console.error("修改流程主题失败:",e),t.$message({message:e.message||"修改失败,请重试",type:"error"})}))})).catch((function(){})):this.$message.warning("流程主题不能为空")}else this.$message.error("缺少流程ID,无法保存")}}},E8=N8,L8=(r("ef8b"),r("8430"),d(E8,b8,_8,!1,null,"3047f45e",null)),R8=L8.exports;function F8(e){return F8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F8(e)}function j8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function V8(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function d9(e){return m9(e)||f9(e)||h9(e)||p9()}function p9(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h9(e,t){if(e){if("string"===typeof e)return g9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g9(e,t):void 0}}function f9(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function m9(e){if(Array.isArray(e))return g9(e)}function g9(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:[],i=u9(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(d9(n),[o.name]);if(o.id===r)return s;if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null},r=t(this.departmentList,e);return r?r.join("-"):""},handleDelete:function(e,t){var r=this;this.$confirm("确定要删除该记录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=y9(y9({},et.DELETE_MANAGER_DATA),{},{params:{rowId:e.rowId},disableSuccessMsg:!0});r.$request(t).asyncThen((function(e){r.loadManagerData()})).asyncErrorCatch((function(e){console.error("删除失败:",e),r.$message({type:"error",message:"删除失败"})}))})).catch((function(){}))},handleSizeChange:function(e){this.pagination.pageSize=e,this.pagination.currentPage=1,this.handleSearch()},handleCurrentChange:function(e){this.pagination.currentPage=e,this.handleSearch()},handleRefresh:function(){this.pagination.currentPage=1,this.loadManagerData()},formatDepartmentDisplay:function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t},handleDownloadTemplate:function(){var e=this,t=et.DOWNLOAD_DEMO_MANAGER_DATA||{},r=t.url,a=t.method,n=void 0===a?"get":a,i=t.headers,o=void 0===i?{}:i,s={url:r,method:n,responseType:"blob",headers:o,disableSuccessMsg:!0};s.url?this.$axios(s).then((function(t){var r=t.data;if(r){var a=t.headers&&(t.headers["content-type"]||t.headers["Content-Type"]);if(a&&a.includes("application/json"))try{var n=new FileReader;n.onload=function(){try{var t=JSON.parse(n.result);e.$message({type:"error",message:t.message||"下载失败"})}catch(r){e.$message({type:"error",message:"下载失败"})}},n.readAsText(r)}catch(d){console.error("解析下载失败响应异常:",d),e.$message({type:"error",message:"下载失败"})}else{var i=t.headers&&(t.headers["content-disposition"]||t.headers["Content-Disposition"]),o="导入模板.xlsx";if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(d){o=l}}var c=window.URL.createObjectURL(r),u=document.createElement("a");u.href=c,u.download=o,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c),e.$message({type:"success",message:"下载成功"})}}else e.$message({type:"error",message:"下载失败,文件内容为空"})})).catch((function(t){console.error("下载模板失败:",t),e.$message({type:"error",message:"下载模板失败,请稍后重试"})})):this.$message({type:"error",message:"未配置下载地址"})},handleExport:function(){var e=this,t=et.DOWNLOAD_MANAGER_DATA||{},r=t.url,a=t.method,n=void 0===a?"get":a,i=t.headers,o=void 0===i?{}:i,s={url:r,method:n,responseType:"blob",headers:o,disableSuccessMsg:!0};s.url?this.$axios(s).then((function(t){var r=t.data;if(r){var a=t.headers&&(t.headers["content-type"]||t.headers["Content-Type"]);if(a&&a.includes("application/json"))try{var n=new FileReader;n.onload=function(){try{var t=JSON.parse(n.result);e.$message({type:"error",message:t.message||"导出失败"})}catch(r){e.$message({type:"error",message:"导出失败"})}},n.readAsText(r)}catch(d){console.error("解析导出失败响应异常:",d),e.$message({type:"error",message:"导出失败"})}else{var i=t.headers&&(t.headers["content-disposition"]||t.headers["Content-Disposition"]),o="责任人管理数据.xlsx";if(i){var s=/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i.exec(i),l=s?s[1]||s[2]:"";if(l)try{o=decodeURIComponent(l)}catch(d){o=l}}var c=window.URL.createObjectURL(r),u=document.createElement("a");u.href=c,u.download=o,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c),e.$message({type:"success",message:"导出成功"})}}else e.$message({type:"error",message:"导出失败,文件内容为空"})})).catch((function(t){console.error("导出失败:",t),e.$message({type:"error",message:"导出失败,请稍后重试"})})):this.$message({type:"error",message:"未配置下载地址"})},handleImport:function(){this.importDialogVisible=!0,this.importFileList=[],this.selectedImportFile=null},handleImportDialogClose:function(){this.importDialogVisible=!1,this.importFileList=[],this.selectedImportFile=null,this.importing=!1,this.$refs.importUpload&&this.$refs.importUpload.clearFiles()},handleImportFileChange:function(e,t){var r=[".xls",".xlsx"],a=e.name||"",n=a.substring(a.lastIndexOf(".")).toLowerCase();if(!r.includes(n))return this.$message({type:"error",message:"文件类型不支持,仅支持 ".concat(r.join("、")," 格式的文件")}),this.selectedImportFile=null,this.importFileList=[],void(this.$refs.importUpload&&this.$refs.importUpload.clearFiles());this.selectedImportFile=e.raw||e,this.importFileList=t.slice(-1)},handleImportFileRemove:function(e,t){this.selectedImportFile=null,this.importFileList=[]},handleImportSubmit:function(){var e=this;if(this.selectedImportFile){var t=new FormData;t.append("file",this.selectedImportFile),t.append("userId",de());var r=y9(y9({},et.UPLOAD_MANAGER_DATA),{},{params:t,disableSuccessMsg:!0});this.importing=!0;var a=this.$loading({lock:!0,text:"正在导入数据,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.$upload(r,null,!1).then((function(t){console.log("导入成功:",t),a.close(),e.$message({type:"success",message:"导入成功"}),e.handleImportDialogClose(),e.loadManagerData()})).catch((function(t){var r="";if(t&&t.data&&t.data.errors&&Array.isArray(t.data.errors)){var n,i=u9(t.data.errors);try{for(i.s();!(n=i.n()).done;){var o=n.value;r+=o+"\n"}}catch(t){i.e(t)}finally{i.f()}}else r=t.message||"导入失败,请稍后重试";console.error("导入失败:",t),a.close(),e.$message({type:"error",message:r||"导入失败,请稍后重试"})})).finally((function(){a&&a.close(),e.importing=!1}))}else this.$message({type:"warning",message:"请先选择要导入的文件"})}}},D9=w9,S9=(r("6451"),d(D9,s9,l9,!1,null,"7ef84f50",null)),C9=S9.exports,T9=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"filler-data-page custom-page"},[r("div",{staticClass:"page-content"},[r("div",{staticClass:"header-section"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v(" 新增 ")])],1),r("div",{staticClass:"table-section"},[r("div",{staticClass:"table-toolbar"},[r("el-button",{attrs:{icon:"el-icon-refresh",size:"small"},on:{click:e.handleRefresh}},[e._v(" 刷新 ")])],1),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[r("el-table-column",{attrs:{type:"index",label:"序号",width:"90",align:"center"}}),r("el-table-column",{attrs:{prop:"department",label:"责任部门",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.formatDepartmentDisplay(t.row.department))+" ")]}}])}),r("el-table-column",{attrs:{prop:"subsystem",label:"子系统",align:"center"}}),r("el-table-column",{attrs:{prop:"partsName",label:"零部件名称",align:"center"}}),r("el-table-column",{attrs:{prop:"username",label:"填写人",width:"250",align:"center"}}),r("el-table-column",{attrs:{label:"操作",width:"200",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(r){return r.stopPropagation(),e.handleEdit(t.row)}}},[e._v(" 修改 ")]),r("span",{staticClass:"link-separator"}),r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(r){return r.stopPropagation(),e.handleDelete(t.row,t.$index)}}},[e._v(" 删除 ")])]}}])})],1),r("div",{staticClass:"pagination-section"},[r("el-pagination",{attrs:{"current-page":e.pagination.currentPage,"page-sizes":[10,20,50,100],"page-size":e.pagination.pageSize,total:e.pagination.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)]),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,modal:!1},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleDialogClose}},[r("el-form",{ref:"form",attrs:{model:e.formData,rules:e.formRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"责任部门:",prop:"department"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择责任部门",readonly:""},nativeOn:{click:function(t){return e.handleOpenDepartmentDialog.apply(null,arguments)}},model:{value:e.formData.selectDeptName,callback:function(t){e.$set(e.formData,"selectDeptName",t)},expression:"formData.selectDeptName"}},[r("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:function(t){return t.stopPropagation(),e.handleOpenDepartmentDialog.apply(null,arguments)}},slot:"suffix"})])],1),r("el-form-item",{attrs:{label:"子系统:",prop:"subsystem"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择子系统",clearable:""},on:{change:e.handleSubsystemChange},model:{value:e.formData.subsystem,callback:function(t){e.$set(e.formData,"subsystem",t)},expression:"formData.subsystem"}},e._l(e.subsystemList,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"零部件名称:",prop:"partsName"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择零部件名称",clearable:"",disabled:!e.formData.subsystem},model:{value:e.formData.partsName,callback:function(t){e.$set(e.formData,"partsName",t)},expression:"formData.partsName"}},e._l(e.partsNameList,(function(e){return r("el-option",{key:e,attrs:{label:"/"===e?"/":e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"填写人:",prop:"filler"}},[r("el-select",{staticClass:"handler-select",staticStyle:{width:"100%"},attrs:{placeholder:"请输入填写人姓名进行搜索",clearable:"",multiple:"",filterable:"",remote:"","reserve-keyword":"","remote-method":e.handleRemoteSearch,loading:e.userLoading},on:{change:e.handleFillerChange},model:{value:e.formData.filler,callback:function(t){e.$set(e.formData,"filler",t)},expression:"formData.filler"}},e._l(e.userOptions,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",{staticClass:"username-text"},[e._v(e._s(t.username))]),r("span",{staticClass:"user-id-text"},[e._v(e._s(t.userNumber))])])})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择责任部门",visible:e.departmentDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.departmentDialogVisible=t},close:e.handleDepartmentDialogClose}},[r("el-input",{staticClass:"department-tree-search",attrs:{size:"small",placeholder:"请输入部门名称进行搜索",clearable:""},model:{value:e.departmentTreeFilterText,callback:function(t){e.departmentTreeFilterText=t},expression:"departmentTreeFilterText"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),r("el-tree",{ref:"departmentTree",staticClass:"department-tree",attrs:{data:e.departmentList,props:{children:"children",label:"name"},"node-key":"id","filter-node-method":e.filterDepartmentNode,"highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleDepartmentNodeClick}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleDepartmentDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",disabled:!e.selectedDepartmentId},on:{click:e.handleDepartmentDialogConfirm}},[e._v(" 确定 ")])],1)],1)],1)},I9=[];function O9(e){return O9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O9(e)}function A9(e){return k9(e)||P9(e)||E9(e)||M9()}function M9(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P9(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k9(e){if(Array.isArray(e))return L9(e)}function N9(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=E9(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function E9(e,t){if(e){if("string"===typeof e)return L9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L9(e,t):void 0}}function L9(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&(r.children=t.children.map((function(t){return e(t)}))),r};return e.map((function(e){return t(e)}))},handleAdd:function(){var e=this;this.dialogMode="add",this.currentEditIndex=-1,this.formData={department:"",subsystem:"",partsName:"",filler:[],fillerName:"",selectDeptId:"",selectDeptName:"",userId:"",rowId:"",departmentId:""},this.partsNameList=[],this.fillerPersons=[],this.userOptions=[],this.userLoading=!1,this.dialogVisible=!0,this.$nextTick((function(){e.$refs.form&&e.$refs.form.clearValidate()}))},handleEdit:function(e){var t=this;this.dialogMode="edit";var r=[];e.userId&&(r=Array.isArray(e.userId)?e.userId:"string"===typeof e.userId&&e.userId.includes(",")?e.userId.split(",").map((function(e){return e.trim()})).filter((function(e){return e})):[e.userId]),r.length>0?this.userOptions=r.map((function(t){return{userId:t,username:e.username||t,userNumber:e.userNumber||t}})):this.userOptions=[];var a="";if(e.subsystem)if(Array.isArray(e.subsystem))a=e.subsystem[0]||"";else if("string"===typeof e.subsystem){var n=e.subsystem.split(",").map((function(e){return e.trim()})).filter((function(e){return e}));a=n[0]||""}if(a&&this.allParametersData[a]){var i=this.allParametersData[a],o=new Set;i.forEach((function(e){var t=e.partsName||"";t&&o.add(t)})),this.partsNameList=Array.from(o).sort()}else this.partsNameList=[];this.formData={department:e.departmentId||"",subsystem:a,partsName:e.partsName||"",filler:r,fillerName:e.username||"",selectDeptId:e.departmentId||"",selectDeptName:e.department||"",userId:e.userId||"",rowId:e.rowId||"",departmentId:e.departmentId||""},this.userLoading=!1,this.dialogVisible=!0,this.$nextTick((function(){t.$refs.form&&t.$refs.form.clearValidate()}))},handleDialogClose:function(){this.dialogVisible=!1,this.formData={department:"",subsystem:"",partsName:"",filler:[],fillerName:"",selectDeptId:"",selectDeptName:"",userId:"",rowId:"",departmentId:""},this.partsNameList=[],this.fillerPersons=[],this.userOptions=[],this.userLoading=!1,this.currentEditIndex=-1,this.searchTimer&&(clearTimeout(this.searchTimer),this.searchTimer=null),this.currentRequest=null,this.$refs.form&&this.$refs.form.clearValidate()},handleSubmit:function(){var e=this;this.$refs.form.validate((function(t){if(t){if(!e.formData.filler||!Array.isArray(e.formData.filler)||0===e.formData.filler.length)return void e.$message.warning("请至少选择一个填写人");var r=e.formData.subsystem||"",a=e.formData.partsName||"";if("add"===e.dialogMode){var n=Array.isArray(e.formData.filler)?e.formData.filler:[e.formData.filler],i=n.map((function(t){return e.$request(F9(F9({},et.SAVE_FILLER_DATA),{},{params:{departmentId:e.formData.selectDeptId,department:e.formData.selectDeptName,subsystem:r,partsName:a,userId:t},disableSuccessMsg:!0}))}));Promise.all(i).then((function(){e.handleDialogClose(),e.loadFillerData()})).catch((function(t){console.error("新增失败:",t),e.$message.error("新增失败,请重试")}))}else{var o=Array.isArray(e.formData.filler)&&e.formData.filler.length>0?e.formData.filler[0]:e.formData.filler,s=F9(F9({},et.EDIT_MANAGER_DATA),{},{params:{departmentId:e.formData.selectDeptId,department:e.formData.selectDeptName,subsystem:r,partsName:a,userId:o,rowId:e.formData.rowId},disableSuccessMsg:!0});e.$request(s).asyncThen((function(t){e.handleDialogClose(),e.loadFillerData()})).asyncErrorCatch((function(t){console.error("修改失败:",t),e.$message.error("修改失败")}))}}}))},handleOpenDepartmentDialog:function(){var e=this;this.formData.selectDeptId?(this.selectedDepartmentId=this.formData.selectDeptId,this.selectedDepartmentName=this.formData.selectDeptName,this.$nextTick((function(){e.$refs.departmentTree&&e.$refs.departmentTree.setCurrentKey(e.formData.selectDeptId)}))):(this.selectedDepartmentId="",this.selectedDepartmentName=""),this.departmentTreeFilterText="",this.departmentDialogVisible=!0},handleDepartmentDialogClose:function(){this.departmentDialogVisible=!1,this.departmentTreeFilterText="",this.formData.selectDeptId?(this.selectedDepartmentId=this.formData.selectDeptId,this.selectedDepartmentName=this.formData.selectDeptName):(this.selectedDepartmentId="",this.selectedDepartmentName="",this.selectedDepartmentNode=null)},handleDepartmentDialogConfirm:function(){var e=this;this.selectedDepartmentId&&this.selectedDepartmentNode&&(this.formData.selectDeptId=this.selectedDepartmentId,this.formData.selectDeptName=this.selectedDepartmentName,this.formData.department=this.selectedDepartmentId,this.formData.filler=[],this.formData.fillerName="",this.userOptions=[],this.departmentDialogVisible=!1,this.$nextTick((function(){e.$refs.form&&e.$refs.form.clearValidate("department")})))},handleDepartmentNodeClick:function(e){this.selectedDepartmentId=e.id,this.selectedDepartmentName=this.getDepartmentPathName(e.id),this.selectedDepartmentNode=e},filterDepartmentNode:function(e,t){return!e||(t.name||"").toLowerCase().includes(e.toLowerCase())},handleRemoteSearch:function(e){var t=this;if(e&&""!==e.trim())this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout((function(){var r=e.trim();if(r){t.userLoading=!0;var a=F9(F9({},et.GET_ALLUSERS),{},{params:{name:r},disableSuccessMsg:!0});t.currentRequest=t.$request(a),t.currentRequest.asyncThen((function(e){var r=e&&e.data,a=[];Array.isArray(r)?a=r:r&&Array.isArray(r.result)?a=r.result:r&&r.data&&Array.isArray(r.data)&&(a=r.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=Array.isArray(t.formData.filler)?t.formData.filler:[],o=new Set(i),s=t.userOptions.filter((function(e){return e.userId&&o.has(e.userId)})),l=new Map;s.forEach((function(e){e.userNumber&&l.set(e.userNumber,e)})),n.forEach((function(e){e.userNumber&&!l.has(e.userNumber)&&l.set(e.userNumber,e)})),t.userOptions=Array.from(l.values()),t.userLoading=!1,t.currentRequest=null})).asyncErrorCatch((function(e){if(console.error("搜索填写人失败:",e),t.formData.filler&&Array.isArray(t.formData.filler)&&t.formData.filler.length>0){var r=new Set(t.formData.filler),a=t.userOptions.filter((function(e){return e.userId&&r.has(e.userId)}));t.userOptions=a}else t.userOptions=[];t.userLoading=!1,t.currentRequest=null}))}else t.userOptions=[]}),300);else if(this.formData.filler&&Array.isArray(this.formData.filler)&&this.formData.filler.length>0){var r=new Set(this.formData.filler),a=this.userOptions.filter((function(e){return e.userId&&r.has(e.userId)}));this.userOptions=a}else this.userOptions=[]},handleFillerChange:function(e){var t=this;if(e&&Array.isArray(e)&&e.length>0){var r=e.map((function(e){var r=t.userOptions.find((function(t){return t.userId===e}));return r?r.username:e})).filter((function(e){return e}));this.formData.fillerName=r.join(", "),this.formData.userId=e}else this.formData.fillerName="",this.formData.userId=[]},getDepartmentPathName:function(e){if(!e||!this.departmentList||0===this.departmentList.length)return"";var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=N9(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(A9(n),[o.name]);if(o.id===r)return s;if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null},r=t(this.departmentList,e);return r?r.join("-"):""},handleDelete:function(e,t){var r=this;this.$confirm("确定要删除该记录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=F9(F9({},et.DELETE_MANAGER_DATA),{},{params:{rowId:e.rowId},disableSuccessMsg:!0});r.$request(t).asyncThen((function(e){r.$message({type:"success",message:"删除成功"}),r.loadFillerData()})).asyncErrorCatch((function(e){console.error("删除失败:",e),r.$message({type:"error",message:"删除失败"})}))})).catch((function(){}))},handleSizeChange:function(e){this.pagination.pageSize=e,this.pagination.currentPage=1,this.loadFillerData()},handleCurrentChange:function(e){this.pagination.currentPage=e,this.loadFillerData()},handleRefresh:function(){this.pagination.currentPage=1,this.loadFillerData()},formatDepartmentDisplay:function(e){if(!e)return"平台部";var t=e.replace(/·/g,"-"),r=t.split("-").filter((function(e){return""!==e.trim()}));return r.length>0?r[r.length-1]:t}}},z9=B9,G9=(r("dcd1"),d(z9,T9,I9,!1,null,"05e52e5d",null)),U9=G9.exports,W9=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-custom-page-mydemo custom-page"},[e.showProgressDetail?r("approval-progress-detail",{attrs:{detail:e.currentApprovalDetail},on:{close:e.closeProgressDetail,refresh:e.handleRefresh}}):[e._m(0),r("div",{staticClass:"page-search-panel"},[r("el-form",{staticClass:"search-list"},[r("div",{staticClass:"search-component"},[r("el-form-item",{attrs:{label:"模板名称"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.templateName,callback:function(t){e.$set(e.searchPanelValue,"templateName",t)},expression:"searchPanelValue.templateName"}})],1)],1),r("div",{staticClass:"search-component"},[r("el-form-item",{attrs:{label:"状态"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.searchPanelValue.status,callback:function(t){e.$set(e.searchPanelValue,"status",t)},expression:"searchPanelValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),r("div",{staticClass:"search-component"},[r("el-form-item",{attrs:{label:"申请时间"}},[r("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"请选择"},model:{value:e.searchPanelValue.createDate,callback:function(t){e.$set(e.searchPanelValue,"createDate",t)},expression:"searchPanelValue.createDate"}})],1)],1),r("div",{staticClass:"search-component"},[r("el-form-item",{attrs:{label:"申请人"}},[r("el-input",{attrs:{placeholder:"请输入"},model:{value:e.searchPanelValue.username,callback:function(t){e.$set(e.searchPanelValue,"username",t)},expression:"searchPanelValue.username"}})],1)],1)]),r("div",{staticClass:"search-button-group"},[r("el-button",{attrs:{"native-type":"reset"},on:{click:function(t){return e.resetSearch()}}},[e._v(" 重置 ")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSearch()}}},[e._v(" 查询 ")])],1)],1),r("div",{staticClass:"page-data-list"},[r("x-vxe-table",{ref:"vxeTable",staticClass:"block-table",attrs:{border:!0,seqWidth:40,colConfigs:e.tableConfig.colConfigs,tableData:e.tableData,rowDraggable:e.tableConfig.rowDraggable,seqType:e.tableConfig.seqType,pagination:e.pagination,layout:e.tableConfig.layout,seqConfig:e.tableConfig.seqConfig,autoSize:e.tableConfig.autoSize,pageConfig:e.tableConfig.pageConfig},on:{"table-row-click":e.rowClickEvent,"size-change":e.pageSizeChange,"current-page-change":e.currentChange},scopedSlots:e._u([e._l(e.tableConfig.colConfigs,(function(t,a){return{key:t.customSlot,fn:function(n){var i=n.row,o=n.rowIndex;return["status"===t.customSlot?r("div",{key:a+""+o},["审批中"===i[t.prop]||"APPROVING"===i[t.prop]?r("span",{staticClass:"status-tag status-approving"},[e._v(" 审批中 ")]):"已通过"===i[t.prop]||"COMPLETE"===i[t.prop]?r("span",{staticClass:"status-tag status-approved"},[e._v(" 已通过 ")]):"已退回"===i[t.prop]||"REJECTED"===i[t.prop]?r("span",{staticClass:"status-tag status-rejected"},[e._v(" 已退回 ")]):"已撤回"===i[t.prop]||"RETURNED"===i[t.prop]?r("span",{staticClass:"status-tag status-rejected"},[e._v(" 已撤回 ")]):r("span",{staticClass:"status-tag status-default"},[e._v(" "+e._s(i[t.prop])+" ")])]):e._e(),"version"===t.customSlot?r("div",{key:a+""+o},[i[t.prop]?r("span",[e._v(" V"+e._s(i[t.prop])+" ")]):r("span",[e._v("-")])]):e._e(),"currentApprover"===t.customSlot?r("div",{key:a+""+o},[i.currentApprovers&&i.currentApprovers.length>0?r("span",[e._v(" "+e._s(i.currentApprovers.map((function(e){return e.username})).join(",")||"-")+" ")]):r("span",[e._v("-")])]):e._e(),"options"===t.customSlot?r("div",{key:a+""+o},[r("a",{staticClass:"el-link el-link--primary",attrs:{href:"javascript:void(0)"},on:{click:function(t){return t.stopPropagation(),e.handleViewProgress(i)}}},[e._v(" 查看进度 ")])]):e._e()]}}}))],null,!0)},[r("template",{slot:"empty"},[r("div",{staticClass:"table-empty"},[e.canViewData?[r("x-empty-page")]:[r("div",{staticStyle:{padding:"40px 0","text-align":"center",color:"#909399"}},[r("div",{staticStyle:{"font-size":"14px"}},[e._v("无权限查看")])])]],2)])],2)],1)],r("el-dialog",{attrs:{title:"审核",visible:e.approvalDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",attrs:{model:e.approvalFormData,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"审核"}},[r("el-radio-group",{model:{value:e.approvalFormData.result,callback:function(t){e.$set(e.approvalFormData,"result",t)},expression:"approvalFormData.result"}},[r("el-radio",{attrs:{label:"PASS"}},[e._v(" 通过 ")]),r("el-radio",{attrs:{label:"REJECT"}},[e._v(" 退回 ")])],1)],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入备注"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1)],2)},H9=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-header"},[r("div",{staticClass:"title"},[e._v(" 参数模板审批流程 ")])])}],q9=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"approval-progress-fade"}},[e.visible?r("div",{staticClass:"approval-progress-detail"},[r("div",{staticClass:"detail-panel"},[r("div",{staticClass:"detail-header"},[r("div",{staticClass:"header-left"},[r("el-button",{staticClass:"back-button",attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:e.handleBack}}),r("div",{staticClass:"header-info"},[r("div",{staticClass:"title"},[e._v(" 审批详情 ")])])],1),r("div",{staticClass:"header-right"},[e.fromTodo?r("el-button",{on:{click:e.handleReturn}},[e._v(" 退回 ")]):e._e(),e.fromTodo&&e.canResend?r("el-button",{attrs:{loading:e.resending},on:{click:e.handleResend}},[e._v(" 直送 ")]):e._e(),e.fromTodo?r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 提交 ")]):e._e()],1)]),r("div",{staticClass:"detail-content"},[r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title"},[e._v(" 基础信息 ")]),r("div",{staticClass:"info-grid"},[r("div",{staticClass:"info-item-full"},[r("span",{staticClass:"label"},[e._v("流程主题")]),e.isEditingProcessTitle?r("div",{staticClass:"process-title-input-wrapper"},[r("el-input",{staticClass:"process-title-input",attrs:{placeholder:"请输入流程主题",maxlength:"100","show-word-limit":""},model:{value:e.editingProcessTitle,callback:function(t){e.editingProcessTitle=t},expression:"editingProcessTitle"}},[r("template",{slot:"suffix"},[r("i",{staticClass:"el-icon-check process-title-icon",on:{click:e.handleSaveProcessTitle}}),r("i",{staticClass:"el-icon-close process-title-icon",on:{click:e.handleCancelProcessTitle}})])],2)],1):r("div",{staticClass:"value process-title-value-wrapper"},[e._v(" "+e._s(e.showTopDetail.processTitle||"--")+" "),r("i",{staticClass:"el-icon-edit process-title-edit-icon",on:{click:e.handleEditProcessTitle}})])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建人")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.createBy||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("创建时间")]),r("span",{staticClass:"value"},[e._v(e._s(e.formatTime(e.showTopDetail.createTime)||"--"))])])]),r("div",{staticClass:"info-row"},[r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前环节")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.currentNode||"--"))])]),r("div",{staticClass:"info-item"},[r("span",{staticClass:"label"},[e._v("当前处理人")]),r("span",{staticClass:"value"},[e._v(e._s(e.showTopDetail.currentProcessor||"--"))])])])])]),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title"},[e._v(" 审批内容 ")]),r("el-table",{staticClass:"change-table",attrs:{data:e.changeTable||[],border:""}},[r("el-table-column",{attrs:{label:"序号",type:"index",width:"60"}}),r("el-table-column",{attrs:{prop:"subsystemName",label:"子系统","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterType",label:"类型","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"partsName",label:"零部件名称","min-width":"140","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"parameterName",label:"参数名称","min-width":"140","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"unit",label:"单位","min-width":"80","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"remarks",label:"备注","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"modifyDetails",label:"变动说明","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticClass:"modify-details-text"},[e._v(" "+e._s(t.row.modifyDetails||"--")+" ")])]}}],null,!1,654223453)})],1),e.changeTableTotal>0?r("el-pagination",{staticClass:"pagination-wrapper",attrs:{"current-page":e.changeTablePageNumber,"page-size":e.changeTablePageSize,total:e.changeTableTotal,layout:"total, prev, pager, next, jumper"},on:{"current-change":e.handlePageChange}}):e._e(),e.progressDetail.description?r("div",{staticClass:"description-block"},[r("span",{staticClass:"label"},[e._v("说明:")]),r("span",{staticClass:"value"},[e._v(e._s(e.detailOption))])]):e._e()],1),r("section",{staticClass:"block-section"},[r("div",{staticClass:"section-title"},[e._v(" 审批流程 ")]),e.timelineNodes&&e.timelineNodes.length>0?r("div",{staticClass:"approval-timeline"},[r("el-timeline",e._l(e.timelineNodes,(function(t,a){return r("el-timeline-item",{key:a,attrs:{color:e.getTimelineColor(t.result||t.status,a,e.timelineNodes.length)}},[r("div",{staticClass:"timeline-item-content"},[r("div",{staticClass:"node-title"},[e._v(" "+e._s(t.title)+" ")]),r("div",{staticClass:"node-content"},[r("div",{staticClass:"node-info"},[r("div",{staticClass:"node-user"},[e._v(" "+e._s(t.userName||"--")+" "),r("span",{staticClass:"node-time"},[e._v(" "+e._s(e.formatTime(t.operateTime))+" ")])])]),r("div",{staticClass:"node-status",class:e.getStatusClass(t.result||t.status)},[e._v(" "+e._s(e.setStatusText(t.result||t.status))+" ")]),t.opinion?r("div",{staticClass:"node-opinion"},[e._v(" 审批意见:"+e._s(t.opinion)+" ")]):e._e()])])])})),1)],1):r("div",{staticClass:"empty-progress"},[r("span",{staticClass:"empty-text"},[e._v("暂无审批流程数据")])])])])]),r("el-dialog",{attrs:{title:e.approvalDialogTitle,visible:e.approvalDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.approvalDialogVisible=t},close:e.handleApprovalDialogClose}},[r("el-form",{ref:"approvalForm",staticStyle:{"margin-top":"10px"},attrs:{model:e.approvalFormData,rules:e.approvalFormRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"reject"===e.approvalActionType?"拒绝意见:":"提交意见:",prop:"opinion"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"reject"===e.approvalActionType?"请输入拒绝意见":"请输入提交意见"},model:{value:e.approvalFormData.opinion,callback:function(t){e.$set(e.approvalFormData,"opinion",t)},expression:"approvalFormData.opinion"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleApprovalDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.approvalSubmitting},on:{click:e.handleApprovalSubmit}},[e._v(" 确定 ")])],1)],1),r("el-dialog",{attrs:{title:"选择退回节点",visible:e.returnNodeDialogVisible,width:"500px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.returnNodeDialogVisible=t},close:e.handleReturnNodeDialogClose}},[r("div",{staticClass:"return-node-dialog-content"},[0===e.returnableNodes.length?r("div",{staticClass:"empty-hint"},[e._v(" 暂无可退回的节点 ")]):r("el-radio-group",{staticClass:"return-node-list",on:{change:e.handleReturnNodeChange},model:{value:e.selectedReturnNode,callback:function(t){e.selectedReturnNode=t},expression:"selectedReturnNode"}},e._l(e.returnableNodes,(function(e){return r("el-radio",{key:e,staticClass:"return-node-item",attrs:{label:e}})})),1),"编制"===e.selectedReturnNode?r("div",{staticClass:"return-opinion-section"},[r("div",{staticClass:"opinion-label"},[e._v(" 退回意见: ")]),r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入退回意见"},model:{value:e.returnOpinion,callback:function(t){e.returnOpinion=t},expression:"returnOpinion"}})],1):e._e()],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleReturnNodeDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.returnSubmitting,disabled:!e.selectedReturnNode},on:{click:e.handleReturnSubmit}},[e._v(" 确定 ")])],1)])],1):e._e()])},Y9=[];function X9(e){return X9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X9(e)}function K9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Z9(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,a=new Array(t);r0)return{progressTitle:this.progressDetailData.progressTitle||"",contentName:this.progressDetailData.contentName||"",templateVersion:this.progressDetailData.templateVersion||"",explanation:this.progressDetailData.explanation||"",description:this.progressDetailData.explanation||this.progressDetailData.description||""};var e={approvalNumber:"",modelName:"",applicant:"",department:"",submitTime:"",description:"",changeTable:[],createBy:"",creationDate:"",progress:[]};return Object.assign(e,this.detail||{})},initiateNode:function(){return this.detail&&this.detail.createBy?{userName:this.detail.createBy,createTime:this.detail.createdTime||this.detail.createTime,status:"INITIATE",result:"INITIATE"}:null},timelineNodes:function(){var e=[];if(this.flowNodes&&this.flowNodes.length>0){var t=t7(this.flowNodes),r=t.findIndex((function(e){return"待审批"===e.result}));-1!==r&&(t[r]=Z9(Z9({},t[r]),{},{result:"APPROVING"})),t.forEach((function(t){var r="APPROVING",a="APPROVING";t.result&&("MSG"===t.result?(r="PASS",a="PASS"):"REJECT"===t.result?(r="REJECT",a="REJECT"):"RETURN"===t.result?(r="RETURN",a="RETURN"):"APPROVING"===t.result?(r="APPROVING",a="APPROVING"):"PASS"===t.result?(r="PASS",a="PASS"):"待审批"===t.result&&(r="待审批",a="待审批"));var n=t.opinions&&Array.isArray(t.opinions)&&t.opinions.length>0?t.opinions[0]:null,i=t.todoUserName||t.undoUserName||"--";e.push({title:t.node||"审批节点",userName:i,operateTime:t.approvalTime||"",result:r,status:a,opinion:n})}))}else this.progress&&this.progress.length>0&&this.progress.forEach((function(t){t.steps&&t.steps.length>0&&t.steps.forEach((function(r){e.push({title:t.title||"审批节点",userName:r.userName,operateTime:r.approvalTime||r.handleTime||r.createTime,result:r.result||r.status,status:r.result||r.status,opinion:r.opinion||r.remark||r.comment||null})}))}));return e},canApprove:function(){return this.fromTodo},currentNode:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.node||"--";var t=this.flowNodes[this.flowNodes.length-1];return t&&t.node||"--"}return"--"},currentProcessor:function(){if(this.flowNodes&&this.flowNodes.length>0){var e=this.flowNodes.find((function(e){return"待审批"===e.result||"APPROVING"===e.result}));if(e)return e.undoUserName||e.todoUserName||"--"}return"--"}},mounted:function(){this.getCanResend(),this.getApprovalChange(),this.getApprovalSpet()},methods:{getCanResend:function(){var e=this;if(this.detail&&this.detail.flowId){var t=Z9(Z9({},et.GET_CAN_RESEND_APPROVAL),{},{params:{flowId:this.detail.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){e.canResend=t.data||!1})).asyncErrorCatch((function(t){console.error("获取可重新发起审批权限失败:",t),e.canResend=!1}))}else this.canResend=!1},setStatusText:function(e){var t={PASS:"通过",REJECT:"驳回",REFUSE:"驳回",APPROVE:"批准",APPROVING:"审批中",PENDING:"待处理",WAITING:"待处理",INITIATE:"发起审批",RETURN:"退回"};return t[e]||e||"待处理"},formatTime:function(e){if(!e)return"--";if("number"===typeof e){var t=new Date(e);return t.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return e},getTimelineColor:function(e,t,r){return"PASS"===e||"APPROVE"===e?"#67C23A":"REJECT"===e||"REFUSE"===e?"#F56C6C":"APPROVING"===e||"PENDING"===e||"WAITING"===e?"#E6A23C":"#409EFF"},getStatusClass:function(e){var t={PASS:"status-pass",APPROVE:"status-approve",REJECT:"status-reject",REFUSE:"status-reject",APPROVING:"status-approving",PENDING:"status-pending",WAITING:"status-pending",INITIATE:"status-initiate",RETURN:"status-return"};return t[e]||"status-default"},getApprovalSpet:function(){var e=this;if(this.detail&&this.detail.flowId){var t=Z9(Z9({},et.GET_PPROVAL_ALL),{},{params:{flowId:this.detail.flowId,templateId:this.detail.templateId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log("审批流程数据:",t);var r=t.data||t,a=r.flowStatus||"",n=r.createBy||"";e.showTopDetail={processTitle:r.progressTitle||"",createBy:n,createTime:r.createTime||"",currentNode:"REJECTED"===a?"编制":r.currentNode||"",currentProcessor:"REJECTED"===a?n:r.processor||""},e.flowStatus=a,e.progressDetailData={explanation:r.explanation||"",flowStatus:r.flowStatus||"",progressTitle:r.progressTitle||"",templateVersion:r.templateVersion||"",contentName:r.contentName||""},e.detailOption=r.explanation||r.description||"",e.flowNodes=r.flowNodes||[]})).asyncErrorCatch((function(t){console.error("获取审批流程数据失败:",t),e.flowNodes=[],e.progressDetailData={}}))}},getApprovalChange:function(){var e=this,t=Z9(Z9({},et.GET_APPROVAL_CHANGE),{},{params:{flowId:this.detail.flowId,templateId:this.detail.templateId,pageNumber:this.changeTablePageNumber,pageSize:this.changeTablePageSize},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t),e.changeTable=t.data.result,e.changeTableTotal=t.data.count}))},handleBack:function(){this.$emit("close")},handlePageChange:function(e){this.changeTablePageNumber=e,this.getApprovalChange()},changeTypeClass:function(e){return"create"===e?"change-create":"delete"===e?"change-delete":"update"===e?"change-update":"change-default"},deduplicateSteps:function(e){var t=this;if(!Array.isArray(e)||0===e.length)return[];var r=new Map,a=[];return e.forEach((function(e){var t=null;if(e.id)t="id_".concat(e.id);else{var n=e.userName||e.operator||e.username||e.handlerName||e.handler||"",i=e.approvalTime||e.handleTime||e.createTime||"",o=e.result||e.status||"";t="combo_".concat(n,"_").concat(i,"_").concat(o)}if(t)if(r.has(t)){var s=r.get(t),l=a[s],c=!!(e.approvalTime||e.handleTime||e.createTime),u=!!(l.approvalTime||l.handleTime||l.createTime);c&&!u&&(a[s]=e)}else r.set(t,a.length),a.push(e)})),a.map((function(e){var r=Z9({},e);return r.approvalTime&&(r.approvalTime=t.formatTime(r.approvalTime)),r.handleTime&&(r.handleTime=t.formatTime(r.handleTime)),r.createTime&&(r.createTime=t.formatTime(r.createTime)),r}))},handleReject:function(){var e=this;this.approvalActionType="reject",this.approvalDialogTitle="拒绝",this.approvalFormData={result:"REJECT",opinion:"拒绝"},this.approvalDialogVisible=!0,this.$nextTick((function(){e.$refs.approvalForm&&e.$refs.approvalForm.clearValidate()}))},handleReturn:function(){var e=this,t=Z9(Z9({},et.GET_CAN_RETURN_NODE),{},{params:{flowId:this.detail.flowId},disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){console.log(t);var r=Array.isArray(t.data)?t.data:[];e.returnableNodes=["编制"].concat(t7(r))})).asyncErrorCatch((function(t){console.error("获取退回节点失败:",t),e.returnableNodes=["编制"]})),this.selectedReturnNode="",this.returnOpinion="",this.returnNodeDialogVisible=!0},handleReturnNodeDialogClose:function(){this.returnNodeDialogVisible=!1,this.selectedReturnNode="",this.returnOpinion=""},handleReturnNodeChange:function(){"编制"!==this.selectedReturnNode&&(this.returnOpinion="")},handleReturnSubmit:function(){var e=this;if(this.selectedReturnNode)if(this.detail&&this.detail.flowId)if(this.returnSubmitting=!0,"编制"===this.selectedReturnNode){var t={flowId:this.detail.flowId,userId:de(),result:"REJECT",opinion:this.returnOpinion||""},r=Z9(Z9({},et.HANDLE_APPROVAL),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.getApprovalSpet(),e.getApprovalChange(),e.$message({message:"拒绝成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1})).asyncErrorCatch((function(t){console.error("拒绝失败:",t),e.$message({message:t.message||"拒绝失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else{var a=this.detail.createdById||"";if(!a)return this.$message.error("无法获取流程发起人信息"),void(this.returnSubmitting=!1);var n=de(),i={flowId:this.detail.flowId,nodeName:this.selectedReturnNode,createUserId:a,processUserId:n},o=Z9(Z9({},et.RETURN_MODEL_APPROVAL),{},{params:i,disableSuccessMsg:!0});this.$request(o).asyncThen((function(t){e.handleReturnNodeDialogClose(),e.getApprovalSpet(),e.getApprovalChange(),e.$message({message:"退回成功",type:"success"}),e.$emit("refresh"),e.returnSubmitting=!1})).asyncErrorCatch((function(t){console.error("退回失败:",t),e.$message({message:t.message||"退回失败,请重试",type:"error"}),e.returnSubmitting=!1})).finally((function(){e.returnSubmitting=!1}))}else this.$message.error("缺少审批信息");else this.$message.warning("请选择要退回的节点")},handleSubmit:function(){var e=this;this.approvalActionType="submit",this.approvalDialogTitle="提交",this.approvalFormData={result:"PASS",opinion:"同意"},this.approvalDialogVisible=!0,this.$nextTick((function(){e.$refs.approvalForm&&e.$refs.approvalForm.clearValidate()}))},handleApprovalDialogClose:function(){this.approvalDialogVisible=!1,this.approvalActionType="",this.approvalDialogTitle="审核",this.approvalFormData={result:"",opinion:""},this.$refs.approvalForm&&this.$refs.approvalForm.clearValidate()},handleApprovalSubmit:function(){var e=this;this.$refs.approvalForm.validate((function(t){if(!t)return!1;if(e.detail&&e.detail.flowId){var r={flowId:e.detail.flowId,userId:de(),result:e.approvalFormData.result,opinion:e.approvalFormData.opinion||""};e.approvalSubmitting=!0;var a=Z9(Z9({},et.HANDLE_APPROVAL),{},{params:r,disableSuccessMsg:!0});e.$request(a).asyncThen((function(t){e.handleApprovalDialogClose(),e.getApprovalSpet(),e.getApprovalChange(),e.$message({message:"审批提交成功",type:"success"}),e.$emit("refresh"),e.approvalSubmitting=!1})).asyncErrorCatch((function(t){console.error("审批提交失败:",t),e.$message({message:"审批提交失败,请重试",type:"error"}),e.approvalSubmitting=!1})).finally((function(){e.approvalSubmitting=!1}))}else e.$message.error("缺少审批信息")}))},handleResend:function(){var e=this;this.detail&&this.detail.templateId?this.$confirm("确定要执行直送操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.resending=!0;var t=Z9(Z9({},et.RESTART_MODEL_APPROVAL),{},{params:{templateId:e.detail.templateId,userId:de()},disableSuccessMsg:!0});e.$request(t).asyncThen((function(t){e.getApprovalSpet(),e.getApprovalChange(),e.$message({message:"直送成功",type:"success"}),e.$emit("refresh"),e.resending=!1})).asyncErrorCatch((function(t){console.error("直送失败:",t),e.$message({message:t.message||"直送失败,请重试",type:"error"}),e.resending=!1})).finally((function(){e.resending=!1}))})).catch((function(){})):this.$message.error("缺少模板ID,无法执行直送操作")},handleEditProcessTitle:function(){this.isEditingProcessTitle=!0,this.editingProcessTitle=this.showTopDetail.processTitle||""},handleCancelProcessTitle:function(){this.isEditingProcessTitle=!1,this.editingProcessTitle=""},handleSaveProcessTitle:function(){var e=this;if(this.detail&&this.detail.flowId){var t=(this.editingProcessTitle||"").trim();t?this.$confirm("确认修改主题为".concat(t,"吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=Z9(Z9({},et.EDIT_APPROVAL_PROCESS_TITLE),{},{params:{flowId:e.detail.flowId,title:t},disableSuccessMsg:!0});e.$request(r).asyncThen((function(r){e.showTopDetail.processTitle=t,e.isEditingProcessTitle=!1,e.editingProcessTitle="",e.$message({message:"修改成功",type:"success"})})).asyncErrorCatch((function(t){console.error("修改流程主题失败:",t),e.$message({message:t.message||"修改失败,请重试",type:"error"})}))})).catch((function(){})):this.$message.warning("流程主题不能为空")}else this.$message.error("缺少流程ID,无法保存")}}},l7=s7,c7=(r("2d2c"),d(l7,q9,Y9,!1,null,"9071b4da",null)),u7=c7.exports;function d7(e){return d7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d7(e)}function p7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function h7(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function _ee(e){return See(e)||Dee(e)||wee(e)||xee()}function xee(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wee(e,t){if(e){if("string"===typeof e)return Cee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cee(e,t):void 0}}function Dee(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function See(e){if(Array.isArray(e))return Cee(e)}function Cee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r0&&e(r.children)}))};return r(e),t},departmentSelectOptionsMerged:function(){var e=this.departmentSelectOptions||[],t=this.selectedDepartmentOptions||[],r=new Map;return e.forEach((function(e){return r.set(e.value,{value:e.value,label:e.label})})),t.forEach((function(e){return r.set(e.value,{value:e.value,label:e.label})})),Array.from(r.values())}},watch:{treeFilterText:function(e){this.$refs.permissionTree&&this.$refs.permissionTree.filter(e)}},mounted:function(){this.loadPermissionData(),this.loadParamList(),this.loadTemplateList(),this.loadDepartmentList(),this.getUserSelfRole()},beforeDestroy:function(){this.personSearchTimer&&(clearTimeout(this.personSearchTimer),this.personSearchTimer=null),this.currentPersonRequest=null},methods:{isApprovalFlowMenu:function(e){var t=["参数模板审批流程","玉柴发动机数据审批流程","竞品发动机数据审批流程","对标报告审批流程"];return t.includes(e)},getUserSelfRole:function(){var e=Oee(Oee({},et.GET_USER_SELF_ROLE),{},{params:{userOrDepID:de()},disableSuccessMsg:!0});this.$request(e).asyncThen((function(e){console.log("获取用户自身角色:",e)})).asyncErrorCatch((function(e){console.error("获取用户自身角色失败:",e)}))},validatePermissions:function(e,t,r){var a=this.allParameterNodes.some((function(e){return e.permissions.view||e.permissions.edit}));a?r():r(new Error("请至少分配一个权限"))},loadParamList:function(){var e=this,t=Oee(Oee({},et.GET_PARAM_LIST),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){if(t&&t.data){var r={};"object"===Tee(t.data)&&null!==t.data&&(r=t.data.result&&"object"===Tee(t.data.result)?t.data.result:t.data.data&&"object"===Tee(t.data.data)?t.data.data:t.data);var a={};Object.keys(r).forEach((function(e){var t=r[e];if(Array.isArray(t)){var n=_ee(new Set(t)).filter((function(e){return null!==e&&void 0!==e&&""!==e}));a[e]=n}else a[e]=[]})),e.subsystemPartsMap=a,e.subsystemList=Object.keys(a),console.log("加载参数列表成功,子系统数量:",e.subsystemList.length),console.log("子系统到partsName映射:",e.subsystemPartsMap)}else e.subsystemPartsMap={},e.subsystemList=[];e.buildMenuTree()})).asyncErrorCatch((function(t){console.error("加载参数列表失败:",t),e.subsystemPartsMap={},e.subsystemList=[],e.buildMenuTree()}))},buildMenuTree:function(){var e=this;this.nodeMap={};var t=[];this.menuList.forEach((function(r,a){var n="menu-".concat(a),i=["对标报告","参数模板审批流程","玉柴发动机数据审批流程","竞品发动机数据审批流程","对标报告审批流程"],o={id:n,label:r,type:"menu",children:null,isLeaf:i.includes(r),permissions:{view:!1,edit:!1}};e.nodeMap[n]=o,t.push(o)})),this.menuTreeData=t},filterTreeNode:function(e,t){return!e||t.label&&-1!==t.label.indexOf(e)},loadNode:function(e,t){if(0===e.level)return this.menuTreeData&&0!==this.menuTreeData.length||this.buildMenuTree(),void t(this.menuTreeData||[]);if("menu"===e.data.type){var r=["对标报告","参数模板审批流程","玉柴发动机数据审批流程","竞品发动机数据审批流程","对标报告审批流程","基础管理模块"];return r.includes(e.data.label)?void t([]):"参数模板管理"===e.data.label?void this.loadTemplateListForLazy(e.data,t):void this.loadMenuSubsystemsForLazy(e.data,t)}"subsystem"!==e.data.type?t([]):this.loadSubsystemParametersForLazy(e.data,t)},loadTemplateList:function(){var e=this,t=Oee(Oee({},et.GET_MODEL_LIST),{},{params:{pageNumber:1,pageSize:9999},disableSuccessMsg:!0});this.$request(t,!1).asyncThen((function(t){var r=t.data.result||[];e.templateList=r.map((function(e){return{templateId:e.rowId||e.id||"",templateName:e.templateName||""}})),console.log("加载模板列表成功,模板数量:",e.templateList.length)})).asyncErrorCatch((function(t){console.error("加载模板列表失败:",t),e.templateList=[]}))},loadTemplateListForLazy:function(e,t){var r=this;if(!this.templateList||0===this.templateList.length)return this.loadTemplateList(),void setTimeout((function(){r.buildTemplateNodes(e,t)}),500);this.buildTemplateNodes(e,t)},buildTemplateNodes:function(e,t){var r=this,a=[];this.templateList.forEach((function(t,n){if(t.templateName){var i="".concat(e.id,"-template-").concat(n),o={id:i,label:t.templateName,type:"template",menuName:e.label,templateId:t.templateId,templateName:t.templateName,permissions:{view:!1,edit:!1},isLeaf:!0,children:null};a.push(o),r.nodeMap[i]=o,r.applyPendingPermissionsToNode(o)}})),this.$nextTick((function(){a.forEach((function(e){r.applyPendingPermissionsToNode(e)}))})),t(a)},loadMenuSubsystemsForLazy:function(e,t){var r=this,a=Object.keys(this.subsystemPartsMap||{});if(0!==a.length){var n=[];a.forEach((function(t,a){if(t){var i="".concat(e.id,"-subsystem-").concat(a),o=r.subsystemPartsMap[t]||[],s=[],l=new Set;o.forEach((function(a,n){if(a&&!l.has(a)){l.add(a);var o="".concat(i,"-param-").concat(n),c={id:o,label:a,type:"parameter",menuName:e.label,subsystem:t,parameter:a,parameterName:a,partsName:a,parameterId:"",permissions:{view:!1,edit:!1},isLeaf:!0,children:null};s.push(c),r.nodeMap[o]=c,r.applyPendingPermissionsToNode(c)}}));var c={id:i,label:t,type:"subsystem",menuName:e.label,subsystem:t,children:s,isLeaf:0===s.length,permissions:{view:!1,edit:!1}};n.push(c),r.nodeMap[i]=c}})),this.$nextTick((function(){n.forEach((function(e){e.children&&Array.isArray(e.children)&&e.children.forEach((function(e){r.applyPendingPermissionsToNode(e)}))}))})),t(n)}else t([])},loadSubsystemParametersForLazy:function(e,t){var r=this;if(!e.subsystem)return console.warn("子系统节点缺少子系统名称"),void t([]);var a=this.subsystemPartsMap[e.subsystem]||[],n=[],i=new Set;a.forEach((function(t,a){if(t&&!i.has(t)){i.add(t);var o="".concat(e.id,"-param-").concat(a),s={id:o,label:t,type:"parameter",menuName:e.menuName,subsystem:e.subsystem,parameter:t,parameterName:t,partsName:t,parameterId:"",permissions:{view:!1,edit:!1},isLeaf:!0,children:null};n.push(s),r.nodeMap[o]=s,r.applyPendingPermissionsToNode(s)}})),t(n),this.$nextTick((function(){n.forEach((function(e){r.applyPendingPermissionsToNode(e)}))}))},handleNodePermissionChange:function(e,t){var r=this;if("edit"===t&&"menu"===e.type&&this.isApprovalFlowMenu(e.label))return this.$set(e.permissions,"edit",!1),void(e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"edit",!1));"edit"===t&&e.permissions&&!0===e.permissions.edit&&(e.permissions.view||this.$set(e.permissions,"view",!0),e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"view",!0)),e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,t,e.permissions[t]),"menu"===e.type?this.handleMenuPermissionChange(e,t):"subsystem"===e.type?(this.handleSubsystemPermissionChange(e,t),this.updateMenuPermissionFromChildren(e)):"template"===e.type?this.updateMenuPermissionFromChildren(e):"parameter"===e.type&&this.updateSubsystemPermissionFromChildren(e),this.$nextTick((function(){r.$refs.form&&r.$refs.form.validateField("permissions")}))},handleMenuPermissionChange:function(e,t){var r=this,a=e.permissions[t],n=e.label||"";if("edit"===t&&this.isApprovalFlowMenu(n))return this.$set(e.permissions,"edit",!1),void(e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"edit",!1));"edit"===t&&a&&(this.$set(e.permissions,"view",!0),e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"view",!0));var i=function e(n){n.children&&Array.isArray(n.children)&&n.children.forEach((function(n){if(n.id&&r.nodeMap[n.id]){var i=r.nodeMap[n.id];if(i.permissions||r.$set(i,"permissions",{view:!1,edit:!1}),r.$set(i.permissions,t,a),"edit"===t&&a&&r.$set(i.permissions,"view",!0),n.permissions){var o=Oee(Oee({},n.permissions),{},Aee({},t,a));"edit"===t&&a&&(o.view=!0),r.$set(n,"permissions",o)}e(n)}}))};if(i(e),a){this.pendingPermissions||(this.pendingPermissions=[]);var o=de(),s="view"===t?1:2;if("参数模板管理"===n)this.templateList.forEach((function(e){if(e.templateName){var t="".concat(n,"/").concat(e.templateName),a=r.pendingPermissions.find((function(e){return e.permissionPath===t&&e.parameterPer===s}));a||r.pendingPermissions.push({permissionPath:t,parameterPer:s,userId:o})}}));else if("玉柴发动机数据"===n||"竞品发动机数据"===n)Object.keys(this.subsystemPartsMap||{}).forEach((function(e){var t=r.subsystemPartsMap[e]||[];t.forEach((function(t){if(t){var a="".concat(n,"/").concat(e,"/").concat(t),i=r.pendingPermissions.find((function(e){return e.permissionPath===a&&e.parameterPer===s}));i||r.pendingPermissions.push({permissionPath:a,parameterPer:s,userId:o})}}))}));else if("对标报告"===n||"参数模板审批流程"===n||"玉柴发动机数据审批流程"===n||"竞品发动机数据审批流程"===n||"对标报告审批流程"===n){var l=this.buildPermissionPath(e);if(l){var c=this.pendingPermissions.find((function(e){return e.permissionPath===l&&e.parameterPer===s}));c||this.pendingPermissions.push({permissionPath:l,parameterPer:s,userId:o})}}if("edit"===t){var u=1;if("参数模板管理"===n)this.templateList.forEach((function(e){if(e.templateName){var t="".concat(n,"/").concat(e.templateName),a=r.pendingPermissions.find((function(e){return e.permissionPath===t&&e.parameterPer===u}));a||r.pendingPermissions.push({permissionPath:t,parameterPer:u,userId:o})}}));else if("玉柴发动机数据"===n||"竞品发动机数据"===n)Object.keys(this.subsystemPartsMap||{}).forEach((function(e){var t=r.subsystemPartsMap[e]||[];t.forEach((function(t){if(t){var a="".concat(n,"/").concat(e,"/").concat(t),i=r.pendingPermissions.find((function(e){return e.permissionPath===a&&e.parameterPer===u}));i||r.pendingPermissions.push({permissionPath:a,parameterPer:u,userId:o})}}))}));else if("对标报告"===n||"参数模板审批流程"===n||"玉柴发动机数据审批流程"===n||"竞品发动机数据审批流程"===n||"对标报告审批流程"===n){var d=this.buildPermissionPath(e);if(d){var p=this.pendingPermissions.find((function(e){return e.permissionPath===d&&e.parameterPer===u}));p||this.pendingPermissions.push({permissionPath:d,parameterPer:u,userId:o})}}}}else if(this.pendingPermissions){var h="view"===t?1:2,f=["对标报告","参数模板审批流程","玉柴发动机数据审批流程","竞品发动机数据审批流程","对标报告审批流程"];if(this.pendingPermissions=this.pendingPermissions.filter((function(e){return e.permissionPath&&e.permissionPath.startsWith(n+"/")?e.parameterPer!==h:!f.includes(n)||e.permissionPath!==n||e.parameterPer!==h})),"edit"===t){var m=1;this.pendingPermissions=this.pendingPermissions.filter((function(e){return e.permissionPath&&e.permissionPath.startsWith(n+"/")?e.parameterPer!==m:!f.includes(n)||e.permissionPath!==n||e.parameterPer!==m}))}}},updateMenuPermissionFromChildren:function(e){var t=this,r=null;if(e&&"menu"===e.type?r=e:e&&e.menuName&&(r=Object.values(this.nodeMap).find((function(t){return"menu"===t.type&&t.label===e.menuName}))),r){var a=[],n=function e(t){t.children&&Array.isArray(t.children)&&t.children.forEach((function(t){a.push(t),e(t)}))};if(n(r),0!==a.length){var i=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.view})),o=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.edit}));r.permissions||this.$set(r,"permissions",{view:!1,edit:!1}),this.$set(r.permissions,"view",i),this.$set(r.permissions,"edit",o)}}},handlePermissionChange:function(e,t){this.handleNodePermissionChange(e,t)},handleSubsystemPermissionChange:function(e,t){var r=this;e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,t,e.permissions[t]),"edit"===t&&e.permissions&&!0===e.permissions.edit&&(this.$set(e.permissions,"view",!0),e.id&&this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id].permissions,"view",!0));var a=e.children||[],n=e.permissions[t];a.forEach((function(e){if(e.id&&r.nodeMap[e.id]&&(r.nodeMap[e.id].permissions||r.$set(r.nodeMap[e.id],"permissions",{view:!1,edit:!1}),r.$set(r.nodeMap[e.id].permissions,t,n),"edit"===t&&n&&r.$set(r.nodeMap[e.id].permissions,"view",!0),e.permissions)){var a=Oee(Oee({},e.permissions),{},Aee({},t,n));"edit"===t&&n&&(a.view=!0),r.$set(e,"permissions",a)}})),this.$nextTick((function(){r.$refs.form&&r.$refs.form.validateField("permissions")}))},updateSubsystemPermissionFromChildren:function(e){var t=this;if(e&&e.subsystem){var r=Object.values(this.nodeMap).find((function(t){return"subsystem"===t.type&&t.subsystem===e.subsystem&&t.menuName===e.menuName}));if(r&&r.children&&0!==r.children.length){var a=r.children,n=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.view})),i=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.edit}));r.permissions&&(this.$set(r.permissions,"view",n),this.$set(r.permissions,"edit",i))}}},loadPermissionData:function(){var e=this,t=Oee(Oee({},et.GET_ROLE_PERMISSION),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){t&&t.data?(e.tableData=t.data,e.pagination.total=t.data.length||0):(e.tableData=[],e.pagination.total=0)})).asyncErrorCatch((function(t){console.error("加载权限数据失败:",t),e.tableData=[],e.pagination.total=0}))},handleAddRole:function(){var e=this;this.addRoleMode="add",this.addRoleDialogVisible=!0,this.addRoleFormData={roleName:"",roleCode:"",roleDescription:"",roleId:""},this.$nextTick((function(){e.$refs.addRoleForm&&e.$refs.addRoleForm.clearValidate()}))},handleAddRoleSubmit:function(){var e=this;this.$refs.addRoleForm.validate((function(t){if(t){e.addRoleSubmitting=!0;var r="edit"===e.addRoleMode,a=r?et.EDIT_PERMISSION_DATA_ROLE:et.ADD_ROLE_PERMISSION,n=Oee(Oee({},a),{},{url:r?a.url+de():a.url,params:r?{id:e.addRoleFormData.roleId,roleName:e.addRoleFormData.roleName,roleCode:e.addRoleFormData.roleCode,roleDescription:e.addRoleFormData.roleDescription}:{roleName:e.addRoleFormData.roleName,roleCode:e.addRoleFormData.roleCode,roleDescription:e.addRoleFormData.roleDescription},disableSuccessMsg:!0});e.$request(n).asyncThen((function(t){e.handleAddRoleDialogClose(),e.$message({type:"success",message:r?"编辑角色成功":"新增角色成功"}),e.loadPermissionData()})).asyncErrorCatch((function(t){console.error(r?"编辑角色失败":"新增角色失败",t),e.$message.error(t.message||(r?"编辑角色失败":"新增角色失败"))})).finally((function(){e.addRoleSubmitting=!1}))}}))},handleAddRoleDialogClose:function(){this.addRoleDialogVisible=!1,this.addRoleMode="add",this.addRoleFormData={roleName:"",roleCode:"",roleDescription:"",roleId:""},this.$refs.addRoleForm&&this.$refs.addRoleForm.clearValidate()},handlePermissionConfig:function(e){var t=this;this.dialogMode="edit";var r=e.rowId||e.id||"";this.formData={roleName:e.roleName||"",rowId:r,permissions:[]},this.resetAllPermissions(),this.menuTreeData&&0!==this.menuTreeData.length||this.buildMenuTree(),this.dialogVisible=!0,this.loadRolePermissionDetail(r),this.$nextTick((function(){t.$refs.form&&t.$refs.form.clearValidate()}))},loadRolePermissionDetail:function(e){var t=this;if(e){var r=Oee(Oee({},et.GET_ROLE_CONTROL_LIST),{},{params:{roleID:e},disableSuccessMsg:!0});this.$request(r).asyncThen((function(e){var r=[];e&&e.data&&(Array.isArray(e.data)?r=e.data:e.data.result&&Array.isArray(e.data.result)?r=e.data.result:e.data.data&&Array.isArray(e.data.data)&&(r=e.data.data)),console.log("加载到的权限数据:",r),r.length>0?t.setPermissionsFromData(r):t.pendingPermissions=[]})).asyncErrorCatch((function(e){console.error("加载权限详情失败:",e)}))}},handlePersonConfig:function(e){console.log("打开人员管理页面:",e),this.currentRoleId=e.rowId||e.id||"",this.currentRoleName=e.roleName||"",this.showRoleMemberManagement=!0},handleBackFromRoleMember:function(){console.log("从人员管理页面返回"),this.showRoleMemberManagement=!1,this.currentRoleId="",this.currentRoleName=""},handleConfigTypeChange:function(e){var t=this;if("department"===e){var r=this.personConfigFormData.department;if(Array.isArray(r)&&r.length>0){var a=!Array.isArray(r[0]);if(a){var n=r.map((function(e){return null==e?"":String(e)}));this.personConfigFormData.selectDeptIds=n}}}this.$nextTick((function(){t.$refs.personConfigForm&&t.$refs.personConfigForm.clearValidate()}))},loadDepartmentList:function(){var e=this,t=Oee(Oee({},et.GET_DEPT_OF_USER),{},{disableSuccessMsg:!0});this.$request(t).asyncThen((function(t){var r=[];t&&t.data&&(r=t.data),e.departmentList=e.formatDepartmentTreeData(r)})).asyncErrorCatch((function(t){console.error("加载部门列表失败:",t),e.departmentList=[]}))},formatDepartmentTreeData:function(e){if(!Array.isArray(e))return[];var t=function e(t){var r={id:t.id,name:t.name||t.label||t.deptName||""};return t.children&&Array.isArray(t.children)&&t.children.length>0&&(r.children=t.children.map((function(t){return e(t)}))),r};return e.map((function(e){return t(e)}))},handlePersonDepartmentChange:function(e){var t=this;"department"===this.personConfigFormData.configType?this.$nextTick((function(){t.$refs.personConfigForm&&t.$refs.personConfigForm.validateField("department")})):e&&Array.isArray(e)&&e.length>0?(this.personConfigFormData.selectDeptId=e[e.length-1],this.personConfigFormData.selectDeptName=this.getDepartmentPathName(this.personConfigFormData.selectDeptId),this.personConfigFormData.person=[],this.personOptions=[]):(this.personConfigFormData.selectDeptId="",this.personConfigFormData.selectDeptName="",this.personConfigFormData.person=[],this.personOptions=[])},queryPersonByDepartment:function(e){var t=this;if(e&&""!==e.trim())this.personSearchTimer&&clearTimeout(this.personSearchTimer),this.personSearchTimer=setTimeout((function(){var r=e.trim();if(r){t.personSearchLoading=!0;var a=Oee(Oee({},et.GET_ALLUSERS),{},{params:{name:r},disableSuccessMsg:!0});t.currentPersonRequest=t.$request(a),t.currentPersonRequest.asyncThen((function(e){var r=e&&e.data,a=[];Array.isArray(r)?a=r:r&&Array.isArray(r.result)?a=r.result:r&&r.data&&Array.isArray(r.data)&&(a=r.data);var n=a.map((function(e){return{userId:e.userId||e.id,username:e.username||e.name,userNumber:e.userNumber||e.userId||e.id}})).filter((function(e){return e.userId&&e.userNumber})),i=new Set(t.personConfigFormData.person||[]),o=n.filter((function(e){return!i.has(e.userId)})),s=(t.personOptions||[]).filter((function(e){return e.userId&&t.personConfigFormData.person&&t.personConfigFormData.person.includes(e.userId)})),l=new Map;o.forEach((function(e){e.userId&&!l.has(e.userId)&&l.set(e.userId,e)})),s.forEach((function(e){e.userId&&!l.has(e.userId)&&l.set(e.userId,e)})),t.personOptions=Array.from(l.values()),t.personSearchLoading=!1,t.currentPersonRequest=null})).asyncErrorCatch((function(e){if(console.error("搜索人员失败:",e),t.personConfigFormData.person&&t.personConfigFormData.person.length>0){var r=t.personOptions.filter((function(e){return e.userId&&t.personConfigFormData.person.includes(e.userId)}));t.personOptions=r}else t.personOptions=[];t.personSearchLoading=!1,t.currentPersonRequest=null}))}else t.personOptions=[]}),300);else if(this.personConfigFormData.person&&this.personConfigFormData.person.length>0){var r=this.personOptions.filter((function(e){return e.userId&&t.personConfigFormData.person.includes(e.userId)})),a=this.personConfigFormData.person.filter((function(e){return!r.some((function(t){return t.userId===e}))}));a.length,this.personOptions=r}else this.personOptions=[]},getDepartmentPathName:function(e){if(!e||!this.departmentList||0===this.departmentList.length)return"";var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=bee(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(_ee(n),[o.name]);if(o.id===r)return s;if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null},r=t(this.departmentList,e);return r?r.join("-"):""},getDepartmentPathIds:function(e){if(!e||!this.departmentList||0===this.departmentList.length)return null;var t=function e(t,r){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=bee(t);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=[].concat(_ee(n),[o.id]);if(o.id===r)return s;if(o.children&&o.children.length>0){var l=e(o.children,r,s);if(l)return l}}}catch(c){i.e(c)}finally{i.f()}return null};return t(this.departmentList,e)},handlePersonConfigSubmit:function(){var e=this;this.$refs.personConfigForm.validate((function(t){if(t){e.personConfigSubmitting=!0;var r=(e.personConfigFormData.person||[]).filter((function(e){return e})),a=[];if(e.personConfigFormData.selectDeptIds&&e.personConfigFormData.selectDeptIds.length>0?a=_ee(e.personConfigFormData.selectDeptIds):e.personConfigFormData.department&&Array.isArray(e.personConfigFormData.department)&&e.personConfigFormData.department.length>0&&(a=e.personConfigFormData.department.map((function(e){return Array.isArray(e)&&e.length>0?e[e.length-1]:e})).filter((function(e){return e}))),0===r.length&&0===a.length)return e.$message.warning("department"===e.personConfigFormData.configType?"请至少选择一个部门":"请至少选择一个人员"),void(e.personConfigSubmitting=!1);var n=function(e){return"string"===typeof e&&e.startsWith("ID:")?e.substring(3):e},i=[].concat(_ee(r.map((function(e){return{userOrDeptId:n(e),isDept:0}}))),_ee(a.map((function(e){return{userOrDeptId:n(e),isDept:1}}))));console.log("人员配置数据:",{roleId:e.personConfigFormData.roleId,roleName:e.personConfigFormData.roleName,configType:e.personConfigFormData.configType,userOrDeptIds:i});var o=Oee(Oee({},et.GET_ROLE_PERMISSION_BING),{},{params:{roleId:e.personConfigFormData.roleId,userOrDept:i},disableSuccessMsg:!0});e.$request(o).asyncThen((function(t){e.handlePersonConfigDialogClose(),e.loadPermissionData(),e.$message({type:"success",message:"配置成功"})})).asyncErrorCatch((function(t){console.error("配置失败:",t),e.$message({type:"error",message:"配置失败"})})).finally((function(){e.personConfigSubmitting=!1}))}}))},handlePersonConfigDialogClose:function(){this.personConfigDialogVisible=!1,this.personConfigFormData={configType:"person",department:"",person:[],selectDeptId:"",selectDeptName:"",selectDeptIds:[],roleId:"",roleName:""},this.personOptions=[],this.personSearchKeyword="",this.personToAdd="",this.selectedPersonList=[],this.personSearchTimer&&(clearTimeout(this.personSearchTimer),this.personSearchTimer=null),this.currentPersonRequest=null,this.$refs.personConfigForm&&this.$refs.personConfigForm.clearValidate()},handlePersonSearchInList:function(){},handleAddPersonToList:function(e){if(e){var t=this.personOptions.find((function(t){return t.userId===e}));if(t){var r=this.selectedPersonList.some((function(t){return t.userId===e}));if(r)return this.$message.warning("该人员已在列表中"),void(this.personToAdd="");this.selectedPersonList.push({userId:t.userId,username:t.username,userNumber:t.userNumber}),this.personConfigFormData.person.push(e),this.personToAdd=""}}},handleRemovePersonFromList:function(e){var t=this.selectedPersonList.findIndex((function(t){return t.userId===e.userId}));if(t>-1){this.selectedPersonList.splice(t,1);var r=this.personConfigFormData.person.indexOf(e.userId);r>-1&&this.personConfigFormData.person.splice(r,1)}},handleEdit:function(e){var t=this;this.addRoleMode="edit",this.addRoleDialogVisible=!0,this.addRoleFormData={roleName:e.roleName||"",roleCode:e.roleCode||"",roleDescription:e.roleDescription||"",roleId:e.rowId||e.id||""},this.$nextTick((function(){t.$refs.addRoleForm&&t.$refs.addRoleForm.clearValidate()}))},resetAllPermissions:function(){var e=this;Object.keys(this.nodeMap).forEach((function(t){var r=e.nodeMap[t];r&&r.permissions?(e.$set(r.permissions,"view",!1),e.$set(r.permissions,"edit",!1)):!r||"menu"!==r.type&&"template"!==r.type&&"parameter"!==r.type||e.$set(r,"permissions",{view:!1,edit:!1})}))},extractMenuNameFromPath:function(e){if(!e)return"";var t=e.split("/");return t.length>0?t[t.length-1].trim():e.trim()},setPermissionsFromData:function(e){var t=this,r=Array.isArray(e)?e:[];this.resetAllPermissions(),this.pendingPermissions=r;var a=new Map;r.forEach((function(e){var r=e.permissionPath||"";if(r){a.has(r)||a.set(r,{permissionPath:r,view:!1,edit:!1});var n=a.get(r),i=t.isApprovalFlowMenu(r);1===e.parameterPer||"1"===e.parameterPer||"查看"===e.parameterPer?n.view=!0:2!==e.parameterPer&&"2"!==e.parameterPer&&"编辑"!==e.parameterPer||i||(n.edit=!0)}})),a.forEach((function(e,r){e.edit&&!e.view&&(e.view=!0),Object.keys(t.nodeMap).forEach((function(a){var n=t.nodeMap[a];if(n){var i=t.buildPermissionPath(n);if(i===r){var o={view:e.view||!1,edit:e.edit||!1};"menu"===n.type&&t.isApprovalFlowMenu(n.label)&&(o.edit=!1),o.edit&&!o.view&&(o.view=!0),t.$set(n,"permissions",o),console.log("设置已加载节点权限:",n.id,n.label,n.type,r,o)}}}))})),this.$nextTick((function(){Object.keys(t.nodeMap).forEach((function(e){var r=t.nodeMap[e];if(r&&"subsystem"===r.type&&r.children&&r.children.length>0){var a=r.children,n=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.view})),i=a.every((function(e){var r=t.nodeMap[e.id];return r&&r.permissions&&!0===r.permissions.edit}));r.permissions&&(t.$set(r.permissions,"view",n),t.$set(r.permissions,"edit",i))}})),Object.keys(t.nodeMap).forEach((function(e){var r=t.nodeMap[e];r&&"menu"===r.type&&t.updateMenuPermissionFromChildren(r)}))})),console.log("权限数据已保存,待应用权限数量:",this.pendingPermissions.length,"处理后的权限映射:",Array.from(a.entries()))},applyPendingPermissionsToNode:function(e){var t=this;if(e&&this.pendingPermissions&&0!==this.pendingPermissions.length){var r=this.buildPermissionPath(e);if(r){var a=this.pendingPermissions.filter((function(e){var t=e.permissionPath||"";return t===r}));if(0!==a.length){e.permissions||this.$set(e,"permissions",{view:!1,edit:!1});var n=!1,i=!1;a.forEach((function(e){1===e.parameterPer||"1"===e.parameterPer||"查看"===e.parameterPer?n=!0:2!==e.parameterPer&&"2"!==e.parameterPer&&"编辑"!==e.parameterPer||(i=!0)})),i&&!n&&(n=!0),"menu"===e.type&&this.isApprovalFlowMenu(e.label)&&(i=!1);var o={view:n,edit:i};this.nodeMap[e.id]&&this.$set(this.nodeMap[e.id],"permissions",o),this.$set(e,"permissions",o),console.log("应用权限到节点:",e.id,e.label,e.type,r,o,"匹配的权限:",a),this.$nextTick((function(){"parameter"===e.type?t.updateSubsystemPermissionFromChildren(e):"subsystem"===e.type&&t.updateMenuPermissionFromChildren(e)}))}}}},buildPermissionPath:function(e){if(!e)return"";if("menu"===e.type)return e.label||"";if("subsystem"===e.type){var t=e.menuName||"",r=e.subsystem||e.label||"";return"".concat(t,"/").concat(r)}if("parameter"===e.type){var a=e.menuName||"",n=e.subsystem||"",i=e.partsName||e.parameterName||e.label||"";return"".concat(a,"/").concat(n,"/").concat(i)}if("template"===e.type){var o=e.menuName||"",s=e.templateName||e.label||"";return"".concat(o,"/").concat(s)}return""},collectPermissions:function(){var e=this,t=[],r=this.formData.rowId||"",a=de();return Object.keys(this.nodeMap).forEach((function(n){var i=e.nodeMap[n];if(i){var o=i.permissions||{view:!1,edit:!1};if(o.view||o.edit){var s=e.buildPermissionPath(i);if(s){if(o.view){var l={permissionPath:s,parameterPer:1,userId:a};r&&(l.roleId=r),t.push(l)}if(o.edit&&("menu"!==i.type||!e.isApprovalFlowMenu(i.label))){var c={permissionPath:s,parameterPer:2,userId:a};r&&(c.roleId=r),t.push(c)}}}}})),console.log("收集到的权限:",t),t},handleDialogClose:function(){this.dialogVisible=!1,this.formData={roleName:"",rowId:"",permissions:[]},this.treeFilterText="",this.resetAllPermissions(),this.pendingPermissions=[],this.$refs.form&&this.$refs.form.clearValidate()},handleSubmit:function(){var e=this,t=this.collectPermissions();if(0!==t.length){this.submitting=!0,console.log(t,"permissions");var r=Oee(Oee({},et.EDIT_ROLE_CONTROL_LIST),{},{params:t,disableSuccessMsg:!0});this.$request(r).asyncThen((function(t){e.handleDialogClose(),e.loadPermissionData()})).asyncErrorCatch((function(t){console.error("权限配置失败:",t),e.$message.error(t.message||"权限配置失败")})).finally((function(){e.submitting=!1}))}else this.$message.warning("请至少分配一个权限")},handleDelete:function(e,t){var r=this;this.$confirm("确定要删除该记录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=Oee(Oee({},et.DELETE_ROLE_PERMISSION),{},{params:{roleID:e.roleId||e.id||e.rowId,userID:de()},disableSuccessMsg:!0});r.$request(t).asyncThen((function(e){r.loadPermissionData()})).asyncErrorCatch((function(e){console.error("删除失败:",e),r.$message.error(e.message||"删除失败")}))})).catch((function(){}))},handleSizeChange:function(e){this.pagination.pageSize=e,this.pagination.currentPage=1,this.loadPermissionData()},handleCurrentChange:function(e){this.pagination.currentPage=e,this.loadPermissionData()},handleRefresh:function(){this.pagination.currentPage=1,this.loadPermissionData()},formatDate:function(e){return yee()(e).format("YYYY-MM-DD HH:mm:ss")}}},Nee=kee,Eee=(r("4825"),d(Nee,mee,gee,!1,null,"cb2bc482",null)),Lee=Eee.exports,Ree=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"role-member-management-page custom-page"},[r("div",{staticClass:"page-header"},[r("div",{staticClass:"header-left"},[r("el-button",{staticClass:"back-button",attrs:{type:"text",icon:"el-icon-arrow-left"},on:{click:e.handleBack}},[e._v(" 返回 ")]),r("div",{staticClass:"title-info"},[r("span",{staticClass:"title"},[e._v("人员管理")]),r("span",{staticClass:"role-tip"},[e._v("当前选择角色:"),r("span",{staticClass:"role-name"},[e._v(e._s(e.roleName))])])])],1)]),r("div",{staticClass:"page-content"},[r("div",{staticClass:"search-section"},[r("div",{staticClass:"search-form"},[r("div",{staticClass:"search-item"},[r("span",{staticClass:"label"},[e._v("成员名称")]),r("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入成员名称",clearable:""},model:{value:e.searchForm.memberName,callback:function(t){e.$set(e.searchForm,"memberName",t)},expression:"searchForm.memberName"}})],1),r("div",{staticClass:"search-item"},[r("span",{staticClass:"label"},[e._v("成员编码")]),r("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入成员编码",clearable:""},model:{value:e.searchForm.memberCode,callback:function(t){e.$set(e.searchForm,"memberCode",t)},expression:"searchForm.memberCode"}})],1),r("div",{staticClass:"search-item"},[r("span",{staticClass:"label"},[e._v("部门")]),r("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入部门",clearable:""},model:{value:e.searchForm.department,callback:function(t){e.$set(e.searchForm,"department",t)},expression:"searchForm.department"}})],1),r("div",{staticClass:"search-actions"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 查询 ")]),r("el-button",{on:{click:e.handleReset}},[e._v(" 重置 ")])],1)])]),r("div",{staticClass:"action-section"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleAddMember}},[e._v(" 添加成员 ")]),r("el-button",{attrs:{disabled:0===e.selectedMembers.length},on:{click:e.handleDeleteMember}},[e._v(" 删除成员 ")])],1),r("div",{staticClass:"table-section"},[r("el-table",{ref:"memberTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),r("el-table-column",{attrs:{type:"index",label:"序号",width:"60",align:"center"}}),r("el-table-column",{attrs:{prop:"username",label:"成员名称","min-width":"120",align:"center"}}),r("el-table-column",{attrs:{prop:"userNumber",label:"成员编码","min-width":"120",align:"center"}}),r("el-table-column",{attrs:{label:"部门","min-width":"200",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(" "+e._s(e.formatDepartment(r))+" ")]}}])})],1),r("div",{staticClass:"pagination-section"},[r("el-pagination",{attrs:{"current-page":e.pagination.currentPage,"page-sizes":[10,20,50,100],"page-size":e.pagination.pageSize,total:e.pagination.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)]),r("el-dialog",{attrs:{title:"添加成员",visible:e.addMemberDialogVisible,width:"600px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.addMemberDialogVisible=t},close:e.handleAddMemberDialogClose}},[r("el-form",{ref:"addMemberForm",attrs:{model:e.addMemberFormData,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"搜索人员:"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"",multiple:"","reserve-keyword":"",placeholder:"请输入人员姓名进行搜索","remote-method":e.queryPerson,loading:e.personSearchLoading},model:{value:e.addMemberFormData.selectedUsers,callback:function(t){e.$set(e.addMemberFormData,"selectedUsers",t)},expression:"addMemberFormData.selectedUsers"}},e._l(e.personOptions,(function(t){return r("el-option",{key:t.userNumber,attrs:{value:t.userId,label:t.username}},[r("span",[e._v(e._s(t.username))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"12px"}},[e._v(e._s(t.userNumber))])])})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.handleAddMemberDialogClose}},[e._v(" 取消 ")]),r("el-button",{attrs:{type:"primary",loading:e.addMemberSubmitting},on:{click:e.handleAddMemberSubmit}},[e._v(" 确定 ")])],1)],1)],1)},Fee=[];function jee(e){return jee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jee(e)}function Vee(e){return Gee(e)||zee(e)||Bee(e)||$ee()}function $ee(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bee(e,t){if(e){if("string"===typeof e)return Uee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Uee(e,t):void 0}}function zee(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Gee(e){if(Array.isArray(e))return Uee(e)}function Uee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);re.length)&&(t=e.length);for(var r=0,a=new Array(t);r