diff --git a/pig-register/pom.xml b/pig-register/pom.xml index 9c81b7d4..92d832a7 100755 --- a/pig-register/pom.xml +++ b/pig-register/pom.xml @@ -27,7 +27,7 @@ nacos 注册配置中心 - 2.0.2 + 2.0.3 diff --git a/pig-register/src/main/java/com/alibaba/nacos/config/ConsoleConfig.java b/pig-register/src/main/java/com/alibaba/nacos/config/ConsoleConfig.java index 76d295fe..0efda00e 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/config/ConsoleConfig.java +++ b/pig-register/src/main/java/com/alibaba/nacos/config/ConsoleConfig.java @@ -16,10 +16,6 @@ package com.alibaba.nacos.config; -import java.time.ZoneId; - -import javax.annotation.PostConstruct; - import com.alibaba.nacos.core.code.ControllerMethodsCache; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; @@ -31,6 +27,9 @@ import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.cors.UrlBasedCorsConfigurationSource; import org.springframework.web.filter.CorsFilter; +import javax.annotation.PostConstruct; +import java.time.ZoneId; + /** * Console config. * @@ -74,5 +73,4 @@ public class ConsoleConfig { public Jackson2ObjectMapperBuilderCustomizer jacksonObjectMapperCustomization() { return jacksonObjectMapperBuilder -> jacksonObjectMapperBuilder.timeZone(ZoneId.systemDefault().toString()); } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/controller/HealthController.java b/pig-register/src/main/java/com/alibaba/nacos/controller/HealthController.java index 4cb798ac..72d72c94 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/controller/HealthController.java +++ b/pig-register/src/main/java/com/alibaba/nacos/controller/HealthController.java @@ -51,10 +51,10 @@ public class HealthController { } /** - * Whether the Nacos is in broken states or not, and cannot recover except by being - * restarted. - * @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code - * equal to 500 indicates that Nacos is in broken states. + * Whether the Nacos is in broken states or not, and cannot recover except by being restarted. + * + * @return HTTP code equal to 200 indicates that Nacos is in right states. HTTP code equal to 500 indicates that + * Nacos is in broken states. */ @GetMapping("/liveness") public ResponseEntity liveness() { @@ -63,8 +63,9 @@ public class HealthController { /** * Ready to receive the request or not. - * @return HTTP code equal to 200 indicates that Nacos is ready. HTTP code equal to - * 500 indicates that Nacos is not ready. + * + * @return HTTP code equal to 200 indicates that Nacos is ready. HTTP code equal to 500 indicates that Nacos is not + * ready. */ @GetMapping("/readiness") public ResponseEntity readiness(HttpServletRequest request) { @@ -76,8 +77,7 @@ public class HealthController { } if (!isConfigReadiness && !isNamingReadiness) { - return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR) - .body("Config and Naming are not in readiness"); + return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("Config and Naming are not in readiness"); } if (!isConfigReadiness) { @@ -92,8 +92,7 @@ public class HealthController { try { persistService.configInfoCount(""); return true; - } - catch (Exception e) { + } catch (Exception e) { LOGGER.error("Config health check fail.", e); } return false; @@ -103,11 +102,9 @@ public class HealthController { try { apiCommands.metrics(request); return true; - } - catch (Exception e) { + } catch (Exception e) { LOGGER.error("Naming health check fail.", e); } return false; } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/controller/NamespaceController.java b/pig-register/src/main/java/com/alibaba/nacos/controller/NamespaceController.java index 6a9d6070..c6f39f7e 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/controller/NamespaceController.java +++ b/pig-register/src/main/java/com/alibaba/nacos/controller/NamespaceController.java @@ -20,15 +20,21 @@ import com.alibaba.nacos.auth.annotation.Secured; import com.alibaba.nacos.auth.common.ActionTypes; import com.alibaba.nacos.common.model.RestResult; import com.alibaba.nacos.common.model.RestResultUtils; +import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.config.server.model.TenantInfo; import com.alibaba.nacos.config.server.service.repository.PersistService; import com.alibaba.nacos.enums.NamespaceTypeEnum; import com.alibaba.nacos.model.Namespace; import com.alibaba.nacos.model.NamespaceAllInfo; import com.alibaba.nacos.security.nacos.NacosAuthConfig; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -69,7 +75,8 @@ public class NamespaceController { /** * Get namespace list. - * @param request request + * + * @param request request * @param response response * @return namespace list */ @@ -77,8 +84,8 @@ public class NamespaceController { public RestResult> getNamespaces(HttpServletRequest request, HttpServletResponse response) { // TODO 获取用kp List tenantInfos = persistService.findTenantByKp(DEFAULT_KP); - Namespace namespace0 = new Namespace("", DEFAULT_NAMESPACE, DEFAULT_QUOTA, - persistService.configInfoCount(DEFAULT_TENANT), NamespaceTypeEnum.GLOBAL.getType()); + Namespace namespace0 = new Namespace("", DEFAULT_NAMESPACE, DEFAULT_QUOTA, persistService.configInfoCount(DEFAULT_TENANT), + NamespaceTypeEnum.GLOBAL.getType()); List namespaces = new ArrayList(); namespaces.add(namespace0); for (TenantInfo tenantInfo : tenantInfos) { @@ -92,32 +99,32 @@ public class NamespaceController { /** * get namespace all info by namespace id. - * @param request request - * @param response response + * + * @param request request + * @param response response * @param namespaceId namespaceId * @return namespace all info */ @GetMapping(params = "show=all") public NamespaceAllInfo getNamespace(HttpServletRequest request, HttpServletResponse response, - @RequestParam("namespaceId") String namespaceId) { + @RequestParam("namespaceId") String namespaceId) { // TODO 获取用kp if (StringUtils.isBlank(namespaceId)) { - return new NamespaceAllInfo(namespaceId, DEFAULT_NAMESPACE_SHOW_NAME, DEFAULT_QUOTA, - persistService.configInfoCount(DEFAULT_TENANT), NamespaceTypeEnum.GLOBAL.getType(), - DEFAULT_NAMESPACE_DESCRIPTION); - } - else { + return new NamespaceAllInfo(namespaceId, DEFAULT_NAMESPACE_SHOW_NAME, DEFAULT_QUOTA, persistService.configInfoCount(DEFAULT_TENANT), + NamespaceTypeEnum.GLOBAL.getType(), DEFAULT_NAMESPACE_DESCRIPTION); + } else { TenantInfo tenantInfo = persistService.findTenantByKp(DEFAULT_KP, namespaceId); int configCount = persistService.configInfoCount(namespaceId); - return new NamespaceAllInfo(namespaceId, tenantInfo.getTenantName(), DEFAULT_QUOTA, configCount, - NamespaceTypeEnum.CUSTOM.getType(), tenantInfo.getTenantDesc()); + return new NamespaceAllInfo(namespaceId, tenantInfo.getTenantName(), DEFAULT_QUOTA, configCount, NamespaceTypeEnum.CUSTOM.getType(), + tenantInfo.getTenantDesc()); } } /** * create namespace. - * @param request request - * @param response response + * + * @param request request + * @param response response * @param namespaceName namespace Name * @param namespaceDesc namespace Desc * @return whether create ok @@ -125,13 +132,12 @@ public class NamespaceController { @PostMapping @Secured(resource = NacosAuthConfig.CONSOLE_RESOURCE_NAME_PREFIX + "namespaces", action = ActionTypes.WRITE) public Boolean createNamespace(HttpServletRequest request, HttpServletResponse response, - @RequestParam("customNamespaceId") String namespaceId, @RequestParam("namespaceName") String namespaceName, - @RequestParam(value = "namespaceDesc", required = false) String namespaceDesc) { + @RequestParam("customNamespaceId") String namespaceId, @RequestParam("namespaceName") String namespaceName, + @RequestParam(value = "namespaceDesc", required = false) String namespaceDesc) { // TODO 获取用kp if (StringUtils.isBlank(namespaceId)) { namespaceId = UUID.randomUUID().toString(); - } - else { + } else { namespaceId = namespaceId.trim(); if (!namespaceIdCheckPattern.matcher(namespaceId).matches()) { return false; @@ -143,13 +149,14 @@ public class NamespaceController { return false; } } - persistService.insertTenantInfoAtomic(DEFAULT_KP, namespaceId, namespaceName, namespaceDesc, - DEFAULT_CREATE_SOURCE, System.currentTimeMillis()); + persistService.insertTenantInfoAtomic(DEFAULT_KP, namespaceId, namespaceName, namespaceDesc, DEFAULT_CREATE_SOURCE, + System.currentTimeMillis()); return true; } /** * check namespaceId exist. + * * @param namespaceId namespace id * @return true if exist, otherwise false */ @@ -163,16 +170,17 @@ public class NamespaceController { /** * edit namespace. - * @param namespace namespace + * + * @param namespace namespace * @param namespaceShowName namespace ShowName - * @param namespaceDesc namespace Desc + * @param namespaceDesc namespace Desc * @return whether edit ok */ @PutMapping @Secured(resource = NacosAuthConfig.CONSOLE_RESOURCE_NAME_PREFIX + "namespaces", action = ActionTypes.WRITE) public Boolean editNamespace(@RequestParam("namespace") String namespace, - @RequestParam("namespaceShowName") String namespaceShowName, - @RequestParam(value = "namespaceDesc", required = false) String namespaceDesc) { + @RequestParam("namespaceShowName") String namespaceShowName, + @RequestParam(value = "namespaceDesc", required = false) String namespaceDesc) { // TODO 获取用kp persistService.updateTenantNameAtomic(DEFAULT_KP, namespace, namespaceShowName, namespaceDesc); return true; @@ -180,15 +188,16 @@ public class NamespaceController { /** * del namespace by id. - * @param request request - * @param response response + * + * @param request request + * @param response response * @param namespaceId namespace Id * @return whether del ok */ @DeleteMapping @Secured(resource = NacosAuthConfig.CONSOLE_RESOURCE_NAME_PREFIX + "namespaces", action = ActionTypes.WRITE) public Boolean deleteConfig(HttpServletRequest request, HttpServletResponse response, - @RequestParam("namespaceId") String namespaceId) { + @RequestParam("namespaceId") String namespaceId) { persistService.removeTenantInfoAtomic(DEFAULT_KP, namespaceId); return true; } diff --git a/pig-register/src/main/java/com/alibaba/nacos/controller/PermissionController.java b/pig-register/src/main/java/com/alibaba/nacos/controller/PermissionController.java index 74cc79e1..e76ac193 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/controller/PermissionController.java +++ b/pig-register/src/main/java/com/alibaba/nacos/controller/PermissionController.java @@ -19,9 +19,9 @@ package com.alibaba.nacos.controller; import com.alibaba.nacos.auth.annotation.Secured; import com.alibaba.nacos.auth.common.ActionTypes; import com.alibaba.nacos.common.model.RestResultUtils; +import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.security.nacos.NacosAuthConfig; import com.alibaba.nacos.security.nacos.roles.NacosRoleServiceImpl; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; @@ -45,23 +45,25 @@ public class PermissionController { /** * Query permissions of a role. - * @param role the role - * @param pageNo page index + * + * @param role the role + * @param pageNo page index * @param pageSize page size * @return permission of a role */ @GetMapping @Secured(resource = NacosAuthConfig.CONSOLE_RESOURCE_NAME_PREFIX + "permissions", action = ActionTypes.READ) public Object getPermissions(@RequestParam int pageNo, @RequestParam int pageSize, - @RequestParam(name = "role", defaultValue = StringUtils.EMPTY) String role) { + @RequestParam(name = "role", defaultValue = StringUtils.EMPTY) String role) { return nacosRoleService.getPermissionsFromDatabase(role, pageNo, pageSize); } /** * Add a permission to a role. - * @param role the role + * + * @param role the role * @param resource the related resource - * @param action the related action + * @param action the related action * @return ok if succeed */ @PostMapping @@ -73,17 +75,17 @@ public class PermissionController { /** * Delete a permission from a role. - * @param role the role + * + * @param role the role * @param resource the related resource - * @param action the related action + * @param action the related action * @return ok if succeed */ @DeleteMapping @Secured(resource = NacosAuthConfig.CONSOLE_RESOURCE_NAME_PREFIX + "permissions", action = ActionTypes.WRITE) public Object deletePermission(@RequestParam String role, @RequestParam String resource, - @RequestParam String action) { + @RequestParam String action) { nacosRoleService.deletePermission(role, resource, action); return RestResultUtils.success("delete permission ok!"); } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/controller/RoleController.java b/pig-register/src/main/java/com/alibaba/nacos/controller/RoleController.java index 5c31c376..49744ffc 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/controller/RoleController.java +++ b/pig-register/src/main/java/com/alibaba/nacos/controller/RoleController.java @@ -19,9 +19,9 @@ package com.alibaba.nacos.controller; import com.alibaba.nacos.auth.annotation.Secured; import com.alibaba.nacos.auth.common.ActionTypes; import com.alibaba.nacos.common.model.RestResultUtils; +import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.security.nacos.NacosAuthConfig; import com.alibaba.nacos.security.nacos.roles.NacosRoleServiceImpl; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; @@ -47,7 +47,8 @@ public class RoleController { /** * Get roles list. - * @param pageNo number index of page + * + * @param pageNo number index of page * @param pageSize page size * @param username optional, username of user * @return role list @@ -55,12 +56,13 @@ public class RoleController { @GetMapping @Secured(resource = NacosAuthConfig.CONSOLE_RESOURCE_NAME_PREFIX + "roles", action = ActionTypes.READ) public Object getRoles(@RequestParam int pageNo, @RequestParam int pageSize, - @RequestParam(name = "username", defaultValue = "") String username) { + @RequestParam(name = "username", defaultValue = "") String username) { return roleService.getRolesFromDatabase(username, pageNo, pageSize); } /** * Fuzzy matching role name . + * * @param role role id * @return role list */ @@ -73,10 +75,9 @@ public class RoleController { /** * Add a role to a user * - *

- * This method is used for 2 functions: 1. create a role and bind it to GLOBAL_ADMIN. - * 2. bind a role to an user. - * @param role role name + *

This method is used for 2 functions: 1. create a role and bind it to GLOBAL_ADMIN. 2. bind a role to an user. + * + * @param role role name * @param username username * @return Code 200 and message 'add role ok!' */ @@ -89,18 +90,18 @@ public class RoleController { /** * Delete a role. If no username is specified, all users under this role are deleted. - * @param role role + * + * @param role role * @param username username * @return ok if succeed */ @DeleteMapping @Secured(resource = NacosAuthConfig.CONSOLE_RESOURCE_NAME_PREFIX + "roles", action = ActionTypes.WRITE) public Object deleteRole(@RequestParam String role, - @RequestParam(name = "username", defaultValue = StringUtils.EMPTY) String username) { + @RequestParam(name = "username", defaultValue = StringUtils.EMPTY) String username) { if (StringUtils.isBlank(username)) { roleService.deleteRole(role); - } - else { + } else { roleService.deleteRole(role, username); } return RestResultUtils.success("delete role of user " + username + " ok!"); diff --git a/pig-register/src/main/java/com/alibaba/nacos/controller/ServerStateController.java b/pig-register/src/main/java/com/alibaba/nacos/controller/ServerStateController.java index 1ed07f9d..e1431785 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/controller/ServerStateController.java +++ b/pig-register/src/main/java/com/alibaba/nacos/controller/ServerStateController.java @@ -37,6 +37,7 @@ public class ServerStateController { /** * Get server state of current server. + * * @return state json. */ @GetMapping("/state") diff --git a/pig-register/src/main/java/com/alibaba/nacos/controller/UserController.java b/pig-register/src/main/java/com/alibaba/nacos/controller/UserController.java index 8f40fd64..e48b8672 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/controller/UserController.java +++ b/pig-register/src/main/java/com/alibaba/nacos/controller/UserController.java @@ -25,7 +25,6 @@ import com.alibaba.nacos.auth.exception.AccessException; import com.alibaba.nacos.common.model.RestResult; import com.alibaba.nacos.common.model.RestResultUtils; import com.alibaba.nacos.common.utils.JacksonUtils; -import com.alibaba.nacos.common.utils.Objects; import com.alibaba.nacos.config.server.auth.RoleInfo; import com.alibaba.nacos.config.server.model.User; import com.alibaba.nacos.config.server.utils.RequestUtil; @@ -57,6 +56,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.List; +import java.util.Objects; /** * User related methods entry. @@ -65,7 +65,7 @@ import java.util.List; * @author nkorange */ @RestController("user") -@RequestMapping({ "/v1/auth", "/v1/auth/users" }) +@RequestMapping({"/v1/auth", "/v1/auth/users"}) public class UserController { @Autowired @@ -88,6 +88,7 @@ public class UserController { /** * Create a new user. + * * @param username username * @param password password * @return ok if create succeed @@ -108,6 +109,7 @@ public class UserController { /** * Delete an existed user. + * * @param username username of user * @return ok if deleted succeed, keep silent if user not exist * @since 1.2.0 @@ -129,7 +131,8 @@ public class UserController { /** * Update an user. - * @param username username of user + * + * @param username username of user * @param newPassword new password of user * @param response http response * @param request http request @@ -140,7 +143,7 @@ public class UserController { @PutMapping @Secured(resource = NacosAuthConfig.UPDATE_PASSWORD_ENTRY_POINT, action = ActionTypes.WRITE) public Object updateUser(@RequestParam String username, @RequestParam String newPassword, - HttpServletResponse response, HttpServletRequest request) throws IOException { + HttpServletResponse response, HttpServletRequest request) throws IOException { // admin or same user if (!hasPermission(username, request)) { response.sendError(HttpServletResponse.SC_FORBIDDEN, "authorization failed!"); @@ -175,7 +178,8 @@ public class UserController { /** * Get paged users. - * @param pageNo number index of page + * + * @param pageNo number index of page * @param pageSize size of page * @return A collection of users, empty set if no user is found * @since 1.2.0 @@ -189,21 +193,21 @@ public class UserController { /** * Login to Nacos * - *

- * This methods uses username and password to require a new token. + *

This methods uses username and password to require a new token. + * * @param username username of user * @param password password * @param response http response - * @param request http request + * @param request http request * @return new token of the user * @throws AccessException if user info is incorrect */ @PostMapping("/login") public Object login(@RequestParam String username, @RequestParam String password, HttpServletResponse response, - HttpServletRequest request) throws AccessException { + HttpServletRequest request) throws AccessException { - if (AuthSystemTypes.NACOS.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType()) - || AuthSystemTypes.LDAP.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { + if (AuthSystemTypes.NACOS.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType()) || AuthSystemTypes.LDAP + .name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { NacosUser user = (NacosUser) authManager.login(request); response.addHeader(NacosAuthConfig.AUTHORIZATION_HEADER, NacosAuthConfig.TOKEN_PREFIX + user.getToken()); @@ -216,14 +220,12 @@ public class UserController { return result; } - // create Authentication class through username and password, the implement class - // is UsernamePasswordAuthenticationToken + // create Authentication class through username and password, the implement class is UsernamePasswordAuthenticationToken UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password); try { - // use the method authenticate of AuthenticationManager(default implement is - // ProviderManager) to valid Authentication + // use the method authenticate of AuthenticationManager(default implement is ProviderManager) to valid Authentication Authentication authentication = authenticationManager.authenticate(authenticationToken); // bind SecurityContext to Authentication SecurityContextHolder.getContext().setAuthentication(authentication); @@ -232,23 +234,22 @@ public class UserController { // write Token to Http header response.addHeader(NacosAuthConfig.AUTHORIZATION_HEADER, "Bearer " + token); return RestResultUtils.success("Bearer " + token); - } - catch (BadCredentialsException authentication) { + } catch (BadCredentialsException authentication) { return RestResultUtils.failed(HttpStatus.UNAUTHORIZED.value(), null, "Login failed"); } } /** * Update password. + * * @param oldPassword old password * @param newPassword new password - * @return Code 200 if update successfully, Code 401 if old password invalid, - * otherwise 500 + * @return Code 200 if update successfully, Code 401 if old password invalid, otherwise 500 */ @PutMapping("/password") @Deprecated public RestResult updatePassword(@RequestParam(value = "oldPassword") String oldPassword, - @RequestParam(value = "newPassword") String newPassword) { + @RequestParam(value = "newPassword") String newPassword) { Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal(); String username = ((UserDetails) principal).getUsername(); User user = userDetailsService.getUserFromDatabase(username); @@ -261,14 +262,15 @@ public class UserController { return RestResultUtils.success("Update password success"); } return RestResultUtils.failed(HttpStatus.UNAUTHORIZED.value(), "Old password is invalid"); - } - catch (Exception e) { + } catch (Exception e) { return RestResultUtils.failed(HttpStatus.INTERNAL_SERVER_ERROR.value(), "Update userpassword failed"); } } + /** * Fuzzy matching username. + * * @param username username * @return Matched username */ @@ -277,5 +279,4 @@ public class UserController { public List searchUsersLikeUsername(@RequestParam String username) { return userDetailsService.findUserLikeUsername(username); } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/enums/NamespaceTypeEnum.java b/pig-register/src/main/java/com/alibaba/nacos/enums/NamespaceTypeEnum.java index a82a39b2..a40e526a 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/enums/NamespaceTypeEnum.java +++ b/pig-register/src/main/java/com/alibaba/nacos/enums/NamespaceTypeEnum.java @@ -17,8 +17,8 @@ package com.alibaba.nacos.enums; /** - * the enum of namespace. 0 : Global configuration, 1 : Default private namespace ,2 : - * Custom namespace. + * the enum of namespace. + * 0 : Global configuration, 1 : Default private namespace ,2 : Custom namespace. * * @author chenglu * @date 2021-05-25 17:01 @@ -62,5 +62,4 @@ public enum NamespaceTypeEnum { public String getDescription() { return description; } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/exception/ConsoleExceptionHandler.java b/pig-register/src/main/java/com/alibaba/nacos/exception/ConsoleExceptionHandler.java index 092c1c4f..338c7da5 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/exception/ConsoleExceptionHandler.java +++ b/pig-register/src/main/java/com/alibaba/nacos/exception/ConsoleExceptionHandler.java @@ -51,5 +51,4 @@ public class ConsoleExceptionHandler { LOGGER.error("CONSOLE", e); return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(ExceptionUtil.getAllExceptionMsg(e)); } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/filter/JwtAuthenticationTokenFilter.java b/pig-register/src/main/java/com/alibaba/nacos/filter/JwtAuthenticationTokenFilter.java index 1f90c816..835d77f7 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/filter/JwtAuthenticationTokenFilter.java +++ b/pig-register/src/main/java/com/alibaba/nacos/filter/JwtAuthenticationTokenFilter.java @@ -17,9 +17,9 @@ package com.alibaba.nacos.filter; import com.alibaba.nacos.api.common.Constants; +import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.security.nacos.JwtTokenManager; import com.alibaba.nacos.security.nacos.NacosAuthConfig; -import org.apache.commons.lang3.StringUtils; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.web.filter.OncePerRequestFilter; @@ -73,5 +73,4 @@ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter { } return null; } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/model/NamespaceAllInfo.java b/pig-register/src/main/java/com/alibaba/nacos/model/NamespaceAllInfo.java index 3ffb5f84..515ce2c6 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/model/NamespaceAllInfo.java +++ b/pig-register/src/main/java/com/alibaba/nacos/model/NamespaceAllInfo.java @@ -37,7 +37,7 @@ public class NamespaceAllInfo extends Namespace { } public NamespaceAllInfo(String namespace, String namespaceShowName, int quota, int configCount, int type, - String namespaceDesc) { + String namespaceDesc) { super(namespace, namespaceShowName, quota, configCount, type); this.namespaceDesc = namespaceDesc; } diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/JwtAuthenticationEntryPoint.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/JwtAuthenticationEntryPoint.java index f340adf7..99df10e1 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/JwtAuthenticationEntryPoint.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/JwtAuthenticationEntryPoint.java @@ -43,5 +43,4 @@ public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint { LOGGER.error("Responding with unauthorized error. Message:{}, url:{}", e.getMessage(), request.getRequestURI()); response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized"); } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/JwtTokenManager.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/JwtTokenManager.java index c908b9bf..c2df43b3 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/JwtTokenManager.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/JwtTokenManager.java @@ -48,6 +48,7 @@ public class JwtTokenManager { /** * Create token. + * * @param authentication auth info * @return token */ @@ -57,6 +58,7 @@ public class JwtTokenManager { /** * Create token. + * * @param userName auth info * @return token */ @@ -74,6 +76,7 @@ public class JwtTokenManager { /** * Get auth Info. + * * @param token token * @return auth info */ @@ -90,6 +93,7 @@ public class JwtTokenManager { /** * validate token. + * * @param token token */ public void validateToken(String token) { diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/LdapAuthenticationProvider.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/LdapAuthenticationProvider.java index 45e0e0b5..1f902318 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/LdapAuthenticationProvider.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/LdapAuthenticationProvider.java @@ -89,8 +89,7 @@ public class LdapAuthenticationProvider implements AuthenticationProvider { UserDetails userDetails = userDetailsService.loadUserByUsername(username); if (PasswordEncoderUtil.matches(password, userDetails.getPassword())) { return new UsernamePasswordAuthenticationToken(userDetails, password, userDetails.getAuthorities()); - } - else { + } else { return null; } } @@ -102,8 +101,7 @@ public class LdapAuthenticationProvider implements AuthenticationProvider { UserDetails userDetails; try { userDetails = userDetailsService.loadUserByUsername(LDAP_PREFIX + username); - } - catch (UsernameNotFoundException exception) { + } catch (UsernameNotFoundException exception) { String nacosPassword = PasswordEncoderUtil.encode(DEFAULT_PASSWORD); userDetailsService.createUser(LDAP_PREFIX + username, nacosPassword); User user = new User(); @@ -139,15 +137,16 @@ public class LdapAuthenticationProvider implements AuthenticationProvider { LdapContext ctx = null; try { ctx = new InitialLdapContext(env, null); - } - catch (CommunicationException e) { + } catch (CommunicationException e) { + LOG.error("LDAP Service connect timeout:{}", e.getMessage()); throw new RuntimeException("LDAP Service connect timeout"); - } - catch (Exception e) { + } catch (javax.naming.AuthenticationException e) { + LOG.error("login error:{}", e.getMessage()); + throw new RuntimeException("login error!"); + } catch (Exception e) { LOG.warn("Exception cause by:{}", e.getMessage()); return false; - } - finally { + } finally { closeContext(ctx); } return true; @@ -162,11 +161,9 @@ public class LdapAuthenticationProvider implements AuthenticationProvider { if (ctx != null) { try { ctx.close(); - } - catch (Exception e) { + } catch (Exception e) { LOG.error("Exception closing context", e); } } } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/NacosAuthConfig.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/NacosAuthConfig.java index 0a0dcd1b..58b06e7c 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/NacosAuthConfig.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/NacosAuthConfig.java @@ -18,9 +18,9 @@ package com.alibaba.nacos.security.nacos; import com.alibaba.nacos.auth.common.AuthConfigs; import com.alibaba.nacos.auth.common.AuthSystemTypes; +import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.filter.JwtAuthenticationTokenFilter; import com.alibaba.nacos.security.nacos.users.NacosUserDetailsServiceImpl; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.core.env.Environment; @@ -90,8 +90,7 @@ public class NacosAuthConfig extends WebSecurityConfigurerAdapter { String ignoreUrls = null; if (AuthSystemTypes.NACOS.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { ignoreUrls = DEFAULT_ALL_PATH_PATTERN; - } - else if (AuthSystemTypes.LDAP.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { + } else if (AuthSystemTypes.LDAP.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { ignoreUrls = DEFAULT_ALL_PATH_PATTERN; } if (StringUtils.isBlank(authConfigs.getNacosAuthSystemType())) { @@ -108,8 +107,7 @@ public class NacosAuthConfig extends WebSecurityConfigurerAdapter { protected void configure(AuthenticationManagerBuilder auth) throws Exception { if (AuthSystemTypes.NACOS.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder()); - } - else if (AuthSystemTypes.LDAP.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { + } else if (AuthSystemTypes.LDAP.name().equalsIgnoreCase(authConfigs.getNacosAuthSystemType())) { auth.authenticationProvider(ldapAuthenticationProvider); } } @@ -119,11 +117,11 @@ public class NacosAuthConfig extends WebSecurityConfigurerAdapter { if (StringUtils.isBlank(authConfigs.getNacosAuthSystemType())) { http.csrf().disable().cors()// We don't need CSRF for JWT based authentication - .and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() - .authorizeRequests().requestMatchers(CorsUtils::isPreFlightRequest).permitAll() - .antMatchers(LOGIN_ENTRY_POINT).permitAll().and().authorizeRequests() - .antMatchers(TOKEN_BASED_AUTH_ENTRY_POINT).authenticated().and().exceptionHandling() - .authenticationEntryPoint(new JwtAuthenticationEntryPoint()); + .and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) + .and().authorizeRequests().requestMatchers(CorsUtils::isPreFlightRequest).permitAll() + .antMatchers(LOGIN_ENTRY_POINT).permitAll() + .and().authorizeRequests().antMatchers(TOKEN_BASED_AUTH_ENTRY_POINT).authenticated() + .and().exceptionHandling().authenticationEntryPoint(new JwtAuthenticationEntryPoint()); // disable cache http.headers().cacheControl(); diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/NacosAuthManager.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/NacosAuthManager.java index 14ae7ad5..1105b3d4 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/NacosAuthManager.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/NacosAuthManager.java @@ -22,13 +22,13 @@ import com.alibaba.nacos.auth.AuthManager; import com.alibaba.nacos.auth.exception.AccessException; import com.alibaba.nacos.auth.model.Permission; import com.alibaba.nacos.auth.model.User; +import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.config.server.auth.RoleInfo; import com.alibaba.nacos.config.server.utils.RequestUtil; import com.alibaba.nacos.core.utils.Loggers; import com.alibaba.nacos.security.nacos.roles.NacosRoleServiceImpl; import com.alibaba.nacos.security.nacos.users.NacosUser; import io.jsonwebtoken.ExpiredJwtException; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; @@ -74,11 +74,9 @@ public class NacosAuthManager implements AuthManager { try { tokenManager.validateToken(token); - } - catch (ExpiredJwtException e) { + } catch (ExpiredJwtException e) { throw new AccessException("token expired!"); - } - catch (Exception e) { + } catch (Exception e) { throw new AccessException("token invalid!"); } @@ -112,11 +110,9 @@ public class NacosAuthManager implements AuthManager { try { tokenManager.validateToken(token); - } - catch (ExpiredJwtException e) { + } catch (ExpiredJwtException e) { throw new AccessException("token expired!"); - } - catch (Exception e) { + } catch (Exception e) { throw new AccessException("token invalid!"); } @@ -193,19 +189,16 @@ public class NacosAuthManager implements AuthManager { UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(userName, rawPassword); authenticate = authenticationManager.authenticate(authenticationToken); - } - catch (AuthenticationException e) { + } catch (AuthenticationException e) { throw new AccessException("unknown user!"); } if (null == authenticate || StringUtils.isBlank(authenticate.getName())) { finalName = userName; - } - else { + } else { finalName = authenticate.getName(); } return tokenManager.createToken(finalName); } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/roles/NacosRoleServiceImpl.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/roles/NacosRoleServiceImpl.java index 4b9102e5..4e9f6018 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/roles/NacosRoleServiceImpl.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/roles/NacosRoleServiceImpl.java @@ -18,16 +18,16 @@ package com.alibaba.nacos.security.nacos.roles; import com.alibaba.nacos.auth.common.AuthConfigs; import com.alibaba.nacos.auth.model.Permission; +import com.alibaba.nacos.common.utils.StringUtils; import com.alibaba.nacos.config.server.auth.PermissionInfo; import com.alibaba.nacos.config.server.auth.PermissionPersistService; import com.alibaba.nacos.config.server.auth.RoleInfo; import com.alibaba.nacos.config.server.auth.RolePersistService; import com.alibaba.nacos.config.server.model.Page; -import com.alibaba.nacos.core.utils.Loggers; import com.alibaba.nacos.security.nacos.NacosAuthConfig; import com.alibaba.nacos.security.nacos.users.NacosUserDetailsServiceImpl; +import com.alibaba.nacos.core.utils.Loggers; import io.jsonwebtoken.lang.Collections; -import org.apache.commons.lang3.StringUtils; import org.apache.mina.util.ConcurrentHashSet; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; @@ -75,8 +75,8 @@ public class NacosRoleServiceImpl { @Scheduled(initialDelay = 5000, fixedDelay = 15000) private void reload() { try { - Page roleInfoPage = rolePersistService.getRolesByUserName(StringUtils.EMPTY, DEFAULT_PAGE_NO, - Integer.MAX_VALUE); + Page roleInfoPage = rolePersistService + .getRolesByUserName(StringUtils.EMPTY, DEFAULT_PAGE_NO, Integer.MAX_VALUE); if (roleInfoPage == null) { return; } @@ -92,16 +92,15 @@ public class NacosRoleServiceImpl { Map> tmpPermissionInfoMap = new ConcurrentHashMap<>(16); for (String role : tmpRoleSet) { - Page permissionInfoPage = permissionPersistService.getPermissions(role, DEFAULT_PAGE_NO, - Integer.MAX_VALUE); + Page permissionInfoPage = permissionPersistService + .getPermissions(role, DEFAULT_PAGE_NO, Integer.MAX_VALUE); tmpPermissionInfoMap.put(role, permissionInfoPage.getPageItems()); } roleSet = tmpRoleSet; roleInfoMap = tmpRoleInfoMap; permissionInfoMap = tmpPermissionInfoMap; - } - catch (Exception e) { + } catch (Exception e) { Loggers.AUTH.warn("[LOAD-ROLES] load failed", e); } } @@ -109,15 +108,15 @@ public class NacosRoleServiceImpl { /** * Determine if the user has permission of the resource. * - *

- * Note if the user has many roles, this method returns true if any one role of the - * user has the desired permission. - * @param username user info + *

Note if the user has many roles, this method returns true if any one role of the user has the desired + * permission. + * + * @param username user info * @param permission permission to auth * @return true if granted, false otherwise */ public boolean hasPermission(String username, Permission permission) { - // update password + //update password if (NacosAuthConfig.UPDATE_PASSWORD_ENTRY_POINT.equals(permission.getResource())) { return true; } @@ -148,8 +147,8 @@ public class NacosRoleServiceImpl { for (PermissionInfo permissionInfo : permissionInfoList) { String permissionResource = permissionInfo.getResource().replaceAll("\\*", ".*"); String permissionAction = permissionInfo.getAction(); - if (permissionAction.contains(permission.getAction()) - && Pattern.matches(permissionResource, permission.getResource())) { + if (permissionAction.contains(permission.getAction()) && Pattern + .matches(permissionResource, permission.getResource())) { return true; } } @@ -159,7 +158,7 @@ public class NacosRoleServiceImpl { public List getRoles(String username) { List roleInfoList = roleInfoMap.get(username); - if (!authConfigs.isCachingEnabled()) { + if (!authConfigs.isCachingEnabled() || roleInfoList == null) { Page roleInfoPage = getRolesFromDatabase(username, DEFAULT_PAGE_NO, Integer.MAX_VALUE); if (roleInfoPage != null) { roleInfoList = roleInfoPage.getPageItems(); @@ -178,9 +177,8 @@ public class NacosRoleServiceImpl { public List getPermissions(String role) { List permissionInfoList = permissionInfoMap.get(role); - if (!authConfigs.isCachingEnabled()) { - Page permissionInfoPage = getPermissionsFromDatabase(role, DEFAULT_PAGE_NO, - Integer.MAX_VALUE); + if (!authConfigs.isCachingEnabled() || permissionInfoList == null) { + Page permissionInfoPage = getPermissionsFromDatabase(role, DEFAULT_PAGE_NO, Integer.MAX_VALUE); if (permissionInfoPage != null) { permissionInfoList = permissionInfoPage.getPageItems(); } @@ -194,7 +192,8 @@ public class NacosRoleServiceImpl { /** * Add role. - * @param role role name + * + * @param role role name * @param username user name */ public void addRole(String role, String username) { @@ -227,9 +226,10 @@ public class NacosRoleServiceImpl { /** * Add permission. - * @param role role name + * + * @param role role name * @param resource resource - * @param action action + * @param action action */ public void addPermission(String role, String resource, String action) { if (!roleSet.contains(role)) { @@ -245,5 +245,4 @@ public class NacosRoleServiceImpl { public List findRolesLikeRoleName(String role) { return rolePersistService.findRolesLikeRoleName(role); } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUser.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUser.java index 2aceeb42..021f9edd 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUser.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUser.java @@ -50,5 +50,4 @@ public class NacosUser extends User { public String toString() { return "NacosUser{" + "token='" + token + '\'' + ", globalAdmin=" + globalAdmin + '}'; } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUserDetails.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUserDetails.java index cc75e038..88d7f764 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUserDetails.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUserDetails.java @@ -71,5 +71,4 @@ public class NacosUserDetails implements UserDetails { public boolean isEnabled() { return true; } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUserDetailsServiceImpl.java b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUserDetailsServiceImpl.java index c8c1acb1..3da53c74 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUserDetailsServiceImpl.java +++ b/pig-register/src/main/java/com/alibaba/nacos/security/nacos/users/NacosUserDetailsServiceImpl.java @@ -33,7 +33,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** - * Custem user service. + * Custom user service. * * @author wfnuser * @author nkorange @@ -62,8 +62,7 @@ public class NacosUserDetailsServiceImpl implements UserDetailsService { map.put(user.getUsername(), user); } userMap = map; - } - catch (Exception e) { + } catch (Exception e) { Loggers.AUTH.warn("[LOAD-USERS] load failed", e); } } @@ -92,7 +91,7 @@ public class NacosUserDetailsServiceImpl implements UserDetailsService { public User getUser(String username) { User user = userMap.get(username); - if (!authConfigs.isCachingEnabled()) { + if (!authConfigs.isCachingEnabled() || user == null) { user = getUserFromDatabase(username); } return user; @@ -113,5 +112,4 @@ public class NacosUserDetailsServiceImpl implements UserDetailsService { public void deleteUser(String username) { userPersistService.deleteUser(username); } - } diff --git a/pig-register/src/main/java/com/alibaba/nacos/utils/PasswordEncoderUtil.java b/pig-register/src/main/java/com/alibaba/nacos/utils/PasswordEncoderUtil.java index c42fa919..6d046935 100644 --- a/pig-register/src/main/java/com/alibaba/nacos/utils/PasswordEncoderUtil.java +++ b/pig-register/src/main/java/com/alibaba/nacos/utils/PasswordEncoderUtil.java @@ -32,5 +32,4 @@ public class PasswordEncoderUtil { public static String encode(String raw) { return new BCryptPasswordEncoder().encode(raw); } - } diff --git a/pig-register/src/main/resources/static/css/main.css b/pig-register/src/main/resources/static/css/main.css index 7d99c2b7..ea3e3906 100644 --- a/pig-register/src/main/resources/static/css/main.css +++ b/pig-register/src/main/resources/static/css/main.css @@ -172,7 +172,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */.new-config-form{margin-top:36px}.more-item.hide{display:none} + */.new-config-form{margin-top:36px} /*! * Copyright 1999-2018 Alibaba Group Holding Ltd. @@ -220,7 +220,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */.button-list{text-align:right}.button-list button{margin-left:1em;font-size:14px}.editor-full-screen{width:100%;height:100%;position:fixed;top:0;left:0;z-index:100}.editor-normal{clear:both;height:300px} + */.button-list{text-align:right}.button-list button{margin-left:1em;font-size:14px}.editor-full-screen{width:100%;height:100%;position:fixed;top:0;left:0;z-index:100}.editor-normal{clear:both}.more-item.hide{display:none} /*! * Copyright 1999-2018 Alibaba Group Holding Ltd. @@ -236,7 +236,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */.config-editor{padding:10px}.config-editor .func-title{overflow:hidden;height:50px;width:100%;font-weight:500;margin-bottom:9px;font-size:18px;line-height:36px;color:#73777a}.config-editor .form{display:table}.config-editor .form .next-form-item{display:table-row}.config-editor .form .next-form-item .next-form-item-label{white-space:nowrap;word-break:keep-all}.config-editor .form .next-form-item .next-form-item-control,.config-editor .form .next-form-item .next-select{width:100%}.config-editor .form .next-form-item .next-form-item-control,.config-editor .form .next-form-item .next-form-item-label{display:table-cell}.config-editor .form .next-form-item-control{padding-bottom:12px}.config-editor .form .next-checkbox-label{color:#73777a;font-weight:400}.config-editor .form .next-radio-label{color:#73777a}.config-editor .form .switch{color:#33cde5;cursor:pointer;user-select:none}.config-editor .form .help-label>*{display:inline-block}.config-editor .form .help-label>i{color:#1dc11d;margin:0 .25em}.config-editor .button-list{text-align:right}.config-editor .button-list button{margin-left:1em;font-size:14px}.config-editor .editor-full-screen{width:100%;height:100%;position:fixed;top:0;left:0;z-index:100}.config-editor .editor-normal{clear:both;height:300px} + */.config-editor{padding:10px}.config-editor .func-title{overflow:hidden;height:50px;width:100%;font-weight:500;margin-bottom:9px;font-size:18px;line-height:36px;color:#73777a}.config-editor .form{display:table}.config-editor .form .next-form-item{display:table-row}.config-editor .form .next-form-item .next-form-item-label{white-space:nowrap;word-break:keep-all}.config-editor .form .next-form-item .next-form-item-control,.config-editor .form .next-form-item .next-select{width:100%}.config-editor .form .next-form-item .next-form-item-control,.config-editor .form .next-form-item .next-form-item-label{display:table-cell}.config-editor .form .next-form-item-control{padding-bottom:12px}.config-editor .form .next-checkbox-label{color:#73777a;font-weight:400}.config-editor .form .next-radio-label{color:#73777a}.config-editor .form .switch{color:#33cde5;cursor:pointer;user-select:none}.config-editor .form .help-label>*{display:inline-block}.config-editor .form .help-label>i{color:#1dc11d;margin:0 .25em}.config-editor .button-list{text-align:right}.config-editor .button-list button{margin-left:1em;font-size:14px}.config-editor .editor-full-screen{width:100%;height:100%;position:fixed;top:0;left:0;z-index:100}.config-editor .editor-normal{clear:both} /*! * Copyright 1999-2018 Alibaba Group Holding Ltd. diff --git a/pig-register/src/main/resources/static/index.html b/pig-register/src/main/resources/static/index.html index 81f72be8..4bbf6e26 100644 --- a/pig-register/src/main/resources/static/index.html +++ b/pig-register/src/main/resources/static/index.html @@ -19,44 +19,44 @@ - - - - Nacos + + + + Nacos - + - + -

-
-
+
+
+
- - - - - - - - - - - - - + + + + + + + + + + + + + - + diff --git a/pig-register/src/main/resources/static/js/main.js b/pig-register/src/main/resources/static/js/main.js index 52d5e558..611e5df9 100644 --- a/pig-register/src/main/resources/static/js/main.js +++ b/pig-register/src/main/resources/static/js/main.js @@ -1,22 +1,22 @@ -!function(n){var a={};function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},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=434)}([function(e,t,n){"use strict";e.exports=n(440)},function(e,t,n){"use strict";n.d(t,"b",function(){return L}),n.d(t,"d",function(){return T}),n.d(t,"c",function(){return C});var t=n(52),t=n(29),d=n.n(t),u=n(70),r=n(83),c=n(58),f=n(31),t=n(100),p=n.n(t),t=n(64),h=n.n(t);function m(){var e=window.location.href;localStorage.removeItem("token");e=e.split("#")[0];console.log("base_url",e),window.location="".concat(e,"#/login")}var l,s,a,o,i,g,y,v,_,b,w,M,k,S,t=window,E=(l={},{once:function(e,t){this.listen.call(this,e,t,!0)},listen:function(e,t){var n=2>>0,a;for(a=0;a0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},A={};function H(e,t,n,a){var r=a;if(typeof a==="string")r=function(){return this[a]()};if(e)A[e]=r;if(t)A[t[0]]=function(){return P(r.apply(this,arguments),t[1],t[2])};if(n)A[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)}}function F(e){if(e.match(/\[[\s\S]/))return e.replace(/^\[|\]$/g,"");return e.replace(/\\/g,"")}function z(a){var r=a.match(j),e,o;for(e=0,o=r.length;e=0&&I.test(e)){e=e.replace(I,a);I.lastIndex=0;n-=1}return e}var B={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function U(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];if(t||!n)return t;this._longDateFormat[e]=n.match(j).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd")return e.slice(1);return e}).join("");return this._longDateFormat[e]}var K="Invalid date";function G(){return this._invalidDate}var q="%d",J=/\d{1,2}/;function $(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function X(e,t,n,a){var r=this._relativeTime[n];return T(r)?r(e,t,n,a):r.replace(/%d/i,e)}function Z(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}var ee={};function te(e,t){var n=e.toLowerCase();ee[n]=ee[n+"s"]=ee[t]=e}function ne(e){return typeof e==="string"?ee[e]||ee[e.toLowerCase()]:undefined}function ae(e){var t={},n,a;for(a in e)if(s(e,a)){n=ne(a);if(n)t[n]=e[a]}return t}var re={};function oe(e,t){re[e]=t}function ie(e){var t=[],n;for(n in e)if(s(e,n))t.push({unit:n,priority:re[n]});t.sort(function(e,t){return e.priority-t.priority});return t}function le(e){return e%4===0&&e%100!==0||e%400===0}function se(e){if(e<0)return Math.ceil(e)||0;else return Math.floor(e)}function ue(e){var t=+e,n=0;if(t!==0&&isFinite(t))n=se(t);return n}function de(t,n){return function(e){if(e!=null){fe(this,t,e);d.updateOffset(this,n);return this}else return ce(this,t)}}function ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){if(e.isValid()&&!isNaN(n))if(t==="FullYear"&&le(e.year())&&e.month()===1&&e.date()===29){n=ue(n);e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Xe(n,e.month()))}else e._d["set"+(e._isUTC?"UTC":"")+t](n)}function pe(e){e=ne(e);if(T(this[e]))return this[e]();return this}function he(e,t){if(typeof e==="object"){e=ae(e);var n=ie(e),a;for(a=0;a68?1900:2e3)};var mt=de("FullYear",true);function gt(){return le(this.year())}function yt(e,t,n,a,r,o,i){var l;if(e<100&&e>=0){l=new Date(e+400,t,n,a,r,o,i);if(isFinite(l.getFullYear()))l.setFullYear(e)}else l=new Date(e,t,n,a,r,o,i);return l}function vt(e){var t,n;if(e<100&&e>=0){n=Array.prototype.slice.call(arguments);n[0]=e+400;t=new Date(Date.UTC.apply(null,n));if(isFinite(t.getUTCFullYear()))t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function _t(e,t,n){var a=7+t-n,r=(7+vt(e,0,a).getUTCDay()-t)%7;return-r+a-1}function bt(e,t,n,a,r){var o=(7+n-a)%7,i=_t(e,a,r),l=1+7*(t-1)+o+i,s,u;if(l<=0){s=e-1;u=ht(s)+l}else if(l>ht(e)){s=e+1;u=l-ht(e)}else{s=e;u=l}return{year:s,dayOfYear:u}}function wt(e,t,n){var a=_t(e.year(),t,n),r=Math.floor((e.dayOfYear()-a-1)/7)+1,o,i;if(r<1){i=e.year()-1;o=r+Mt(i,t,n)}else if(r>Mt(e.year(),t,n)){o=r-Mt(e.year(),t,n);i=e.year()+1}else{i=e.year();o=r}return{week:o,year:i}}function Mt(e,t,n){var a=_t(e,t,n),r=_t(e+1,t,n);return(ht(e)-a+r)/7}function kt(e){return wt(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),te("week","w"),te("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ye("w",be),Ye("ww",be,ge),Ye("W",be),Ye("WW",be,ge),He(["w","ww","W","WW"],function(e,t,n,a){t[a.substr(0,1)]=ue(e)});var St={dow:0,doy:6};function Et(){return this._week.dow}function xt(){return this._week.doy}function Lt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Tt(e){var t=wt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function Ct(e,t){if(typeof e!=="string")return e;if(!isNaN(e))return parseInt(e,10);e=t.weekdaysParse(e);if(typeof e==="number")return e;return null}function Dt(e,t){if(typeof e==="string")return t.weekdaysParse(e)%7||7;return isNaN(e)?null:e}function Ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),te("day","d"),te("weekday","e"),te("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ye("d",be),Ye("e",be),Ye("E",be),Ye("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ye("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ye("dddd",function(e,t){return t.weekdaysRegex(e)}),He(["dd","ddd","dddd"],function(e,t,n,a){var r=n._locale.weekdaysParse(e,a,n._strict);if(r!=null)t.d=r;else m(n).invalidWeekday=e}),He(["d","e","E"],function(e,t,n,a){t[a]=ue(e)});var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Yt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jt=Oe,It=Oe,Rt=Oe;function At(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Ot(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return e===true?Ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ft(e){return e===true?Ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zt(e,t,n){var a,r,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(a=0;a<7;++a){o=h([2e3,1]).day(a);this._minWeekdaysParse[a]=this.weekdaysMin(o,"").toLocaleLowerCase();this._shortWeekdaysParse[a]=this.weekdaysShort(o,"").toLocaleLowerCase();this._weekdaysParse[a]=this.weekdays(o,"").toLocaleLowerCase()}}if(n)if(t==="dddd"){r=$e.call(this._weekdaysParse,i);return r!==-1?r:null}else if(t==="ddd"){r=$e.call(this._shortWeekdaysParse,i);return r!==-1?r:null}else{r=$e.call(this._minWeekdaysParse,i);return r!==-1?r:null}else if(t==="dddd"){r=$e.call(this._weekdaysParse,i);if(r!==-1)return r;r=$e.call(this._shortWeekdaysParse,i);if(r!==-1)return r;r=$e.call(this._minWeekdaysParse,i);return r!==-1?r:null}else if(t==="ddd"){r=$e.call(this._shortWeekdaysParse,i);if(r!==-1)return r;r=$e.call(this._weekdaysParse,i);if(r!==-1)return r;r=$e.call(this._minWeekdaysParse,i);return r!==-1?r:null}else{r=$e.call(this._minWeekdaysParse,i);if(r!==-1)return r;r=$e.call(this._weekdaysParse,i);if(r!==-1)return r;r=$e.call(this._shortWeekdaysParse,i);return r!==-1?r:null}}function Wt(e,t,n){var a,r,o;if(this._weekdaysParseExact)return zt.call(this,e,t,n);if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(a=0;a<7;a++){r=h([2e3,1]).day(a);if(n&&!this._fullWeekdaysParse[a]){this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[a]){o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,"");this._weekdaysParse[a]=new RegExp(o.replace(".",""),"i")}if(n&&t==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;else if(n&&t==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;else if(n&&t==="dd"&&this._minWeekdaysParse[a].test(e))return a;else if(!n&&this._weekdaysParse[a].test(e))return a}}function Vt(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Ct(e,this.localeData());return this.add(e-t,"d")}else return t}function Bt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ut(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Kt(e){if(this._weekdaysParseExact){if(!s(this,"_weekdaysRegex"))Jt.call(this);if(e)return this._weekdaysStrictRegex;else return this._weekdaysRegex}else{if(!s(this,"_weekdaysRegex"))this._weekdaysRegex=jt;return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function Gt(e){if(this._weekdaysParseExact){if(!s(this,"_weekdaysRegex"))Jt.call(this);if(e)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex}else{if(!s(this,"_weekdaysShortRegex"))this._weekdaysShortRegex=It;return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function qt(e){if(this._weekdaysParseExact){if(!s(this,"_weekdaysRegex"))Jt.call(this);if(e)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex}else{if(!s(this,"_weekdaysMinRegex"))this._weekdaysMinRegex=Rt;return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function Jt(){function e(e,t){return t.length-e.length}var t=[],n=[],a=[],r=[],o,i,l,s,u;for(o=0;o<7;o++){i=h([2e3,1]).day(o);l=Ie(this.weekdaysMin(i,""));s=Ie(this.weekdaysShort(i,""));u=Ie(this.weekdays(i,""));t.push(l);n.push(s);a.push(u);r.push(l);r.push(s);r.push(u)}t.sort(e);n.sort(e);a.sort(e);r.sort(e);this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function $t(){return this.hours()%12||12}function Qt(){return this.hours()||24}function Xt(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Zt(e,t){return t._meridiemParse}function en(e){return(e+"").toLowerCase().charAt(0)==="p"}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,$t),H("k",["kk",2],0,Qt),H("hmm",0,0,function(){return""+$t.apply(this)+P(this.minutes(),2)}),H("hmmss",0,0,function(){return""+$t.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),Xt("a",true),Xt("A",false),te("hour","h"),oe("hour",13),Ye("a",Zt),Ye("A",Zt),Ye("H",be),Ye("h",be),Ye("k",be),Ye("HH",be,ge),Ye("hh",be,ge),Ye("kk",be,ge),Ye("hmm",we),Ye("hmmss",Me),Ye("Hmm",we),Ye("Hmmss",Me),Ae(["H","HH"],Be),Ae(["k","kk"],function(e,t,n){var a=ue(e);t[Be]=a===24?0:a}),Ae(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e);n._meridiem=e}),Ae(["h","hh"],function(e,t,n){t[Be]=ue(e);m(n).bigHour=true}),Ae("hmm",function(e,t,n){var a=e.length-2;t[Be]=ue(e.substr(0,a));t[Ue]=ue(e.substr(a));m(n).bigHour=true}),Ae("hmmss",function(e,t,n){var a=e.length-4,r=e.length-2;t[Be]=ue(e.substr(0,a));t[Ue]=ue(e.substr(a,2));t[Ke]=ue(e.substr(r));m(n).bigHour=true}),Ae("Hmm",function(e,t,n){var a=e.length-2;t[Be]=ue(e.substr(0,a));t[Ue]=ue(e.substr(a))}),Ae("Hmmss",function(e,t,n){var a=e.length-4,r=e.length-2;t[Be]=ue(e.substr(0,a));t[Ue]=ue(e.substr(a,2));t[Ke]=ue(e.substr(r))});var tn,nn=de("Hours",true);function an(e,t,n){if(e>11)return n?"pm":"PM";else return n?"am":"AM"}var rn={calendar:N,longDateFormat:B,invalidDate:K,ordinal:q,dayOfMonthOrdinalParse:J,relativeTime:Q,months:Ze,monthsShort:et,week:St,weekdays:Nt,weekdaysMin:Pt,weekdaysShort:Yt,meridiemParse:/[ap]\.?m?\.?/i},on={},ln={},sn;function un(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n0){r=fn(o.slice(0,n).join("-"));if(r)return r;if(a&&a.length>=n&&un(o,a)>=n-1)break;n--}t++}return sn}function fn(t){var e=null,n;if(on[t]===undefined&&typeof ui!=="undefined"&&ui&&ui.exports)try{e=sn._abbr;n=di;ci(498)("./"+t);pn(e)}catch(e){on[t]=null}return on[t]}function pn(e,t){var n;if(e){if(o(t))n=gn(e);else n=hn(e,t);if(n)sn=n;else if(typeof console!=="undefined"&&console.warn)console.warn("Locale "+e+" not found. Did you forget to load it?")}return sn._abbr}function hn(e,t){if(t!==null){var n,a=rn;t.abbr=e;if(on[e]!=null){L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");a=on[e]._config}else if(t.parentLocale!=null)if(on[t.parentLocale]!=null)a=on[t.parentLocale]._config;else{n=fn(t.parentLocale);if(n!=null)a=n._config;else{if(!ln[t.parentLocale])ln[t.parentLocale]=[];ln[t.parentLocale].push({name:e,config:t});return null}}on[e]=new O(D(a,t));if(ln[e])ln[e].forEach(function(e){hn(e.name,e.config)});pn(e);return on[e]}else{delete on[e];return null}}function mn(e,t){if(null!=t){var t,n,a=rn;null!=on[e]&&null!=on[e].parentLocale?on[e].set(D(on[e]._config,t)):(null!=(n=fn(e))&&(a=n._config),t=D(a,t),null==n&&(t.abbr=e),(t=new O(t)).parentLocale=on[e],on[e]=t),pn(e)}else null!=on[e]&&(null!=on[e].parentLocale?(on[e]=on[e].parentLocale,e===pn()&&pn(e)):null!=on[e]&&delete on[e]);return on[e]}function gn(e){var t;if(e&&e._locale&&e._locale._abbr)e=e._locale._abbr;if(!e)return sn;if(!i(e)){t=fn(e);if(t)return t;e=[e]}return cn(e)}function yn(){return x(on)}function vn(e){var t,n=e._a;if(n&&m(e).overflow===-2){t=n[We]<0||n[We]>11?We:n[Ve]<1||n[Ve]>Xe(n[ze],n[We])?Ve:n[Be]<0||n[Be]>24||n[Be]===24&&(n[Ue]!==0||n[Ke]!==0||n[Ge]!==0)?Be:n[Ue]<0||n[Ue]>59?Ue:n[Ke]<0||n[Ke]>59?Ke:n[Ge]<0||n[Ge]>999?Ge:-1;if(m(e)._overflowDayOfYear&&(tVe))t=Ve;if(m(e)._overflowWeeks&&t===-1)t=qe;if(m(e)._overflowWeekday&&t===-1)t=Je;m(e).overflow=t}return e}var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Sn=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ln(e){var t,n,a=e._i,r=_n.exec(a)||bn.exec(a),o,i,l,s;if(r){m(e).iso=true;for(t=0,n=Mn.length;tht(i)||e._dayOfYear===0)m(e)._overflowDayOfYear=true;n=vt(i,0,e._dayOfYear);e._a[We]=n.getUTCMonth();e._a[Ve]=n.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=e._a[t]==null?t===2?1:0:e._a[t];if(e._a[Be]===24&&e._a[Ue]===0&&e._a[Ke]===0&&e._a[Ge]===0){e._nextDay=true;e._a[Be]=0}e._d=(e._useUTC?vt:yt).apply(null,a);o=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null)e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);if(e._nextDay)e._a[Be]=24;if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==o)m(e).weekdayMismatch=true}function An(e){var t,n,a,r,o,i,l,s,u;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){o=1;i=4;n=jn(t.GG,e._a[ze],wt(Gn(),1,4).year);a=jn(t.W,1);r=jn(t.E,1);if(r<1||r>7)s=true}else{o=e._locale._week.dow;i=e._locale._week.doy;u=wt(Gn(),o,i);n=jn(t.gg,e._a[ze],u.year);a=jn(t.w,u.week);if(t.d!=null){r=t.d;if(r<0||r>6)s=true}else if(t.e!=null){r=t.e+o;if(t.e<0||t.e>6)s=true}else r=o}if(a<1||a>Mt(n,o,i))m(e)._overflowWeeks=true;else if(s!=null)m(e)._overflowWeekday=true;else{l=bt(n,a,r,o,i);e._a[ze]=l.year;e._dayOfYear=l.dayOfYear}}function Hn(e){if(e._f===d.ISO_8601){Ln(e);return}if(e._f===d.RFC_2822){Yn(e);return}e._a=[];m(e).empty=true;var t=""+e._i,n,a,r,o,i,l=t.length,s=0,u;r=V(e._f,e._locale).match(j)||[];for(n=0;n0)m(e).unusedInput.push(i);t=t.slice(t.indexOf(a)+a.length);s+=a.length}if(A[o]){if(a)m(e).empty=false;else m(e).unusedTokens.push(o);Fe(o,a,e)}else if(e._strict&&!a)m(e).unusedTokens.push(o)}m(e).charsLeftOver=l-s;if(t.length>0)m(e).unusedInput.push(t);if(e._a[Be]<=12&&m(e).bigHour===true&&e._a[Be]>0)m(e).bigHour=undefined;m(e).parsedDateParts=e._a.slice(0);m(e).meridiem=e._meridiem;e._a[Be]=Fn(e._locale,e._a[Be],e._meridiem);u=m(e).era;if(u!==null)e._a[ze]=e._locale.erasConvertYear(u,e._a[ze]);Rn(e);vn(e)}function Fn(e,t,n){var a;if(n==null)return t;if(e.meridiemHour!=null)return e.meridiemHour(t,n);else if(e.isPM!=null){a=e.isPM(n);if(a&&t<12)t+=12;if(!a&&t===12)t=0;return t}else return t}function zn(e){var t,n,a,r,o,i,l=false;if(e._f.length===0){m(e).invalidFormat=true;e._d=new Date(NaN);return}for(r=0;rthis?this:e;else return y()});function $n(e,t){var n,a;if(t.length===1&&i(t[0]))t=t[0];if(!t.length)return Gn();n=t[0];for(a=1;athis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ba(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={},t;b(e,this);e=Bn(e);if(e._a){t=e._isUTC?h(e._a):Gn(e._a);this._isDSTShifted=this.isValid()&&la(e._a,t.toArray())>0}else this._isDSTShifted=false;return this._isDSTShifted}function wa(){return this.isValid()?!this._isUTC:false}function Ma(){return this.isValid()?this._isUTC:false}function ka(){return this.isValid()?this._isUTC&&this._offset===0:false}d.updateOffset=function(){};var Sa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ea=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xa(e,t){var n=e,a=null,r,o,i;if(oa(e))n={ms:e._milliseconds,d:e._days,M:e._months};else if(c(e)||!isNaN(+e)){n={};if(t)n[t]=+e;else n.milliseconds=+e}else if(a=Sa.exec(e)){r=a[1]==="-"?-1:1;n={y:0,d:ue(a[Ve])*r,h:ue(a[Be])*r,m:ue(a[Ue])*r,s:ue(a[Ke])*r,ms:ue(ia(a[Ge]*1e3))*r}}else if(a=Ea.exec(e)){r=a[1]==="-"?-1:1;n={y:La(a[2],r),M:La(a[3],r),w:La(a[4],r),d:La(a[5],r),h:La(a[6],r),m:La(a[7],r),s:La(a[8],r)}}else if(n==null)n={};else if(typeof n==="object"&&("from"in n||"to"in n)){i=Ca(Gn(n.from),Gn(n.to));n={};n.ms=i.milliseconds;n.M=i.months}o=new ra(n);if(oa(e)&&s(e,"_locale"))o._locale=e._locale;if(oa(e)&&s(e,"_isValid"))o._isValid=e._isValid;return o}function La(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ta(e,t){var n={};n.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(n.months,"M").isAfter(t))--n.months;n.milliseconds=+t-+e.clone().add(n.months,"M");return n}function Ca(e,t){var n;if(!(e.isValid()&&t.isValid()))return{milliseconds:0,months:0};t=ca(t,e);if(e.isBefore(t))n=Ta(e,t);else{n=Ta(t,e);n.milliseconds=-n.milliseconds;n.months=-n.months}return n}function Da(r,o){return function(e,t){var n,a;if(t!==null&&!isNaN(+t)){L(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");a=e;e=t;t=a}n=xa(e,t);Oa(this,n,r);return this}}function Oa(e,t,n,a){var r=t._milliseconds,o=ia(t._days),i=ia(t._months);if(!e.isValid())return;a=a==null?true:a;if(i)st(e,ce(e,"Month")+i*n);if(o)fe(e,"Date",ce(e,"Date")+o*n);if(r)e._d.setTime(e._d.valueOf()+r*n);if(a)d.updateOffset(e,o||i)}xa.fn=ra.prototype,xa.invalid=aa;var Na=Da(1,"add"),Ya=Da(-1,"subtract");function Pa(e){return typeof e==="string"||e instanceof String}function ja(e){return M(e)||f(e)||Pa(e)||c(e)||Ra(e)||Ia(e)||e===null||e===undefined}function Ia(e){var t=l(e)&&!u(e),n=false,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,o;for(r=0;rn.valueOf();else return n.valueOf()9999)return W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(T(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",W(n,"Z"));return W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,a,r,o;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}n="["+e+'("]';a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";r="-MM-DD[T]HH:mm:ss.SSS";o=t+'[")]';return this.format(n+a+r+o)}function Za(e){if(!e)e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat;var t=W(this,e);return this.localeData().postformat(t)}function er(e,t){if(this.isValid()&&(M(e)&&e.isValid()||Gn(e).isValid()))return xa({to:this,from:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function tr(e){return this.from(Gn(),e)}function nr(e,t){if(this.isValid()&&(M(e)&&e.isValid()||Gn(e).isValid()))return xa({from:this,to:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function ar(e){return this.to(Gn(),e)}function rr(e){var t;if(e===undefined)return this._locale._abbr;else{t=gn(e);if(t!=null)this._locale=t;return this}}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var or=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===undefined)return this.localeData();else return this.locale(e)});function ir(){return this._locale}var lr=1e3,sr=60*lr,ur=60*sr,dr=(365*400+97)*24*ur;function cr(e,t){return(e%t+t)%t}function fr(e,t,n){if(e<100&&e>=0)return new Date(e+400,t,n)-dr;else return new Date(e,t,n).valueOf()}function pr(e,t,n){if(e<100&&e>=0)return Date.UTC(e+400,t,n)-dr;else return Date.UTC(e,t,n)}function hr(e){var t,n;e=ne(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?pr:fr;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=cr(t+(this._isUTC?0:this.utcOffset()*sr),ur);break;case"minute":t=this._d.valueOf();t-=cr(t,sr);break;case"second":t=this._d.valueOf();t-=cr(t,lr);break}this._d.setTime(t);d.updateOffset(this,true);return this}function mr(e){var t,n;e=ne(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?pr:fr;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=ur-cr(t+(this._isUTC?0:this.utcOffset()*sr),ur)-1;break;case"minute":t=this._d.valueOf();t+=sr-cr(t,sr)-1;break;case"second":t=this._d.valueOf();t+=lr-cr(t,lr)-1;break}this._d.setTime(t);d.updateOffset(this,true);return this}function gr(){return this._d.valueOf()-(this._offset||0)*6e4}function yr(){return Math.floor(this.valueOf()/1e3)}function vr(){return new Date(this.valueOf())}function _r(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function br(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function wr(){return this.isValid()?this.toISOString():null}function Mr(){return g(this)}function kr(){return p({},m(this))}function Sr(){return m(this).overflow}function Er(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xr(e,t){var n,a,r,o=this._eras||gn("en")._eras;for(n=0,a=o.length;n=0)return o[a]}}function Tr(e,t){var n=e.since<=e.until?+1:-1;if(t===undefined)return d(e.since).year();else return d(e.since).year()+(t-e.offset)*n}function Cr(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;eo)t=o;return Jr.call(this,e,t,n,a,r)}}function Jr(e,t,n,a,r){var o=bt(e,t,n,a,r),i=vt(o.year,0,o.dayOfYear);this.year(i.getUTCFullYear());this.month(i.getUTCMonth());this.date(i.getUTCDate());return this}function $r(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Ye("N",Ir),Ye("NN",Ir),Ye("NNN",Ir),Ye("NNNN",Rr),Ye("NNNNN",Ar),Ae(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,a){var r=n._locale.erasParse(e,a,n._strict);if(r)m(n).era=r;else m(n).invalidEra=e}),Ye("y",xe),Ye("yy",xe),Ye("yyy",xe),Ye("yyyy",xe),Ye("yo",Hr),Ae(["y","yy","yyy","yyyy"],ze),Ae(["yo"],function(e,t,n,a){var r;if(n._locale._eraYearOrdinalRegex)r=e.match(n._locale._eraYearOrdinalRegex);if(n._locale.eraYearOrdinalParse)t[ze]=n._locale.eraYearOrdinalParse(e,r);else t[ze]=parseInt(e,10)}),H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),zr("gggg","weekYear"),zr("ggggg","weekYear"),zr("GGGG","isoWeekYear"),zr("GGGGG","isoWeekYear"),te("weekYear","gg"),te("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ye("G",Le),Ye("g",Le),Ye("GG",be,ge),Ye("gg",be,ge),Ye("GGGG",Se,ve),Ye("gggg",Se,ve),Ye("GGGGG",Ee,_e),Ye("ggggg",Ee,_e),He(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,a){t[a.substr(0,2)]=ue(e)}),He(["gg","GG"],function(e,t,n,a){t[a]=d.parseTwoDigitYear(e)}),H("Q",0,"Qo","quarter"),te("quarter","Q"),oe("quarter",7),Ye("Q",me),Ae("Q",function(e,t){t[We]=(ue(e)-1)*3}),H("D",["DD",2],"Do","date"),te("date","D"),oe("date",9),Ye("D",be),Ye("DD",be,ge),Ye("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],Ve),Ae("Do",function(e,t){t[Ve]=ue(e.match(be)[0])});var Qr=de("Date",true);function Xr(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),te("dayOfYear","DDD"),oe("dayOfYear",4),Ye("DDD",ke),Ye("DDDD",ye),Ae(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ue(e)}),H("m",["mm",2],0,"minute"),te("minute","m"),oe("minute",14),Ye("m",be),Ye("mm",be,ge),Ae(["m","mm"],Ue);var Zr=de("Minutes",false);H("s",["ss",2],0,"second"),te("second","s"),oe("second",15),Ye("s",be),Ye("ss",be,ge),Ae(["s","ss"],Ke);var eo=de("Seconds",false),to,no;for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return this.millisecond()*10}),H(0,["SSSSS",5],0,function(){return this.millisecond()*100}),H(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),H(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),H(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),H(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),te("millisecond","ms"),oe("millisecond",16),Ye("S",ke,me),Ye("SS",ke,ge),Ye("SSS",ke,ye),to="SSSS";to.length<=9;to+="S")Ye(to,xe);function ao(e,t){t[Ge]=ue(("0."+e)*1e3)}for(to="S";to.length<=9;to+="S")Ae(to,ao);function ro(){return this._isUTC?"UTC":""}function oo(){return this._isUTC?"Coordinated Universal Time":""}no=de("Milliseconds",false),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var io=w.prototype;if(io.add=Na,io.calendar=Fa,io.clone=za,io.diff=qa,io.endOf=mr,io.format=Za,io.from=er,io.fromNow=tr,io.to=nr,io.toNow=ar,io.get=pe,io.invalidAt=Sr,io.isAfter=Wa,io.isBefore=Va,io.isBetween=Ba,io.isSame=Ua,io.isSameOrAfter=Ka,io.isSameOrBefore=Ga,io.isValid=Mr,io.lang=or,io.locale=rr,io.localeData=ir,io.max=Jn,io.min=qn,io.parsingFlags=kr,io.set=he,io.startOf=hr,io.subtract=Ya,io.toArray=_r,io.toObject=br,io.toDate=vr,io.toISOString=Qa,io.inspect=Xa,typeof Symbol!=="undefined"&&Symbol.for!=null)io[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"};function lo(e){return Gn(1e3*e)}function so(){return Gn.apply(null,arguments).parseZone()}function uo(e){return e}io.toJSON=wr,io.toString=$a,io.unix=yr,io.valueOf=gr,io.creationData=Er,io.eraName=Cr,io.eraNarrow=Dr,io.eraAbbr=Or,io.eraYear=Nr,io.year=mt,io.isLeapYear=gt,io.weekYear=Wr,io.isoWeekYear=Vr,io.quarter=io.quarters=$r,io.month=ut,io.daysInMonth=dt,io.week=io.weeks=Lt,io.isoWeek=io.isoWeeks=Tt,io.weeksInYear=Kr,io.weeksInWeekYear=Gr,io.isoWeeksInYear=Br,io.isoWeeksInISOWeekYear=Ur,io.date=Qr,io.day=io.days=Vt,io.weekday=Bt,io.isoWeekday=Ut,io.dayOfYear=Xr,io.hour=io.hours=nn,io.minute=io.minutes=Zr,io.second=io.seconds=eo,io.millisecond=io.milliseconds=no,io.utcOffset=pa,io.utc=ma,io.local=ga,io.parseZone=ya,io.hasAlignedHourOffset=va,io.isDST=_a,io.isLocal=wa,io.isUtcOffset=Ma,io.isUtc=ka,io.isUTC=ka,io.zoneAbbr=ro,io.zoneName=oo,io.dates=S("dates accessor is deprecated. Use date instead.",Qr),io.months=S("months accessor is deprecated. Use month instead",ut),io.years=S("years accessor is deprecated. Use year instead",mt),io.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ha),io.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ba);var co=O.prototype;function fo(e,t,n,a){var r=gn(),o=h().set(a,t);return r[n](o,e)}function po(e,t,n){if(c(e)){t=e;e=undefined}e=e||"";if(t!=null)return fo(e,t,n,"month");var a,r=[];for(a=0;a<12;a++)r[a]=fo(e,a,n,"month");return r}function ho(e,t,n,a){if(typeof e==="boolean"){if(c(t)){n=t;t=undefined}t=t||""}else{t=e;n=t;e=false;if(c(t)){n=t;t=undefined}t=t||""}var r=gn(),o=e?r._week.dow:0,i,l=[];if(n!=null)return fo(t,(n+o)%7,a,"day");for(i=0;i<7;i++)l[i]=fo(t,(i+o)%7,a,"day");return l}function mo(e,t){return po(e,t,"months")}function go(e,t){return po(e,t,"monthsShort")}function yo(e,t,n){return ho(e,t,n,"weekdays")}function vo(e,t,n){return ho(e,t,n,"weekdaysShort")}function _o(e,t,n){return ho(e,t,n,"weekdaysMin")}co.calendar=Y,co.longDateFormat=U,co.invalidDate=G,co.ordinal=$,co.preparse=uo,co.postformat=uo,co.relativeTime=X,co.pastFuture=Z,co.set=C,co.eras=xr,co.erasParse=Lr,co.erasConvertYear=Tr,co.erasAbbrRegex=Pr,co.erasNameRegex=Yr,co.erasNarrowRegex=jr,co.months=rt,co.monthsShort=ot,co.monthsParse=lt,co.monthsRegex=ft,co.monthsShortRegex=ct,co.week=kt,co.firstDayOfYear=xt,co.firstDayOfWeek=Et,co.weekdays=At,co.weekdaysMin=Ft,co.weekdaysShort=Ht,co.weekdaysParse=Wt,co.weekdaysRegex=Kt,co.weekdaysShortRegex=Gt,co.weekdaysMinRegex=qt,co.isPM=en,co.meridiem=an,pn("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ue(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),d.lang=S("moment.lang is deprecated. Use moment.locale instead.",pn),d.langData=S("moment.langData is deprecated. Use moment.localeData instead.",gn);var bo=Math.abs;function wo(){var e=this._data;return this._milliseconds=bo(this._milliseconds),this._days=bo(this._days),this._months=bo(this._months),e.milliseconds=bo(e.milliseconds),e.seconds=bo(e.seconds),e.minutes=bo(e.minutes),e.hours=bo(e.hours),e.months=bo(e.months),e.years=bo(e.years),this}function Mo(e,t,n,a){var r=xa(t,n);e._milliseconds+=a*r._milliseconds;e._days+=a*r._days;e._months+=a*r._months;return e._bubble()}function ko(e,t){return Mo(this,e,t,1)}function So(e,t){return Mo(this,e,t,-1)}function Eo(e){if(e<0)return Math.floor(e);else return Math.ceil(e)}function xo(){var e=this._milliseconds,t=this._days,n=this._months,a=this._data;if(!(0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0))e+=864e5*Eo(To(n)+t),n=t=0;return a.milliseconds=e%1e3,e=se(e/1e3),a.seconds=e%60,e=se(e/60),a.minutes=e%60,e=se(e/60),a.hours=e%24,t+=se(e/24),e=se(Lo(t)),n+=e,t-=Eo(To(e)),e=se(n/12),n%=12,a.days=t,a.months=n,a.years=e,this}function Lo(e){return e*4800/146097}function To(e){return e*146097/4800}function Co(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+Lo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(To(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}}function Do(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Oo(e){return function(){return this.as(e)}}var No=Oo("ms"),Yo=Oo("s"),Po=Oo("m"),jo=Oo("h"),Io=Oo("d"),Ro=Oo("w"),Ao=Oo("M"),Ho=Oo("Q"),Fo=Oo("y");function zo(){return xa(this)}function Wo(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bo=Vo("milliseconds"),Uo=Vo("seconds"),Ko=Vo("minutes"),Go=Vo("hours"),qo=Vo("days"),Jo=Vo("months"),$o=Vo("years");function Qo(){return se(this.days()/7)}var Xo=Math.round,Zo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ei(e,t,n,a,r){return r.relativeTime(t||1,!!n,e,a)}function ti(e,t,n,a){var r=xa(e).abs(),o=Xo(r.as("s")),i=Xo(r.as("m")),l=Xo(r.as("h")),s=Xo(r.as("d")),u=Xo(r.as("M")),d=Xo(r.as("w")),r=Xo(r.as("y")),s=(o<=n.ss?["s",o]:o0)-(e<0)||+e}function li(){if(!this.isValid())return this.localeData().invalidDate();var e=oi(this._milliseconds)/1e3,t=oi(this._days),n=oi(this._months),a,r,o,i,l=this.asSeconds(),s,u,d,c;if(!l)return"P0D";a=se(e/60);r=se(a/60);e%=60;a%=60;o=se(n/12);n%=12;i=e?e.toFixed(3).replace(/\.?0+$/,""):"";s=l<0?"-":"";u=ii(this._months)!==ii(l)?"-":"";d=ii(this._days)!==ii(l)?"-":"";c=ii(this._milliseconds)!==ii(l)?"-":"";return s+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(r||a||e?"T":"")+(r?c+r+"H":"")+(a?c+a+"M":"")+(e?c+i+"S":"")}var si=ra.prototype;return si.isValid=function(){return this._isValid},si.abs=function(){var e=this._data;return this._milliseconds=bo(this._milliseconds),this._days=bo(this._days),this._months=bo(this._months),e.milliseconds=bo(e.milliseconds),e.seconds=bo(e.seconds),e.minutes=bo(e.minutes),e.hours=bo(e.hours),e.months=bo(e.months),e.years=bo(e.years),this},si.add=function(e,t){return Mo(this,e,t,1)},si.subtract=function(e,t){return Mo(this,e,t,-1)},si.as=function(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+Lo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(To(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}},si.asMilliseconds=No,si.asSeconds=Yo,si.asMinutes=Po,si.asHours=jo,si.asDays=Io,si.asWeeks=Ro,si.asMonths=Ao,si.asQuarters=Ho,si.asYears=Fo,si.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN},si._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,a=this._data;0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*Eo(To(n)+t),n=t=0);return a.milliseconds=e%1e3,e=se(e/1e3),a.seconds=e%60,e=se(e/60),a.minutes=e%60,e=se(e/60),a.hours=e%24,t+=se(e/24),e=se(Lo(t)),n+=e,t-=Eo(To(e)),e=se(n/12),n%=12,a.days=t,a.months=n,a.years=e,this},si.clone=function(){return xa(this)},si.get=function(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN},si.milliseconds=Bo,si.seconds=Uo,si.minutes=Ko,si.hours=Go,si.days=qo,si.weeks=function(){return se(this.days()/7)},si.months=Jo,si.years=$o,si.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,a=Zo;"object"==typeof e&&(t=e,e=!1);"boolean"==typeof e&&(n=e);"object"==typeof t&&(a=Object.assign({},Zo,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1));t=this.localeData(),a=function(e,t,n,a){var r=xa(e).abs(),o=Xo(r.as("s")),i=Xo(r.as("m")),l=Xo(r.as("h")),s=Xo(r.as("d")),u=Xo(r.as("M")),d=Xo(r.as("w")),r=Xo(r.as("y")),s=(o<=n.ss?["s",o]:o 16.8.0")},p.prototype.validate=function(e,t){this.validateCallback(e,t)},p.prototype.reset=function(e){var t=1","Select");t=s(e,t);return e.onInputUpdate&&(t.onSearch=e.onInputUpdate,t.showSearch=!0),t}}),t.default=a.default.config(r.default,{transform:s,exportNames:["focusInput","handleSearchClear"]}),e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var a=n(127);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return n}}(e,t)||Object(a.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n(43),n(516)},function(e,t,n){"use strict";t.__esModule=!0;var v=s(n(3)),a=s(n(4)),r=s(n(5)),o=s(n(6)),_=s(n(0)),i=s(n(2)),b=s(n(12)),w=s(n(60)),l=s(n(7)),M=n(11);function s(e){return e&&e.__esModule?e:{default:e}}var u,o=(u=_.default.Component,(0,o.default)(k,u),k.prototype.render=function(){var e=this.props,t=e.tip,n=e.visible,a=e.children,r=e.className,o=e.style,i=e.indicator,l=e.color,s=e.prefix,u=e.fullScreen,d=e.disableScroll,c=e.onVisibleChange,f=e.tipAlign,p=e.size,h=e.inline,m=e.rtl,g=null,e=s+"loading-dot";g=i||(y=l,l=(0,b.default)(((l={})[s+"loading-fusion-reactor"]=!0,l[s+"loading-medium-fusion-reactor"]="medium"===p,l)),_.default.createElement("div",{className:l,dir:m?"rtl":void 0},_.default.createElement("span",{className:e,style:{backgroundColor:y}}),_.default.createElement("span",{className:e,style:{backgroundColor:y}}),_.default.createElement("span",{className:e,style:{backgroundColor:y}}),_.default.createElement("span",{className:e,style:{backgroundColor:y}})));var y=(0,b.default)(((e={})[s+"loading"]=!0,e[s+"open"]=n,e[s+"loading-inline"]=h,e[r]=r,e)),e=(0,b.default)(((h={})[s+"loading-tip"]=!0,h[s+"loading-tip-fullscreen"]=u,h[s+"loading-right-tip"]="right"===f,h)),f=M.obj.pickOthers(k.propTypes,this.props),h=(0,b.default)(((h={})[s+"loading-component"]=n,h[s+"loading-wrap"]=!0,h));return u?[a,_.default.createElement(w.default,(0,v.default)({key:"overlay",hasMask:!0,align:"cc cc",disableScroll:d},f,{className:r,style:o,visible:n,onRequestClose:c}),_.default.createElement("div",{className:e},_.default.createElement("div",{className:s+"loading-indicator"},g),_.default.createElement("div",{className:s+"loading-tip-content"},t),_.default.createElement("div",{className:s+"loading-tip-placeholder"},t)))]:_.default.createElement("div",(0,v.default)({className:y,style:o},f),n?_.default.createElement("div",{className:e},_.default.createElement("div",{className:s+"loading-indicator"},g),_.default.createElement("div",{className:s+"loading-tip-content"},t),_.default.createElement("div",{className:s+"loading-tip-placeholder"},t)):null,_.default.createElement("div",{className:h},n?_.default.createElement("div",{className:s+"loading-masker"}):null,a))},o=n=k,n.propTypes={prefix:i.default.string,tip:i.default.any,tipAlign:i.default.oneOf(["right","bottom"]),visible:i.default.bool,onVisibleChange:i.default.func,className:i.default.string,style:i.default.object,size:i.default.oneOf(["large","medium"]),indicator:i.default.any,color:i.default.string,fullScreen:i.default.bool,disableScroll:i.default.bool,children:i.default.any,inline:i.default.bool,rtl:i.default.bool},n.defaultProps={prefix:"next-",visible:!0,onVisibleChange:M.func.noop,animate:null,tipAlign:"bottom",size:"large",inline:!0,disableScroll:!1},o);function k(){return(0,a.default)(this,k),(0,r.default)(this,u.apply(this,arguments))}o.displayName="Loading",t.default=l.default.config(o),e.exports=t.default},function(e,t,n){"use strict";var a=n(52),a=n(29),r=n.n(a),o=n(70),a=n(407),i=n.n(a),a=n(169),s=n.n(a),u=n(47),l="Request error, please try again later!";function d(){var e=window.location.href;localStorage.removeItem("token");e=e.split("#")[0];window.location.href="".concat(e,"#/login")}var c;t.a=((c=i.a.create()).interceptors.request.use(function(e){var t=e.url,n=e.params,a=e.data,r=e.method,o=e.headers;if(n||(e.params={}),!t.includes("auth/users/login")){var i={};try{i=JSON.parse(localStorage.token)}catch(e){console.log(e),d()}var l=i.accessToken,n=void 0===l?"":l,l=i.username,l=void 0===l?"":l;e.params.accessToken=n,t.includes("auth")||(e.params.username=l),e.headers=Object.assign({},o,{accessToken:n})}return a&&Object(u.d)(a)&&["post","put"].includes(r)&&(e.data=s.a.stringify(a),o||(e.headers={}),e.headers["Content-Type"]="application/x-www-form-urlencoded"),e},function(e){return Promise.reject(e)}),c.interceptors.response.use(function(e){var t=e.data,t=(t.success,t.resultCode,t.resultMessage);return e.data},function(e){if(e.response){var t=e.response,n=t.data,a=void 0===n?{}:n,n=t.status,t="HTTP ERROR: ".concat(n);return"string"==typeof a?t=a:"object"===Object(o.a)(a)&&(t=a.message),r.a.error(t),[401,403].includes(n)&&["unknown user!","token invalid!","token expired!"].includes(t)&&d(),Promise.reject(e.response)}return r.a.error(l),Promise.reject(e)}),c)},function(e,t,n){"use strict";n(72),n(52),n(32),n(43),n(517)},function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"b",function(){return E}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return D}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return S}),n.d(t,"g",function(){return O});var a=n(55),t=n(0),l=n.n(t),t=n(2),s=n(59),r=n(172),u=n(56),d=n(38),t=n(173),c=n.n(t),t=n(107),o=n(53),t=n(408),i=n.n(t),f=function(e){var t=Object(r.a)();return t.displayName=e,t}("Router-History"),p=function(e){var t=Object(r.a)();return t.displayName=e,t}("Router"),h=function(n){function e(e){var t=n.call(this,e)||this;return t.state={location:e.history.location},t._isMounted=!1,t._pendingLocation=null,e.staticContext||(t.unlisten=e.history.listen(function(e){t._isMounted?t.setState({location:e}):t._pendingLocation=e})),t}Object(a.a)(e,n),e.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var t=e.prototype;return t.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},t.componentWillUnmount=function(){this.unlisten&&this.unlisten()},t.render=function(){return l.a.createElement(p.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},l.a.createElement(f.Provider,{children:this.props.children||null,value:this.props.history}))},e}(l.a.Component);l.a.Component;var m=function(e){function t(){return e.apply(this,arguments)||this}Object(a.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(l.a.Component);var g={},y=1e4,v=0;function _(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(g[e])return g[e];var t=c.a.compile(e);return vt?e.splice(t,e.length-t,n):e.push(n),i({action:"PUSH",location:n,index:t,entries:e}))})},replace:function(e,t){var n=D(e,t,l(),u.location);o.confirmTransitionTo(n,"REPLACE",a,function(e){e&&i({action:"REPLACE",location:u.entries[u.index]=n})})},go:s,goBack:function(){s(-1)},goForward:function(){s(1)},canGo:function(e){return 0<=(e=u.index+e)&&ex',"Tag"),"readonly"!==n&&"interactive"!==n||r.log.warning("Warning: [ shape="+n+" ] is deprecated at [ Tag ]"),"secondary"===a&&r.log.warning("Warning: [ type=secondary ] is deprecated at [ Tag ]"),["count","marked","value","onChange"].forEach(function(e){e in t&&r.log.warning("Warning: [ "+e+" ] is deprecated at [ Tag ]")}),("selected"in t||"defaultSelected"in t)&&r.log.warning("Warning: [ selected|defaultSelected ] is deprecated at [ Tag ], use [ checked|defaultChecked ] at [ Tag.Selectable ] instead of it"),"closed"in t&&r.log.warning("Warning: [ closed ] is deprecated at [ Tag ], use [ onClose ] at [ Tag.Closeable ] instead of it"),"onSelect"in t&&e("onSelect","","Tag"),"afterClose"in t&&r.log.warning("Warning: [ afterClose ] is deprecated at [ Tag ], use [ afterClose ] at [ Tag.Closeable ] instead of it"),t}});o.Group=a.default.config(i.default),o.Selectable=a.default.config(l.default),o.Closable=a.default.config(n.default),o.Closeable=o.Closable,t.default=o,e.exports=t.default},function(e,t,n){"use strict";n(68),n(437)},function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(e,t){e=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(e,t,n){e.exports=!n(102)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";n(43),n(68),n(120),n(103),n(514)},function(e,t,n){"use strict";n.d(t,"b",function(){return l});var a=n(21),r=n(34),o=n(27),i={namespaces:[]},l=function(e){return function(n){return r.a.get("v1/console/namespaces",{params:e}).then(function(e){var t=e.code,e=e.data;n({type:o.b,data:200===t?e:[]})})}};t.a=function(){var e=0this.menuNode.clientHeight&&(this.menuNode.clientHeight+this.menuNode.scrollTop<(e=this.itemNode.offsetTop+this.itemNode.offsetHeight)?this.menuNode.scrollTop=e-this.menuNode.clientHeight:this.itemNode.offsetTop"===(d=e.charAt(o+1))){r+="(",o++,0[0-9][0-9][0-9][0-9])-(?[0-9][0-9]?)-(?[0-9][0-9]?)(?:(?:[Tt]|[ \t]+)(?[0-9][0-9]?):(?[0-9][0-9]):(?[0-9][0-9])(?:.(?[0-9]*))?(?:[ \t]*(?Z|(?[-+])(?[0-9][0-9]?)(?::(?[0-9][0-9]))?))?)?$","i"),r.LOCAL_TIMEZONE_OFFSET=60*(new Date).getTimezoneOffset()*1e3,r.trim=function(e,t){var n,a;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,null==(a=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=a=new RegExp(t+""+t+"*$")),a.lastIndex=0,e.replace(n,"").replace(a,"")},r.ltrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,e.replace(n,"")},r.rtrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=n=new RegExp(t+""+t+"*$")),n.lastIndex=0,e.replace(n,"")},r.isEmpty=function(e){return!e||""===e||"0"===e||e instanceof Array&&0===e.length||this.isEmptyObject(e)},r.isEmptyObject=function(t){var n;return t instanceof Object&&0===function(){var e=[];for(n in t)a.call(t,n)&&e.push(n);return e}().length},r.subStrCount=function(e,t,n,a){var r,o,i,l,s=0;for(e=""+e,t=""+t,null!=n&&(e=e.slice(n)),null!=a&&(e=e.slice(0,a)),a=e.length,l=t.length,r=o=0,i=a;0<=i?o>6)+t(128|63&e):e<65536?t(224|e>>12)+t(128|e>>6&63)+t(128|63&e):t(240|e>>18)+t(128|e>>12&63)+t(128|e>>6&63)+t(128|63&e)},r.parseBoolean=function(e,t){var n;return null==t&&(t=!0),"string"==typeof e?(n=e.toLowerCase(),!(!t&&"no"===n)&&("0"!==n&&("false"!==n&&""!==n))):!!e},r.isNumeric=function(e){return this.REGEX_SPACES.lastIndex=0,"number"==typeof e||"string"==typeof e&&!isNaN(e)&&""!==e.replace(this.REGEX_SPACES,"")},r.stringToDate=function(e){var t,n,a,r,o,i,l,s,u;if(null==e||!e.length)return null;if(!(o=this.PATTERN_DATE.exec(e)))return null;if(u=parseInt(o.year,10),l=parseInt(o.month,10)-1,n=parseInt(o.day,10),null==o.hour)return t=new Date(Date.UTC(u,l,n));if(r=parseInt(o.hour,10),i=parseInt(o.minute,10),e=parseInt(o.second,10),null!=o.fraction){for(a=o.fraction.slice(0,3);a.length<3;)a+="0";a=parseInt(a,10)}else a=0;return null!=o.tz&&(s=6e4*(60*parseInt(o.tz_hour,10)+(null!=o.tz_minute?parseInt(o.tz_minute,10):0)),"-"===o.tz_sign&&(s*=-1)),t=new Date(Date.UTC(u,l,n,r,i,e,a)),s&&t.setTime(t.getTime()-s),t},r.strRepeat=function(e,t){for(var n="",a=0;ae.length)&&(t=e.length);for(var n=0,a=new Array(t);ndocument.F=Object<\/script>"),e.close(),u=e.F;t--;)delete u[s][i[t]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[s]=r(e),n=new a,a[s]=null,n[l]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var a=n(79).f,r=n(80),o=n(89)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&a(e,o,{configurable:!0,value:t})}},function(e,t,n){t.f=n(89)},function(e,t,n){var a=n(73),r=n(74),o=n(115),i=n(147),l=n(79).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=!o&&a.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";n(72),n(515)},function(e,t,n){},function(e,t,n){e.exports=n(526)},function(e,t){function s(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,r)}e.exports=function(l){return function(){var e=this,i=arguments;return new Promise(function(t,n){var a=l.apply(e,i);function r(e){s(a,t,n,r,o,"next",e)}function o(e){s(a,t,n,r,o,"throw",e)}r(void 0)})}}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var a=String.prototype.replace,r=/%20/g,o="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return a.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:i}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var d=s(n(3)),a=s(n(4)),r=s(n(5)),o=s(n(6)),c=n(0),f=s(c),i=s(n(2)),p=s(n(12)),h=s(n(23)),l=n(11),m=s(n(92));function s(e){return e&&e.__esModule?e:{default:e}}var u,g=l.func.bindCtx,y=l.obj.pickOthers,o=(u=c.Component,(0,o.default)(v,u),v.prototype.getSelected=function(){var e=this.props,t=e._key,n=e.root,a=e.selected,e=n.props.selectMode,n=n.state.selectedKeys;return a||!!e&&-1t.length&&t.every(function(e,t){return e===n[t]})},t.isAvailablePos=function(e,t,n){var a=n[t],n=a.type,a=a.disabled;return r(e,t)&&("item"===n&&!a||"submenu"===n)});t.getFirstAvaliablelChildKey=function(t,n){var e=Object.keys(n).find(function(e){return a(t+"-0",e,n)});return e?n[e].key:null},t.getChildSelected=function(e){var t=e.selectMode,n=e.selectedKeys,a=e._k2n,e=e._key;if(!a)return!1;var r=(a[e]&&a[e].pos)+"-";return!!t&&n.some(function(e){return a[e]&&0===a[e].pos.indexOf(r)})}},function(e,t,n){"use strict";n(43),n(32),n(591)},function(e,t,n){var o=n(604),i=Object.prototype.hasOwnProperty;function l(e){return Array.isArray(e)?"array":typeof e}function s(e,t){var n,a=0,r=0;for(n in e)if(i.call(e,n)){if("style"===n){if(!o(e[n],t[n]))return!1}else if("children"!==n&&e[n]!==t[n])return!1;a++}for(n in t)i.call(t,n)&&r++;return a===r&&function e(t,n){var a=l(t);if(a!==l(n))return!1;switch(a){case"array":if(t.length!==n.length)return!1;for(var r=0;r=u,u=(0,D.default)(((k={})[n+"upload-inner"]=!0,k[n+"hidden"]=f,k)),k=this.props.children;if("card"===r&&(r=(0,D.default)(((r={})[n+"upload-card"]=!0,r[n+"disabled"]=s,r)),k=C.default.createElement("div",{className:r},C.default.createElement(N.default,{size:"large",type:"add",className:n+"upload-add-icon"}),C.default.createElement("div",{tabIndex:"0",role:"button",className:n+"upload-text"},k))),b){if("function"!=typeof w)return t?C.default.createElement(P.default,{isPreview:!0,listType:t,style:i,className:o,value:this.state.value}):null;b=(0,D.default)(((b={})[n+"form-preview"]=!0,b[o]=!!o,b));return C.default.createElement("div",{style:i,className:b},w(this.state.value,this.props))}w=s?O.func.prevent:p,p=O.obj.pickAttrsWith(this.props,"data-");return C.default.createElement("div",(0,L.default)({className:e,style:i},p),C.default.createElement(Y.default,(0,L.default)({},M,{name:S,beforeUpload:c,dragable:a,disabled:s||f,className:u,onSelect:this.onSelect,onDrop:this.onDrop,onProgress:this.onProgress,onSuccess:this.onSuccess,onError:this.onError,ref:this.saveUploaderRef}),k),t||g?C.default.createElement(P.default,{useDataURL:l,fileNameRender:E,actionRender:x,uploader:this,listType:t,value:this.state.value,closable:d,onRemove:w,progressProps:v,onCancel:h,onPreview:m,extraRender:y,rtl:_}):null)},i=u=h,u.displayName="Upload",u.propTypes=(0,L.default)({},d.default.propTypes,P.default.propTypes,{prefix:l.default.string.isRequired,action:l.default.string,value:l.default.array,defaultValue:l.default.array,shape:l.default.oneOf(["card"]),listType:l.default.oneOf(["text","image","card"]),list:l.default.any,name:l.default.string,data:l.default.oneOfType([l.default.object,l.default.func]),formatter:l.default.func,limit:l.default.number,timeout:l.default.number,dragable:l.default.bool,closable:l.default.bool,useDataURL:l.default.bool,disabled:l.default.bool,onSelect:l.default.func,onProgress:l.default.func,onChange:l.default.func,onSuccess:l.default.func,afterSelect:l.default.func,onRemove:l.default.func,onError:l.default.func,beforeUpload:l.default.func,onDrop:l.default.func,className:l.default.string,style:l.default.object,children:l.default.node,autoUpload:l.default.bool,request:l.default.func,progressProps:l.default.object,rtl:l.default.bool,isPreview:l.default.bool,renderPreview:l.default.func,fileKeyName:l.default.string,fileNameRender:l.default.func,actionRender:l.default.func}),u.defaultProps=(0,L.default)({},d.default.defaultProps,{prefix:"next-",limit:1/0,autoUpload:!0,closable:!0,onSelect:n,onProgress:n,onChange:n,onSuccess:n,onRemove:n,onError:n,onDrop:n,beforeUpload:n,afterSelect:n}),a=function(){var u=this;this.onSelect=function(e){var t,n=u.props,a=n.autoUpload,r=n.afterSelect,o=n.onSelect,i=n.limit,l=u.state.value.length+e.length,s=i-u.state.value.length;s<=0||(n=t=e.map(function(e){e=(0,c.fileToObject)(e);return e.state="selected",e}),e=[],i 16.8.0")},p.prototype.validate=function(e,t){this.validateCallback(e,t)},p.prototype.reset=function(e){var t=1","Select");t=s(e,t);return e.onInputUpdate&&(t.onSearch=e.onInputUpdate,t.showSearch=!0),t}}),t.default=a.default.config(r.default,{transform:s,exportNames:["focusInput","handleSearchClear"]}),e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var a=n(127);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return n}}(e,t)||Object(a.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n(43),n(516)},function(e,t,n){"use strict";t.__esModule=!0;var v=s(n(3)),a=s(n(4)),r=s(n(5)),o=s(n(6)),_=s(n(0)),i=s(n(2)),b=s(n(12)),w=s(n(60)),l=s(n(7)),M=n(11);function s(e){return e&&e.__esModule?e:{default:e}}var u,o=(u=_.default.Component,(0,o.default)(k,u),k.prototype.render=function(){var e=this.props,t=e.tip,n=e.visible,a=e.children,r=e.className,o=e.style,i=e.indicator,l=e.color,s=e.prefix,u=e.fullScreen,d=e.disableScroll,c=e.onVisibleChange,f=e.tipAlign,p=e.size,h=e.inline,m=e.rtl,g=null,e=s+"loading-dot";g=i||(y=l,l=(0,b.default)(((l={})[s+"loading-fusion-reactor"]=!0,l[s+"loading-medium-fusion-reactor"]="medium"===p,l)),_.default.createElement("div",{className:l,dir:m?"rtl":void 0},_.default.createElement("span",{className:e,style:{backgroundColor:y}}),_.default.createElement("span",{className:e,style:{backgroundColor:y}}),_.default.createElement("span",{className:e,style:{backgroundColor:y}}),_.default.createElement("span",{className:e,style:{backgroundColor:y}})));var y=(0,b.default)(((e={})[s+"loading"]=!0,e[s+"open"]=n,e[s+"loading-inline"]=h,e[r]=r,e)),e=(0,b.default)(((h={})[s+"loading-tip"]=!0,h[s+"loading-tip-fullscreen"]=u,h[s+"loading-right-tip"]="right"===f,h)),f=M.obj.pickOthers(k.propTypes,this.props),h=(0,b.default)(((h={})[s+"loading-component"]=n,h[s+"loading-wrap"]=!0,h));return u?[a,_.default.createElement(w.default,(0,v.default)({key:"overlay",hasMask:!0,align:"cc cc",disableScroll:d},f,{className:r,style:o,visible:n,onRequestClose:c}),_.default.createElement("div",{className:e},_.default.createElement("div",{className:s+"loading-indicator"},g),_.default.createElement("div",{className:s+"loading-tip-content"},t),_.default.createElement("div",{className:s+"loading-tip-placeholder"},t)))]:_.default.createElement("div",(0,v.default)({className:y,style:o},f),n?_.default.createElement("div",{className:e},_.default.createElement("div",{className:s+"loading-indicator"},g),_.default.createElement("div",{className:s+"loading-tip-content"},t),_.default.createElement("div",{className:s+"loading-tip-placeholder"},t)):null,_.default.createElement("div",{className:h},n?_.default.createElement("div",{className:s+"loading-masker"}):null,a))},o=n=k,n.propTypes={prefix:i.default.string,tip:i.default.any,tipAlign:i.default.oneOf(["right","bottom"]),visible:i.default.bool,onVisibleChange:i.default.func,className:i.default.string,style:i.default.object,size:i.default.oneOf(["large","medium"]),indicator:i.default.any,color:i.default.string,fullScreen:i.default.bool,disableScroll:i.default.bool,children:i.default.any,inline:i.default.bool,rtl:i.default.bool},n.defaultProps={prefix:"next-",visible:!0,onVisibleChange:M.func.noop,animate:null,tipAlign:"bottom",size:"large",inline:!0,disableScroll:!1},o);function k(){return(0,a.default)(this,k),(0,r.default)(this,u.apply(this,arguments))}o.displayName="Loading",t.default=l.default.config(o),e.exports=t.default},function(e,t,n){"use strict";n(72),n(52),n(32),n(43),n(517)},function(e,t,n){"use strict";var a=n(52),a=n(29),r=n.n(a),o=n(70),a=n(130),i=n.n(a),a=n(170),s=n.n(a),u=n(47),l="Request error, please try again later!";function d(){var e=window.location.href;localStorage.removeItem("token");e=e.split("#")[0];window.location.href="".concat(e,"#/login")}var c;t.a=((c=i.a.create()).interceptors.request.use(function(e){var t=e.url,n=e.params,a=e.data,r=e.method,o=e.headers;if(n||(e.params={}),!t.includes("auth/users/login")){var i={};try{i=JSON.parse(localStorage.token)}catch(e){console.log(e),d()}var l=i.accessToken,n=void 0===l?"":l,l=i.username,l=void 0===l?"":l;e.params.accessToken=n,t.includes("auth")||(e.params.username=l),e.headers=Object.assign({},o,{accessToken:n})}return a&&Object(u.d)(a)&&["post","put"].includes(r)&&(e.data=s.a.stringify(a),o||(e.headers={}),e.headers["Content-Type"]="application/x-www-form-urlencoded"),e},function(e){return Promise.reject(e)}),c.interceptors.response.use(function(e){var t=e.data,t=(t.success,t.resultCode,t.resultMessage);return e.data},function(e){if(e.response){var t=e.response,n=t.data,a=void 0===n?{}:n,n=t.status,t="HTTP ERROR: ".concat(n);return"string"==typeof a?t=a:"object"===Object(o.a)(a)&&(t=a.message),r.a.error(t),[401,403].includes(n)&&["unknown user!","token invalid!","token expired!"].includes(t)&&d(),Promise.reject(e.response)}return r.a.error(l),Promise.reject(e)}),c)},function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"b",function(){return E}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return D}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return S}),n.d(t,"g",function(){return O});var a=n(55),t=n(0),l=n.n(t),t=n(2),s=n(59),r=n(173),u=n(56),d=n(38),t=n(174),c=n.n(t),t=n(107),o=n(53),t=n(408),i=n.n(t),f=function(e){var t=Object(r.a)();return t.displayName=e,t}("Router-History"),p=function(e){var t=Object(r.a)();return t.displayName=e,t}("Router"),h=function(n){function e(e){var t=n.call(this,e)||this;return t.state={location:e.history.location},t._isMounted=!1,t._pendingLocation=null,e.staticContext||(t.unlisten=e.history.listen(function(e){t._isMounted?t.setState({location:e}):t._pendingLocation=e})),t}Object(a.a)(e,n),e.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var t=e.prototype;return t.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},t.componentWillUnmount=function(){this.unlisten&&this.unlisten()},t.render=function(){return l.a.createElement(p.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},l.a.createElement(f.Provider,{children:this.props.children||null,value:this.props.history}))},e}(l.a.Component);l.a.Component;var m=function(e){function t(){return e.apply(this,arguments)||this}Object(a.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(l.a.Component);var g={},y=1e4,v=0;function _(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(g[e])return g[e];var t=c.a.compile(e);return vt?e.splice(t,e.length-t,n):e.push(n),i({action:"PUSH",location:n,index:t,entries:e}))})},replace:function(e,t){var n=D(e,t,l(),u.location);o.confirmTransitionTo(n,"REPLACE",a,function(e){e&&i({action:"REPLACE",location:u.entries[u.index]=n})})},go:s,goBack:function(){s(-1)},goForward:function(){s(1)},canGo:function(e){return 0<=(e=u.index+e)&&ex',"Tag"),"readonly"!==n&&"interactive"!==n||r.log.warning("Warning: [ shape="+n+" ] is deprecated at [ Tag ]"),"secondary"===a&&r.log.warning("Warning: [ type=secondary ] is deprecated at [ Tag ]"),["count","marked","value","onChange"].forEach(function(e){e in t&&r.log.warning("Warning: [ "+e+" ] is deprecated at [ Tag ]")}),("selected"in t||"defaultSelected"in t)&&r.log.warning("Warning: [ selected|defaultSelected ] is deprecated at [ Tag ], use [ checked|defaultChecked ] at [ Tag.Selectable ] instead of it"),"closed"in t&&r.log.warning("Warning: [ closed ] is deprecated at [ Tag ], use [ onClose ] at [ Tag.Closeable ] instead of it"),"onSelect"in t&&e("onSelect","","Tag"),"afterClose"in t&&r.log.warning("Warning: [ afterClose ] is deprecated at [ Tag ], use [ afterClose ] at [ Tag.Closeable ] instead of it"),t}});o.Group=a.default.config(i.default),o.Selectable=a.default.config(l.default),o.Closable=a.default.config(n.default),o.Closeable=o.Closable,t.default=o,e.exports=t.default},function(e,t,n){"use strict";n(68),n(437)},function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(e,t){e=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},function(e,t,n){e.exports=!n(102)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";n(43),n(68),n(120),n(103),n(514)},function(e,t,n){"use strict";n.d(t,"b",function(){return l});var a=n(21),r=n(35),o=n(27),i={namespaces:[]},l=function(e){return function(n){return r.a.get("v1/console/namespaces",{params:e}).then(function(e){var t=e.code,e=e.data;n({type:o.b,data:200===t?e:[]})})}};t.a=function(){var e=0this.menuNode.clientHeight&&(this.menuNode.clientHeight+this.menuNode.scrollTop<(e=this.itemNode.offsetTop+this.itemNode.offsetHeight)?this.menuNode.scrollTop=e-this.menuNode.clientHeight:this.itemNode.offsetTop"===(d=e.charAt(o+1))){r+="(",o++,0[0-9][0-9][0-9][0-9])-(?[0-9][0-9]?)-(?[0-9][0-9]?)(?:(?:[Tt]|[ \t]+)(?[0-9][0-9]?):(?[0-9][0-9]):(?[0-9][0-9])(?:.(?[0-9]*))?(?:[ \t]*(?Z|(?[-+])(?[0-9][0-9]?)(?::(?[0-9][0-9]))?))?)?$","i"),r.LOCAL_TIMEZONE_OFFSET=60*(new Date).getTimezoneOffset()*1e3,r.trim=function(e,t){var n,a;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,null==(a=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=a=new RegExp(t+""+t+"*$")),a.lastIndex=0,e.replace(n,"").replace(a,"")},r.ltrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,e.replace(n,"")},r.rtrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=n=new RegExp(t+""+t+"*$")),n.lastIndex=0,e.replace(n,"")},r.isEmpty=function(e){return!e||""===e||"0"===e||e instanceof Array&&0===e.length||this.isEmptyObject(e)},r.isEmptyObject=function(t){var n;return t instanceof Object&&0===function(){var e=[];for(n in t)a.call(t,n)&&e.push(n);return e}().length},r.subStrCount=function(e,t,n,a){var r,o,i,l,s=0;for(e=""+e,t=""+t,null!=n&&(e=e.slice(n)),null!=a&&(e=e.slice(0,a)),a=e.length,l=t.length,r=o=0,i=a;0<=i?o>6)+t(128|63&e):e<65536?t(224|e>>12)+t(128|e>>6&63)+t(128|63&e):t(240|e>>18)+t(128|e>>12&63)+t(128|e>>6&63)+t(128|63&e)},r.parseBoolean=function(e,t){var n;return null==t&&(t=!0),"string"==typeof e?(n=e.toLowerCase(),!(!t&&"no"===n)&&("0"!==n&&("false"!==n&&""!==n))):!!e},r.isNumeric=function(e){return this.REGEX_SPACES.lastIndex=0,"number"==typeof e||"string"==typeof e&&!isNaN(e)&&""!==e.replace(this.REGEX_SPACES,"")},r.stringToDate=function(e){var t,n,a,r,o,i,l,s,u;if(null==e||!e.length)return null;if(!(o=this.PATTERN_DATE.exec(e)))return null;if(u=parseInt(o.year,10),l=parseInt(o.month,10)-1,n=parseInt(o.day,10),null==o.hour)return t=new Date(Date.UTC(u,l,n));if(r=parseInt(o.hour,10),i=parseInt(o.minute,10),e=parseInt(o.second,10),null!=o.fraction){for(a=o.fraction.slice(0,3);a.length<3;)a+="0";a=parseInt(a,10)}else a=0;return null!=o.tz&&(s=6e4*(60*parseInt(o.tz_hour,10)+(null!=o.tz_minute?parseInt(o.tz_minute,10):0)),"-"===o.tz_sign&&(s*=-1)),t=new Date(Date.UTC(u,l,n,r,i,e,a)),s&&t.setTime(t.getTime()-s),t},r.strRepeat=function(e,t){for(var n="",a=0;ae.length)&&(t=e.length);for(var n=0,a=new Array(t);ndocument.F=Object<\/script>"),e.close(),u=e.F;t--;)delete u[s][i[t]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[s]=r(e),n=new a,a[s]=null,n[l]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var a=n(79).f,r=n(80),o=n(89)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&a(e,o,{configurable:!0,value:t})}},function(e,t,n){t.f=n(89)},function(e,t,n){var a=n(73),r=n(74),o=n(115),i=n(148),l=n(79).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=!o&&a.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";n(72),n(515)},function(e,t,n){},function(e,t,n){e.exports=n(526)},function(e,t){function s(e,t,n,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,r)}e.exports=function(l){return function(){var e=this,i=arguments;return new Promise(function(t,n){var a=l.apply(e,i);function r(e){s(a,t,n,r,o,"next",e)}function o(e){s(a,t,n,r,o,"throw",e)}r(void 0)})}}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var a=String.prototype.replace,r=/%20/g,o="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return a.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:i}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var d=s(n(3)),a=s(n(4)),r=s(n(5)),o=s(n(6)),c=n(0),f=s(c),i=s(n(2)),p=s(n(12)),h=s(n(23)),l=n(11),m=s(n(92));function s(e){return e&&e.__esModule?e:{default:e}}var u,g=l.func.bindCtx,y=l.obj.pickOthers,o=(u=c.Component,(0,o.default)(v,u),v.prototype.getSelected=function(){var e=this.props,t=e._key,n=e.root,a=e.selected,e=n.props.selectMode,n=n.state.selectedKeys;return a||!!e&&-1t.length&&t.every(function(e,t){return e===n[t]})},t.isAvailablePos=function(e,t,n){var a=n[t],n=a.type,a=a.disabled;return r(e,t)&&("item"===n&&!a||"submenu"===n)});t.getFirstAvaliablelChildKey=function(t,n){var e=Object.keys(n).find(function(e){return a(t+"-0",e,n)});return e?n[e].key:null},t.getChildSelected=function(e){var t=e.selectMode,n=e.selectedKeys,a=e._k2n,e=e._key;if(!a)return!1;var r=(a[e]&&a[e].pos)+"-";return!!t&&n.some(function(e){return a[e]&&0===a[e].pos.indexOf(r)})}},function(e,t,n){"use strict";n(43),n(32),n(591)},function(e,t,n){var o=n(604),i=Object.prototype.hasOwnProperty;function l(e){return Array.isArray(e)?"array":typeof e}function s(e,t){var n,a=0,r=0;for(n in e)if(i.call(e,n)){if("style"===n){if(!o(e[n],t[n]))return!1}else if("children"!==n&&e[n]!==t[n])return!1;a++}for(n in t)i.call(t,n)&&r++;return a===r&&function e(t,n){var a=l(t);if(a!==l(n))return!1;switch(a){case"array":if(t.length!==n.length)return!1;for(var r=0;r=u,u=(0,D.default)(((k={})[n+"upload-inner"]=!0,k[n+"hidden"]=f,k)),k=this.props.children;if("card"===r&&(r=(0,D.default)(((r={})[n+"upload-card"]=!0,r[n+"disabled"]=s,r)),k=C.default.createElement("div",{className:r},C.default.createElement(N.default,{size:"large",type:"add",className:n+"upload-add-icon"}),C.default.createElement("div",{tabIndex:"0",role:"button",className:n+"upload-text"},k))),b){if("function"!=typeof w)return t?C.default.createElement(P.default,{isPreview:!0,listType:t,style:i,className:o,value:this.state.value}):null;b=(0,D.default)(((b={})[n+"form-preview"]=!0,b[o]=!!o,b));return C.default.createElement("div",{style:i,className:b},w(this.state.value,this.props))}w=s?O.func.prevent:p,p=O.obj.pickAttrsWith(this.props,"data-");return C.default.createElement("div",(0,L.default)({className:e,style:i},p),C.default.createElement(Y.default,(0,L.default)({},M,{name:S,beforeUpload:c,dragable:a,disabled:s||f,className:u,onSelect:this.onSelect,onDrop:this.onDrop,onProgress:this.onProgress,onSuccess:this.onSuccess,onError:this.onError,ref:this.saveUploaderRef}),k),t||g?C.default.createElement(P.default,{useDataURL:l,fileNameRender:E,actionRender:x,uploader:this,listType:t,value:this.state.value,closable:d,onRemove:w,progressProps:v,onCancel:h,onPreview:m,extraRender:y,rtl:_}):null)},i=u=h,u.displayName="Upload",u.propTypes=(0,L.default)({},d.default.propTypes,P.default.propTypes,{prefix:l.default.string.isRequired,action:l.default.string,value:l.default.array,defaultValue:l.default.array,shape:l.default.oneOf(["card"]),listType:l.default.oneOf(["text","image","card"]),list:l.default.any,name:l.default.string,data:l.default.oneOfType([l.default.object,l.default.func]),formatter:l.default.func,limit:l.default.number,timeout:l.default.number,dragable:l.default.bool,closable:l.default.bool,useDataURL:l.default.bool,disabled:l.default.bool,onSelect:l.default.func,onProgress:l.default.func,onChange:l.default.func,onSuccess:l.default.func,afterSelect:l.default.func,onRemove:l.default.func,onError:l.default.func,beforeUpload:l.default.func,onDrop:l.default.func,className:l.default.string,style:l.default.object,children:l.default.node,autoUpload:l.default.bool,request:l.default.func,progressProps:l.default.object,rtl:l.default.bool,isPreview:l.default.bool,renderPreview:l.default.func,fileKeyName:l.default.string,fileNameRender:l.default.func,actionRender:l.default.func}),u.defaultProps=(0,L.default)({},d.default.defaultProps,{prefix:"next-",limit:1/0,autoUpload:!0,closable:!0,onSelect:n,onProgress:n,onChange:n,onSuccess:n,onRemove:n,onError:n,onDrop:n,beforeUpload:n,afterSelect:n}),a=function(){var u=this;this.onSelect=function(e){var t,n=u.props,a=n.autoUpload,r=n.afterSelect,o=n.onSelect,i=n.limit,l=u.state.value.length+e.length,s=i-u.state.value.length;s<=0||(n=t=e.map(function(e){e=(0,c.fileToObject)(e);return e.state="selected",e}),e=[],ir;)i(a,n=t[r++])&&(~s(o,n)||o.push(n));return o}},function(e,t,n){var a=n(184);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";function v(){return this}var _=n(115),b=n(85),w=n(186),M=n(86),k=n(144),S=n(463),E=n(146),x=n(466),L=n(89)("iterator"),T=!([].keys&&"next"in[].keys()),C="values";e.exports=function(e,t,n,a,r,o,i){S(n,t,a);function l(e){if(!T&&e in h)return h[e];switch(e){case"keys":case C:return function(){return new n(this,e)}}return function(){return new n(this,e)}}var s,u,d,c=t+" Iterator",f=r==C,p=!1,h=e.prototype,m=h[L]||h["@@iterator"]||r&&h[r],g=m||l(r),y=r?f?l("entries"):g:void 0,a="Array"==t&&h.entries||m;if(a&&(d=x(a.call(new e)))!==Object.prototype&&d.next&&(E(d,c,!0),_||"function"==typeof d[L]||M(d,L,v)),f&&m&&m.name!==C&&(p=!0,g=function(){return m.call(this)}),_&&!i||!T&&!p&&h[L]||M(h,L,g),k[t]=g,k[c]=v,r)if(s={values:f?g:l(C),keys:o?g:l("keys"),entries:y},i)for(u in s)u in h||w(h,u,s[u]);else b(b.P+b.F*(T||p),t,s);return s}},function(e,t,n){e.exports=n(86)},function(e,t,n){var a=n(182),r=n(141).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,r)}},function(e,t,n){var a=n(117),r=n(113),o=n(88),i=n(136),l=n(80),s=n(180),u=Object.getOwnPropertyDescriptor;t.f=n(75)?u:function(e,t){if(e=o(e),t=i(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!a.f.call(e,t),e[t])}},function(e,t,n){"use strict";t.__esModule=!0;var g=a(n(3));t.default=function(e,t,n){var a=e.prefix,r=e.locale,o=e.pure,i=e.rtl,l=e.device,s=e.popupContainer,u=e.errorBoundary,d=t.nextPrefix,c=t.nextLocale,f=t.nextPure,p=t.nextWarning,h=t.nextRtl,m=t.nextDevice,e=t.nextPopupContainer,t=t.nextErrorBoundary,a=a||d,d=void 0;c&&(d=c[n])&&(d.momentLocale=c.momentLocale);c=void 0;r?c=v.obj.deepMerge({},y.default[n],d,r):d&&(c=v.obj.deepMerge({},y.default[n],d));f="boolean"==typeof o?o:f,h="boolean"==typeof i?i:h,u=(0,g.default)({},_(t),_(u));"open"in u||(u.open=!1);return{prefix:a,locale:c,pure:f,rtl:h,warning:p,device:l||m||void 0,popupContainer:s||e,errorBoundary:u}};var y=a(n(44)),v=n(11);function a(e){return e&&e.__esModule?e:{default:e}}var _=function(e){return null==e?{}:"boolean"==typeof e?{open:e}:(0,g.default)({open:!0},e)};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.matches=t.hasDOM=void 0;var a,r=n(40),o=(a=r)&&a.__esModule?a:{default:a};t.hasClass=u,t.addClass=d,t.removeClass=c,t.toggleClass=function(e,t){if(!s||!e)return!1;{if(e.classList)return e.classList.toggle(t);var n=u(e,t);return(n?c:d)(e,t,!0),!n}},t.getStyle=function(e,t){if(!s||!e)return null;var n=function(e){return e&&1===e.nodeType?window.getComputedStyle(e,null):{}}(e);return 1!==arguments.length?(t=m[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,function(e,t,n){if(t=t.toLowerCase(),"auto"===n){if("height"===t)return e.offsetHeight||0;if("width"===t)return e.offsetWidth||0}t in h||(h[t]=p.test(t));return h[t]?parseFloat(n)||0:n}(e,t,n.getPropertyValue((0,i.hyphenate)(t))||e.style[(0,i.camelcase)(t)])):n},t.setStyle=g,t.scrollbar=function(){var e=document.createElement("div");e.className+="just-to-get-scrollbar-size",g(e,{position:"absolute",width:"100px",height:"100px",overflow:"scroll",top:"-9999px"}),document.body&&document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{width:t,height:n}},t.getOffset=function(e){var t=e.getBoundingClientRect(),e=e.ownerDocument.defaultView;return{top:t.top+e.pageYOffset,left:t.left+e.pageXOffset}},t.getPixels=function(e){var t=document.defaultView;if("number"==typeof+e&&!isNaN(+e))return+e;if("string"==typeof e){var n=/(\d+)px/,a=/(\d+)vh/;if(Array.isArray(e.match(n)))return+e.match(n)[1]||0;if(Array.isArray(e.match(a))){t=t.innerHeight/100;return+e.match(a)[1]*t||0}}return 0},t.getClosest=function(e,t){if(!s||!e)return null;{if(Element.prototype.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(y(e,t))return e}while(null!==(e=e.parentElement))}return null},t.getMatches=y;var i=n(191),l=n(90);var s=t.hasDOM="undefined"!=typeof window&&!!window.document&&!!document.createElement;function u(e,t){return!(!s||!e)&&(e.classList?e.classList.contains(t):-1r;)i(a,n=t[r++])&&(~s(o,n)||o.push(n));return o}},function(e,t,n){var a=n(185);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";function v(){return this}var _=n(115),b=n(85),w=n(187),M=n(86),k=n(145),S=n(463),E=n(147),x=n(466),L=n(89)("iterator"),T=!([].keys&&"next"in[].keys()),C="values";e.exports=function(e,t,n,a,r,o,i){S(n,t,a);function l(e){if(!T&&e in h)return h[e];switch(e){case"keys":case C:return function(){return new n(this,e)}}return function(){return new n(this,e)}}var s,u,d,c=t+" Iterator",f=r==C,p=!1,h=e.prototype,m=h[L]||h["@@iterator"]||r&&h[r],g=m||l(r),y=r?f?l("entries"):g:void 0,a="Array"==t&&h.entries||m;if(a&&(d=x(a.call(new e)))!==Object.prototype&&d.next&&(E(d,c,!0),_||"function"==typeof d[L]||M(d,L,v)),f&&m&&m.name!==C&&(p=!0,g=function(){return m.call(this)}),_&&!i||!T&&!p&&h[L]||M(h,L,g),k[t]=g,k[c]=v,r)if(s={values:f?g:l(C),keys:o?g:l("keys"),entries:y},i)for(u in s)u in h||w(h,u,s[u]);else b(b.P+b.F*(T||p),t,s);return s}},function(e,t,n){e.exports=n(86)},function(e,t,n){var a=n(183),r=n(142).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,r)}},function(e,t,n){var a=n(117),r=n(113),o=n(88),i=n(137),l=n(80),s=n(181),u=Object.getOwnPropertyDescriptor;t.f=n(75)?u:function(e,t){if(e=o(e),t=i(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return r(!a.f.call(e,t),e[t])}},function(e,t,n){"use strict";t.__esModule=!0;var g=a(n(3));t.default=function(e,t,n){var a=e.prefix,r=e.locale,o=e.pure,i=e.rtl,l=e.device,s=e.popupContainer,u=e.errorBoundary,d=t.nextPrefix,c=t.nextLocale,f=t.nextPure,p=t.nextWarning,h=t.nextRtl,m=t.nextDevice,e=t.nextPopupContainer,t=t.nextErrorBoundary,a=a||d,d=void 0;c&&(d=c[n])&&(d.momentLocale=c.momentLocale);c=void 0;r?c=v.obj.deepMerge({},y.default[n],d,r):d&&(c=v.obj.deepMerge({},y.default[n],d));f="boolean"==typeof o?o:f,h="boolean"==typeof i?i:h,u=(0,g.default)({},_(t),_(u));"open"in u||(u.open=!1);return{prefix:a,locale:c,pure:f,rtl:h,warning:p,device:l||m||void 0,popupContainer:s||e,errorBoundary:u}};var y=a(n(44)),v=n(11);function a(e){return e&&e.__esModule?e:{default:e}}var _=function(e){return null==e?{}:"boolean"==typeof e?{open:e}:(0,g.default)({open:!0},e)};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.matches=t.hasDOM=void 0;var a,r=n(40),o=(a=r)&&a.__esModule?a:{default:a};t.hasClass=u,t.addClass=d,t.removeClass=c,t.toggleClass=function(e,t){if(!s||!e)return!1;{if(e.classList)return e.classList.toggle(t);var n=u(e,t);return(n?c:d)(e,t,!0),!n}},t.getStyle=function(e,t){if(!s||!e)return null;var n=function(e){return e&&1===e.nodeType?window.getComputedStyle(e,null):{}}(e);return 1!==arguments.length?(t=m[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,function(e,t,n){if(t=t.toLowerCase(),"auto"===n){if("height"===t)return e.offsetHeight||0;if("width"===t)return e.offsetWidth||0}t in h||(h[t]=p.test(t));return h[t]?parseFloat(n)||0:n}(e,t,n.getPropertyValue((0,i.hyphenate)(t))||e.style[(0,i.camelcase)(t)])):n},t.setStyle=g,t.scrollbar=function(){var e=document.createElement("div");e.className+="just-to-get-scrollbar-size",g(e,{position:"absolute",width:"100px",height:"100px",overflow:"scroll",top:"-9999px"}),document.body&&document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{width:t,height:n}},t.getOffset=function(e){var t=e.getBoundingClientRect(),e=e.ownerDocument.defaultView;return{top:t.top+e.pageYOffset,left:t.left+e.pageXOffset}},t.getPixels=function(e){var t=document.defaultView;if("number"==typeof+e&&!isNaN(+e))return+e;if("string"==typeof e){var n=/(\d+)px/,a=/(\d+)vh/;if(Array.isArray(e.match(n)))return+e.match(n)[1]||0;if(Array.isArray(e.match(a))){t=t.innerHeight/100;return+e.match(a)[1]*t||0}}return 0},t.getClosest=function(e,t){if(!s||!e)return null;{if(Element.prototype.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(y(e,t))return e}while(null!==(e=e.parentElement))}return null},t.getMatches=y;var i=n(192),l=n(90);var s=t.hasDOM="undefined"!=typeof window&&!!window.document&&!!document.createElement;function u(e,t){return!(!s||!e)&&(e.classList?e.classList.contains(t):-1n.clientHeight&&0>6]+c[128|63&s]:s<55296||57344<=s?i+=c[224|s>>12]+c[128|s>>6&63]+c[128|63&s]:(l+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(l)),i+=c[240|s>>18]+c[128|s>>12&63]+c[128|s>>6&63]+c[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(d(e)){for(var n=[],a=0;athis.popupNode.offsetWidth&&f(this.popupNode,"width",d.offsetWidth+"px"),"outside"!==s||"hoz"===l&&1===n||(f(this.popupNode,"height",c.offsetHeight+"px"),f(this.popupNode,"overflow-y","scroll"));c=this.popupProps;c.onOpen&&c.onOpen()}catch(e){return null}},k.prototype.handlePopupClose=function(){var e=this.props.root.popupNodes,t=e.indexOf(this.popupNode);-1 "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":" "+this.message},e.exports=n},function(e,t){var r={}.hasOwnProperty;function n(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}(function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function a(){this.constructor=e}a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype})(n,Error),n.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?" "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":" "+this.message},e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var y=m(n(3)),a=m(n(4)),r=m(n(5)),o=m(n(6)),i=n(0),v=m(i),l=n(24),s=m(n(2)),_=m(n(12)),u=n(11),f=m(n(50)),d=m(n(60)),b=m(n(10)),c=m(n(44)),p=m(n(640)),h=m(n(391)),w=n(163);function m(e){return e&&e.__esModule?e:{default:e}}var M=d.default.Popup,g=f.default.Item,k=f.default.Group,n=u.func.noop,S=u.func.bindCtx,E=u.func.makeChain;function x(e){e.preventDefault()}var L,o=(L=v.default.Component,(0,o.default)(T,L),T.prototype.componentDidMount=function(){var e=this;setTimeout(function(){return e.syncWidth()},0),u.events.on(window,"resize",this.handleResize)},T.prototype.componentDidUpdate=function(e,t){e.label===this.props.label&&t.value===this.state.value||this.syncWidth()},T.prototype.componentWillUnmount=function(){u.events.off(window,"resize",this.handleResize),clearTimeout(this.resizeTimeout)},T.prototype.syncWidth=function(){var e=this,t=this.props,n=t.popupStyle,t=t.popupProps;n&&"width"in n||t&&t.style&&"width"in t.style||(t=u.dom.getStyle(this.selectDOM,"width"))&&this.width!==t&&(this.width=t,this.popupRef&&this.shouldAutoWidth()&&setTimeout(function(){e.popupRef&&e.popupRef.getInstance().overlay&&u.dom.setStyle(e.popupRef.getInstance().overlay.getInstance().getContentNode(),"width",e.width)},0))},T.prototype.handleResize=function(){var e=this;clearTimeout(this.resizeTimeout),this.state.visible&&(this.resizeTimeout=setTimeout(function(){e.syncWidth()},200))},T.prototype.setDataSource=function(e){var t=e.dataSource,e=e.children;return i.Children.count(e)?this.dataStore.updateByDS(e,!0):Array.isArray(t)?this.dataStore.updateByDS(t,!1):[]},T.prototype.setVisible=function(e,t){this.props.disabled&&e||this.state.visible===e||("visible"in this.props||this.setState({visible:e}),this.props.onVisibleChange(e,t))},T.prototype.setFirstHightLightKeyForMenu=function(){var e;this.props.autoHighlightFirstItem&&this.dataStore.getMenuDS().length&&this.dataStore.getEnableDS().length&&(e=""+this.dataStore.getEnableDS()[0].value,this.setState({highlightKey:e}),this.props.onToggleHighlightItem(e,"autoFirstItem"))},T.prototype.handleChange=function(e){var t;"value"in this.props||this.setState({value:e});for(var n=arguments.length,a=Array(1e.slidesToShow&&(n=e.slideWidth*e.slidesToShow*-1,o=e.slideHeight*e.slidesToShow*-1),e.slideCount%e.slidesToScroll!=0&&(t=e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow,e.rtl&&(t=(e.slideIndex>=e.slideCount?e.slideCount-e.slideIndex:e.slideIndex)+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow),t&&(o=e.slideIndex>e.slideCount?(n=(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideWidth*-1,(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideHeight*-1):(n=e.slideCount%e.slidesToScroll*e.slideWidth*-1,e.slideCount%e.slidesToScroll*e.slideHeight*-1)))):e.slideCount%e.slidesToScroll!=0&&e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow&&(n=(e.slidesToShow-e.slideCount%e.slidesToScroll)*e.slideWidth),e.centerMode&&(e.infinite?n+=e.slideWidth*Math.floor(e.slidesToShow/2):n=e.slideWidth*Math.floor(e.slidesToShow/2)),a=e.vertical?e.slideIndex*e.slideHeight*-1+o:e.slideIndex*e.slideWidth*-1+n,!0===e.variableWidth&&(n=void 0,a=(r=e.slideCount<=e.slidesToShow||!1===e.infinite?i.default.findDOMNode(e.trackRef).childNodes[e.slideIndex]:(n=e.slideIndex+e.slidesToShow,i.default.findDOMNode(e.trackRef).childNodes[n]))?-1*r.offsetLeft:0,!0===e.centerMode&&(r=!1===e.infinite?i.default.findDOMNode(e.trackRef).children[e.slideIndex]:i.default.findDOMNode(e.trackRef).children[e.slideIndex+e.slidesToShow+1])&&(a=-1*r.offsetLeft+(e.listWidth-r.offsetWidth)/2)),a)}},function(e,t,n){"use strict";t.__esModule=!0;var p=u(n(3)),h=u(n(17)),o=u(n(4)),i=u(n(5)),a=u(n(6)),m=u(n(0)),r=u(n(2)),g=u(n(12)),l=u(n(7)),y=u(n(23)),s=n(11);function u(e){return e&&e.__esModule?e:{default:e}}var d,a=(d=m.default.Component,(0,a.default)(c,d),c.prototype.render=function(){var e=this.props,t=e.title,n=e.children,a=e.className,r=e.isExpanded,o=e.disabled,i=e.style,l=e.prefix,s=e.onClick,u=e.id,d=(0,h.default)(e,["title","children","className","isExpanded","disabled","style","prefix","onClick","id"]),c=(0,g.default)(((f={})[l+"collapse-panel"]=!0,f[l+"collapse-panel-hidden"]=!r,f[l+"collapse-panel-expanded"]=r,f[l+"collapse-panel-disabled"]=o,f[a]=a,f)),a=(0,g.default)(((e={})[l+"collapse-panel-icon"]=!0,e[l+"collapse-panel-icon-expanded"]=r,e)),f=u?u+"-heading":void 0,e=u?u+"-region":void 0;return m.default.createElement("div",(0,p.default)({className:c,style:i,id:u},d),m.default.createElement("div",{id:f,className:l+"collapse-panel-title",onClick:s,onKeyDown:this.onKeyDown,tabIndex:"0","aria-disabled":o,"aria-expanded":r,"aria-controls":e,role:"button"},m.default.createElement(y.default,{type:"arrow-right",className:a,"aria-hidden":"true"}),t),m.default.createElement("div",{className:l+"collapse-panel-content",role:"region",id:e},n))},a=n=c,n.propTypes={prefix:r.default.string,style:r.default.object,children:r.default.any,isExpanded:r.default.bool,disabled:r.default.bool,title:r.default.node,className:r.default.string,onClick:r.default.func,id:r.default.string},n.defaultProps={prefix:"next-",isExpanded:!1,onClick:s.func.noop},n.isNextPanel=!0,a);function c(){var e,n;(0,o.default)(this,c);for(var t=arguments.length,a=Array(t),r=0;r\n com.alibaba.nacos\n nacos-client\n ${version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\nimport java.util.concurrent.Executor;\nimport com.alibaba.nacos.api.NacosFactory;\nimport com.alibaba.nacos.api.config.ConfigService;\nimport com.alibaba.nacos.api.config.listener.Listener;\nimport com.alibaba.nacos.api.exception.NacosException;\n\n/**\n * Config service example\n *\n * @author Nacos\n *\n */\npublic class ConfigExample {\n\n\tpublic static void main(String[] args) throws NacosException, InterruptedException {\n\t\tString serverAddr = "localhost";\n\t\tString dataId = "'.concat(e.dataId,'";\n\t\tString group = "').concat(e.group,'";\n\t\tProperties properties = new Properties();\n\t\tproperties.put(PropertyKeyConst.SERVER_ADDR, serverAddr);\n\t\tConfigService configService = NacosFactory.createConfigService(properties);\n\t\tString content = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tconfigService.addListener(dataId, group, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void receiveConfigInfo(String configInfo) {\n\t\t\t\tSystem.out.println("recieve:" + configInfo);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\n\t\tboolean isPublishOk = configService.publishConfig(dataId, group, "content");\n\t\tSystem.out.println(isPublishOk);\n\n\t\tThread.sleep(3000);\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\n\t\tboolean isRemoveOk = configService.removeConfig(dataId, group);\n\t\tSystem.out.println(isRemoveOk);\n\t\tThread.sleep(3000);\n\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tThread.sleep(300000);\n\n\t}\n}\n')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,e=L.a.createElement("div",null);return L.a.createElement("div",null,L.a.createElement(_.a,{title:t.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:e,onClose:this.closeDialog.bind(this)},L.a.createElement("div",{style:{height:500}},L.a.createElement(N.a,{tip:t.loading,style:{width:"100%"},visible:this.state.loading},L.a.createElement(Y.a,{shape:"text",style:{height:40,paddingBottom:10}},L.a.createElement(P,{title:"Java",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),L.a.createElement(P,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigboot_code)}),L.a.createElement(P,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloud_code)}),L.a.createElement(P,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),L.a.createElement(P,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),L.a.createElement(P,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),L.a.createElement(P,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),L.a.createElement("div",{ref:"codepreview"})))))}}]),n}(L.a.Component),a.displayName="ShowCodeing",a=l))||a,l=(n(65),n(37)),a=n.n(l),I=(n(685),a.a.Row),R=a.a.Col,A=(0,u.a.config)((a=l=function(e){Object(S.a)(n,e);var t=Object(E.a)(n);function n(e){return Object(w.a)(this,n),(e=t.call(this,e)).state={visible:!1,title:"",content:"",isok:!0,dataId:"",group:""},e}return Object(M.a)(n,[{key:"componentDidMount",value:function(){this.initData()}},{key:"initData",value:function(){var e=this.props.locale,e=void 0===e?{}:e;this.setState({title:e.confManagement})}},{key:"openDialog",value:function(e){this.setState({visible:!0,title:e.title,content:e.content,isok:e.isok,dataId:e.dataId,group:e.group,message:e.message})}},{key:"closeDialog",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,e=L.a.createElement("div",{style:{textAlign:"right"}},L.a.createElement(d.a,{type:"primary",onClick:this.closeDialog.bind(this)},t.determine));return L.a.createElement("div",null,L.a.createElement(_.a,{visible:this.state.visible,footer:e,style:{width:555},onCancel:this.closeDialog.bind(this),onClose:this.closeDialog.bind(this),title:t.deletetitle},L.a.createElement("div",null,L.a.createElement(I,null,L.a.createElement(R,{span:"4",style:{paddingTop:16}},L.a.createElement(y.a,{type:"".concat(this.state.isok?"success":"delete","-filling"),style:{color:this.state.isok?"green":"red"},size:"xl"})),L.a.createElement(R,{span:"20"},L.a.createElement("div",null,L.a.createElement("h3",null,this.state.isok?t.deletedSuccessfully:t.deleteFailed),L.a.createElement("p",null,L.a.createElement("span",{style:{color:"#999",marginRight:5}},"Data ID:"),L.a.createElement("span",{style:{color:"#c7254e"}},this.state.dataId)),L.a.createElement("p",null,L.a.createElement("span",{style:{color:"#999",marginRight:5}},"Group:"),L.a.createElement("span",{style:{color:"#c7254e"}},this.state.group)),this.state.isok?"":L.a.createElement("p",{style:{color:"red"}},this.state.message)))))))}}]),n}(L.a.Component),l.displayName="DeleteDialog",l=a))||l,a=(n(686),n(411)),H=n.n(a),F=(0,u.a.config)((a=l=function(e){Object(S.a)(n,e);var t=Object(E.a)(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(M.a)(n,[{key:"render",value:function(){var e=this.props,t=e.data,n=void 0===t?{}:t,t=e.height,e=e.locale,a=void 0===e?{}:e;return L.a.createElement("div",null,"notice"===n.modeType?L.a.createElement("div",{"data-spm-click":"gostr=/aliyun;locaid=notice"},L.a.createElement(H.a,{style:{marginBottom:1e?b.a.createElement(L.a,{className:"pagination",total:s.count,pageSize:e,onChange:function(e){return a.onChangePage(e)}}):null,b.a.createElement(C,{ref:this.editInstanceDialog,serviceName:o,clusterName:n,groupName:i,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},getInstanceList:function(){return a.getInstanceList()}})):null}}]),n}(b.a.Component),r.displayName="InstanceTable",r.defaultProps={filters:new Map},o=o))||o,D=function(e,t){return e.filter(function(e){var n=e.metadata,a=!0;return t.forEach(function(e,t){if(e!==n[t])return a=!1}),a})},O=o,N=n(47),Y=n(31),o=(n(161),n(71)),o=n.n(o),P=o.a.Group,j=o.a.Closeable,I=v.a.Item;var R=a.a.config(function(e){var t=Object(_.useState)(""),n=(u=Object(Y.a)(t,2))[0],a=u[1],r=Object(_.useState)(""),o=(s=Object(Y.a)(r,2))[0],i=s[1],t=Object(_.useState)(""),r=(u=Object(Y.a)(t,2))[0],l=u[1],s=Object(_.useState)(""),u=(t=Object(Y.a)(s,2))[0],d=t[1],s=Object(_.useState)(new Map),c=(t=Object(Y.a)(s,2))[0],f=t[1],t=void 0===(s=e.locale)?{}:s,s=function(){var e;h(),n&&o&&(e=new Map(Array.from(c)).set(n,o),f(e),l(""),d(""),p())},p=function(){a(""),i("")},h=function(){l(n?"":"error"),d(o?"":"error")};return Object(_.useEffect)(function(){e.setFilters(c)},[c]),b.a.createElement(m.a,{contentHeight:"auto",className:"inner-card"},b.a.createElement(v.a,{inline:!0,size:"small"},b.a.createElement(I,{label:t.title},b.a.createElement(I,null,b.a.createElement(y.a,{placeholder:"key",value:n,trim:!0,onChange:function(e){return a(e)},onPressEnter:s,state:r})),b.a.createElement(I,null,b.a.createElement(y.a,{placeholder:"value",value:o,trim:!0,onChange:function(e){return i(e)},onPressEnter:s,state:u})),b.a.createElement(I,{label:""},b.a.createElement(g.a,{type:"primary",onClick:s,style:{marginRight:10}},t.addFilter),0i&&m.a.createElement(s.a,{className:"users-pagination",current:l,total:n.totalCount,pageSize:i,onChange:function(e){return t.setState({pageNo:e},function(){return t.getUsers()})}}),m.a.createElement(E,{visible:e,onOk:function(e){return Object(g.c)(e).then(function(e){return t.setState({pageNo:1},function(){return t.getUsers()}),e})},onCancel:function(){return t.colseCreateUser()}}),m.a.createElement(x.a,{username:r,onOk:function(e){return Object(g.k)(e).then(function(e){return t.getUsers(),e})},onCancel:function(){return t.setState({passwordResetUser:void 0})}}))}}]),n}(m.a.Component),i.displayName="UserManagement",r=r))||r)||r;t.a=r},function(e,t,n){"use strict";n(63);var a=n(46),M=n.n(a),r=(n(32),n(18)),k=n.n(r),o=(n(168),n(97)),S=n.n(o),i=(n(39),n(10)),E=n.n(i),x=n(21),a=(n(52),n(29)),l=n.n(a),r=(n(35),n(19)),s=n.n(r),o=(n(49),n(26)),u=n.n(o),d=n(13),c=n(14),f=n(22),p=n(16),h=n(15),i=(n(25),n(7)),a=n.n(i),r=(n(61),n(20)),L=n.n(r),o=(n(65),n(37)),i=n.n(o),r=(n(41),n(9)),T=n.n(r),o=n(0),C=n.n(o),m=n(1),D=n(47),O=n(48),N=n(133),r=(n(51),n(33)),g=n.n(r),o=(n(126),n(57)),y=n.n(o),v=(n(395),y.a.Item),Y=(0,a.a.config)((o=r=function(e){Object(p.a)(n,e);var t=Object(h.a)(n);function n(e){return Object(d.a)(this,n),(e=t.call(this,e)).state={dialogvisible:!1,loading:!1},e.defaultCode="",e.nodejsCode="TODO",e.cppCode="TODO",e.shellCode="TODO",e.pythonCode="TODO",e.record={},e.springCode="TODO",e.sprigbootCode="TODO",e.sprigcloudCode="TODO",e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){}},{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"getData",value:function(){var e=Object(m.b)("namespace"),e={group:this.record.group||"",dataId:this.record.dataId||"",namespace:e,inEdas:window.globalConfig.isParentEdas()};this.defaultCode=this.getJavaCode(e),this.createCodeMirror("text/x-java",this.defaultCode),this.springCode=this.getSpringCode(e),this.sprigbootCode=this.getSpringBootCode(e),this.sprigcloudCode=this.getSpringCloudCode(e),this.nodejsCode=this.getNodejsCode(e),this.cppCode=this.getCppCode(e),this.shellCode=this.getShellCode(e),this.pythonCode=this.getPythonCode(e),this.forceUpdate()}},{key:"getJavaCode",value:function(e){return'/* Refer to document: https://github.com/alibaba/nacos/blob/master/example/src/main/java/com/alibaba/nacos/example\n* pom.xml\n \n com.alibaba.nacos\n nacos-client\n ${latest.version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\n\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingFactory;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.listener.Event;\nimport com.alibaba.nacos.api.naming.listener.EventListener;\nimport com.alibaba.nacos.api.naming.listener.NamingEvent;\n\n/**\n * @author nkorange\n */\npublic class NamingExample {\n\n public static void main(String[] args) throws NacosException {\n\n Properties properties = new Properties();\n properties.setProperty("serverAddr", System.getProperty("serverAddr"));\n properties.setProperty("namespace", System.getProperty("namespace"));\n\n NamingService naming = NamingFactory.createNamingService(properties);\n\n naming.registerInstance("'.concat(this.record.name,'", "11.11.11.11", 8888, "TEST1");\n\n naming.registerInstance("').concat(this.record.name,'", "2.2.2.2", 9999, "DEFAULT");\n\n System.out.println(naming.getAllInstances("').concat(this.record.name,'"));\n\n naming.deregisterInstance("').concat(this.record.name,'", "2.2.2.2", 9999, "DEFAULT");\n\n System.out.println(naming.getAllInstances("').concat(this.record.name,'"));\n\n naming.subscribe("').concat(this.record.name,'", new EventListener() {\n @Override\n public void onEvent(Event event) {\n System.out.println(((NamingEvent)event).getServiceName());\n System.out.println(((NamingEvent)event).getInstances());\n }\n });\n }\n}')}},{key:"getSpringCode",value:function(e){return'/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example\n* pom.xml\n \n com.alibaba.nacos\n nacos-spring-context\n ${latest.version}\n \n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring\npackage com.alibaba.nacos.example.spring;\n\nimport com.alibaba.nacos.api.annotation.NacosProperties;\nimport com.alibaba.nacos.spring.context.annotation.discovery.EnableNacosDiscovery;\nimport org.springframework.context.annotation.Configuration;\n\n@Configuration\n@EnableNacosDiscovery(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848"))\npublic class NacosConfiguration {\n\n}\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring/controller\npackage com.alibaba.nacos.example.spring.controller;\n\nimport com.alibaba.nacos.api.annotation.NacosInjected;\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\nimport java.util.List;\n\nimport static org.springframework.web.bind.annotation.RequestMethod.GET;\n\n@Controller\n@RequestMapping("discovery")\npublic class DiscoveryController {\n\n @NacosInjected\n private NamingService namingService;\n\n @RequestMapping(value = "/get", method = GET)\n @ResponseBody\n public List get(@RequestParam String serviceName) throws NacosException {\n return namingService.getAllInstances(serviceName);\n }\n}'}},{key:"getSpringBootCode",value:function(e){return'/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example\n* pom.xml\n \n com.alibaba.boot\n nacos-discovery-spring-boot-starter\n ${latest.version}\n \n*/\n/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/resources\n* application.properties\n nacos.discovery.server-addr=127.0.0.1:8848\n*/\n// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/java/com/alibaba/nacos/example/spring/boot/controller\n\npackage com.alibaba.nacos.example.spring.boot.controller;\n\nimport com.alibaba.nacos.api.annotation.NacosInjected;\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\nimport java.util.List;\n\nimport static org.springframework.web.bind.annotation.RequestMethod.GET;\n\n@Controller\n@RequestMapping("discovery")\npublic class DiscoveryController {\n\n @NacosInjected\n private NamingService namingService;\n\n @RequestMapping(value = "/get", method = GET)\n @ResponseBody\n public List get(@RequestParam String serviceName) throws NacosException {\n return namingService.getAllInstances(serviceName);\n }\n}'}},{key:"getSpringCloudCode",value:function(e){return"/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/\n* pom.xml\n \n org.springframework.cloud\n spring-cloud-starter-alibaba-nacos-discovery\n ${latest.version}\n \n*/\n\n// nacos-spring-cloud-provider-example\n\n/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/resources\n* application.properties\nserver.port=18080\nspring.application.name=".concat(this.record.name,'\nspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848\n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/java/com/alibaba/nacos/example/spring/cloud\npackage com.alibaba.nacos.example.spring.cloud;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RestController;\n\n/**\n * @author xiaojing\n */\n@SpringBootApplication\n@EnableDiscoveryClient\npublic class NacosProviderApplication {\n\n public static void main(String[] args) {\n SpringApplication.run(NacosProviderApplication.class, args);\n}\n\n @RestController\n class EchoController {\n @RequestMapping(value = "/echo/{string}", method = RequestMethod.GET)\n public String echo(@PathVariable String string) {\n return "Hello Nacos Discovery " + string;\n }\n }\n}\n\n// nacos-spring-cloud-consumer-example\n\n/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/resources\n* application.properties\nspring.application.name=micro-service-oauth2\nspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848\n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/java/com/alibaba/nacos/example/spring/cloud\npackage com.alibaba.nacos.example.spring.cloud;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\nimport org.springframework.cloud.client.loadbalancer.LoadBalanced;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RestController;\nimport org.springframework.web.client.RestTemplate;\n\n/**\n * @author xiaojing\n */\n@SpringBootApplication\n@EnableDiscoveryClient\npublic class NacosConsumerApplication {\n\n @LoadBalanced\n @Bean\n public RestTemplate restTemplate() {\n return new RestTemplate();\n }\n\n public static void main(String[] args) {\n SpringApplication.run(NacosConsumerApplication.class, args);\n }\n\n @RestController\n public class TestController {\n\n private final RestTemplate restTemplate;\n\n @Autowired\n public TestController(RestTemplate restTemplate) {this.restTemplate = restTemplate;}\n\n @RequestMapping(value = "/echo/{str}", method = RequestMethod.GET)\n public String echo(@PathVariable String str) {\n return restTemplate.getForObject("http://service-provider/echo/" + str, String.class);\n }\n }\n}')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}),this.cm.setSize("auto","490px"))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,e=C.a.createElement("div",null);return C.a.createElement("div",null,C.a.createElement(s.a,{title:t.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:e,onClose:this.closeDialog.bind(this)},C.a.createElement("div",{style:{height:500}},C.a.createElement(g.a,{tip:t.loading,style:{width:"100%"},visible:this.state.loading},C.a.createElement(y.a,{shape:"text",style:{height:40,paddingBottom:10}},C.a.createElement(v,{title:"Java",key:0,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),C.a.createElement(v,{title:"Spring",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.springCode)}),C.a.createElement(v,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigbootCode)}),C.a.createElement(v,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloudCode)}),C.a.createElement(v,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),C.a.createElement(v,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),C.a.createElement(v,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),C.a.createElement(v,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),C.a.createElement("div",{ref:"codepreview"})))))}}]),n}(C.a.Component),r.displayName="ShowServiceCodeing",o=o))||o,P=(n(708),n(27)),j=T.a.Item,I=i.a.Row,R=i.a.Col,A=L.a.Column,a=(0,a.a.config)((a=i=function(e){Object(p.a)(a,e);var t=Object(h.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).getQueryLater=function(){setTimeout(function(){return n.queryServiceList()})},n.showcode=function(){setTimeout(function(){return n.queryServiceList()})},n.setNowNameSpace=function(e,t){return n.setState({nowNamespaceName:e,nowNamespaceId:t})},n.rowColor=function(e){return{className:e.healthyInstanceCount?"":"row-bg-red"}},n.editServiceDialog=C.a.createRef(),n.showcode=C.a.createRef(),n.state={loading:!1,total:0,pageSize:10,currentPage:1,dataSource:[],search:{serviceName:"",groupName:""},hasIpCount:!("false"===localStorage.getItem("hasIpCount"))},n.field=new u.a(Object(f.a)(n)),n}return Object(c.a)(a,[{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){try{this.editServiceDialog.current.getInstance().show(this.state.service)}catch(e){}}},{key:"queryServiceList",value:function(){var n=this,e=this.state,t=e.currentPage,a=e.pageSize,r=e.search,o=e.withInstances,o=void 0!==o&&o,e=e.hasIpCount,r=["hasIpCount=".concat(e),"withInstances=".concat(o),"pageNo=".concat(t),"pageSize=".concat(a),"serviceNameParam=".concat(r.serviceName),"groupNameParam=".concat(r.groupName)];this.openLoading(),Object(m.c)({url:"v1/ns/catalog/services?".concat(r.join("&")),success:function(){var e=0i&&m.a.createElement(s.a,{className:"users-pagination",current:l,total:t.totalCount,pageSize:i,onChange:function(e){return a.setState({pageNo:e},function(){return a.getRoles()})}}),m.a.createElement(E,{visible:e,onOk:function(e){return Object(g.b)(e).then(function(e){return a.getRoles(),e})},onCancel:function(){return a.colseCreateRole()}}))}}]),n}(m.a.Component),i.displayName="RolesManagement",r=r))||r)||r);t.a=r},function(e,t,n){"use strict";n(63);var a=n(46),s=n.n(a),r=(n(35),n(19)),u=n.n(r),d=n(31),o=(n(61),n(20)),c=n.n(o),i=(n(32),n(18)),f=n.n(i),l=n(13),p=n(14),h=n(16),m=n(15),g=(n(25),n(7)),a=n.n(g),r=n(0),y=n.n(r),o=n(42),v=n(45),i=n(77),_=n(48),g=(n(49),n(26)),b=n.n(g),w=n(22),r=(n(62),n(30)),M=n.n(r),g=(n(41),n(9)),k=n.n(g),S=k.a.Item,E=M.a.Option,x={labelCol:{fixedSpan:4},wrapperCol:{span:19}},L=Object(o.b)(function(e){return{namespaces:e.namespace.namespaces}},{getNamespaces:i.b,searchRoles:v.l})(g=(0,a.a.config)((g=r=function(e){Object(h.a)(o,e);var r=Object(m.a)(o);function o(){var t;Object(l.a)(this,o);for(var e=arguments.length,n=new Array(e),a=0;an&&y.a.createElement(s.a,{className:"users-pagination",current:e,total:t.totalCount,pageSize:n,onChange:function(e){return a.setState({pageNo:e},function(){return a.getPermissions()})}}),y.a.createElement(L,{visible:i,onOk:function(e){return Object(v.a)(e).then(function(e){return a.setState({pageNo:1},function(){return a.getPermissions()}),e})},onCancel:function(){return a.colseCreatePermission()}}))}}]),n}(y.a.Component),i.displayName="PermissionsManagement",a=a))||a)||a);t.a=a},function(e,t,n){"use strict";n(51);var a=n(33),l=n.n(a),r=(n(32),n(18)),s=n.n(r),o=(n(39),n(10)),u=n.n(o),a=(n(49),n(26)),i=n.n(a),r=(n(35),n(19)),d=n.n(r),c=n(31),f=n(13),p=n(14),h=n(22),m=n(16),g=n(15),o=(n(25),n(7)),a=n.n(o),r=(n(65),n(37)),o=n.n(r),r=(n(41),n(9)),y=n.n(r),r=(n(126),n(57)),v=n.n(r),r=n(0),_=n.n(r),b=n(1),w=n(47),M=n(112),k=(n(650),n(34)),r=(n(62),n(30)),S=n.n(r),r=n(42),n=n(77),E=y.a.Item,x=S.a.Option,L={labelCol:{fixedSpan:4},wrapperCol:{span:19}},T=Object(r.b)(function(e){return{namespaces:e.namespace.namespaces}},{getNamespaces:n.b})(n=(0,a.a.config)((n=r=function(e){Object(m.a)(n,e);var t=Object(g.a)(n);function n(e){return Object(f.a)(this,n),(e=t.call(this,e)).field=new i.a(Object(h.a)(e)),e.state={namespacesDataSource:[]},e}return Object(p.a)(n,[{key:"componentDidMount",value:function(){this.getNamespaces()}},{key:"getNamespaces",value:function(){var t=this;Object(b.c)({type:"get",url:"v1/console/namespaces",success:function(e){200===e.code?(t.state.namespacesDataSource,t.setState({namespacesDataSource:e.data})):d.a.alert({title:prompt,content:e.message})},error:function(e){window.namespaceList=[{namespace:"",namespaceShowName:"公共空间",type:0}]}})}},{key:"render",value:function(){var t=this,e=this.props.locale,n=void 0===e?{}:e,a=this.field.getError,r=this.props,o=r.visible,i=r.onOk,l=r.onCancel,s=r.dataId,e=r.group,r=this.state.namespacesDataSource;return _.a.createElement(_.a.Fragment,null,_.a.createElement(d.a,{title:n.configComparisonTitle,visible:o,onOk:function(){var e=Object.keys({dataId:"dataId",group:"group",namespace:"namespace"}).map(function(e){return t.field.getValue(e)});i(e)},onClose:l,onCancel:l,afterClose:function(){return t.field.reset()}},_.a.createElement(y.a,Object.assign({style:{width:430}},L,{field:this.field}),_.a.createElement(E,{label:"namespace",help:a("namespace")},_.a.createElement(S.a,{name:"namespace",placeholder:n.namespaceSelect,style:{width:"100%"}},r.map(function(e){var t=e.namespace,e=e.namespaceShowName;return _.a.createElement(x,{value:t},e," ",t?"(".concat(t,")"):"")}))),_.a.createElement(E,{label:"Data Id",required:!0,help:a("Data Id")},_.a.createElement(u.a,{name:"dataId",trim:!0,placeholder:n.dataIdInput,defaultValue:s})),_.a.createElement(E,{label:"Group",required:!0,help:a("Group")},_.a.createElement(u.a,{name:"group",trim:!0,placeholder:n.configComparison,defaultValue:e})))))}}]),n}(_.a.Component),r.displayName="ConfigCompare",n=n))||n)||n,C=v.a.Item,D=y.a.Item,O=o.a.Row,N=o.a.Col,a=(0,a.a.config)((a=o=function(e){Object(m.a)(n,e);var t=Object(g.a)(n);function n(e){var l;return Object(f.a)(this,n),(l=t.call(this,e)).openCompare=function(e){var t=Object(c.a)(e,3),n=t[0],a=t[1],e=t[2],r=Object(h.a)(l),t=l.props.locale,o=void 0===t?{}:t,i=l.monacoEditor.getValue(),e={show:"all",group:a,dataId:n,tenant:e};k.a.get("v1/cs/configs",{params:e}).then(function(e){null!=e&&""!==e?(e=e.content,i=i.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"),e=e.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"),r.compareEditorDialog.current.getInstance().openDialog(i,e)):d.a.alert({title:o.error,content:o.configNotFind})})},l.state={loading:!1,showmore:!1,activeKey:"normal",hasbeta:!1,ips:"",checkedBeta:!1,switchEncrypt:!1,tag:[],editorClass:"editor-normal"},l.field=new i.a(Object(h.a)(l)),l.dataId=Object(b.b)("dataId")||"yanlin",l.group=Object(b.b)("group")||"DEFAULT_GROUP",l.ips="",l.valueMap={},l.tenant=Object(b.b)("namespace")||"",l.searchDataId=Object(b.b)("searchDataId")||"",l.searchGroup=Object(b.b)("searchGroup")||"",l.pageSize=Object(b.b)("pageSize"),l.pageNo=Object(b.b)("pageNo"),l.diffEditorDialog=_.a.createRef(),l.compareEditorDialog=_.a.createRef(),l}return Object(p.a)(n,[{key:"componentDidMount",value:function(){this.initData(),this.getDataDetail(),this.initFullScreenEvent()}},{key:"initData",value:function(){var e=this.props.locale,e=void 0===e?{}:e;this.dataId.startsWith("cipher-")&&this.setState({switchEncrypt:!0}),this.setState({tag:[{title:e.official,key:"normal"}]})}},{key:"initFullScreenEvent",value:function(){var t=this;document.body.addEventListener("keydown",function(e){"F1"===e.key&&(e.preventDefault(),t.setState({editorClass:"editor-full-screen"})),"Escape"===e.key&&t.setState({editorClass:"editor-normal"})})}},{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"changeTab",value:function(e){var t=e.split("-")[0],t=this.valueMap[t];this.setState({activeKey:e}),this.field.setValue("content",t.content),t.betaIps&&this.setState({ips:t.betaIps})}},{key:"toggleMore",value:function(){this.setState({showmore:!this.state.showmore})}},{key:"getDataDetail",value:function(){var e=this.props.locale,n=void 0===e?{}:e,a=this;this.serverId=Object(b.b)("serverId")||"center",this.tenant=Object(b.b)("namespace")||"",this.edasAppName=Object(b.b)("edasAppName")||"",this.inApp=this.edasAppName;e="v1/cs/configs?show=all&dataId=".concat(this.dataId,"&group=").concat(this.group);Object(b.c)({url:e,beforeSend:function(){a.openLoading()},success:function(e){var t;null!=e?(t=e,a.valueMap.normal=t,a.field.setValue("dataId",t.dataId),a.field.setValue("content",t.content),a.field.setValue("appName",a.inApp?a.edasAppName:t.appName),a.field.setValue("envs",a.serverId),a.field.setValue("group",t.group),a.field.setValue("config_tags",t.configTags),a.field.setValue("desc",t.desc),a.field.setValue("md5",t.md5),a.field.setValue("type",t.type),a.initMoacoEditor(t.type,t.content)):d.a.alert({title:n.error,content:e.message})},complete:function(){a.closeLoading()}})}},{key:"goList",value:function(){this.props.history.push(Object(w.a)("/configurationManagement",{serverId:this.serverId,group:this.searchGroup,dataId:this.searchDataId,namespace:this.tenant,pageNo:this.pageNo,pageSize:this.pageSize}))}},{key:"initMoacoEditor",value:function(e,t){var n=this,a=document.getElementById("container");a.innerHTML="";var r={value:t,language:e,codeLens:!(this.monacoEditor=null),selectOnLineNumbers:!0,roundedSelection:!1,readOnly:!0,lineNumbersMinChars:!0,theme:"vs-dark",wordWrapColumn:120,folding:!1,showFoldingControls:"always",wordWrap:"wordWrapColumn",cursorStyle:"line",automaticLayout:!0};window.monaco?this.monacoEditor=window.monaco.editor.create(a,r):window.importEditor(function(){n.monacoEditor=window.monaco.editor.create(a,r)})}},{key:"openDiff",value:function(){var n=this,e=this.props.locale,a=void 0===e?{}:e,r=this.monacoEditor.getValue(),e="v1/cs/history/previous?id=".concat(this.valueMap.normal.id);Object(b.c)({url:e,beforeSend:function(){n.openLoading()},success:function(e){var t;null!=e?(t=e.content,r=r.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"),t=t.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"),n.diffEditorDialog.current.getInstance().openDialog(r,t)):d.a.alert({title:a.error,content:e.message})},complete:function(){n.closeLoading()}})}},{key:"onClickConfigCompare",value:function(){this.setState({configCompareVisible:!0})}},{key:"closeConfigCompare",value:function(){this.setState({configCompareVisible:!1})}},{key:"render",value:function(){var t=this,e=this.props.locale,n=void 0===e?{}:e,a=this.state,r=a.configCompareVisible,o=a.editorClass,i=this.field.init,e={labelCol:{span:2},wrapperCol:{span:22}},a=this.state.activeKey.split("-")[0];return _.a.createElement("div",{style:{padding:10}},_.a.createElement(l.a,{shape:"flower",tip:"Loading...",style:{width:"100%",position:"relative"},visible:this.state.loading,color:"#333"},_.a.createElement("h1",{style:{position:"relative",width:"100%"}},n.configurationDetails),this.state.hasbeta?_.a.createElement("div",{style:{display:"inline-block",height:40,width:"80%",overflow:"hidden"}},_.a.createElement(v.a,{shape:"wrapped",onChange:this.changeTab.bind(this),lazyLoad:!1,activeKey:this.state.activeKey},this.state.tag.map(function(e){return _.a.createElement(C,{title:e.title,key:e.key})}))):"",_.a.createElement(y.a,{inline:!1,field:this.field},_.a.createElement(D,Object.assign({label:"Data ID:",required:!0},e),_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("dataId")))),_.a.createElement(D,Object.assign({label:"Group:",required:!0},e),_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("group")))),_.a.createElement("div",{style:{marginTop:10}},_.a.createElement("a",{style:{fontSize:"12px"},onClick:this.toggleMore.bind(this)},this.state.showmore?n.collapse:n.more)),this.state.showmore?_.a.createElement("div",null,_.a.createElement(D,Object.assign({label:n.home},e),_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("appName")))),_.a.createElement(D,Object.assign({label:n.tags},e),_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("config_tags"))))):"",_.a.createElement(D,Object.assign({label:n.description},e),_.a.createElement(u.a.TextArea,Object.assign({htmlType:"text",multiple:!0,rows:3,readOnly:!0},i("desc")))),"normal"===a?"":_.a.createElement(D,Object.assign({label:n.betaRelease},e),_.a.createElement("div",{style:{width:"100%"},id:"betaips"},_.a.createElement(u.a.TextArea,{multiple:!0,style:{width:"100%"},value:this.state.ips,readOnly:!0,placeholder:"127.0.0.1,127.0.0.2"}))),_.a.createElement(D,Object.assign({label:"MD5:",required:!0},e),_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("md5")))),_.a.createElement(D,Object.assign({label:n.configuration,required:!0},e),_.a.createElement("div",{className:o,id:"container"}))),_.a.createElement(O,null,_.a.createElement(N,{span:"24",className:"button-list"},_.a.createElement(s.a,{size:"large",type:"primary",onClick:function(){return t.onClickConfigCompare()}},n.configComparison)," ",_.a.createElement(s.a,{size:"large",type:"primary",onClick:this.openDiff.bind(this)},n.versionComparison)," ",_.a.createElement(s.a,{size:"large",type:"normal",onClick:this.goList.bind(this)},n.back))),_.a.createElement(M.a,{ref:this.diffEditorDialog,title:n.versionComparison,currentArea:n.dialogCurrentArea,originalArea:n.dialogOriginalArea}),_.a.createElement(M.a,{ref:this.compareEditorDialog,title:n.configComparison,currentArea:n.dialogCurrentConfig,originalArea:n.dialogComparedConfig})),_.a.createElement(T,{visible:r,dataId:this.dataId,group:this.group,onOk:function(e){t.openCompare(e)},onCancel:function(){return t.closeConfigCompare()}}))}}]),n}(_.a.Component),o.displayName="ConfigDetail",a=a))||a;t.a=a},function(e,t,n){"use strict";n(51);var a=n(33),r=n.n(a),o=(n(63),n(46)),i=n.n(o),a=(n(61),n(20)),l=n.n(a),o=(n(41),n(9)),s=n.n(o),a=(n(39),n(10)),u=n.n(a),o=(n(49),n(26)),d=n.n(o),c=n(13),f=n(14),p=n(22),h=n(16),m=n(15),a=(n(25),n(7)),o=n.n(a),a=n(0),g=n.n(a),y=n(48),v=n(1),o=(n(665),(0,o.a.config)((o=n=function(e){Object(h.a)(n,e);var t=Object(m.a)(n);function n(e){return Object(c.a)(this,n),(e=t.call(this,e)).field=new d.a(Object(p.a)(e)),e.appName=Object(v.b)("appName")||"",e.preAppName=e.appName,e.group=Object(v.b)("historyGroup")||"",e.preGroup=e.group,e.dataId=Object(v.b)("historyDataId")||"",e.preDataId=e.dataId,e.serverId=Object(v.b)("historyServerId")||"",e.state={value:"",visible:!1,total:0,pageSize:10,currentPage:1,dataSource:[],fieldValue:[],showAppName:!1,showgroup:!1,dataId:e.dataId,group:e.group,appName:e.appName,selectValue:[],loading:!1},e}return Object(f.a)(n,[{key:"componentDidMount",value:function(){this.field.setValue("group",this.group),this.field.setValue("dataId",this.dataId)}},{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"cleanAndGetData",value:function(){0this.state.pageSize&&k.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},k.a.createElement(y.a,{current:this.state.pageNo,total:l,pageSize:this.state.pageSize,onChange:function(e){return t.setState({pageNo:e},function(){return t.querySubscriberList()})}}))))}}]),a}(k.a.Component),r.displayName="SubscriberList",i=i))||i)||i;t.a=i},function(e,t,n){"use strict";n(51);var a=n(33),f=n.n(a),r=(n(63),n(46)),p=n.n(r),o=(n(161),n(71)),h=n.n(o),a=(n(32),n(18)),m=n.n(a),r=(n(39),n(10)),g=n.n(r),o=(n(49),n(26)),i=n.n(o),l=n(13),s=n(14),u=n(22),d=n(16),c=n(15),a=(n(25),n(7)),r=n.n(a),o=(n(394),n(110)),y=n.n(o),a=(n(61),n(20)),v=n.n(a),o=(n(65),n(37)),a=n.n(o),o=(n(41),n(9)),_=n.n(o),o=n(0),b=n.n(o),w=n(1),M=n(48),k=(n(711),_.a.Item),S=a.a.Row,E=a.a.Col,x=v.a.Column,L=y.a.Panel,r=(0,r.a.config)((r=a=function(e){Object(d.a)(a,e);var t=Object(c.a)(a);function a(e){var n;return Object(l.a)(this,a),(n=t.call(this,e)).getQueryLater=function(){setTimeout(function(){return n.queryClusterStateList()})},n.setNowNameSpace=function(e,t){return n.setState({nowNamespaceName:e,nowNamespaceId:t})},n.rowColor=function(e){return{className:(e.voteFor,"")}},n.state={loading:!1,total:0,pageSize:10,currentPage:1,keyword:"",dataSource:[]},n.field=new i.a(Object(u.a)(n)),n}return Object(s.a)(a,[{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){try{this.editServiceDialog.current.getInstance().show(this.state.service)}catch(e){}}},{key:"queryClusterStateList",value:function(){var n=this,e=this.state,t=e.currentPage,a=e.pageSize,r=e.keyword,e=e.withInstances,r=["withInstances=".concat(void 0!==e&&e),"pageNo=".concat(t),"pageSize=".concat(a),"keyword=".concat(r)];Object(w.c)({url:"v1/core/cluster/nodes?".concat(r.join("&")),beforeSend:function(){return n.openLoading()},success:function(){var e=0this.state.pageSize&&b.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},b.a.createElement(p.a,{current:this.state.currentPage,total:this.state.total,pageSize:this.state.pageSize,onChange:function(e){return t.setState({currentPage:e},function(){return t.queryClusterStateList()})}}))))}}]),a}(b.a.Component),a.displayName="ClusterNodeList",r=r))||r;t.a=r},function(e,t,n){"use strict";n(32);var a=n(18),r=n.n(a),o=(n(41),n(9)),i=n.n(o),a=(n(39),n(10)),l=n.n(a),o=(n(49),n(26)),s=n.n(o),u=n(13),d=n(14),c=n(22),f=n(16),p=n(15),a=(n(25),n(7)),o=n.n(a),a=n(0),h=n.n(a),m=n(1),o=(n(662),(0,o.a.config)((o=n=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){return Object(u.a)(this,n),(e=t.call(this,e)).state={showmore:!1},e.edasAppName=Object(m.b)("edasAppName"),e.edasAppId=Object(m.b)("edasAppId"),e.inApp=e.edasAppName,e.field=new s.a(Object(c.a)(e)),e.dataId=Object(m.b)("dataId")||"yanlin",e.group=Object(m.b)("group")||"DEFAULT_GROUP",e.serverId=Object(m.b)("serverId")||"center",e.nid=Object(m.b)("nid")||"123509854",e.tenant=Object(m.b)("namespace")||"",e}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.getDataDetail()}},{key:"toggleMore",value:function(){this.setState({showmore:!this.state.showmore})}},{key:"getDataDetail",value:function(){this.props.locale;var t=this;Object(m.c)({url:"v1/cs/history?dataId=".concat(this.dataId,"&group=").concat(this.group,"&nid=").concat(this.nid),success:function(e){null!=e&&(e=e,t.field.setValue("dataId",e.dataId),t.field.setValue("content",e.content),t.field.setValue("appName",t.inApp?t.edasAppName:e.appName),t.field.setValue("envs",t.serverId),t.field.setValue("srcUser",e.srcUser),t.field.setValue("srcIp",e.srcIp),t.field.setValue("opType",e.opType.trim()),t.field.setValue("group",e.group),t.field.setValue("md5",e.md5))}})}},{key:"goList",value:function(){this.props.history.push("/historyRollback?serverId=".concat(this.serverId,"&historyGroup=").concat(this.group,"&historyDataId=").concat(this.dataId,"&namespace=").concat(this.tenant))}},{key:"getOpType",value:function(e,t){return e?{U:t.update,I:t.insert,D:t.deleteAction}[e]:""}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,n=this.field.init,a={labelCol:{fixedSpan:6},wrapperCol:{span:18}},e=this.getOpType;return h.a.createElement("div",{style:{padding:10}},h.a.createElement("h1",null,t.historyDetails),h.a.createElement(i.a,{field:this.field},h.a.createElement(i.a.Item,Object.assign({label:"Data ID:",required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("dataId"))),h.a.createElement("div",{style:{marginTop:10}},h.a.createElement("a",{style:{fontSize:"12px"},onClick:this.toggleMore.bind(this)},this.state.showmore?t.recipientFrom:t.moreAdvancedOptions))),h.a.createElement("div",{style:{overflow:"hidden",height:this.state.showmore?"auto":"0"}},h.a.createElement(i.a.Item,Object.assign({label:"Group:",required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("group")))),h.a.createElement(i.a.Item,Object.assign({label:t.home},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("appName"))))),h.a.createElement(i.a.Item,Object.assign({label:t.operator,required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("srcUser")))),h.a.createElement(i.a.Item,Object.assign({label:t.sourceIp,required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("srcIp")))),h.a.createElement(i.a.Item,Object.assign({label:t.actionType,required:!0},a),h.a.createElement(l.a,{htmlType:"text",readOnly:!0,value:e(n("opType").value,t)})),h.a.createElement(i.a.Item,Object.assign({label:"MD5:",required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("md5")))),h.a.createElement(i.a.Item,Object.assign({label:t.configureContent,required:!0},a),h.a.createElement(l.a.TextArea,Object.assign({htmlType:"text",multiple:!0,rows:15,readOnly:!0},n("content")))),h.a.createElement(i.a.Item,Object.assign({label:" "},a),h.a.createElement(r.a,{type:"primary",onClick:this.goList.bind(this)},t.back))))}}]),n}(h.a.Component),n.displayName="HistoryDetail",o=o))||o);t.a=o},function(e,t,z){"use strict";z.r(t),function(e){var t=z(51),n=z(33),a=z.n(n),r=z(25),o=z(7),i=z.n(o),l=z(13),s=z(14),u=z(16),d=z(15),c=z(21),f=z(0),p=z.n(f),h=z(24),m=z.n(h),g=z(84),y=z(403),v=z(404),_=z(42),b=z(36),w=z(94),M=(z(449),z(429)),k=z(27),S=z(427),E=z(417),x=z(426),L=z(425),T=z(422),C=z(424),D=z(433),O=z(428),N=z(423),Y=z(430),P=z(415),j=z(419),I=z(416),R=z(431),A=z(432),H=z(418),t=z(421),n=z(420),r=z(413),o=z(414),f=z(98),h=z(714);e.hot,localStorage.getItem(k.f)||localStorage.setItem(k.f,"zh-CN"===navigator.language?"zh-CN":"en-US");var y=Object(g.c)(Object(c.a)(Object(c.a)({},o.a),{},{routing:y.routerReducer})),v=Object(g.e)(y,Object(g.d)(Object(g.a)(v.a),window[k.i]?window[k.i]():function(e){return e})),F=[{path:"/",exact:!0,render:function(){return p.a.createElement(b.a,{to:"/welcome"})}},{path:"/welcome",component:r.a},{path:"/namespace",component:E.a},{path:"/newconfig",component:x.a},{path:"/configsync",component:L.a},{path:"/configdetail",component:T.a},{path:"/configeditor",component:C.a},{path:"/historyDetail",component:D.a},{path:"/configRollback",component:O.a},{path:"/historyRollback",component:N.a},{path:"/listeningToQuery",component:Y.a},{path:"/configurationManagement",component:P.a},{path:"/serviceManagement",component:j.a},{path:"/serviceDetail",component:I.a},{path:"/subscriberList",component:R.a},{path:"/clusterManagement",component:A.a},{path:"/userManagement",component:H.a},{path:"/rolesManagement",component:n.a},{path:"/permissionsManagement",component:t.a}],f=Object(_.b)(function(e){return Object(c.a)({},e.locale)},{changeLanguage:f.a})(f=function(e){Object(u.a)(n,e);var t=Object(d.a)(n);function n(e){return Object(l.a)(this,n),(e=t.call(this,e)).state={shownotice:"none",noticecontent:"",nacosLoading:{}},e}return Object(s.a)(n,[{key:"componentDidMount",value:function(){var e=localStorage.getItem(k.f);this.props.changeLanguage(e)}},{key:"render",value:function(){var e=this.props.locale;return p.a.createElement(a.a,Object.assign({className:"nacos-loading",shape:"flower",tip:"loading...",visible:!1,fullScreen:!0},this.state.nacosLoading),p.a.createElement(i.a,{locale:e},this.router))}},{key:"router",get:function(){return p.a.createElement(w.a,null,p.a.createElement(b.d,null,p.a.createElement(b.b,{path:"/login",component:S.a}),p.a.createElement(M.a,null,F.map(function(e){return p.a.createElement(b.b,Object.assign({key:e.path},e))}))))}}]),n}(p.a.Component))||f;m.a.render(p.a.createElement(_.a,{store:v},p.a.createElement(f,null)),document.getElementById("root"))}.call(this,z(175)(e))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict"; +n(8).defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){t=100*e+t;return t<600?"凌晨":t<900?"早上":t<1130?"上午":t<1230?"中午":t<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}()},function(e,t,n){"use strict";t.__esModule=!0;var v=c(n(3)),o=c(n(4)),i=c(n(5)),a=c(n(6)),r=n(0),_=c(r),l=c(n(2)),s=n(28),b=c(n(12)),u=c(n(44)),w=c(n(23)),M=c(n(118)),d=c(n(7)),k=n(11);function c(e){return e&&e.__esModule?e:{default:e}}var f,n=function(){},a=(f=r.Component,(0,a.default)(S,f),S.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:{}},S.prototype.render=function(){var e=this.props,t=e.prefix,n=(e.pure,e.className),a=e.style,r=e.type,o=e.shape,i=e.size,l=e.title,s=e.children,u=(e.defaultVisible,e.visible,e.iconType),d=e.closeable,c=(e.onClose,e.afterClose),f=e.animation,p=e.rtl,h=e.locale,m=(0,v.default)({},k.obj.pickOthers(Object.keys(S.propTypes),this.props)),g=this.state.visible,y=t+"message",e=(0,b.default)(((e={})[y]=!0,e[t+"message-"+r]=r,e[""+t+o]=o,e[""+t+i]=i,e[t+"title-content"]=!!l,e[t+"only-content"]=!l&&!!s,e[n]=n,e)),s=g?_.default.createElement("div",(0,v.default)({role:"alert",style:a},m,{className:e,dir:p?"rtl":void 0}),d?_.default.createElement("a",{role:"button","aria-label":h.closeAriaLabel,className:y+"-close",onClick:this.onClose},_.default.createElement(w.default,{type:"close"})):null,_.default.createElement(w.default,{className:y+"-symbol "+(!u&&y+"-symbol-icon"),type:u}),l?_.default.createElement("div",{className:y+"-title"},l):null,s?_.default.createElement("div",{className:y+"-content"},s):null):null;return f?_.default.createElement(M.default.Expand,{animationAppear:!1,afterLeave:c},s):s},a=r=S,r.propTypes={prefix:l.default.string,pure:l.default.bool,className:l.default.string,style:l.default.object,type:l.default.oneOf(["success","warning","error","notice","help","loading"]),shape:l.default.oneOf(["inline","addon","toast"]),size:l.default.oneOf(["medium","large"]),title:l.default.node,children:l.default.node,defaultVisible:l.default.bool,visible:l.default.bool,iconType:l.default.string,closeable:l.default.bool,onClose:l.default.func,afterClose:l.default.func,animation:l.default.bool,locale:l.default.object,rtl:l.default.bool},r.defaultProps={prefix:"next-",pure:!1,type:"success",shape:"inline",size:"medium",defaultVisible:!0,closeable:!1,onClose:n,afterClose:n,animation:!0,locale:u.default.Message},a);function S(){var e,t;(0,o.default)(this,S);for(var n=arguments.length,a=Array(n),r=0;rn.clientHeight&&0>6]+c[128|63&s]:s<55296||57344<=s?i+=c[224|s>>12]+c[128|s>>6&63]+c[128|63&s]:(l+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(l)),i+=c[240|s>>18]+c[128|s>>12&63]+c[128|s>>6&63]+c[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(d(e)){for(var n=[],a=0;athis.popupNode.offsetWidth&&f(this.popupNode,"width",d.offsetWidth+"px"),"outside"!==s||"hoz"===l&&1===n||(f(this.popupNode,"height",c.offsetHeight+"px"),f(this.popupNode,"overflow-y","scroll"));c=this.popupProps;c.onOpen&&c.onOpen()}catch(e){return null}},k.prototype.handlePopupClose=function(){var e=this.props.root.popupNodes,t=e.indexOf(this.popupNode);-1 "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":" "+this.message},e.exports=n},function(e,t){var r={}.hasOwnProperty;function n(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}(function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function a(){this.constructor=e}a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype})(n,Error),n.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?" "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":" "+this.message},e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var y=m(n(3)),a=m(n(4)),r=m(n(5)),o=m(n(6)),i=n(0),v=m(i),l=n(24),s=m(n(2)),_=m(n(12)),u=n(11),f=m(n(50)),d=m(n(60)),b=m(n(10)),c=m(n(44)),p=m(n(640)),h=m(n(392)),w=n(164);function m(e){return e&&e.__esModule?e:{default:e}}var M=d.default.Popup,g=f.default.Item,k=f.default.Group,n=u.func.noop,S=u.func.bindCtx,E=u.func.makeChain;function x(e){e.preventDefault()}var L,o=(L=v.default.Component,(0,o.default)(T,L),T.prototype.componentDidMount=function(){var e=this;setTimeout(function(){return e.syncWidth()},0),u.events.on(window,"resize",this.handleResize)},T.prototype.componentDidUpdate=function(e,t){e.label===this.props.label&&t.value===this.state.value||this.syncWidth()},T.prototype.componentWillUnmount=function(){u.events.off(window,"resize",this.handleResize),clearTimeout(this.resizeTimeout)},T.prototype.syncWidth=function(){var e=this,t=this.props,n=t.popupStyle,t=t.popupProps;n&&"width"in n||t&&t.style&&"width"in t.style||(t=u.dom.getStyle(this.selectDOM,"width"))&&this.width!==t&&(this.width=t,this.popupRef&&this.shouldAutoWidth()&&setTimeout(function(){e.popupRef&&e.popupRef.getInstance().overlay&&u.dom.setStyle(e.popupRef.getInstance().overlay.getInstance().getContentNode(),"width",e.width)},0))},T.prototype.handleResize=function(){var e=this;clearTimeout(this.resizeTimeout),this.state.visible&&(this.resizeTimeout=setTimeout(function(){e.syncWidth()},200))},T.prototype.setDataSource=function(e){var t=e.dataSource,e=e.children;return i.Children.count(e)?this.dataStore.updateByDS(e,!0):Array.isArray(t)?this.dataStore.updateByDS(t,!1):[]},T.prototype.setVisible=function(e,t){this.props.disabled&&e||this.state.visible===e||("visible"in this.props||this.setState({visible:e}),this.props.onVisibleChange(e,t))},T.prototype.setFirstHightLightKeyForMenu=function(){var e;this.props.autoHighlightFirstItem&&this.dataStore.getMenuDS().length&&this.dataStore.getEnableDS().length&&(e=""+this.dataStore.getEnableDS()[0].value,this.setState({highlightKey:e}),this.props.onToggleHighlightItem(e,"autoFirstItem"))},T.prototype.handleChange=function(e){var t;"value"in this.props||this.setState({value:e});for(var n=arguments.length,a=Array(1e.slidesToShow&&(n=e.slideWidth*e.slidesToShow*-1,o=e.slideHeight*e.slidesToShow*-1),e.slideCount%e.slidesToScroll!=0&&(t=e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow,e.rtl&&(t=(e.slideIndex>=e.slideCount?e.slideCount-e.slideIndex:e.slideIndex)+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow),t&&(o=e.slideIndex>e.slideCount?(n=(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideWidth*-1,(e.slidesToShow-(e.slideIndex-e.slideCount))*e.slideHeight*-1):(n=e.slideCount%e.slidesToScroll*e.slideWidth*-1,e.slideCount%e.slidesToScroll*e.slideHeight*-1)))):e.slideCount%e.slidesToScroll!=0&&e.slideIndex+e.slidesToScroll>e.slideCount&&e.slideCount>e.slidesToShow&&(n=(e.slidesToShow-e.slideCount%e.slidesToScroll)*e.slideWidth),e.centerMode&&(e.infinite?n+=e.slideWidth*Math.floor(e.slidesToShow/2):n=e.slideWidth*Math.floor(e.slidesToShow/2)),a=e.vertical?e.slideIndex*e.slideHeight*-1+o:e.slideIndex*e.slideWidth*-1+n,!0===e.variableWidth&&(n=void 0,a=(r=e.slideCount<=e.slidesToShow||!1===e.infinite?i.default.findDOMNode(e.trackRef).childNodes[e.slideIndex]:(n=e.slideIndex+e.slidesToShow,i.default.findDOMNode(e.trackRef).childNodes[n]))?-1*r.offsetLeft:0,!0===e.centerMode&&(r=!1===e.infinite?i.default.findDOMNode(e.trackRef).children[e.slideIndex]:i.default.findDOMNode(e.trackRef).children[e.slideIndex+e.slidesToShow+1])&&(a=-1*r.offsetLeft+(e.listWidth-r.offsetWidth)/2)),a)}},function(e,t,n){"use strict";t.__esModule=!0;var p=u(n(3)),h=u(n(19)),o=u(n(4)),i=u(n(5)),a=u(n(6)),m=u(n(0)),r=u(n(2)),g=u(n(12)),l=u(n(7)),y=u(n(23)),s=n(11);function u(e){return e&&e.__esModule?e:{default:e}}var d,a=(d=m.default.Component,(0,a.default)(c,d),c.prototype.render=function(){var e=this.props,t=e.title,n=e.children,a=e.className,r=e.isExpanded,o=e.disabled,i=e.style,l=e.prefix,s=e.onClick,u=e.id,d=(0,h.default)(e,["title","children","className","isExpanded","disabled","style","prefix","onClick","id"]),c=(0,g.default)(((f={})[l+"collapse-panel"]=!0,f[l+"collapse-panel-hidden"]=!r,f[l+"collapse-panel-expanded"]=r,f[l+"collapse-panel-disabled"]=o,f[a]=a,f)),a=(0,g.default)(((e={})[l+"collapse-panel-icon"]=!0,e[l+"collapse-panel-icon-expanded"]=r,e)),f=u?u+"-heading":void 0,e=u?u+"-region":void 0;return m.default.createElement("div",(0,p.default)({className:c,style:i,id:u},d),m.default.createElement("div",{id:f,className:l+"collapse-panel-title",onClick:s,onKeyDown:this.onKeyDown,tabIndex:"0","aria-disabled":o,"aria-expanded":r,"aria-controls":e,role:"button"},m.default.createElement(y.default,{type:"arrow-right",className:a,"aria-hidden":"true"}),t),m.default.createElement("div",{className:l+"collapse-panel-content",role:"region",id:e},n))},a=n=c,n.propTypes={prefix:r.default.string,style:r.default.object,children:r.default.any,isExpanded:r.default.bool,disabled:r.default.bool,title:r.default.node,className:r.default.string,onClick:r.default.func,id:r.default.string},n.defaultProps={prefix:"next-",isExpanded:!1,onClick:s.func.noop},n.isNextPanel=!0,a);function c(){var e,n;(0,o.default)(this,c);for(var t=arguments.length,a=Array(t),r=0;r\n com.alibaba.nacos\n nacos-client\n ${version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\nimport java.util.concurrent.Executor;\nimport com.alibaba.nacos.api.NacosFactory;\nimport com.alibaba.nacos.api.config.ConfigService;\nimport com.alibaba.nacos.api.config.listener.Listener;\nimport com.alibaba.nacos.api.exception.NacosException;\n\n/**\n * Config service example\n *\n * @author Nacos\n *\n */\npublic class ConfigExample {\n\n\tpublic static void main(String[] args) throws NacosException, InterruptedException {\n\t\tString serverAddr = "localhost";\n\t\tString dataId = "'.concat(e.dataId,'";\n\t\tString group = "').concat(e.group,'";\n\t\tProperties properties = new Properties();\n\t\tproperties.put(PropertyKeyConst.SERVER_ADDR, serverAddr);\n\t\tConfigService configService = NacosFactory.createConfigService(properties);\n\t\tString content = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tconfigService.addListener(dataId, group, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void receiveConfigInfo(String configInfo) {\n\t\t\t\tSystem.out.println("recieve:" + configInfo);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\n\t\tboolean isPublishOk = configService.publishConfig(dataId, group, "content");\n\t\tSystem.out.println(isPublishOk);\n\n\t\tThread.sleep(3000);\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\n\t\tboolean isRemoveOk = configService.removeConfig(dataId, group);\n\t\tSystem.out.println(isRemoveOk);\n\t\tThread.sleep(3000);\n\n\t\tcontent = configService.getConfig(dataId, group, 5000);\n\t\tSystem.out.println(content);\n\t\tThread.sleep(300000);\n\n\t}\n}\n')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,e=L.a.createElement("div",null);return L.a.createElement("div",null,L.a.createElement(_.a,{title:t.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:e,onClose:this.closeDialog.bind(this)},L.a.createElement("div",{style:{height:500}},L.a.createElement(N.a,{tip:t.loading,style:{width:"100%"},visible:this.state.loading},L.a.createElement(Y.a,{shape:"text",style:{height:40,paddingBottom:10}},L.a.createElement(P,{title:"Java",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),L.a.createElement(P,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigboot_code)}),L.a.createElement(P,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloud_code)}),L.a.createElement(P,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),L.a.createElement(P,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),L.a.createElement(P,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),L.a.createElement(P,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),L.a.createElement("div",{ref:"codepreview"})))))}}]),n}(L.a.Component),a.displayName="ShowCodeing",a=l))||a,l=(n(65),n(37)),a=n.n(l),I=(n(685),a.a.Row),R=a.a.Col,A=(0,u.a.config)((a=l=function(e){Object(S.a)(n,e);var t=Object(E.a)(n);function n(e){return Object(w.a)(this,n),(e=t.call(this,e)).state={visible:!1,title:"",content:"",isok:!0,dataId:"",group:""},e}return Object(M.a)(n,[{key:"componentDidMount",value:function(){this.initData()}},{key:"initData",value:function(){var e=this.props.locale,e=void 0===e?{}:e;this.setState({title:e.confManagement})}},{key:"openDialog",value:function(e){this.setState({visible:!0,title:e.title,content:e.content,isok:e.isok,dataId:e.dataId,group:e.group,message:e.message})}},{key:"closeDialog",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,e=L.a.createElement("div",{style:{textAlign:"right"}},L.a.createElement(d.a,{type:"primary",onClick:this.closeDialog.bind(this)},t.determine));return L.a.createElement("div",null,L.a.createElement(_.a,{visible:this.state.visible,footer:e,style:{width:555},onCancel:this.closeDialog.bind(this),onClose:this.closeDialog.bind(this),title:t.deletetitle},L.a.createElement("div",null,L.a.createElement(I,null,L.a.createElement(R,{span:"4",style:{paddingTop:16}},L.a.createElement(y.a,{type:"".concat(this.state.isok?"success":"delete","-filling"),style:{color:this.state.isok?"green":"red"},size:"xl"})),L.a.createElement(R,{span:"20"},L.a.createElement("div",null,L.a.createElement("h3",null,this.state.isok?t.deletedSuccessfully:t.deleteFailed),L.a.createElement("p",null,L.a.createElement("span",{style:{color:"#999",marginRight:5}},"Data ID:"),L.a.createElement("span",{style:{color:"#c7254e"}},this.state.dataId)),L.a.createElement("p",null,L.a.createElement("span",{style:{color:"#999",marginRight:5}},"Group:"),L.a.createElement("span",{style:{color:"#c7254e"}},this.state.group)),this.state.isok?"":L.a.createElement("p",{style:{color:"red"}},this.state.message)))))))}}]),n}(L.a.Component),l.displayName="DeleteDialog",l=a))||l,a=(n(686),n(411)),H=n.n(a),F=(0,u.a.config)((a=l=function(e){Object(S.a)(n,e);var t=Object(E.a)(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(M.a)(n,[{key:"render",value:function(){var e=this.props,t=e.data,n=void 0===t?{}:t,t=e.height,e=e.locale,a=void 0===e?{}:e;return L.a.createElement("div",null,"notice"===n.modeType?L.a.createElement("div",{"data-spm-click":"gostr=/aliyun;locaid=notice"},L.a.createElement(H.a,{style:{marginBottom:1e?b.a.createElement(L.a,{className:"pagination",total:s.count,pageSize:e,onChange:function(e){return a.onChangePage(e)}}):null,b.a.createElement(C,{ref:this.editInstanceDialog,serviceName:o,clusterName:n,groupName:i,openLoading:function(){return a.openLoading()},closeLoading:function(){return a.closeLoading()},getInstanceList:function(){return a.getInstanceList()}})):null}}]),n}(b.a.Component),r.displayName="InstanceTable",r.defaultProps={filters:new Map},o=o))||o,D=function(e,t){return e.filter(function(e){var n=e.metadata,a=!0;return t.forEach(function(e,t){if(e!==n[t])return a=!1}),a})},O=o,N=n(47),Y=n(31),o=(n(162),n(71)),o=n.n(o),P=o.a.Group,j=o.a.Closeable,I=v.a.Item;var R=a.a.config(function(e){var t=Object(_.useState)(""),n=(u=Object(Y.a)(t,2))[0],a=u[1],r=Object(_.useState)(""),o=(s=Object(Y.a)(r,2))[0],i=s[1],t=Object(_.useState)(""),r=(u=Object(Y.a)(t,2))[0],l=u[1],s=Object(_.useState)(""),u=(t=Object(Y.a)(s,2))[0],d=t[1],s=Object(_.useState)(new Map),c=(t=Object(Y.a)(s,2))[0],f=t[1],t=void 0===(s=e.locale)?{}:s,s=function(){var e;h(),n&&o&&(e=new Map(Array.from(c)).set(n,o),f(e),l(""),d(""),p())},p=function(){a(""),i("")},h=function(){l(n?"":"error"),d(o?"":"error")};return Object(_.useEffect)(function(){e.setFilters(c)},[c]),b.a.createElement(m.a,{contentHeight:"auto",className:"inner-card"},b.a.createElement(v.a,{inline:!0,size:"small"},b.a.createElement(I,{label:t.title},b.a.createElement(I,null,b.a.createElement(y.a,{placeholder:"key",value:n,trim:!0,onChange:function(e){return a(e)},onPressEnter:s,state:r})),b.a.createElement(I,null,b.a.createElement(y.a,{placeholder:"value",value:o,trim:!0,onChange:function(e){return i(e)},onPressEnter:s,state:u})),b.a.createElement(I,{label:""},b.a.createElement(g.a,{type:"primary",onClick:s,style:{marginRight:10}},t.addFilter),0i&&m.a.createElement(s.a,{className:"users-pagination",current:l,total:n.totalCount,pageSize:i,onChange:function(e){return t.setState({pageNo:e},function(){return t.getUsers()})}}),m.a.createElement(E,{visible:e,onOk:function(e){return Object(g.c)(e).then(function(e){return t.setState({pageNo:1},function(){return t.getUsers()}),e})},onCancel:function(){return t.colseCreateUser()}}),m.a.createElement(x.a,{username:r,onOk:function(e){return Object(g.k)(e).then(function(e){return t.getUsers(),e})},onCancel:function(){return t.setState({passwordResetUser:void 0})}}))}}]),n}(m.a.Component),i.displayName="UserManagement",r=r))||r)||r;t.a=r},function(e,t,n){"use strict";n(63);var a=n(46),M=n.n(a),r=(n(32),n(18)),k=n.n(r),o=(n(169),n(97)),S=n.n(o),i=(n(39),n(10)),E=n.n(i),x=n(21),a=(n(52),n(29)),l=n.n(a),r=(n(34),n(17)),s=n.n(r),o=(n(49),n(26)),u=n.n(o),d=n(13),c=n(14),f=n(22),p=n(16),h=n(15),i=(n(25),n(7)),a=n.n(i),r=(n(61),n(20)),L=n.n(r),o=(n(65),n(37)),i=n.n(o),r=(n(41),n(9)),T=n.n(r),o=n(0),C=n.n(o),m=n(1),D=n(47),O=n(48),N=n(134),r=(n(51),n(33)),g=n.n(r),o=(n(126),n(57)),y=n.n(o),v=(n(396),y.a.Item),Y=(0,a.a.config)((o=r=function(e){Object(p.a)(n,e);var t=Object(h.a)(n);function n(e){return Object(d.a)(this,n),(e=t.call(this,e)).state={dialogvisible:!1,loading:!1},e.defaultCode="",e.nodejsCode="TODO",e.cppCode="TODO",e.shellCode="TODO",e.pythonCode="TODO",e.record={},e.springCode="TODO",e.sprigbootCode="TODO",e.sprigcloudCode="TODO",e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){}},{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"getData",value:function(){var e=Object(m.b)("namespace"),e={group:this.record.group||"",dataId:this.record.dataId||"",namespace:e,inEdas:window.globalConfig.isParentEdas()};this.defaultCode=this.getJavaCode(e),this.createCodeMirror("text/x-java",this.defaultCode),this.springCode=this.getSpringCode(e),this.sprigbootCode=this.getSpringBootCode(e),this.sprigcloudCode=this.getSpringCloudCode(e),this.nodejsCode=this.getNodejsCode(e),this.cppCode=this.getCppCode(e),this.shellCode=this.getShellCode(e),this.pythonCode=this.getPythonCode(e),this.forceUpdate()}},{key:"getJavaCode",value:function(e){return'/* Refer to document: https://github.com/alibaba/nacos/blob/master/example/src/main/java/com/alibaba/nacos/example\n* pom.xml\n \n com.alibaba.nacos\n nacos-client\n ${latest.version}\n \n*/\npackage com.alibaba.nacos.example;\n\nimport java.util.Properties;\n\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingFactory;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.listener.Event;\nimport com.alibaba.nacos.api.naming.listener.EventListener;\nimport com.alibaba.nacos.api.naming.listener.NamingEvent;\n\n/**\n * @author nkorange\n */\npublic class NamingExample {\n\n public static void main(String[] args) throws NacosException {\n\n Properties properties = new Properties();\n properties.setProperty("serverAddr", System.getProperty("serverAddr"));\n properties.setProperty("namespace", System.getProperty("namespace"));\n\n NamingService naming = NamingFactory.createNamingService(properties);\n\n naming.registerInstance("'.concat(this.record.name,'", "11.11.11.11", 8888, "TEST1");\n\n naming.registerInstance("').concat(this.record.name,'", "2.2.2.2", 9999, "DEFAULT");\n\n System.out.println(naming.getAllInstances("').concat(this.record.name,'"));\n\n naming.deregisterInstance("').concat(this.record.name,'", "2.2.2.2", 9999, "DEFAULT");\n\n System.out.println(naming.getAllInstances("').concat(this.record.name,'"));\n\n naming.subscribe("').concat(this.record.name,'", new EventListener() {\n @Override\n public void onEvent(Event event) {\n System.out.println(((NamingEvent)event).getServiceName());\n System.out.println(((NamingEvent)event).getInstances());\n }\n });\n }\n}')}},{key:"getSpringCode",value:function(e){return'/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example\n* pom.xml\n \n com.alibaba.nacos\n nacos-spring-context\n ${latest.version}\n \n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring\npackage com.alibaba.nacos.example.spring;\n\nimport com.alibaba.nacos.api.annotation.NacosProperties;\nimport com.alibaba.nacos.spring.context.annotation.discovery.EnableNacosDiscovery;\nimport org.springframework.context.annotation.Configuration;\n\n@Configuration\n@EnableNacosDiscovery(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848"))\npublic class NacosConfiguration {\n\n}\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring/controller\npackage com.alibaba.nacos.example.spring.controller;\n\nimport com.alibaba.nacos.api.annotation.NacosInjected;\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\nimport java.util.List;\n\nimport static org.springframework.web.bind.annotation.RequestMethod.GET;\n\n@Controller\n@RequestMapping("discovery")\npublic class DiscoveryController {\n\n @NacosInjected\n private NamingService namingService;\n\n @RequestMapping(value = "/get", method = GET)\n @ResponseBody\n public List get(@RequestParam String serviceName) throws NacosException {\n return namingService.getAllInstances(serviceName);\n }\n}'}},{key:"getSpringBootCode",value:function(e){return'/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example\n* pom.xml\n \n com.alibaba.boot\n nacos-discovery-spring-boot-starter\n ${latest.version}\n \n*/\n/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/resources\n* application.properties\n nacos.discovery.server-addr=127.0.0.1:8848\n*/\n// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/java/com/alibaba/nacos/example/spring/boot/controller\n\npackage com.alibaba.nacos.example.spring.boot.controller;\n\nimport com.alibaba.nacos.api.annotation.NacosInjected;\nimport com.alibaba.nacos.api.exception.NacosException;\nimport com.alibaba.nacos.api.naming.NamingService;\nimport com.alibaba.nacos.api.naming.pojo.Instance;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\nimport java.util.List;\n\nimport static org.springframework.web.bind.annotation.RequestMethod.GET;\n\n@Controller\n@RequestMapping("discovery")\npublic class DiscoveryController {\n\n @NacosInjected\n private NamingService namingService;\n\n @RequestMapping(value = "/get", method = GET)\n @ResponseBody\n public List get(@RequestParam String serviceName) throws NacosException {\n return namingService.getAllInstances(serviceName);\n }\n}'}},{key:"getSpringCloudCode",value:function(e){return"/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/\n* pom.xml\n \n org.springframework.cloud\n spring-cloud-starter-alibaba-nacos-discovery\n ${latest.version}\n \n*/\n\n// nacos-spring-cloud-provider-example\n\n/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/resources\n* application.properties\nserver.port=18080\nspring.application.name=".concat(this.record.name,'\nspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848\n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/java/com/alibaba/nacos/example/spring/cloud\npackage com.alibaba.nacos.example.spring.cloud;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RestController;\n\n/**\n * @author xiaojing\n */\n@SpringBootApplication\n@EnableDiscoveryClient\npublic class NacosProviderApplication {\n\n public static void main(String[] args) {\n SpringApplication.run(NacosProviderApplication.class, args);\n}\n\n @RestController\n class EchoController {\n @RequestMapping(value = "/echo/{string}", method = RequestMethod.GET)\n public String echo(@PathVariable String string) {\n return "Hello Nacos Discovery " + string;\n }\n }\n}\n\n// nacos-spring-cloud-consumer-example\n\n/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/resources\n* application.properties\nspring.application.name=micro-service-oauth2\nspring.cloud.nacos.discovery.server-addr=127.0.0.1:8848\n*/\n\n// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/java/com/alibaba/nacos/example/spring/cloud\npackage com.alibaba.nacos.example.spring.cloud;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\nimport org.springframework.cloud.client.loadbalancer.LoadBalanced;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RestController;\nimport org.springframework.web.client.RestTemplate;\n\n/**\n * @author xiaojing\n */\n@SpringBootApplication\n@EnableDiscoveryClient\npublic class NacosConsumerApplication {\n\n @LoadBalanced\n @Bean\n public RestTemplate restTemplate() {\n return new RestTemplate();\n }\n\n public static void main(String[] args) {\n SpringApplication.run(NacosConsumerApplication.class, args);\n }\n\n @RestController\n public class TestController {\n\n private final RestTemplate restTemplate;\n\n @Autowired\n public TestController(RestTemplate restTemplate) {this.restTemplate = restTemplate;}\n\n @RequestMapping(value = "/echo/{str}", method = RequestMethod.GET)\n public String echo(@PathVariable String str) {\n return restTemplate.getForObject("http://service-provider/echo/" + str, String.class);\n }\n }\n}')}},{key:"getNodejsCode",value:function(e){return"TODO"}},{key:"getCppCode",value:function(e){return"TODO"}},{key:"getShellCode",value:function(e){return"TODO"}},{key:"getPythonCode",value:function(e){return"TODO"}},{key:"openDialog",value:function(e){var t=this;this.setState({dialogvisible:!0}),this.record=e,setTimeout(function(){t.getData()})}},{key:"closeDialog",value:function(){this.setState({dialogvisible:!1})}},{key:"createCodeMirror",value:function(e,t){var n=this.refs.codepreview;n&&(n.innerHTML="",this.cm=window.CodeMirror(n,{value:t,mode:e,height:400,width:500,lineNumbers:!0,theme:"xq-light",lint:!0,tabMode:"indent",autoMatchParens:!0,textWrapping:!0,gutters:["CodeMirror-lint-markers"],extraKeys:{F1:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)}}}),this.cm.setSize("auto","490px"))}},{key:"changeTab",value:function(e,t){var n=this;setTimeout(function(){n[e]=!0,n.createCodeMirror("text/javascript",t)})}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,e=C.a.createElement("div",null);return C.a.createElement("div",null,C.a.createElement(s.a,{title:t.sampleCode,style:{width:"80%"},visible:this.state.dialogvisible,footer:e,onClose:this.closeDialog.bind(this)},C.a.createElement("div",{style:{height:500}},C.a.createElement(g.a,{tip:t.loading,style:{width:"100%"},visible:this.state.loading},C.a.createElement(y.a,{shape:"text",style:{height:40,paddingBottom:10}},C.a.createElement(v,{title:"Java",key:0,onClick:this.changeTab.bind(this,"commoneditor1",this.defaultCode)}),C.a.createElement(v,{title:"Spring",key:1,onClick:this.changeTab.bind(this,"commoneditor1",this.springCode)}),C.a.createElement(v,{title:"Spring Boot",key:2,onClick:this.changeTab.bind(this,"commoneditor2",this.sprigbootCode)}),C.a.createElement(v,{title:"Spring Cloud",key:21,onClick:this.changeTab.bind(this,"commoneditor21",this.sprigcloudCode)}),C.a.createElement(v,{title:"Node.js",key:3,onClick:this.changeTab.bind(this,"commoneditor3",this.nodejsCode)}),C.a.createElement(v,{title:"C++",key:4,onClick:this.changeTab.bind(this,"commoneditor4",this.cppCode)}),C.a.createElement(v,{title:"Shell",key:5,onClick:this.changeTab.bind(this,"commoneditor5",this.shellCode)}),C.a.createElement(v,{title:"Python",key:6,onClick:this.changeTab.bind(this,"commoneditor6",this.pythonCode)})),C.a.createElement("div",{ref:"codepreview"})))))}}]),n}(C.a.Component),r.displayName="ShowServiceCodeing",o=o))||o,P=(n(708),n(27)),j=T.a.Item,I=i.a.Row,R=i.a.Col,A=L.a.Column,a=(0,a.a.config)((a=i=function(e){Object(p.a)(a,e);var t=Object(h.a)(a);function a(e){var n;return Object(d.a)(this,a),(n=t.call(this,e)).getQueryLater=function(){setTimeout(function(){return n.queryServiceList()})},n.showcode=function(){setTimeout(function(){return n.queryServiceList()})},n.setNowNameSpace=function(e,t){return n.setState({nowNamespaceName:e,nowNamespaceId:t})},n.rowColor=function(e){return{className:e.healthyInstanceCount?"":"row-bg-red"}},n.editServiceDialog=C.a.createRef(),n.showcode=C.a.createRef(),n.state={loading:!1,total:0,pageSize:10,currentPage:1,dataSource:[],search:{serviceName:"",groupName:""},hasIpCount:!("false"===localStorage.getItem("hasIpCount"))},n.field=new u.a(Object(f.a)(n)),n}return Object(c.a)(a,[{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){try{this.editServiceDialog.current.getInstance().show(this.state.service)}catch(e){}}},{key:"queryServiceList",value:function(){var n=this,e=this.state,t=e.currentPage,a=e.pageSize,r=e.search,o=e.withInstances,o=void 0!==o&&o,e=e.hasIpCount,r=["hasIpCount=".concat(e),"withInstances=".concat(o),"pageNo=".concat(t),"pageSize=".concat(a),"serviceNameParam=".concat(r.serviceName),"groupNameParam=".concat(r.groupName)];this.openLoading(),Object(m.c)({url:"v1/ns/catalog/services?".concat(r.join("&")),success:function(){var e=0i&&m.a.createElement(s.a,{className:"users-pagination",current:l,total:t.totalCount,pageSize:i,onChange:function(e){return a.setState({pageNo:e},function(){return a.getRoles()})}}),m.a.createElement(E,{visible:e,onOk:function(e){return Object(g.b)(e).then(function(e){return a.getRoles(),e})},onCancel:function(){return a.colseCreateRole()}}))}}]),n}(m.a.Component),i.displayName="RolesManagement",r=r))||r)||r);t.a=r},function(e,t,n){"use strict";n(63);var a=n(46),s=n.n(a),r=(n(34),n(17)),u=n.n(r),d=n(31),o=(n(61),n(20)),c=n.n(o),i=(n(32),n(18)),f=n.n(i),l=n(13),p=n(14),h=n(16),m=n(15),g=(n(25),n(7)),a=n.n(g),r=n(0),y=n.n(r),o=n(42),v=n(45),i=n(77),_=n(48),g=(n(49),n(26)),b=n.n(g),w=n(22),r=(n(62),n(30)),M=n.n(r),g=(n(41),n(9)),k=n.n(g),S=k.a.Item,E=M.a.Option,x={labelCol:{fixedSpan:4},wrapperCol:{span:19}},L=Object(o.b)(function(e){return{namespaces:e.namespace.namespaces}},{getNamespaces:i.b,searchRoles:v.l})(g=(0,a.a.config)((g=r=function(e){Object(h.a)(o,e);var r=Object(m.a)(o);function o(){var t;Object(l.a)(this,o);for(var e=arguments.length,n=new Array(e),a=0;an&&y.a.createElement(s.a,{className:"users-pagination",current:e,total:t.totalCount,pageSize:n,onChange:function(e){return a.setState({pageNo:e},function(){return a.getPermissions()})}}),y.a.createElement(L,{visible:i,onOk:function(e){return Object(v.a)(e).then(function(e){return a.setState({pageNo:1},function(){return a.getPermissions()}),e})},onCancel:function(){return a.colseCreatePermission()}}))}}]),n}(y.a.Component),i.displayName="PermissionsManagement",a=a))||a)||a);t.a=a},function(e,t,n){"use strict";n(51);var a=n(33),l=n.n(a),r=(n(32),n(18)),s=n.n(r),o=(n(39),n(10)),u=n.n(o),a=(n(49),n(26)),i=n.n(a),r=(n(34),n(17)),d=n.n(r),c=n(31),f=n(13),p=n(14),h=n(22),m=n(16),g=n(15),o=(n(25),n(7)),a=n.n(o),r=(n(65),n(37)),o=n.n(r),r=(n(41),n(9)),y=n.n(r),r=(n(126),n(57)),v=n.n(r),r=n(0),_=n.n(r),b=n(1),w=n(47),M=n(112),k=(n(650),n(35)),r=(n(62),n(30)),S=n.n(r),r=n(42),n=n(77),E=y.a.Item,x=S.a.Option,L={labelCol:{fixedSpan:4},wrapperCol:{span:19}},T=Object(r.b)(function(e){return{namespaces:e.namespace.namespaces}},{getNamespaces:n.b})(n=(0,a.a.config)((n=r=function(e){Object(m.a)(n,e);var t=Object(g.a)(n);function n(e){return Object(f.a)(this,n),(e=t.call(this,e)).field=new i.a(Object(h.a)(e)),e.state={namespacesDataSource:[]},e}return Object(p.a)(n,[{key:"componentDidMount",value:function(){this.getNamespaces()}},{key:"getNamespaces",value:function(){var t=this;Object(b.c)({type:"get",url:"v1/console/namespaces",success:function(e){200===e.code?(t.state.namespacesDataSource,t.setState({namespacesDataSource:e.data})):d.a.alert({title:prompt,content:e.message})},error:function(e){window.namespaceList=[{namespace:"",namespaceShowName:"公共空间",type:0}]}})}},{key:"render",value:function(){var t=this,e=this.props.locale,n=void 0===e?{}:e,a=this.field.getError,r=this.props,o=r.visible,i=r.onOk,l=r.onCancel,s=r.dataId,e=r.group,r=this.state.namespacesDataSource;return _.a.createElement(_.a.Fragment,null,_.a.createElement(d.a,{title:n.configComparisonTitle,visible:o,onOk:function(){var e=Object.keys({dataId:"dataId",group:"group",namespace:"namespace"}).map(function(e){return t.field.getValue(e)});i(e)},onClose:l,onCancel:l,afterClose:function(){return t.field.reset()}},_.a.createElement(y.a,Object.assign({style:{width:430}},L,{field:this.field}),_.a.createElement(E,{label:"namespace",help:a("namespace")},_.a.createElement(S.a,{name:"namespace",placeholder:n.namespaceSelect,style:{width:"100%"}},r.map(function(e){var t=e.namespace,e=e.namespaceShowName;return _.a.createElement(x,{value:t},e," ",t?"(".concat(t,")"):"")}))),_.a.createElement(E,{label:"Data Id",required:!0,help:a("Data Id")},_.a.createElement(u.a,{name:"dataId",trim:!0,placeholder:n.dataIdInput,defaultValue:s})),_.a.createElement(E,{label:"Group",required:!0,help:a("Group")},_.a.createElement(u.a,{name:"group",trim:!0,placeholder:n.configComparison,defaultValue:e})))))}}]),n}(_.a.Component),r.displayName="ConfigCompare",n=n))||n)||n,C=v.a.Item,D=y.a.Item,O=o.a.Row,N=o.a.Col,a=(0,a.a.config)((a=o=function(e){Object(m.a)(n,e);var t=Object(g.a)(n);function n(e){var l;return Object(f.a)(this,n),(l=t.call(this,e)).openCompare=function(e){var t=Object(c.a)(e,3),n=t[0],a=t[1],e=t[2],r=Object(h.a)(l),t=l.props.locale,o=void 0===t?{}:t,i=l.monacoEditor.getValue(),e={show:"all",group:a,dataId:n,tenant:e};k.a.get("v1/cs/configs",{params:e}).then(function(e){null!=e&&""!==e?(e=e.content,i=i.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"),e=e.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"),r.compareEditorDialog.current.getInstance().openDialog(i,e)):d.a.alert({title:o.error,content:o.configNotFind})})},l.state={loading:!1,showmore:!1,activeKey:"normal",hasbeta:!1,ips:"",checkedBeta:!1,switchEncrypt:!1,tag:[],editorClass:"editor-normal"},l.field=new i.a(Object(h.a)(l)),l.dataId=Object(b.b)("dataId")||"yanlin",l.group=Object(b.b)("group")||"DEFAULT_GROUP",l.ips="",l.valueMap={},l.tenant=Object(b.b)("namespace")||"",l.searchDataId=Object(b.b)("searchDataId")||"",l.searchGroup=Object(b.b)("searchGroup")||"",l.pageSize=Object(b.b)("pageSize"),l.pageNo=Object(b.b)("pageNo"),l.diffEditorDialog=_.a.createRef(),l.compareEditorDialog=_.a.createRef(),l}return Object(p.a)(n,[{key:"componentDidMount",value:function(){this.initData(),this.getDataDetail(),this.initFullScreenEvent()}},{key:"initData",value:function(){var e=this.props.locale,e=void 0===e?{}:e;this.dataId.startsWith("cipher-")&&this.setState({switchEncrypt:!0}),this.setState({tag:[{title:e.official,key:"normal"}]})}},{key:"initFullScreenEvent",value:function(){var t=this;document.body.addEventListener("keydown",function(e){"F1"===e.key&&(e.preventDefault(),t.setState({editorClass:"editor-full-screen"})),"Escape"===e.key&&t.setState({editorClass:"editor-normal"})})}},{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"changeTab",value:function(e){var t=e.split("-")[0],t=this.valueMap[t];this.setState({activeKey:e}),this.field.setValue("content",t.content),t.betaIps&&this.setState({ips:t.betaIps})}},{key:"toggleMore",value:function(){this.setState({showmore:!this.state.showmore})}},{key:"getDataDetail",value:function(){var e=this.props.locale,n=void 0===e?{}:e,a=this;this.serverId=Object(b.b)("serverId")||"center",this.tenant=Object(b.b)("namespace")||"",this.edasAppName=Object(b.b)("edasAppName")||"",this.inApp=this.edasAppName;e="v1/cs/configs?show=all&dataId=".concat(this.dataId,"&group=").concat(this.group);Object(b.c)({url:e,beforeSend:function(){a.openLoading()},success:function(e){var t;null!=e?(t=e,a.valueMap.normal=t,a.field.setValue("dataId",t.dataId),a.field.setValue("content",t.content),a.field.setValue("appName",a.inApp?a.edasAppName:t.appName),a.field.setValue("envs",a.serverId),a.field.setValue("group",t.group),a.field.setValue("config_tags",t.configTags),a.field.setValue("desc",t.desc),a.field.setValue("md5",t.md5),a.field.setValue("type",t.type),a.initMoacoEditor(t.type,t.content)):d.a.alert({title:n.error,content:e.message})},complete:function(){a.closeLoading()}})}},{key:"goList",value:function(){this.props.history.push(Object(w.a)("/configurationManagement",{serverId:this.serverId,group:this.searchGroup,dataId:this.searchDataId,namespace:this.tenant,pageNo:this.pageNo,pageSize:this.pageSize}))}},{key:"initMoacoEditor",value:function(e,t){var n=this,a=document.getElementById("container");a.innerHTML="";var r={value:t,language:e,codeLens:!(this.monacoEditor=null),selectOnLineNumbers:!0,roundedSelection:!1,readOnly:!0,lineNumbersMinChars:!0,theme:"vs-dark",wordWrapColumn:120,folding:!1,showFoldingControls:"always",wordWrap:"wordWrapColumn",cursorStyle:"line",automaticLayout:!0};window.monaco?this.monacoEditor=window.monaco.editor.create(a,r):window.importEditor(function(){n.monacoEditor=window.monaco.editor.create(a,r)})}},{key:"openDiff",value:function(){var n=this,e=this.props.locale,a=void 0===e?{}:e,r=this.monacoEditor.getValue(),e="v1/cs/history/previous?id=".concat(this.valueMap.normal.id);Object(b.c)({url:e,beforeSend:function(){n.openLoading()},success:function(e){var t;null!=e?(t=e.content,r=r.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"),t=t.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"),n.diffEditorDialog.current.getInstance().openDialog(r,t)):d.a.alert({title:a.error,content:e.message})},complete:function(){n.closeLoading()}})}},{key:"onClickConfigCompare",value:function(){this.setState({configCompareVisible:!0})}},{key:"closeConfigCompare",value:function(){this.setState({configCompareVisible:!1})}},{key:"render",value:function(){var t=this,e=this.props.locale,n=void 0===e?{}:e,a=this.state,r=a.configCompareVisible,o=a.editorClass,i=this.field.init,e={labelCol:{span:2},wrapperCol:{span:22}},a=this.state.activeKey.split("-")[0];return _.a.createElement("div",{style:{padding:10}},_.a.createElement(l.a,{shape:"flower",tip:"Loading...",style:{width:"100%",position:"relative"},visible:this.state.loading,color:"#333"},_.a.createElement("h1",{style:{position:"relative",width:"100%"}},n.configurationDetails),this.state.hasbeta?_.a.createElement("div",{style:{display:"inline-block",height:40,width:"80%",overflow:"hidden"}},_.a.createElement(v.a,{shape:"wrapped",onChange:this.changeTab.bind(this),lazyLoad:!1,activeKey:this.state.activeKey},this.state.tag.map(function(e){return _.a.createElement(C,{title:e.title,key:e.key})}))):"",_.a.createElement(y.a,Object.assign({inline:!1,field:this.field},e),_.a.createElement(D,{label:"Data ID:",required:!0},_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("dataId")))),_.a.createElement(D,{label:"Group:",required:!0},_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("group")))),_.a.createElement(D,{label:" "},_.a.createElement("div",null,_.a.createElement("a",{style:{fontSize:"12px"},onClick:this.toggleMore.bind(this)},this.state.showmore?n.collapse:n.more))),_.a.createElement(D,{label:n.home,className:"more-item".concat(this.state.showmore?"":" hide")},_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("appName")))),_.a.createElement(D,{label:n.tags,className:"more-item".concat(this.state.showmore?"":" hide")},_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("config_tags")))),_.a.createElement(D,Object.assign({label:n.description},e),_.a.createElement(u.a.TextArea,Object.assign({htmlType:"text",multiple:!0,rows:3,readOnly:!0},i("desc")))),"normal"===a?"":_.a.createElement(D,{label:n.betaRelease},_.a.createElement("div",{style:{width:"100%"},id:"betaips"},_.a.createElement(u.a.TextArea,{multiple:!0,style:{width:"100%"},value:this.state.ips,readOnly:!0,placeholder:"127.0.0.1,127.0.0.2"}))),_.a.createElement(D,{label:"MD5:",required:!0},_.a.createElement(u.a,Object.assign({htmlType:"text",readOnly:!0},i("md5")))),_.a.createElement(D,{label:n.configuration,required:!0},_.a.createElement("div",{className:o,id:"container",style:{height:500}}))),_.a.createElement(O,null,_.a.createElement(N,{span:"24",className:"button-list"},_.a.createElement(s.a,{type:"primary",onClick:function(){return t.onClickConfigCompare()}},n.configComparison)," ",_.a.createElement(s.a,{type:"primary",onClick:this.openDiff.bind(this)},n.versionComparison)," ",_.a.createElement(s.a,{type:"normal",onClick:this.goList.bind(this)},n.back))),_.a.createElement(M.a,{ref:this.diffEditorDialog,title:n.versionComparison,currentArea:n.dialogCurrentArea,originalArea:n.dialogOriginalArea}),_.a.createElement(M.a,{ref:this.compareEditorDialog,title:n.configComparison,currentArea:n.dialogCurrentConfig,originalArea:n.dialogComparedConfig})),_.a.createElement(T,{visible:r,dataId:this.dataId,group:this.group,onOk:function(e){t.openCompare(e)},onCancel:function(){return t.closeConfigCompare()}}))}}]),n}(_.a.Component),o.displayName="ConfigDetail",a=a))||a;t.a=a},function(e,t,n){"use strict";n(51);var a=n(33),r=n.n(a),o=(n(63),n(46)),i=n.n(o),a=(n(61),n(20)),l=n.n(a),o=(n(41),n(9)),s=n.n(o),a=(n(39),n(10)),u=n.n(a),o=(n(49),n(26)),d=n.n(o),c=n(13),f=n(14),p=n(22),h=n(16),m=n(15),a=(n(25),n(7)),o=n.n(a),a=n(0),g=n.n(a),y=n(48),v=n(1),o=(n(665),(0,o.a.config)((o=n=function(e){Object(h.a)(n,e);var t=Object(m.a)(n);function n(e){return Object(c.a)(this,n),(e=t.call(this,e)).field=new d.a(Object(p.a)(e)),e.appName=Object(v.b)("appName")||"",e.preAppName=e.appName,e.group=Object(v.b)("historyGroup")||"",e.preGroup=e.group,e.dataId=Object(v.b)("historyDataId")||"",e.preDataId=e.dataId,e.serverId=Object(v.b)("historyServerId")||"",e.state={value:"",visible:!1,total:0,pageSize:10,currentPage:1,dataSource:[],fieldValue:[],showAppName:!1,showgroup:!1,dataId:e.dataId,group:e.group,appName:e.appName,selectValue:[],loading:!1},e}return Object(f.a)(n,[{key:"componentDidMount",value:function(){this.field.setValue("group",this.group),this.field.setValue("dataId",this.dataId)}},{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"cleanAndGetData",value:function(){0this.state.pageSize&&k.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},k.a.createElement(y.a,{current:this.state.pageNo,total:l,pageSize:this.state.pageSize,onChange:function(e){return t.setState({pageNo:e},function(){return t.querySubscriberList()})}}))))}}]),a}(k.a.Component),r.displayName="SubscriberList",i=i))||i)||i;t.a=i},function(e,t,n){"use strict";n(51);var a=n(33),f=n.n(a),r=(n(63),n(46)),p=n.n(r),o=(n(162),n(71)),h=n.n(o),a=(n(39),n(10)),m=n.n(a),r=(n(32),n(18)),g=n.n(r),o=(n(34),n(17)),i=n.n(o),a=(n(49),n(26)),l=n.n(a),s=n(13),u=n(14),d=n(22),c=n(16),y=n(15),r=(n(25),n(7)),o=n.n(r),a=(n(395),n(110)),v=n.n(a),r=(n(61),n(20)),_=n.n(r),a=(n(65),n(37)),r=n.n(a),a=(n(41),n(9)),b=n.n(a),a=n(0),w=n.n(a),M=n(1),k=n(48),a=n(130),S=n.n(a),E=(n(711),b.a.Item),x=r.a.Row,L=r.a.Col,T=_.a.Column,C=v.a.Panel,o=(0,o.a.config)((o=r=function(e){Object(c.a)(a,e);var t=Object(y.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).getQueryLater=function(){setTimeout(function(){return n.queryClusterStateList()})},n.setNowNameSpace=function(e,t){return n.setState({nowNamespaceName:e,nowNamespaceId:t})},n.rowColor=function(e){return{className:(e.voteFor,"")}},n.state={loading:!1,total:0,pageSize:10,currentPage:1,keyword:"",dataSource:[]},n.field=new l.a(Object(d.a)(n)),n}return Object(u.a)(a,[{key:"openLoading",value:function(){this.setState({loading:!0})}},{key:"closeLoading",value:function(){this.setState({loading:!1})}},{key:"openEditServiceDialog",value:function(){try{this.editServiceDialog.current.getInstance().show(this.state.service)}catch(e){}}},{key:"queryClusterStateList",value:function(){var n=this,e=this.state,t=e.currentPage,a=e.pageSize,r=e.keyword,e=e.withInstances,r=["withInstances=".concat(void 0!==e&&e),"pageNo=".concat(t),"pageSize=".concat(a),"keyword=".concat(r)];Object(M.c)({url:"v1/core/cluster/nodes?".concat(r.join("&")),beforeSend:function(){return n.openLoading()},success:function(){var e=0this.state.pageSize&&w.a.createElement("div",{style:{marginTop:10,textAlign:"right"}},w.a.createElement(p.a,{current:this.state.currentPage,total:this.state.total,pageSize:this.state.pageSize,onChange:function(e){return t.setState({currentPage:e},function(){return t.queryClusterStateList()})}}))))}}]),a}(w.a.Component),r.displayName="ClusterNodeList",o=o))||o;t.a=o},function(e,t,n){"use strict";n(32);var a=n(18),r=n.n(a),o=(n(41),n(9)),i=n.n(o),a=(n(39),n(10)),l=n.n(a),o=(n(49),n(26)),s=n.n(o),u=n(13),d=n(14),c=n(22),f=n(16),p=n(15),a=(n(25),n(7)),o=n.n(a),a=n(0),h=n.n(a),m=n(1),o=(n(662),(0,o.a.config)((o=n=function(e){Object(f.a)(n,e);var t=Object(p.a)(n);function n(e){return Object(u.a)(this,n),(e=t.call(this,e)).state={showmore:!1},e.edasAppName=Object(m.b)("edasAppName"),e.edasAppId=Object(m.b)("edasAppId"),e.inApp=e.edasAppName,e.field=new s.a(Object(c.a)(e)),e.dataId=Object(m.b)("dataId")||"yanlin",e.group=Object(m.b)("group")||"DEFAULT_GROUP",e.serverId=Object(m.b)("serverId")||"center",e.nid=Object(m.b)("nid")||"123509854",e.tenant=Object(m.b)("namespace")||"",e}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.getDataDetail()}},{key:"toggleMore",value:function(){this.setState({showmore:!this.state.showmore})}},{key:"getDataDetail",value:function(){this.props.locale;var t=this;Object(m.c)({url:"v1/cs/history?dataId=".concat(this.dataId,"&group=").concat(this.group,"&nid=").concat(this.nid),success:function(e){null!=e&&(e=e,t.field.setValue("dataId",e.dataId),t.field.setValue("content",e.content),t.field.setValue("appName",t.inApp?t.edasAppName:e.appName),t.field.setValue("envs",t.serverId),t.field.setValue("srcUser",e.srcUser),t.field.setValue("srcIp",e.srcIp),t.field.setValue("opType",e.opType.trim()),t.field.setValue("group",e.group),t.field.setValue("md5",e.md5))}})}},{key:"goList",value:function(){this.props.history.push("/historyRollback?serverId=".concat(this.serverId,"&historyGroup=").concat(this.group,"&historyDataId=").concat(this.dataId,"&namespace=").concat(this.tenant))}},{key:"getOpType",value:function(e,t){return e?{U:t.update,I:t.insert,D:t.deleteAction}[e]:""}},{key:"render",value:function(){var e=this.props.locale,t=void 0===e?{}:e,n=this.field.init,a={labelCol:{fixedSpan:6},wrapperCol:{span:18}},e=this.getOpType;return h.a.createElement("div",{style:{padding:10}},h.a.createElement("h1",null,t.historyDetails),h.a.createElement(i.a,{field:this.field},h.a.createElement(i.a.Item,Object.assign({label:"Data ID:",required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("dataId"))),h.a.createElement("div",{style:{marginTop:10}},h.a.createElement("a",{style:{fontSize:"12px"},onClick:this.toggleMore.bind(this)},this.state.showmore?t.recipientFrom:t.moreAdvancedOptions))),h.a.createElement("div",{style:{overflow:"hidden",height:this.state.showmore?"auto":"0"}},h.a.createElement(i.a.Item,Object.assign({label:"Group:",required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("group")))),h.a.createElement(i.a.Item,Object.assign({label:t.home},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("appName"))))),h.a.createElement(i.a.Item,Object.assign({label:t.operator,required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("srcUser")))),h.a.createElement(i.a.Item,Object.assign({label:t.sourceIp,required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("srcIp")))),h.a.createElement(i.a.Item,Object.assign({label:t.actionType,required:!0},a),h.a.createElement(l.a,{htmlType:"text",readOnly:!0,value:e(n("opType").value,t)})),h.a.createElement(i.a.Item,Object.assign({label:"MD5:",required:!0},a),h.a.createElement(l.a,Object.assign({htmlType:"text",readOnly:!0},n("md5")))),h.a.createElement(i.a.Item,Object.assign({label:t.configureContent,required:!0},a),h.a.createElement(l.a.TextArea,Object.assign({htmlType:"text",multiple:!0,rows:15,readOnly:!0},n("content")))),h.a.createElement(i.a.Item,Object.assign({label:" "},a),h.a.createElement(r.a,{type:"primary",onClick:this.goList.bind(this)},t.back))))}}]),n}(h.a.Component),n.displayName="HistoryDetail",o=o))||o);t.a=o},function(e,t,z){"use strict";z.r(t),function(e){var t=z(51),n=z(33),a=z.n(n),r=z(25),o=z(7),i=z.n(o),l=z(13),s=z(14),u=z(16),d=z(15),c=z(21),f=z(0),p=z.n(f),h=z(24),m=z.n(h),g=z(84),y=z(404),v=z(405),_=z(42),b=z(36),w=z(94),M=(z(449),z(429)),k=z(27),S=z(427),E=z(417),x=z(426),L=z(425),T=z(422),C=z(424),D=z(433),O=z(428),N=z(423),Y=z(430),P=z(415),j=z(419),I=z(416),R=z(431),A=z(432),H=z(418),t=z(421),n=z(420),r=z(413),o=z(414),f=z(98),h=z(714);e.hot,localStorage.getItem(k.f)||localStorage.setItem(k.f,"zh-CN"===navigator.language?"zh-CN":"en-US");var y=Object(g.c)(Object(c.a)(Object(c.a)({},o.a),{},{routing:y.routerReducer})),v=Object(g.e)(y,Object(g.d)(Object(g.a)(v.a),window[k.i]?window[k.i]():function(e){return e})),F=[{path:"/",exact:!0,render:function(){return p.a.createElement(b.a,{to:"/welcome"})}},{path:"/welcome",component:r.a},{path:"/namespace",component:E.a},{path:"/newconfig",component:x.a},{path:"/configsync",component:L.a},{path:"/configdetail",component:T.a},{path:"/configeditor",component:C.a},{path:"/historyDetail",component:D.a},{path:"/configRollback",component:O.a},{path:"/historyRollback",component:N.a},{path:"/listeningToQuery",component:Y.a},{path:"/configurationManagement",component:P.a},{path:"/serviceManagement",component:j.a},{path:"/serviceDetail",component:I.a},{path:"/subscriberList",component:R.a},{path:"/clusterManagement",component:A.a},{path:"/userManagement",component:H.a},{path:"/rolesManagement",component:n.a},{path:"/permissionsManagement",component:t.a}],f=Object(_.b)(function(e){return Object(c.a)({},e.locale)},{changeLanguage:f.a})(f=function(e){Object(u.a)(n,e);var t=Object(d.a)(n);function n(e){return Object(l.a)(this,n),(e=t.call(this,e)).state={shownotice:"none",noticecontent:"",nacosLoading:{}},e}return Object(s.a)(n,[{key:"componentDidMount",value:function(){var e=localStorage.getItem(k.f);this.props.changeLanguage(e)}},{key:"render",value:function(){var e=this.props.locale;return p.a.createElement(a.a,Object.assign({className:"nacos-loading",shape:"flower",tip:"loading...",visible:!1,fullScreen:!0},this.state.nacosLoading),p.a.createElement(i.a,{locale:e},this.router))}},{key:"router",get:function(){return p.a.createElement(w.a,null,p.a.createElement(b.d,null,p.a.createElement(b.b,{path:"/login",component:S.a}),p.a.createElement(M.a,null,F.map(function(e){return p.a.createElement(b.b,Object.assign({key:e.path},e))}))))}}]),n}(p.a.Component))||f;m.a.render(p.a.createElement(_.a,{store:v},p.a.createElement(f,null)),document.getElementById("root"))}.call(this,z(176)(e))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict"; /** @license React v16.14.0 * react.production.min.js * @@ -294,7 +294,7 @@ n(8).defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var d=n(176),a="function"==typeof Symbol&&Symbol.for,c=a?Symbol.for("react.element"):60103,u=a?Symbol.for("react.portal"):60106,r=a?Symbol.for("react.fragment"):60107,o=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,l=a?Symbol.for("react.provider"):60109,s=a?Symbol.for("react.context"):60110,f=a?Symbol.for("react.forward_ref"):60112,n=a?Symbol.for("react.suspense"):60113,p=a?Symbol.for("react.memo"):60115,h=a?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n